close

紀錄一下工作上的一些Ubuntu OS使用的技巧

 

嗚邦兔小姿勢: 圖形介面Root登入 & 圖形介面Root登入&允許自行輸入帳號(LightDM)

 

Root SSH登入

Edit /etc/ssh/sshd_config"
把PermitRootLogin prohibit-password 改成 PermitRootLogin yes
或用command # sed -i 's/\#PermitRootLogin prohibit\-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
重啟service # systemctl restart sshd.service 

 

圖形介面,允許自行輸入帳號(LightDM)

The file to edit is now located in /usr/share/lightdm/lightdm.conf.d, and is called: 50-ubuntu.conf.

Just added the line: greeter-show-manual-login=true

First of all, you must set root 's password.

然後登出Logout重新登入驗證或重新開機#reboot

 

 

延伸閱讀-圖形介面,允許Root登入:

sudo passwd root

Enter new UNIX password:

Now you have root password. Now activate the root account:

sudo usermod -U root

Then you should allow lightdm, gdm or kdm to allow logging in as root.

To enable this:

(圖形介面-套件: ubuntu-desktop,不同OS版本實際下載下來圖形介面使用的Desktop Mode套件可能不同)

In GDM

Ubuntu 17.04(以前) or 18.04(以後) :

Edit /etc/gdm/custom.conf file and [security] type include AllowRoot=true.

[security]

AllowRoot=true

Save and exit.

In GDM3

buntu 17.10 (開始): gdm3

#sudo vim /etc/gdm3/custom.conf, Under [security] type AllowRoot=true       

#sudo vim /etc/pam.d/gdm-password

Search this line and mark it to no work.

so that it looks like this

#aut h required pam_succeed_if.so user != root quiet_success

In KDM (沒試過)

Edit /etc/kde4/kdm/kdmrc file and change AllowRootLogin=false for AllowRootLogin=true.

In LightDM

This procedure enables the "Other" menu, so you can type the username root and login. You must edit /etc/lightdm/lightdm.conf and add greeter-show-manual-login=true. Then reboot.

 

然後登出Logout重新登入驗證或重新開機#reboot
 

某些VGA的效能在Wayland底下的效能不太好,圖形介面使用起來卡卡鈍鈍不流暢,把Wayland關閉就OK了
# Setting Disable Wayland config.
echo "To disable wayland by Unmark WaylandEnable=false from /etc/gdm3/custom.conf"
sudo sed -i 's/\#Way/Way/g' /etc/gdm3/custom.conf && echo "Finished unmark."

arrow
arrow
    創作者介紹
    創作者 吾給力 的頭像
    吾給力

    吾給力的部落格

    吾給力 發表在 痞客邦 留言(0) 人氣()