1 根据实际情况将以下2处修改为正确的值

vi /etc/hosts

127.0.0.1       localhost
::1             localhost
192.168.228.130 CentOS-68-x64


vi /etc/resolv.conf

nameserver 192.168.228.2


2 配置 sshd_config

vi /etc/ssh/sshd_config

UseDNS no
GSSAPIAuthentication no

之后重启sshd服务:

service sshd restart



本文链接地址: SSH,FTP等连接到Linux需要等待一段时间(卡住)的解决方法
https://blog.qingfengju.com/index.asp?id=403

分类:Linux 查看次数:14337 发布时间:2017/1/12 23:16:52

1 查看显卡支持的分辨率

启动菜单出现后,按c进入grub命令行。

执行vbeinfo,记录下分辨率前面的代码,例如:

0x140 800 x 600 x 32 ...

注意,这里显示的是 VBE(VESA BIOS Extensions) mode numbers,实际使用时需要加上0x200转换为 Linux video mode numbers.

0x140 + 0x200 = 0x340 (十进制832)

ESC可以返回启动菜单。


2 修改启动参数

vi /etc/default/grub

在GRUB_CMDLINE_LINUX后加上vga=832


更新配置文件(类似于Ubuntu上的update-grub)

grub2-mkconfig -o /boot/grub2/grub.cfg


3 本文试验环境

cat /etc/centos-release

CentOS Linux release 7.2.1511 (Core)


uname -r

3.10.0-327.el7.x86_64


grub2-install --version

grub2-install (GRUB) 2.02~beta2


参考:

https://en.wikipedia.org/wiki/VESA_BIOS_Extensions

https://wiki.centos.org/HowTos/Grub2

https://www.gnu.org/software/grub/manual/grub.html

http://askubuntu.com/questions/18444/how-do-i-increase-console-mode-resolution


本文链接地址: CentOS7修改字符界面的分辨率
https://blog.qingfengju.com/index.asp?id=402

分类:Linux 查看次数:4377 发布时间:2017/1/12 23:11:47