Thursday, July 29, 2004

Welcome to Defcon 12

Welcome to Defcon 12

Till Monday!

Sunday, July 25, 2004

Alright back into it...

Alright i said screw it to, the crap that was checking the filenames and crap of the images it brought about 15 lines down to one, and that makes me happy. All it really changes is that the images need to be in the pixmap directory. Although i have some ideas to do the checking that would be shorter than the prevouse way. Oh and the new loader functions just insert a page white page with red X image instead of just failing.

alright I ditched the window manager all together and set the resolution to 640x480. DashPC flls the screen now and doesn't have to be positioned with the mouse before it displays (that was retarded).

12:47am

Time for bed, school sucks, Can't Wait for Defcon this weekend.

1:22am

Yeah so i got thinking about defcon and desided to check out the rootfu prequalification tests, but I'm actually going to bed now.

get_registry_image

ok this function is used to retrieve the full path to the requested image.

IT RETURNS AN INT

so yeah that needs to be fixed so that it returns some sort of valid string of sorts probably a char* that will subsaquntly need to be deleted because if i just transfer out the pointer it will get deleted since it is created locally, looks like some handy new delete stuff.

ok turns out this is only c so it was a strdup on the return value and change it to char* and then free it up when finished. cleaned some stuff out. need to move on to the image_viewer file and fix up it's image handling.

Saturday, July 24, 2004

Ok

ok i tweaked some stuff going strait to an image from the pixbuf and skipping the extra pixmap phase. so I'm not soing to do the image_viewer thing right now cause i think as long as i don't startup one of the modules it will be fine, so i'm gunna make it and everything and then hope.

the install on this thing seems like it takes too long, wonder if i could fix that?

OK i got the app to load although there are not any images showing up they are all the blank page with the red x but hey this is progress cause the thing loads, anyway, aswell the weather buttons crap out as expected cause i didn't fix the image stuff in them. so I'm going to go clean up main.c and actually delete all the lines i commented out, there's a lot. HEHE. or shoudl i make it actually display images first, hmmm.

I'm remaking main without the destroy splash screen line so i can see if that image is atleast showing up.

ok that image showed up so I'm going to clean up that function first.

i got to start a new post for this one...

The First Run

Ok i'm getting a runtime err from gtk_pixmap_new; well it's an assertion so i think it might be that there are no icons for it to grab when it tries to make buttons so i'm gunna dl the icons he has available for the project.

ok so that wasn't it, hehe
I like that this is open source and i can just go in and look at what it's supposed to be instead of NULL and maybe trace it back that way cause I don't know how to debug linux stuff, i think i would use gdb but i don't know how. I need a book.

I was thinking that dashpc didn't ever call that func for some reason but it does and it'd depricated so i'm gunna find something to replace it, specifically it's in the image_viewer and main .c files.

I found a message about porting gnome-about to gtk 2.0 it looks like it's got everything i need to port this pixmap new thing, so I'm gunna check it out.

fixed up main.c now onto the image_viewer crap.
I also replaced all the gdk_pixbuf_unref and gdk_pixmap_unref lines with g_object_unref

ok i don't want to remove the install dir cause um well i installed those icons and i'm not very bright so i hope that it will overwrite anythign that it needs to.
gunna make and do another run...

image_viewer_1.c

got another error, i think this one may have been caused by me being an idiot though so lets check it out.

(144) missing term char " in the snprintf func

yeah the auto indent crap put in a LF when i tried to comment the thing and then i uncommented it and it left in the LF, i need a wider screen 80 chars sucks hehe.

another err

(129) parse errror before "printf"

Yeah guys it's C you need ;'s at the ends of lines, HEHE, it's been too long and I've been doing asm at school.

ok sun of a bitch why are there like 8 of the same image_viewer_*.c files they all have the same crap to fix, CRAP. gunna see if i can eliminate them AHAHAHHA

ok so yeah they are all the same file so i think i'm just gunna eliminate them AHAHAHa

gunna make distclean first and then uh, remove them so i can get rid of all the already produced Makefiles and stuff. Ok yeah so I'm gunna make maintainer-clean it cause i really wanna clean it out. Aparently you can't do a make clean before a maint clean cause the makefile is gone, makes sence doesn't it, hehe.

ok didn't do what I thought it would so lets check some stuff out.

I'm a retard i just rm'd the image_viewer_* files including the _1 one that i had done all the editing to. YAY
ok so it's looking like all the _# files are the actuall ones that get compiled and maybe the one without the _# doesn't gunna do some reasearch into this EXTRA_DIST param that is the only place in the Makefile.am that the non _# one is mentioned.

ok turns out all that crap is to make them into libraries and stuff I would assume so they could be some sort of loaded module or something since they are all writen as plugin type interfaces.

so i'm just gunna delete them and not edit the makefile and the see if it will make and the edit the makefile if it doesn't like them being non existent.
rerunning autogen.sh cause that's what the README.CVS says to do whenever you change file structure type stuff.
yeah so retard here didn't bother to fix the error i just recompiled with it being in there all wrong still, gunna do the TOPLEVEL this time.

HOLLY CRAP the _# files are aparently auto generated from the base image viewer file so I'm just gunna fix that one.

fixed the non _# file and make cleaned it not sure wether the _# files are made in the configure part or the autogen part i'm thinking the autogen poart so i might have to do this again. ok it's the autogen so i'm rerunning it. I wanna find out about this underquote crap it keeps coming up with i don't like warnings. They usually mean something could be done better.

k i just removed them hopefully the make process will rebuild them even though the make clean doesn't get rid of them which seems odd.

new err and an old one, got the same too few args one think i missed the second from file line. also got:
image_viewer_1.c
(145, 152) - Incompatible types in assignment

at least this time i know to edit the non _# file and not the others.

1. Yeah just missed the second one.
2. I was setting *err = NULL after the g_error_free but i guess maybe that won't work/ isn't needed so lets try this again.

Guess it doesn't register that the non _# file was edited, so got to delete the _#'s first.
rm (them)
make clean
./configure --prefix=$HOME/dashpc-install
Although i should prolly just leave off the prefix part till i can get it to actually compile.
make
ok so coolness the image_viewer files seem to be compiling just fine.
ALRIGHT...
so i got a couple more errors and they are one's i have encounetered
main.c
func show_splash
(240) - GTK_WINDOW_DIALOG ==> TOPLEVEL
(249, 253) - pixbuf new from file ==> same fix

**** REFACTOR ***
By the way the show_splash function and the image_viewer stuff is the same. So it could probably be refactored into som sort of helper function. Maybe not with it being a module but it's something to look into.

Ok so it's kinda scary but it made, gunna install now
ok that worked...

GTK_WINDOW_POPUP

Ok so the documentation for GtkWindowType states:

"Nearly all windows should be GTK_WINDOW_TOPLEVEL. In particular, do not use GTK_WINDOW_POPUP just to turn off the window borders; use gtk_window_set_decorated() for that."
 
So i think I might go ahead and chnge it to TOPLEVEL and see later wether the border needs to be removed or not.

Dashpc - autogen

Ok I'm past the aclocal and autoheader, libtoolize, automake, autoconf...
it ran ./configure YAY

so ok well this apears to be going not too bad so far...

ok so i didn't want ti to run the ./configure script cause i didn't tell it where to install to so I'm gunna make distclean and tell it to go into ~/dashpc-gs-install cause it's out of the way. HAHAHA

So i'm wondering how the source will like being copiled with gtk+2 instead of 1 stuff, i think some of the function names changed but i think they also left the old ones in for compatibility, hopefully it will work.

make...
gotta pee...
crap i got an error, hmm lets see here...
modules/image_viewer/
image_viewer_1.c in function display
(137, 142) - too few args for gdk_pixbuf_new_from_file
(159) - GTK_WINDOW_DIALOG undeclared ident

Ok so now to see prolly nothing too complicated to fix (hopefully). <== wow the ) looks really far from the y in this fixed font (hehe) <== the h too AHHAHAHAH

make clean

Ok i added in the new GError paramater and rewrote the checks to check the err instead of the image for NULL, so we can actually get some usefull info out of err->message.

GTK_WINDOW_DIALOG appears to have been depricated and subsiquently removed, so the closest one still availabel is GTK_WINDOW_POPUP, so I'm going to use it, it does not apear that any changes will need to be made because of using POPUP instead of DIALOG.

ok ready to try the compile again
make...

Aight

So i dl the newest dashpc release form sf.net and got it to compile and run. deleted that.

I dl the dashpc CVS stuff, and after updating the configure.ac file to look for the gtk and glib 2 stuff instead of the older 1.2 stuff it had been I now need to install gdk-pixbuf I'm going with the newest 0.22 version. I also need dot.conf, so i'll go ahead and get that too.

I still need a good book or two on the whole autoconf automake process and everything, so if anyone actually reads this and know of one let me know please. Thanks.

Ok so yea in the process of trying to compile the gdk-pixbuf crap i found that all of it is now included in the gtk+-2.0 stuff, so i don't need that but i have to figure out wether the configure.ac file should check for it some how or just assume it's there.

dot.conf...
YAY

Friday, July 23, 2004

WOOOOHOOOO

Yeayh

It Worked, I successfully (after figuring out i'm an idiot) compiled and ran the simple thing from the tutorial. Which means i don't need a big hefty desktop env. YAY

Ok time for bed.

back on track...

Glib-2.4.4
pango-1.4.0
ATK-1.6.1
Gtk+-2.4.4

So i think with this I can run the simple GTK+ app from the tutorial. Hopefully it will work and i won't have to install Gnome or anything, i really don't want to.

Thursday, July 22, 2004

GTK-Doc cont

back from school and everything so here we go...

OpenJade-1.3.2
libxml2-2.6.9
libxslt-1.1.6
=====> UnZip and Zip ---> required for the DocBook crap
DocBook XML DTD-4.3
DocBook XSL Stylesheets-1.65.1
GTK-Doc-1.2

Wow those dokbook installs are shity LOTS of typing
on to the next thing where was I again...

Pango-1.4.0

requires Glib which i could have sworn i installed already but apparently not, i thinhk i was thinking of glibc...

installing glib-2.4.4

OK i'm gunna install the GTK-Doc package first cause all the gtk crap uses it, it's optional but i'm going to be using the gtk stuff alot

lot's o req's
SGML Common-0.6.3
OpenSP-1.5.1
OpenJade-1.3.2      <======= start here when i get back
libxml2-2.6.9
libxslt-1.1.6
DocBook XML DTD-4.3
DocBook XSL Stylesheets-1.65.1
GTK-Doc-1.2

I'm going to lunch -> school. So i finished with the OpenSP package and need to start back in with the OpenJade pkg.

Ok so it turns out thank god...

yeah so all those "dependencies" turned out to be optional mostly so screw that. till i need really need something it aint going in, HA

Ok so:
Qt                 <== see not bellow
libjpeg-6b
lcms-1.12
libtiff-3.6.1  <== yeah it was optional but it sounds good anyway

yeah so I'm not gunna install qt cause i don't need it but the other libraries did get installed so there.

Qt

Ok so this thing has the longest list of frigen dependencies ever, well not to many itself but all it's dependencies have a bunch themselves...

So yeah...

I got X runnning, it's kinda minimal i haven't installed a windowing system yet. I'm installing a bunch of libraries and stuff like gtk+ and such cause I'm thinking that since it's gunna be a DashPc system I might not want the overhead of a big Desktop env (gnome kde). Since it kinda manages itself. i might look at a window manager like enlightnement or something though, maybe. I think the twm one might sufice

Wednesday, July 21, 2004

Now that I'm All setup

Ok off to the land of X.org

need to install a few libs first....

libpng 1.2.5
expat 1.95.7
FreeType 2.1.7
ok now on to the X.org install

Little bit of trouble

Ok so i figured out why ls wasn't in color and why my path didn't have a bunch of stuff in it. it turns out that none of the files in the profile.d dir were executable and so where never getting run, so now they are all run and i figured out i have to install pkg-config to make an erro go away, and then it should be all good.
The kernel compiled just fine and i guessed right on the network card cause it's still working.
I haven't done the sysfs thing yet, I'm going to install pkg config first

Ok i did that and added the acpi=force command to the menu.lst file, so now it will shutdown on it's own, now to make the 2.6.7 kernel the default boot kernel.

Ok i got the sysfs crap runnning all it took was creating the directory and adding a line to the fstab file. YAY

recompile again

This time I'm going to switch it back to ACPI but I'm gunna install the ACPI patch. I hope this will work cause it's kinda irritating having to actually hit the power button after typing shutdown -h now ug, hehe.

I also took a guess at which ethernet card i actually have -- I selected 2 orriginally -- and try to cut some size down a little.

I found a page on the upgrade to 2.6 which talks about adding the /sys directory to enable the sysfs filesystem, it does not stat and i can't find any evidence of, a kernel optio to enable sysfs so i'm going to assume it's there and try it out, I can jsut delete the conf entries and directories if it doesn't work.

looks like i might have to do this

# amixer set Master 100 unmute
# amixer set PCM 100 unmute

I guess I should put that into a startup script or something, that sucks I wish there was a config file or something. Oh well

All good

Ok we're back up and everything is running fine again, no more debug messages and I got ALSA working and i can hear sound. I just need to find out how to make the sound setting stick so that it doesn't mute all the channels every time.

OK reverting to 2.6.7 non mm7

ok so the mm7 thing seems to be the cause of the random debug message that I'm getting so i'm going to compile a 2.6.7 non mm7 kernel for noww until Andrew gets back and has time to respond to the posts about this message.
 
I'm going to select all the same options as before but not the APM screen blanking thing cause that wasn't working, correctly.
 
ok off and running with the kernel compile

installing the kernel again...

Ok so here goes another kernel install I'm gunna copy over the other one again...
 
and reboot...
 
no failures on boot; but i am getting a wierd Debug message:
 
Debug: sleeping function called from invalid context at fs/proc/base.c:1529

Tuesday, July 20, 2004

recompile ... again

this time for the net driver and to see if there is a video driver for the onboard ATI card.
 
ok so enabled a couple Intel drivers and the APM instead of ACPI cause ACPI wasn't working.

Ok so yeah

So apparently when i edited the menu.lst file for grub i just put in the same kernel image and so now I fixed that and I'm actually running the 2.6.7-mm7 I wasn't before, so yeah there were a couple erros in the boot process i think cause i don't have a ethernet driver installed, so i  should do that and go over the rest of the boot and fix things.

install the kernel crap

same install procedure as before but the symlink is still there so no need, I'm going to copy over the files that are in the boot dir.
 
restart...

kernel recompile

Ok so i recompiled the kernel and the modulkes and installed the modules and crap, the problem is i went ahead and forgot to ineret the CC= line and so now my kernel is made with the wrong gcc version so I'm going to recompile with the cc line and hopefully it will be ok
 
make clean   <== saves the config file
make CC=/opt/gcc-2.95.3/bin/gcc && make CC=/opt/gcc-2.95.3/bin/gcc modules_install
 
This whole process would prolly be a whole lot smoother if i didn't forget shit all the time.
 
apears to have gone well... YAY

SND card

ok so I'm going to recompile the kernel with all the same modules but this time I'm going to include the snd-es1968 driver so my sound card will work. YAY
 
Oh yeah i'm going to school cause this is distracting me, I'm gunna be late, hehe.

DAMN!

YAY It worked, yeah so it worked hella quick too I think that was about the fastest boot I have seen on a machine of mine. Of course that could mean that it just didn't load any of the modules it was supposed to but everything apeard to have gone OK in the boot process.
 
 

Update Grub

Ok well i added an entry to the grub menu.lst file and it does not appear that i actually need to update grubs install in any way to make it work (the way you do with lilo) so I'm gunna go a head and restart...

Install the new Kernel

# mv arch/i386/boot/bzImage /boot/bzImage-2.6.7-mm7
# mv System.map /boot/System.map-2.6.7-mm7
# cd /boot
# cp System.map System.map-lfskernel
# ln -s System.map-2.6.7-mm7 System.map

Continued

Ok so the kernel compile went well last night.
 
I am following the directions for the ALSA compile here the driver install checked the kernel and said i already have it compiled in so that got skipped.
I'm compiling the libraries
make install
 
ALSA Utils
./configure && make
make install
 
I'm gunna hold off on the oss support libs cause i think that was compiled into the kernel as well

Linux-2.4.26

Yeah so i remembered that i didn't set the gcc version so i ctrl-c 'd it and now i'm running make clean and then i'm going to restart it with

make CC=/opt/gcc-2.95.3/bin/gcc &&
make CC=/opt/gcc-2.95.3/bin/gcc modules_install

that should do it...

ALSA

Ok I'm installing the lib and util packages for ALSA and then I'm going to continue with the kernel install
alsa-lib:
./configure
make install
......
 
ok NM i stopped it early cause i read something I'm gunna go ahead and check out what version of ALSA is in the kernel and then upgrade it if needed and then compile the kernel and then do the ALSA and then install the kernel i think. hehe
 
OK i just read more and checked the kernel and it already has vertually the latest drivers so I'm gunna compile the kernel and then compile the ALSA lib and util crap before i install it
 
 
KERNEL:
make && make modules_install...

2.6.7-mm7 - menuconfig

Ok well something worked cause the menuconfig is all prety this time. YAY
 
I'm enabling the Kernel .config option as well as the /proc/config.gz option
 
Selected Pentium II
 
deselecting the symetric multiprocessor support
 
loopback device
disable firewire cause i don't got it HEHE
 
a crap load of iR crap to support the onbaord stuff, it's all modules so it's ok
ALL the bluetooth stuff as modules
 
frame buffer support and logo configuration support
 
ALSA
 
OK done configing

Monday, July 19, 2004

2.6 Upgrade - cont...

# cd /usr/src
# cp -rl linux-2.6.7 linux-2.6.7-mm7
# cd linux-2.6.7-mm7
# bzip2 -dc ../2.6.7-mm7.bz2 patch -p1
 
ok so i ran that and applied the patch which appears to have gone well.
 
make mrproper     <== cleans up everything
 
reset                        <== atempt to fix the crappy looking menuconfig thing
clear
 
make menuconfig

2.6 Upgrade

I'm going to be upgrading to the 2.6.7 kernel as well as using the 2.6.7-mm7 patch; as it has been said that the mm series makes the kernel more stable for the most part as well as adding in some functionality and speed enhancements. I am following roughly directions from kerneltrap.org; as well as refering to the LFS book for how to tell make to use gcc 2.95.3 instead of 3.3.3 or whatever the default compiler is on the LFS sys. Ok so ignore that last comment cause i'm gunna go ahead and install the module-init-tools thing now.

module-init-tools:
./configure --prefix=/
make moveold <=== renames the old module handling utilities
make
make install
./generate-modprobe.conf /etc/modprobe.conf
depmod 2.6.7 ----> failed cause it's not installed yet
HAHA anyway i just ran depmod without any params and it worked so that's what i'm gunna do
Ok so that should be that, on to the next thing

Upgrading to module-init-tools

Alright I'm going to start the process of getting to the 2.6 kernel which includes getting the modult-init-tools package installed and ready to go it looks like it's kinda tricky cause it want's to be installed first but then it also want's the kernel stuff, so I'm not sure i think i'm going to go ahead and install the kernel and then hoepfully it will be ok if some of the modules don't load cause all the important stuff will be loaded into the kernel anyway. OK so yeah, i have the source dl as far as things go so i shouldn't have any trouble as long as it will boot.

Saturday, July 17, 2004

Continuing progress

Yeah so I started into the BLFS stuff. I setup all the bash things and the vimrc file the issue file the shells file and installed the random number generator entropy pool copy stuff, i din't compress the man pages (i have a bunch of room) and i installed the netfs crap.
I changed the fstab entry to auto for the main partition and then rane the tune2fs thing to make it ext3. hopefully that will work out well I think that auto setting should take care of it incase the kernel just really didn't want to compile with ext3 support, I told it to.

I'm gunna go to bed and i think i might hit the pool in the morning cause i'm still pissed about not going to the beach today and i need water.

Oh yeah i'm going to shut the system off i think give it a little rest since it's been on for a really long time

Friday, July 16, 2004

/etc/inputrc

from what i can tell this file makes the home del and page keys and crap work the way they seem they should instead of just inserting crapy characters AHAHHA

Configuring for Adding Users

added default shell

BLFS

Yeah so i rebooted and didn't install anything before doing so.
 
I started into the BLFS book and realized that i didn't have wget to get any of the files so i used ftp to get wget and now i'm istalling it.
running the semi-standard three line source install lines
./configure
make
make install
 
YAY

Rebooting the system

well the $LFS mount wouldn't unmount it kept saying it was in use, so i rebooted anyway HA
 
IT's booting
YAYAYAYAYAYAYA It's ALive
 
HAHA I'm loged in bitches Yeayah

The End

well i did it, I should now have a working system, althoguh i have yet to reboot so we will see...

Making the LFS system bootable

I'm living dangerously I'm not going to create the grub boot disks HAHAHAHA
 
cat > /boot/grub/menu.lst << "EOF"
# Begin /boot/grub/menu.lst

# By default boot the first menu entry.
default 0

# Allow 30 seconds before booting the default.
timeout 30

# Use prettier colors.
color green/black light-green/black

# The first entry is for LFS.
title LFS 5.1.1
root (hd0,2)
kernel --no-mem-option /boot/lfskernel root=/dev/hda3
EOF

Linux-2.4.26- cont...

Well then that sertainly takes less time than on a 486 hehe
 
make modules...
make modules_install...
make mandocs...
cp the man pages and boot crap

Linux-2.4.26

Ok so yeah it's been a few days, and yes the LFS system has been on the whole time.
 
Alright I'm gunna start the kernel configuration process, I think I'm going to list the changes I make to what a mrproper kernel defaults to, otherwaise it would take forever to list all the different kernel options, I might list a few ones that are default so remember there there or something but i'm not sure so here goes...
 
extract kernel source...
make mrproper...
make menuconfig...
ok so yeah someone needs to get on the ball about menuconfig being messed up on my display (proly me) any way here are some settings and stuff:
changed to pentium II proccessor family
added parallel port support with pc-style hardware; both as modules
added loopback device support as module
network block device - module
ram disk - module; used default 4096 size
added intel net card support
realtek netcard support
added a bunch or ir options to attempt support for the systems onboard ir
all input core support as modules
support console on serial
all I2C as modules
MK712 touch screen support as module
ext3 support compiled in
DOS Fat systems as modules
SMB file system as module
video mode selection support
saved kernel config...
make dep...
make bzImage...

Thursday, July 08, 2004

Ok never mind then

Yeah i neglected to realize that i'm gunna have to config the kernel and everything, so that's not gunna happen so i guess it's gunna sit right here and on for the next 4 days or so... catch yall later, on the flipside of the vacation...

Creating the /etc/fstab file

swap partition => /dev/hda2
New LFS partition => /dev/hda3

set these didn't put in the line about usb for now just to get it up

Configuring the network script

fallowed all direction fixed to match my settings, it's a static IP setup for now, just so i can get it to the point i can shut it off cause i'm leaving for SD in a little bit

Creating the /etc/hosts file

cat > /etc/hosts << "EOF"
# Begin /etc/hosts (network card version)

127.0.0.1 localhost
192.168.1.1 lfs-mobile1.swedishrice.net lfs-mobile1

# End /etc/hosts (network card version)
EOF

Configuring the localnet script

echo "HOSTNAME=lfs-mobile1" > /etc/sysconfig/network

it will be a mobile system after all.

Do I need the loadkeys script?

I went with no

Configuring the setclock script

YAY

LFS-Bootscripts-2.0.5

uh it was a one liner

Cleaning up

Ok so I think I'm gunna save the /tools dir so i can skip that step on the next LFS system, cause that would be nice.
I'm gunna exit the chroot env and reenter it with the new command given in this cleaning up section so I'm not using any of the /tools binaries

About debugging symbols

Alright i'm impressed by how much can be saved by stripping the debug symbols, but since the intention is as a development system, that may one day be put into production use. I am going to leave the sysmbols in.

By the way GCC-2.95.3 is still running

GCC-2.95.3

patching...

made dirs...

amped it, so i can get ready for school

Util-linux-2.12a

make it compatible

configure

make &&
make install
(both with assocciated options from the directions)

Tar-1.13.94

amped it especially after all that typing

Sysvinit-2.85

did the sed

make make install

that friggin config file was long, that sucked

Sysklogd-1.4.1

make
make install

Config...

Done

Shadow-4.0.4.1

touched...
ran config...
echoed...
amped make and make install

all the crap...

configure it and start using shadow passwords

set root password

Psmisc-21.4

amped all but the complicated stuff at the bottom...

done

Procps-3.2.1

make

make install

rm...

Procinfo-18

amped it

Patch-2.5.4

amped

I accidently entered the powerPC line but i caught it before make install so I'm gunna rm -rf and restart.

I'm amping again.

Modutils-2.4.27

amped

Make-3.80

amped it

Man-1.5m2

no amps in this one.

Gzip-1.3.5

amped EVERYTHING HAHAHAHAHAHAHAHA

Grub-0.94

amped the whole thing sept copying the stage files so i can check them out...

checked them out and installed the e2fs_stage1_5 and the stage 1 and 2 files

Grep-2.5.1

amped

E2fsprogs-1.35

eh amped it

Kbd-1.12

patched and amped...

Configuring your keyboard...
sweet i don't need this cause the US ROCKS

Ed-0.2

patched and amped

Diffutils-2.8.1

ampin it...

Bzip2-1.0.2

running this non amped...

done

Libtool-1.5.6

amp

File-4.09

amped it

Bash-2.05b

patched it...

amped the whole thing and i should be running in a fresh new shell when all is said and done, a shell of my very own, YAY.

Automake-1.8.4

amped...

Autoconf-2.59

amped it...

I like this "from scratch" concept I'm gettin a lot highr instance of successfull compiles on the first try, than i do normally, maybe it's just the kick ass instructions :)

Texinfo-4.7

amped the whole thing...

commands to rebuild info crap:
-----------------------------------------------------------------
cd /usr/share/info
rm dir
for f in *
do install-info $f dir 2>/dev/null
done
-----------------------------------------------------------------

Wednesday, July 07, 2004

Perl-5.8.4

amped it

I skipped the test suite, but i am going to go back and make the /etc/hosts file, cause it will make me happy.

Inetutils-1.4.2

patched it...

amped the rest

Net-tools-1.60

installed the patch...

running the interactive make config line...
ok well that was useless, i used all the defaults, although i'm wondering about that IP masquerading option, that might be usefull in the end dashpc system if i rig it with some sort of internet access. I have been thinking about it, adding a second line of service to my wireless hone is cheap and i couild share the minutes, just a little bit of status trafic maybe some kind of custom Lo Jack or something.

make...

make update...

Done

Bed Time

Ok well the gettext thing finished and the nettools is next but it's only .1 SBUs so it's not gunna take any time so i am just gunna go to bed and let it sit there not doing anything all night. HA

Gettext-0.14.1

ampin it

Flex-2.5.4a

ok it's got the basic three line with a symlink and I get to write a shell script YAY...

amped the basic 3

Sed-4.0.9

ampted it

Groff-1.19

gunna amp the first bit then run the symlinks manually

ok symlinks done and on to the next package, I hope i get a big one soon cause I want to go to bed and don't want to waist a perfectly good system not doing anything while i'm sleeping

Less-382

you know what they say, "less is more" it's sort of a backwards ass crazy metaphor or something, Yeah ya know (Suck IT) anyway I'm gunna amp it

Bison-1.875

gotta patch and then I'm gunna amp it

Done

M4-1.4

3 lines ya

I amped it

Vim-6.2 - HA mines gunna be 6.3

ok i checked it out and the two echo's about setting the vimrc defaults will work with 6.3 so yay

amped up to and including the vi symlink...

config vim...

Done

Tuesday, July 06, 2004

Ncurses-5.4

i might not amp it this time...

./configure
make

this make is taking a while i should have amped it

make install

chmod and symlink crapola Yeya

Gawk-3.1.3

Amped IT

Findutils-4.1.20

ok it was three or four lines so yeah... Amped IT

Iana-Etc-1.00

two liner...


Amped it

Mktemp-1.5

Ha I amped this one too HAHA

Zlib-1.2.1

following directions gunna amp a bunch...


HAHAHAHAHAHA I'm evil

I amped the whole thing HAHAHAHA

Coreutils-5.2.1 - cont... - checks and stuff

this thing has a crapload of support crap to do for it's tests so here goes...

ok so it's going well so far, this is a good thing...

ok i'm running the actuall install line now, YAY

I need to learn sed like a champ, cause it looks really cool and i don't know it at all.

a few symlinks and I'm...
DONE

Coreutils-5.2.1

ok got the uname patch...

on to the hostname...

ok I amped everything up to and including the install-root line, the other stuff looks like something i should be a little more hands on with.

GCC-3.3.3 - cont... - Install

alrighty then gunna run the install and amp that with the two symlink lines and then gcc should be done, oh yeah gunna amp that sanity check thing in too with the dummy.c file.

ok well so much for that i neglected the && after the first symlink line and just hit enter so now it's doing the install, well then that didn't take too long so then i guess i'll do the second symlink and be done cause i'm hungry.

Ok so here i go

I haven't made it to bed yet, and this thing still isn't done I'm glad I amped a lot, anyway's it looks like it's in the check section, but i'm going to bed (actually) this time.

GCC-3.3.3

Ok I think i'm gunna go to bed for this one cause it's 11.7 SBUs so yeah it's gunna get mostly amped and then I'm going to sleep, sleepy sleeep sleep.

Oh byt the way hope everyone had a wonderful national get drunk and light shit on fire day.

ok i just read this thing and i've got a bunch of patches to install and then I'm gunna amp it. yeah so i don't want to bother checking all the make check crap so i'm just gunna skip it and go from make strait to make install, HAHAHAHA

Fine then I'm not gunna skip it whatever you win. I guess i will just come back and do the make install and everything after that point in the morning or afternoon or whenever i get the chance.

Binutils-2.14 - YAY

Ok yeah the whole thing finished without a hitch, sweetness

Monday, July 05, 2004

Binutils-2.14

HAHAHAHAHAHAA

I amped the whole thing so we'll see if this goes alright the total build time is 1.4 SBU which would put it at about 20 min i think, lets see if i can keep myself occupied for that amount of time.

Re-adjusting the toolchain

YAY

YAYAYAYAYA

it all worked and the dummy.c compiled with the right libraries

Configuring Glibc

creating the nsswitch.conf file

setting up timezone

Configuring Dynamic Loader

DONE!

Glibc-2.3.3-lfs-5.1 - cont... - Man pages

building the man pages for linuxthreads and installing them

Glibc-2.3.3-lfs-5.1 - cont... - locales

alrighty now the locales that let it figure out language and shiznit...

Glibc-2.3.3-lfs-5.1 - cont...

Yeah so the make clean went flawlessly and now for the install phase, YAY

Glibc-2.3.3-lfs-5.1 - cont ...

make check...

Glibc-2.3.3-lfs-5.1

Running the configure line...
done
make...
Yeah so this will prolly take a while 12 times 14 min that's an amount, definitely

Man-pages-1.66

one liner make install, sppears to have gone well.

Linux-2.4.26 headers

ok i followed the directions YAY

Creating devices with Make_devices-1.2

I followed the direction and it went well. The directions say to make sure you edit the file to match your system. They fail to realize that I the new chroot env there isn't a text editor yet. But I cat'd it and it appears to make at least all the ones I need.

Creating the passwd, group and log files

/etc/passwd
cat > /etc/passwd << "EOF"

root:x:0:0:root:/root:/bin/bash
EOF

/etc/group
cat > /etc/group << "EOF"

root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
tape:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x:9:
dialout:x:10:
audio:x:11:
EOF

exec /tools/bin/bash --login +h

Initialize log files
touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}

chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}

Creating essential symlinks

ln -s /tools/bin/{bash,cat,pwd,stty} /bin

ln -s /tools/bin/perl /usr/bin
ln -s /tools/lib/libgcc_s.so.1 /usr/lib
ln -s bash /bin/sh

Creating directories

mkdir -p /{bin,boot,dev/{pts,shm},etc/opt,home,lib,mnt,proc}

mkdir -p /{root,sbin,srv,tmp,usr/local,var,opt}
mkdir -p /media/{floppy}
mkdir /usr/{bin,include,lib,sbin,share,src}
ln -s share/{man,doc,info} /usr
mkdir /usr/share/{doc,info,locale,man}
mkdir /usr/share/{misc,terminfo,zoneinfo}
mkdir /usr/share/man/man{1,2,3,4,5,6,7,8}
mkdir /usr/local/{bin,etc,include,lib,sbin,share,src}
ln -s share/{man,doc,info} /usr/local
mkdir /usr/local/share/{doc,info,locale,man}
mkdir /usr/local/share/{misc,terminfo,zoneinfo}
mkdir /usr/local/share/man/man{1,2,3,4,5,6,7,8}
mkdir /var/{lock,log,mail,run,spool}
mkdir -p /var/{tmp,opt,cache,lib/misc,local}
mkdir /opt/{bin,doc,include,info}
mkdir -p /opt/{lib,man/man{1,2,3,4,5,6,7,8}}

I didn't create the /media/cdrom directory since my system won't have one.
chmod 0750 /root

chmod 1777 /tmp /var/tmp

Changing ownership

chown -R 0:0 /tools

Entering the chroot environment

chroot "$LFS" /tools/bin/env -i \

HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login +h


I have to remember to mount the filesystems given in the previouse posts if I shutdown for any reason. I think the only one would be a power outage or something.

Mounting the proc and devpts file systems

mkdir -p $LFS/{proc,dev/pts}

mount proc $LFS/proc -t proc
mount devpts $LFS/dev/pts -t devpts

And so it begins

Alright I'm going to abandon the notebook. It's been a few days since I have done anything to the system. I think the biggest reason is that I'm dreading transferring the notebook into the blog, and I don't like writing, I would much rather type. So with that said the blog will now become the main place that I document my efforts. I think I might still use the notebook for random oh I should remember that kinda shit or getting ideas down in the middle of the night without having to boot a computer.

Friday, July 02, 2004

Part III. Building the LFS system

So yeah I'm at ch 6 and I think I'm gunna go take a break cause It's a nice day out.

Stripping

followed the directions

I ran a df -h
9.5G Total
515M Used
8.5G Available

Perl - 5.8.4

Patch
write script
chmod it
amp all but the coppies
coppied everything
Done

Util-linux - 2.12a

did the sed thing
I'm gunna amp all but the last line
coppied
Done

Bash - 2.05b

Applied the patch
amp amp ( I even amp'd the symlink line)
Done

Texinfo - 4.7

Oh Yeah I have been typing the journal into the online blog so the timestamps are alittle farther than some of the actual compile times for the last few packages
amp amp
I spelled "install" wrong so I had to re-run make install Whatever
Done

Tar - 1.13.94

amp amp
Done

Patch - 2.5.4

amp amp
Done

Ncurses - 5.4

amp amp
Done

Gettext - 0.14.1

amp amp
[it doesn't say it but i'm assuming it went well, i really should remember it was only a few min ago]

Sed - 4.0.9

amp amp
Done

Grep - 2.5.1

amp amp
Done

Make - 3.80

amp amp
Done

Findutils - 4.1.20

amp amp
Done

Diffutils - 2.8.1

amp amp
Done

Gzip - 1.3.5

amp amp
Yay it worked

Bzip2 - 1.0.2

Yay, it was a one liner

Coreutils - 5.2.1

amp amp
Yeya It worked

Gawk - 3.1.3

I amp amp'd again
Done

Aparently that went well

Yay

Binutils - 2.14 - Pass 2

I && the whole thing HAHAHA

OK it all worked Yay

GCC - 3.3.3 - Pass 2

following directions
but I &&'d again the conf make make install lines again cause I need some sleep

DejaGnu - 1.4.4

Done

Expect - 5.41.0

Following the directions like a fucking trained fucking chimp


[I also wrote "Fuck being a nice guy" in the upper margin

Tcl - 8.4.6

following regular

Adjusting the toolchain

Oh yeah Done!

Thursday, July 01, 2004

I got an error while running the tests - I love how non-descript make's errors are Yay. Anyway I'm going to ignore it HA! I ran the make install and I'm going to school it hasn't finished yet

This is Taking Forever

I drew a little face with X's for eyes and it's tounge hanging out but i don't want to scan and post it so you get this description instead.
The make appears to have gone smoothly
I'm going to run the make check

Glibc - 2.3.3-lfs-5.1 (est 2hrs)

I &&'d the conf and make lines together (I'm going to school)
Run make chack when back

Linux - 2.4.26 headers

following directions
Done
OK I made the symlink and everything appears to have gone well.

GCC - 3.3.3 - Pass 1 SBUs 4.4

gcc-core
I ran ./configure...
running the make and make install lines as &&
so I can go to bed
Need to make symlink in morning
assuming all went well Night!

Binutils - 2.14 - Pass 1

time
real 14m26.861s
user 12m49.916s
sys 1m25.646s
1 SBU = 14m26.861s

Now logged in as lfs

Setup the environment
-followed the diections
Yay
Target Triplet
unpack binutils and run config.guess
Target Triplet => i686-pc-linux-gnu
Dynamic linker => ld-linux.so.2
I followed the add lfs user directions

username: lfs
password: *******