Relocating Firefox profile and cache to tmpfs

To reduce disk IO I’m mount Firefox profile to tmpfs.


But some time ago Mozilla developer splitted cache and profile.


So here is modified script for running Firefox:

cat bin/firefox-sync


set -efu

cd ~/.mozilla/firefox

if [ ! -r $volatile ]; then
mkdir -m0700 $volatile

if [ "$(readlink $link)" != "$volatile" ]; then
mv $link $static
ln -s $volatile $link

if [ -e $link/.unpacked ]; then
rsync -av --delete --exclude .unpacked ./$link/ ./$static/
rsync -av ./$static/ ./$link/
touch $link/.unpacked

cd ~/.cache/mozilla/firefox

if [ ! -r $cache ]; then
mkdir -m0700 $cache

if [ "$(readlink $link)" != "$cache" ]; then
mv $link $static
ln -s $cache $link

if [ -e $link/.unpacked ]; then
rsync -av --delete --exclude .unpacked ./$link/ ./$static/
rsync -av ./$static/ ./$link/
touch $link/.unpacked


Relocating Firefox profile and cache to tmpfs

Debian, radeon and vdpau

Recently I encountered some warning message in terminal while playing video:

Failed to open VDPAU backend cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1

I’m use open source vide driver radeon with such videocard:

lspci | grep VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler [Radeon HD 6310]

So to fix this I downloaded from Arch Linux repos this files:

ls tmp/vdpau/ | grep pkg

And extracted all libraried to lib directory:

ls tmp/vdpau/lib/

Create script with something like this:

export VDPAU_DRIVER=r600
export LIBVA_DRIVER_NAME=vdpau
export LD_LIBRARY_PATH="/home/max/tmp/vdpau/lib"

After this you will achieve working vdpau:

Starting playback...
VIDEO: 1280x720 25.000 fps 1739.2 kbps (217.4 kB/s)
VO: [vdpau] 1280x720 => 1280x720 Planar YV12
[vdpau] Got display refresh rate 59.973 Hz.
[vdpau] If that value looks wrong give the -vo vdpau:fps=X suboption manually.



Debian, radeon and vdpau

qWordNotify demo

Time to show the world  my new project qWordNotify. This is improved version of wordnotify coded in Python 2.7 with Qt 4.8. In qWordNotify you can select dictionary which is just a custom written list of words, set delay between messages and start the timer so you will see popup notification messages from your list.


  • Showing messages in system tray;
  • Selecting of needed dictionary;
  • Selecting message timeout* (May be overrided by operation system settings);
  • Selecting message delay;
  • Hiding of main window to system tray;
  • Operating from icon in system tray.

To do:

  • Adding user defined dictionaries;
  • Editing user defined dictionaries;
  • Removing user defined dictionaries;
  • Selecting application language;
  • Using external libnotify on GNU/Linux systems.

Source code is open source and available on GitHub and work on Windows, GNU/Linux, Mac OSX (not tested) and FreeBSD (not tested).download
Precompiled binary package in ZIP archive can be downloaded HERE.


Some screenshot comparison among the platforms:





 Windows XP preview









Windows 7 preview







Ubuntu 14.04 preview

qWordNotify demo

VGA Boot modes to set screen resolution

A simple way to set your screen resolution and color depth for most Live Linux distro’s is via the use of the vga=parameter boot option. For example at boot you might type: Live vga=795. This would set your system to boot using the Live label with a screen resolution to 24bit 1280X1024. Here are some more examples of common vga boot values.

VGA Resolution and Color Depth reference Chart:

Depth 800×600 1024×768 1152×864 1280×1024 1600×1200
8 bit vga=771 vga=773 vga=353 vga=775 vga=796
16 bit vga=788 vga=791 vga=355 vga=794 vga=798
24 bit vga=789 vga=792 vga=795 vga=799
VGA Boot modes to set screen resolution

Solving problems with running Nethack

Recently I decided to play some Nethack and instead of using default repositories I downloaded package from official Nethack website.

First of all you need to unpack package to desired directory. I used my local Games:

max@vault:~$ tar xvf nethack-343-linux-X11.tgz

Then edit path to distribution in running shell script nethack:

max@vault:~/Games/nethack$ vim nethack

Change option HACKDIR:


And after all this manipulations you may run and play the game. But I encountered with an error:

max@vault:~/Games/nethack$ ./nethack
Unknown terminal type: xterm.

Solution is pretty simple:

sudo apt-get install ncurses-term
sudo ln -s /lib/terminfo/x/xterm /usr/share/terminfo/x/xterm

For me, ncurses-term was already installed and configured, so creating a symbolic link for xterm in second line does the trick.

Now time  to enjoy a bit of dungeon crawling!


Solving problems with running Nethack