April 8th, 2008 — Linux
Do you want to install the restricted modules but not the nvidia driver? I do! Because I want to install the newest & latests nvidia driver directly. Then read the following post:
http://ark.asengard.net/blog/2008/02/19/nvidia-api-mismatch/
But do not use “nvidia” but use “nv”. “nv” disables the three nvidia drivers.
April 8th, 2008 — Linux
Lately, whenever I’m feeling bored and I don’t feel like programming or watching tv or anything (well, I can’t actually. Because my tv is not connected at the moment) I browse to the new Ubuntu brainstorm website. There are a _lot_ good ideas for Ubuntu (and some really, really, really bad ideas). And some ideas are already implemented by some piece of (open source) software.
For example, I found this one.
April 8th, 2008 — Linux
I always installed the flash plugin by hand, unrar all the codecs et cetera. But on the forum I found someone who recommended the package ” ubuntu-restricted-extras”. Did an apt-get install and I worked great! Installed all the stuff I needed:
[quote]
flashplugin-nonfree, gstreamer0.10-ffmpeg, gstreamer0.10-plugins-bad, gstreamer0.10-plugins-bad-multiverse, gstreamer0.10-plugins-ugly, gstreamer0.10-plugins-ugly-multiverse, libdvdread3, liblame0, msttcorefonts, sun-java6-jre, unrar
[/quote]
February 26th, 2008 — development, Ruby
As a “professional” webdesigner I know how much testing sucks and how it, at the same time, is one of the most important things to do (besides coding the stuff). That’s why I appreciate Rails’ very complete testsuite so much. And now with Rspec user stories (a nice tutorial here and here) and webrat it’s getting even better!
February 25th, 2008 — development, Linux, Ruby
I used this resource:
http://rorblog.techcfl.com/2008/02/19/create-and-deploy-a-jruby-app-to-the-glassfish-gem-in-10-minutes-or-less-on-mac-os-x/
How to install jruby on Ubuntu:
sudo -i
mdir -p ~/src/jruby/trunk
cd ~/src/jruby/trunk
svn svn.codehaus.org/jruby/trunk/jruby/ .
ant
~/src/jruby/trunk/bin/jruby --version
The current version doesn’t work to well with rails’ script/console. It is very, very, very slow. So I keep using Yarv until this is fixed. It seems really promising though. Can’t wait for Rubinius to become stable!
February 25th, 2008 — Linux
Ubuntu changed the defaut editor to ViM? At least: my Hardy Heron installation suddenly changed editor. This is the command you can use to determine which editor you want to use by default:
sudo update-alternatives –config editor
February 20th, 2008 — Uncategorized
In my previous blog item I asked the question: where am I going to host my (git) project? John Nunemaker mentioned github for hosting git projects. Maybe I’m gonna look at that when I’m done with my house.
February 16th, 2008 — development, Linux, PHP
A.k.a. “installing something that would take ages in another OS”
For a client of ours I’m doing a project. But I had to wait at my new house today for my new tiles. And at my new address I don’t have internet yet. So I made a local copy of the project and had to install apache, mysql and phpmyadmin.
sudo aptitude install libapache2-mod-php5 phpmyadmin mysql-server apache2 php5-gd
And it worked! Linux not user-friendly? Pfffttt!
February 15th, 2008 — Linux
I thought about doing:
sudo apt-get install non-free-codecs gstreamer0.10-pitfdll w32codecs
Nothing!
Maybe:
sudo aptitude install totem-xine
Nope…
Maybe… then:
sudo aptitude install mplayer
Yesss… that worked! Too bad mplayer gnome integration looks like shit…
[edit]
Of course, this works beter: aptitude install ubuntu-restricted-extras
Try it!
[/edit]
February 15th, 2008 — Linux
This was a ha(n/r)dy guide:
http://ubuntuforums.org/showthread.php?t=51486
So because I am always losing with UT and keep blaming it on the poor performance of my laptop I was forced to optimise UT. After fiddling with new engines, I discovered that doesn’t make any difference at all.
I logged out of gnome and stopped gdm. With xinit I started a new X(org) server, ran UT and voila: much better performance. But this are waaaay to many steps so I created some scripts to do this for me.
I have two scripts:
ut
This runs wine and invoked the UT binary
newscreen
This runs a new xserver without gnome or anything.
I placed both scripts in ~/bin
UT:
#!/bin/bash
wine=`which wine`
$wine ~/.wine/drive_c/UnrealTournament/System/UnrealTournament.exe $*
newscreen:
#!/bin/bash
MINARGS=1
E_NOARGS=70
E_NOTEXE=71
EXECUTABLE=`which $1`
NR_OF_SCREENS=`pgrep -x Xorg |wc -l`
NEW_SCREEN=$(($NR_OF_SCREENS - 0))
if [ $# -lt $MINARGS ]; then
echo "You have to use at least 1 argument in the form of an executable"
exit $E_NOARGS
fi
if [ ! -x "$EXECUTABLE" ]; then
echo "The argument should be (the path to) an executable"
exit $E_NOTEXE
fi
xinit $* -- :$NEW_SCREEN > /dev/null
I am especially proud of the newscreen command. I think it’s really nice. Especially because it counts the current number of running xservers. So if it’s only one (usually) it creates :1. If there are more it raises the number.
The commands are used like:
newscreen ut #start ut on a new :1 server
newscreen xclock #start xclock on :2
Nice eh?