Skip navigation.

Tech Blog

PiklesOnFire's Tech Postings

I got my Inspiron back...

Well, I got the new hard drive for my Inspiron 320G@7200rpms xD
I'm like a kid at Christmas. I ripped the disk from the wrapper,
unscrewed the old one from it's position in the caddy,
and placed the new one in. Booted into the BIOS,
set a hard disk encryption password,
loaded the Arch DVD,
Rebooted,
Installing Arch xDDD

I'm excited.
I'm going to be using a thing XFCE (possibly even LXDE *gasp*) with Compiz...
To show the flashier side of linux, like Vista tried to do ;p

Then I'm going to have an Openbox desktop rockin,
so I can show use the business side of linux.

Yay Arch, yay having the Inspiron back.
(Even though, now I do want to buy my new Nvidia card for it xD)

Uhm, yeah, yay Life

Peace
~Pikles

Arch on an ULPC + Why Windows 7 irks me...

, , , ...

Well, my system's hard drive failed. Pretty sad really.
So I had an Ultra Light PC lying around and decided it was time to become an Openbox ArchLinux purist.

Things are going well...

I want to lighten the kernel as much as possible.
I have a series of things I'd like to do to make my own Arch Based distro.

Oh, yes, Windows (Microsoft actually), I hate Windows 7.
It looks like KDE 4.2
See it?
You can google KDE 4.2 and see other shots.

Microsoft steals everything.
Vista was an attempt of theirs to do Compiz/Beryl/CompizFusion and Mac's 3D effects. Microsoft wasn't ready for that, so now they make things more "Simple".
Simple?
Isn't that the cry of a lot of linux heads?

Thanks for listening to us guys :]
Really, immitation is the sincerest form of flattery, right?

The GNU sisters (GNU, Linux, BSD) must be slowly starting to put a hit on the "economically challenged". Apparently if OSx is now going for around 30-40$ and Win7 is right there in the same range.
Free OSes becoming so scary when our economy sucks?
They should.

We need this time where people are looking for cheaper alternatives.
Hopefully this will spark an Open Source revolution.

Cheers.
~Pikles

Well it's that time again - Arch and my HP Photosmart AIO

, , , ...

If you are like me and have an HP Photosmart All In One scanner (mine is the c4435 - known as c4400 series on Linux), and you want to use sane or xsane to scan, you'll probably run into a few nasty issues. Don't fret though, we have a few simple fixes for these.

Warning: As is typical, the commands in this post are run as root, they are fairly easy, but I still take no responsibility for any damage that may arise from you following these instructions. Running anything as root on a Linux system can cause serious damage. If you are not the system administrator, computer owner, or someone authorized to be working on the system, please do not run these commands.

The first one is rather simple, add your user to the lp and scanner groups. As root, run:
usermod -a -G lp,scanner YourUser


Easy peasy.

The next bit is a little harder to find, it took several searches on Google, and didn't even relate to my distro. So I'm hoping this makes it easier for others to find.
What we need to do is add hpaio to the /etc/sane.d/dll.conf.

so we want to run (again as root):
nano /etc/sane.d/dll.conf


A side note: you can replace nano with gedit, kate, mousepad, medit, etc. I use nano because it doesn't leave nasty temp files like gedit does, and because I feel comfortable in the command interface. The choice is yours really though.

And find the section with all the hp devices listed. I had read we should comment those out. I advise against that just so you can keep your other devices working (in case you ever hook up another scanner).
I like to keep mine organized, so I put "hpaio" in this file right after "hp".

For refernce, here is a copy of my /etc/sane.d/dll.conf file:
[p0f@p0f ~]$ cat /etc/sane.d/dll.conf 
# enable the next line if you want to allow access through the network:
net
abaton
agfafocus
apple
avision
artec
artec_eplus48u
as6e
bh
canon
canon630u
canon_dr
canon_pp
cardscan
coolscan
coolscan2
coolscan3
dc25
dc210
dc240
dell1600n_net
dmc
epjitsu
epson
epson2
fujitsu
gphoto2
genesys
gt68xx
hp
hp3900
hpaio
hp3500
hp4200
hp5400
hp5590
hpljm1005
hpsj5s
hs2p
ibm
leo
lexmark
ma1509
matsushita
microtek
microtek2
mustek
mustek_pp
mustek_usb
mustek_usb2
nec
niash
pie
pint
pixma
plustek
plustek_pp
pnm
qcam
ricoh
rts8891
s9036
sceptre
sharp
sm3600
sm3840
snapscan
sp15c
st400
stv680
tamarack
teco1
teco2
teco3
test
u12
umax
umax_pp
umax1220u
v4l
xerox_mfp
[p0f@p0f ~]$ 


Hope this solves your issues like it did mine!

Happy Hacking
~Pikles~

Arch Linux... Hm, it feels like home.

, , , ...

I always find myself coming back to Arch for some reason or another. I tried out Debian for a while again, and I liked it. It was very stable. I'd use it as a server or workstation. Thing is, my notebook isn't a server or a workstation. It's my everything. I use it for media, I use it to test coding projects in PHP and other web languages. I use it to learn databases. I use it for network security and wireless scanning. It's useful for testing application security. I try out new operating systems on it. I also use it to do multimedia and graphic design. This thing really is my work horse. I like it to be on the bleeding edge of software. Hence, I usually find myself installing Arch Linux once again.

This time is no different. Debian worked, but it just lacked certain things. Now I'm back in Arch and Flash or Pulseaudio broke with Firefox. I downloaded and installed Opera and all is working, so I'm happy again.

Opera Unite is pretty damn impressive btw. If you're not using it, I suggest you try it out. It has made me a happy camper.

Also, I wanted to note, a friend and I are working on a new website, I will be posting a link up when we have it completed. I'm working on it as a type this and look for it to be done very soon.

Well, that's about it for now.

Pikles

Arch Linux (squeeze)

, , ,

So as a follow up to my last post, I didn't actually trim the fat. Durning an upgrade I noticed that the fglrx package had been dropped from the core repository of Arch. There are several articles on the web detailing the reason behind it, so I'm not going to into it. All I can say, is that I support Arch in this decision, and if it weren't for having an ATI Mobility x1400, I'd be using the radeonhd and staying with Arch.

That being said, I like rolling-release distros. They are just so much easier to maintain than those with a release schedule. I find Ubuntu breaks quite often if I try to upgrade to the new releases, and several other GNU/Linux variants have the same issue. Debian itself is not a rolling-release distro, but by using the testing version and updating the sources.list so they read "testing" rather than "squeeze" puts my new Debian box as a rolling-release.

Mmmm feel that Debian power?

I sure do XD

any who, for those who are using Debian testing/squeeze, there seems to be some problems getting fglrx to work properly, even when following the trusty guide provided by cchtml.
With that being said, there is a simple script that takes care of this for us, called sgfxi. A google search should turn up this script for you. To run it simply chmod a+x it so it is executable, then run it. If you'd like to keep the script on your system, I recommend moving it to /usr/bin, but that's all personal preference.

As always, happy hacking.
Pikles

Arch Linux - "trimming the fat" for a backup

So today I decided I'd like to do a system-wide backup (all important files).
Why?
Well, it's always better to have a one or two gig backup file stored somewhere just in case something goes wrong...
So before I do my backups I like to have a look at how much space one will take up.
Using bzip as my compression and tar as the main archiver, I usually can achive a compression rate of 1/2 the original size. Meaning, that if my system is roughly 8 gigs, a backup should be roughly 4 gigs.

Well, when I opened up the disk usage analyzer, it showed almost 18 gigs in use. Eight of those were completed torrents in my downloads folder, (Vmware, and OS X) and the rest was being used by the system (approximately 10 gigs of space). That's way too much. A 5 gig backup will never fit on a dvd, especially not when you include the fact that I'm going to put on a minimal Arch LiveCD as well, so I can just pop in the cd, reformat the disk, and unarchive my file, then with minimal editing to the fstab file, I'll have my system working again. (My friend was sitting next to me, watching) He asked me a very simple question "If your DVD is only 4.7 gigs, and your backup is going to be 5 gigs, and you have more stuff to put on the dvd other than just the backup, how do you do it?"

In reality, a DVD isn't really 4.7 gigs. It's actually closer to 4.4 gigs... (4698656768 bytes) you can calculate that out if you'd like... divide by 1024 to get kbytes, and again to get mbytes, and one last time to get gbytes. I'm not too fond of doing math though, so I avoid it whenever possible.

After his question I gave a rather bland response "You trim the fat." He had a bit of a puzzled look on his face, at which point I explained that your Operating System, and your entire computer for that matter does not actually have fat, like animals, but that they do contain "bloat" software you don't use, libs that are never accessed, backup files made by programs like gedit, etc. I told him that in order to fit the backup onto a single DVD, including an environment from which I can extract it, I needed to remove things that are not used, or not needed.

So I set out...

In another post, I'll be writing about what exactly was trimmed and how much space was saved

Browser Speed Test - Opera vs Google's Chromium

, , , ...

This isn't exactly a 100% fair test. Why? Well, I don't have Vista, XP, 2KPro, any version of Mac (other than Leo4All), or any other currently installed Operating Systems other than Arch Linux. So these results are totally biased to my machine (at least until I do further testing).

With that out of the way, I'd like to say, Opera, you won by a landslide. I mean, the difference between Chromium loading the page and Opera 10 were totally amazing.

Well, enough with the jibber jabber, as they say, "a picture is worth 1000 words" well, this picture is worth even more, it proves that Opera is def the better browser (again, at least on my system).

Please note, I did not scale the image, so it is 1920x1200 pixels. If your browser doesn't scale it automatically, please download it and view it in an image viewer. Also, the original image is ~8.8Mb, so it was a large download for an image. As it was so large, I used the Gimp to export it as a gif. The content of the screenshot has not been edited in any way. Regardless, you can see the differences in times and you'll get a feel for why I'm a die hard Opera user.

So without further hesitation, I give you the results:
Google Chrome vs Opera 10 - Speed Test
For The Full Sized Image Click Here (Opens in a new tab/window)

Well, as you can see, when it comes to rendering pages with tables, multiple images (and formats), css, etc. Google just clearly doesn't hold up as Opera walks away being declared the fastest of the two. Congrats Opera Team :]

Another Arch Linux Update

Well, I have a fully working desktop, a full Operating System I guess I should say. I have Pidgin, AMSN, and Gyachi for Instant Messaging, and Skype is also installed and working. Splash screen when booting is working great, and so is Compiz and the fglrx driver. Boot time is down to ~20 seconds, which has me extremely happy. I have a working firewall up and running thanks to Firewall Builder and Iptables.

Honestly, things can't get much better.

There are minor tweaks here and there that I'm still working on, but other than that, I'm totally happy with this distro as a whole. My backup script from Ubuntu works perfectly on Arch, although, I did have to make some minor adaptations to it. The last really big thing I'd like to do, is take the entire OS back it up, and reinstall it to a new disk, just to be sure it will actually work the way it is designed to.

One minor thing I'm working on is getting Solaris's gdm theme snatched from their disk and putting it on my Arch system.

Seriously, if you haven't tried out this distro yet, you should. It's quite an amazing piece of work. My kudos to the developers, maintainers, and the community who all support Arch Linux. :]

On a side note about security, I believe I've mentioned this before, although I don't feel like searching through my posts to find it. There is a "feature" of firewire that allows persons to dump the ram of your machine and even bypass locked screens. Have a look at the link below:
http://www.hermann-uwe.de/taxonomy/term/1972

This page offers advice on how to prevent the attack under the "Mitigation" section of the article. Please read it.
If you're on Linux, please follow the advice to prevent this type of attack on your box, especially laptop users.

PiklesOnFire

Arch Linux - Another Great Distro

So, I said I favored Gentoo. I think I may need to retract that statement. I'm a fanboy of certain linux distros, I'm not going to lie, but it's based on the technical skill required to use those distros. I love slackware, gentoo, lfs, arch, etc. On the other hand, I'm not as huge a fan of the ones that hold your hand and do everything for you. I see this as an issue. Microsoft does that, Windows does that, hell, Mac does that too. It removes a certain layer of security. How does it do that? Well, on Ubuntu you don't know what packages are getting installed as dependencies and in turn what network services might be getting started, which opens your box up for attack. On Ubuntu (and other systems) you can avoid this by disabling services and checking what gets installed as a dependency. On Arch though, nothing starts except the bare minimum unless you'd like it to. It's a rather nice approach. Yes, it means that you can't just install apache, restart, and have a working web server. But again, isn't that a benifit? If I had a webserver install as a dependency, but I don't really NEED a web server, it just opens me up to attacks.

All in all, I find that I like Arch a tad bit more than gentoo because of it's amazing wiki, and from that it's community support (IMHO better than even Ubuntu's), and the fact that it's not a build from source distro, but rather one optimized for the i686 architecture.

I've gotten gnome up and running, as well as Opera, plus I have hard disk encryption + lvm working. I'm a pretty happy boy right now :]

Happy hacking.
PiklesOnFire

Gentoo Based Distro - Maybe?

I've picked my distro from all my testing, as I've already stated. I've decided to go with Gentoo. From using it, and working with it, I've noticed how amazingly easy it is. I'm actually writing this post from links while I'm compiling my xserver.

Read more...

Hackers, Phreakers, Geeks, PEN Testers - BEWARE!

This is another little personal post. I try to keep these related to computers in some way though. This particular one branches out to all of us who do security audits, or PEN (Penetration) Testing. Anyone who has ever used a phone to remotely dial in to another's network card, or into the Ma Bell systems. This, is a word of caution.

It's easy these days to get caught up in the media hype of what a hacker is. We see things on CSI that make us wonder if a "degaussing loop" around a door way will really allow a hacker to get away with the evil crimes he has committed. We see in movies people using holographic touch screen computers and using these computers to hack into major government servers such as those used for missle launches.

The fact is that yes, these capabilities are out there, but that for a hacker to be using something so sophisticated is practially unheard of. It would surprise most people to know that a computer hacker looks nothing like the typical stereotype of Bill Gates, but rather looks like your common boyfriend, girlfriend, neighbor, classmate, or co-worker. Most of us are not pocket protecting, eye glass wearing, geeks, but rather geeks in a new sense. We are more descrete about what we are capable of. We don't discuss our actions with many, or even on message boards. We conduct our business in private places, secluded from others wearing every day clothing. We may even be sitting at your local coffee shop right now, using encrypted messages to discuss our plans for taking down this particular network. We might also be walking around your neighborhood, armed with nothing more than a PDA that scans for open networks and then launches exploit after exploit until it gets our backdoor program loaded; You'd never even notice us, let alone give us a second thought.

Does this scare some of you readers? It shouldn't. Most of us are hacking for education. We may come to your door one day and as a free service offer to lock your network down to prevent attacks like ours. You should still have some fears though, because for all the good hackers, there are some bad.

This warning stems out beyond the technical realm of things on one note. Coversations. As a computer security consultant, it is in my best interest to not explain how to get away with illegal acts, or to condone them. As a citizen of the United States though, I am titled to my freedom of speech. Where the warning comes in, is be careful how you decide to use your freedom. Pick carefully who you discuss plans or capabilities with. Anyone who knows what you can do can turn you over to legal officials, and they might. I'm not saying be paranoid, don't trust anyone, but for your own sake, it's best to be a little paranoid, and only trust those who have as much to lose as yourself.

The reason I post this word of warning is because I was talking with a friend about ram dumps, and how they can compromise a live (running) or zombie (not running) system. While discussing this I strayed away into network security, explaining all the wonderous things I can do to his PC, and even giving a live demonstration to some of my less technical friends. - This was all a bad idea. I ended up scaring most of them, to the point they honestly thought they couldn't trust me around their PCs or networks. I was slightly offended, a little flattered, and a little upset. All in all though, I showed them how I use my "powers" to serve a greater good, rather than to perform feats of evil.

Still, it all goes to show, be careful who you divulge information to.
Any one of the people present during my demonstration could have accused me of performing malicious acts against their computers or networks and had me arrested.
Granted, they all conscented to me using their computers and their network, but that's not always the case.

Stretching out a word of caution -
and as always:
~ Happy Hacking
PiklesOnFire

Security Post - Carving Files From A Filesystem

, , , ...

For information on File Carving, please see the wiki article below.
http://www.forensicswiki.org/wiki/Carving

So, you deleted a file, and can't seem to find it now. What do you do?
On Linux systems, you may have checked the "Trash", and searched for the file, etc, etc.
On Windows systems, you hopefully checked the "Recycle Bin", and may have searched for the file as well.

Nothing turns up. What are you to do?

Well, thankfully, that file isn't gone yet. At least, hopefully.

Before I get into the recovery of the file, I find it to be best if I explain what exactly happens when you delete that file.

For Linux users, you may have actually deleted it, rather than "Move to Trash".
Same for Windows users, only difference being that you send it to a "Recycle Bin" not a Trash folder.
Yes, Windows users, you can add a context menu to delete the file, rather than move it to the "Recycle Bin".

So, what exactly happens if you do one of those first two, moving it to the "Recycle Bin" or "Trash"?
Well, on your computer's hard disk is what is called a filesystem. The filesystem is responsible for taking your hard disk and dividing it up for file storage. The filesystem is also responsible for keeping track of where files are on the disk.
When you move the file to the "Recycle Bin" or "Trash" you're basically just copying the file from "Folder X" to "Folder Y". Folder X being the original location, Folder Y being the holding place for trash items.
All this does is tell the filesystem to now point to a new folder, not to actually remove the file.

Ah, okay, so the file is still there. Easy enough to recover (not diving into that).

Now, what happens if you were to say, empty the "Recycle Bin" or "Trash"?
Well, what you've essentially done is told the filesystem, "Okay, I'm done with this file, remove it from your database of files".
So, it's now removed from the database of files that all filesystems keep, but wait, I never said it's actually erased.
That's because it's not. By removing from the database you now allow the filesystem to use the space that the file had occupied. It doesn't mean it's actually being used yet, or that the file's information is gone.

Regardless of your Operating System, all computers use some filesystem to manage the files and directories on a hard disk. Due to that fact, the methods listed below should suffice for data recovery on a multitude of Operating Systems. I personally have only tested it on Linux (Fedora, Ubuntu, Gentoo) and Windows (XP, Vista, and 2000).



Now that, that's out of the way, how do we get our file back?
Below is a step-by-step guide on how to accomplish this task, broken down into sections, Section Seven is a step-by-step example. Hopefully this will help at least one person out.

In the event your hard disk is encrypted these steps will not be of assistance for recovering your file.
I am currently working on a way to hopefully accomplish this seemingly impossible task though as well.

See my note at the bottom of the post for how to carve data from an encrypted drive.

[Please note - Once you have completed sections one through three you can use a faster way to obtain the files. Some Linux distros do not come with a pre-compiled version of the tools you may use and building software on a LiveCD will take quite a bit of time. If you are interested in recovering the data as quickly as possible, please have a look at the link below:
http://www.ubuntugeek.com/recover-deleted-files-with-foremostscalpel-in-ubuntu.html

Also, worth mentioning, the instructions are for Ubuntu based systems, but the same tools should be available on other LiveCD distros as well, esp those for data recovery/forensics/security.]


Section One - Preserving the Data
The very first thing we need to do, is shutdown your PC.
Why? Well, if you accidentally erased that file, it could now be overwritten by anything you do. Yes, by reading this article you could overwrite the file with your temporary internet files. So shutdown your system and use a LiveCD distro to continue on. Windows users, you will need to use the LiveCD method even for external media, Linux users you don't have to if it's an external medium, but you will if it is the disk your system is running on.


Section Two - File Recon
In order to carve a file from an image, we first need to know a few key things about the file.
What kind of file was it?
Was this an image, a text file, a music or video file, or something else all together?
Of those, do we know what the extension was?
Assuming it was an image: Was it a jpg? png? gif? tiff? bmp?

[Please note - If you are using the faster method mentioned above, you can skip everything below this, and follow the directions mentioned on the link provided.]

Hopefully these are things you can remember about the file. If not, the carving process may take you much longer than anticipated.
Once we know what kind of file it was, and the extension, have a look at the website below about file signatures:
http://www.garykessler.net/library/file_sigs.html

On this page we want to locate our file's format/extension if they have it listed.
If not, you may want to use google to see if you can find it on there. A good place to begin is by searching for
"File Signature" "EXTENSION"

Where EXTENSION is the extension of the file you're looking for. eg: PNG, GIF, etc... You'll want to do the search exactly as I have it listed, only changing the extension, if this search does not yield any results for your file's signature in a hex format, try some other searches.

Once you have your files hex signature, keep it handy, you will need it later. Also take note of the Trailers if they have one listed. This will make recreating the file that much easier.


Section Three - Selecting a Method

The safe method (recommended but takes longer):
Use the Linux command "dd" to take an image of your hard disk.
In order to do this you'll need to have a backup medium that is either the exact same size as your original disk, or one that is larger. Larger is recommended.
I could go into detail on how to image the disk using dd, but there's a lot of info on Google about that topic.

The unsafe method (faster)
The unsafe method involves you directly accessing you original disk.
This is called the unsafe method because it can cause data corruption beyond the loss of the original file.
It is a good way to quickly recover a file that has to be recovered immediately, but if you have a couple of days to do the image, imaging is recommended.

Either way you go, you should either now have an image of the disk to work with, or you should have the disk itself.

WARNING!!! If you use the unsafe method, I take no responsibility for a corrupted or damaged disk! You have been warned of the dangers!


Section Four - Picking an Editor
This isn't the most important step, it's not even a required step, it's one that makes the recovery job a little more custom to suit your needs and preferences.
Then why is this important? Well, I don't like to tell people what they HAVE to use to do a job.
It's like my boss coming up to me and telling me I have to use a stapler when a paper clip gets the job done just as well.

My personal preference is Hexedit, a terminal based program which has an excellent way of working with files. See the link below for information on working with files in Hexedit.
http://prigaux.chez.com/hexedit.html
(for my example I will be using Hexedit to do the data recovery.)

Another choice is GHex2, which is a Gnome Hex Editor.

There are several other editors out there, pick one you like.
Again, this is all personal preference


Section Five - Locating the Data
Here is where the real fun begins. We now need to recover the file from the drive.
If you had a lot of files of the same format you're searching for, you'll probably have a lot of results when you're searching for your file's signature. This can heavily impact the amount of time it will take for us to recover your specific file or set of files.

In order to carve the file from our hard disk or image we open up our medium in our hex editor.
If you're using the hard disk, it will be something like /dev/hda1 or /dev/sda1.
If you're using the disk image, it will be the image name you created. Example: /media/disk-1/myimage.img

Now, to find the files that relate to our particular type of file we are searching for.
We'll want to use your hex editors search function to find the file signature you noted earlier.
Now that we have located that, take note of where this specific set of information is.
In Hexedit you'll find it at the bottom of the terminal as 0x6B34161/0x8EDC400 where the first number is the offset you are currently at, and the last number is the total offsets in the file. GHex2 also notes the offset at the bottom of the window.
Next we will want to search for the trailer signature that you had noted down earlier.
Again, we want to note down it's offset. (Noting it down is a good idea so that you don't use the same offset twice if we have multiple files of the same type)


Section Six - Extracting the Data
Now to actually take that information that was once our file, and recover it to a new file.
We now want to copy all the information that is between the two offsets you just noted down, including the two offsets themselves.
Once we have that copied, we want to extract it into a new file, with the same extension that our original file had.


Section Seven - An Example Case Study
Now that you know how to recover the data, let's prove it works.
[Please note - I'm running all the commands below as the root user.]

For this, I'm using my 512Mb USB Drive.
First, I create the partition using CFdisk:
cfdisk /dev/sde


I'm using a 150Mb Partition, because it is easiest to work with for me. Nice and small, but still provides enough space to actually place a file or a couple of files on the disk.

I want to zero out the partition to ensure that there is no previous data left on the disk.
dd if=/dev/zero of=/dev/sde1 conv=sync


Next I create a filesystem on the newly formed disk (I use XFS you can use ext2, ext3, or any filesystem you like.)
mkfs.xfs -f -d agcount 4 /dev/sde1

The "-f" option should be used to force the creation of the filesystem. The "-d agcount=4" is totally optional.

Now we have a fresh partition, hopefully free of any information.
Well, that's not actually the case, just doing a low level format will still leave at least trace amounts of information from files on your old system. That's not the case though here, because I zeroed out the blank platter before hand.

Following the creation of the filesystem, I want to copy over a file, so that there is something on the disk.
cp /home/user/myimage.jpg


And we want to sync the disks to be sure that the information was written to the filesystem.
sync


And now I want to "delete" the file"
rm -f /media/disk-3/myimage.jpg

the "-f" option here tells us to force it to remove the file, preventing it from asking me if I'd like to.

And we want to sync the disks again to be sure that the information was written to the filesystem.
sync


Next step, is to unmount the filesystem so that the information on the disk does not get overwritten blindly.
umount /dev/sde1


Following the unmount, we now need to image the disk. Since there is no information I care about on the disk, I COULD do a direct disk carving, but to show an example of how to do this step-by-step I'm going to take an image.
dd if=/dev/sde1 of=/home/user/149.8Mb.img conv=fdatasync,fsync,sync


Now that we have our image, we want to carve our file from it to make sure the carving process works correctly.
hexedit /home/user/149.8Mb.img


To locate the file's signature I use Hexedit's search feature
CTRL+S

Here, CTRL+S is a keypress, not a command to be typed in the terminal.

We get promted for what to search for, since my file was a JPG file, I use that files type's signature:
FFD8FF

There are actually two for JPG file formats: FF D8 FF E0 and FF D8 FF E8, to make searching simpler and hopefully faster, I just shortened it. It may lead you to a non image-format string though. To be sure look for JFIF somewhere close by on the text side of your hex editor.
For my particular example, the string was found, and it is an image. The offset is 0x6B34000

Now that we have that part of the file (the beginning) I want to search down and look for the trailer of the file. For this I search for the JPG trailer of FFD9
CTRL+S

FFD9

In this example my offset is 0x6B44AE7.

With the two offsets known, we now need to copy the information.
CTRL+SPACE

Sets the marker to the active offset.

Once you have used the page up key to select the contents back up to the beginning offset, you'll want to actually copy the information.
ESC+W


And Paste it into a new file.
ESC+Y

You will be prompted for a place to put the information, I used /home/user/recovered.jpg

Upon opening the file you will see that it is the exact image that you had deleted before. Actually, if you have thumbnails, you'll notice it before you even open the file.
Amazing isn't it?
As a small side note, I'd like to mention, this is by no means the only ways to recover a file. This is simply the method I use as it's tried and proven.

This example is me carving data from a running system. I didn't actually use a LiveCD, and you don't have to if it's an external medium. LiveCDs are used for disks that your system is running on.

I'll be uploading screenshots of this in a bit and adding them to this post, as well as posting the test results from my distro testing.
(Yes, I've actually finished typing up the white-paper, now I just need to put it on here)

Note 1: Update - I have found a way to carve files from an encrypted disk. It requires you to actually mount the disk though. As an example, I have an LVM on a Luks encrypted section of my hard disk. In order for me to carve the file from that particular disk, I would use /dev/mapper/VolGroup00-LogVol00 as the input file for dd.
If you have any issues or questions about this, please post a comment and I'll assist you as best I can.


As always,
Happy Hacking
PiklesOnFire

It's been a while - Distro Testing Complete

So yes, it has been quite a while since I have been on my Opera account. Why? Well, mostly due to the testing, and re-testing, and then yet again re-testing several distros.
Why did I test each one three times? Well, because I was told every science experiment is conducted three times to ensure the results are valid. Since this isn't an exact science experiment, I shouldn't have cared, but because I have at least two people who have gained something from this blog (not including myself) I wanted to ensure everything I wrote was true.

As the title explains, my testing is now complete. I will be posting the results up either today or tomorrow, it all depends on how long it takes for me to get the document written.

For those of you reading who are impatient and are curious as to which distro I picked for my personal use, and which one I picked to fork my own distro off of, you may be surprised to hear, they are the same one. Gentoo.

I'm not going into any further details as to why Gentoo won, all I'm going to say is that it fits my needs very well.

If you're interested in the results, I'd check back Friday as that's the absolute latest that they should be posted.

As always, happy hacking
PiklesOnFire

Switching From Windows - Why Are You So Scared, Mom?

This is just a tiny personal update, but it does deal with technology, and GNU, Linux, Unix (BSD), and Solaris, so I figured I'd just post it up here.

I was discussing with my mom how my associate and I are working on forking a distro from an already existing one. I sat her down at my PC, let her play with what I've come up with so far. To be totally honest, I never expected her to actually enjoy using a computer, but this distro made it very much so. She usually checks her e-mail, maybe visits a site or two, or prints some directions. Today was different though, she sat on my laptop for hours. I actually had to beg the woman to let me have my laptop back so I could continue the testing of the distros.

Then came the big question. "Mom, can I put Linux on your laptop too?"

She seemed stunned, almost apalled that I would even ask her this. So we had a conversation. She explained to me that she has several Windows applications she has to use for work (VPN). I tried to show her how she could connect to the VPN using Linux software, and exactly how easy it was. Still, she refused to budge from her Window's corner. I thought to myself that there had to be something, some tiny reason that she was so afraid to make the change. Maybe it's just that, the fear of change, the idea of something new, something she's never really used before, something that goes so against the mainstream. I'm still not sure. I asked her why she was afraid to make the change, and she abruptly changed the subject to my sister's newborn son. I had even tried to switch her to BSD, assuring her we could set it up just like my Linux box, only it's supposed to be more stable (after all, Unix is known for it's server-grade stability). It was still a failed attempt to switch my mom from a proprietary prison to a totally free OpenSource world.

I'm sort of saddened by the whole experience, only because the distro I'm working on is one that...
Well, I can't divulge any secrets about it quite yet, but my mom made a remark about just how hard it will be to move people from their windows perch. I guess it sits so high, that they can't see the world around them and all the fun that can be had when you aren't as worried about viruses, spyware, and the likes.


Happy Hacking
PiklesOnFire

Month of the Distros - Maybe "Week of the Distros"?

Tech News -
Well, I've started the testing again. BSDs, Solarises, and Linuxes to boast about, to compare and contrast, to write about until my face turns purple. I already have nearly a page and a half of notes, and that's only for four distros. Two of the ones tested are the same distro, just different releases, and the others are two BSD distros. I'm not going to start typing notes on them just yet, I want to do a full write up on everything (yes, I know, I keep changing how I'm doing things, sorry). I can tell you now though, three of them failed epically, and the one which actually has me surprised is a BSD dist. Hmmm, I wonder what other surprises might be instore for the testing ;]

Oh, speaking of BSD, I'd like for everyone who reads this, to read a very important guide to password security:
http://desktopbsd.net/wiki/doku.php?id=doc:security
It's from DesktopBSD, and it's really informative. If you don't care about any of the other sections, I feel it safe to say you can skip them, but for passwords, I feel everyone, Linux, Unix, Solaris, Novell, Windows, Mac, whatever you use, it's a good idea to read it and take it to heart. Mostly, it's important for everyone who uses a computer to follow it.

Oh, and for the person who sent me a message, about re-tagging my blog posts, I'm sorry, I do that after every so many posts. I'll try to start tagging them better in the future (this post will be tagged later as well though ;p).

And for the reader and forum poster who asked about CentOS being tested, you should make sure to come back, and read my review of it. I think you might be surprised.

That's really all I have for now.

HappyHacking
PiklesOnFire

Day of the Distros - Still downloading ISO's

Tech News-
I currently have 24 ISO's, not including the ones I had already had. I want to make sure I make this very clear in my blog: I am by no means a "Linux Fanboy". I am if anything, an OpenSource fanboy. I'm going to be testing a wide variety of kernels, including Solaris, BSD, and Linux. I'm doing this to see what fits me best. I love the linux kernel, don't get me wrong, but I also love the idea of adaptability. I'll adapt to what fits my PC and my needs the most.

I'd also like to note, I was originally only doing stable testing, several dists had long out dated stables, so I'm also testing alpha and beta and rc's.

Also, I'm going to pick a distro, and from there, I'm going to be working with one of my associates to come up with a new distro. It's release date, and schedule have not been set, but a framework for what we'd like it to look like and do has been. This distro is not going to be publicly available, but you might start seeing it around. More on this to come.

So it seems I should have probably named this on going endevure the "Month of the Distros" since it seems that's about how long it's going to be for testing and everything else. Oh well, I'm enjoying the experience I'm gaining from this, it simply gives me a broader understanding of GNU applications, and several different kernels.

- As always -
Happy Hacking,
PiklesOnFire

Day of the Distros - Another Day of Dowloading ISOs

Tech News -
This doesn't really need to be numbered, it's just one small update, to inform you all, that my list has just vastly increased, I mean, we are talking about dozens of distros now instead of just a few. I'm going against the mainstream, taking a stand for the smaller guys out there, and giving them their shot in the spotlight.

You'll see a fully modified list when I complete the downloads.
Please be patient, as I'm going to probably start testing all over again, simply for note taking purposes. Oh, and another one that is def added to the list, as per a forum request, CentOS will be getting a Laptop review as well.

I should have mentioned this earlier, but the hardware theses dists are getting ran on, is an E1705 Notebook from Dell. it has 2 gigs of ram, with an ATI Mobility Radeon x1400 Video card, as well as a 2.0GHz Dual Core processor, and a 17 inch display (1920x1200).

Also, I'm going to be using a LiveCD to do some Filesystem tests (encrypted and non-encrypted). Then, once I've picked my filesystems, and tweaks for them, and my distro, I'm going to perform a few tests on filesystems that reside on USB (also encrypted and non-encrypted). So look for those results probably within about two weeks.

Happy Hacking~~
PiklesOnFire

Day of the Distros - Compile From Source's Turn

Tech News -
1) Well, after a rousing spat with Arch in the Virtual Machines to get the encrypted lvm containing my /home and swap partitons, I've decided that having JUST these two partitions encrypted is a PITA, I can't find anyone who has successfully set it up. Not a single post ANYWHERE. Everything I've read makes it seem virtually impossible, and from my experience it is.

2) The thing about #1, is that I don't feel I NEED to have the whole system encrypted, just having my /home and swap should be secure enough, since that is where all the information about myself is stored. Encrypting the full system affects system performance when running games and other apps in general.

3) Well, as much as I'm honestly terrified of it, I'm ready to install Lunar Linux. I hope my experience in Arch and previous experience with Gentoo will assist me with it.

4) Speaking of Gentoo, a reader recently messaged me asking why I'm not including it in the day of the distros. Well, I'd like to say it's mainly because Gentoo has a lot of fame and popularity, a lot of users are out there using it, and it's all over the media and forums as it is. I started out wanting to do the Day of the Distros to try out some less common ones, and to test one in Beta.

5) I have actually decided to continue extending the Day of the Distros, so I can test out a few more, Gentoo will be included, a final list will be posted as well as the results, so look there for a more in depth comparisson of distros.

6) I've recently been consulting with another computer geek friend of mine, and he seems interested in learning linux from a network security aspect. I feel as though I may start writing some guides on this subject very shortly.

7) I haven't actually posted a new guide in a few days, I'll probably write a short guide about Arch, possibly for Lunar as well. For the time being, I need to save my Arch install disk, and test out Lunar Linux on my box, so look back for a post on that within the next day or so.

8) In my searches for how to get the LVM encrypted I stumbled upon this site:
http://citp.princeton.edu/memory/
which is really informative about breaking drive encryption. I was really surprised by the results, and I myself may end up testing that out as well. For laptop users, this word of warning, even having drive encryption won't save you with what these guys have found (Thank goodness for dell hard drive passwords).

9) Speaking of Dell Hard Drive passwords, (no not a BIOS password, not a password for drive encryption, and not a Login password, a true Disk Password) it seems as though they are impossible to remove, and on some laptops, even removing the disk, and replacing it with one not protected, will ADD the password to the disk. Pretty scary stuff. I'm wondering though, if Dell, or someone somewhere has a reset tool. I'm sure one has to exist. Dell can't jus let the forgetful go without a hard drive. If it's out there, I'm wondering also if it's on the net. I mean, everything ends up in cyberspace, even tools to program your cell phone, to clone it, everything. All those tools are manufacturer tools, or are the tools of retailers, so if something like that existed for Dell's Hard Drive passwords, could even having those passwords set be virtually useless?

10) Answering the question in #9, I don't feel any password is useless. I mean, that's why I have my drive password, plus disk encryption, plus the login password. That's three layers of security. If someone manages to steal my laptop, and get past all three of those, then they deserve to have any information they want off of here (which wouldn't be much considering how often I wipe the drives ;p).

11) Speaking of wiping the drives, I'd like to touch on the subject of securely erasing files. Please, under no circumstances EVER use a piece of software called "Evidence Eraser" or "Windows Washer" both of these have been known to actually log every event the perform, keeping tabs of what you're erasing. In the case of Evidence Eraser, I've read that they don't even delete the files for you, it just makes it appear that way. Linux users, using a journaled filesystem virtually defeats having a file "securely" wiped, the best thing I can advise us to do, is backup our files that we need, boot a livecd, and use /dev/urandom 7 times to securely wipe the disk. 7 is a standard, I know people who use 25-100 I feel safe at 45. You can write a simple bash script, or find one online to do this for you even.

12) Now to touch a little more on secure file deltion, sorry this is getting so out of hand and turning into a ramble, but I keep thinking of new topics as I go, and I don't want to post a thousand Blogs about different topics, especially such short ones, but I will post more in depth Blogs about each one of these, I promise. Back to the subject, this link:
http://isandtcolloq.gsfc.nasa.gov/fall2008/presentations/pederson.pdf : pdf file
outlines details of how information was recovered from a hard drive on board the space shuttle after it crashed.

Another good link about security of information and wiping drives:
http://ultraparanoid.wordpress.com/2007/09/12/securely-erase-hard-drives/

Yet another good Link:
http://www.fsckin.com/2008/01/09/using-shred-to-wipe-hard-drives-dod-uses-it-you-should-too/
In this one, if you search for "off-track" you'll see why more is always better for secure data removal.

13) I think I'm going to write a good, general security guide for data on laptops, but that's to come in the future. It will probably include, like the last link in #12, a guide for how to encrypt your drive using pgp.


As always guys and ladies
Happy Hacking
~ PiklesOnFire

Day of the Distros - Into Day Two

Tech News -

1) I got the basic core of Arch linux installed. It only took about 10 minutes from start to finish.

2) This distro is great for what it is. What I mean by that is don't expect a pretty installer, it's ncurses based. Don't expect a pre-built flashy desktop waiting for you, you get dropped to a terminal at the first start.

3) You get a great deal of support, almost anything you need, can be located on the ArchWiki. It's a much cleaner format than Ubuntu's forums and IRC and Wiki. I like the fact that it's a mostly centralized place to get the information you need.

4) For some reason a setup using an encrypted LVM consisting of Swap and /home failed. I'm not sure why, but I'm looking into it, and hopefully can get it fixed.

5) This really is an impressive distro, I mean, you have to do the work yourself to configure everything, but that's one of the things I love. I'm warning you, if you don't feel comfortable using the terminal, don't use this distro. If you think you've used the small gnome-terminal enough to be sort of comfortable, try it out in a virtual environment. What's the worst it could hurt? At least if you give it a try, you can say you got the experience.

6) A great bonus about the bare bones install, you can pick your window manager. If you're a KDE fanboy, use KDE. If you're set on Gnome and Gnome is all you want, go Gnome. If you like E17, XFCE, or another lightweight window manager, use them. No one forces you to use a window manager, or to go through hell and back to remove one and install another.

7) If you do decide to give this distro a whirl, get ready to run the command "pacman -Ssu && pacman -Syy && pacman -S links" - This will give you a terminal based web browser.

8) For those of you who have a network connection during install, chose that as the install medium, it will make configuring your network easier later on.

9) So far, FGLRX works flawlessly, so does the Synaptics Touchpad, the same with Flash and Java support in Opera, as Well as my Logitech Quickcam. I'm sure this list could go on and on of things that work.

10) I can't say it's all my fault these things are up and working, I did install them and configure some, but the package builders are the ones who did the work. Guys, this distro is still just blowing my mind. I can't even explain how amazing it really is.

11) I think I could start living in the terminal and be totally fine, and it's all thanks to Arch Linux :]] Because of this distro, I actually feel ok if my Xserver doesn't start, I don't panic, I'm ok configuring my network from the command line, I'm ok doing a lot of things I wasn't ok to do before.

12) This distro is pretty slick in that it has multiple repositories, one with binaries, and one with user supplied software that gets compiled for you (using a tool called yaourt).

13) The pacman and yaourt tools work very closely, "yaourt -S <package_name>" and "pacman -S <package_name>" does the same thing. The difference is that yaourt will compile software from the Arch User Repository (the one with user supplied software), and pacman will install a binary from one of the Arch Linux repositories.

14) I don't even know if I want to continue testing with the "Day of the Distros" p: I think I might have found my new desktop distro for sure :]

(14 of course is sarcasm, I will continue with the testing of the last distro on my list - Lunar Linux - and then have a full post of side by side comparisons. Yeah, I decided I want to show you guys the faults and positives of each distro, at least from my stance.)

I'll have more for you later

~ Happy Hacking
PiklesOnFire

Day of the Distros - Continuing Testing

Tech News -
1) I booted into the OpenSolaris livecd, that was about as far as I had gotten. No support for my particular network card, only wifi. Which, usually, it's the opposite. Oh Well.

2) Scraping OpenSolaris I've installed OpenSuse 11.1 (still in testing). There are a few bugs, and a few "gotchas" that will keep me from using this Distro as well.

3) FGLRX is supported, but you have to install it manually, which means every time you update the kernel, you HAVE to rebuild the module manually. Not fun for me.

4) There is a bug, that when a new CD or USB Drive (any media, I'm sure) causes the open-folder to fail and the bug reporting app to come up, and the desktop to flicker.

5) Webcam does not work out of the box, neither does Compiz.

6) Touchpad scrolling does work out of the box.

7) I get an overall good feeling about this distro, but for the time being, I'm not fond of it, then again, I've never really liked Suse.

8) I've decided I'm going to be working with Lunar Linux (a build as you go system) last during the testing, because it is the one that will take longest to install.

9) Up next for testing is Fedora Core 10, followed by Arch Linux, and then Lunar Linux.


Happy Hacking
PiklesOnFire

Day of the Distros - The List Grows Shorter

Tech News -

1) The list of distros for the "Day of the Distros" has grown itself shorter. Why? In part because I'm fond of the Gnome desktop, and certain distros listed only ship with KDE.

2) I'd like to make this note to anyone who reads this and might be a distro developer (I'll be leaving notes on their sites as well) If you're going to make a distro, please, PLEASE, give options. Make a KDE variant and a Gnome variant, at the very least. I'm not saying go all out like Ubuntu and have E17, and XFCE variants as well (it'd sure be nice) but at least give the two choices of the most commonly used desktop managers.

That is all for this short update. I'm on to testing OpenSolaris. Look for notes on that in my next update.


- Happy Hacking
PiklesOnFire

Day of the Distros - Round One - Foresight Linux

Tech News -
1) I've started testing on the "Day of the Distros". I started out trying a compile from source distro in a Virtual Environment to get used to being in total control of the OS (more on that later) while I had other ones downloading. I decided Foresight Linux would be first up for a real test run though.

2) Install went fairly smooth. A few issues though included that it couldn't start the Xserver using my ATI card (ATI Mobility Radeon X1400). Hmmm?

3) I think they should call this distro Hindsight Linux, because it still lacking in the partitioning of the disk. I couldn't set up an LVM (despite there being an option for one as a partition type).

4) I also couldn't set up an encrypted home and/or swap. In an age where security matters, this is a major deal to me. Maybe not to some home desktop users, but then again, maybe.

5) Updates on this particular disto are slower than on Ubuntu or on Fedora. This is another set back for them.

6) A major plus, boot time was absolutely amazing. I had a full desktop in UNDER 30 SECONDS (thats from power on to full desktop in 30 seconds). This may make it worth the very slow update speeds. If it's taking so long because it is actually optimizing the packages or something like that, I would be ok with it taking a little longer to update, if not, I see no reason for it being so slow.

7) Also noted - This distro isn't able to use compiz out of the box like some others. This isn't a huge set back, but it is still a set back in my book.

8) Another minor annoyance is that it doesn't recognize the scrolling ability on my touchpad out of the box. I like to use the touchpad to scroll pages in firefox and opera and well, everywhere I need to scroll. I'm a speed freak, and this is something that slows me down.

9) Yet another plus for them, it did get my video resolution right out of the box, and that's always a plus, but incorrect resolution on my hardware is becoming a thing of the past.

10) Another downfall for them comes in the package manager they chose, Packagekit, it doesn't list the software in categories like most distros do, and it doesn't even display the full list of packages like synaptic. Very sad to see.

11) I hate to keep focusing on the negative, but I just don't see enough positive in this distro, yet another fault is that suspend 100% does not work, neither does hibernation.

12) A positive for them - Scrolling in firefox and opera (even though I had to use keys until I configured Xorg myself for the touchpad scrolling) is amazingly smooth. Not jerky at all like in some other distros out there. Kudos for that at the very least.

13) Also worth mentioning, is the fact that I haven't (yet) run into any dependency updates, which some distros are infamous for.

14) Another plus for Foresight, is that flash works on websites without any issues.

15) Yet again, a negative for Foresight, is that my sound under PulseAudio is not currently working. Again. And I know it's not the hardware, because it was working in certain applications on Ubuntu, just not the majority of the time.

So this is just the start to the testing of Foresight Linux. You'll probably hear back from me this evening after I've had a few hours to play with it and see what it's all about. I can tell you now though, it's not the Desktop system for me.

On a side note, I went through yesterday and updated the tags on all my other posts. This should make finding them (and me) on google a lot easier.

A second side note, I did discover a quite promising looking Desktop/Workstation OS called X/OS based on Fedora while I was searching. I may look into that as a "Professional Operating System" BUT more on that and other distro tests later.


...
Happy Hacking
PiklesOnFire

Another round for "Day of the Distros" - Also, A Few New Goodies

, , , ...

Updates for this blog -
1) I recently decided to change my photos. Why? PiklesOnFire is supposed to be a Tech thing. I don't want photos of myself up to reflect it, I'd like it to stay mostly anonymous.

2) I've decided on a new format for the blog, including, but not limited to, Updates for the blog, Updates for my current Distro, and Tech News. All of these sections will be seperated and labeled for easier navigation.


Updates for my current Distro -
Ubuntu Intrepid -
1) I haven't located a fix for my sound issue.

2) I also haven't found an exact fix for the suspend issue, which really bugs me. I have located this link, which seems like it might be very helpful to some, but none of the suggested posts worked for me. - Link: http://ubuntuforums.org/showthread.php?t=720385


Tech News -
1) Well, as the title states, I'm redoing my "Day of the Distros". Why? Well, it essentially boils down to the fact that I didn't read enough about the distros I had tested before. Also a reason, is that I haven't had a "Day of the Distros" post on this blog, only on my myspace. Distros being tested this time include (listed in no particular order):
a) Arch Linux
b) Foresight Linux
c) OpenSolaris
d) OpenSuse 11.1 (yes a beta, but still going to test)
e) Pardus
f) Lunar Linux
g) Slax
h) Fedora Core 10

If that seems like a lot for testing, well it is. So much in fact that my "Day of the Distros" may not be a single day.
I'd like to give each of these an equal opprotuninity to prove themselves and I'd like to have adequate time to test each one. When I get done testing, You'll see a new post titled "Day of the Distros - Testing Results Are In". That post will have all of my findings. I may do a side by side comparison of each distro, but I'm not 100% sure about that yet. If there is something you would like to see notes about, please drop a comment to let me know, I will be compiling a list.

2) I'm rewriting the bash script I use for my backups in perl. This is mainly because of the extensibility of Perl vs Bash. So look for me to be posting that script up soon instead of the bash one I was originally going to post.

Well, that about sums it up for this post of Tech Blog.
Once again, thank you for reading and

Happy Hacking
PiklesOnFire

USB + Encryption + Archiving File = SLOW AS A SNAIL

, , , ...

Alright, another day, another update. I have my 160 Gig USB Drive connected to Intrepid, and it works great, I don't even get prompted for a password anymore when I plug it in (Luks Encrypted drive). Problem is, if I want to add a file to an archive (ie i want to tar and bzip it) it takes forever and a day. Today alone, I had about 6 files I wanted to do this with. I wrote a simple bash script to take care of doing them one at a time for me, because I know all at once with two of the files being over 3.0 Gigs and the other 3.4 Gigs it would take even longer. The script was simple, it cd's to my /media/disk directory (the USB Drive) and into the /ISOs folder, which is what I was zipping up, was a few ISOs. The next thing the script does is find all the ISOs in that directory and it's subdirectories. Next it starts one by one tarring the files, bzippiping them as it goes. After it finishes one file, it erases the starting ISO, and moves on to the next. Simple enough, right? Not really. The script has been running for almost an hour now, and it's still got the large 3.4 Gig file to go.

Lesson learned from all this is exactly what the title states. USB Drive + Encryption + Trying to archive a file = Slowness.
I mean, my system is running fine while it's compressing, so I guess I shouldn't complain, but still. I wish I knew a faster way.


As always,
Happy Hacking
PiklesOnFire

Ubuntu Intrepid - Clocksource Fixed, System Still Hangs, AND No Videos - FGRLX Fixes It

, , , ...

So here I am again, second time today, writing another article about how Intrepid was freezing up on me. It was rather annoying, I fixed the clocksource issue, but the system still stops responding about every ten minutes. Another problem I was experiencing was I was unable to watch videos with Totem, Xine, Mplayer or VLC. They simply crashed. I ran them from the terminal to get some error or someting. Googling revealed that the error was actually coming from xorg, and only happens when compiz is enabled. Here is where I come in with two pieces of good news though, I have found the fix for these issues, at least, if you're an ATI user who's video card supports FGLRX ;] I mean, hey, what good is a cutting edge linux desktop if you can't show your friends how it's 3D effects PWN Window's?

The error that I was getting from Totem, VLC, Xine, and Mplayer was the following (shortened to the most important part):
The error was 'BadAlloc (insufficient resources for operation)'.


So how do we fix this new problem of not being able to watch a video, and the system freezing? Simple, we install the FGLRX driver. This isn't actually so simple, as I had noticed when I followed a guide for how to install the FGLRX driver.

In order to install the driver, I advise using the Restricted Drivers Manager. This awesome little application included with Ubuntu will take care of all the nasties for us. To install the complete application (it's lacking a bit by default) run the following:

sudo apt-get install linux-restricted-modules-generic restricted-manager
sudo apt-get install jockey-gtk jockey-common fglrx-modaliases


After the install completes, navigate to [menu] -> System -> Administration -> Hardware Drivers
In here, you should have the option to enable "ATI/AMD proprietary FGLRX graphics driver".
We want to enable it. After the Hardware Drivers has done it's job, restart your machine, and you should now enjoy the fruits of having 3D acceleration.

Now that takes care of my system hanging, hopefully yours as well, but it doesn't totally fix the video problem. Yeah, now I can watch them without Xorg crashing the video application, buuuuuuut, now the videos flicker. How do we fix that you may be wondering. Well, it's simple also, just run the following command:

gstreamer-properties
Go to the video tab, and select "X Window System (No Xv) for the plugin under "Default Output" hit the Close button, and now you're done.


Again, Ladies and Gents,
Happy Hacking
PiklesOnFire

Ubunut Intrepid - Clocksource From Hell

, , , ...

So, this is my second time trying to write this article. I'm sad to say the issue I thought was the cause was not the only culprit. I am happy to report now though that everything is stable, and I'm pretty pleased witht the overall progress of my Desktop coming together. I should probably explain that there is a pretty major issue with the clocksource Ubuntu is using, hpet. This particular clocksource was the cause of my system freezing every ten minutes or so. To be totally honest, it could have been the issue in Core 10 as well, but I was less tolerant with Core 10 and did not check the logs, so there is no way for me to be sure. To see if the clocksource is the cause of the issue on your system is simple. Navigate your way to [menu] -> System -> Administration -> System Log. If you look at the messages or kern.log sections and search for "hpet" (no quotes) and see results like this filling the page:
Dec  6 15:47:13 P0F kernel: [  163.857342] CE: hpet increasing min_delta_ns to 15000 nsec
Dec  6 15:47:14 P0F kernel: [  164.653250] CE: hpet increasing min_delta_ns to 22500 nsec
Dec  6 15:50:18 P0F kernel: [  348.432089] CE: hpet increasing min_delta_ns to 33750 nsec
Dec  6 15:52:04 P0F kernel: [  454.148092] CE: hpet increasing min_delta_ns to 50624 nsec
Dec  6 15:52:59 P0F kernel: [  509.009124] CE: hpet increasing min_delta_ns to 75936 nsec
Dec  6 15:53:45 P0F kernel: [  555.721382] CE: hpet increasing min_delta_ns to 113904 nsec

That's a good indicator that hpet is the cause of the issue, or at least a factor.

Now then, for a short guide and an explanation ;]

So how do we get our system stable? Or hopefully bring it a step closer to stability? Well, it's a pretty simple process.

WARNING: I can not stress this enough, you will be modifying critical system files. If something goes wrong, I take no responsibility. Again, if your system gets hosed because you followed this guide, I am not responsible

With that warning out of the way, I'd like to say, that no matter what, unless your system freezes in the midst of us updating the bootloader or something catastrophic like that happpens, your system should be fine.

On to the solution.
The first thing we need to do, is become root. Run the following command:
sudo -i


Enter in your password. Now you should see something similar to the following:
root@localhost:~#
see note 1

Now that we're root we'll start applying the fix. We first need to modify the bootloader, grub. To do this, run the following command:
gedit /boot/grub/menu.lst
see note 2

Locate these two lines:
# defoptions=quiet splash

# altoptions=(recovery mode) single
see note 3

And modify them so that they look like this:
# defoptions=quiet splash hpet=disable

# altoptions=(recovery mode) single hpet=disable


Now save and close the file and issue the following command to update the bootloader with the changes:
update-grub


Lastly, issue the following command:
rm /boot/grub/menu.lst~
see note 4

Type
exit
to drop from root, and restart your system.


If all went well, your system should no longer hang. If it still does, read my next post about FGLRX and how it may save the day.

I'd like to explain what exactly the "hpet=disable" option does. It tells the kernel to disable the HPET timer source and tell the kernel to use the PIT timer source instead. - That is according to this document Kernel Boot Command-Line Parameter Reference : pdf document

I'd like to also mention, that I had Googled this issue, and did see a resolution on one of the bug tracking websites, it was to use the option "clocksource=jiffies" however, this option caused my Xorg to unexplainably stop loading.

Notes:
Note 1: The important part here is that we see "root" this indicates that you have sucessfully become the administrator on your system.

Note 2: I issue the command gedit because I'm on the default Ubuntu install. If you were on Kubuntu it would be kate, and Xubuntu mousepad, respectively. Also, the command line tools vim or nano are always good options if you feel comfortable working in them.

Note 3: Your lines may not match exactly to mine. Again, just look for the key parts here, "# defoptions" and "# altoptions".

Note 4: This command is actually an optional "clean up" command, it removes the temporary file that was created while we were working in gedit. I mention to run it last in case you system hangs in the process of working on these files, if something goes terribly wrong, hopefully you'll have this backup copy until we no longer need it.



Goodluck and Happy Hacking ~
PiklesOnFire

Ubuntu Intrepid Ibex - Getting Better

, , , ...

So, I gave up on OS X, and on Core 10, I've gone back to my loving Ubuntu Intrepid. Debian is still lacking in the kernel department, but I'm sure soon enough that will change and I'll be back to being a Deb-Head. I got my webcam working, and I'm pretty happy about that. I have my initial backup done, with one after I got everything configged to my liking and all my nice pretty packages installed. I've modded the backup script a bit though so it now uploads the backups to an FTP server, that way I have 2 "non-volatile" copies, as well as the one stored locally. I know it seems like a bit much, three copies of the same backups, but hey, better safe than sorry (a lesson all too well learned by most AFTER they lose everything). Despite a little flicker on the cube of compiz, the default radeonhd driver seems to be proving much more stable than it did on Fedora as well, plus, 3D games like Nexuiz are running awesome. I'm happy to say that I'm as much a Ubuntu fan as I ever was. Sorry for all the praise to Fedora, it was well placed, just a bit premature. I'm sure after a few months of updates Fedora will be quite an amazing desktop, but for now, it's still lacking a few essentials.

Coming soon to my blog - My sources.list for Intrepid, the backup script I'm currently using, and a few other surprises ;]

Yet again,
Happy Hacking,
PiklesOnFire :]

Fedora Core - Switched To OS X - Back To Searching

, , , ...

So, a few minor bugs have managed to keep me from using Core 10 full time, at least until they have had a chance to get some updates out. My screensaver seems to freeze after being active for too long, suspend and hibernate both epically fail, fglrx support is non-existent at the moment, and my webcam BARELY works.

So after fiddling with Leo4All for about two hours today, I got a copy of that installed to a USB drive. All is ok, except, no webcam AND it doesn't have the proper display resolution for my video card. Leo4All is just not for me.

Now I'm back to searching distrowatch and a few other linux distro update sites looking for something that will really amaze me. As I've used Parsix before, I may look into it again as well, but I'm not terribly sure. I had several issues with it as well last time I tested it.

So here I am, in a sea of opensource looking for the next great distro to try out. I wonder which one will catch my eye ;]


Look back for more
and as always,
Happy Hacking -

PiklesOnFire

Fedora Core 10 - More Lessons Learned

, , , ...

So, I've still kept Fedora Core 10, despite the fact that the fglrx driver is not working properly. I've gone back to using the default radeonhd driver, and compiz is working1, I've gotten all the packages installed I feel I need to make this a "Perfect Desktop" and testing of my backup script from Debian/Ubuntu has proven to still be working. I'm really impressed with this Distro. Honestly, Fedora has come a long way since I last really used it (which was at Core 5) but it's also come a long way since I was last majorly disappointed, which was only months ago with Core 9. Kudos to you Fedora team. One thing that may catch some new users off gaurd, if you use the RPMFusion repositories, don't enable the Rawhide repositores from RPMFusion, these repositories are used for Beta testing, so unless you enable the Beta Repos from Fedora, you'll get some dependency issues. Other than that, and the FGLRX issue, all seems to be going pretty well. I do wish I could have fglrx up and running though. Oh well, for the time being, having a stable desktop is what matters most to me, and that's what I have with Fedora. Oh, and another bonus of Fedora that Ubuntu & Debian lacked, is that it has airsnort AND aircrack in the repos, which is just a nice little bonus for wifi hacking ;p

Oh, and one last thing, my webcam the Logitech Quickcam Messenger, is not working. That's not much of a surprise as it hasn't worked on Ubuntu or Debian either though, so I'm not blaming Fedora for that, I'm just hoping that maybe I can find a fix quickly.


Note1: Compiz is working for the most part, there are still some glitches and things are running slower than usual (scrolling in Firefox or Opera, Flash videos on youtube, etc) but it hasn't crashed, and things are "working"


Yet again, Happy Hacking folks :]
PiklesOnFire

My Tech Blog - At The Top Of Google In Less Than A Day

, , , ...

I was Googling, because I had some trouble with the FGLRX driver after installing via the guide mentioned in the post before this. It may not have been the directions about FGLRX, I may have made a mistake. Whatever the case may be, When I searched for "Fedora.Core.10" "FGLRX"1 there was my post at the very top. Interestingly enough, my post does not actually explain how to get the FGLRX driver up and running2, however, it was really nice to see my blog sitting at the top of not just one, but two Google queries3. Sadly, I have yet to see my Blog reach the top of a Yahoo search using the same query, but, I'm sure eventually, my blog will make it to the top of all the major search engines. So, thank you to anyone who has read this, and thank you Google for making me number one p:

Note 1: On Google, the "." when your query is encapsulated with quotes, means that google doesn't care what the words are seperated by. Ie- it could have a space, underscore, period, etc.

Note 2: I do plan to post an article explaining in detail how to get the FGLRX driver up and running asap.

Note 3: The second query I found myself as number one was ""Fedora.Core 10" "FGLRX" (Note the small difference)



Happy Hacking =
PiklesOnFire

Fedora Core 10 - Teaching Me To Put My Foot In My Mouth

, , , ...

So far, everything about Core 10 has surpassed all my expectations. I knew boot times would be lower, but I couldn't imagine my system being up in less than three quarters of a minute, especially when I have to enter two encryption passwords (Dell's Hard Disk password, and software level encryption password). Since I've mentioned encryption, I should mention, the Fedora team has come a long way on this aspect. Still using the Anaconda installer as always, there is an option to encrypt partitions now, I LOVE it. XFS is an option for partition formats, which as most know, is not only fast and stable, but also provides the most space on a hard disk, another bonus feature of XFS is that when you "delete" a file, rather than send it to the "trash" you actually get that space back as useful space. Sorry, this blog isn't about XFS though, it's about Core 10. I'm following a nice install guide as I write this (sadly from FireFox haven't installed Opera back YET). The guide is located here: http://www.my-guides.net/en/content/view/125/26/ I'm only mentioning it because a Google search for me turned up very little, and it was only by chance I found the guide. I'm hoping this will help others as well. I still recommend to trash SELinux. As far as packages breaking due to lack of dependencies, that issue seems to have finally cleared up. Also on a positive note for Core 10, the boot screen is simply beautiful. I also love the desktop wallpaper. I'm still not a fan of the default theme (I'm using Nimbus now). I'm not sure why, but I love the stability of Linux, with the look of Solaris, sue me. Well ladies and gents, I'm happy to report that, for the time being, I have a new desktop distro - Core 10. If you're looking for a replacement to Windows or Mac, I recommend you give this Distro a shot, as always, it's still free.

Happy Hacking -
PiklesOnFire

Fedora Core 10 - Another Round

, , , ...

So I have been reading a lot about Fedora Core 10 recently and have decided to give Fedora and Red Hat in general another shot. I've only decided to give it another try because Debian is slowly lagging behind it's counterpart Ubuntu (they haven't implemented the new linux kernel 2.6.27). Considering the kernels is on revision seven, I find it perturbing that Debian hasn't included it in at least it's testing release, Lenny. Fedora and Ubuntu on the other hand have both included the new kernel, which adds a lot of support for FGLRX, as well as KVM, and a lot of other much needed improvements. Fedora has always been buggy with package management, and other issues have always been a major road block keeping me from ever using it for more than a half an hour. I'm hoping I won't be disappointed again. If Core 10 manages to keep me appeased, I may find myself using a new Linux distro as my desktop, if not, I'll be reverting back to Ubuntu. Either way, I'll be posting back about the new Core 10 and my personal experiences.

Happy Hacking ~
PiklesOnFire

The Start of a New Beginning

, , , ...

I have a tendency, on my myspace, to post everything under my blog. I don't use categories very often, and I don't really care, until now. I tried to go back to find a post about my webcam and how I managed to get it working, to my despair I could not locate the particular post. That was the final straw. I had remembered about the Opera community and that you could have several blogs, not just one. So here I am, creating the new Tech Blog, based on the fact that I need to have my Tech blogs seperated from my life stories.

I look forward to posting a lot on here, and hopefully, seeing some of the posts on google searches in the future.


Happy Hacking,
PiklesOnFire