一、root 通过ssh登录的设置
- 默认使用ubuntu用户登录
- 修改 root 密码
sudo passwd root
- 修改配置文件
sudo vi /etc/ssh/sshd_config
找到下面相关配置:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes
更改为:
LoginGraceTime 120
# PermitRootLogin prohibit-password
PermitRootLogin yes
StrictModes yes
4.重启ssh
sudo service ssh restart
二、修改分辨率
1、输入命令:
xrandr
显示出当前可用的分辨率信息:
Screen 0: minimum 1 x 1, current 2560 x 1600, maximum 16384 x 16384
Virtual1 connected primary 2560x1600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
800x600 60.00 + 60.32
2560x1600 59.99*
1920x1440 60.00
1856x1392 60.00
1792x1344 60.00
1920x1200 59.88
1600x1200 60.00
1680x1050 59.95
1400x1050 59.98
1280x1024 60.02
1440x900 59.89
1280x960 60.00
1360x768 60.02
1280x800 59.81
1152x864 75.00
1280x768 59.87
1024x768 60.00
640x480 59.94
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
Virtual5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
Virtual7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)
其中virtual1为显示器的名称。
2、增加显示模块,并设置开机启动,命令行输入“vim /etc/profile”,在末尾添加:
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode virtual1(这里就是上面的显示器的名字)"1920x1080_60.00"
4、立马启用修改后的配置:
source /etc/profile
修改成功,重新启动后在分辨率中就会多出1920x1080的分辨率