centos8 VMware15 安装环境记录
centos8 VMware15 安装记录
1.默认用户无法使用sudo命令
报错信息:
[zh@192 ~]$ sudo yum update
[sudo] password for zh:
zh is not in the sudoers file. This incident will be reported.
解决办法:
1.切换到超级用户:$ su
2.打开/etc/sudoers文件:$vi /etc/sudoers
3.修改文件内容:
找到“root ALL=(ALL) ALL”一行,在下面插入新的一行,内容是“username(你的用户名) ALL=(ALL) ALL”,然后在vi键入命令“wq!”保存并退出。
root ALL=(ALL) ALL
zh ALL=(ALL) NOPASSWD:ALL (可以不需要密码)
注:这个文件是只读的,不加“!”保存会失败。
4.退出超级用户:$ exit
5.可以尽情使用sudo了。
2.中文支持
问题描述:
无法输入中文。
解决办法:
sudo yum install langpacks-zh_CN.noarch
然后到系统设置中设置语言和输入法。
3.安装chrome浏览器
问题:
安装chrome浏览器。
解决办法:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
sudo dnf localinstall google-chrome-stable_current_x86_64.rpm
即可安装完成。
导入本地书签 :
win10运行cmd
cd到书签文件目录,
scp bookmarks_2020_8_21.html zh@192.168.217.128:/home/zh/Desktop
如果之前连接过秘钥更换就删除错误提示里的ssh文件夹。

浙公网安备 33010602011771号