Linux introductions, tips and tutorials. Any distro, any platform! Explicitly noob-friendly. If you're posting for help, please include the following details, so that we can help you more efficiently:. your operating system and version.
the hardware you're using. a description of the problem. output that was displayed (if any) Questions are encouraged. If you fix the problem yourself, please post your solution, so that others can also learn. There's a great - thanks to SCSweeps.
Other subreddits you may like: Does this sidebar need an addition or correction? Once upon a time I used to use logmein to access my work computer from home, but that went away when logmein went non-free. After that (at the time both computers were on Windows) I tried to set up a VNC server on the work computer to view it from home but I never got that working. I have since moved to Linux Mint as my primary OS on both machines and I'm motivated to try remote desktop again. I've used teamviewer with some success, but it seems unreliable (it only seems capable of logging into my work computer about 50% of the times I've tried), and it seems like VNC is simple and doesn't rely on any commercial software. All indications are that VNC should be easy to setup and use, but I think I am fundamentally missing some necessary facet of the operation, and I'd like some help.
The Easiest Way to Remotely Connect to Linux Mint from Any OS. I wanted a convenient way to connect to my Linux Mint machine from Windows or Mac without having to install all kind of packages, etc. You can download your favorite VNC client for Windows and connect to the Linux box. In my case, I used the VNC Viewer program from RealVNC.
As far as I can tell the order of operations is such: -Initialize VNC server on work computer. Linux Mint comes with something called Vino, but I find it hard to figure out whether or not that begins running when I tell it to. I've also tried TightVNC, which definitely tells you when it begins running, and you are able to give it a password.Find out the IP address of the work computer. I can simply click on the network settings in the taskbar and I am given four addresses that seem like they might be what I'm looking for. That computer is plugged into a wired connection, and I'm given addresses for IP, hardware, default route, and DNS. I assume IP is what I want but I've not been successful with that address.Setup a VNC viewer on my home computer. This seems to be something you install and then call from the command line.
It is unclear whether one comes with Linux Mint, but I've installed one called xtightvncviewer. I've read that accessing the remote computer is as simple as typing vncviewer xxx.xx.xxx.xxx but this is most certainly not accomplishing anything. Is this where I would input the password for the remote computer? I've read the manual, but it really doesn't make anything clearer to me. It says to type vncviewer options host:display I'm not sure which options I need. The manual mentions -user and -passwd, but I never told the VNC server a username, and I never generated a password file. Are there other options I need?
![]()
I'm assuming host is the IP address I looked up on my work computer. This seems pretty straightforward. Not sure what :display means.
There is no mention of this in the manual besides the first line. What am I missing here? Am I even on the right track? Will VNC enable me to remote desktop like logmein used to (or teamviewer does sometimes)? I know the typical answer is to read the manual and google it, but I'm not sure what to even look for. I'm not looking for step by step instructions, but perhaps nudge by nudge in the right direction. For what it's worth, when I type: vncviewer xxx.xx.xxx.xxx It just hangs there.
I don't get an error message, so I'm not even sure what I need to figure out in order to proceed. First of all, ignoring for a moment the lecture about how completely hackable VNC is, and the steps required to make it less hackable. The best VNC client for Ubuntu is Remmina. Remmina supports either VNC or RDP and overall works very well, have been using that for years. Remmina is very easy to setup and use and the code is part of the standard Ubuntu sources list. For the VNC server VNC4SERVER is also part of the standard Ubuntu sources and it works reasonably well.
Personally I use Teamviewer on a Ubuntu 14 host to remote-control it, and that works fine. Teamviewer is soooo much more secure than VNC and supports two-factor authentication.
Install VNC on Ubuntu 16.04 As you know, VNC is a protocol that allows sharing the desktop and controlled remotely over the internet. This simple guide helps you to install VNC on machines. Before installing the VNC server, let us install Xfce desktop. $ sudo apt-get update $ sudo apt-get install xfce4 xfce4-. Install the VNC server using the following command. $ sudo apt-get install vnc4server VNC server listens on port 5900, but if you plan to setup port-offset in VNC; we can run a VNC service on a sub-port of the default port 5900. For example, if we configure VNC for port 5, the desktop will be accessible on port 5905. To connect, you can use the standard format ipaddress:sub-port ( 192.168.2.109:5 or 192.168.2.109:5905) $ sudo nano /etc/systemd/system/vncserver@:5.service Replace with your real user.
Unit Description=Start TightVNC server at startup After=syslog.target network.target Service Type=forking User= raj PAMName=login PIDFile=/home/ raj/.vnc/%H%i.pid #ExecStartPre=/usr/bin/vncserver -kill%i /dev/null 2&1 ExecStart=/usr/bin/vncserver -depth 24 -geometry 1024x768%i ExecStop=/usr/bin/vncserver -kill%i Install WantedBy=multi-user.target Reload the systemctl daemon as root $ sudo systemctl daemon-reload Start VNC server as user “raj” raj@server:$ vncserver Set the password. You will require a password to access your desktops. Password: Verify: xauth: file /home/raj/.Xauthority does not exist New 'server.itzgeek.local:1 (raj)' desktop is server.itzgeek.local:1 Creating default startup script /home/raj/.vnc/xstartup Starting applications specified in /home/raj/.vnc/xstartup Log file is /home/raj/.vnc/server.itzgeek.local:1.log Now, Edit the xstartup file to start Xfce desktop in VNC. Raj@server:$ nano /home/raj/.vnc/xstartup Delete all the existing entries and place the below lines into the file. #!/bin/sh -r $HOME/.Xresources && xrdb $HOME/.Xresources startxfce4 & Start the VNC service as root. $ sudo systemctl start vncserver@:5.service Enable it on system startup as root.
$ sudo systemctl enable vncserver@:5.service Now use a VNC viewer to take the shared desktop.
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |