NOTE: I originally wrote this on the tt-rss.org forums, but thought I’d post it here too.

There doesn’t seem to be support for TT-RSS on Arch Linux, particularly in creating the /etc/rc.d/ daemon. So I hacked together this:

I edited the init.d files for TT-RSS to run on Arch Linux, which uses rc.d and doesn’t have start-stop-daemon. This is the first time I’ve done anything like this so please feel free to 1. provide constructive feedback and 2. be nice

Basically following the instructions as per UpdatingFeeds but use my attached files and place in rc.d instead of init.d

* Extract tt-rss-rc.tar.gz
cp tt-rss.default /etc/default/tt-rss
cp tt-rss.rc-d /etc/rc.d/tt-rss
/bin/chmod +x /etc/rc.d/tt-rss

* If you want Tiny Tiny RSS update daemon to start when you computer start :
Edit /etc/rc.conf
Add to "DAEMONS=(... tt-rss ...)"

* Once all this done, you can use this command line to start the update daemon :
/etc/rc.d/tt-rss start

* And this command line to stop the update daemon :
/etc/rc.d/tt-rss stop

Been working great for me for a couple weeks.

NOTE: I actually wrote this back on 16th August but did a Save Draft instead of Publish … DOH!

Background

I’ve run my linux server + Windows VM for a couple years now and the Windows VM does as much as the Linux host does. Coupling this with some issues with VMWare Server 1 on latest kernels and failed attempts to keep VMWare Server 2 stable, I decided to take the plunge into ESXi and virtualise my Linux machine too!

Initial Research

So my initial research indicated my NIC was fine but I can’t use linux software raid, which is how my linux box has been setup! Oh noes, oh well, time to get a hardware RAID controller. The cheapest one on the VMWare HCL is the Adaptec 2405, and found one 2nd hand for around 60% of the cost of a new one.

Problems Problems Problems

1. Virtualising my linux box. The VMWare Standalone Converter can’t convert Linux machines running mdadm/software RAID. BOO. Time to copy my important files off one of my RAID1 array to another single HDD.

2. Can’t initalise the disk. This is the problem and solution: http://ict-freak.nl/2009/03/14/vmware-failed-to-get-disk-partition-information/

3. Accessing the ESXi box via remote SSH:
http://professionalvmware.com/2009/05/26/unsupported-console-and-ssh-on-esxi-4/

4. Can’t access my non-mdadm drive in ESXi. RDM (Raw Device Mapping) is the answer. Here is the solution I used: http://www.daenks.info/2009/07/using-vcb-to-backup-entire-vms/

After solving all these issues though, I have to say, that moving to ESXi was the best thing ever. I’ve only had 1 problem since installing it and that was due to the USB drive becoming corrupted.

That was easily fixed by creating a new USB boot key and copying the local.tar.gz file from the old to new key. Boot up and wallah, good as new! Now I have a backup copy anyway :)

I’ve finally taken the plunge back into linux on my main desktop, after a loong looong break.

Everything has been going swimmingly well (and I’ll comment more on this another time) but one of my last ‘issues’ was getting my Samsung SCX-4521F printer working.

The AUR doesn’t explicitly have it, the closest being this.

So I tried using the Samsung driver out of the box and surprise surprise, no support for Arch Linux.

So I got out trusty old vim and added support for Arch Linux. The main issue is that:
1. It doesn’t detect Arch as a distro; and
2. It hardcodes the use of /etc/init.d.

So I just added an extra check for Arch Linux and set that variable then added a IF statement at the end to set a new variable INIT which sets it to rc.d or init.d and then updated all instances of init.d with $INIT. There is still a couple of WARNINGS produced but the driver works :D

THe last thing I needed to change comes care of this article and thats:

10. Open /etc/cups/printers.conf Under “DefaultPrinter scx4×21″ change the “DeviceURI” so it looks like this:
DeviceURI file:/dev/usblp0

Want to use it?

Download the Samsung Unified Linux Driver from the Samsung site and use this install.sh instead (you’ll need to rename it). The current version of the Samsung ULD is 3.00.37.

I’ve spent most of this morning trying to figure out how to upgrade our antiquated Bugzilla 2.20 installation to the latest and greatest 3.2.4.

The ./checksetup.pl kept failing with the error message :

Converting table namedqueries… DBD::mysql::db do failed: Error on rename of ‘./bugzilla/#sql-3967_1c’ to ‘./bugzilla/namedqueries’ (errno: 150) [for Statement "ALTER TABLE namedqueries TYPE = InnoDB"] at Bugzilla/DB/Mysql.pm line 337
Bugzilla::DB::Mysql::bz_setup_database(‘Bugzilla::DB::Mysql=HASH(0×9c766d0)’) called at ./checksetup.pl line 144

Running the SQL command SHOW ENGINE INNODB STATUS; within mysql gave me the following bit of useful info:

————————
LATEST FOREIGN KEY ERROR
————————
090715 8:58:13 Error in foreign key constraint of table bugzilla/namedqueries_link_in_footer:
there is no index in referenced table which would contain
the columns as the first columns, or the data types in the
referenced table do not match to the ones in table. Constraint:
,
CONSTRAINT fk_namedqueries_link_in_footer_namedquery_id_namedqueries_id FOREIGN KEY (namedquery_id) REFERENCES namedqueries (id) ON DELETE CASCADE ON UPDATE CASCADE
The index in the foreign key in table is namedqueries_link_in_footer_id_idx
See http://dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html
for correct foreign key definition.

So after a couple hours of research I’ve discovered the problem is that the table namedqueries doesn’t have the column id.

So in mysql:

use bugzilla;
alter table namedqueries add id mediumint(9) NOT NULL AUTO_INCREMENT UNIQUE FIRST;

Re-ran ./checksetup.pl and all was good :D

Now for the next upgrade error!

I just converted my last Ubuntu machine to ArchLinux.

Everything went fairly smoothly (with the exception of ever-changing order of HDD’s, which is now fixed without the Live CD thanks to UUID’s) but I couldn’t figure out how to re-create my RAID1 mdadm array.
Googling away actually didn’t return what I wanted! I was starting to panic, as I didn’t quite think out my backup routine quite as well as I should have (i.e. don’t backup to a software-raid-array!) I sorta needed to get it restored!

Thankfully I figured it out:
mdadm --assemble /dev/md5 /dev/sdc1 /dev/sdd1

Back in business!

I’ve recently decided that it’s time to stop letting Mark Shuttleworth hold my hand in my Linux experience and start getting my hands more dirty!

As a result, I’ve decided to start installing Debian on my machines as and when required.

Yesterday, after 5 hours of PC transplant surgery, transposing 4 motherboards in 3 PC’s, what is my HTPC decided it didn’t like the transplant. Very strangely, I changed from this C 2.4GHz 478/533FSB MB to a P4 287.GHz 478/800FSB and it handled it fine. Changing the board back again and X-Windows didn’t want to start, kept crashing out after logging in with GDM.

My HTPC was running Ubuntu 6.10 Edgy w/ E17. Now I realise I could have spent some time fixing it, but I couldn’t be bothered as I didn’t want to run E17 as my HTPC environment anymore anyway, mainly due to conflicting keybindings when using MythBrowser.

So I took the plunge and stuck Debian 4.0 Etch on it via a Net Install. Thanks to using a Debian Etch VM not so long ago, my proxy server had cached a fair bit so the install was pretty quick. I selected Standard System only, not Desktop System. After installing the base system, I installed FluxBox, GDM, MythTV Frontend, nVidia Legacy driver from nvidia.com for my MX4000 PCI and Alsa.

All installed fine (subject to installing some dependencies), however as of today, still haven’t got the sound working correctly. TBH this is driving me nuts and sound in Linux has always been my Achilles heel.

Anyway, one of the crucial elements is having MythTV automatically load at startup. Using my Googlefu I discovered 3 methods, involving editing .xinitrc or .fluxbox/startup. Neither was working!

Turned out that to get these to run, need to start FluxBox with /usr/bin/startfluxbox, not /usr/bin/fluxbox, which Debain does by default!

The solution is to change the alternatives!
update-alternatives --install fluxbox x-window-manager /usr/bin/startfluxbox 100
update-alternatives --config x-window-manager

Next time you login, you’re apps will run! I’ve dumped FluxBox 3 times because of this problem. I might install it on my main PC when it get’s rebuilt!

Now just to figure out how to get my Creative SB Live! Value working!

I posted a while ago about a web-based personal knowledge base. The few applications I did find I was never really happy with as I wanted a “tagging” based classification system. I’ve been using Google Docs to meet this aim and so far I have to say it’s been fairly successful.

Google Docs does have some idiosyncrasies but I’m managing to work around them. At first each document opening as a new tab was irritating, but when I started working on 2 or 3 it became apparent why.

A couple of features that appeal to me that I hadn’t seen in other KBApps are the ability to sorts by last edited and the ability to publish a document, but doesn’t by default.

I haven’t used it for a few days as I’ve been pre-occupied with other things and today logged in and saw that’s it had a interface overhaul.

This new interface is NICE! One of my beefs with Google Docs was the inability to rename/delete tags. You had to remove the tag from each document then the tag was deleted. They have renamed the tags to folders, however as far as I can tell, they work the same way.

All in all Google Docs is proving to be an adequate for of KB for me. The biggest requirement missing now is the ability to host it on my server instead of gmail. Hey Google, don’t suppose you want to release the code to me? No? Didn’t think so :)

I recently stuck PCLinuxOS 2007 on a 3rd partition on my system, mainly as a test for my fubar’ed video card.

First impression: I really like it.

I never felt comfortable with Kubuntu’s KDE, it installed SOO much crap and you can’t uninstall it because of the kubuntu-desktop meta -package and it tries to uninstall the whole of kubuntu-desktop if you remove some component. PCLinuxOS you can uninstall components that you want with no ill-effect (that I’ve found so far!). Like why do I want Synaptic Touchpad on a desktop PC?

PCLOS07 has inspired me to give KDE a real go, where Kubuntu made me favour GNOME.

Other features I do like is the apt-get/synaptic based on their rpm repo’s. That’s a nice touch as I didn’t like adept and synaptic is good.

I also decided to PCLinuxOS on my laptop and configuration for the wireless was sooo painless. It autodetected the ip2200 wireless card and configuration of WPA2-PSK was so smooth. Huge kudos for that! It was a nightmare under both Elive and Debian. Didn’t try under *buntu.

I haven’t been able to give it a good run, due to the video card, but love to test out pushing it in terms of gaming and memory/cpu usage.

I really like that Yamatku (sp?) console… the dropdown is nice, use it all the time now. I find it better than alt-tabbing between a konsole window. For some reason I don’t really like konsole as a terminal app. Gnomes gnome-terminal is better featured. I really want to terminal client to work like puTTy where selecting auto-copies into system clipboard, not the screens clipboard. Unfortuately konsole doesn’t even auto-copy into konsole's clipboard and there is no keyboard shortcut :(

Not everything is perfect though. Some of the things I don’t like are:
* The menu structure – God damn what’s with the 19 million sub-menus that have 1 item? Took me a cpl minutes to find Synaptic (I deleted it off the taskbar .. waste of space!)
* The default bash config (.bashrc etc) is pretty basic. I ended up taking some items from the Ubuntu install.

The installer needs a bit of work. For the most part it’s fairly painless and asks some basic questions to get you up and running, however:
* Cancel isn’t obvious – there is an OK button but to cancel you have to use the X, not so intuiative.
* The partitioning/format feature – I accidentally wiped my /home drive. It was my fault really, I forgot I moved data around, getting rid of some NTFS partitions in favour of one big ext3. I would prefer it to be more like GParted where you make all the changes then apply at the end rather than make each change live as you choose it. Luckily the only thing I lost was my settings. It wasn’t a huge deal except loosing .firefox and .opera which had my bookmarks, oh and a couple of custom scripts. Everything else is on my fileserver, mounted with samba on start to subdirectories with a root directory I call /data.

That does remind me to include in my backup scripts a remote backup of my /home/.* directory & file to the file server too!

So far not overly impressed with the repo’s like Ubuntu/Debian … but for general desktop use I’d imagine it’s more than adequate, but finding some less popular or specific applications weren’t there, mainly for development/server features. I tried looking for k3d, an app I tried out for an hour the other day for 3D modelling and that wasn’t there either.

Which leads me to say, it’s most definitely not for a server environment or really a development environment. It does have apache2/mysql/postgres/php5 but no sign of lighttpd which I like to use for localhost testing as it’s nice and light and quick. I couldn’t find eclipse which I’ve just discovered as a pretty decent IDE. I haven’t really taken this part past installing the LAMP components. Nothing is configured and TBH I didn’t even see if http://localhost worked.

I didn’t test any multimedia functionality as I haven’t got the sound working yet. Also I use my MythTV frontend for all videos/DVD’s.

I have 2 sound card, on-board and PCI and it defaulted to the on-board. I havent’ looked into changing it around, but when I did I somehow killed the sound server and get an error on boot up.

Well that’s my recap of PCLinuxOS after 2.5 days.

I seem to have listed more complaints than good features, but it’s more that what it does it does very well and there isn’t much to say. It’s quick and easy to figure out. The control center is a nice feature for system administration and anyone who can use Control Panel in Windows can use the Control Center in PCLinuxOS.

I’d dare to say that PCLinuxOS is more user friendly than Ubuntu and would make a better transition distro for a Microsoft user, well once they sort the partitioner out anyway!

As I said earlier, it’s good enough for me to want to continue using it … I’ll keep you posted if I change my mind!

Sad to say but my XfX 6600GT AGP has given up the ghost. After about a week of testing I’ve come to the conclusion it’s something to do with 3D acceleration.

Testing under Linux has been difficult. Most games I’ve found that are ‘free’ aren’t very intensive so it was hit and miss if/when it failed.

Eventually the other day though, it finally failed as soon as it started loading into GNOME. This was under Ubuntu.

To give it a good test run, I decided to install PCLinuxOS2007 on a 3rd partition as I’ve been reading some good stuff on it as a desktop distro and thought it’d give me a good chance to identify where/when/how my video card problems were occurring. More on this in my next post!

Anyway, I eventually established that the problem occurs as soon as the nVidia driver loads. I established this as PCLinuxOS was working fine (most of the time) with the nv driver, installed nvidia through apt-get and then the problems reoccured the same as under Ubuntu.

I thought it might be driver related, but alas, I tried 9755 (repo), 9754 (from nVidia site) and 100.14.06BETA (repo) and all the same.

Finally I caved and booted into Windows and same problem, the desktop loads with the lovely white boxes.

I’m not an expert on drivers, but I’m assuming here that the nVidia drivers must access some part of the card that nv open source or basic vesa drivers don’t but has failed and hence it’s been such a bitch to figure out?

I’m now waiting for XfX to return my emails about RA as the retailer wasn’t interested. The card is 14mths old and they only offer 12mth warranty. :(

Found a great article by Carla Schroder called Hone Your Scripting With a Regexp Toolbox.

There are some great hints and tips and I know I’ll refer back to this article many times and use it within a script I’m sort-of working on!