OVH Community, your new community space.

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


vlaine
30-07-2012, 12: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
Software: http://www.chiark.greenend.org.uk/~s.../download.html
Guide: http://www.electrictoolbox.com/articl...ons/ssh-putty/
From your SSH console, do the following tasks

Changing Password
passwd
Type your new password
Type it again

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

deb http://security.debian.org wheezy/updates main contrib non-free
deb-src http://security.debian.org wheezy/updates main contrib non-free

deb http://ftp.debian.org/debian/ testing-proposed-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ testing-proposed-updates main contrib non-free
# Unstable
deb http://ftp.debian.org/debian/ unstable main contrib non-free
EOF


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

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


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
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
unset SESSION_MANAGER
[...]
# 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:
vncserver

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

When you are not using vncserver, kill the process to save memory
vncserver -kill :1
http://www.tightvnc.com/download.php

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