Friday, January 18, 2008

Aspell in spanish

To check Spanish grammatic in TeX documents the command is:
aspell -d spanish -c myfile.tex

To check an English document:
aspell -c myfile.tex

Friday, January 11, 2008

Quota command

check your quota with the command quota -v

Other options (on NFS)
/sbin/quotacheck -avug



Tuesday, January 01, 2008

Mod4 key in FluxBox

http://home.nyc.rr.com/computertaijutsu/fluxbox.html

If the Mod4 key doesn't work, it means that when you set up X you probably picked a 101 or 102 key rather than 104 key keyboard. This is easily fixed. You'll need to be root or use sudo. Open up your favorite text editor and open /etc/X11/XF86Config or xorg.conf. (Sometimes, this will be /etc/X11/XF86Config-4). In there you will find the line

Option "XkbModel" "pc101"

Change it to read

Option "XkbModel" "pc104"

If you don't have that pc101 line in there, then you have some other problem. Some distributions, for some reason, don't automagically bind Mod4 to Super_L. You can check this with

xmodmap

You should see something like

xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)

If you don't, you can create a $HOME/.xmodmaprc file. In that file put

keycode 115 = Super_L
keycode 116 = Super_R
keycode 117 = Menu

The last line enables you to use the Windows menu key as well.

Save this file in your home directory and then add the following to your .xinitrc (above the exec startfluxbox line)

xmodmap .xmodmaprc

Sometimes, this doesn't work for me. In that case, I have to add

add Mod4 = Super_L

to my .xmodmaprc file There's other nice things you can do with the key bindings. For example, you can open up the root menu, move windows with keystrokes, etc. I have for example, in my fluxbox keys file