OVH Community, your new community space.

How-To: Configure your Debin 6 Server using Wheezy instead of Squeeze

30-07-2012, 13:17
If you received your VKS/VPS Debian 6 Squeeze server but you want to use Wheezy and feel lost, read this guide.

Connecting with an SSH client software
Use an ssh client software like putty to connect to your server
From your SSH console, do the following tasks

Changing Password
Type your new password
Type it again

Changing source list
cat > /etc/apt/sources.list << EOF
# Wheezy - Testing
deb testing main contrib non-free
deb-src testing main contrib non-free

deb wheezy/updates main contrib non-free
deb-src wheezy/updates main contrib non-free

deb testing-proposed-updates main contrib non-free
deb-src testing-proposed-updates main contrib non-free
# Unstable
deb unstable main contrib non-free

Setting apt preferences
cat > /etc/apt/preferences << EOF
Package: *
Pin: release a=testing
Pin-Priority: 900

Package: *
Pin: release a=unstable
Pin-Priority: 800

Install XFCE and multiple useful applications
apt-get update

apt-get install xorg xfce4 xrdp alsa-base alsa-utils cpufrequtils gamin xdg-utils desktop-base gnome-icon-theme dmz-cursor-theme xfce4-terminal xfce4-power-manager xfce4-screenshooter thunar-archive-plugin thunar-media-tags-plugin xfburn htop squeeze bzip2 zip unzip unrar-free transmission-gtk xchat mplayer-gui gpicview gimp dia geany epdfview chmsee galculator ttf-liberation xfce4-cpugraph-plugin joe libreoffice

apt-get install Synaptic
At the end of the installation, a message will prompt.
Type :q to exit and continue

apt-get install t unstable iceweasel

Configuring VNCServer
you will have to choose a login password (8 characters maximum)

vncserver -kill :1

joe .vnc/xstartup

Modify the bold lines
# Uncomment the following line
# Comment the following line
#x-window-manager &
# Add the following line at the end of the file
startxfce4 &
Ctrl-kx exit and save the file

When you are ready to connect using vncserver type:

On your remote computer, using a client software like tightVNC, enter the following remote address:
Password: the password you entered when configuring VNCServer

When you are not using vncserver, kill the process to save memory
vncserver -kill :1

Connecting to your server
You can now connect to your server using Remote Desktop Connection from a Windows computer, or using a vnc client software like TightVNC.

Have fun