Ubuntu

Q1:Official Ubuntu Documention

https://help.ubuntu.com/

Q2: 修改TTY分辨率(ChangeTTYResolution)

For 9.10  and later: /etc/default/grub

1.查看分辨率:vbeinfo

2.添加一新行: GRUB_GFXPAYLOAD_LINUX=1280x800

3.保存,update-grub, reboot

For 9.04 and before

1. /boot/grub/menu.1st

2.kernel /boot/vmlinuz-2.6.15-25-686 root=/dev/sda2 ro quiet splash

3.kernel /boot/vmlinuz-2.6.15-25-686 root=/dev/sda2 ro quiet splash vga=795

4.save, reboot.

对照表:

 

640x480

800x600

1024x768

1152x864

1280x1024

1600x1200

8bit

769

771

773

353

775

777

15bit

784

787

790

 

793

796

16bit

785

788

791

355

794

797

24bit

786

789

792

 

795

798

Q3: ubuntu 16.04 Server LTS 静态IP地址配置

1.vim /etc/network/interfaces

#iface enp0s3 inet dhcp 注释掉

iface enp0s3 inet static

  address 10.10.118.224

  netmask 255.255.0.0

  gateway 10.10.118.254

dns-nameservers 114.114.114.114

2./etc/init.d/networking restart; reboot

Q4:如何修改Ubuntu的源列表(Source list)?

1.备份源列表$ sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

2.选择合适的源,替换/etc/apt/sources.list中的内容,保存。

3.刷新源列表$ sudo apt-get update

Q5: 如何启动ssh ?

A:/etc/init.d/ssh start, 如果没有安装:apt-get install openssh-server

Q6:如何使用root用户登录ubuntu 16.04 桌面?

A: 1. 设置root 密码: sudo -i passwd root

    2. 打开屏幕登录, 打开/etc/lightdm/lightdm.conf ,如果不存在则创建此文件。

   [seatDefaults]

   greeter-session=unity-greeter

   user-session=ubuntu

   greeter-show-manual-login=true

原文地址:https://www.cnblogs.com/rexhu/p/5532020.html