User Tools

Site Tools


en:linux:arch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:linux:arch [2012/08/02 14:35] (current)
Line 1: Line 1:
 +===== My ArchLinux configuration notes =====
  
 +==== Login message ====
 +
 +Edit file ''/​etc/​issue''​. My (colorful) contents
 +  [01;​37mArch Linux \r \n [00;​34m\l
 +Post-login message resides in ''/​etc/​motd''​ file.
 +
 +
 +==== How to keep boot messages ====
 +
 +Remove the ''​^[c''​ sequence from ''/​etc/​issue''​ - this sequence clears the screen. [[http://​wiki.archlinux.org/​index.php/​Disable_clearing_of_boot_messages|More information here]].
 +
 +==== AFS ====
 +
 +See [[en:​linux:​cern#​afs_installation_configuration|this page]].
 +
 +
 +==== How to change cofiguration of DVIPS ====
 +Check the configuration file ''/​usr/​share/​texmf-dist/​dvips/​config/​config.ps''​ (or ''/​usr/​share/​texmf/​dvips/​config/​config.ps''​)
 +
 +
 +
 +
 +
 +==== XKB configuration ====
 +
 +On my keyboard, there is no convenient ''​insert''​ key. I decided to override ''​print screen''​ (which I don't use at all). In file ''/​usr/​share/​X11/​xkb/​symbols/​pc''​ I commented out original lines (within ''​xkb_symbols "​editing"''​ section)
 +  key <​PRSC>​ {
 +    type= "​PC_SYSRQ",​
 +    symbols[Group1]= [ Print, Sys_Req ]
 +  }
 +and and replaced by
 +   key <​PRSC>​ { [  Insert, Print ] };
 +and it worked :-)
 +
 +
 +
 +==== MIDI ====
 +
 +To support MIDI playback for KDE, I used [[http://​wiki.archlinux.org/​index.php/​Timidity|Timidity (Arch How To)]].
 +
 +
 +
 +
 +
 +==== TeX live, UTF8, fonts in T1 coding ====
 +
 +There is encTeX extension which can provide input and output (re)coding. To create a format that uses encTeX open ''/​etc/​texmf/​web2c/​fmtutil.cnf''​
 +and add lines like
 +  enctex ​         tex   -         ​-enc ​     tex.ini
 +  encpdftex ​      ​pdftex ​ -     -enc      *pdfetex.ini
 +this will result in a ''​plainTeX''​ format but with encTeX extension enabled. To generate the format do
 +  fmtutil-sys --all
 +To use the format, run TeX by
 +  tex -fmt=enctex your_file.tex
 +or
 +  pdftex -fmt=encpdftex your_file.tex
 +The input and output encoding can be specified in your tex file
 +  \input utf8-t1.tex
 +In this example, it converts utf8 input to T1 (font) encoding. The other files may be found in ''/​usr/​share/​texmf-dist/​tex/​generic/​enctex/''​
 +
 +For Czech fonts, it is more appropriate to use CSF encoding by
 +   ​\input utf8-csf.tex
 +
 +
 +==== TTF fonts in TeX ====
 +
 +http://​www.radamir.com/​tex/​ttf-tex.htm
 +
 +
 +==== Multiple screens ====
 +
 +This helped: [[http://​www.thinkwiki.org/​wiki/​Xorg_RandR_1.2|http://​www.thinkwiki.org/​wiki/​Xorg_RandR_1.2]].
 +
 +
 +
 +
 +
 +
 +==== Setting up cron ====
 +
 +This helped: [[http://​www.unixgeeks.org/​security/​newbie/​unix/​cron-1.html]]. To edit your user cron table, do
 +  export VISUAL=vim ​ # gvim doesn'​t work for some reason
 +  crontab -e
 +An example record (to generate Garmin map from OSM every Friday, 2:00am)
 +  00 2 * * fri $HOME/​fun/​gps/​bin/​makeGenevaSurroundings >> cronLog 2>&1
 +
 +
 +
 +
 +==== Bluetooth and Gnokii ====
 +
 +File lists can be obtained (''​B''​ stands for the memory card, note the asterisk)
 +  gnokii --getfilelist "​B:​\\Images\\*"​
 +
 +Then, files (camera pictures in this example) can be downloaded by
 +  function Download()
 +  {
 +  echo "​$1"​
 +  gnokii --getfile "​B:​\\Images\\$1"​ "​$1"​ &> /dev/null
 +  }
 +
 +Ring tones can be found in ''​B:/​Extra/​predeftones/​predefringtones/''​. To upload a file (ring tone in this example)
 +  gnokii --putfile hagfis.mp3 B:/​Extra/​predeftones/​predefringtones/​hagfis.mp3
en/linux/arch.txt · Last modified: 2012/08/02 14:35 (external edit)