Ubuntu16.04Server版安装的全过程,实战经验,一步一步安装的过程,希望帮到你。
工具/原料
Ubuntu16.04Server
电脑
方法/步骤
1、选择系统语言:English(这个不能选择中文(简体)安装,否则会提示安装失败),按Enter键确认,如图所示:
2、选择安装系统的选项,选择操作:InstallUbuntuServer,按Enter键确认,如图所示:
3、语言选择,选择安装过程和系统的默认语言:English,按Enter键确认,如图所示:
4、国家领土或地区,选择区域:other,按Enter键确认,如图所示:
5、地区选项,选择亚洲:Asia,按Enter键确认,如图所示:
6、选择国家:China,按Enter键确认,如图所示:
7、选择字符集编码:UnitedStates,按Enter键确认,如图所示:
8、是否扫描和配置键盘,选择否:No,按Enter键确认,如图所示:
9、选择键盘类型:English(US),按Enter键确认,如图所示:
10、选择键盘布局:English(US),按Enter键确认,如图所示:
11、配置DHCP失败,选择:contiune(有的时候没有这个界面),按Enter键确认,如图所示:
12、配置网络,因为内网没开DHCP,暂时等装完系统在进行配置(选择:Donotconfig掼鸿乡羰urethenetworkatthistime),按Enter键确认,如图所示:
13、设置主机名称(自行设置,这里我设置为“ubuntu”),点击:Continue(这里是给计算机取名字,我这里就默认),如图所示:
14、创建一个新的用户,设置用户全名:xulunan,点击:Continue,如图所示:
15、设置登录账号:xulunan,点击:Continue,如图所示:
16、设置xulunan用户设置登录辩尢霆靡密码(空格选择“ShowPasswordinClear”可以显示明文密码),点击:Continue,如图所示:
17、重复上一步设置的登录密码,点击:Continue,如图所示:
18、是否加密home文件夹,选择否:No(不对home主目录加密),如图所示:
19、为了方便后面的磁盘扩容水貔藻疽,使用LVM分区,选择分区方式(分区向导-使用整个磁盘):“Guided-useentirediskandsetupLVM”,按Enter键确认,如图所示:
20、选择要分区的磁盘(这里只有一块),按Enter键确认,如图所示:
21、在分区磁盘的界面,是否将变更写入磁盘,选择是:Yes,按Enter键确认,如图所示:
22、在分区磁盘的界面,用于引导分区卷组的空间大小,点击:Continue,如图所示:
23、磁盘分区选择:NO,这里要把boot分区给删了,按Enter键确认,如图所示:
24、选择:/boot那一行,按Enter键确认,如图所示:
25、选择:deletethepartition,按Enter键确认,如图所示:
26、已经完成分区,如图所示:
27、选择:Yes,按Enter键确认,如图所示:
28、选择升级方式,Noautomaticupdates,按Enter键确认,如图所示:
29、选择要安装的软件,多邹菁惨挣加2个OpenSSHServer,DNSserver,选择它,点击空格键,*表示选择,点击:continue,如图所示:
30、是否安装GRUB引导程序,选择是:Yes,按Enter键确认,如图所示:
31、完成安装,选择下一步:Continue,如图所示:
32、系统安装完会自动启动主机,然后输入设置好的登录账户和密码就可以开始使用了,如图所示:
33、首次登陆:用过掼鸿乡羰ubuntu的人都知道,刚安装好root用户是没有密码的,没有密码我们就没法用root用户登录,用刚刚创建的新用户登录,然后s锇栀劐箨udosu-切换到root用户,再修改root密码,这时输入的密码就是root用户的密码了,设置完成之后就root用户登录了,如图所示:
34、设置IP地址,编辑这个文件配置诔罨租磊IP地址:vi/etc/network/interfaces,配好了几重启网卡:/etc/init.d/networ娱浣嫁装kingrestart,这个时候网络已经配置好了,如图所示:
35、修改sshd配置文件vi/e隋茚粟胫tc/ssh/sshd_config,root也能ssh登录,把PermitRootLoginprohib足毂忍珩it-password改成PermitRootLoginyes,root@ubuntu:~#/etc/init.d/sshrestart重启sshd服务,如图所示: