Category Archives: linux

Find Broken Symbolic Links

# Print out broken symbolic links find -L . -type l Note to self: Move this to a useful Linux tips post.

Posted in bash, linux | Tagged | Leave a comment

malloc double free/non- aligned pointer being freed set a breakpoint in malloc_error_break to debug

malloc: *** error for object 0x3874a0: double free ***set a breakpoint in malloc_error_break to debug malloc: *** error for object 0x18a138: Non- aligned pointer being freed *** set a breakpoint in malloc_error_break to debug So basically something in your code … Continue reading

Posted in c++, linux | Tagged | Leave a comment

Cannot open /dev/sda1: Device or resource busy

After an update (Upgrade?) a while ago I couldn’t boot into Fedora, it had the text mode bar graph and after getting to 100% it failed with this error message: Cannot open /dev/sda1: Device or resource busy It turned out … Continue reading

Posted in grub, linux | Tagged , | Leave a comment

How to Find and Remove Folders Recursively in Linux/Unix Because I Always Forget This

# Recursively search for folders called .svn and delete them (Even if not empty) find . -name .svn -type d -print | xargs rm -rf   # Recursively search for files called *~ (gedit creates these for temporarily saving to) … Continue reading

Posted in linux | Tagged | Leave a comment

I Love the Idea of a New Smart Phone

The list of awesome phones: HTC Phones OpenMoko Palm Pre However, a new hotness has just been born. The Nokia n900. 32 GB internal storage Expandable to up to 48 GB with external microSD card 3.5G mobile network Quadband GSM … Continue reading

Posted in linux, nokia n900, smartphone | 2 Comments

Moving from SVN to GIT

So I have a few projects on SourceForge, but they’re all hosted via SVN. With all this distributed version control going on I thought I would like to get in on the action. I thought about moving to github, but … Continue reading

Posted in linux | Tagged | Leave a comment

Symbols/Characters Returned by ls -l

$ ls -l total 24 drwxrwxr-x … thisisadirectory -rw-rw-r– … thisisafile lrwxrwxrwx. … thisisalink -> /media/data We know what the rwx fields are but what about d, – and l? Ok, those are pretty obvious too, here is a list … Continue reading

Posted in linux | Tagged | Leave a comment

libxdgmm

I think the Portland Project from freedesktop.org, is a great idea and everyone should be supporting it in their applications. I’ve just created a very small C++ wrapper (libxdgmm) for accessing XDG more easily. To use it, you need libxdgmm.h … Continue reading

Posted in c++, libxdgmm, linux, xdg | Tagged | 2 Comments

Upgraded Linux Kernel not recognising ext3 partitions and the solution

Unable to access resume device (/dev/dm-1) mount: error mounting /dev/root on /sysroot as ext3: No such file or directory Being a Linux noob, I found this solution Create mkinitrd.new chmod +x mkinitrd.new su cd /boot sudo ./mkinitrd.new -f initrd-2.6.27.24-170.2.68.fc10.x86_64.img 2.6.27.24-170.2.68.fc10.x86_64

Posted in linux | Tagged | Leave a comment

“Error: glXCreateContext failed” After Updating Video Drivers

After updating video drivers I couldn’t run 3d applications, for example glxinfo: Error: glXCreateContext failed The following needs to be present in the xorg.conf file: Section “Files” ModulePath “/usr/lib64/xorg/modules/extensions/nvidia” ModulePath “/usr/lib64/xorg/modules” EndSection

Posted in linux | Leave a comment

Yearly Update :)

It’s been a while, I have like 20 draft entries in WordPress ranging from 1 paragraph comments up to 10 paragraph full on entries that still need that final once over and edit before going live. Actually it might be … Continue reading

Posted in c++, gamedev, linux | Leave a comment

x86_64 Linux C/C++ Test

I use: gcc cmake KDevelop RapidSVN Meld However, don’t go the websites, all of these are available in the (Default?) repositories, so you can either install them via yum, PackageKit or apt-get. Also note: RapidSVN and Meld are only needed … Continue reading

Posted in c++, linux | Tagged , | Leave a comment

Linux x86_64

I have been dipping my toe into x86_64 waters sporadically over the last couple of years. On each of the previous occasions it always seemed too immature, packages were way to hard to come by (I prefer precompiled binaries), half … Continue reading

Posted in linux | Tagged , , , | Leave a comment