Posted: October 19th, 2012 | By: Chris_C | Filed under: Security, Security & Optimization | Tags: Mozilla FIrefox, MyIP, SOCKS connection, SOCKS host, SOCKS proxy, SSH, VNC | No Comments »
A lot of people ask this simple question and there’s about 3 easy options. The first one is a SOCKS proxy via the SSH command. This is executed through the following command:
ssh -ND (port) (username@IP/subdomain)
ssh -ND 8080 firstname.lastname@example.org
This would make SSH make a connection to email@example.com, if a password was accepted, and a SOCKS connection to listen on 8080/tcp.
If the password was accepted, you can open up Mozilla Firefox and access the Edit -> Preferences area. Click on the Network tab then Settings. Enable “Manual proxy configuration”.
SOCKS host: localhost
To verify, go to MyIP.dk to see if your IP address on MyIP.dk is the same as your VPS IP address.
Another way is to install a VNC server on the virtual private server and to connect in with the VNC protocol to access the virtual private server like a desktop computer. I will write up a tutorial about how to do this at a later date!
Posted: January 8th, 2012 | By: Rob_K | Filed under: Tutorials | Tags: Debian, Tutorials, VNC | No Comments »
VNC is a desktop sharing system that will allow you to connect to a Linux desktop from your home PC, for easy remote management of your VPS. This walkthrough will guide you through the installation of a VNC server on Debian.
Before starting, log in to your VPS as the root user, and run the following:
# apt-get update
# apt-get upgrade
1. Install GNOME:
#apt-get install gnome-desktop-environment
2. Install some required fonts:
# apt-get install xfonts-100dpi
# apt-get install xfonts-100dpi-transcoded
# apt-get install xfonts-75dpi
# apt-get install xfonts-75dpi-transcoded
# apt-get install xfonts-base
3. Install the VNC server:
# apt-get install tightvncserver
4. Start TightVNCServer for the first time, it will copy config files and prompt you for a password:
# tightvncserver :1
5. Stop the VNC server, for additional configuration:
# tightvncserver -kill :1
6. Edit the xstartup file:
# vi ~/.vnc/xstartup
Press “A” to enter edit mode. Replace the contents of the file with the following (or edit to match):
xsetroot -solid grey
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# x-window-manager &
Press ESC, type :wq, then press enter to save and close the file.
7. Start the VNC server with your desired resolution:
# tightvncserver -geometry 1024×768 :1
You can now use a desktop VNC client to access your server’s GNOME desktop. In your VNC client (TightVNC, for example), enter your server’s main IP address, Port 1 (or 5901, alternately), and the password you set earlier to connect to the desktop.
This article is also available in the VPS6.NET Knowledgebase: