Linux Programmer | RHCE | RHCSA

Search This Blog

Friday, 16 February 2018

Autologin Ubuntu 16.04 with LightDM

Autologin with LighDM in ubuntu 16.04

$ touch /etc/lightdm/lightdm.conf

open file and add the below entry

$ nano /etc/lightdm/lightdm.conf

[SeatDefaults]
autologin-user=lubuntu
autologin-user-timeout=0
greeter-session=lightdm-gtk-greeter
greeter-hide-users=true
user-session=Lubuntu
session-cleanup-script=service lightdm restart



Start VNC Server


x11vnc -shared -forever -xkb  -rfbport 5007 -httpport 5009 -repeat &
vncviewer -fullscreen -viewonly -listen &

Restrict SSH and Allow with SFTP

Create SFTP user:  ``` sudo useradd -M -s /sbin/nologin sftpuser sudo passwd sftpuser ``` Add below lines into, /etc/ssh/sshd_config ``` Mat...