华擎J3455 安装 Ubuntu Server 18.04 LTS

作者: 麻辣阁 分类: 操作系统 发布时间: 2019-03-10 23:35

安装系统

  • rufus 制作启动盘,可以选择“MBR分区方案,用于BIOS或UEFI的计算机”。
  • u盘一定要插主板后端的原生接口,否则找不到
  • J3455主板BIOS设置 CPU,关闭节能相关功能, 否则 U盘读取速度很慢

设置固定 IP

参考 Ubuntu18.04配置静态ip遇到的报错

~$ sudo netplan generate
~$ sudo vi /etc/netplan/50-cloud-init.yaml

内容如下,冒号后面要有空格:

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
#network:
#    ethernets:
#        enp1s0:
#            dhcp4: true
#    version: 2
network:
    ethernets:
        enp1s0:
            addresses: [192.168.1.44/24]
            gateway4: 192.168.1.1
            nameservers:
                addresses: [114.114.114.114,192.168.1.1]
            dhcp4: false
            optional: true
    version: 2

生效:

$ sudo netplan apply

安装 nginx

参考 http://nginx.org/en/linux_packages.html#Ubuntu

查看 ubuntu 发行版的 Codename:

$ sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

编辑 /etc/apt/sources.list, 替换对应的Codename, 这里安装稳定版本:

# nginx
deb http://nginx.org/packages/ubuntu bionic nginx

import an official nginx signing key so apt could verify the packages authenticity:

wget -c http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
sudo apt-key fingerprint ABF5BD827BD9BF62

安装 nginx

sudo apt update
sudo apt install nginx

发表评论

电子邮件地址不会被公开。 必填项已用*标注