Wednesday, 4 June 2003

... and I'm LFS's Little Bitch

Well, that wasn't in the plan. Apparently LFS clears a bunch of the directories from /var. Well, /var is a separate partation which RH uses and since I left it in the fstab for LFS, it fucking ate my RH. RH wasn't dead, but definately focked. How lame is that?

Ah well, reinstalled RH and that went fine. Back up to about where I was before. I just need to re-create a couple more users and groups and I'll be fine but what a pain in the arse.

Well in relation to that, I've made a partition to match the existing lfs partition. As I write, I'm dd'ing my first backup of LFS. I'm going to try to post a changelog so I can recover LFS if (when) I kill it. I think I'll just use root's .plan file and once I get finger up and Dulcea live then you'll be able to finger-bang the changes I've made.

And that's the news. Later, zudes.

Tuesday, 3 June 2003

GRUB is My Bitch!

Jeepers-creepers! Talk about mangled translation from directions and sample installation to implementation on Dulcea.

Dulcea has two disks with Windows on the first (NTFS fills the whole drive), has /boot on /dev/hdb1, and has / on /dev/hdb2.

Now firstoff, I tried to install GRUB from the stage1&2 files distributed with Redhat. I don't know for whom or what they work for, but they didn't work for me. On top of that I ran grub-install like:

grub-install --root-directory=/dev/hdb2 /dev/hdb

That seemed to reverse the way the drives are referenced in GRUB so hda on Dulcea is now hd1 and hdb is hd0. Dunno, but I did finaly get things sorted out and here's how it works now.

1. (Optional) Create a GRUB boot disk

# cat /boot/grub/stage1 /boot/grub/stage2 > /dev/fd0
# reboot

1. (Alternate) Just run GRUB

# grub

2. Now install GRUB in the MBR of hdb. Note that our root is set to /boot a.k.a. /dev/hdb1 or hd0.0

> root (hd0,0)
> embed /grub/e2fs_stage1_5 (hd0)
> install /grub/stage1 (hd0)
(hd0)1+17 p /grub/stage2
/grub/grub.conf

3. Reboot and enjoy!

> reboot

FOCK! That was lot of hacking before I got everything figured straight, but its done now and I reign supreme over my own software... I hope.

Next: Making Quake 3 work with sound! (Yeah, right...)

Monday, 2 June 2003

Howdy Do

Well, its been a while since I've updated my plan so I gotsta put something in.

So for the last while, I've been trying to learn how to properly install a boot loader, GRUB, on the slave disk. For some reason it ain't going so smoothly. Dulcea's BIOS will boot IDE-1 so the MBR I am writing there does come up, it just won't let me, say load the kernel.

I finally went to the GRUB docs, I was going from a couple different HOWTO's, and it does look like I may have to complete the GRUB installation from a floppy as opposed to just running GRUB. Weak. Now I have to find a floppy that I can use.

One of the other reasons I want GRUB up is because I have recompiled my kernel and want to try that. With GRUB dead, I'm booting the kernel off my boot disk. Groot.

And Quake 3 is being a problem. I got it installed under Linux by the book but it runs without sound. I tried cranking the docs open on that and changed the file permissions on /dev/dsp and tried disabling esd but still no sound. I haven't found any useful help yet on it. Hmmm, maybe I'll try taking a dive in burial-grounds.

And the most recent funk wit mah rigs, dawgs, is that Nikita wasn't properly handling last-login times (eg for finger). Looks like it was just a file permission problem on the log files so I chown/chmodded Nikita's to match Rio's. I think I may have bunged those permissions when I moved /var/log to the share partition.

Ah, c'est la vie. I think I'm gonna aim for at least weekly updates of my .plan, I pseudo-promise-but-kinda-not :P

Sunday, 11 May 2003

And Now We Compile

So I finally got started w/ the Linux From Scratch project for Dulcea. Last night I got to the point where I can chroot into the stuff I have compiled so far (the compiler and file utilities, basically). Its going mostly smoothly but it is a fairly long process. My SBU is around 1m20s.

Anyhow, there were a few hiccups with my hardware setup and configuration... Firstly since I was doing most of this stuff remotely from work, I had to make sure I set GRUB to boot Linux by default. Well, I tweaked my networks cards and rebooted to make sure they perform as expected on boot and, guess what, Dulcea booted to windows.

Go me!

So on the topic of network cards, Dulcea has three. eth0 is the on-board NIC which you may remember as being scragged. eth1 and eth2 are both SMC PCI Full-Duplex 100Mbps cards (the 1211TX and 1244TX). Since I need to diffrentiate between the two I wrote the MAC IDs on the back of them. Pretty clever, da? It would have been if I hadn't mixed the two MAC IDs up...

Well after getting that sorted out I now have eth1 set as my external interface. Nikita is statically allocating it 192.168.0.2 and thus Dulcea deserves an entry in the hosts file. eth2 is the internal interface which Dulcea statically sets to 192.168.1.1. Oooo, aahhh. Different subnets.

With the network cards sorted out I cranked open my fstab on Dulcea because the NFS mounts are always mis-behaving. After looking at my entries and reading the mount and fstab properties carefully, I finaly have entries that load nfs mounts consistently and correctly on startup:

nikita:/home /home nfs _netdev,rsize=8192,wsize=8192 0 3
nikita:/home/share /mnt/share nfs _netdev,rsize=8192,wsize=8192 0 3
nikita:/home/ftp /mnt/ftp nfs _netdev,rsize=8192,wsize=8192 0 3

With basic system config crap out of the way (and grub.conf edited to boot linux by default so I can reboot remotely) I started into compiling my 1337 warez for Linux From Scratch (lfs docs available from www.linuxfromscratch.org).

Talk about a lot of slogging. I followed the directions to the letter. It is going smoothly but I am only just through chapter 5 which is compiling the tools required to compile (and the first mess is compiled statically).

So today I hope to put all the commands in a script file so I can just fire and forget. And also so I have the script file for if/when I build another LFS system.

Tuesday, 6 May 2003

More Gear

Mmmm New hardware. Tastes just like chicken.

So I made another trip out to NCIX to get the last couple of things I need to trick-out Dulcea for becomming the disciple server. A new large HD and a PCI NIC (in addition to the one she already has).

Got us a nice Western Digital Caviar JB series drive. This one is 7200 rpm, ATA 100 (didn't see any 133s around), 9ms avg seek, and a 8 mb cache. Its wery nace.

Heh. I didn't realize that Dulcea was actually using her secondary drive for Linux. Its a crap drive and I thought Linux was just on a partition (or three) on the main disk. Come boot time, not GRUB for you. In short, I got to "upgrade" from Redhat 8.0 to Redhat 9. As with Chevette, the upgrade wasn't very exciting. At least RH 9 comes w/ the 2.4.20 kernel.

Anyhow, the NIC I picked up was twenty bones which I guess I kinda think is fine. Not as many free PCI NICs as there are ISA NICs. Its a fair and popular chip at least. SMC 1244TX. In fact, the other NIC in Dulcea is a predacessor to that one. Its a SMC 1211TX. Both NICs are 100Mbps and support full-duplex and, uh, me ethernet 'em up good. Don't know why anyone would buy the 60-80CDN 100Mbps NICs, but apparently NCIX sells plenty of 'em.


Whoops, gtg. Gonna be late for work.

Tuesday, 22 April 2003

Check Mah 1337 G34R!

"Checkitout, checkitout, checkitout!"

So since putting in a couple quarter-gig sticks of MM in Dulcea, all my games got a whole lot more interesting :P I tells yeh, going from an eigth-gig to a half-gig was the best investment of a hundred and fifty bones I've ever put into a system.

Now stuff like D2 and DoD don't hit the freaking hd for texture maps and sounds data anywhere near as much. It all sits memory-resident. I have been nothing but eccstatic about the improvement. I noticed it as soon as the RAM was tossed in the box.

Only thing I need now before I can seriously make moves on porting Dulcea to a server is put in a nice honkin HD or two. Say an 80GB disk or two? I like the sound of that... Oh, that and she'll need a second PCI NIC since the on-bo NIC ASAD. But that'll likely cost me not a dime.

And in Nikita's news, I gots da fat Samba config going on there. I borrowed Sante's copy of the Samba book from O'Reilly. Went through that file we had scabbed off wherever and actually looked up the options I needed to have/remove.

Mostly I was removing stuff. Whether it be defaults (a bunch of options were restating defaults) or poor overrides (like map system = yes).

Heck, I even structured my Samba config file and commented it so anyone nipping it can pepper to taste.

A couple major renovations were made in there. Firstly the usage of security = user rather then share. Secondly, the use of the [homes] section.

The first actually matches usernames/passwords. Apparently all share does is check that the submitted password matches any valid password... Brutal. The most important change there was that each share now has to explicitly set valid users (or groups in most cases) which wasn't a big change since my shares were either public or restricted to certain users.

The second was the use of the super-slick [homes] section. As both Dante and the O'Reilly folks pointed out, there are a few issues with assuming that every user can access their disk space... Like say Apache shouldn't be allowed to access its 'home' directory over smb. However, that was mostly solved in relation to point one anyhow. I had created a smbusers group which was all users who may want access to the Samba resources on the lan... Eg archangel (moi), wendigo, czak, and dante. Since user level security requires I explicitly list them (add them to the smbusers group), apache and all the rest don't get homes shares anyhow.

That the news, very late, but all good anyhow.

Monday, 7 April 2003

Busy Days, Y'All

So been kept fairly busy and looks to be busy for some nights yet. Yay!

Tomorrow I will be catching the Cowboy Beebop flek at the Tinsletown. Should be fun stuff. Anime cowboys in space. *Shrug*

Wednesday, out for drinks on someone else's tab.

Thorsday, coding w/ dante and Nibble Night (more drinks).

Friday is the usual (more drinks).

Saturday is Vampire day, oh, shite, I need to call the GM and see if we can hold it ealier or somethin cause Xiao will be in town.

Sunday is LAN party, yo. Still have done nothing to organize it.

And all the while, I have to write the changes for Hethor and play lots of Diablo II. Sounds like a wicked good week to me.

Now since nobody in their right mind gives to breezes about my personal life, here's the Nikita News:

Samba is FND. I was tinkering with DHCP on Sunday only to kill the Samba shares by switching to a tendot network for the lan. After realizing how much relied on ips for the lan being one-nine-twos, I switched back... Samba has not returned.

Well shoot says I. Time to restructure and rebuild my Samba setup. I definately need to fix all the persmissions and such on the local system. As for the network, Nikita does not even appear in Network Neighbourhood.

I am still hoping to get dns runnign for the lan however I'm scared. Half the resources I was reading on Sunday made it look really tricky.

Well, I'll see all y'all next time and have even fewer servers working on Nikita.

Popular Posts