I mentioned on another thread that I got jaakkos' roller working under Windows, and that led another user to contact me in private about getting it working. He also suggested I explain how it's done publicly, something I agreed with. So I made a little tutorial on how to do it. As the thread title says, no virtual machines are involved - you don't need to download VirtualBox and a huge Linux DVD, with the resource usage that implies. This method only requires a ~200MB download, and demands very little CPU and RAM. Please note this doesn't work under x64.
For the expert Linux crowd - I know this may not be the fastest or more efficient way, but it's the best one I've found. For the non-technical people, or those who don't know much about Linux (e.g. me!), don't worry - this is very easy to do. You can get the roller working in 10 minutes if you follow the steps correctly.
First of all, you need to download two files - the Cooperative Linux 0.7.9 installer, and a basic, bare-bones Ubuntu image. Here are the links.
Downloading took me around 20 minutes on a 3 megabit connection.
When the downloads are finished, run coLinux-0.7.9.exe.
Click "I Agree".
In the list at the right, click on the + before coLinux, and untick the following things:
- Virtual Ethernet Driver (coLinux TAP-Win32)
- Bridged Ethernet (WinPcap)
- Kernel Bridged Ethernet (ndis)
- Virtual Serial Device (ttyS)
Also untick "Root Filesystem image Download" below.
Change the path to C:\coLinux.
Click "Next" and wait until it finishes.
Untick "Show Readme", and click "Finish".
Now you have to extract the content of base-200-10-11-11.7z to C:\coLinux. This may take some time. In the meantime, you can do the following.
Open your C: drive in Windows Explorer. Create a directory called Temp, with an uppercase T (this is important).
Open C:\coLinux, create a file called ubuntu.conf (not .conf.txt!), and type the following inside:
Then create a file called Ubuntu.bat (not .bat.txt) with following line inside:
Now you must create the Linux swap file. Press Windows+R, type cmd in the Run box, and press Enter. In the window that will appear, run the following commands. Press Enter after every command.
@start colinux-daemon.exe @ubuntu.conf
By now, base-200-10-11-11.7z has probably already finished extracting, so your C:\coLinux should look like this.
cd /d C:\coLinux
fsutil file createnew swap.vdi 134217728
You can now run Linux by executing the Ubuntu.bat you created before. Wait until it boots. It may take a while.
When it stops to ask for a "speedlinux login" (this will happen every time you boot), type root and press Enter. The password is the same.
Now you have to create or update the swap device. You can paste each line by copying it and pressing Edit -> Paste in the console. Press Enter after every command.
Ignore any error messages. After that, run these other following commands to delete some unnecessary files.
mknod /dev/cobd1 b 117 1
Those are all one-time operations. Now you must reboot to obtain network support and download ADOM and Sage. Go to File -> Reboot. Wait until it's done.
rm -rf /lib/modules/*-co-*
When it's done rebooting, run the following commands. Note it seems that a QWERTZ layout is used by default. You will need to press Z instead of Y in your keyboard to be able to type loadkeys this time.
That will clear the screen, set a US keyboard layout, create the mount point that will be shared with Windows, and install the nano editor. (If you aren't familiar with the US keyboard, this will let you know which key types what.) Wait until apt-get finishes downloading and installing, then:
apt-get install nano
Add the following lines before exit 0:
That will make Linux use the US layout and mount the Temp folder every time it boots. Press Ctrl+X, say 'Y'es when nano asks you to save, and press Enter when it asks for the "file name to write".
mount -t cofs 0 /mnt/C
Now you must run the following bunch of commands (don't worry, we're getting close to finishing ). Remember to wait until each one is done, particularly wget.
tar xvf adom-111-elf.tar
tar xvf adom-sage-jaakkos.tar
mv adom ../adom-sage-jaakkos/
The last one will run ADOM. You must exit the game, then run it again.
Now you can roll the character the way you want it, just like in the server!
You'll probably want to save your game and play in the version of your choice, though. (Mine is winbeta4.) To achieve that, you must use the following commands after saving and exiting.
"YourName" is obviously the name of your character. If it doesn't work, use ls -a to get a list of the files in this directory.
mv YourName.svg /mnt/C
mv will move the SVG to C:\Temp. Remember Linux is case-sensitive, so YourName.svg isn't the same as yourname.svg or YOURNAME.SVG at all! Use capital letters correctly.
If you wish to run the roller again, straight from this folder, use this.
Then you'll still be here when you finish rolling and exit, so you can simply run the 'mv' command above.
Now you can fetch the SVG under Windows and play however you want!
Credits go to the coLinux developers, Linux documentation sites, the ADOM Sage developers, jaakkos for coding the roller, and of course Mr. Biskup for creating this wonderful game.
If you have any questions, please let me know.