I’ve been working with Terran on setting up a Call of Duty 4 server ever since he got a loan of a dedicated Linux box somewhere in Europe (I can’t remember if it was France or Germany).
I started uploading the 6GB of files from my installation necessary to run the server, but the rsync kept failing. Even without this trouble it was still going to take ages to upload 6GB, so Terran downloaded an ncurses (command-line) BitTorrent client and started downloading a CoD4 ISO. This finished last night so I went about getting those precious install files out of it.
- First I dropped in my SSH public key with SCP
locomoco:~ scp ~/.ssh/id_rsa.pub root@123.123.123.123:.
- I made sure that I had an up-to-date X11 install.
- I opened X11 to get an xterm up and SSH’d into the server with X-forwarding on (and xauth junk turned off by using -Y instead of -X).
locomoco:~ ssh -Y root@123.123.123.123
- Adding my public key to authorised_keys so I won’t be asked for passwords anymore when SSH’ing in as root.
remote:~ cat id_rsa.pub >> .ssh/authorised_keys
remote:~ rm id_rsa.pub
- Installing wine:
remote:~ apt-get install wine
- Mounted the ISO:
remote:~ mkdir /mnt/cod4
remote:~ mount -o loop ~/cod4.iso /mnt/cod4
- The server has a small partition (/dev/sda1) for / and a large one (/dev/sda2) for /home, so I moved ~root’s .wine folder out of /root to have some more room for the virtual C: drive:
remote:~ mkdir /home/cod4/
remote:~ mv ~root/.wine /home/cod4/
remote:~ ln -s /home/cod4/.wine .wine
- Then it’s ready to be installed! (I hope your X server is set up right!)
remote:~ wine /mnt/cod4/setup.exe
- Once it’s installed I pulled extra files from home into the install directory (/home/cod4/install/):
remote:~ rsync --progress -avz daniel@locomoco:/cygdrive/c/Games/CoD4/Main /home/cod4/install/
- I repeated this for the zone and Mods folders
- Unmount the ISO:
umount /mnt/cod4
rmdir /mnt/cod4
- Now I just need Terran to set up the server!