Tuesday, July 9, 2013

VirtualBox notes:
If winxp in virtualbox is smaller than the window, fold and unfold the window again.
Use fullscreen mode for winxp in virtualbox. If you fold the guest in the bottom pane, it will go to window list on host.

Thursday, June 27, 2013

To enlarge font in console:
1. # Note: run this in squeeze only. Wheezy is using kbd by default (?)
   sudo dpkg -P console-tools # ignore error message here
   sudo dpkg -i kbd_*.deb
2. apply following patch (cat > /tmp/console-setup.patch; sudo patch -p0 < /tmp/console-setup.patch) and run "setupcon" from console:

--- /etc/default/console-setup
+++ /etc/default/console-setup
@@ -15,7 +15,7 @@
 # Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian
 # Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3
 # Vietnamese.  Read README.fonts for explanation.
-CODESET="Lat15"
+CODESET="CyrSlav"
 
 # Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes
 # 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes
@@ -25,8 +25,8 @@
 # GohaClassic (sizes 12, 14 and 16).
 # Set FONTFACE and FONTSIZE to empty strings if you want setupcon to
 # set up the keyboard but to leave the console font unchanged.
-FONTFACE="Fixed"
-FONTSIZE="16"
+FONTFACE="Terminus"
+FONTSIZE="32x16"
 
 # You can also directly specify nonstandard font or console map to load.
 # Use space as separator if you want to load more than one font.

Tuesday, June 25, 2013

Useful gcc options:
gcc -Wall -W -Wstrict-prototypes -fno-common -Wdeclaration-after-statement

Tuesday, June 4, 2013

== NFS server-client ==

/etc/exports:
/home/user/ 192.168.40.134(no_subtree_check,rw)

sudo /etc/init.d/nfs-kernel-server restart

mount:
sudo mount 192.168.40.190:/home/user/ /mnt/

Friday, May 31, 2013

Convert flac to mp3 with 320 kpbs:
find . -name \*.flac -print0|xargs -0 -i ffmpeg -i {} -ab 320k {}.mp3; rename 's/\.flac//' *.mp3; ls -1 *mp3|wc -l; ls -1 *flac|wc -l