Entries Tagged 'Linux' ↓

rsync retry (rrsync)

Met onze super-stabiele connectie op het kantoor wil rsync er nog wel eens uitklappen. Dus als je dan ‘s ochtends kijkt hoe ver ‘ie is kom je er achter dat rsync gestopt is. Daarom een rrsync. Gebasseerd op deze link: http://blog.iangreenleaf.com/2009/03/rsync-and-retrying-until-we-get-it.html maar iets beter gemaakt zodat het rsync commando er niet hard in staat:

(Misschien dat de indent niet helemaal goed is)


#!/bin/bash

### ABOUT
### Runs rsync, retrying on errors up to a maximum number of tries.
### Simply edit the rsync line in the script to whatever parameters you need.

# Trap interrupts and exit instead of continuing the loop
trap "echo Exited!; exit;" SIGINT SIGTERM

MAX_RETRIES=50
i=0
# Set the initial return value to failure
false

while [ $? -ne 0 -a $i -lt $MAX_RETRIES ]
do
i=$(($i+1))
`which rsync` $*
done

if [ $i -eq $MAX_RETRIES ]
then
echo "Hit maximum number of retries, giving up."
fi

Linux printer drivers for the Dell 1710n

Voila: http://www.cups.org/ppd.php?L483+I80+T+Q

Installing banshee + removing rhythmbox from the soundmenu

sudo add-apt-repository ppa:banshee-team/banshee-unstable
sudo aptitude install banshee
rm ~/.cache/indicators/sound/familiar-players-db.keyfile

And don’t forget to enable the soundmenu plugin in banshee!

Removing packages marked rc

I got an error when building the 2.32 version for ubuntu. Some packages once where installed but got removed. But they still had the status rc.

So I purged them with the help of this blog.

I compiled evolution with the help of a Makefile that I downloaded.

I had to add the “maverick” distro and install some additional packages such as:

  • gobject-introspection
  • autopoint
  • libgdata-dev

I removed the evolution-exchange plugin.

The master branch of gweather required gtk3 so I changed that to: gnome-2.30 (or something)
I had to apply a patch to solve a build error.

Bottom of this post: http://www.mail-archive.com/evolution-hackers@gnome.org/msg03863.html

http://www.mail-archive.com/evolution-list@gnome.org/msg15575.html

Don’t wat to type any explanation

[global]
security = ads
realm = LAB.EXAMPLE.COM
password server = 10.0.0.1
# note that workgroup is the 'short' domain name
workgroup = LAB
#       winbind separator = +
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/%D/%U
template shell = /bin/bash
client use spnego = yes
client ntlmv2 auth = yes
encrypt passwords = yes
winbind use default domain = yes
restrict anonymous = 2

security = ads
realm = TIM-ONLINE.NL
password server = 10.76.122.21
workgroup = TIM-ONLINE
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/%D/%U
template shell = /bin/bash
client use spnego = yes
client ntlmv2 auth = yes
encrypt passwords = yes
winbind use default domain = yes
winbind use default domain = yes
winbind refresh tickets = yes

netbios name = concepts
netbiosname = concepts

#Vista compatibliyy
client schannel = Auto
server schannel = Auto

sudo /etc/init.d/winbind stop
sudo /etc/init.d/smbd restart
sudo /etc/init.d/winbind start

net ads join -U administrator

/etc/init.d/winbind restart

wbinfo -u
wbinfo -g

file: /etc/pam.d/common-session

session required pam_unix.so
session required pam_mkhomedir.so umask=0022 skel=/etc/skel

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”:

sudo passwd -l root
sudo usermod -p ! root
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:

sudo add-apt-repository ppa:ubuntu-mozilla-daily
sudo aptitude update
sudo aptitude install firefox-3.6