header

Ubuntu installed

I installed Ubuntu 5.10 (Breezy Badger) on a shiny new system I just received… which barely fits under my desk.
Relevant stats:

2x Intel Pentium III 1.05GHz
2GB RAM
2x 250GB 7200RPM IDE hard drive
1x 80GB 7200RPM IDE hard drive
4x 40GB 7200RPM IDE hard drive
ATI Rage 128 (it is a server…)

With an onboard RAID device, and plenty of power, this system has support for 8 HDDs (room to grow!). It really is a thing of beauty. It also has room for 4 hard drive caddies, which each have built-in fans for cooling the HDDs.

I immediately installed Ubuntu server onto the system. After having it installed, I noticed that all of the documentation and guides out there were for the GUI version of Ubuntu. Apparently nobody uses Ubuntu for a server? So I scrapped that and reinstalled with the GUI version.

I found some great documentation for learning Ubuntu:

Speaking of… since one of the main reasons to switching to Ubuntu is to install Oracle, I decided to try installing Oracle 10g on Ubuntu.

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Failed <<<<

ccole says you have to trick the system:

Add the following to new file /etc/redhat-release:
Red Hat Linux release 2.1 (drupal)

I’ve yet to try this, but I will as soon as possible.

So far, it looks to be working great. There are a couple of things I need to solve before I consider this a good replacement. Those things are, namely:

  1. Where do I get the gcc compiler?
  2. Java 1.5?
  3. UFS r/w compatibility?
  4. Vncviewer only has “takeover” mode, meaning the target machine still has all things viewable, potentially causing excess lag. How to get around this?

Comments (3)

Nano Syntax Highlighting

I’m an avid nano user (the editor, not the ipod), and perusing the manfile today introduced me to a lot more of its features than those to which I am accustomed.

I’ve gotta say, the Syntax Highlighting is a pretty cool enhancement for what I thought to be a very basic text editor.

Comments (0)

Apache with dynamic IP

I was setting up a FreeBSD system to use Apache, and I was running into some problems getting it to start normally. I had the following in my /etc/rc.conf file:

hostname="grtest.domain.name.com"
ifconfig_em0="DHCP"
...

and in my /etc/hosts file:

::1 localhost
127.0.0.1 localhost

I was getting assigned a good IP, but when I would attempt to start Apache, I would get an error message similar to

[Thu Aug 18 11:05:11] [alert] httpd: Could not determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

What I had to do to fix the issue was to add a private IP for my NIC. I did this via the FreeBSD Diary’s instructions, which involved:

  1. Adding the following line to /etc/hosts:
    192.168.0.1 grtest grtest.domain.name.com
  2. Adding line to /etc/rc.conf to add IP automatically to NIC on boot:
    ifconfig_em0_alias="inet 192.168.0.1 netmask 0xffffffff"
  3. Add IP to NIC via the command:
    ifconfig em0 alias 192.168.0.1 netmask 0xffffffff
  4. Restart apache, noting no longer an error:
    /usr/local/etc/rc.d/apache2.sh restart

Now it will still give me a public IP from the DHCP, but now works so that Apache will start correctly.

I was having a similar problem on a Gentoo Linux system before I scrapped it, so a similar solution would probably have fixed that issue as well.

Comments (2)

Gentoo’s /bin/ash

I was getting this message with Gentoo‘s (Linux) 2004.3 livecd:

Started device management daemon v1.3.25 for newroot/dev
>> Attempting to mount CD:- /newroot/dev/cdroms/cdrom0

BusyBox v1.00-pre7 (2004.07.21-17:47+0000) Built-in shell (ash)
Enter ‘help’ for a list of built-in commands

/bin/ash: can’t access tty; job control turned off
/ #

I figured out the fix was on bootup to specify ide=nodma on boot, so the full command is
gentoo ide=nodma

This allows it to boot (took me about a half hour to figure out).

Comments (0)

Samba setup on Gentoo Linux

I had tried to setup Samba a couple of times before because I thought it would be cool, but never really got it going. I finally invested some effort and followed the steps from this tutorial and got it working. That tutorial provides instructions on how to setup samba for network printing as well as being a windows file server, but I’m only using the folder sharing.

It now works perfectly. Here are the exact steps that I did:

#1. emerge net-fs/samba //emerge the script
#2. nano /etc/samba/smb.conf //setup the config, includes the following information
#——-
[global]
workgroup = IWGroup
server string = Samba Server %v
log file = /var/log/samba3/log.%m
max log size = 50
interfaces = lo eth0
bind interfaces only = yes

hosts allow = 144. 127.
hosts deny = 0.0.0.0/0
security = share
guest account = guest
guest ok = yes

[VideoCardDrivers]
comment = drivers
path = /home/VideoCardDrivers
browseable = yes
writeable = yes
public = yes
create mode = 0766
guest ok = yes
#—-
#3. mkdir /home/VideoCardDrivers //make the shared directory
#4. smbpasswd -a root //created the user ‘root’, but i don’t think i’ll use it
#5. nano -w /etc/nsswitch.conf //edited the line hosts to be {hosts: files dns wins}
#6. chmod 755 /home/VideoCardDrivers //make the directory properly permission’d up
#7. /usr/bin/testparm //make sure the settings worked fine
#8. rc-update add samba default //adds samba to run at startup
#9. /etc/init.d/samba start //starts samba

Works like a charm.

Comments (2)


blogtimes