srijeda, 19. studenoga 2008.

How to log into a remote ubuntu machine after it's reboot

To log in, ssh into the host like this:

ssh -l username ip address or the host name

so:
ssh -l MyUserName 255.255.255.255

then, type in

vncserver

it will give you something like
root@compname:~# vncserver

New 'X' desktop is compname:1

If the password doesn't work, remove the passwd files in the vnc folder of the remote computer:

rm .vnc/passwd


Then repeat the vncserver command; it'll ask for a password to be created so just type one in.

VNC connection

To get into another comp through ubuntu vnc (assuming it's already set up on the other comp):

vncviewer 255.255.255.255:0

:0 is the vnc desktop you left open for yourself... 255.255.255.255 is obviously an ip adress, type in the correct one.

If you're still a moron:
https://help.ubuntu.com/community/VNC