Search...

Showing posts with label Arch. Show all posts
Showing posts with label Arch. Show all posts

20 August 2012

Ruby on Rails Arch Linux Basic Instal

I have been playing with Ruby on Rails for a while after completing a Coursera based SaaS course recently. While undertaking the course I worked on an Ubuntu VM which was provided by the course. However, as in all things I hack around with on Linux I really wanted to set up a basic Rails development environment on my main Arch Linux machine.

While the guide on the Arch wiki was fine when I reached the point of testing my environment I got the following output in bash ....

/usr/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.

A quick hunt around the forums did not help me!

Following the link in the above error message I read up on execjs and found that you need a supported runtime. I opted for therubyracer, an implementation of the Google v8 javascript runtime.

In bash I ran gem install therubyracer which installed the runtime. I then added the following line to my test applications Gemfile :

gem 'therubyracer', :require => 'v8'

Running rails server now served up my test app on the default port (using WEBrick).

8 August 2012

Arch Linux glibc Update

Arch Linux has made a rather big change to the file system recently and has moved the files in the /lib directory to the /usr/lib directory and /lib is now a symlink to usr/lib. You can get an overview of the change here and here. Both of these pages give instructions and possible issue resolutions for most case's.

However, as searching the Arch Forums on glibc will show, the resolutions outlined in the above documents do not always work. There are a large number of users that have had problems due to various files that are left in the /lib directory. To quote Zamboniman from the Arch Forums "This has been one of the more frustrating upgrades in my history with Arch." After running pacman -Syu recently I discovered I was one of these people!

I have now resolved my issue and wanted to detail it incase it is any help to anyone else still struggling with the issue. For a little background I am running Arch 64bit.

NOTE DO NOT USE --force WITH pacman IN ANY FORM TO RESOLVE THIS ISSUE AND DO NOT DELETE OR MOVE ANY FILES MANUALLY.

First, I followed the recommended update method and ran pacman -Syy and then pacman -Syu --ignore glibc. This brought the system up to date and I then ran pacman -Su which will update glibc. However, like so many others, I got the following error output :

error: failed to commit transaction (conflicting files) glibc: /lib exists in filesystem

This, apparently, is caused by files remaining in the /lib directory. As per a number of the suggested solutions I then ran find /lib -exec pacman -Qo -- {} + which lists who owns the files left in the /lib directory. As recommended in one forum post I started to look for files not owned by glibc. There was one file and that was lib32-glibc. A lot of the solutions suggested at this point to just delete the file or uninstall the program that it is installed by however, looking at the file version (2.15-10) I noticed that there was a newer version available. The file is installed from the Multilib repository and I was at a loss as to how it was not being updated. After a little more digging I found that the Multilib repository was commented out in the /etc/pacman.conf file. I uncommented the repository entry in the file and ran pacman -Syy and then pacman -Syu --ignore glibc and then ran pacman -Su.

This all appeared to work. As a final check I ran ls -ld /lib which should output lrwxrwxrwx 1 root root 7 Jul 7 11:09 /lib -> usr/lib which denotes that everything has worked.

This solution will probably not fix everyone's issue with regard to this update and the links below are to forum threads that helped me track down the solution to my problem

  • https://bbs.archlinux.org/viewtopic.php?id=145006&p=1
  • https://wiki.archlinux.org/index.php/DeveloperWiki:usrlib
  • https://bbs.archlinux.org/viewtopic.php?pid=1129890 - This thread contains Zamboniman's excellent advice which appears to have helped a number of people with slightly different issues to mine.
  • https://bbs.archlinux.org/viewtopic.php?id=109765 - Multilib related.
Now, to get on with playing with KDE 4.9!

16 April 2012

Arch Linux Qt Package Issue (KDE)

For the first time in all the time I have been using Arch I have experience my first major package breakage.

The night before last I ran pacman -Syu and one the packages upgraded was the Qt package. It was upgraded to qt-4.8.1-2. Next time I booted up I was getting a KDE Crash dialog appear noting an error with KRunner. Trying to run krunner from the shell I was presented with a host of errors.

A quick search of the Arch forums I found this post reporting similar problems. Following the advice in the post I downgraded the Qt package and my problems where resolved.

To find out if you can downgrade your package you will need to search the /var/cache/pacman/pkg directory to ensure you have a package to downgrade to. If you do then you can run pacman -U /var/cache/pacman/pkg/qt-4.8.0-6-x86_64.pkg.tar.xz (or whatever version you have). If you can not find an earlier package in your cache then you will have to refer here (the Arch wiki) which will provide further details.

(I should mention that I am running 64bit although I have no idea if this effects 32bit).

22 March 2012

Arch Linux - i3 Graphics Setup

Gonzo has been reborn!

My trusty old Thinkpad has finally died and so I have brought a Fujitsu A531 to replace it. Its not a bad spec for the money I paid (i3 2.2, 8gb, 750gb HDD all for £419).

I have just installed Arch 64 bit on it and had KDE up and running in less than an hour and a half. The first thing I noticed was the graphics acceleration was not enabled and I seemed to be suffering poor framerates. I found that by adding a file called 20-intel.conf to the /etc/X11/xorg.conf.d directory and adding the following solved my issues :


Section "Device"
Identifier "Card0"
Driver "intel"
Option "DRI" "true"
Option "SwapbuffersWait" "false"
EndSection


Reboot and 3D effects and a good framerate where restored.

4 October 2011

Arch Linux - LibreOffice Displaying Non English

When LibreOffice was first released I instantly installed it (via pacman) on Arch Linux. Having read lots about the grand work the project was doing to finally bring the project upto date since forking Open Office I was interested to see what they had achieved. I was quite impressed.

I don't do a lot of document based work on my Arch laptop (and there have been a number of updates since I last used it) but I went to type up a letter for the wife tonight and fired up LibreOffice and found the UI was rendering in what appeared to be Russian (which I do not read or write).

After a bit of digging about it appeared I made a fatal error in installing the libreoffice-uk language pack. Turns out that is the Ukrainian language pack ... oops!

It turns out that I am not alone in making this assumption and if you happen to hit this issue and you actually need English and not Ukrainian then install the libreoffice-en-GB language pack and all will be well (and readable) again.

8 August 2011

Arch KDE SC 4.7 Missing KDM Background

If after upgrading KDE to 4.7 on Arch you notice that your KDM theme is missing you need to run the following:

pacman -S kde-wallpapers

It turns out the KDM default theme use's an image from the KDE Wallpapers package which has been split out on it's own from 4.7.

3 August 2011

Arch Linux Zope Interface Update Issue

The issue is old now, I have ignored it for about a month of pacman -Syu but in updating to KDE 4.7 tonight I hit it again.

If you pacman -Syu and get

error: failed to commit transaction (conflicting files)
python2-zope-interface: /usr/lib/python2.7/site-packages/zope.interface-3.6.3-py2.7.egg-info/ exists in filesystem


The you need to go to this page and follow the two simple commands.

It would appear to be a simple bug in pacmans conflict resolution handling. It had to happen sometime I guess!!

22 April 2011

Arch wicd upgrade

Just ran a system update on my Arch install and it failed to commit due to some changes in the wicd package structure.

This post on the forums has a couple of solutions but I ended up forcing an upgrade (-f) on the wicd package and the updated as usual and all was well with my world once again.

20 March 2011

Arch LibreOffice Spell Checking

I have switched from OpenOffice to LibreOffice. I was interested to see what all the fuss was about and from what I have read I see that the most interesting developments will happen on LibreOffice and OpenOffice will be left as an Oracle application.

So far I have been very impressed. It is fast and everything seems good. I run Arch linux and installed the standard packages. The only issue I found was with spell checking. The standard spell checking packages would not work for me so I have installed hunspell (pacman -S hunspell-foo where foo is your language).

I can only recommend switching.

23 January 2011

Arch Reinstall Gotchas 101

I have used Arch Linux for some time now (3+ years from memory) coming to it from a Debian/Slackware background. I love it it allows me to run a bang up to date KDE desktop on a rolling release basis. For those that would like a more honest review then Kevin Bush did a great review over at Linux Journal very recently.

In the time I have run it I have only installed it twice before and now I am only installing again because I got a shiny new 500gb laptop drive for Gonzo (my Thinkpad!) at Christmas.

One of Arch's many benefits is the documentation and forums. When you install Arch you only install a base system and can then go and build your system your way. No desktop, not many services and only a terminal to log in with.

People have been known to moan abut this approach but I like it. In one evening I had a full KDE desktop (I use the standard Arch Packages for day to day use) up and running. However, I did hit a couple of gotchas which I thought I would document here in case they help anyone else :

  • NetworkManager has not improved since my last attempt to get networking working with it. I recommend Wicd all the way.
  • KDE would not shut down. I spent some time investigating this but ended up on this thread on the forums which helped me to pin it down to the Phonon backend that was being used (Xine). I updated to use the gstreamer backend and all was well.

  • Getting Dropbox working without installing lots of gnome libraries. For this I found this article which did the job perfectly in about 6 steps. Once done, reboot and on next start up the Dropbox installer will guide you through the rest.

Now I am back up and running I can look forward to a few nights setting all my preferences, data and look and feel up. Then I can forget about installing and get on with using.

23 April 2010

Arch Junior Developers

Just saw this over on the Arch site. The Arch development team are looking for interested people to perhaps join the team as a junior developer.

If you've been using Arch for a while and are looking to give something back it sounds like a great opportunity.

11 February 2010

Arch KDE SC 4.4 Upgrade For KDevelop Users

Further to other fun and games with the Arch KDE SC 4.4 upgrade I hit upon a problem tonight with a virtual box I use that has the following repository in the /etc/pacman.conf file :

[dstr-repo]
Server = http://dimon.homeftp.org/repo/i686

This is the repository that I use at present for KDevelop4. It seems there was a clash with certain files.

In order to get KDE SC 4.4 to upgrade I found I had to resort to pacman -Syuf which got it working.

10 February 2010

Arch Upgrade To KDE SC 4.4

So the hero's over at the Arch website had already flagged the fact that the upgrade to KDE SC 4.4 was not going to be a simple pacman -Syu. In fact I found I had to jump through a couple more hopes than those listed in their post (above) and so thought I would share how I got to -Syu to KDE SC 4.4.

The following commands should be run as root (or sudo if you have it installed):

$ pacman -Sy --asdeps qt
$ pacman -Su
$ pacman -Sy kdepim-runtime
$ pacman -Sy kdepimlibs
$ pacman -Syu

That got my upgrade underway. Hopefully this might help others. If you are still stuck let me know the errors you are experiencing and I will try and provide some help.

4 November 2009

Chromium Browser on Arch

So new series of Spooks tonight (excellent viewing) and as I was just catching up on my feeds I noticed a thread on Google Chromium on Linux and it's speed.

Being a bit of a browser junkie I thought "I have never run it on Linux, why? It's my default windows browser". So a quick...

AurGet chromium-browser-bin

(AurGet being an excellent AUR grabbing script which I think I found on Arch Wiki)

... And I was watching a really smart installer whizzing along.

Five minutes later and I was sitting playing with Chromium. This is the open source version that Google released based on the initial Chrome browser.

My god it is fast!! As usual I set it up with Keyboardr.com and it flies. It is so fast I keep retrying things because I can't believe what I am seeing. The two things which I find I don't like is the GTK++ toolkit. I know, I know..... there is nothing wrong with it, it is just personal taste (and being a KDE only kinda guy!). The second is that I am at present unable to disable path searching. Whenever I type an address it wants to use the default search engine. I have only been playing for a 30 mins or so.

19 October 2009

Amarok Issues.

For a while I have been having a strange problem with Amarok. You could set up a playlist, let it play the first song and then wait upto five minutes before it moved to the next track.

Anyway, enough was enough tonight, (a guy needs Dave Grohl to run to!) I found this helpful little post on the Arch forums. Basically it is a known problem and if you switch to xine as your backend for phonon your good to go.

20 August 2009

Arch Package Deletion Issues

As reported on the Arch news feed, this link details that some packages have been removed from the central Arch repository.

The problems is resolved and the mirrors are just playing catch up.

I'm hoping this is why ethtool would not upgrade correctly at the weekend.

18 August 2009

Arch Virtual Box Package - Upgrade For 2.6.30 Kernels

For Arch users that are running Virtual Box and are trying to run a distro within Virtual Box that uses the 2.6.30 kernel you will probably find that you VM does not want to run. From what I can find it seems the problem is to do with drive handling.

Make sure you upgrade to at least virtualbox-ose-3.0.4-2 which is now patched to fix the issue.

11 August 2009

KDE Air Plasma Theme.

Hmmmm..... I upgraded my main laptops Arch packages last week to 4.3 and since have found an anoying bug. It seemed that whenever I rebooted I would have messed up panels with widgets in a different order to when I shutdown, panels that where centered to the left and a System Tray that could and would appear anywhere.

After much playing around I think I have nailed it down to the Plasma default theme, Air. It seems that if you apply a different Plasma theme the problems vanish. I'm not sure if this is a known issue or not but if anyone does know anything I would be interested.

I will try and get on #plasma tomorrow to speak to the guys and find out if it is a known bug and if not file a bug report.

6 August 2009

Arch KDE 4.3 GStreamer Issues.

It would seem I was not alone after launching Amarok only to hear.... nothing!! dooooh -><-

For some reason the switch to GStreamer as the prefered Phonon backend under 4.3 has caused some issues as discussed here.

As detailed in the above post the following should resolve most issues :

pacman -S gstreamer0.10-plugins

That will install all plugins required. However some people are switching to xine which also appears to rectify most problems.

Shaman Does Not Support Latest Pacman

I ran into a small problem last night. I tried to update my packages using Shaman, the rather excellent package management for Arch Linux, but it complained when trying to upgrade pacman.

It turns out that Shaman does not support the latest version pf pacman. So for now at least you will have to remove (pacman -R) Shaman and use pacman direct from the command line to manage your packages.

Or you might use one of the other package managers and if you do I would be interested to hear which one and why you use it.