Thursday, July 29, 2004
Sunday, July 25, 2004
Alright back into it...
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
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 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
(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
"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
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
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
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...
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
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
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...
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
So yeah...
Wednesday, July 21, 2004
Now that I'm All setup
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
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
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 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 reverting to 2.6.7 non mm7
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...
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
ok so enabled a couple Intel drivers and the APM instead of ACPI cause ACPI wasn't working.
Ok so yeah
install the kernel crap
restart...
kernel recompile
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
Oh yeah i'm going to school cause this is distracting me, I'm gunna be late, hehe.
DAMN!
Update Grub
Install the new Kernel
# 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
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
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
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
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...
# 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
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
Saturday, July 17, 2004
Continuing progress
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
BLFS
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
IT's booting
YAYAYAYAYAYAYA It's ALive
HAHA I'm loged in bitches Yeayah
The End
Making the LFS system bootable
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...
make modules...
make modules_install...
make mandocs...
cp the man pages and boot crap
Linux-2.4.26
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
Creating the /etc/fstab file
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
Creating the /etc/hosts file
# 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
it will be a mobile system after all.
Cleaning up
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
By the way GCC-2.95.3 is still running
Util-linux-2.12a
configure
make &&
make install
(both with assocciated options from the directions)
Shadow-4.0.4.1
ran config...
echoed...
amped make and make install
all the crap...
configure it and start using shadow passwords
set root password
Patch-2.5.4
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.
Grub-0.94
checked them out and installed the e2fs_stage1_5 and the stage 1 and 2 files
Kbd-1.12
Configuring your keyboard...
sweet i don't need this cause the US ROCKS
Bash-2.05b
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.
Autoconf-2.59
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
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
I skipped the test suite, but i am going to go back and make the /etc/hosts file, cause it will make me happy.
Net-tools-1.60
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
Flex-2.5.4a
amped the basic 3
Groff-1.19
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
Vim-6.2 - HA mines gunna be 6.3
amped up to and including the vi symlink...
config vim...
Done
Tuesday, July 06, 2004
Ncurses-5.4
./configure
make
this make is taking a while i should have amped it
make install
chmod and symlink crapola Yeya
Zlib-1.2.1
HAHAHAHAHAHA I'm evil
I amped the whole thing HAHAHAHA
Coreutils-5.2.1 - cont... - checks and stuff
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
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
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
GCC-3.3.3
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.
Monday, July 05, 2004
Binutils-2.14
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
YAYAYAYAYA
it all worked and the dummy.c compiled with the right libraries
Configuring Glibc
setting up timezone
Configuring Dynamic Loader
DONE!
Glibc-2.3.3-lfs-5.1 - cont... - Man pages
Glibc-2.3.3-lfs-5.1 - cont... - locales
Glibc-2.3.3-lfs-5.1 - cont...
Glibc-2.3.3-lfs-5.1
done
make...
Yeah so this will prolly take a while 12 times 14 min that's an amount, definitely
Creating devices with Make_devices-1.2
Creating the passwd, group and log files
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
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
Friday, July 02, 2004
Part III. Building the LFS system
Texinfo - 4.7
amp amp
I spelled "install" wrong so I had to re-run make install Whatever
Done
Gettext - 0.14.1
[it doesn't say it but i'm assuming it went well, i really should remember it was only a few min ago]
GCC - 3.3.3 - Pass 2
but I &&'d again the conf make make install lines again cause I need some sleep
Expect - 5.41.0
[I also wrote "Fuck being a nice guy" in the upper margin
Thursday, July 01, 2004
This is Taking Forever
Glibc - 2.3.3-lfs-5.1 (est 2hrs)
Run make chack when back
GCC - 3.3.3 - Pass 1 SBUs 4.4
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!
