Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[ $1 == "" ]];then
- echo $0 user
- exit
- fi
- USER=$1
- PASS=123
- echo Install deps
- apt-get install -f -q -yy ecryptfs-utils cryptsetup x11vnc
- x11vnc -storepasswd ${PASS} /etc/x11vnc.pass
- cat > /etc/init/x11vnc.conf <<EOF
- start on login-session-start
- script
- x11vnc -rfbauth /etc/x11vnc.pass -rfbport 5900 -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log -noxrecord -noxfixes -noxdamage -nomodtweak
- end script
- EOF
- reload x11vnc
- start x11vnc
- echo follow to instructions
- ecryptfs-setup-swap
- modprobe ecryptfs
- ecryptfs-migrate-home -u ${USER}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement