Archive

Archive for the ‘Ubuntu 9.x Server’ Category

Ubuntu DHCP Server

May 21st, 2010 Arthur Gressick No comments

To install DHCP server from scratch

apt-get install dhcp3-server

When it installs you will see that it had a problem. Don’t worry about this failure, we will fix it. I recommend before we make any changes that we do a backup of the config file.

cd /etc/dhcp3
mv dhcpd.conf dhcpd.conf.bak
nano dhcpd.conf

Here is some sample code for the DHCP configuration

# Sample /etc/dhcpd.conf
# (add your comments here) 
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 192.168.1.1;
option domain-name "gressick.local";
 
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}

For more information on this read from Ubuntu link Ubuntu DHCP3

if you want to install and LDAP version

apt-get install dhcp3-server-ldap

If you want to install the VERY light version of DHCP

apt-get install udhcpd

Categories: Ubuntu 9.x Server Tags: ,

VMware tools in Ubuntu Server

May 21st, 2010 Arthur Gressick No comments

I use Ubuntu desktop but I find that when it comes to virtualization I prefer to use Ubuntu Server more because of the small foot print and to make things much leaner.

Since the Desktop version is the only one that will auto mount the tools in ESX/ESXi implementations you need to get a copy of the tar.gz file from one of the Desktop versions and then SCP it over to the server version unpack it and then run the installer.

You need some prerequisite tools for it to install.

apt-get build-essential

Then you can simple run the installer from the TAR.GZ file. I ran into some compile issues but in the end it all worked. If I find some more notes then I will post them here, keep coming back.

Gem 1.3.2+ on Ubuntu 9.10 from scratch

April 19th, 2010 Arthur Gressick No comments

So I was working on a new install of Redmine.org and it needed Gem 1.3.2 which doesn’t come with the Ubuntu 9.10 in the apt-get packages.

I made sure that Ruby 1.8.7 was install on the system by entering this

ruby -v

If nothing showed up refer to my ruby post for installation instructions.

Ok, so I am going to download the installer to the linux machine and then install

wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.zip
unzip rubygems-1.3.6.zip
cd rubygems-1.3.6
ruby setup.rb

Everything should have installed properly. Now look in the folder /usr/bin/ for gem1.8. Now most people might have already caught this but I didn’t at first. you can’t run “gem” from command line because it is actually gem1.8. I created a sym link to the gem1.8 with the below command.

cd /usr/bin
ln -s gem1.8 gem

That should do it. Log into the system as a regular user and then enter the below to check the gems version

gem -v