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/