There is a nice way to call external applications when one is clicking on a mailto: link. Open the
about:config in a new tab and search for
network.protocol-handler.external.mailto - look if the value is true, if not toggle it to true.
Now create a new String (context menu) and name it
network.protocol-handler.app.mailto with the value
mailto.sh.
At last, create a file called
mailto.sh, put the following lines into it and put the file into
/usr/local/bin/. The file must be - of course - executable (
chmod a+x mailto.sh):
#!/bin/sh
urxvt -e mutt "$1"
Click on a link and be happy with it - you just saved some copy-and-paste sessions! You can test it with this
link.
While using the vimperator add-on it is really comfortable to google by pressing p, typing in google and then the words you are searching for. Firefox detects automatically to load www.google.de and searches for the given words. That's also possible for other sites like www.ebay.de or www.amazon.de. One disadvantage with the binary version of mozilla-firefox: you have to do the adjustments of the searchplugin XML files within the global /opt/firefox/searchplugins folder; it did not work by editing the files within ~/.mozilla/firefox/USER/searchplugins . Just edit the files and change the specific URLs - eventually, restart firefox and have some by saving more time with firefox, vimperator and your new searchplugins!
Clean up non-used packages (long time ago ...)
After a while, each system is full of software it doesn't use. With
emerge --depclean it's possible to track down these packages - they will be removed instantly. However, do this only after an correct update like
emerge --pretend --verbose --newuse --deep --update world. Now you can easily run
emerge --depclean and finally
revdep-rebuild.
emerge --newuse --deep --update --verbose --tree --ask world
emerge --depclean
revdep-rebuild
Important Gentoo files (long time ago ...)
/etc/portage/package.keywords
/etc/portage/package.unmask
/etc/portage/package.use
/var/lib/portage/world
/usr/portage/profiles/use.desc
/etc/make.conf
/etc/layman/layman.conf
Uninstall protected files while un-installing packages (long time ago ...)
Sometimes, an
emerge -C package doesn't delete all installed files. Files in
$CONFIG_PROTECT will not be touched. So this is the clean deinstalling mechanism:
CONFIG_PROTECT="-*" CONFIG_PROTECT_MASK="-*" emerge -Cv package
Check your world file (long time ago ...)
You can check your world-file
/var/lib/portage/world with the following command:
emaint --check world
Testing software (long time ago ...)
If you want to test a huge software with lots of dependencies, you can't just do an
emerge -aC programname because the dependencies wouldn't be uninstalled. You could use
emerge depclean, but there is another, cleaner and more secure way.
Let's say you want to test
kdevelop - but you do not know whether you want to use it for a long time. So create the dependencies-file:
emerge kdevelop -p |
sed -ne '/^\[ebuild[^]]*N[^]]*\]/{s/^\[ebuild[^]]\+\] ([^[:space:]]\+\).*$/=\1/;p}' \
> kdevelop.deps
This ensures that no packages are listed in the deps-file which has just been updated and not newly installed. If you want to get rid of kdevelop in the future, use this:
emerge -aC $(
More infos on forums.gentoo.org
Setting up UTF-8 with Gentoo (1st Oct'07)
First, one has to specify locales for
glibc. Add the locales into the
/etc/locale.gen and run
locale-gen afterwards.
en_US ISO-8859-1
en_US.UTF-8 UTF-8
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
de_DE.UTF-8 UTF-8
Test with
locale -a whether the locales were installed correctly and to list their correct names. It should something like that:
C
POSIX
de_DE
de_DE.utf8
de_DE@euro
en_US
en_US.utf8
Next, the environment variables
LANG and
LC_ALL have to be set to a correct UTF-value. This can be done for example in the
/etc/env.d/02locale. Test with
env-update && source /etc/profile && locale whether the output of the environment variables is correct.
Hide parts/joins/kicks/quits messages (long time ago ...)
There is a built-in function called ignore to get rid of several lines in
irssi (see
/help ignore). Here some examples which should be self-explanatory:
/ignore #channel JOINS
/ignore ALL QUITS
Instead of JOINS and QUITS you can use one of the following levels:
CRAP, CTCPS, JOINS, PARTS, QUITS, KICKS, TOPICS, PUBLIC
SNOTES, NOTICES, MODES, DCC, NICKS, ACTIONS, WALLOPS, MSGS
INVITES, DCCMSGS, CLIENTNOTICE, CLIENTCRAP, CLIENTERROR
Another way to hide special lines use the script
crapbuster.pl in the
autorun folder and test it:
/script load autorun/crapbuster.pl
/set crapbuster_levels QUITS KICKS PARTS JOINS
If it works, add this line to the
perl/core/scripts section of your irssi config:
crapbuster_levels = "QUITS KICKS PARTS JOINS"
The difference to ignore is that with crapbuster the lines arent hidden at once; instead you have to invoke
/crapbuster. Have fun!
Let the ThinkLight blink! (long time ago ...)
IBM Laptops have the ThinkLight technology in their notebooks: you can use that as an information for incoming messages. Load the script
beep_beep.pl in the
autorun folder. In the core settings:
beep_msg_level = "PUBLIC MSGS";
And in the
perl/core/scripts section:
beep_cmd = "echo on > /proc/acpi/ibm/light; sleep 0.1; echo off > /proc/acpi/ibm/light";
Keep in mind that you must have the permission to set the light file under
/proc!
Print | in Latex (long time ago ...)
$\mid$ will print |
UTF-8 and latex files (long time ago ...)
There is a bug with utf8-encoded latex files -
utf8.def is missing. Just invoke the following commands and the problem is gone:
cd /usr/share/texmf/tex/latex/latex-unicode/
ln -s utf8x.def utf8.def
texhash
Some Latex commandos one should know (1st Oct'07)
Add a math formula in the same line:
\( MATH-FORMULA \)
Add an indented math formula:
\[ MATH-FORMULA \]
Adding vector arrow to a variable:
\( \vec{x} = ... \)
Using lower and higher indices:
\( x = x_{1} + x_{2}^{3} \)
What's the world without infinity...
\( \infty \)
And what about some Greek letters...
\( \alpha \beta \gamma \delta \epsilon \phi \psi ... \)
Fractions can also be displayed easily:
\( one half = \frac{1}{2} \)
A sum sign (look at the \limits):
\( \sum\limits_{i=0}^{10} i \)
An integral sign (look at the \limits):
\( \int\limits_{i=0}^{10} i \)
How to add new Latex Packages to the System (9th Mar'08)
Search your package with your favourite search engine: "ctan csquotes". Unpack it in /usr/share/texmf/tex/latex/csquotes and run texhash.
Adding swap partition / file (long time ago ...)
For a swap partition just invoke the following command:
swapon /dev/hda9
For a swap file invoke these commands:
dd if=/dev/zero of=/swapfile bs=1024 count=65536
mkswap /swapfile 65536
sync
swapon /swapfile
umask (long time ago ...)
Each file which is created gets a default file permission. This can be controlled via umask. You have to give umask one argument - the opposite octal value of the mode you want. i.e. you wanna have 700 as default file permission, you have to invoke umask 077 (700 + 077 = 777 as a hint).
Display power management (long time ago ...)
For your X session (
/etc/X11/xorg.conf):
Section "Monitor"
...
Option "DPMS"
...
EndSection
...
Section "ServerLayout"
Option "BlankTime" "2"
Option "StandbyTime" "4"
Option "SuspendTime" "6"
Option "OffTime" "8"
EndSection
For the console (
~/.bashrc):
setterm -blank 2
setterm -powersave on
setterm -powerdown 5
Enabling all Thinkpad features (long time ago ...)
On my IBM T43 some hotkeys - the ones using Fn - are deactivated. To enable functions like disabling the LCD write this to
/etc/conf.d/local.start. Don't forget to load the kernel module called
ibm_acpi / thinkpad_acpi.
echo enable,0xffff > /proc/acpi/ibm/hotkey
Making a partition user-writeable (long time ago ...)
Example entry in
/etc/fstab for a reiserfs partition:
/dev/hdb1 /mnt/storage reiserfs users,rw,noatime,owner 0 0
The mount point should have 777.
Make your login cooler (long time ago ...)
Feeling the red vine of last night in my guts, it's better not to study... better start playing again :-D
Does your login also look so boring and standardized? Make it a bit cooler using some nice tools (checkout Gentoo Forums).
Some "background knowledge":
/etc/issue is responsible for the output before the user login and
/etc/motd is the message of the day displayed right after the login of a user. Here comes
linux-logo into play, and of course don't forget
cowsay (moooooh :-)) and
fortune...
echo "games-misc/fortune-mod offensive" >> /etc/portage/package.use
emerge linux-logo cowsay fortune-mod fortune-mod-starwars
linux_logo -L 3 > /etc/issue
echo "fortune starwars | cowsay > /etc/motd" >> /etc/conf.d/local.start
May the force be with you! Good night!!
Installing Windows *after* Linux (long time ago ...)
Normally, you should install Windows first and then Linux because if you do it the other way, the Windows installation will delete your MBR (master boot record) installed by
grub.
Of course there is a possibility to achieve the other way: After having installed Windows boot with a live cd and run the following commands (taken from Gentoo Weekly Newsletter):
mount /dev/rootpart /mnt/gentoo
mount /dev/bootpart /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile
grep -v rootfs /proc/mounts > /etc/mtab
(Assuming your hard drive is /dev/hda)
grub-install /dev/hda
Sansa SanDisk e250 (long time ago ...)
I've got a new mp3 player, the Sansa SanDisk e250 with 2GB hard disk. Before you plugin the sansa, change the usb setting to MSC. After that add a udev rule as described below:
nano /etc/udev/rules.d/10-local.rules
KERNEL=="sd?1", BUS=="usb", SYSFS{product}=="Sansa e250", NAME="%k", SYMLINK+="sansae250"
mount the device as a normal storage device:
mount /dev/sda1 /mnt/sansa
Using Bash shortcuts (long time ago ...)
First of all some nice shortcuts (Emacs mode):
TAB auto-complete
Ctrl-r search for commandos
Ctrl-l clean screen
Ctrl-e go to end of line
Ctrl-a go to beginning of line
Ctrl-u delete whole line
Ctrl-k
Ctrl-d delete character under
Alt-b go one word backward
Alt-f go one word forward
If you prefer vi-Mode, then type
set -o vi
You can see all bindings using
bind -p;
bind -l will list all available functions! Use
bind -u function and
bind -q function to set new shortcuts.
Using dd and mkisofs (long time ago ...)
dd stands for "convert and copy" - weird? No, because
cc is the C compiler :-D
So for what is dd good for? Perhaps for saving your MBR (master boot record):
dd if=/dev/hda of=bootsector bs=512 count=1
Or raw copy a whole cd (not mounted):
dd if=/dev/cdrom of=foobar.iso
This is fine for raw data - but CDs (compact discs) need a iso files:
mkisofs is your friend
mkisofs [options] -o outputfile.iso /tmp/data
options can be
-r (Rockridge),
-j (Joliet),
-R (Rockridge + Owner + Permissions), and many more, see the man page!
Here some more:
-V "Volume-ID" sets a volume ID for the CD
Before you actually write your data onto the CD, you can test it using the loop device:
mount -o loop foobar.iso /mnt/tmp
After testing your data
unmount /mnt/tmp and finally burn it on CD:
cdrecord --dev=ATAPI:0,0,0 driveropts=burnfree foobar.iso
Using split and cat (long time ago ...)
Home directories and other data could be burned as follows:
mkisofs -o /tmp/backup.iso /home/user
cdrecord -v --dev=ATAPI:0,0,0 driveropts=burnfree /tmp/backup.iso
But what to do when the file is too big for one compact disc? Use split!
split -b 695m backup.iso backup.iso.split.
This command will create files which have exactly the size of 695 MB (except the last one). Restoring the original file is as simple:
cat backup.iso.split.* > backup.iso
The only problem with this scheme is that files are twice on the machine! If you have a small disk with vast space, use the pipe:
tar cz /home/user | split -b 695m - archiv.tar.gz.split.
cat archiv.tar.gz.split.* | tar xz
Understanding diff output (long time ago ...)
diff file1 file2 assumes that
file2 is newer than
file1. Thus, the output has to be interpreted as which changes have to be made to
file1 to get the contents of
file2!
13c13
means: line 13 in
file1 has changed to line 13 in
file2
81a82,84
means: lines 82 through 84 of
file2 follow line 81 of
file1
with large outputs use these ones:
diff file1 file2 | less
diff file1 file2 > changes.diff
If you're just interested if two files are identical than invoke:
diff --brief file1 file2 (or just -q)
Another perspective can be shown:
diff --context file1 file2 (or just -c)
! stands for changed lines,
+ for added lines and
- for removed lines.
Patch files are changes in the Unified-Diff-Format. You can get them using the
--unified (-u) parameter.
Unicode / UTF-8 support in Linux (9th Oct'07)
If you don't have the smallest idea about unicode / UTF-8, read this
article.
Be sure that your locales are configured correctly:
locale
locale -a
locale -m
Since I have a keyboard with US layout (which really rocks at programming) I miss my German Umlaute ae, oe, ue, ss and the Euro sign. Add this to your
.xinitrc:
xmodmap -e "keycode 113 = Mode_switch Mode_switch"
xmodmap -e "keysym a = a NoSymbol Adiaeresis NoSymbol Adiaeresis"
xmodmap -e "keysym o = o NoSymbol Odiaeresis NoSymbol Odiaeresis"
xmodmap -e "keysym u = u NoSymbol Udiaeresis NoSymbol Udiaeresis"
xmodmap -e "keysym s = s NoSymbol ssharp NoSymbol"
xmodmap -e "keysym e = e NoSymbol EuroSign NoSymbol"
AltRight has keycode 113 and is therefore used as a mode_switch for my Umlaute and special characters. Look at
/usr/include/X11/keysymdef.h to find the correct names for the
xmodmap commands.
If you want to test your console client, load a
unicode test file and cat it. For comparison, watch it in firefox (which has decent UTF-8 support) or run the cat command within a xterm invoked by
LC_CTYPE=en_US.UTF-8 xterm -fn '-Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1'.
Another way to test your console client is to invoke some perl one-liners (should print the Euro sign):
perl -C -e 'print pack("U",0x20ac)."\n"'
perl -C -e 'print "\x{20ac}\n"'
SMART Tools (long time ago ...)
S.M.A.R.T. stands for Self Monitoring Analysis and Reporting Technology - it gives information about the state of the hard disk (e.g. warmth, age, number of errors). To receive the SMART attributes one will need smartmontools (smartctl to get the information, smartd is a background daemon).
First, you have to activate SMART for your disk:
smartctl -s on /dev/hda
Then you can get an overview page:
smartctl -A /dev/hda
Since there is no standard, the developers provide information for hard disks. To see, if your hard disk is in the database, invoke:
smartctl -P show /dev/hda
The column named "UPDATED" indicates how often the attributes are updated. Always means data is updated all the time, while Offline means that the data is updated every hours e.g. You can update at once the "offline attributes":
smartctl -t offline /dev/hda
The column named "TYPE" can have two values: "Pre-Fail" or "Old_age". Old_age attributes are interesting, but they do not indicate a damage. Thus the Pre-Fail attributes exist!
The higher the absolute value of "VALUE", the more sane is your hard disk. "THRESHOLD" gives a lower bound which should not be undergone.
You should regularly look at the "Pre-Fail" values!
You can run some tests:
smartctl -t short /dev/hda
smartctl -t long /dev/hda
smartctl -l selftest /dev/hda
Some manufacturer information can be received with this one:
smartctl -i /dev/hda
By the way, the temperature of current hard disks is about 45 C, the value should not be regularly over this value!
For S-ATA disks, you have to add
-d ata at each smartctl command.
You need
smartctl -o on
/dev/hda to update the attribute values each 4 hours.
To receive mails on faults and errors, write
-m email@address.de in your
/etc/conf.d/smartd and restart smartd (don't forget to add
rc-update add smartd boot)
Fixing man page problem in vim (long time ago ...)
echo "export MANPAGER=more" >> ~/.bashrc
Ctags and Vim (long time ago ...)
If you wanna work in a large code project, you have to know ctags in combination with vim! In your source code directory enter exuberate-ctags *.c *.h which will create the tags file. After that, you can browse through the source code and jump through the definitions of constants, variables and functions using CTRL+]. If you have read enough switch back to your starting point using CTRL+T.
Folding in Vim (16th Oct'07)
Source Files can grow very rapidly and for a better structure and overview vim has the facility to fold and unfold parts of your code. To make a fold for a visual selection, just press zf. Using zo opens a fold. If you want to close it again, use zc. zO opens all folds while zC closes all. zi toggles all folds.
Foldings are not saved within the .viminfo, but you can save foldings with :mkview and load them with :loadview!
Color scheme for gvim (long time ago ...)
In
.gvimrc
color colorscheme
IDE like vim (long time ago ...)
First of all the great IDE-like winmanager plugin. Just extract the
winmanager.zip in your
~/.vim directory. The help-file says you also need bufexplorer: then do it again for that
one .
Teach vim spelling (long time ago ...)
emerge vim-spell-de vim-spell-en
After that open vim (or gvim) and read :help spell. Here's a short summary:
:setlocal spell spelllang=de (or de_19 (before the German reform), de_20 (the new one), en_us)
zg store a marked word as a good word into the spell file
zw store a marked word as a wrong word into the spell file
]s go to the next misspelled word
[s go to the previous misspelled word
z= get a list of suggestions for a word marked as wrong
Of course this is only efficient if you do not have to type in these cryptic commands. So here some mappings:
map :set spelllang=de:set spell!:echo "German spell check: " . strpart("OffOn", 3 ASTERISK &spell, 3)
map :set spelllang=en_us:set spell!:echo "English spell check: " . strpart("OffOn", 3 ASTERISK &spell, 3)
Using the vim help files (16th Oct'07)
Don't forget to use CTRL-] and CTRL-t to jump within the help files, the words are marked specially.
If you need help, just type :h word / shortcut / option. For example to get help on the hls option invoke :h 'hls' or to know something about the shortcut CTRL-K type in :h C-K
If you don't know exactly what you're searching for you can type in :h word and then instead of completing the ex-commando with Return try CTRL-D. A list will appear with help sections similar to your request.
Another way to search for inexact patterns is to use some regular expressions: :helpg pattern is your friend!
The names of the keycodes are listed in :h keycodes.
More about making programming / text editing easier with vim (16th Oct'07)
You can open an imported file in a new buffer using CTRL-W-F. The same can be done with gf, but the file is shown in the same buffer as the old file.
Jump to local / global declaration of a variable using gd / gD. You can also jump to system wide declarations using [<Tab>. An alternative is to use CTRL-W-D.
A way to find all occurences of a word under the cursor is to invoke [I - it will open a small buffer with all found lines in files.
Compiling a program using a make command can be done with :make and the use of quickfix: :copen, :cnext, :cclose, :clist
Vim is also good for writing mails - some standard values here should be: tw=0 or 78, wrap, linebreak. And if you want to reformat a text block, then you should probably try gqap - the output is a nice reformatted text block.
Vim can be started with a folder as a parameter - it will list all files within this folder. Type i to get several views of the directory listings. Another command line parameters are -R and -M with open a file in read-only mode respectively modifiable-off mode.
If you really work heavy on some files with foldings, marks etc. and you want to have these things set after a restart of mutt, you have to know these commands: for working with viminfo files use :wviminfo [!] [file] and :rviminfo [!] file. The problem is that with viminfo not everything is stored, e.g. no foldings are saved: to get them use these: :mkview [!] [number] and :ldview number. Even more information is stored with sessions: :mksession [!] [datei]. To load these on vim startup you can pass some arguments: vim -i infofile -S sessionfile.
Another possibily is to export the current settings and mappings into a vimrc file using :mkvimrc [!] [file]. It can be loaded with vim -u file. A special startup is vim -u NONE.
Really helpful is to get the last visual selection with gv.
Ever tried to capitalize a word? Visual select it, type u for lower and U for upper leters - ~ in normal mode reverts a character.
Sometimes marks are a nice thing - you can show the existing ones with :marks, create one with mLETTER, jump to the mark with `LETTER and jump back with ``.
Some shortcuts / things to know:
ZZ save and close buffer
"a3dw delete three words and store them in register a
I vs. gI: insert at the beginning of a line vs. insert at column 0
78i-<ESC> will produce a line of 78 -
i_CTRL-D / i_CTRL-T make one indentation less / more in insertion mode
i_CTRL-V ASCII/UTF-CODE / ga type in CODE / show CODE information for character under cursor
i_CTRL-W / i_CTRL-U delete last word / line you typed in
^ / $ jump to beginning / end of current line
( ) { } jump to previous / next sentence / paragraph
% jump to the next parenthesis
J join the current and the next line into one line
q/ q? popup search history in forward / backward direction
window movements see :help CTRL-W and :help window-moving
i_CTRL-P / i_CTRL-N for completing words
xp swap current with next character - ideal for typos which happen more than often.
Haskell mode for vim (17th Oct'07)
Installation is really simple: you need a functional
ghc with docs (USE flag doc) and then of course
haskellmode.
Configuration is a bit tricky: be sure that you have the following lines in your
.vimrc:
filetype plugin on
filetype indent on
au BufEnter *.hs compiler ghc
let g:haddock_browser="/usr/bin/firefox"
let g:haddock_docdir="/mnt/storage/code/haskell/haskell.org/"
Open a Haskell file and type in :ExportDocIndex. After that :DocSettings should be possible which indicates that your installation was successful.
Now let's show a few features (see [3] for a full list):
GHC compiler intregration
_si is used to show information
_t is used to show the type
_T is used to add a type declaration
_ct creates a tags file in the currenct directory
i__CTRL-X_CTRL-O is used for insertion-mode completion based on GHCi browsing
_opt shows a list of common ghc options
Haddock integration:
_? looks up identifier in haddock
:IDoc {identifier} looks up identifier in haddock
:MDoc {module} looks up module in haddock
_. fully qualifies an unqualified identifier
_i adds import statement for the identifier under the cursor
_im adds import module statement
i_CTRL-X_CTRL-U user-defined insert mode name completion based on all names known to the Haddock index, including package names
HPaste integration:
:HpasteIndex makes a list of current entries from hpaste.org
:HpastePostNew takes the current buffer and makes a new hpaste.org entry out of it
Resources:
[1]
Claus Reinke's Vim Haskell page
[2]
Claus Reinke's graphical tour
[3]
Claus Reinke's Haskellmode manual
US keyboard and German Umlaute (long time ago ...)
The main concept: use the us layout and add the special characters to it.
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
# Option "Protocol" "Xqueue"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us,de"
Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"
Option "XkbVariant" "nodeadkeys"
EndSection
Some notes for this snippet. You can change always between German and US layout by pressing ALT and Shift, but the US layout is the default one. Now we use
xmodmap to add our special keys. Put the following in your
~/.xinitrc:
# right alt
xmodmap -e 'keycode 113=Mode_switch'
xmodmap -e 'keycode 38=a A adiaeresis Adiaeresis'
xmodmap -e 'keycode 32=o O odiaeresis Odiaeresis'
xmodmap -e 'keycode 30=u U udiaeresis Udiaeresis'
xmodmap -e 'keycode 26=e E EuroSign EuroSign'
xmodmap -e 'keycode 39=s S ssharp ssharp'
Reloading .Xdefaults w/o restarting X (long time ago ...)
Using xset (long time ago ...)
Options:
-d display = server
-DPMS = switches on "Energy Star" functions
+DPMS = switches off "Energy Star"
m acceleration = acceleration for mouse in x
q = informations about current settings
Write the settings in ~/.bashrc
Trackpoint configuration (2nd Oct'07)
Starting from 2.6.13 config files for this driver are located in
/sys/devices/platform/i8042/serio0/serio2.
Press-to-Select allows you to tap the control stick which will simulate a left click.
enable: # echo -n 1 > /sys/devices/platform/i8042/serio0/serio2/press_to_select
disable: # echo -n 0 > /sys/devices/platform/i8042/serio0/serio2/press_to_select
You can control the sensitivity and the speed of the trackpointer with values between 0 and 255.
# echo -n 120 > /sys/devices/platform/i8042/serio0/serio2/speed
# echo -n 250 > /sys/devices/platform/i8042/serio0/serio2/sensitivity
Scrolling while holding mouse button 3: just add these two lines to your existing mouse section in
/etc/X11/xorg.conf.
Option "EmulateWheel" "on"
Option "EmulateWheelButton" "2"
Resources:
[1]
ThinkWiki article about trackpoint
Install Xcursor themes (9th Oct'07)
Install some Gentoo Xcursor packages like gentoo-xcursors and look into
/usr/share/cursors/xorg-x11/ where the themes are installed.
You can choose your theme using
~/.Xdefaults or by creating the
/usr/share/cursors/xorg-x11/default/index.theme. The local variant:
Xcursor.theme: THEME_NAME
And the global variant:
Inherits=THEME_NAME