Posts

Samba and NFS locking problem and permissions

Solved an odd problem today. Problem 1: File locking My samba share directory on my ubuntu box has an nfs mounted directory within it. When copying files into it from Linux, everything was fine. However, Windows complained of error number 0x80070021 (something about another process locking a portion of the file).  It turns out Samba was trying to lock the file again once nfs had got its hands on it. Solution: in smb.conf, under [global], add 'strict locking = no' and the problem disappears! Problem 2: File permissions Linux coped perfectly fine already, possibly because of the file_mode=0777 and dir_mode=0777 that I'd added to fstab.  However, Windows failed to create the files with the correct permissions. Solution: under [mediashare], add 'create mask = 0775' and the permissions are right under Windows too!

liblwjgl and geany

It all works fine until you try to run it. :( It complains that it can't load the LWJGLException class (even though lwjgl.jar is clearly in the classpath). But it turns out, the problem was that java couldn't find the native libraries. Here are the command lines to build: javac "%f" -cp '.:/usr/lib/jvm/jdk1.7.0_04/lib/*' and to run: java -cp '.:/usr/lib/jvm/jdk1.7.0_04/lib/*' -Djava.library.path=../natives "%e"

Potential Cause of Persistent Crashes

I've been concerned for a while that my cardboard case doesn't properly support the weight of my graphics cards. I've experienced persistent freezes and spontaneous resets under Ubuntu, and thought it was a driver issue. This morning, I had crashes in Ubuntu 10.04LTS, 11.10 AND Windows 7.  When I nudged one of the graphics cards up and rebooted, Windows 7 was fine. I have now added more support for the graphics cards.  11.10 still freezes.  So far 10.04LTS still going strong.  Haven't tested Win7 yet.

Stability issues with R8168 network driver

Fix here: http://ubuntuforums.org/showthread.php?t=1861865

Ubuntu 11.10 ATI Drivers

Installing stable ati drivers on Ubuntu 11.10 is a pain in the backside, but here's the latest attempt: http://webcache.googleusercontent.com/search?q=cache:aRlqZkHo_JQJ:linux-software-news-tutorials.blogspot.com/2011/10/ubuntu-1110-oneiric-problems-with-ati.html+ubuntu+11.10+x64+stability+issues&cd=6&hl=en&ct=clnk&gl=uk&client=ubuntu

Battlefield 3 - Shelf moments before I've even played it

I had forgotten how much I hate PC games for this type of crap. So I pre-ordered Battlefield 3. It finally arrived (3 days late - thanks Amazon/Royal Mail), and I started the inevitable and interminable installation. I have to install 'Origin' first (EA's equivalent of Steam). Sucky number 1. Then, I have to install an update that's required for Battlefield 3. I PRE-ORDERED THIS GAME!!! How come it needs an update already?! Sucky number 2. At that point I'd created an Origin ID, logged in to it and all it can say is 'No Games Detected'. Sucky number 3. So having followed the install instructions to the letter, I now have Origin installed which I did NOT want, but no Battlefield which I DID want. ULTIMATE SUCKAGE. And then, guess who didn't think to check that it supports Windows XP? >_< So a few days later, I install Windows 7. Problem solved? No. I had to try the install 4 times before Origin would recognise that I actu...

Debian Desktop? Back to Ubuntu for me

Recently, my Ubuntu install felt the need to corrupt its own package install database and refuse to start up. Having good backups and little patience, I decided to go for a clean install. I thought I'd try Debian for a change. Ubuntu is Debian-based so I figured they'd be similar, and I use Debian for my server so I thought I'd be able to handle any differences easily. The first warning signs were when I wanted to install the video drivers. Ubuntu makes that so very easy. Debian makes you take a few steps through. Not ideal, but not arduous either. Installing compiz-fusion was more of a pain, but still manageable. Again, this is a piece of cake on Ubuntu. More similar niggles followed, but I figured I was just being soft. Then I tried installing wine and Sketchup and I quickly became enraged. I had managed this task on Ubuntu with only a little hacking, and no undue fuss. Here's the breakdown of the process under Debian: 1: Install wine ...