Entries Tagged 'Linux' ↓

installing non-free-codecs in Ubuntu “Lucid Lynx” 10.04

A very nice article about installing the non-free-codes (wmv, wma, et cetera) in 10.04!

Using a MCE remote with an Antec Veris Fusion case

I got a MCE remote and wanted to use it with my Antecct Fusion case. It has a remote of it’s own but it uses a stick for navigating and that really doesn’t work.

I found a great post about how to use the mce remote.

I only had to modprobe the lirc_imon module with some parameter (lirc_imon ir_protocol=1) and change the xbmc configuration. After that it worked perfectly!

Only my xbox 360 is right next to my media pc. So when I press a button my xbox 360 start :)

I tried to disable the ir censor of my xbox but I couldn’t find and option. So I covered it with some tape :P

Some additional info on “User account has expired” error

You have to also use "chage":

CODE:
  1. sudo passwd -l root
  2. sudo usermod -p ! root
  3. sudo chage -E-1 root

So my previous post about this subject is now obsolete ;)

xbmc setup

htpc_setupI've managed to get XBMC running (and good!). It took me a while to get everything to my liking. Almost everything works perfectly! Except sound is still a bit of a hassle. Linux (with pulseaudio) only sends analog sound through my s/pdif connection (aaarghh... forgot to draw in the schema ->) and not digital.

Maybe I'll switch back to alsa. But then again: maybe not. It's only connected to an old Yamaha amplifier I had laying around so I don't think I'll hear the difference.

I have a draft blog post in which I explain how I got everything running on Ubuntu 9.10. I'll try and publish it as soon as I can :) And then I'll update the schema too.

Installing firefox 3.6 for karmic

As easy as:

CODE:
  1. sudo add-apt-repository ppa:ubuntu-mozilla-daily
  2. sudo aptitude update
  3. sudo aptitude install firefox-3.6

XBMC….

xbmc_410In reply to my last article about media centers.
Well, I installed xbmc this weekend and actually it kinda sucked. Installation was a breeze: kudos for that. But when I ran it, it hogged all of the cpu time of the second core. 100% constantly.

I've got an Ati hd3200 integrated on the motherboard and in combination with XBMC I believe that's a bad choice. I've read numerous threads about people having the same problem as me :( I'm quite upset with this. I don't blame the XBMC developers, they do a fabulous job, but still it sucks.

I hope that in the next couple of weeks this problem is solved but I don't think it will. I'm now looking for an alternative but XBMC just looks so polished.... It's too bad it's not usable for me :cry:

I'm now downloading the live cd of XBMC and see if that works 'cause I dont know who to blame: me, ati, xbmc or ubuntu...

Root crontabs/cronjobs not executing or running

Well as the title says: the cronjobs of the root user didn't run on one of my servers (MY MACHINE!) and it took a while to figure out why they weren't running. It ended up to be something with locking the root account. These steps fixed the problem:

CODE:
  1. sudo passwd -l root
  2. sudo usermod -p ! root

fixing a hacked site

One of our Joomla! sites was "hacked" with some stupid script and the fuckers put a iframe in every page :(

But with sed that was fixed in a matter of seconds:

CODE:
  1. find . -type f -print |xargs sed -i 's/<iframe.*iqdoza.ru.*<\/iframe>//g'

OR:

CODE:
  1. find . -type f -print |xargs sed -i 's/<iframe.*.ru.*<\/iframe>//g'

Searching for hacked sites:

CODE:
  1. egrep -lir "<iframe|hacked" /home/*/public_html/*index*

Drawback is that it doesn't removed the inserted newline :S Because it isn't the design of sed (wha-evah).
Also it doesn't handle files with spaces in the filename. But that's only minor because in my case I didn't have any php or html files with spaces in them :)

script-kiddie

python libindicate

I saw that there are python bindings for libindicate. They're called "python-indicate".

There's also a wiki about this new feature from Ubuntu. I thought about creating a plugin for weechat that uses this library. Especially because the notify-plugins is useless if you're away and somebody mentions you on irc. Libindicate would be perfect for this. First have to find out how the behaviour of the applet would be.

[update]
I asked my question on the libindicate launchpad so I'm very curious about the answer(s).
[/update]

messaging-menu-karmic ubuntu 9.10 libindicate

Weechat 0.3.0 on Ubuntu 9.10

Ubuntu 9.10 comes with an older version of weechat. So I downloaded the stable release 0.3.0 and installed it:

CODE:
  1. ./configure --prefix=/home/leon/Software/local/ --enable-gtk --enable-demo
  2. make
  3. make install

Note: gtk is not very usable so you better use the ncurses interface!

I wrote a little plugin for it that autosaves the current connected channels and enables autojoin for them. It can be found on my github page and on the plugins page of weechat (if FlashCode aprobes the new version 0.2).

And here a nice plugin of weechat in action with the autojoin plugin (Nice!!):

Screenshot of weechat in action