Server - any PC we want to control remotely. It can even be tablet or smartphone.
Client - a computer what we will use to log in on server. Can also be a tablet (another one).
I'm using desktop as server and laptop as client. Both LM 17.
First, server. Interesting thing for you may be Wake On Lan (WOL). It let you to start computer from other machine. Check Internet card informations if it support it. By default it's enabled on most computers. Just go to BIOS and make sure it's enabled. It don't have to be named "WOL" or "Wake On Lan". I saw also some other names for WOL in BIOS, but I forgot them. If you have WOL enabled and it doesn't work - your BIOS may have settings how deep he is going to be powered off (deep sleep state, something like that). There are many programs that send WOL packets (magic packets), but mint seems to have only one in repo: gwakeonlan. It's very simple and good
But most important thing on server is software that will let us remote access. Most popular is SSH. You can install both SSH client and server:
Code: Select all
sudo apt-get install ssh
Code: Select all
sudo apt-get install openssh-server
I turned firewall on (via gufw) and disabled option to log in as root. Make sure port 22 is allowed in firewall.
Time for client. Install ssh client:
Code: Select all
sudo apt-get install openssh-client
Server user is an account that already exist on server!
In terminal use command:
Code: Select all
ssh user@ServerIP
Code: Select all
ssh user@ServerName
You have to write that user password.
Congratulations, you have now remotely connected to the server! Use exactly same commands as you use in terminal on client.
You can also use command:
Code: Select all
ssh -Y user@ServerName/IP
"But I want to see whole desktop, not only interface of some program!"
First, you need program on SERVER to have remote desktop. There are 2 kind of remote desktop - native (if you sit in front of server monitor you will see exactly same things happening on desktop as you look on remote desktop - known as desktop sharing) desktop and new, virtual desktop (you have to remotely access that desktop).
Mint have default one - vino. It share native desktop. But this one isn't good for me. If you want: here is tutorial how to configure it via SSH: http://ubuntuforums.org/showthread.php? ... 13fa555a40
Too complicated. And for remote access I need something that others don't see (I made server from PC that is normally used). Look for "VNC Server" I use vnc4server:
Code: Select all
sudo apt-get install vnc4server
Code: Select all
vnc4server
Code: Select all
vnc4server -geometry [i]width[/i]x[i]height[/i]
write any easy password, remember it or write down. For this tutorial it's qwerty
Now, on CLIENT we need a vnc client. Open other terminal or use "logout" command to logout from remote server (Ctrl + D works as logout; use Ctrl + C if SSH will stuck)
I use SSVNC (it have many features, default settings are good).
Code: Select all
sudo apt-get install ssvnc
VNC Host:Display - your server name/IP:Virtualdesktop, default is :0, hovever vnc4server start from :1
VNC Password - password you provided on server after command "vnc4server"
Proxy/gateway - might be interesting if your remote server is in another network
Remote SSH Command - command given here will be immediately executed on remote server after login
Use SSH (if you have enabled firewall and allowed only port 22; otherwise you can use anything).
So for me it looks like that:
Code: Select all
VNC Host:Display | 192.168.1.105:1
VNC Password | qwerty
Proxy/gateway |
Remote SSH Command |
Press connect. Now you will need to provide user password (the one who started vnc4server) and you're done. You have remote desktop!
You can run more instances of vnc server - every next instance have +1 to :display (so third instance is :3).
Please let me know if this is helpful - I can make some screenshots and explain some other stuff mentioned here but not connected to remote access/remote desktop directly.
Regards,
Krzychu
If you want to copy whole or part of this tutorial, you're free to do so. Please provide a link to this topic and inform me about that via PM.