sudo vim /etc/ssh/sshd_configĦ) Change PasswordAuthentication to yes from no, then save and exit.ħ) Restart the SSH daemon to make this change take effect. Refer this guide to create permanent sessions as serviceĤ) Execute: sudo apt-get update sudo apt-get upgradeĥ) Because you will be connecting from Windows Remote Desktop, edit the sshd_config file on your Linux instance to allow password authentication. Now you can access GUI using IP/Domain and port 1įor AWS, you have to allow port 5901 on firewall Log file is /home/lonely/.vnc/ubuntu:1.log ![]() Starting applications specified in /home/lonely/.vnc/xstartup New 'ubuntu:1 (lonely)' desktop is ubuntu:1Ĭreating default startup script /home/lonely/.vnc/xstartup Xauth: file /home/lonely/.Xauthority does not exist You will require a password to access your desktops. "gnome-session &\n".ģ) Create VNC password and vnc session for the user using "vncserver" command. $ sudo apt install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal vnc4serverĢ) Edit /usr/bin/vncserver file and modify as belowįind this line "# exec /etc/X11/xinit/xinitrc\n\n".Īnd add these lines below. So run the vnc server also on same user instead of "awsgui" user.ġ) Install packages $ sudo apt update sudo apt install -no-install-recommends ubuntu-desktop Mostly because of ".vnc/xstartup" file on different user. Sudo iptables -A INPUT -p tcp -dport 5901 -j ACCEPT Mac VNC client can be downloaded from here: In the vnc client, give public DNS plus ":1" (e.g. You can download xtightvncviewer to view desktop(for Ubutnu) from here When you're done, hit Ctrl + C on the keyboard, type :wq and hit Enter. "Uncomment the following two lines for normal desktop." And on the second line add "sh" so the line reads exec sh /etc/X11/xinit/xinitrc. Then hit the Insert key, scroll around the text file with the keyboard arrows, and delete the pound (#) sign from the beginning of the two lines under the line that says ![]() Then run following commands and enter the login password for vnc connection: su - awsgui Run following commands to install ui and vnc server: sudo apt-get update Setting up ui based ubuntu machine on AWS. Sudo vim /etc/ssh/sshd_config # edit line "PasswordAuthentication" to yes Following are the steps to setup the GUI Create new user with password login sudo useradd -m awsgui
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |