View  Edit  Attributes  History  Attach  Print  Search

Install

Installation:

Download

I downloaded the 64-bit, Ubuntu Server 10.04 LTS version from the Ubuntu Server download page. The download was named ubuntu-10.04.2-server-amd64.iso and burned it to CD-rom

Installation

Since I already had Software Raid1 on my system disks, and a Software Raid5 on the four other disks I reused the partitions as they were:

  • 20GB ext3 /
  • 1GB swap swap
  • 348GB ext3 /home
  • 2,1TB ext3 /home/media

I would like to have increased the swap so I could hibernate (I have 2GB RAM), but never found out how to do that.

NEC cd-rom Drive

The installation worked fine up to 70% where I got the message:

  Please insert the disc labeled 'Ubuntu 10.04 _Lucid Lynx_ - xxxx' 
  in the driver /cdrom/ and press enter.

It turned out this was a bug (already in 8.04) as I read Alternate install fails requesting same disc it was only showing its ugly face in some cases, e.g. when using a NEC drive which I had.

Fortunatly I had an older cdrom laying around that I could use. It was seen when I changed the jumper to Slave.

Samba

I configured samba by first creating a user (which I later did not use :-) Basically following the instruction on Ubuntu 10.04 Samba File Share Configuration

sudo adduser --shell /bin/false torsten
sudo smbpasswd -a torsten

Then I made a backup of the samba configuration and made some changes.

sudo cp -p /etc/samba/smb.conf /etc/samba/smb.conf.orig
sudo vi /etc/samba/smb.conf

I changed the workgroup, switched security mode (which I did not use in the end :-) and also set unix extensions. Before this row, I could not follow symbolic links from /home/public to /home/media/public_media.

Lastly I added the section to allow everyone the rights to edit stuff.


  workgroup = MSHOME

  security = user

  [global]
  follow symlinks = yes
  wide symlinks = yes
  unix extensions = no

  [Public]
  comment = Public files
  path = /home/public
  browsable = yes
  guest ok = yes
  read only = no
  create mask = 0777
  directory mask = 0777
  force user = nobody
  force group = nogroup

In the future, I would like to change the last section so that I need to login as torsten when I want to edit files (read should always be ok as guest).

I restarted the samba server with

  sudo service smbd restart

Minecraft

Java

I followed the steps on [[http://www.minecraftwiki.net/wiki/Tutorials/Setting_up_a_server#Configuring_the_Minecraft_Server| Minecraft Wiki Tutorials/Setting up a server]]

For Ubuntu 10.04 LTS and on, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. You must add these sources:

For Ubuntu 10.04 LTS (Lucid Lynx):

  sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

Some distros have the command "add-apt-repository" removed. If this is the case, you will need to add the python properties by running the following command:

  sudo apt-get install python-software-properties

Then you can proceed to add the source:

  sudo add-apt-repository "deb http://archive.canonical.com/ubuntu natty partner"

Then install the packages:

  sudo apt-get update
  sudo apt-get install sun-java6-jre sun-java6-plugin
  sudo update-alternatives --config java 

I did not have any other java installed, so the last command did nothing.

Minecraft server

I can now manually start the minecraft server with

  java -Xms1024M -Xmx1024M -jar minecraft_server.jar nogui

Next step is to automate it with a Server startup script

Bukkit

The real goal is to have a bukkit server running. I'll be following Bukkit wiki Setting up a server

Upgrade

I also found a page about Online Upgrade to Ubuntu 10.04 at Command Line that I want to have handy when the day comes for the next step up.