Courtesy of Twitter

Posts Tagged ‘ubuntu’

It’s Been One Week

Tuesday, March 18th, 2008

Since I switched to Ubuntu for my development work on my main PC, and I’m loving it. Here’s a few things that make Ubuntu cooler than Windows XP:

  • Tabbed Consoles. I can press Alt+` and I get a new tab, instantly, in my console window open to the current directory I was working in. If I need a new console I can setup a new shorcut in System -> Preferences -> Keyboard Shortcuts to create one when I press Ctrl+` (you people who type on the home row might wonder why I did this… I don’t type on the homerow. Fingers go wherever they please)
  • The inability to click that naughty TF2 icon. Earns me more money every time I don’t think about playing it. To get to TF2 I have to reboot, maintain attention through the reboot to remember to press Escape and then select Windows XP, wait for XP to boot, and then wait for the game to boot. I get… emotional when I play TF2, so it’s probably also better for my blood pressure.
  • irssi. My god! For a console chat client this kicks ass. I’ve set it up to automatically connect to three servers, (EnterTheGame, EyeRC and Freenode), authenticate me and join all the channels as soon as I start it up. No registration window, no welcome screen, it just does it.
  • I can install anything and there’s multiple ways to do it. Firstly, I can do apt-get install <anything> and it’ll install it. It even takes multiple parameters, so I can install as many things as I want, at the same time. It doesn’t even care about what programs I have running, it just does it. The other way to go about it is to go into System -> Administration -> Synaptic Package Manager, and select your packages in there. It even comes with a search feature.
  • I don’t have to compile everything I want to install, unlike certain other linux operating system.  Everything installs as fast as I can download it, plus a few seconds on top of that, at the most.
  • Automatic updates. It gives you a non-obtrusive indication that there’s updates available, whenever you need them. Oh, and it’s not just for the operating system, unlike other operating systems. It’ll update all your programs that you installed using apt-get or the Synaptic Package Manager.
  • Want office? That’s automatically installed. Want tetris? That’s installed. Want Firefox? That’s installed. Want a photo manipulation program? That’s installed. Want something to draw pretty pictures in (Gimp)? That’s installed. I can go on.
  • The places menu. Why, oh why, does Windows not have this? This is awesome.
  • Compiz (which currently doesn’t work for me, but used to). Makes everything pretty. You can spend minutes, if not hours, toying around with Ctrl+Alt+Left Arrow or Right Arrow and all the funky settings for making your windows fade in/out, exploding or whatever. Again, kicks ass.
  • Shit actually installs. I can install stuff because I’ve installed the build-essential package (quite sizable, but worth it), by using the compiler. Does Windows come with a compiler? No? Well that’s too bad. Switch to a decent operating system.
  • Memory usage. Currently I have, Pidgin, two consoles, Netbeans, gFTP, Firefox, XMMS, an IM window from Pidgin and System Monitor. I am only using 456mb. Doing the same thing in Windows would probably push it up to something more like 700-800mb.

The only thing I can’t do (yet, and because I haven’t set anything up to do it) is play games. But this is my development operating system, if I want to play games I’ll use Windows.
I could go on, but there is so many awesome things about Ubuntu. Try it for yourself, do yourself a favour. http://ubuntu.org. You’ll thank me later.

Now With 100% More Evil

Wednesday, March 12th, 2008

So I installed Ubuntu on my main computer to give me some distraction from that lovely TF2 icon sitting in RocketDock, and so I could use Git (that’s another story altogether). Everything worked beautifully! I installed it two nights ago at 12am, shortly before going to bed and got up halfway through the night to finish the installation process and set a few downloads (build-essential mozilla-thunderbird ruby1.8-dev ruby1.8 irb rake rubygems rails mongrel apache2 mysql-server5.0) going, and then went back to bed. I didn’t mind the fact that both my screens were clones of the same window at this time of the morning.

I got up and tried to do some coding but I needed my dual-screens. So I went on the nvidia site and downloaded the drivers and then I had to kill X to install them. So that’s what happened. Installed the drivers fine, loaded it all up again and it was perfect! nvidia-settings was my next installed item, which gave way to ultimate dual-screening glory and my coding for the rest of the day. It was sunshine, rainbows, lollipops, unicorns, fluffy bunnies and more. It was beautiful. I was at peace.

Until the kernel updates came through.

“Please restart your computer”

And so I did. That’s where the fun started. Upon rebooting my computer all hell broke loose. The rainbows turned to rainclouds, the lollipops to tofu, the unicorns to rottweilers and the fluffy bunnies to those burning head things from Doom. Ubuntu had launched itself into low graphics mode.

But I was young and naive! I thought “surely I can just click this configure button, set it to the proper settings and it will work perfectly”. I was stupid. Upon clicking the OK button, it launched me into a black screen of doom for all eternity. Until I pressed the reset button. I did this a few more times until I figured out the Ubuntu low-graphics dialog is a piece of crap, and should never be trusted.

Launching into the recovery console got me further (as I was actually able to type) so I ran dpkg-reconfigure xserver-xorg and the driver’s install again and X started perfectly. Everything was reverted back to the sunshine-land state of rainbows, lollipops, unicorns and fluffy bunnies. Running nvidia-settings again worked, and I even restarted X just to make double sure it wouldn’t happen again.

I launched straight back into my coding with gusto, but got sick of listening to the radio, especially those new songs by Rihanna, Souljah Boy, Akon and so on. I wanted my music. I thought, no problem! I’ll just install ntfsprogs and mount my Windows partition.

Apparently my windows partition hadn’t shut down properly (it requires lulling to sleep on a bed of silk sheets with velvet pillows whilst listening to Chopin), so I rebooted and launched into Windows only to shut it down, this time I hoped properly. I went back into Ubuntu and low-graphics mode made it’s stunning return.

More than likely at this point I made some choice remarks about Ubuntu, none of which should ever be repeated since Ubuntu is my bitch now, and the neighbours on all four sides (behind, left, right and across the street) probably made out what I was saying with minimal effort. Again the whole rebooting into recovery console and re-installing the drivers.

That was yesterday. Today I turned on my computer and I knew that low-graphics mode was going to come up, so I went into the recovery console and did my thing, and it all worked perfectly. But it was annoying! I did not want to do this every time I booted my computer! Why should I?

I looked for a solution, and even grumbled about it in #rubyonrails on freenode, until a user by the name of dfr came along and suggested a few things. He told me there’s more than just running the drivers, you can specify options like it not asking you questions at all and automatically accepting the license agreement. So I hacked up a nice file that now lives in /root/fix-stuff, that looks a little like:

#!/bin/bash
./NVIDIA-Linux-x86-169.12-pkg1.run –no-x-check –no-recursion -N -b –no-runlevel-check -n -q -a

Which is called from /etc/rc.local (a file that runs on every runlevel) which reinstalls the drivers for me on every boot.

The options are, obvious, obvious (doesn’t check for conflicting files deeper than the surface), no networking, no backup,obvious, no precompiled interface, don’t ask any questions and I agree with the user agreement!

On another topic, I’m sick of the 20 spam posts per day so I finally got around to getting a Wordpress API key. If you look at the bottom of the template you should see a counter to exactly how much spam this has killed. So, all you spam-whores: Go away.

So there you go, that’s why I’m now 100% more evil, and 100% happier.