Last active
March 19, 2020 13:40
-
-
Save alexishida/77435d306a2aa1287df5cc4dd3bb9a33 to your computer and use it in GitHub Desktop.
vnc ubuntu mate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #PASSO 1 | |
| sudo apt-get install -y ubuntu-desktop tigervnc-standalone-server tigervnc-common tigervnc-xorg-extension tigervnc-viewer | |
| #PASSO 2 | |
| vncserver | |
| #PASSO 3 | |
| #definir senha | |
| #PASSO 4 | |
| ls -l ~/.vnc | |
| #PASSO 5 | |
| vncserver -kill :1 | |
| #PASSO 6 | |
| sudo sh -c 'echo "#!/bin/sh\nunset SESSION_MANAGER\nunset DBUS_SESSION_BUS_ADDRESS\n[ -r \$HOME/.Xresources ] && xrdb \$HOME/.Xresources\nxsetroot -solid grey\nxterm -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP Desktop\" &\nmate-session &" > ~/.vnc/xstartup2' | |
| #PASSO 7 | |
| sudo chmod 700 ~/.vnc/xstartup | |
| #PASSO 8 | |
| vncserver :1 -geometry 1024x768 -depth 32 | |
| #FIM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment