What you have to do is edit the /usr/share/dbus-1/services/org.gnome.keyring.service file, comment out where it says Name=org.gnome.keyring and add the line Name=org.freedesktop.secrets
For example, my /usr/share/dbus-1/services/org.gnome.keyring.service file looks like this:
So today is the day I start building my perfect system. Before getting going, I had a good think about which distro to use for the base install. I’ve been using Ubuntu for about 2 years now and love the ease of package management with apt and aptitude. I had a bit of a play around with Ubuntu Karmic yesterday and I must say it looks fantastic, and with Lucid Lynx only a few weeks away it might come as a bit of a surprise to discover that my choice is a distro I’ve never used before: Arch.
Why Arch?
There are three main reasons I’ve picked Arch over Ubuntu, or even Debian.
I really like the idea of Arch’s rolling release system. My laptop is currently running Jaunty and in order to get the latest packages I would have to upgrade to Karmic. With Arch this is less of an issue.
As mentioned in my initial post, the base system should be small, quick and light. With Arch you can pick and choose exactly what you want at installation time, keeping it bloat free.
Installation was relatively painless, the only two slight issues being:
I chose Auto prepare for partitioning, but I didn’t really know what filesystem to choose. Eventually I opted for Ext4, with so far, no ill effects.
During Boot Device Selection, again I wasn’t really sure what to do, but after some Googling I found this page, whose advice I followed, but just pressing enter.
I restarted and was greeted with a shell prompt. I quickly pinged Google and my network was still up and running through the ethernet on DHCP.
The next step up a non-root user and X. Again, the Arch documentation is excellent.
Setting up X was relatively simple. I originally decided to not opt for hotplugging, which was a mistake because I only have a USB keyboard and mouse, neither of which I could use in X (muppet of the day award goes to me). After turning off the machine and setting up hotplugging, all was fine!
I have been using the Awesome window manager for about a month now. Awesome is a tiling window manager which is heavily geared towards being keyboard friendly, and as it’s name suggests, it is pretty awesome.
Unlike Jaunty, installing the latest stable version of Awesome was a breeze, I simply ran:
# pacman -S awesome
and edited my ~/.xinitrc file adding:
exec awesome
at the bottom. When I started X again, Awesome was there without any problem.
Sound was equally as simple to install, which was a nice surprise.
So my base system is now setup, with my window manager of choice in place and sound ready and waiting for my music collection. And all this running under 100MB of RAM!
After my first foray into the world of Arch I’m pretty impressed. Pacman is very straight forward to use, after a bit of tweaking here and there it has just worked.
Following my previous post about installing PHP5.3 on Jaunty, I have had a few requests about installing it on Karmic. I’ve never used Karmic before so I thought it would be a fun excuse to have a poke about whilst also keeping my blog (sort of) up-to-date.
After freshly installing Karmic (the desktop version looks very nice btw) on a new VirtualBox image and then updating with the latest, er, updates I was ready to begin.
The entire installation procedure is very simple, once all dependencies are met.
Firstly you must edit your sources list to include the DotDeb package repository and the old Jaunty security packages to meet dependencies.
$ sudonano/etc/apt/sources.list
# php5.3
deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all
deb http://security.ubuntu.com/ubuntu jaunty-security main
Now update and upgrade Ubuntu
$ sudoapt-get update
$ sudoapt-get upgrade
You may find that you get the following warning:
WARNING: The following packages cannot be authenticated!
libevent-1.4-2
Install these packages without verification [y/N]?
I just answered Y and continued as normal
Once successfully upgraded then you can install Apache, MySQL and PHP as normal, feel free to cater the installation line to your tastes.
You will get a warning about untrusted packages being installed but this simply means that the PHP5.3 stuff is not signed, so I typed in “yes” and carried on.
After you have installed everything you need to, test it out, either command line:
$ php -v
PHP 5.3.2-0.dotdeb.1 with Suhosin-Patch (cli)(built: Mar 9201010:14:53)
Copyright (c)1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c)1998-2010 Zend Technologies with Suhosin v0.9.29, Copyright (c)2007, by SektionEins GmbH
Or by using phpinfo() page within your Apache installation:
$ sudonano/var/www/info.php
<?PHP
phpinfo();
?>
then fire up http://localhost/info.php and at the top of the page you should see something along the lines of PHP Version 5.3.2-0.dotdeb.1
Note: if your browser asks if you want to download info.php, simply restart Apache and try again:
$ sudo/etc/init.d/apache2 restart
All done. Not quite as simple as on Jaunty, but still better than compiling the source!
Post Script: Before starting this post, I did a quick search looking for tutorials to see if the work had already been done, but couldn’t find anything on installing PHP5.3 on Karmic. As there wasn’t anything I decided to continue with my tutorial and I ended up struggling for an hour or so with the dependency issues. Typically, after I had figured it out for myself, whilst searching for another dependency issue I found this post on the JMOZ blog about installing PH5.3 on Karmic Koala. No idea why it’s not in Google, but either way, damn, I could have saved myself an hour or so!
Today is an exciting day. I have in my possession a brand new custom built computer to use exclusively at the office. I currently use the laptop for both home and office work, but since the laptop is getting a bit old and computer components are so cheap these days I decided to build a work station just for me to use at the office. The best thing is that as it is custom built I can put whatever I damn well want on it – no pre-installed Windows or anything else. I can make it absolutely perfect for me.
I’ll be documenting here in my blog exactly the steps needed to take it from a tabula rasa to my perfect desktop system. Apart from the system being obviously Linux based, there will be a number of things to consider before I get started. If I want it to be perfect, I need to think about what it is that I really need and want from a work only system. So, after a brainstorm this is the breakdown of what I require:
Keyboard Friendly
I am becoming less interested in using the mouse. This is for a number of reasons, firstly it is quicker to keep your hands on the keyboard rather than always having to find the mouse and point and click. Secondly, using the mouse greatly exacerbates RSI and all that jazz. As such a system designed for maximum keyboard usage is important.
Great Web Development Tools
As a web developer this is a no brainer. I need to be able to have the tools for developing websites, testing (at code, server and client level) deployment and client side version control.
Base system should be small, quick and light
Due to point 2, I can see the need for being able to have virtualised instances of Windows running, each running a different version of IE. As such, the base system should be as small, quick and light as possible so it doesn’t get bogged down when I have one (or more) windows running for testing purposes.
Communications
I have to be able to email, chat, and talk with people via my computer
Music and sound
I need to listen to music at work!
Must get on with others
Some strange people out there still use propriety software. My system needs to be able to read Word and Powerpoint and all that stuff.
Not be rude
This is a strange request, but over the weekend I had a friend staying who is an IT administrator for a large international company. He had to do some work on their Windows based infrastructure, so he powered up Vista on my laptop (which I never use*) to log into their systems via the Remote Desktop. Half way through he had to make a couple of calls. When he came back Vista had rebooted and he had lost everything. We narrowed it down to the fact that Vista had updates, installed them and rebooted without even asking for permission. IMO, that is really fucking rude.
Stable
Last, but by no means least, the system has to be solid. I can’t have it crashing on me every hour.
And that is pretty much it. Follow me over the next week or so whilst I sort out my ideal perfect work station.
This is more a post for me than anyone else, but I thought I’d share anyway.
In our team we have a mixture of Linux and Mac users, and we are constantly editing the same files. One of the most irritating things is when a file is saved with Mac line endings instead of Unix line endings (displaying as ^M in Emacs). This happens very rarely, but on the occasion it does I can quickly convert back using the following commands on my Linux box:
I’ve just read quite an interesting article on the Linux Mint blog courtesy of Linux Today. It describes how Clem, a Linux Mint user, managed to get a refund on Windows that was pre-installed on a Dell laptop they purchased, and then donated the money to Linux Mint!
One of the comments tries to argue that Clem shouldn’t have been entitled to a refund as they knew what they were buying. I don’t hold with this argument as last time I tried to purchase any laptop that wasn’t a netbook I found it impossible to buy one without Windows pre-installed – and to make it worse they were pretty much all Vista!
With people like Clem engaging in this kind of action, and with Ubuntu trying to make Linux more accessible to the average user, hopefully one day I’ll be able to purchase a laptop and have a choice of what I put on it.
I have recently been playing around with an old laptop and it’s give me the taste for delving deeper into the world of Linux. For this I normally use VirtualBox, but a friend of mine (who is an avid Mac fan) was recently raving about VMWare’s Fusion. I decided to see if they had anything similar for linux and give it a whirl. I toddled along to the VMWare site, couldn’t find anything, so Googled VMWare Server and went straight to the relevant page!
I downloaded, installed and connected to the VMWare Server admin via Firefox. All well and good. So now I wanted to actually use it. I decided to test it out using Debian as the Guest. I chose Debian simply because I know it, and I know it has a net install, meaning I could test out a minimum system.
I downloaded the ISO, and then set about creating my new Debian Guest. First problem, I couldn’t find the Debian ISO! After reading the docs (which always takes second place to proding and poking around) it turns out that you need to add a Data Store, using the Commands menu on the right hand side of the VMWare admin home.
Once I had sorted this out I then created the new Guest specifying NAT networking, attached the Debian ISO and started it up.I selected NAT networking because Host Only will not let me get access to the outside world from the guest – obviously a pain as I was using the Debian net install – and I have always found Bridge Networking to be as flaky as a delicious if not slightly dry Cadbury’s chocolate bar.
Hmm, VMWare is clearly very different to VirtualBox because it didnt open a window where I could see the new guest booting up. How do I communicate with the guest. Again, after some poking I found a tab for the Console, which at first asked me to install a Firefox plugin, but once that was installed I could see the Guest.
I then installed Debian and restarted the Guest server.
Once rebooting I then tried to install OpenSSH. Slight problem, I couldn’t get an outside line! I couldn’t even ping Google. Hmm. After some searching I found out that the problem was DHCP was not starting up. I ran the command (as root)
$ dhclient eth0
This allowed me to connect to the outside world, and to ensure it would always start up I followed the commands from this post within Debian Help:
Add the line
auto eth0
to /etc/network/interfaces
After this I managed to successfully install Open SSH server, by running the following command as root:
apt-getinstall openssh-server
So now it was already to I tried to connect via SSH from my Host Ubuntu system to my Guest Debian system. But how? Again, after some searching I found out that you had to forward some ports. On the host, edit /etc/vmware/vmnet8/nat/nat.conf. Uncomment the line under the SSH section that says:
# 8889 = 172.16.81.128:22
the restart the VMWare networking services:
sudo/usr/lib/vmware/net-services.sh restart
You can see from the nat.conf file that you can also forward other ports such as Web and FTP
Finally, you can now connect to your Guest from your Host with the command:
ssh-p8889 root@localhost
It took some effort, but I can now successfully connect to any number of Guests from my Host.
Sometimes I really love the Linux world. Sometimes it all fits so neatly together and lets you just get stuff done. Sure it might take a bit of digging around, but when it all comes together it really is beautiful!
I’m waxing lyrical today because I have just managed to fit all the pieces together for a certain aspect of a large project we’re working here at ibrow towers. This particular problem was a three parter:
Users can FTP into a server into their own directory.
These users should be created automatically (i.e. sign up on site, get details, ftp) and have the same login credentials as the rest of the site
Uploads to the FTP server should be monitored and each file processed
To solve this three part problem, I utilised the following:
VSFTPD FTP Server using MySQL as the credentials database
Recently I’ve been getting increasingly frustrated with both Thunderbird. Don’t get me wrong, it is an excellent email solution, but lately I’ve been finding that it is slowing down due to the amount of emails I have. I do have a webmail package attached to it, which I use of Thunderbird has slowed to a grinding halt, but sometimes, and as hard as this may be to believe, I’m not connected to the internets!
Also, using Thunderbird is just not geeky enough.
So I was looking for something better, something quicker that allowed me to download emails, but keep in sync my IMAP. And don’t forget, something truly dweeby. For me, this meant the command line. I find the more I use Linux the more I am drifting towards the command line as a way of getting things done.
After a bit of searching around, I found a Rails package called Sup. This looked like the ideal solution from my point of view. The authors seemed to be coming from the same head space I am regarding email, so I thought I’d give it a try.
After several hours hacking about, I now have it fully working, and even sending email, and I’ll outline the steps I took to get it up and running. I’m running Xubuntu Jaunty, but hopefully this will apply to most Ubuntu and Debian versions.
I love Ubuntu and today reminded me exactly why. It’s just so easy to do stuff in it!
I run a LAMP development server off my laptop, and today some of the PHP I was writing was throwing up some errors. Unfortunately I hadn’t installed XDebug which makes life so much easier when debugging PHP.
Oh no, I though. I’ll have to download it, install it, update the PHP.ini file. Argh.
But wait…no! I have Ubuntu, all it took was 2 easy steps: