No announcement yet.

OVH Servers with Debian 4.0

  • Filter
  • Time
  • Show
Clear All
new posts

  • OVH Servers with Debian 4.0

    This tutorial, is only for servers with Debian 4.0.

    Programs needed:
    Putty -> h**p://
    VNC -> h**p://

    How to:
    After receiving the server information, go to Putty and set the server ip at "Host Name (or IP Address)" field (see the picture below).

    After that, click on "Open" button. It will appears something like the picture below.

    Now, you need to set the information (username and password), that appears at the email from OVH.
    Tip: To paste on Putty, click with mouse (right button) on the green square.

    Change Password.
    New password:

    Delete SSH key authentication:
    #ls .ssh
    #rm .ssh/authorized_keys2

    Nano - Text Editor:

    Here, you only need to know how to save and exit from Nano. To save, press Ctrl+O and to exit, press Ctrl+X. For now, exit from Nano (Ctrl+X).

    Sistem Update:
    #apt-get update
    #apt-get upgrade

    You need to say "Yes" when asked if we want to do the update. Only need to write "Y" and press Enter.

    For those who want to install Flash on server:
    #nano /etc/apt/sources.list

    Place the following at the end:
    deb h**p:// etch-backports main contrib non-free

    Note: Change "**" for "tt".

    Press Ctrl+O, Enter and Ctrl+X.
    #wget h**p://
    #apt-key add archive.key

    Note: Change "**" for "tt".

    #apt-get update

    Software intalation:
    #apt-get install vncserver wine xterm fluxbox vsftpd firefox vnstat
    #apt-get -t etch-backports install fluxbox

    Create user:
    #useradd -m your_nick
    #passwd your_nick

    New password:

    Now click on the top of Putty, right-click and select "Duplicate Session". This time we enter the new user we just created, and can close the Putty session to another. (To exit, write "Exit" and press Enter.)
    Now we have a new symbol "$" instead "#". It means we are within the user account and not the root account.

    Configure VNC:

    Let's start by configuring the fluxbox:
    $mkdir .vnc
    $nano .vnc/xstartup

    We are going to write this new fluxbox window, Ctrl + O , enter and Ctrl + X again.
    Now we make XSTARTUP as an executable:
    $chmod +x .vnc/xstartup

    Will request a new password the first time I started the VNC, which can put the same account used for the user.

    $vncserver :1 -geometry 1280x900 -depth 24

    Can change the resolution to the most appropriate to your PC.
    If the server crash we need to restart the VNC again, so we used the code (attention not to use now, only in case of crash):
    $ vncserver-kill: 1

    We will now open the VNC Viewer:

    Place the IP of the server and will ask for the password you created at the VNC. If you already forgot the pass, may change again in Putty entering the code is:
    $ vncpasswd

    Install uTorrent and WebUI:
    After opening the VNC we click with the right mouse button and browse xterm (is another terminal like Putty).
    Let's go install uTorrent:
    $ Wget h**p://

    Note: Change "**" for "tt".

    Then, we click cancel. It is not to Install uTorrent as windows and we write the code:
    $ wine utorrent.exe

    Tips to configure uTorrent:
    - Choose a port for uTorrent
    - Enable encryption (Optioins / preferences / BitTorrent / Encryptation Protocol -> forced)
    - Disable DHT, Local Peer Discovery, Peer Exchange.
    - No Randomize ports, disable UPnP port mapping & NAT-PMP port mapping
    - Enable WebU Interface

    Choose a nickname and a password.
    - At Advanced Options, set gui.delete_to_trash to FALSE
    - Unselect the option "Minimize to tray" and "Close to tray".

    Now to access WebUI only have to open IE or FF and put h**p://your_ip_server:port/gui
    Note: Change "**" for "tt".

    your_ip_server - IP of the server
    port - port that you have chose at uTorrent

    When you try to enter, will ask to put in the login that you have chose on WebUI section.

    FTP server:
    Open Putty:

    Place the password to change for the root account (password chosen when creating the account user).
    #apt-get install openssl
    #openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /root/vsftpd.pem -out /root/vsftpd.pem
    #nano /etc/vsftpd.conf

    And we will change the following:

    Remove the # (that means comment) that precedes the file you want to edit.

    Copy this to the end:

    Save and exit.
    #/etc/init.d/vsftpd start
    #/etc/init.d/vsftpd restart
    #update-rc.d vsftpd defaults

    Now you can access the server via FTP to download everything that have on the seedbox to your PC. Only need to download "Filezilla". For example:

    On Host, put: sftp://ks (change the xxx to the proper, it appears at OVH email)
    Username: "your nick" (created at the begin)
    Password: "you password"
    Port: 22

    Firefox and Flash:
    #apt-get -t etch-backports install flashplugin-nonfree

    Configurar Fluxbox:
    Open Putty again:
    $nano ~/.fluxbox/menu

    We will delete everything that is here and we will copy the following code to it:
    [begin] (Fluxbox-1.0.0)
    [encoding] {UTF-8}
    [exec] (firefox) {firefox}
    [exec] (xterm) {xterm}
    [exec] (uTorrent) {wine ~/utorrent.exe}
    [submenu] (fluxbox menu)
    [config] (Configure)
    [submenu] (System Styles) {Choose a style...}
    [stylesdir] (/usr/share/fluxbox/styles)
    [submenu] (User Styles) {Choose a style...}
    [stylesdir] (~/.fluxbox/styles)
    [workspaces] (Workspace List)
    [submenu] (Tools)
    [exec] (Screenshot - JPG) {import screenshot.jpg && display -resize 50% screenshot.jpg}
    [exec] (Screenshot - PNG) {import screenshot.png && display -resize 50% screenshot.png}
    [exec] (Run) {fbrun }
    [exec] (Regen Menu) {../util/fluxbox-generate_menu }
    [submenu] (Window Managers)
    [restart] (mwm) {mwm}
    [restart] (kde) {startkde}
    [commanddialog] (Fluxbox Command)
    [reconfig] (Reload config)
    [restart] (Restart)
    [exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) 2> /dev/null | xmessage -file - -center}
    [exit] (Exit)
    Save and exit again.

    The end...

    I hope that can help someone.....
    Last edited by Scorpion; May 22, 2009, 04:48 PM.

  • #2
    Great great tutorial..Thanks!

    I had to make some changes for Debian-Lenny:

    When setting up the apt packages, changed:
    Place the following at the end:
    deb h**p:// etch-backports main contrib non-free
    deb h**p:// lenny-backports main contrib non-free

    All my instances that called back to where updated to "lenny-backports"

    When setting up the Software section, changed:
    Software intalation:
    #apt-get install vncserver wine xterm fluxbox vsftpd firefox vnstat
    #apt-get -t etch-backports install fluxbox
    #apt-get install vnc4server wine xterm fluxbox vsftpd iceweasel vnstat
    #apt-get -t lenny-backports install fluxbox

    This was because, vncserver had been replaced by vnc4server and Firefox is now IceWeasel on Debian Lenny..

    Then, when configuring FluxBox, I had to create the ./fluxbox directory since it didn't exist on my server for some reason, so:
    Configurar Fluxbox:
    Open Putty again:
    $nano ~/.fluxbox/menu
    Turned into:
    $mkdir ~/.fluxbox
    $nano ~/.fluxbox/menu

    I then copied, pasted the menu items into the menu file and ctrl-O(save) and ctrl-X (close) out of it.

    THEN I had to reboot my server because fluxbox was throwing the "cannot connect to xserver" error.

    Once I rebooted, relogged in via putty,
    Restarted vnc4server and relogged into the seedbox via RealVNC
    My FluxBox'd seedbox was there, nice and clean and beautiful!

    Stay tuned for TorrentFlux install and results..
    Last edited by Evolutionary; June 6, 2009, 05:10 PM.

    You can always hit the THANKS button at the bottom of posts or the at the bottom left if you've been helped by someone.