Tuesday, February 21, 2012

An dist-upgrade update tip for aptosid

I just went back to Aptosid to do a test and I think that Aptosid is somewhat snappier at the moment than Arch.
The big drawback of Aptosid is the time consuming update that you have to do in init 3 as root.

So you can't do anything else while you can update in Arch while doing your usual stuff. (While controlling the terminal output of the update process of course on useful messages..)


Tip for dist-upgrade in Aptosid
If you do while still being in X

#apt-get update

and after that

#apt-get dist-update -d

You can do all the preparations in X as you will be only downloading everything you need.
But still after that going to init 3 logging in as root and updating etc now with
# apt-get dist-upgrade
will take you some time anyway.
After
#apt-get clean
and
#init 5 && exit
I quickly adapt my grub menu.st file to the newest kernel as my aptosid partition doesn't contain the dominating grub installation of my hard disk.
Also something you don't usually have to do in Arch; happily, because every 6 hours there is a new kernel in Arch...

Monday, February 13, 2012

find duplicates Arch

fslint: http://www.pixelbeat.org/fslint/
rmdupe: http://igurublog.wordpress.com/downloads/script-rmdupe/
example command: rmdupe -r /media/sdb1/afbeeldingen
# remove dupes from /user/test and subfolders
rmdupe -r /user/test
# remove dupes from /user/test1 and /user/test2 and subfolders
rmdupe -r /user/test1 /user/test2
# trash dupes from /user/test
rmdupe --trash /user/trash /user/test
# only remove dupes larger than 50MB
rmdupe --minsize 50 /user/test

rmlint: https://aur.archlinux.org/packages.php?ID=47623
liten: https://aur.archlinux.org/packages.php?ID=27335

Saturday, February 11, 2012

if you have problems palying audio cd's arch

Open up Vlc, Choose Media Open Disc; check radio button audio cd at disc selection; select the right hardware if you have more than one cd player attached.

Let audio cd's show up in Thunar:

Installation

It can be installed by running:

# pacman -S thunar-volman

Configuration

It can also be configured to execute certain actions when cameras and audio players are connected. After installing the plugin:

  1. Launch Thunar and go to Edit -> Preferences
  2. Under the 'Advanced' tab, check 'Enable Volume Management'
  3. Click configure and check the following items:
    • Mount removable drives when hot-pluged.
    • Mount removable media when inserted.
  4. Also make desired changes (see the example below)

Here's an example setting for making Amarok play an audio CD.

 Multimedia - Audio CDs: amarok --cdplay %d 

Friday, February 10, 2012

replacing slim by lxdm as login manager

This is copied from a post by shin
It is a complicated method and only use it if the following doesn't work for you:
#pacman -S lxdm
then

sudo systemctl disable slim.service,

then

sudo systemctl enable lxdm.service,

and reboot.

Complicated approach

What I did to replace slim with lxdm:
pacman -S lxdm

replaced the /etc/inittab line for slim with lxdm
x:5:respawn:/usr/sbin/lxdm >/dev/null 2>&1

apparently lxdm doesn't invoke ~/.xinitrc, I guess xdm,gdm and kdm do, as stated in ~/.xsession

so added this line to /etc/lxdm/Xsession:
[ -f ~/.xinitrc ] && . ~/.xinitrc

in /usr/share/xsessions/openbox.desktop replaced the Exec line with:
Exec="ck-launch-session dbus-launch /usr/bin/openbox-session"

commented out the exec line in ~/.xinitrc
#exec ck-launch-session dbus-launch /usr/bin/openbox-session

on first login with lxdm select the openbox session from the drop down menu,
to make openbox default in lxdm change default session in /etc/lxdm/lxdm.conf
session="ck-launch-session dbus-launch /usr/bin/openbox-session" (this works but I'm not sure if its better to launch openbox like that or by selecting openbox in lxdm drop down menu that actually invokes /usr/share/xsessions/openbox.desktop)

With this setup everything works for me, mounts and everything I added to ~/.xinitrc.

To switch between the two is a matter of replacing the /etc/inittab line and uncommenting the exec line in ~/.xinitrc.

To try it out:

sudo systemctl disable slim.service,

sudo systemctl enable lxdm.service,

and reboot.

Thursday, February 9, 2012

Boot error RUN+="socket:..." support will be removed

Error message:archbang d[152]: RUN+="socket:..." support will be removed from a future udev release. Please remove it from: /lib/udev/rules.d/90-hal.rules:2 and use libudev to subscribe to events.

If you see this boot error you still have HAL installed.
I used it for pcmanfm-mod that was showing my partitions and made it very easy to boot one when necessary.
To see which program needs Hal use:
LANG=C pacman -Qi hal | grep ^Required

And uninstall these packages if you can miss them.
I replaced pcmanfom-mod with pcmanfm-mod-nohal.

Then
Please remove hal use from: /lib/udev/rules.d/90-hal.rules:2
by putting a # before the HAL rule
and use libudev to subscribe to events:

Edit in /etc/udev/rules.d/11-media-by-label-auto-mount.rules
and add according to
https://wiki.archlinux.org/index.php/Udev
your preferred mount set up.

See also: https://bbs.archlinux.org/viewtopic.php?pid=1047768
As I use no login manager I seem to have always problems with the policykit:
https://bbs.archlinux.org/viewtopic.php?id=119499\
https://bbs.archlinux.org/viewtopic.php?pid=1048425#p1048425
After trying all sort of things to solve this I instlled pmount to be able to mount.
It can also mount internal partitions if you edit etc/pmount.allow.
for instance
/dev/sda16
/dev/sda12

If you want to mount a partition under label, do for example
pmount /dev/sda16 depot
and sda16 will be mounted as depot in /media.


Now you can create custom actions in your filemanager
with pmount /dev/sda16 for example.

Blog Archive