Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. ## 一、腾讯讯云主机开启 root 用户登录如下:
  2. + 腾讯云主机ubuntu 系统默认用户名为 ubuntu
  3. - 1.修改root密码
  4. ```bash
  5. sudo passwd root
  6. Enter new UNIX password: // 输入新密码
  7. Retype new UNIX password: // 重复密码
  8. passwd: password updated successfully // 修改成功
  9. ```
  10. - 2.修改 sshd_config 配置如下
  11. ```bash
  12. vi /etc/ssh/sshd_config
  13. # Authentication:
  14. LoginGraceTime 120
  15. PermitRootLogin yes
  16. StrictModes yes
  17. ```
  18. - 3.最后重启下ssh
  19. ```bash
  20. sudo service ssh restart
  21. ```
  22. ## 二、修改系统语言为中文
  23. - 1.查看当前语言环境
  24. ``` bash
  25. echo $LANG
  26. ```
  27. - 2.查看当前系统是否有中文语言包(`zh_CN.utf8`)
  28. ```bash
  29. locale -a
  30. ```
  31. - 3.安装中文语言包
  32. ```bash
  33. apt install language-pack-zh-hans
  34. ```
  35. - 4.再次查看是否有中文语言包
  36. ```bash
  37. locale -a
  38. ```
  39. - 5.修改系统环境变量
  40. ```bash
  41. vi ~/.bashrc
  42. ```
  43. 加入下面这一行:
  44. ```bash
  45. LANG="zh_CN.utf8"
  46. ```
  47. - 6.执行修改
  48. ```bash
  49. source ~/.bashrc
  50. ```
  51. 此时已更改成功
  52.  
  53. ## 三、更新系统(可选)
  54. ```bash
  55. apt-get update
  56. apt-get dist-upgrade
  57. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement