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