Set up SSH

First, set up SSH by running the following in the tcsh session.

1
2
3
4
echo 'sshd_enable="YES"' >> /etc/rc.conf
echo 'ListenAddress 0.0.0.0' >> /etc/ssh/sshd_config
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config

Create a host RSA key with ssh-keygen -t rsa and entering /etc/ssh/ssh_host_rsa_key as the directory. Do not worry about a passphrase. After this is done, start the SSHd service with service sshd start.

Note: This isn’t the most secure as you are logging in as root.

Reset the root password with passwd.

Install packages and dependencies

Install the latest pkg package with pkg bootstrap -f. After this has installed, upgrade with pkg2ng. Next, install the packages:

1
2
pkg install xorg openbox tightvnc linuxdcpp
pkg install libiconv expat

For some reason Pango needs to be reinstalled, so reinstall with:

1
pkg install -f pango

Set up VNC

Create a directory for the xstartup script and then edit the file.

1
2
mkdir ~/.vnc
edit ~/.vnc/xstartup

Place the following in the xstartup script and save:

1
2
3
4
#!/bin/sh
xrdb $HOME/.Xresources &
openbox &
xterm -bg black -fg gray &

Make the script executable:

1
chmod +x ~/.vnc/xstartup

Get rid of setup quirks

There are certain things that linuxdcpp doesn’t like, so run the following commands:

1
2
gdk-pixbuf-query-loaders > /usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
mkdir -p /root/.local/share

Run VNC

Run the following to start VNC

1
vncserver -depth 24 -geometry 1280x800 -nolisten tcp :1

You will be asked to set a password - this is your VNC password for later.

Setting up PuTTY

Download PuTTY and run. Enter your host details.

host.png

Go to Connection > SSH > Tunnels and create a tunnel on port 5901 for VNC. Don’t forget to press “Add”

tunnel.png

Press “Open” to connect. Enter root for the username and then type the password you specified earlier with passwd.

Now, download and install TightVNC and open the viewer. Connect to localhost:5901. Type the VNC password and press enter. You will now be connected to a remote desktop.

Open LinuxDC++ with linuxdcpp.

Done!

Comment and share

  • page 1 of 1

Jacob Ludriks

author.bio


author.job