Author Topic: Running Server on Debian. Step by step.  (Read 17332 times)

0 Members and 1 Guest are viewing this topic.

Offline Alexander

Running Server on Debian. Step by step.
« on: October 30, 2012, 05:58:16 pm »
Step 1: If you have Debian 6+ skip this step
Debian 5(What Trulys Server uses) and older debian versions:
Open your apt repositories using
vi /etc/apt/sources.list

You will see some old repos that don't exist anymore.
Press a to activate insert mode
Remove the lines that exist
Replace with
deb http://archive.debian.org/debian lenny main contrib non-free
EDIT: Press the esc key to exit insert mode then press : followed by x then enter.
Replacing Lenny with your Debian distro is you have something older than Debian 5.

Step 2:
Issue the following commands
pressing y to all questions
Quote
apt-get update
apt-get upgrade
apt-get install fluxbox
apt-get install wine
wget http://winetricks.org/winetricks
mv winetricks /bin/
chmod +x /bin/winetricks
apt-get install cabextract
apt-get install vnc4server
apt-get install proftpd
apt-get install xterm
rmdir /var/www/
useradd /home/ftpuser -s /bin/bash -c "Name FTPUserAccount" ftpuser
mkdir /home/ftpuser
mkdir /home/ftpuser/www
mkdir /home/ftpuser/server
chown -R ftpuser /home/ftpuser/
ln -s /home/ftpuser/www /var/www
ln -s /home/ftpuser/server /root/server
cd /root/.wine/drive_c/windows
wget http://saints-rpgwo.co.cc/backbone/COMCTL32.OCX
wget http://saints-rpgwo.co.cc/backbone/COMDLG32.OCX
wget http://saints-rpgwo.co.cc/backbone/dx7vb.dll
wget http://saints-rpgwo.co.cc/backbone/MSCOMCTL.OCX
wget http://saints-rpgwo.co.cc/backbone/MSINET.OCX
wget http://saints-rpgwo.co.cc/backbone/MSMAPI32.OCX
wget http://saints-rpgwo.co.cc/backbone/MSSTDFMT.dll
wget http://saints-rpgwo.co.cc/backbone/Msvbvm60.dll
wget http://saints-rpgwo.co.cc/backbone/MSWINSCK.OCX
wget http://saints-rpgwo.co.cc/backbone/Richtx32.ocx
wget http://saints-rpgwo.co.cc/backbone/TABCTL32.OCX
cd ~
wget http://saints-rpgwo.co.cc/backbone/setup.exe
wget http://saints-rpgwo.co.cc/backbone/Client.CAB
wget http://saints-rpgwo.co.cc/backbone/SETUP.LST
passwd ftpuser
Now input whatever you desire for ftp password.

Step 3:
Issue one of the two following commands
Quote
vnc4server :0
vnc4server -depth 8 -geometry 640x480 :0
I suggest the second one only if you run a low spec VPS/computer.

It will ask you for a vnc password input the desired password.
Now open a vnc viewer
I usually use http://www.realvnc.com/download/viewer/
alternatively you could try http://www.tightvnc.com/download.php

The vnc server will be equal to what you get if you issue ifconfig.
Look for a non local ip.
If you are using a VPS it will be the ip your host gave you for vps.
The :0 at the end makes the port 5900 if you omit the :0 it will be 5901+

Once you are in the vnc right click->applications->terminal emulators->xterm
once xterm is open
Issue the command winecfg

Set the default wine os to Windows 98
Add the libraries specified in http://appdb.winehq.org/objectManager.php?sClass=application&iId=9747

Press ok on the winecfg once done.
Then issue the command wine setup.exe
Go through the usual rpgwo setup
Once back at the xterm issue the command winetricks.
This will open winetricks(hopefully).
Select the Default WinePrefix
Install windows dlls or components
Select anything that mentions VB6.
If you get a error that says download VB6 runtimes manually then put in directory do that then run again.

After you finish with runtimes you should be good but I install all windows fonts just in case.

Step 4.
Open ftp using ftp://IPOFSERVER/ ->If you get errors using windows explorer download ftp commander or another ftp client.
Username if you followed my instructions too closely is ftpuser
password is whatever you set it to.

Upload your server.exe and all its inis/etc. to the server directory
Upload your SERVERNAME.files folder into the www directory.

Step 5.

Open VNC back up.
Open a xterm window.
Issue the command wine /root/server.exe
also wine server/server.exe should work

Congratulations Your server should now be in full operation.


This will be my last post.
I do not care for most the community members.
However I wrote this guide as I do like the game and Nowdays
you can rent a vps capable of running rpgwo for about $3 per month.
These steps should work just as well for v2 servers.
RPGWOForums Consists primarily of trolls.

Offline Alexander

Re: Running Server on Debian. Step by step.
« Reply #1 on: April 02, 2013, 12:50:29 pm »
Yesterday I was talking to Roar about his/her server.
He/She is hosting it on a windows vps at the moment.
I was telling him/her how I would be willing to set up a Debian VPS if he/she wanted.
I then told him/her about this guide.

The problem with my above guide is, It is out of order and not very user friendly.

So I made this
Code: [Select]
printf '#!/bin/sh\napt-get update\napt-get upgrade -y --force-yes\napt-get install openbox -y --force-yes\napt-get install lxterminal -y --force-yes\napt-get install vnc4server -y --force-yes\napt-get install wine -y --force-yes\napt-get install cabextract -y --force-yes\ncd ~\nwineprefixcreate\nwget http://winetricks.org/winetricks\nchmod +x winetricks\n./winetricks -q baekmuk\n./winetricks -q cmd\n./winetricks -q comctl32\n./winetricks -q comctl32ocx\n./winetricks -q comdlg32ocx\n./winetricks -q consolas\n./winetricks -q corefonts\n./winetricks -q crypt32\n./winetricks -q droid\n./winetricks -q msasn1\n./winetricks -q riched20\n./winetricks -q riched30\n./winetricks -q richtx32\nmv winetricks /usr/bin/winetricks\nwget http://saints-rpgwo.tk/RPGWOServer.tar.gz\nmkdir ~/server\nmv RPGWOServer.tar.gz ~/server/\ncd ~/server/\ntar zxf RPGWOServer.tar.gz\nrm RPGWOServer.tar.gz\nmkdir ~/.vnc\nvnc4server :0' >> setup.sh && chmod +x setup.sh && ./setup.sh
Run the above as root user on Debian 6+.
After you run the above open up a vnc viewer and put in the debian vps ip, using the password you created at the end of the above script.

Right click the desktop and select terminal emulator.
The above script put a default rpgwo 1.15 server and additional ocx/dlls that help wine.
You can run the default RPGWO 1.15 server using "wine server/server.exe".
When you upload your own server. Be sure to copy the OCX/DLL files.
If you want less errors you can use some tips from the first post on here.

EDIT: Usually a debian VPS come with apache pre installed.
You can upload your server's client files(the zlibs and master2.dat) to /var/www/
« Last Edit: April 02, 2013, 12:56:29 pm by Alexander »
RPGWOForums Consists primarily of trolls.

Offline Alexander

Re: Running Server on Debian. Step by step.
« Reply #2 on: December 08, 2013, 05:50:19 pm »
I do not wish to keep a extra site running just for this topic.
So anybody interested in using a Debian VPS to run RPGWO use this updated script.

Code: [Select]
printf '#!/bin/sh\napt-get update\napt-get upgrade -y --force-yes\napt-get install openbox -y --force-yes\napt-get install lxterminal -y --force-yes\napt-get install vnc4server -y --force-yes\napt-get install wine -y --force-yes\napt-get install cabextract -y --force-yes\ncd ~\nwineprefixcreate\nwget http://winetricks.org/winetricks\nchmod +x winetricks\n./winetricks -q baekmuk\n./winetricks -q cmd\n./winetricks -q comctl32\n./winetricks -q comctl32ocx\n./winetricks -q comdlg32ocx\n./winetricks -q consolas\n./winetricks -q corefonts\n./winetricks -q crypt32\n./winetricks -q droid\n./winetricks -q msasn1\n./winetricks -q riched20\n./winetricks -q riched30\n./winetricks -q richtx32\nmv winetricks /usr/bin/winetricks\nwget http://www.hotlinked.org/files/1386567219.ra\nmv 1386567219.ra RPGWOServer.tar.gz\nmkdir ~/server\nmv RPGWOServer.tar.gz ~/server/\ncd ~/server/\ntar zxf RPGWOServer.tar.gz\nrm RPGWOServer.tar.gz\nmkdir ~/.vnc\nvnc4server :0' >> setup.sh && chmod +x setup.sh && ./setup.sh

On a related note: You can paste the above script/series of commands into putty via right click.
RPGWOForums Consists primarily of trolls.

 

Related Topics

  Subject / Started by Replies Last post
Best Server

Started by Grinch « 1 2 3 4 » RPGWO Chat

61 Replies
8844 Views
Last post October 19, 2010, 02:59:22 pm
by Bajoegin
24 Replies
2562 Views
Last post August 03, 2006, 12:25:41 pm
by @@Admin Nash
16 Replies
1645 Views
Last post November 20, 2006, 11:48:50 am
by chronolink
8 Replies
1604 Views
Last post July 19, 2010, 03:31:08 pm
by north star
7 Replies
1625 Views
Last post May 24, 2015, 05:34:58 pm
by Aero