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