ubuntu修改主机名 主机名在/etc/hostname文件中了,只在打开这个文件进行修改,重启计算机即可. 一.查看主机名 $ hostname #查看主机名 cdyemail 二.通过指令修改主机名 $ hostname server #修改主机名,但提示我必须用root权限 hostname: you must be root to change the host name $ sudo hostname server #修改主机名 $ hostname #查看主机名
code {margin: 0;padding: 0;font-size: 100%;word-break: normal;background: transparent;border: 0;}ol {list-style-type: decimal;}ol ol, ul ol {list-style-type: lower-latin;}ol ol ol, ul ol ol, ul ul ol, ol ul ol {list-style-type: lower-roman;}table {bo
本文只对没有单独用类似easyBCD这种软件单独设立启动分区的双系统,在重新安装win7之后,因为win7覆盖了ubuntu的grub,导致ubuntu无法启动的问题. (1)不管使用什么方法,首先需要确定原来安装ubuntu / 的分区,和原来安装ubuntu /boot的分区,假定为sda7 根sda8 (如果有多个磁盘,可能就会有sdb...) (2)使用ubuntu live CD 启动ubuntu,启动终端: sudo -i mount /dev/sda7 /mnt mount /d