My Awesome WM setup on Ubuntu 12.04

Here is my Awesome WM setup running on Ubuntu 12.04. Awesome is a dynamic windowmanager that utilizes both floating and tiling modes. The first screenshot is showing a rather simple overview of the desktop and a floating terminal.

The second screenshot is showing the same setup in tiling mode. This is where Awesome shines and something every user of the terminal will appreciate.

More screenshots and wallpaper can be found here.

To copy my settings, first you need to install awesome, a good terminal emulator and a tool to set your wallpaper.

sudo apt-get install awesome awesome-extra hsetroot rxvt-unicode-256color

Then, download this archive and extract the folder named awesome in your ~/.config folder. The .Xdefaults file should go straight to your home folder, and is optional if you are using urxvt and you would like the solarized color scheme.

It’s important that you edit your rc.conf file to suit your needs. Important: Change all the paths to reflect your setup!

If you are bold enough to try out Awesome I assume that you can figure out most of the extra stuff needed. This is not intended to be a full guide, I just wanted to share my own setup.

How to solve Tearing in Mplayer running Ubuntu 13.04 on an Intel GPU.

This is how I solved the constant problem of tearing. I am currently using Ubuntu 13.04 and everything is subject to change due to the fact that it is still under development. However, I hope someone will have some use of this information.

1. Install SNA enabled Xorg.

sudo add-apt-repository ppa:xorg-edgers/ppa

sudo apt-get update && sudo apt-get upgrade

2. Create /etc/X11/xorg.conf and insert the following:

gksu gedit /etc/X11/xorg.conf

Section “Device”
Identifier “Intel Graphics”
Driver “intel”
Option “AccelMethod” “sna”
Option “TearFree” “true”
EndSection
3. Reboot.

4. Install mplayer-vaapi.

sudo add-apt-repository ppa:stgraber/stgraber.net

sudo apt-get update && sudo apt-get install mplayer-vaapi i965-va-driver

5. Set your mplayer client of choice to use VAAPI as video output.

6. Write a comment on this post letting me know if it worked or not. I might have forgotten something.

Sources:

http://www.webupd8.org/2012/10/how-to-enable-intel-sna-acceleration-in.html

https://wiki.archlinux.org/index.php/Intel_Graphics#Tear-free_video

Tagged , , ,

Using setfacl to set recursive permissions in Ubuntu Linux

This is how I set up recursive permissions for a shared folder on my Ubuntu server. I don’t really have the know-how on how to write a full guide, this one will at least provide the setfacl command, which gave me a real headache. If you are qualified to find this guide, presumeably by searching for setfacl, I assume you are qualified to figure out the gaps. ;)

First of, install ACL.

sudo apt-get install acl

Add acl to your mount in /etc/fstab. Remember to remount the partition, or reboot afterwards.

/dev/sdX  /srv  ext4  noatime,acl  0  2

Use setfacl to set up permissions on the shared folder. In my case I am using the group cifs, edit to fit your needs.

sudo setfacl -Rm g:cifs:rwX,d:g:cifs:rwX /path/to/folder

Any daemons you have, for example a torrent server, that writes to your folder will have the permissions of the files written changed so that group members can change or delete them.

Tagged , ,