User-Profile-Image
hankin
  • 5
  • centos7
  • docker
  • mysql
  • PostgreSQL
  • git/gitlab
  • ELK
  • python
    • python-Tornado
    • python-django
  • redis
  • nginx
  • kvm
  • proxmox
  • mongo
  • kubernetes
  • prometheus
  • GlusterFs
  • nfs
  • freeswitch
  • httpd
  • shell脚本
  • linux
  • fastdfs
  • nextcloud
  • openssl
  • openvpn
  • rabbitmq
  • sqlite
  • svn
  • java
  • ubuntu
  • vue2
  • wordpress
  • php
  • IOT物联网
  • 项目
  • 故障处理
  • 树莓派
  • 博客存档
  • 未分类
  • 杂项
  • #1742(无标题)
  • 新视野
  • 分类
    • 项目
    • 树莓派
    • 杂项
    • 未分类
    • 新视野
    • 故障处理
    • 博客存档
    • 交换机
    • wordpress
    • vue2
    • ubuntu
    • svn
    • sqlite
    • shell脚本
    • redis
    • rabbitmq
    • python-django
    • python
    • proxmox
    • prometheus
    • PostgreSQL
    • php
    • openvpn
    • openssl
    • nginx
    • nfs
    • nextcloud
    • mysql
    • mongo
    • linux
    • kvm
    • kubernetes
    • java
    • IOT物联网
    • httpd
    • GlusterFs
    • git/gitlab
    • freeswitch
    • fastdfs
    • ELK
    • docker
    • centos7
  • 页面
    • #1742(无标题)
  • 友链
      请到[后台->主题设置->友情链接]中设置。
Help?

Please contact us on our email for need any support

Support
    首页   ›   ubuntu   ›   正文
ubuntu

ubuntu配置

2023-02-07 14:00:52
1626  0 0
更新
apt update -y
apt-get upgrade -y
apt install vim -y
启用root并开启ssh远程连接
sudo passwd root #修改了root用户的密码从而激活了root用户权限
su root
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
systemctl restart sshd
启用root桌面登录
#目前并不能直接通过root用户登录进入桌面
修改/root/.profile
    注释:#mesg n 2> /dev/null || true
    新增:tty -s && mesg n || true

修改/etc/pam.d/gdm-autologin和/etc/pam.d/gdm-password
    注释:auth required    pam_succeed_if.so user != root quiet_success

修改/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
    新增:greeter-show-manual-login=true
    新增:gall-guest=false
安装桌面远程
apt install xrdp -y
systemctl status xrdp
adduser xrdp ssl-cert
systemctl restart xrdp
ufw allow 3389

#闪退
echo xfce4-session >~/.xsession
chmod +x ~/.xsession
sudo systemctl restart xrdp.service

apt install dconf-editor -y

评论 (0)

点击这里取消回复。

欢迎您 游客  

Copyright © 2025 网站备案号 : 蜀ICP备2022017747号
smarty_hankin 主题. Designed by hankin
主页
页面
  • #1742(无标题)
博主
tang.show
tang.show 管理员
linux、centos、docker 、k8s、mysql等技术相关的总结文档
213 文章 2 评论 201871 浏览
测试
测试