
00:00:00
外卖卷:非常划算 扫码领劵 省点小钱钱
sudo apt install net-tools openssh-serverdpkg -l | grep ssh如果看到 sshd,说明 ssh-server 已经启动。如果没有可执行以下命令启动:
sudo /etc/init.d/ssh start
# 或
sudo service ssh startsudo apt install nano htopsudo apt --purge remove thunderbird totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot gnome-mines cheese transmission-common gnome-orca gnome-sudoku remminasudo apt --purge autoremove
sudo apt upgrade #更新软件仓库# 卸载 gnome-shell
sudo apt remove gnome-shell
# 卸载 gnome
sudo apt remove gnome
# 卸载不需要的依赖关系
sudo apt autoremove
# 彻底卸载删除gnome的相关配置文件
sudo apt purge gnome
# 清理安装gnome时候留下的缓存程序软件包
sudo apt autoclean
sudo apt cleanntpdate sudo apt install ntpdatesudo ntpdate cn.pool.ntp.orgsudo hwclock --systohcnano /etc/hostname主机名存放在 /etc/hostname 文件中,编辑 hostname 并输入新的主机名保存即可。
reboot #重启
hostname #重新查看主机名先从浏览器打开或者 SSH 工具连接服务器,登陆成功之后输入一下命令
sudo -i #切换到root
passwd #修改密码nano /etc/ssh/sshd_config #编辑文件
PermitRootLogin yes #默认为no,需要开启root用户访问改为yes
PasswordAuthentication yes #默认为no,改为yes开启密码登陆提示
按 i 进入编辑模式,按 esc 退出,输入 :wq 保存
reboot #重启服务器
评论