Saturday, November 29, 2014

if video in skype doesn't work

cp /usr/share/applications/skype.desktop ~/.local/share/applications/
nano ~/.local/share/applications/skype.desktop
In 'Exec=' prepend 'env LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l2convert.so'

Wednesday, November 26, 2014

compile TeX from WEB sources

sudo apt-get install libkpathsea-dev

mkdir TeXLive/
cd TeXLive/
svn co svn://tug.org/texlive/trunk/Build/source/
cd source/texk/kpathsea/
./configure
cd ../web2c/
./configure # append '--with-x=no', or run 'sudo apt-get install libx11-dev' before './configure'
make tex
touch hyphen.tex
TEXINPUTS=/home/user/source/texk/tests/texmf/:. ./tex -enc -ini '\input plain \dump'
TEXFORMATS=. ./tex -fmt plain blah.tex

Tuesday, November 25, 2014

testing_rsync

jigdo-lite ...
  ftp://ftp.us.debian.org/debian/
  Ctrl-C
run once again (possible network errors)
if it's still not enough:
mv debian-testing-i386-DVD-1.iso.tmp debian-testing-i386-DVD-1.iso
rsync --verbose --progress rsync://cdimage.debian.org/cdimage/weekly-builds/i386/iso-dvd/debian-testing-i386-DVD-1.iso debian-testing-i386-DVD-1.iso

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/