Ixtabay
Sorceror
This is a brief guide to getting RunUO 2.2 (latest as of 9 Feb, 2012) along with Nerun's Distro up and running on an old/extra computer using openSUSE Linux and Mono. I followed these steps last night and was able to get RunUO up and running from scratch in about an hour.
You will need:
2. On your main computer, download the openSUSE 12.1 DVD (4.7GB) and burn it. Here is the URL: http://software.opensuse.org/121/en
3. Boot your RunUO Server from the openSUSE DVD you just burned and install with defaults. I recommend using the default KDE desktop.
4. After about 10-20 minutes, depending on the speed of your RunUO Server, installation will complete and reboot. Remove the openSUSE boot DVD for now and let your RunUO Server boot with the new installation of openSUSE 12.1.
5. Once you are logged in to openSUSE, click openSUSE's equivalent to the windows START button, in the lower left corner of the screen. This little green circle emblazoned with a chameleon head is called the “Kickoff Application Launcher.” Select “Computer,” and then “Install/Remove Software.” You will be prompted for your user password. Search for “mono,” and then click the box next to “mono-complete.” Then, click the “Accept” button. You will be prompted to reinsert your openSUSE 12.1 installation DVD. The installation will take a few minutes.
6. Next, you will need to copy the UO client from your main PC to your RunUO Server. For this, use a USB drive. Copy your Ultima Online folder with all contents to your USB drive, then copy from your USB drive to your home folder.
7. Now you are ready to download and compile RunUO. Launch “Konsole” on your RunUO Server and enter the command “pwd” to verify you are in your home folder. You should see the command return “/home/<yourUserName>.” If not, enter “cd /home/<yourUserName>” (i.e. “cd /home/ixtabay”)
8. Download the latest RunUO source with the following command:
svn export http://svn.runuo.com/repos/runuo/devel/
9. This will export the code to a folder called “devel.” Rename this folder to runuo with the following commend:
10. Change to the runuo folder by entering the command:
11. Now compile RunUO.exe with the following command:
12. Create the RunUO.exe.config file with the following commands:
13. Now, your server is ready to run, but you will have no NPCs, monsters, etc. So, let's grab NERUN's latest. For more information about Nerun's Distro check here (http://www.runuo.com/community/threads/runuo-2-1-neruns-distro.457586/) Go back to your home folder, back up your current work, then create and enter a folder called “neruns” with the following commands:
14. Now that you have downloaded the Data and Scripts folders from Nerun's repository, you will need to copy then to your runuo folder, overwriting any existing. You can do this graphically with openSUSE by copying Data and Scripts from the neruns folder and pasting them into your runuo folder, or via command (note, replace <yourUserName> with your user name i.e. “bob”)
15. You will need to update one additional file to avoid crash due to a known issue. In your runuo/Scripts/Mobiles folder, replace the existing BaseCreature.cs with the one Nerun links in this post: http://www.runuo.com/community/threads/runuo-2-1-neruns-distro.457586/page-8
16. Now, you will need to open your openSUSE firewall in order to allow connection from your client. Click the “Kickoff Application Launcher” (little green circle bottom left like START button on Windows) and enter “firewall” in the search box. Select the Firewall application and you will be prompted for your password. Enter your password, then click “Custom Rules” for “Internal Zone” and click “Add.” Enter the following values:
Source Network: 0/0
Protocol: TCP
Destination Port: 2593
Source Port: 2593
Additional Options: (just leave this blank)
Then click “Add,” “Next,” and “Finish.”
17. One more step before you launch. You will need to set the Data path to the “Ultima Online” folder (the UO client your copied over in Step 6.) To do this, browse to /home/<yourUserName>/runuo/Scripts/Misc and edit the file DataPath.cs. On line 16, change to:
private static string CustomPath = @"/home/<yourUserName>/Ultima Online";
18. Save DataPath.cs, change to your runuo folder and launch! From Konsole:
19. RunUO will launch and begin listening. Now connect with your client from your main computer using Razor.
If you experience any errors, please post here.
Cheers,
Ixtabay
--------------------------- added 2/9/2012
You will need to edit: /runuo/Scripts/Customs/Nerun's Distro/New/Engines/Staff Runebook/Main.cs
Find:
Change to:
The original code will create a folder named "Saves/Staff Runebook" instead of creating nested a folder named "Staff Runebook" within the existing "Saves" folder.
You will need:
- Patience
- An old computer, herein after referred to as “Your RunUO Server,” with at least 512kb and P4 (or AMD equivalent),at least 1 USB port, an ethernet port, and a DVD drive. You can also use the DVD image to create a bootable USB drive, but we will not cover that in this guide. (You should be able to find that information quickly if you google it.)
- A blank DVD
- A USB dive with at least 2GB of free space.
- Internet connection
- Ultima Online installed on your client/main computer patched up to 7.0.19.0
2. On your main computer, download the openSUSE 12.1 DVD (4.7GB) and burn it. Here is the URL: http://software.opensuse.org/121/en
3. Boot your RunUO Server from the openSUSE DVD you just burned and install with defaults. I recommend using the default KDE desktop.
4. After about 10-20 minutes, depending on the speed of your RunUO Server, installation will complete and reboot. Remove the openSUSE boot DVD for now and let your RunUO Server boot with the new installation of openSUSE 12.1.
5. Once you are logged in to openSUSE, click openSUSE's equivalent to the windows START button, in the lower left corner of the screen. This little green circle emblazoned with a chameleon head is called the “Kickoff Application Launcher.” Select “Computer,” and then “Install/Remove Software.” You will be prompted for your user password. Search for “mono,” and then click the box next to “mono-complete.” Then, click the “Accept” button. You will be prompted to reinsert your openSUSE 12.1 installation DVD. The installation will take a few minutes.
6. Next, you will need to copy the UO client from your main PC to your RunUO Server. For this, use a USB drive. Copy your Ultima Online folder with all contents to your USB drive, then copy from your USB drive to your home folder.
7. Now you are ready to download and compile RunUO. Launch “Konsole” on your RunUO Server and enter the command “pwd” to verify you are in your home folder. You should see the command return “/home/<yourUserName>.” If not, enter “cd /home/<yourUserName>” (i.e. “cd /home/ixtabay”)
8. Download the latest RunUO source with the following command:
svn export http://svn.runuo.com/repos/runuo/devel/
9. This will export the code to a folder called “devel.” Rename this folder to runuo with the following commend:
Code:
mv devel runuo
Code:
cd runuo
11. Now compile RunUO.exe with the following command:
Code:
gmcs -optimize -unsafe -d:MONO -out:RunUO.exe -win32icon:Server/runuo.ico -recurse:Server/*.cs
12. Create the RunUO.exe.config file with the following commands:
Code:
echo "<configuration>" >> RunUO.exe.config
echo " <dllmap dll=\"libz\" target=\"libz.so.1.2.5\"/>" >> RunUO.exe.config
echo "</configuration>" >> RunUO.exe.config
Code:
cd ..
tar -cvxf runuo-backup.tar /runuo
mkdir neruns
cd neruns
svn export http://runuo-nerun-distro.googlecode.com/svn/trunk/Distro%20for%20RunUO%202.2/Data/
svn export http://runuo-nerun-distro.googlecode.com/svn/trunk/Distro%20for%20RunUO%202.2/Scripts/
14. Now that you have downloaded the Data and Scripts folders from Nerun's repository, you will need to copy then to your runuo folder, overwriting any existing. You can do this graphically with openSUSE by copying Data and Scripts from the neruns folder and pasting them into your runuo folder, or via command (note, replace <yourUserName> with your user name i.e. “bob”)
Code:
cp -rf /home/<yourUserName>/neruns/ /home/<yourUserName>/runuo/
15. You will need to update one additional file to avoid crash due to a known issue. In your runuo/Scripts/Mobiles folder, replace the existing BaseCreature.cs with the one Nerun links in this post: http://www.runuo.com/community/threads/runuo-2-1-neruns-distro.457586/page-8
16. Now, you will need to open your openSUSE firewall in order to allow connection from your client. Click the “Kickoff Application Launcher” (little green circle bottom left like START button on Windows) and enter “firewall” in the search box. Select the Firewall application and you will be prompted for your password. Enter your password, then click “Custom Rules” for “Internal Zone” and click “Add.” Enter the following values:
Source Network: 0/0
Protocol: TCP
Destination Port: 2593
Source Port: 2593
Additional Options: (just leave this blank)
Then click “Add,” “Next,” and “Finish.”
17. One more step before you launch. You will need to set the Data path to the “Ultima Online” folder (the UO client your copied over in Step 6.) To do this, browse to /home/<yourUserName>/runuo/Scripts/Misc and edit the file DataPath.cs. On line 16, change to:
private static string CustomPath = @"/home/<yourUserName>/Ultima Online";
18. Save DataPath.cs, change to your runuo folder and launch! From Konsole:
Code:
cd /home/<yourUserName>/runuo
mono RunUO.exe
If you experience any errors, please post here.
Cheers,
Ixtabay
--------------------------- added 2/9/2012
You will need to edit: /runuo/Scripts/Customs/Nerun's Distro/New/Engines/Staff Runebook/Main.cs
Find:
Code:
public static string SavePath = "Saves\\Staff Runebook"; // "ROOT\..."
Change to:
Code:
public static string SavePath = "Saves/Staff Runebook"; // "ROOT\..."
The original code will create a folder named "Saves/Staff Runebook" instead of creating nested a folder named "Staff Runebook" within the existing "Saves" folder.