kubuntUO - RunUO linux for human beings

Friday, December 15, 2006

Scripts to Modify

Greetings,

Here are the files I have been editing, if you would like to play along.

kubuntUO-22FEB2007.tar.gz

I have been using the modificaiton post by groboclown on the RunUO forums...

http://www.runuo.com/forums/showthread.php?p=623687#post623687

I am currently using RunUO v2 - SVN r159

-Ravon

Notes: Complie Command

Greetings,

I can never seem to find this command when I need it. It is used to compile ".cs" files.

$ gmcs -define:MONO -debug -nologo -out:./test.exe -unsafe -recurse:*.cs

NOTE: This is just a mental note for me. Please ignore this.

-Ravon


Installing Ultima Online

Greetings,

Well things are progressing well so far. Now let's install Ultima Online using Wine.

Click "K" (you know by now the "START" for you lingering Windows users), then System , then Konsole Terminal Program.

Check your version of Wine by typing...
wine --version

You should get wine-0.9.27

Now put your CD in the drive or go to the directory the UO setup files is in.

A little Linux vs Windows help here...
ls = dir
cd / = cd
Now type in the following...
wine uoml_setup.exe

Go with the UO default directories...wait...wait.

When it is done, click the UO icon on the desk and let it patch...wait...wait.

Done! Now you can play on an OSI server.

-Ravon

Aquiring Ultima Online

Greetings,

It is lunch time! Time for you to go out and buy a copy of Ultima Online, we will need that next. I know, I know, you could just download all 750mb of it, but your IT department would not like that. After all, it is just a small way to thank EA for making this game.

-Ravon

Installing MonoDevelop

Greetings,

You thought we just installed Mono, right? Well, yes, however we still need an editor (also known as IDE or GUI). Mono is the language. MonoDevelop is the editing tool to write the code.

First we must enable the ubuntu Universe. What is the ubuntu Universe? So many questions today. The Universe is a list of program availilbe for ubuntu however they were not written or owned by ubuntu. So it is a list that contains third-party software.

Begin by opening up Adept Manager, and click on Adept, then Manage Reposistories.

Scroll down the list till you find a grey line that says...

deb http://us.archive.ubuntu.com/ubuntu/ edgy
deb=src http://us.archive.ubuntu.com/ubuntu/ edgy

Right click on these line and enable them.

Now click Fetch Update, up top.
Search for monodevelop
Check the version and make sure it is v0.12.
Check Request Install and then Click Apply Changes, up top.

Done!

Compiling Mono (no longer needed)

NOTE: This is no longer needed, it has been left here for reference.

Greetings,

It is time to dive deep in to the fun of Linux, compling your own source code. Follow the bouncing ball very closely, because like you, I do not know what I am doing and I am relying on someone elses knowledge.

I take the following information from these two web sites. Both are for older version of ubuntu or older version of mono, but with a few updates, it should work well.

ubuntu v5 - How to compile mono
simios.org - How to compile mono (in portuguese)

Here is my version...

Pre-Requisite
Since we will compile from the sources, us we need some programs before starting. We will also need to satisfy some dependences of the Mono.

bash:~$ sudo apt-get install build-essential pkg-config libglib2.0-dev bison libcairo2-dev
Now we will need a folder to work:
bash:~$ mkdir src
bash:~$ cd src
libgdiplus
Optional - These steps are not needed but it is good for having libgdiplus if you it will be to use the WinForms classrooms. (In other word, "do it".)
bash:~/src/$ sudo apt-get install libungif4-dev libjpeg62-dev libtiff4-dev

Now we go to lower the library:
bash:~/src/$ wget http://go-mono.com/sources/libgdiplus/libgdiplus-1.2.2.tar.gz

... and to unpack:
bash:~/src/$ tar xzf libgdiplus-1.2.2.tar.gz
bash:~/src/$ cd libgdiplus-1.2.2
Now we can compile and install:
bash:~/src/libgdiplus-1.2.2/$ ./configure --prefix=/usr/local
bash:~/src/libgdiplus-1.2.2/$ make
bash:~/src/libgdiplus-1.2.2/$ sudo make install
Now we have that to have certainty that the installed libraries will be visible, diverse forms exist of if to make this, this is one delas. (Translation program like Bable Fish still need a little work to, just do the following.)
bash:~/src/libgdiplus-1.2.2/$ sudo sh -c "echo /usr/local/lib >> /etc/ld.so.conf"
bash:~/src/libgdiplus-1.2.2/$ sudo /sbin/ldconfig
Now go back a folder...
bash:-~/src/libgdiplus-1.2.2/$ cd ..
... on we go to the next step.

Mono
To compile the Mono it is something pleasantly simple:
bash:~/src/$ wget http://go-mono.com/sources/mono/mono-1.2.2.1.tar.gz
bash:~/src/$ tar xzf mono-1.2.2.1.tar.gz
bash:~/src/$ cd mono-1.2.2.1
bash:~/src/mono-1.2.2.1/$ ./configure --prefix=/usr/local --with-preview=yes
bash:~/src/mono-1.2.2.1/$ make
bash:~/src/mono-1.2.2.1/$ sudo make install
bash:~/src/$ cd ..
You can check the installation thus:
bash:~/src/$ mono -V
Mono JIT compiler version 1.1.9.2, (C) 2002-2005 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV : normal
Globalization: normal
You can check the compiler version thus:
bash:~/src/$ gmcs --version
Mono C# compiler version 1.2.2.1
YEAH!! You have now been abducted into the Linux world!!

-Ravon

Manually Installing Mono

Greetings,

After rebuilding my Linxu PC, I found an easier way to install the updated version of Mono, so try this way instead of "Compiling Mono."

Go to the Mono download page at...
http://www.mono-project.com/Downloads

Scroll to the bottom where it says, "Linux Installer for x86". Click and download the stable version - currently Mono 1.2.2.1.

Now open the Konsole and type...

chmod +x mono-1.1.17.1_2-installer.bin
sudo ./mono-1.1.17.1_2-installer.bin
Enter your password and follow the default prompts on the screen. Once your done, reboot.

After your reboot, go to the Konsole and enter the following to make sure it worked...
mono --version

You should see...

Mono JIT compiler version 1.2.2.1, (C) 2002-2006 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Disabled: none


-Ravon

Installing Mono (updated)

Greetings,

Time to pay attention. We need Mono, Mono Compiler, and Mono-Develop. Why? What are they?

Mono is the .NET replacement for Linux.
Mono Compiler, in our case we want gmcs because it compiles .NET 2 which RunUO v2 is written in, builds the executible file.
Mono-Develop is an IDE (or GUI) to edit C# scripts with. The Linux version of Microsoft Visual C# Express or SharpDevelop.

Open Adept Manager and type "mono" in the search field.

For now lets choose "mono". Look at the Candidate Version. Notice that it is version 1.1.17.1. If you go to Mono's web site you will see the current version is 1.2. Bah, this means we will have to manually install our own updated version of Mono.

NOTE: If you are reading this and the Candidate Version has been updated to v1.2 or better, click Request Install and ignore the following ramblings post of "Compiling Mono" or "Manually Installing Mono".

Manually Installing Mono - http://kubuntuo.blogspot.com/2006/12/manually-installing-mono.html

Compiling Mono (no longer needed) - http://kubuntuo.blogspot.com/2006/12/compiling-mono-no-longer-needed.html

-Ravon

Installing Wine

Greetings,

Hey, I can now post from my Linux server. Hopefully, you too have switched from you Windows PC, to your new Kubuntu v6.10 Server.

Now let's move on with installing Wine. With a little luck it appears there is a new version, so we will use Wine 0.9.27 released on Dec 8, 2006.

Oh, we use Wine to run Windows based programs in Linux. The main pupose of this program, to my knowledge, is to run Ultima Online.

First, click "K" (or START icon for you Windows players). Choose SYSTEM, the Adapt Manager Manage Packages.

Enter your password.

Now, we must add Wine's download location (known as a repository) to Adapt.

Do this by selecting Adpat, then Manage Repositories.

In "New Repository" type...
deb http://wine.budgetdedicated.com/apt edgy main
Then ADD. (Do not forget to do this or it will not show up.)
Now click Apply, then Close.

Up top, click Fetch Updates...wait...wait.
Now, in the Search box, type wine and hit enter.
Choose the third one down, just wine and click Request Install.

NOTE: Look under Candidate Version to see the version you are installing. Sometimes the version on the web site may not match the version here in the repository.

Up top, click Apply Changes...wait...wait.

That should to it. (I thought before it added an icon, but it doesn't look like it now.)

NOTE: Here is the website for Wine. http://www.winehq.com/site/download-deb

-Ravon

Installing Firefox

Greetings,

This is a brief detour and now require, however, if you are a Linux beginner and use to using Firefox you may want to go ahead and install it.

Log in and click "K" (it's in the same place the Windows "START" icon is).

Go up to SYSTEM and over to Adpat Manager Manage Packages.

Enter your password. Just a quick note, the "admin" password is the password created by the first user you created when setting up the server. This type of extra security is now being used in Microsoft Vista.

In the search box, enter "firefox" and hit enter. Several versions will appear below. Choose the first one, just firefox.

Click Request Install (you may need to scroll down).

Up top, click Apply Changes...Wait...Wait.

Now when it is done, you can go back to the "K" and look under Internet and you will have Firefox.

-Ravon

Installing kubuntu Desktop

Greetings,

After needing to wipe and reinstall kubuntu server and KDE several times, I deciede to just load kubuntu desktop instead. This process is quick and simple.

NOTE: Here are the links f you wish to use kubuntuo Server and KDE.

kubuntu Desktop
1) Download kubuntu v6.10 and burn it to a CD.
2) Boot to the CD.
3) Click on the install icon.
4) Go with the default, unless you know what your doing.
5) Finally click on the "RESTART" when it is done.

Now do a quick update, similar to a Windows Update.
1) Click on the "K", the "START" button so to speak for Windows users.
2) Choose System, then Adept Package Manager.
3) Enter your "root" password (again to the XP folks that would be the admin password).
4) From the menu bar, pick Adept, then Manage Reposistories.
5) Scroll down to the line that says, "deb http://us.archive.ubuntu.com/ubuntu edgy"
6) Right click and enable it.
7) Now click APPLY.

Your almost there, just a few more things...

1) Click the FETCH UPDATES icon. Wait for it to gather the patches & updates.
2) Click the FULL UPGRADE icon.
3) Click the APPLY CHANGES icon. Wait for it to load them all. Wait...Wait...Wait.
4) Reboot, once it is complete.

DONE! You now have an updated kubuntu desktop computer.

-Ravon

Installing KDE

Greetings,

Being a Windows user and a newbie to Linux, I prefer a GUI and one that looks like Windows. So after installing unbuntu v6.10 server, I also install the KDE interface.

Log in and type the following...
sudo apt-get install kubuntu-desktop
Enter your password again and wait.

You will need 400mb of space, and your ubuntu CD. Put it in the drive and answer "Y" to all the questions.

Wait...wait...wait...Yes, it is installing alot of good stuff, including Open Office and who knows what else, but it's worth it.

NOTE: Here is a good ubuntu site for adding other software too...
http://doc.gwos.org/index.php/DapperGuide#How_to_install_KDE

Once it is finally done, and your are returned to the prompt, re-boot by typing...
sudo shutdown -r now

Yeah! Now doesn't that look prettier! Almost like Windows, almost like home.

-Ravon

Installing ubuntu 6.10 Server

Greetings,

Why ubunut v6.10 Server? Why not? Since I am fairly new at Linux, I like Kubuntu for the desktop, however for a server, I like the idea of having LAMP (Apache - web server, MySQL - Data base, and PHP - Web/Datbase Interface) automatically installed for me.

What am I going to do with LAMP? I have no idea really, but I know I have them when I get the time to learn and use them.

First download the SERVER version of ubuntu v6.10.

Make your bootable CD, boot your PC (remember this will wipe everything on your hard drive).

I when with all the default settings, choosing to add my proxy settings (something you will probably not have to do).

When it came to choosing DHCP Server or LAMP, I choose LAMP.

After it completes and reboot log in and you end up with this...

username@ubuntu:$_


Wow! This reminds me of the good old MS-DOS days. You just look at the prompt and go now what?

First we must update and patch, this is fairly easy.

Log in and type...
sudo apt-get update

Enter your password again and wait.
Next, type...
sudo apt-get upgrade
Answer "Y" to any questions and wait...wait...wait. (not near as bad as Windows aye?)

Ok, now that's done, let's restart (OK, I'm a Windows junkie and old habits are hard to break).
sudo shutdown -r now
Enter your password again and wait.

-Ravon

Hardware & Software

Greetings,

Here is the hardware I will be using...

HP DC7600

Here is the software I will start with...
ubuntu v6.10 Server Version
KDE interface
Wine 0.9.27
Mono 1.2.2.1
Mono-Develop 0.12
UO:ML
RunUO v2.0 r120 SVN

-Ravon

RunUO on Linux

Greetings,

I have been running RunUO, a Ultima Online server, for several years. From the early days of TUS .46 till today RunUO v2 r109 SVN. It has always run under the Windows OS.

Many people have asked, "Can it be ran under Linux?" On several failed attempt, I too have never gotten it to work.

However, in the depts of unknown tombs, rumors and ledges say it is possible. But, to my feable knowledge there has never been a documents with "how to" steps.

So, I will spend the next week attempting to get it to work..."May the three smile on me!"

-Ravon
Lord of An Nox