Some personal notes

  pulseaudio client server. Gebruik van pavucontrol werkt niet goed.
  padevchooser en pulsaudio system tray werken wel, maar het icon
  wil niet altijd verschijnen in het panel....
  Iets wat wel werkt is:
  PULSE_SERVER=jukebox pax11publish -e
  xprop -root -f PULSE_SERVER 8s -set PULSE_SERVER tcp:jukebox
  Het volgende in /etc/pulse/ gezet:
## wwvv
load-module module-native-protocol-tcp auth-ip-acl=; auth-anonymous=1
load-module module-zeroconf-publish
load-module module-zeroconf-discover
## /wwvv

   geranium: verwijderd nvidia-352

   git en branches:
   $git clone
   $cd xbeach-mi
   $git branch
   * master
   $git branch -a
   * master
     remotes/origin/HEAD -> origin/master
   $git checkout -b mpi origin/mpi
   $git branch
   * mpi

    text color: corporateclean/colors/colors.css
    text size: corporateclean/colors/style.css

  indent fortran met emacs:
  emacs --batch filename.f90 -f mark-whole-buffer -f f90-indent-subprogram -f save-buffer

2016-06-06 mount --bind etc
   in fstab:
   /homes/home /home none bind

2016-05-23 enable hibernate in menu:
  geen loginprompt

2016-05-23 login na hibernate:
  werkt niet altijd goed!
  /etc/pm/sleep.d/ :

case "$1" in
      gdbus call --system --dest org.freedesktop.DisplayManager --object-path /org/freedesktop/DisplayManager/Seat0 --method org.freedesktop.DisplayManager.Seat.SwitchToGreeter
exit $?

2016-05-23 willem mag pm-suspend zonder paswoord:
   als root:
    visudo -f /etc/sudoers.d/power
    willem ALL=(ALL) NOPASSWD: /usr/sbin/pm-hibernate, /usr/sbin/pm-suspend

    hierna kan willem 
      sudo pm-suspend
      doen zonder paswoord

2016-05-23 /etc/sudoers verkloot:
   haal /etc/sudoers van backup en 
   pkexec visudo
   en herstel de file

2016-05-19 genereer licencse file intel
  select gewenst product -> manage 
  -> activate serial number (mac eth0)

2016-05-19 fake time
  faketime "2013-01-03 10:20:30" bash
  zie: man faketime
  ps: LD_PRELOAD .... FAKETIME="@2000-01-01 10:20:30" werkt niet
      zoals beschreven in /usr/doc/libfaketime/README.gz

2016-04-27 svn server aanmaken
	   addgroup --gid 3001 subversion
	   adduser www-data subversion
	   adduser willem subversion
	   mkdir /home/svn
	   cd /home/svn
	   mkdir myproject

	   svnadmin create /home/svn/myproject

	   cd /home/svn
	   sudo chown -R www-data:subversion myproject
	   sudo chmod -R g+rws myproject

2016-04-25 apps om te verwijderen uit ubuntu:
        sudo apt-get remove tracker-miner-fs
	sudo vim /etc/xdg/autostart/tracker-store.desktop
	      X-GNOME-Autostart-enabled=false :
  zeitgeist  (unity zal niet goed meer werken!)
        sudo apt-get remove zeitgeist zeitgeist-core zeitgeist-datahub python-zeitgeist rhythmbox-plugin-zeitgeist
        sudo apt-get remove geoclue geoclue-ubuntu-geoip geoip-database

       sudo apt-get remove whoopsie

    /etc/ntp.conf :

2016-04-21 disable login
           sudo passwd -l mythtv
	   (zie ook man passwd)
	   Omgekeerd:  passwd -u
	   Verwijder uit greeter:
	   edit /var/lib/AccountsService/users/mythtv :

2016-04-20 waar is background picture
   gconftool --get /desktop/gnome/background/picture_filename

2016-04-20 cups zie hp printer niet
   hp-makeuri 003:008 # getallen uit lsusb
   en hij doet het.
   Ook proberen:
   sudo hp-setup

2016-04-17 install catalyst driver

2016-04-16 temp files van firefox naar memory
In Firefox or Iceweasel, enter about:config in the address bar and confirm the prompt. Now right-click anywhere on the list and create a new entry via the context menu (New | String). Enter browser.cache.disk.parent_directory as the name. The content you need for the new entry is /run/user/1000/firefox-cache. Change 1000 to the user ID, which the id -u command outputs on the system. After you restart the browser, it will write its temporary data to RAM.
2016-04-13 concateneren videos:
   avconv -i 'concat:file1.avi|file2.avi' out.{avi,mp4,ts, ...}
   input mag geen mp4 zijn
   ipv .avi wordt wel genoemd .ts  (voor mpegts encoding)

   mp3 en jpg naar mp4
   avconv -loop 1 -i p.jpg -i m.mp3 -shortest out.{mp4,ts,avi,...}

2016-04-02 boot repair
	   sudo add-apt-repository -y ppa:yannubuntu/boot-repair
           sudo apt-get update
           sudo apt-get install -y boot-repair && boot-repair

2016-03-10 /usr/bin/xauth:  timeout in locking authority file .Xauthority
   login op systeem
   rm .Xauthority*
   touch .Xauthority
2016-03-09 in verband met vlotte verwijdering oude files
           op lisa:
	   tar --extract --touch --file prut.tgz
	   tar --create --auto-compress --file prut.bz2 prut

2016-03-04 console fade weg. Oplossen door in /etc/default/grub
  toe te voegen:consoleblank=0 aan GRUB_CMDLINE_LINUX_DEFAULT=
  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash consoleblank=0"
  sudo update-grub

2016-03-04 doosje: lage resolutie na upgrade.
iets mis met fglrx.
Opgelost door alle fglrx packages te purgen, en daarna fglrx 
te installeren. 
zie ook:

geranium problemen met ethernet.
  sudo rfkill unlock all
  I confirm this problem with the Asus X75VD laptop using rt2600pci 
  driver. None of the above suggestions helped me, but on the 
  French forum(1), there is a work-around that does work. 
  Simply suspend the session (close the lid) and reactivate it 
  and the wifi works.

valgrind --track-origins=yes
  geeft de oorzaak

git geen console color:
  git config --global color.ui false

mpv geen console color:
  mpv --no-msgcolor

Het ultieme ffmpeg verhaal:
Over codecs en containers:

transporteer ssh id pub naar ander systeem:
  ssh-copy-id -i .ssh/ gast@jukebox

convert pem to crt:
   openssl x509 -outform der -in TERENA_SSL_CA_3.pem -out TERENA_SSL_CA_3.crt
   zie ook

scan netwerk:
  nmap -sn

set channel kanaal video (NPO1)
   ivtv-tune -d /dev/video5 -c 22 -t europe-west
   v4l2-ctl -d /dev/video5 --set-freq=599.250

foutje in openmpi met neighbor_alltoallw, 
sdispls en rdispls moeten arrays zijn.

vim /etc/sysctl.conf
    vm.swappiness = 10
  sysctl -p
  sysctl -a | grep vm.swappiness

soms garbled windows met i915 driver. Niet zeer storend, 
windows herstellen zich weer. Maar toch:
 1) Create a i915.conf file in /etc/modprobe.d with this line
options i915 enable_rc6=1 enable_fbc=1 lvds_downclock=1
 2) create a xorg.conf in /etc/X11 with the settings below
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"  "uxa"
usb restart unlock:
  er ontbreekt een test op al of niet bestaan van de files
  zie zelfde artikel: shopt

probeer usb sponate stop te verhelpen:
  gksudo gedit /etc/default/grub
  GRUB_CMDLINE_LINUX=”acpi=force irqpoll”
  sudo update-grub

Xephyr :1 -query -screen 1200x800 -keybd evdev,,device=/dev/dinovo,xkbrules=xorg,xkbmodel=evdev -mouse evdev,,device=/dev/dinovo

Xephyr :1 -query localhost -screen 1200x800 -keybd evdev,,device=/dev/keyb-at,xkbrules=xorg,xkbmodel=evdev -mouse evdev,,device=/dev/mouse-usb

-reset -terminate : stopt bij logout

mythfrontend -O ThemePainter=qt
mythfrontend -O ThemePainter=opengl

zie ook man kbd

sudo apt-get build-dep xserver-xephyr
sudo apt-get install build-essential devscripts
dpkg-source -x xorg-server_1.5.2-2ubuntu3.dsc
cd xorg-server-1.5.2/
cd ..
sudo dpkg -i xserver-xephyr_1.5.2-2ubuntu3_i386.deb
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac &

Xgl :1  -fullscreen -query -accel glx:pbuffer -accel xv:pbuffer -display :0.1 

sudo dpkg-reconfigure x11-common
I have add new input section in xorg.conf and defined /dev/input/event4
(remote control) using evdev,
I have set "Option SendCoreEvents Off" - after I added this to
ServerLayout, it stops send events
(which is the goal) but unfortunately LIRC stops working for all
applications that use it.

I need to somehow tell X not to use events from specific device but do
not block LIRC. It is possible?
myudevinfo /dev/input/event5

sd card
sudo modprobe tifm_core
sudo modprobe tifm_sd

udevadm control --reload-rules
udevadm trigger

I have add new input section in xorg.conf and defined /dev/input/event4
(remote control) using evdev,
I have set "Option SendCoreEvents Off" - after I added this to
ServerLayout, it stops send events
(which is the goal) but unfortunately LIRC stops working for all
applications that use it.

I need to somehow tell X not to use events from specific device but do
not block LIRC. It is possible?

stop gdm
startx -- -logverbose 6
cp /var/log/Xorg.0.log ~
nvidia-xconfig -E Xorg.0.log

evdev kbd
cd /usr/lib/xorg/modules/input
geen goed idee.

mythcommflag --getcutlist -c 25 -s 20100118215500
EXPERIMENTALLY_ALLOW_PULSE_AUDIO=1 mythfrontend "$@"  -O ThemePainter=qt

pacmd "load-module module-tunnel-sink server=jukebox"
pacmd "set-default-sink tunnel.jukebox"
pacmd "set-default-sink 1"
pacmd "set-default-sink 0"
pacmd "play-file /usr/share/sounds/purple/send.wav 1"
pacmd "play-file /usr/share/sounds/purple/send.wav tunnel.jukebox"

disable alsa voor pulseaudio
pacmd "unload-module 4"   # 4 is de index van module-alsa-card
enable: killall pulseaudio
aplay -L
aplay -D front *wav

pulseaudio listen from line-in:
  pactl load-module module-loopback latency_msec=1
  pactl unload-module module-loopback


export MODULEBUILDRC=~/bioperldir/modulebuildrc 
    install --install_base /sara/sw/bioperl/1.6.1

export PERL5LIB=/sara/sw/bioperl/1.6.1/lib/perl5
apt-get install libdata-stag-perl
perl Build.PL --install_base /sara/sw/bioperl/1.6.1/
tar zxvf ExtUtils-Manifest-1.58.tar.gz
cd ExtUtils-Manifest-1.58
  perl Build.PL --install_base /sara/sw/bioperl/1.6.1/
  ./Build test
  ./Build install
export PERL5LIB=/sara/sw/bioperl/1.6.1/lib/perl5
tar zxvf AcePerl-1.92.tar.gz
cd AcePerl-1.92
  perl Makefile.PL INSTALLSITELIB=/sara/sw/bioperl/1.6.1/

drupal, start hem: sudo /etc/init.d/apache2 restart
in apache configuratie is en alias voor drupal6: /usr/share/drupal6

drupal, op de hand geinstalleerd in /usr/local/drupal6
cd /usr/local/drupal6
ln -s drupal-6.16 default

in /etc/apache2/conf.d/mydrupal6.conf

Alias /mydrupal6 /home/mydrupal6/default

<Directory /home/mydrupal6/default>
        Options +FollowSymLinks
        AllowOverride All
        order allow,deny
        allow from all

aanmaken database:
mysqladmin create mydrupal6 -uroot -p

snellere mysql
In het kort:
gebruik tmpfs, er is al een /run/mysqld
tmpdir = /run/mysqld
tunen mysql:

Aanmaken user mydrupal6 in mysql-admin

In .htaccess:
RewriteBase /mydrupal6

drupal clean urls
enable userdir (apache2)
  sudo a2enmod userdir
  service apache2 restart
enable rewrite
zet allowoverwrite all in userdir.conf
in .htaccess:
rewritebase /~gast/
rewritebase /

wrong length recordings, zie
Herstellen met:
mythcommflag --rebuild --file 27_20100411213500.mpg
Heb ook gedraaid:
perl /usr/share/doc/mythtv-backend/contrib/maintenance/
vinden van orphans:
perl /usr/share/doc/mythtv-backend/contrib/maintenance/ --dir=/home/mythtv/recordings
  Met 0.25 bestaat dit niet meer, zie
  Heb in src/mythtv een staan
  ook in /usr/local/bin. Die doet het, aanroepen ingelogd
  als mythtv
Repair mythtv database:
MySQL database is corrupt

If you have reason to believe that your MySQL database is corrupt, execute the following commands to attempt to repair it.

NOTE: Ensure that there are no programs accessing the database while you attempt to repair it. Make sure that all backend and frontend programs have exited.

mysqlcheck -r -umythtv -p<password> mythconverg

drupal php memory limiet is default 16M, zie /etc/php5/apache2/php.ini
Kan worden aangepast in drupal zelf:
ini_set('memory_limit',             '32M');

ubuntu compile kernel

mythtv error melding op druk systeem:
MediaRenderer::HttpServer Create Error
Lijk het opgelost te hebben door
gast@jukebox: .mythtv-0.0/:=-> diff config.xml config.xml.bak
<       <ServicePort>6574</ServicePort>

flicker screen op msi, zie
killall gnome-power-manager
beter: kernel parameter

naam van core dump:
zie man core
cat core.%p > /proc/sys/kernel/core_pattern

Programs can now optionally dump a core instead of only quitting when 
an error occurs (such as cannot allocate); 
this can be set using -fdump-core and overwritten 
by the run-time variable GFORTRAN_ERROR_DUMPCORE=YES|NO. 

tracker index corrupt
tracker-processes -r

doc to pdf:
abiword --to=out.pdf in.doc
unoconv in.doc

dpkg-reconfigure gdm

You could try DEBUG_PULSE_AUDIO_ALSA_EMULATION=1. Seems this is what the environment variable is for 0.23

uitzetten system-ready roffel drum:
sudo rm /usr/share/sounds/ubuntu/stereo/system-ready.ogg
op 12.04 is dit een link naar dialog-question.ogg

disable start-up en login sound mint:
sudo mv /usr/share/sounds/LinuxMint/stereo/system-ready.ogg{,.old}
sudo mv /usr/share/sounds/LinuxMint/stereo/desktop-login.ogg{,.old}
sudo mv /usr/share/sounds/LinuxMint/stereo/desktop-logout.ogg{,.old}

dvd's spelen niet op jukebox.
herinstalleren dvdnav? :
 sudo /usr/share/doc/libdvdread4/

gdm vervangen door kdm:
sudo dpkg-reconfigure kdm

correcte arrow-up (geen printscreen print screen:
Xephyr -query :2 -keybd ephyr,,,xkbmodel=evdev

sudo chattr +i ~/.recently-used.xbel   # enable
sudo chattr -i ~/.recently-used.xbel   # disable

adobe flash cookies verhinderen:

als root:

cd ~willem
rm -rf .adobe .macromedia
touch .adobe .macromedia
chmod a-rwx .adobe .macromedia

automatisch mounten usb: gconf-editor 

pulseaudio met xephyr
op primaire login: in pulseaudio preferences:
Network access: vink Make discoverable PulseAusio ....
Network Server: vink Enable network access to local ....
                unvink Allow other machines on the LAN to discover ...
                vink Don't require authentication
Op jukebox: primaire login is mietje. Het zaakje werkt pas na:
killall pulseaudio
door mietje.
Heb dit commando opgenomen in xephyr-start.real
Er gaat ook iets mis met de volume settings:
amixer -Dpulse set Master 100 on
is goed. 70% mute het geluid. Opgenomen in xephyr-start.

onder welke tty draait X:
  ps -o tty h -C Xorg

startup applicaties starten niet:
  kijk of je sessie gnome is, en niet failsafe gnome

backup mysql: automysqlbackup
    mysqldump -u [username] -p [password] [databasename] > [backupfile.sql]

          o [username] - this is your database username
          o [password] - this is the password for your database
          o [databasename] - the name of your database
          o [backupfile.sql] - the file to which the backup should be written.

registreer php-cgi als exectueerder van .php:
  echo ':PHP:E::php::/usr/bin/php-cgi:' > /proc/sys/fs/binfmt_misc/register
Wordt geregeld in /etc/init.d/binfmt-support via:
  cat /var/lib/binfmts/php


amarok mp3
amarok pulseaudio
  installeer phonon-backend-gstreamer en kies default in playback

mkl fftw3 in octave:

synchroniseren rsa key sleutel:
login op master

drupal image verwijderen: zie
drupal max diepte menu: configure block

ugly fonts: /etc/fonts/local.conf

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<match target="font" >
<edit mode="assign" name="hinting" >
<match target="font" >
<edit mode="assign" name="hintstyle" >
<match target="font" >
<edit mode="assign" name="antialias" >

unrar: unrar x -r -o+ ../sara.rar

restore mysql database acc_sara :
mysql -u root -p acc_sara < acc_sara_13-04-2011_11-05.sql

drupal content type upload van de pagina systems/shared/attachments:

  admin->structure->content types->Documentatie pagina(manage fields)->
     edit image->vul 'allowed file extensions' in

sudo sfill -fllzv .

alsa version: cat /proc/asound/version
alsa restart: sudo alsa force-reload

Inbelnummers telefoon:  Die zou het moeten doen!
  06760 - 01234
  Voer als gebruikersnaam in. 
  Het wachtwoordveld mag leeg blijven
  Stel het nummer +31 20 7155593 in als inbelnummer.
  Voer als gebruikersnaam in. 
  Het wachtwoordveld mag leeg blijven

Bluetooth en mobieltje:
  sudo apt-get install blueman

Drupal table of contents: de hide/nohide toc verschijn na het
  aanvinken van 'table of contents' in het modules menu, bij
  input filters

openmpi checkpoint
  mpiexec -am ft-enable-cr -n 2 ./a.out
openmpi btl tcp openib
  mpirun --mca btl ^tcp,openib

time  ( mencoder MVI_1821.AVI \
-oac copy \
-ovc lavc -lavcopts vbitrate=700:autoaspect \
-vf "crop=$cropflags",scale=-2:-1 \
-msglevel all=4 \
-of avi -ofps 25 -o n.avi >/dev/null 2>&1 )

time  ( mencoder MVI_1821.AVI \
-oac copy \
-ovc lavc -lavcopts vbitrate=700:autoaspect=msmpeg4 \
-vf "crop=$cropflags",scale=-2:-1 \
-msglevel all=4 \
-of avi -ofps 25 -o o.avi >/dev/null 2>&1 )

mencoder lavc vs xvid:

dial up networking bluetooth
hcitool scan
sdptool browse 00:21:09:E1:5C:6C

mencoder increase volume

mencoder in.avi -noskip -mc 0 -oac mp3lame -lameopts vol=10 -ovc copy -o out.avi

glx intel
sudo apt-get purge nvidia*
sudo apt-get install --reinstall xserver-xorg-video-intel  libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg
sudo update-alternatives --remove gl_conf /usr/lib/nvidia-current/

xdmcp vnc xfs:
ssh -f -L 5900:localhost:5900 gast@jukebox \
        x11vnc -safer -localhost -nopw -once -display :0 \
        && sleep 5 \
        && vinagre localhost

ssh doorloggen:
  ssh -t -X ssh -X wheezy

ssh disable authenticity:
  ssh -o StrictHostKeyChecking=no host
Failed to contact configuration server bij opstarten gvim:
sudo rm -rf ~/.dbus
mkdir ~/pulse-backup && cp -r ~/.pulse ~/.asound* /etc/asound.conf /etc/pulse -t ~/pulse-backup/
$ rm -r ~/.pulse ~/.asound* 
$ sudo rm /etc/asound.conf

sudo apt-get install libasound2-plugins padevchooser libsdl1.2debian-pulseaudio
sudo apt-get remove --purge libflashsupport flashplugin-nonfree-extrasound

bootable usb from iso

gnome keyring voor subversion:
De rest default
  2*: store-passwords = yes
of comment uit
  2*: store-passwords = no

subversion tag branch
  $ svn copy \
      -m "Tagging the 1.0 release of the 'calc' project."

usb automount:

ethtool -s eth0 speed 100 duplex half autoneg off

nfs:  no_root_squash

pulseaudio naar server:
  export PULSE_SERVER=jukebox

problemen hangende left-mouse kleintje
  rmmod psmouse (hierdoor werkt rouchpad niet meer, maar externe muis wel)

firefox pulseaudio:
  in /etc/firefox/firefoxrc:



    64-bit: apt-get install ia32-libs
    sudo ./setupwfc
    ldd /usr/lib/ICAClient/wfcmgr
      en los de 'not found' libraries op, bijvoorbeeld
    sudo aptitude install libmotif3
    ls -al /usr/lib/*
    # if the latest version is, then
    32bits: sudo ln -s /usr/lib/ /usr/lib/
    64bits: sudo ln -s /usr/lib32/ /usr/lib32/
            sudo nspluginwrapper -i /usr/lib/ICAClient/

    Ik weet niet meer waar ik die lib32/ vandaan heb,
    in een 32 bit distributie zit-ie in libmotif3

    cp /usr/share/ca-certificates/mozilla/* /usr/lib/ICAClient/keystore/cacerts/ :
  Just install version 12.0 instead of 12.1. It is (still) available on Citrix site ( and works just fine.

  Or you can extract the package:

  dpkg -x icaclient_12.1.0_amd64.deb /some/folder
  mkdir /some/folder/DEBIAN
  dpkg -e icaclient_12.1.0_amd64.deb /some/folder/DEBIAN
  vi /some/folder/DEBIAN/postinst

  In line 2648, change the text between double quotes ("i[0-9]86") for "[0-9,x]86" an then run the following:

  dpkg -b /some/folder

  It will correct the bug in the postinst script that tries to figure out the architecture of your processor. The 'dpkg -b /some/folder' will then recompile (build) the package. All you need now is to install the recompiled package, which will be named after the folder you used to extract it. I just don't know why Citrix haven't done it yet, for it is a relatively old bug, and with a very simple solution.

  If you are not interested in doing the dirty job, just download the version I corrected from

  Hope I helped!

font optimalisering:

fonts vlc:  qtconfig (system/preferences/qt 4 settings. gebruik niet gtk+
                      gui style)
fonts amarok: systemsettings (system/preferences/system settings)

caching only nameserver: installeer bind9 en zet 
# zet in /etc/dhcp3/dhclient.conf 
# prepend domain-name-servers;
forwarders {

timezone time zone zetten:
cp /usr/share/zoneinfo/Europe/Athens /etc/localtime
sudo dpkg-reconfigure tzdata

Fonts en acroread: vaak vreemde fontsubstitutie.
Oplossen door de fonts uit een windows installatie
(WINDOWS/Fonts) te copieren naar /usr/local/share/fonts.
(normaal is deze directory leeg.
De arial* en verda* fonts lijken genoeg te zijn. 
Met meer fonts gaan er fontkeuzes in andere applicaties, zoals 
thunderbird, niet goed.
installeer ttf-mscorefonts-installer
en als-tie het dan nog niet goed doet:
cp /usr/share/fonts/truetype/msttcorefonts/* /usr/local/share/fonts
installeer ttf-mscorefonts-installer
herinstalleer acroread
acroread-fonts heb ik ook geinstalleerd, maar dat lost het genoemde
probleem niet op

jerky firefox: :
  1. Delete sessionstore*.js every time the freezes reappear, as I did. 
     The easiest way to navigate to the profile folder containing 
     sessionstore.js is by clicking on Help -> Troubleshooting Information -> 
     Open Containing Folder.
   2. Disable the session store altogether. This does not disable the history,
      just the ability to restore the previous session after a restart of 
      the browser. To do so, open about:config and set 
      browser.sessionstore.max_tabs_undo and 
      browser.sessionstore.max_windows_undo to 0.
  Er is geen sessionstore.js, maar 2 helpt misschien
    Type in "about:config" in Firefox (address bar) and enter 
    general.smoothScroll under filter. 
    Double click on general.smoothScroll to set it to true.
    Or else just install add-on smoothwheel.
    All that needs to be done is to add a line of code to the Firefox 
    userContent.css in the chrome folder. Check the official Mozilla 
    website that explains how to find that folder in various operating systems.

    Once located open the file in a text editor and paste the following lines 
    at the end of it. If you do not have a file that is named userContent.css 
    yet but one that is named userContent-example.css remove the -example part 
    of the file first and add the lines afterward. Firefox 3 has to be closed 
    for this.
    /* Smooth Scrolling Workaround: Disable Fixed Background Images on Pages */
body {
background-attachment: scroll !important;

backgrount wallpaper cannot change:

 The solution that worked for me, was to open dconf-editor, 
 and set the following to active:

kernel module compileren:

atomic nfs:
mkdir, O_EXCL

boot foxconn van usb:
in setup, kies 'boot', harddisk order of zoiets.
Zorg dat de flashdisk bovenaan staat

sudo apt-get autoremove*
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice
sudo apt-get install libreoffice-gnome
sudo apt-get install libreoffice-pdfimport
sudo apt-get install language-support-nl
sudo apt-get install language-support-en
sudo apt-get install language-support-fr
sudo apt-get install language-support-de
sudo apt-get install libhsqldb-java-gcj
sudo apt-get install libreoffice-help-en-gb
sudo apt-get install pstoedit
sudo apt-get install libreoffice-filter-binfilter
sudo apt-get install libreoffice-officebean
sudo apt-get install libmyodbc
sudo apt-get install libsqliteodbc tdsodbc mdbtools libmysql-java libpg-java
sudo apt-get install libjtds-java libreoffice-gcj libreoffice-report-builder
sudo apt-get install cli-uno-bridge

pulseaudio kwaliteit quality
mv .pulse punt.pulse
mkdir .pulse
cp -v /etc/pulse/* .pulse
veel opmerkingen: :
  E-MU 0404 USB has a default sample rate of 48KHz, 
  while PulseAudio has a default of 44.1KHz. 
  Once I set the sample rate in /etc/pulse/daemon.conf, the crackling is gone. :
   The PulseAudio sound server uses a timer-based audio scheduling 
   instead of the traditional interrupt-driven approach. 
   Timer-based scheduling may expose issues in some ALSA drivers. 
   To turn timer-based scheduling off, replace the line:

   load-module module-udev-detect 

   in /etc/pulse/ by:

   load-module module-udev-detect tsched=0

   Then restart the PulseAudio server.
   En dat loste het probleem op!


firefox latest:
sudo add-apt-repository ppa:mozillateam/firefox-stable

Betere ethernet driver voor doosje, ook dkms handleiding:
maar het werkt niet!
deze misschien wel:

burn dvd from iso:
growisofs -dvd-compat -Z /dev/hdd=/path/to/image.iso
play speel dvd:
gxine dvd:/volledig pad naar iso
  gxine dvd://home/willem/geen-backup/dvd/slist+rata/slistrata.iso
mplayer [-mouse-movements] dvdnav:// -dvd-device path-to-iso

mex matlab openmp:

download jpg jpeg
wget --no-parent --wait=10 --random-wait --limit-rate=100K --recursive --accept=jpg,jpeg --no-directories http://somedomain/images/page1.html

moonlight silverlight

sudo zonder passwoord:
sudo visudo
%admin ALL=(ALL) ALL

apt repair
sudo sh -c 'zcat /var/backups/dpkg.status.1.gz > /var/lib/dpkg/status'
software-center problemen opgelost met:
sudo chmod a+r /etc/dpkg/dpkg.cfg.d/multiarch
sudo chmod a+r /var/cache/apt-xapian-index/index.1/*
sudo chmod a+r /var/lib/apt-xapian-index/*

Wireless Security: WPA & WPA2 Enterprise
Authentication: Protected EAP (PEAP)
Anonymous identity: <leeg laten>
CA Certificate: leeg
PEAP Version: Version 0 (of Automatic)
Inner Authentication: MSCHAPv2
User Name:
Password: ka paswoord

eduroam doet het niet op 13.04, 13.10, zie
Oplossing: verwijder in
de regel:
(of installeer een certificaat)

eduroam android
-> geen oplossing maar veel klachten:
-> idem

Op wonderbare wijze doet hij het nu ???

gvim geen menubalk! oplossing:
rm ~/.gnome2/Vim

gvim WARNING **: Unable to register window with path
  alias gvim='UBUNTU_MENUPROXY= gvim'

disable global menu :
  sudo apt-get remove appmenu-gtk3 appmenu-gtk appmenu-qt
  In your Firefox, go to “Tools -> Add-ons -> Extensions”. 
  Disable the “Global Menu Bar Integration” extension (You can’t un-install it).

apc instellingen in /etc/php5/conf.d/apc.ini, zie


prace wiki

11.10 slow shutdown:
  The report does mention an edit one can make to /etc/init/network-manager.conf, ie. add as shown
  stop on runlevel [06]  
  Dat werkt.

Ongewenste cookies van google:

publieke nameserver:


svn relocate:

svn --relocate switch old-url new-url

svn diff met vorige versie
svn diff -r PREV:COMMITTED params.F90
svn diff local met repository
svn diff -r HEAD params.F90
svn diff twee revisies:
svn diff -r 4421:4422 wave_directions.F90

acroread medibuntu

Thunderbird theme: nautipolis is ok.

installatie python2.7.2
./configure --enable-unicode=ucs4
import warnings
 import numpy

custom willekeurige applicatie bij file:

mp4 voor android

iconv -f ISO-8859-1 -t utf-8 tv_grab_nl_py.conf > utf8

fourier transforms


voortreffelijke unix introductie, alleen jammer van csh ...
vi tutorial:
bruikbare unix introductie:

svn: Aborting commit: '/home/willem/src/throttle' remains in conflict
svn resolved throttle

mythtranscode: No more queue slots!
hangen ... ?

grub grub2
timeout zetten:
toevoegen aan /etc/grub.d/40_custom:
set timeout=3
#--- en dan update-grub ---
kernel parameter grub grub2
vim /etc/default/grub
  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash foo=bar"
sudo update-grub

chroot mount dev grub
mkdir sda1
mount /dev/sda1 sda1
mount --bind /dev sda1/dev
mount --bind /dev/pts sda1/dev/pts
mount --bind /proc sda1/proc
mount --bind /sys  sda1/sys
chroot sda1 bash

large grote disk 2 tbyte gparted

initialiseren mythtv database
mysql -u root -p < /usr/share/mythtv/sql/mc.sql
zcat mythconverg_2012-03-30_02h30m.Friday.sql.gz | mysql -u root -p

experiabox vast ip adres voorbeeld jukebox
in experiabox ( thuisnetwerk->apparaten
  verwijder jukebox
Op jukebox /etc/network/interfaces

auto eth0
iface eth0 inet static

/etc/init.d/networking restart
Op experiabox: vindt apparaat met jukebox's mac adres
klik configureren
nieuwe naam:  jukebox  (was mac)

torus, n-dim
  elke node heeft n coordinaten: 0,0,0....,0 - a(0),a(1), ... a(n-1)
  Buren van i(0), i(1) ... i(n-1) zijn:
  i(0)+1, i(1), ... i(n-1)
  i(0)-1, i(1), ... i(n-1)
  i(0), i(1)+1, ..., i(n-1)
  i(0), i(1)-1, ..., i(n-1)
  i(0), i(1), i(2), ... , i(n-1)+1
  i(0), i(1), i(2), ... , i(n-1)-1

  +1 en -1: wrap around
  dus 2*n pootjes per node.
ubuntu 12.04 shutdown:
  1. sudo gedit /etc/default/grub
  2. Find where it says, GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  3. Change this to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
  4. sudo update-grub
  -- werkt. wel met grub 1.xx in menu.lst uiteraard

langzame citrix:
  ln -sf /dev/urandom /dev/random
  Werkt! 2012-04-28

Thunderbird exchange
  add-ons: 'exchange 2007/2010 ...' en lightning

cuda nvcc gcc: compatible only with gcc<= 4.4:
  in de directory van nvcc:
  ln -s /usr/bin/gcc-4.4 gcc
  ln -s /usr/bin/g++-4.4 g++

samba nmbd wil niet starten
  verander workgroup in /etc/samba/nmbd.conf
  testparm -s --parameter-name='disable netbios' (gebruikt in
  /etc/init/nmbd.conf) geeft exit code 1 als workgroup gelijk is
  aan netbios name. Wat dat ook mag betekenen...

samba printen. Eeen heel gedoe, maar ook
  sudo cupsctl --share-printers

sudo /usr/share/doc/libdvdread4/

allow multiple definitions in ld: -zmuldefs of --allow-multiple-definition:
gcc -Wl,--allow-multiple-definition hello.c a.c b.c
let op: dit werkt niet met, wel met ld.bfd
voor een configure script:
export LDFLAGS='-Wl,--allow-multiple-definitions'

java runtime options environment
export _JAVA_OPTIONS="-Xms256m -Xmx512m"

msi wind: in syslog: [sdb] Test WP failed, assume Write enabled
cat <<eof > etc/modprobe.d/ums-realtek-usb.conf
ums-realtek ss_en=0
# to prevent [sdb] Test WP failed, assume Write Enabled in syslog

1024x600 resolutie :
  Firstly, Open terminal and type:

    sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

    Followed by sudo apt-get update
    And sudo apt-get install xserver-xorg-video-intel

  This will install INTEL latest drivers. 
  Just reboot once installed and look for changes that have taken place. 
  If none, go to System Settings and see if you got the correct 
  display settings to change the resolution.

  If this does not work then try this testing PPA repository:

  Open terminal type in:

    sudo add-apt-repository ppa:intel-gfx-testing/ppa
    Followed by sudo apt-get update

  Once you are done, reboot and try to change resolution you are looking for

ubuntu naar xubuntu:
  sudo apt-get install xubuntu-desktop
  Log out, log back in, selecting Xubuntu/XFCE as my interface

  Chill out for a few days. See that things still work. 
  There will be too many applications (eg there will be both Gnome's 
  and XFCE's default applications available but you want to make 
  sure you'll have everything you need when you remove Gnome/Unity/Whatever.

  Clean up.

  sudo apt-get remove ubuntu-desktop
  sudo apt-get autoremove # removes dependencies of ubuntu-desktop

ka windows share
  server: ka-intern-cifs2
  share: users$
  domain: KA

fglrx driver amd radeon :
    sudo apt-get install dh-make dh-modaliases execstack
    sudo sh --buildpkg Ubuntu/precise
    If it is required, a package manager window will open and install 
    some dependencies and after a while create the following four .deb packages:


    sudo dpkg -i *.deb
    sudo aticonfig --initial

    gksudo amdcccle

gnome classic ubuntu 12.04 panel
  alt-rightclick om te verwijderen etc.
  of super-alt-rightclick

resize repartition gparted

index flash flv:

flush pipe in shell:
  man stdbuf

nvidia drivers: zie

        sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
        sudo apt-get update
        sudo apt-get install nvidia-current

realtek r8168 driver

gstreamer autoaudiosink pulsesink werkt niet op doosje, daarom geen
banshee, totem, ...
  /system/gstreamer/0.10/default/{audiosink,chataudiosink,musicaudiosink} =

ubuntu 12.04 disable screensaver:
  gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

fiets reparatie rem remmen los uithalen wiel etcetera


ubuntu 12.04 unity full screen
  CompizConfig Settings Manager
   Utilities > Workarounds > Legacy Fullscreen support

Uitschakelen ( disable ) system pop-ups apport:
   gksu gedit /etc/default/apport
   and change "enabled" from "1" to "0", then save the file.
   sudo service apport stop
   You can always re-enable it later on if you want, by changing 
   "enabled" from "0" back to "1", or you can enable Apport 
   temporarily, using the following command:
   sudo service apport start force_start=1

Force fsck on reboot:
  sudo touch /forcefsck

Garbled splash 12.04
 Geen resultaat:
   1)Edit: /etc/default/grub

   2) Update GRUB by:
   sudo update-grub

 Niet geprobeerd:
 gksudo gedit /etc/default/grub
  and change this line:
  to this:
  Then save and exit the document.
  Then do:
  sudo update-grub

onleesbaar unreadable consolefont: werkt op jukebox
  in /etc/grub.d/10_linux
  comment uit 
  cat << EOF
  gfxmode \$linux_gfx_mode

tweak 12.04
  sudo apt-add-repository ppa:tualatrix/ppa
  sudo apt-get update
  sudo apt-get install ubuntu-tweak

  non-blocking collectives
  neighbourhood collectives
  matched probe (ivm threaded MPI)
  MPI Tool: internal state available
  C Const correctness
  Updated One sided
  Shared memory ?
  Noncollective communicator creation?
  Nonblocking MPI_Comm_dup
  Fortran interface improvement ?

vpn ubuntu 12.04
    sudo nano  /etc/avahi/avahi-daemon.conf
    Change the following line:
    Restart AVAHI:
    sudo service avahi-daemon restart

mythtv keeps restarting
   in mythfrontend:
    [ "$RET" = "0" -o "$RET" = "1" -o "$RET" = "130" -o "$RET" = "254" ]
    130 is door mij toegevoegd.

icon toevoegen aan launcher panel:
 sudo apt-get install gnome-panel
 gnome-desktop-item-edit ~/Desktop/ --create-new
 klik het desktop ding, en meld aan launcher hem te houden. Als het ware.

dell latitude broadcom bcm4313 slow wireless
  sudo modprobe -r wl
  sudo modprobe wl

nfs slow mount, verhelpen met
  in fstab

mythtv ppa repository
  sudo apt-add-repository ppa:mythbuntu/0.25

vermijden riff chunks in avi:
  mencoder -noodml ....

encryption key 

printer instellen
  device uri smb://
  5 trays


cgi-bin tutorial

curl tutorial

cgic tutorial:

cgi specs:

repair reparatie rotte apt database:

mysql ext4 performance :
    mount with barrier=0 :
    RUN: sudo tune2fs -o journal_data_writeback /dev/sxyz
    NB: voor data=writeback is de tune2fs noodzakelijk, anders geen boot
    kan ook met een kernel parameter, zie man mount

gvim edit existing foreground focus
 - cp /usr/share/vim/vim73/macros/editexisting.vim .vim/plugin
 - in compizconfig: general -> general options -> focus & raise behaviour -> focus -revention level -> off (was low)

r8169 nfs :
  A bit of googling revealed that this has been a known issue 
  with the r8169 driver for several years. 
  The device will randomly fail autonegotiation and refuse to 
  come up, sometimes after weeks of working fine. 
  The fix is to use ethtool to disable autonegotiation 
  sometime between loading the driver module and when 
  Network Manager tries to bring it up. I did this by adding 
  the new file /etc/modprobe.d/r8169.conf with the following:

  # turn off autonegotiation on the r8169 ethernet driver
  install r8169 /sbin/modprobe --ignore-install r8169 && /sbin/ethtool -s eth0 autoneg off
  maar... dit heeft tot gevolg dat ethernet op 10Mbit draait.
  Aanpassing aan het begin van /etc/network/if-up.d:
  doet het beter.

matlab serialize

mysql set root password

  /etc/init.d/mysql stop
  mysqld_safe --skip-grant-tables &
  mysql -u root
     use mysql
     update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
     flush privileges;
   /etc/init.d/mysql stop
   /etc/init.d/mysql start

mysql grant user access to database

  grant all privileges on proeftuin.* to gast@localhost;
  grant all privileges on proeftuin.* to 'gast'@'%';
  flush privileges;

  Het lijkt erop dat dit niet met phpmyadmin kan worden gedaan.

acread default:
  in /etc/gnome/defaults.list:
  application/pdf=acroread.desktop    (not evince)

install maclaws aosp
  copy rom naar sdcard
  uitzetten en boot recovery: tegelijk home en power
  Now we Need to Wipe Data/ Factory Reset our Phone by Selecting the Option and then Select Yes.
  Now we need to Wipe Cache Partition by Selecting the Option and then Select Yes
  Now we need to Go to Advanced and then Select Wipe Dalvik cache and select Yes  *** ik zie geen advanced
  Now we need to Install the ROM by selecting the Option and then Select the ROM file. ******** Ik zie de rom file niet.

mic xeon phi programming

vpn: fortisclient  server: poort: 10443 pw: rsa token

pvfs orangefs romio

ssh zonder greeter:
  ssh -o Loglevel=Error ....

edit main menu surfsara sara website
  structure -> menus -> main menu: list links; add link

- even stilstaan bij Peter Muller
- eerste aanleiding: uitnodiging om lid te worden
  club 51 was stervende, dan hebben ze me nodig
- Mensen lopen achter hun hormonen aan
- Hoge hakken korte rokjes: verstoort balans
- Oplossing: geen gemengde club
- Respect voor het feit dat er andere meningen bestaan
- Aardig om te zien dat je niet de enige gestoorde bent
- Voor de vrouwen prettig: een vrije avond

malbolge sherlock holmes elementary programmeertaal

mythtv server

     GUI width (px): 632
    GUI height (px): 544
    GUI X offset: 55
 Mythfrontend: Utilities/Setup -> Setup -> TV Settings -> Playback:
         Vertical over/underscan percentage: 8
    Horizontal over/underscan percentage: 8
    GUI Y offset: 20
    You can increase the IVTV buffers by adding the following line to /etc/mythtv/modules/ivtv:
    options ivtv yuv_buffers=32 mpg_buffers=16 vbi_buffers=16 pcm_buffers=16 dec_osd_buffers=2
    Echter, dit is een oude regel, modinfo ivtv vertelt dat je moet doen:
    options ivtv enc_mpg_buffers=16 enc_yuv_buffers=20 enc_pcm_buffers=640 debug=3
    Ik heb twee Hauppage 500 kaarten, mogelijk gezien als 4 pvr 150 kaarten

pannekoeken 't Hoes van Hol-lan, Oud Aalden 11, Aalden,

check md5sums debian installatie:
  apt-cache clean
  debsums -s

vpn command line
  sudo nmcli con up id kantoor

vpn settings
  type: pptp
  vpn: gateway:
       user name: willem
       paswoord: ka paswoord
       nt domain: KA
         alleen MSCHAPv2 aanvinken
         V use point-to-pointe encryption (MPPE)
         Security: all available
         V allow stateful encryption
         V allow BSD data compression
         V allow Deflate data compression
         O use tcp header compression

         V send PPP echo packets
  ipv4 settings
     method: automatic (vpn)
     V available to all users

       V use this connection only for resources on its network

find . -iname '*.jpg' -o -iname '*.jpeg' | shuf | feh  -Z -D 5 -Y -g 1920x1080 -B black --title %f -f -

vga modes
Colour depth 640x480 800x600 1024x768 1280x1024 1400x1050 1600x1200
8 (256)         769     771     773     775     
15 (32K)        784     787     790     793     
16 (65K)        785     788     791     794     834     884
24 (16M)        786     789     792     795     
jukebox: 773
box:     771
in /etc/default/grub:
en dan:
sudo update-grub

double precision, promoot constants naar real*8:
ifort -r8
gfortran -fdefault-real-8

openvpn pptp

  installeer make-googleearth-package
  sudo dpkg -i googleearth_.........deb
  sudo rm /usr/lib/googleearth/ # om foutmelding 
                    'invalid http request' te verhelpen

mpi-io test

dvdrip dvd rip
  ghb (handbrake)

newgrp in shell script 
  sg group -c command

  mtp-detect | grep idVendor
  mtp-detect | grep idProduct

jukebox nvidia:
  nvidia-173 nvidia-common nvidia-settings

smbclient // -Ucarla

iphone fotos naar normale grootte brengen:
  mogrify -scale 30% -quality 92 *
  mogrify -scale 1024x1024 -quality 92 *

unity flashing process started tkinter

export MALLOC_CHECK_=1

locales LC_TIME
  man locale-gen
  locale-gen nl
  eenvoudiger: system settings -> language support


  module load intelcs

calibre not recognised as an app for epub by nautilus.
Edit the file /usr/share/applications/calibre.desktop.



  To be

  Exec=’/usr/bin/calibre’ %f

  and save.

  Now nautilus should give you the option of selecting calibre from
  the list of applications.  Right click on a .mobi or .epub file
  and select properties.  Select the “Open with” tab and select the 
  calibre application and click either “add” or “set as default”.

Who Is Killing the Great Chefs of Europe?

loodgietersartikelen warmteservice

unity launcher application:
#!/usr/bin/env xdg-open
[Desktop Entry]

  sleep deze naar de launcher.
 php errors on/off
   in /etc/php5/apache2/php.ini
   display_errors = On
   display_errors = Off

ubunto cdrom device:
  sudo lshw -C disk

font problemen xfig:
  LANG=C xfig

printen op sara:
  device uri: ipp://
  of          ipp://
  ppd file downloaden van xerox, type 9302. Hij staat
  in $HOME/ppds
  of pin-printen:
  kies windows smb printer
  device uri: smb://KA/
  authenticatie: KA\willem en KA-paswoord

  packages pyqtgraph python-opengl 

ssd of hdd:
  cat /sys/block/sda/queue/rotational
  1 -> hdd
  0 -> sdd

panel reset:
  gconftool --recursive-unset /apps/panel
  mint: gsettings reset-recursively org.cinnamon

create dvd from video_ts:
  If you want to do the job from command line you need your VIDEO_TS directory and an empty AUDIO_TS directory inside a folder (named "DVD" or similar).
Then use command 
  genisoimage -dvd-video -v -o DVD.iso DVD

android settings sara email
domain\username \
password: ka paswoord

imce: directory onder sites/default/files

plaats folder met ttf fonts in /usr/share/fonts/truetype
(let op permissies)
sudo fc-cache -f -v

fontforge asenine bold
  weight: 12 em  scale Y: 103% Transworm X too: uit

forward email to smtp server, zie src/sendmail-smarthost

drupal aggregration

mount android

android smartphone location aware
android smartphone lokatie bewust

ubuntu windows 8

cups windows:

mpi fons van hees:

  nmcli dev list iface eth1 | grep IP4
bind9 cache:
  rndc dumpdb -cache
  This will create a file called named_dump.db in the /var/cache/bind/ directory

onafhankelijke independent firefox sessie session:
  fifrefox -no-remote

subdomain search en andere tools:

14.04: foutmeldingen bij booten:
systemd-udevd[1423]: failed to execute '/lib/udev/socket:@/org/freedesktop/hal/udev_event' 'socket:@/org/freedesktop/hal/udev_event': No such file or directory
  oplossing: apt-get remove hal
  dit verwijdert ook ivman

bzr launchpad-login willem-sara
bzr launchpad-login wvermin

upgrade the debian way:
# Upgrade all the packages to the latest versions
sudo aptitude update
sudo aptitude safe-upgrade

# Update our sources, save the original as /etc/apt/sources.list.ORIG
# This step is REQUIRED, otherwise the instructions below will not upgrade a
# single package.
# Change karmic/lucid to your required releases eg, dapper/hardy, hardy/lucid,
# jaunty/karmic, etc
sudo sed -i.ORIG 's/karmic/lucid/g' /etc/apt/sources.list

# Backup the /etc/apt/sources.list.d/ folder and create an empty one.
# This will disable all Third Party/Launchpad PPA repositories.
# These repositories can be re-enabled after a successful upgrade.
sudo mv /etc/apt/sources.list.d/ /etc/apt/sources.list.d.ORIG/
sudo mkdir /etc/apt/sources.list.d/

# Upgrade your box
sudo aptitude update
sudo aptitude safe-upgrade
sudo aptitude full-upgrade

Asking for cache data failed ...
Oplossen? met
 modprobe -r ums_realtek
Echter, zie

disable crash reports:
  in /etc/default/apport :

gnome classic toestanden

keyboard zonder rare quotes:
  generic 105-key (Intl) PC
  English(US, with euro on 5)
  in de file /etc/default/keyboard:


  apt-get install tumbler ffmpegthumbnailer

jumping firefox workspaces prevent:
xfconf-query -c xfwm4 -p /general/activate_action -s none
  bring switch none

shortcut hotkey: autokey

netcdf print deel matrix:
ncks -s "%lf\n" -H -C -dglobaltime,299 -dglobalx,20 -v zs > bla

firefox unauthorized access
Enter about:config into the firefox address bar 
(confirm the info message in case it shows up) 
& search for the preference named 
double-click it and change its value to true.

mythtv slow recordedseek
/usr/bin/mysql_convert_table_format --user=root --password=XXX
--type=innodb mythconverg recordedseek
bovenstaande doet het niet. Wel werkt:
echo 'alter table recordedseek engine=innodb;' | mysql -uroot -pxxx mythconverg

intel mpi in slurm
$ cat


srun hostname -s | sort -u >mpd.hosts
source /opt/mpi-4.0.026/bin64/

# Example 1
# Launch application using hydra process manager
mpiexec.hydra -f mpd.hosts -n $SLURM_NPROCS -env I_MPI_DEBUG 5 ./hello

# Example 2
# Launch application using MPD process manager
mpdboot -n $SLURM_NNODES -r ssh
mpiexec -n $SLURM_NPROCS -env I_MPI_DEBUG 5 ./hello

2. submit a job using sbatch command. For instance,
$ sbatch -n 4

android vervanging replicant

svn propset svn:executable yes makeincludes.exe
svn propdel svn:executable makeincludes.F90
svn propset svn:keywords "Id" debug.h

Vergroot griphandles:
To modify Ambiance to have a wider margin, open /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml and increase the values of the following properties:

<distance name="left_width" value="1"/>
<distance name="right_width" value="1"/>
<distance name="bottom_height" value="1"/>


gnome-terminal settings: 
  gconftool-2 --dump '/apps/gnome-terminal' > gnome-terminal-conf.xml
  gconftool-2 --load gnome-terminal-conf.xml

virtual box shared folder
mount -t vboxsf [-o OPTIONS] sharename mountpoint

merge combineer pdf:
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf *.pdf

wget zonder parents:

wget --no-parent -rk


ffmpeg -> avconv (libav-tools)

sound geluid uit video:
avconv -i VIDEOFILE -acodec libmp3lame -metadata TITLE="Name of Song" OUTPUTFILE.mp3

vertical flip upside down rotate 180 avconv
 avconv -i a.mp4 -vf vflip c.mp4

motd lisa:
sudo /usr/sara/sbin/ lisa

gnome panel kleuren
killall gnome-panel

vergelijking fortranc c++ matlab python

ipython notebook
start ipython met
ipython qtconsole

switch tussen mpich en openmpi
update-alternatives --config mpi 
update-alternatives --config mpirun

git restore file:
vind filenaam:
git checkout
git checkout filenaam

git strange characters:
git config --global core.pager "less -r"

Initieer een git directory XXXXX:
git init
git remote add origin
echo "Willem Vermin" >> contributors.txt
git add contributors.txt
git commit -m 'Initial commit with contributors'
git push -u origin master

grep print alle woorden:
grep -o -E '\w+'

touchpad dell inspiron
probleem is dat toetsen ook werken als mousepad
mkdir -p /etc/X11/xorg.conf.d
cp  /usr/share/X11/xorg.conf.d/50-synaptics.conf /etc/X11/xorg.conf.d
edit /etc/X11/xorg.conf.d/50-synaptics.conf: uncomment de regel
#        Option "AreaBottomEdge" "82%"

ssd optimalisatie

indicator applet complete crasht bij login. Remedie:
gsettings reset-recursively com.canonical.indicator.datetime
gsettings reset-recursively com.canonical.indicator.session

sound pulseaudio logarithmic exponential volume control
symptoom: volume is praktisch 0 bij 85-90 % volume.
load-module module-udev-detect
load-module module-udev-detect ignore_dB=1

scribus-trunk file menu missing
  sudo apt-get remove appmenu-qt5
  Misschien beter:

  in /etc/profile.d aanbrengen:
  # wwvv  zie

laptop doosje als camping accesspoint:
   nm icon, edit, edit wired connection
   ipv4 settings: staat normaal op Automatic(DHCP). Verander dit
   in 'Shared to other computers'
   Zet in nm menu 'Wired connection 1' op connected.

Freeze package on hold prevent update voorbeeld scribus-trunk
echo "scribus-trunk hold" | sudo dpkg --set-selections
en maak hem weer installeerbaar:
echo "scribus-trunk install" | sudo dpkg --set-selections

Welke nvidia driver:
sudo ubuntu-drivers devices

ziggo hotspot instellingen:
wifi security:
  security:  WPA & WPA Enterprise
  Authentication: Protected EAP (PEAP)
  CA certificate: ziggo-public-rootca--g1.der
  PEAP version: Automatic
  Inner authentication: MSCHAPv2

  Certificaat staat op:
  Download dit certificaat en geef het hele pad op achter CA certificate.

system font: 
  gsettings set org.gnome.desktop.interface font-name 'Ubuntu 10'
  kan ook met deconf-editor
  gnome-tweak-tool eigenlijk nog handiger

pulseaudio equalizer:

google index url page:

brother printer gerard abrahams DCP-J552DW

PDF print cups cups-pdf apparmor:
   als er home directories zijn buiten /home, bijvoorbeeld /homes/home/
   dpkg-reconfigure apparmor
   en volg de aanwijzingen

run java .jar file direct:
   sudo apt-get install binfmt-support

Screen garbled horizontal scroll in java app, oplossing:
   export _JAVA_OPTIONS='-Dsun.java2d.xrender=true'

multilib -m32 (ook voor gcc)
  sudo apt-get install g++-multilib
  sudo apt-get install libc-dev-i386

Geen background, mime types in de war: herstellen met
  apt-get install --reinstall shared-mime-info
  Probleem werd veroorzaakt door na te laten 
    umask 022
  te doen alvorens 
    sudo update-mime-database /usr/share/mime
    sudo update-desktop-database /usr/share/applications

dhcp server doet het niet: forceer client een ipadres in te stellen:
In /etc/dhcp/dhclient.conf:
timeout 10;
lease {
interface "eth0";
option subnet-mask;
renew 2 2022/1/1 00:00:01;
rebind 2 2022/1/1 00:00:01;
expire 2 2022/1/1 0:00:01;
   renew never
   rebind never
   expire never

   mag denk ik ook

pulseaudio piccolo output device:
   Creative ...  AudioPCI128 Analog Mono
   Kaart kapot?

wget ignore robots.txt:
  wget -e robots=off

urlencode urldecode:
  sed -e's/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g'

unicode naar utf8:
  ascii2uni -Z "\u%04X" -q

python3 unicode \u00e4:
  waarin a een latin1 gecodeerde string is met \u00e4 etc

out of order messages in syslog:
  in /etc/rsyslog.conf:
     $RepeatedMsgReduction off
  zou moeten werken

plaats windows op workspace: ccsm -> place windows fixed window placement

drupal after too many login attemps:
  verwijder alle rijen in table flood

drupal installatie op geranium:
   sudo apt-get install apache2
      test de url: geranium.local, moet de Apache2 Ubuntu Default Page
   sudo apt-get install php5
      test: maak /var/www/html/phpinfo.php:
      en test de url: geranium.local/phpinfo.php, moet 
        de php info leveren
   sudo apt-get install mysql-client
   sudo apt-get install mysql-server
      een paswoord voor de root user wordt gevraagd te zetten
      test op geranium:
        mysql -u root -p -h localhost
          moet de mysql prompt geven
   sudo apt-get install phpmyadmin libmcrypt-dev mcrypt
      Kies apache2 alse server om voor te configureren
      Kies 'yes' voor configuratie met dbconfig-common
      Het root paswoord voor mysql wordt gevraagd
      Er wordt gevraagd een paswoord te kiezen voor het
      gebruik van phpmyadmin
      sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
   sudo a2enconf phpmyadmin
   sudo php5enmod mcrypt
   sudo /etc/init.d/apache2 reload
     Test: url geranium.local/phpmyadmin

   sudo a2enmod userdir
   service apache2 restart

     ingelogd als willem:
  umask 022
  mkdir public_html
  echo 'hallo daar' > public_html/index.html
     Test: url geranium.local/~willem
       moet 'hallo daar' laten zien

  edit /etc/apache2/mods-enabled/php5.conf
    Volg de instructies in het comment aan het eid van dit bestand
    en save.
  sudo service apache2 restart
    ingelogd als willem:

    echo '<?php phpinfo(); ?>' > ~/public_html/phpinfo.php
    url geranium.local/~willem/phpinfo.php
    moet phpinfo scherm geven

  Foutmeldingen php zichtbaar maken:
   cd /etc/php5/apache2/
   cp php.ini php.ini.orig
   cp /usr/share/php5/php.ini-development php.ini
   sudo service apache2 restart
    ingelogd als willem:
    echo '<?php apekool(); ?>' > ~/public_html/apekool.php
    url geranium.local/~willem/apekool.php
       moet een foutmelding geven

  Drupal installatie, database ratrabbit, in ~willem/public_html/ratrabbit
  De url wordt geranium:8081

  Aanpassen apache:

     cd /etc/apache2/sites-available
     cp 000-default.conf ratrabbit.conf
     edit ratrabbit.conf :
         <VirtualHost *:80>
         <VirtualHost *:8081>
         ServerAdmin webmaster@localhost
      de volgende regel:
         ServerName geranium:8081

         DocumentRoot /var/www/html
         DocumentRoot /home/willem/public_html/ratrabbit
         <Directory />
           Options FollowSymLinks
           AllowOverride All
    cd /etc/apache2/mods-enabled
    edit userdir.conf
       AllowOverride FileInfo AuthConfig Limit Indexes
       AllowOverride All

    Clean urls:
       a2enmod rewrite
       service apache2 restart
    edit /etc/apache2/ports.conf
         Listen 80
      voeg toe:
         Listen 8081
  a2ensite ratrabbit
  service apache2 reload
     ingelogd als willem:
     cd ~/public_html
     umask 022
     mkdir ratrabbit
     cd ratrabbit
     echo '8081' > index.html
       url geranium.local:8081
       moet '8081' laten zien

   Installeren ftp server:
      sudo apt-get install ftpd

   Installeren drupal:
      Ingelogd als willem:
      umask 022
      mkdir ~/drupals    # om drupal sources etc in te bewaren
      cd drupals
      tar xf drupal-7.41.tar.gz
      rm ~/public_html/ratrabbit/index.html
      cd drupal-7.41
      cp -r * ~/public_html/ratrabbit
      cp .htaccess ~/public_html/ratrabbit
        url geranium.local:8081
          Moet start configratiescherm van drupal te zien geven
          NOG NIET configureren
   creeer mysql user ratrabbit en database ratrabbit met
    url geranium.local/phpmyadmin
     klik tab Users -> Add user
       User name: ratrabbit
         select Local
       Password:  kies en paswoord voor user ratrabbit
       Onder database for user, kies 
         'Create database with same name and grant all privileges'
       klik 'Go'  (rechts onder)
       In de linker kolom moet nu database 'ratrabbit' staan,
       en bij Users Overview moet ook 'ratrabbit' staan

   Configureren drupal:
      url geranium.local:8081
      Volg de instructies

   Installeren ckeditor
     installeer ckeditor module op de normale manier

     Ga naar, kies Full Package
     en download
     Plaats de zip file in ~/drupals
     umask 022
     cd ~/public_html/ratrabbit/sites/all/libraries
     unzip ~/drupals/

     Configureer de ckeditor module: global settings->edit
     Verander in Advanced settings 'Path to Ckeditor'

     Zie ook hoe je centraal
     geinstalleerde ckeditors kunt gebruiken

     Eventueel: in Configuration->Text formats kun je 
     de volgorde van full-filtered etc zetten

     color icons:
       download van
     Plaats deze in ~/drupals
     umask 022
     cd ~/public_html/ratrabbit/sites/all/libraries/ckeditor/skins
     unzip ~/drupals/
     en configureer ckeditor (global settings)

  Overlay aan/uit: geranium.local:8081/user
     -> edit -> administrative overlay

   content type koppelen aan text format:

   Took me forever to find this. 
   You set the default text format by the field now: 
   So go to your existing content type Structure > Content Types

   Click manage fields beside the content type you want to edit. 
   This includes default content types for drupal 7.

   Let op: de setting werkt alleen voor nieuwe nodes:
   Click edit beside whatever field you want to change the default 
   text format for. (This includes the Body text area like in Drupal 6.)
   For EXISTING nodes, edit, select format and save. 
   The editor will default to the last selected format from this point on.

   For every NEW Nodes (default),
   Configuration > Content Authoring > Text Formats
   DRAG the desired default format to the top of the list.

  Non-wysiwyg editors:

  simplewiki geeft problemen:
  Notice: Undefined property: SimpleWikiDocNode::$content in SimpleWikiParser->_char_repl() (line 1009 of /FS/local/TheoDueWeb/drupal/sites/all/modules/simplewiki/SimpleWiki.php)

  Opgelost door achter

class SimpleWikiDocNode 
    # A node in the document tree.
	public $children;
	public $parent;
	public $kind;
te plaatsen:
	public $content;

  simplewiki docu onder text block:
    activeer people->permissions->better formats->show format tip

  taxonomy terms in url:
  The keys to getting this to work is:

    install and enable the Entity API, Entity Tokens, 
    Path Auto and Taxonomy modules. 
    create a field on your content type and set Field Type 
    to Term Reference and name it something like 
    'field-content-category' (machine name)
    Set the Number of Values, aka, 'Maximum number of values 
    users can enter for this field' to 1 (very important if you 
    want to use the joined-path tokens).
    set the URL patterns (admin/config/search/path/patterns) to 
    something like