Wednesday, November 23, 2011

How to play DVD menu's with vlc or smplayer

With VLC I can use the menu of a DVD (not all, some protected dvd's won't play).
Open the directory and it will play the menu; I use the arrow keys to select a menu item and enter to start it.
In the playback menu of vlc you can select titles and then the chapters of the dvd.

SMplayer / MPlayer crash, exit code: 127

Errors with mplayer may be related to this: https://bbs.archlinux.org/viewtopic.php?id=130197
I had this problem too. Solved it by extracting libx264.so.118 from
the previous version of x264 in var/cache/pacman/pkg and copying it to /usr/lib/.

The dvd menu in smplayer is activated by shift + arrow up, down left, right and entering or clicking to activate selection.

Wednesday, November 16, 2011

How to chroot In Arch

Open a terminal and enter root user via su or whichever method you are familiar with and do
as follows:

Run "fdisk -l" in this root term to determine which device the Archbang root partition actually is.

Make the mount point if it does not already exist via "mkdir /mnt/sdxx".
After mount point has been created
Mount this partition like so. "mount /dev/sdxx /mnt/sdxx".

Just an example:
mkdir /mnt/sda5
mount /dev/sda5 /mnt/sda5
that is, if the ArchBang root partition WAS /dev/sda5 as determined via output of fdisk -l shown earlier in post.

After ArchBang partition is mounted, copy resolv.conf to /etc of ArchBang partition via same root term:
"cp -vf /etc/resolv.conf /mnt/sdxx/etc"

Now chroot into the ArchBang partition.
"chroot /mnt/sdxx"

Run "pacman -Sy" and after repos are updated
run "pacman -S packagename_1 packagename_2 packagename_3 packname_etc"
to install all packages needed.
After packages have been installed, type "exit" to exit chroot.

Note that sdxx would be the actual partition device as found via fdisk -l,
and the commands are inside double quotes, do not use the double quotes on command line.


as explained by Kruppt on the Archbang forum

Tuesday, November 8, 2011

Mount internal drives as a normal user

What I noticed is that devmon isn't able anymore to automount a partition with the

autostart.sh line: (sleep 15 && devmon --mount /dev/sda16) &

Maybe this is a solution?

If you want to mount an internal drive in KDE or Gnome (maybe on other Desktop Environments too) as a normal user (without the need to type your superuser password), you just have to create the following file in PolicyKit Local Authority:

/etc/polkit-1/localauthority/50-local.d/50-filesystem-mount-system-internal.pkla
[Mount a system-internal device] Identity=* Action=org.freedesktop.udisks.filesystem-mount-system-internal ResultActive=yes 

Monday, November 7, 2011

Problems with consolekit

prevent sda16 from autoloading at start

I have added this to home/paul/.config/openbox/autostart.sh
to launch devmon:
(sleep 5 && devmon --mount sda16) &

But get these errors when doing
ck-list-sessions
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2011-11-07T19:18:18.704650Z'
login-session-id = '4294967295'

Note both false values which should be true.
So found this solution at http://igurublog.wordpress.com/downloads/script-devmon/

On Arch Linux (and possibly other distributions), you may need to add these two lines to the file /etc/pam.d/login:

session optional pam_loginuid.so
session optional pam_ck_connector.so

You may need to reboot for this change to take effect.

Sunday, November 6, 2011

When gtk 3.0 doesn't look good in some applications

Copying the folder

"/usr/share/themes/themename/gtk-3.0" 

to

~/.config/

works fine .


A handful of good gtk2 themes have already been ported to gtk3. Some that immediately come to mind are:

> Elegant Brit
> Zukitwo
> Atolm
> Hope

source: https://bbs.archlinux.org/viewtopic.php?id=119251

If Thunar doesn't load partitions or drives

reinstall libgdu:
#pacman -S libgdu
source: http://bbs.archbang.org/viewtopic.php?pid=5434#p5434

Thursday, November 3, 2011

Decorate and Undecorate Applications in Openbox

with a simple keybinding in /home/username/.config/openbox/rc.xml

v
keybind key="W-F7"v
vaction name="ToggleDecorations"/v
v/keybindv

The V in front turn 90% forwards and at the end 90% backwards

Also in rc.xml:
vapplicationsv
vapplication class="*"v
vdecorvnov/decorv
v/applicationv

see: http://bbs.archbang.org/viewtopic.php?pid=4144#p4144

Blog Archive

About Me

Exclusion of liability Regarding StillStupid: The use you make of the guides, tips and downloads that you listed on this web site or on another website to which I refer is entirely at your own risk. In no way can I be held liable for damage or consequential damages of any kind, which occurs as a result of that use.