Tuesday, June 16, 2015

Ubuntu 14.04: compile DCMTK 3.6.1 (development snapshot)

Get latest version from: http://dicom.offis.de/download/dcmtk/snapshot/ At the time of writing this could be done to compile latest version of the dcmtk:

ubuntu: dcmtk convert to grayscale tiff

Example:/opt/dcmtk361/bin/dcml2pnm +ot +G ../00_org/003.dcm 003.tif

Saturday, June 06, 2015

Xubuntu 15.04: lightdm autologin

To setup autologin, create the following file: /etc/lightdm/lightdm.conf

sudo vim /etc/lightdm/lightdm.conf
And add to the following lines: [SeatDefaults]

Ubuntu: chome browser new instance

chromium-browser --enable-udd-profiles --user-data-dir=~/chromeProf or for chromegoogle-chrome --enable-udd-profiles --user-data-dir=~/chromeProf

Wednesday, May 27, 2015

bash: rename files to numbers

find . -name '*.jpg' | gawk 'BEGIN{ a=1 }{ printf "mv \"%s\" %04d.jpg\n", $0, a++ }' | bash

Wednesday, April 01, 2015

Saturday, March 07, 2015

Fedora 21: VirtualBox additions

su -
dnf update kernel*

dnf install kernel-headers kernel-devel dkms make bzip2 perl and reboot.
Optinally (usually not needed) KERN_DIR=/usr/src/kernels/`uname -r`

Saturday, February 28, 2015

Fedora 21: to do after install

dnf install @xfce-desktop
dnf upgrade
su -c "curl https://satya164.github.io/fedy/fedy-installer -o fedy-installer && chmod +x fedy-installer && ./fedy-installer"
dnf install terminator vim mc htop git bless okular chromium-browser krusader krename kdiff3 vnc4server gimp boost-devel yumex gcc-c++ ImageMagick ImageMagick-devel ImageMagick-c++-devel python3-matplotlib python3-ipython python3-scipy kernel-devel kernel-headers dkms make bzip2 perl eqlipse-pydev python3-devel python-devel kate ufraw imagej kde-baseapps
vim etc/gdm/custom.conf


sudo grub2-set-default "Windows Vista (loader) (on /dev/sdb1)"

Ubuntu 14.04: Install boost 1.57

sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev
wget http://downloads.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.bz2
tar xvjf ./boost_1_57_0.tar.bz2
./bootstrap.sh --prefix=/opt/boost_1_57_0
sudo ./b2
sudo ./b2 install

Friday, February 27, 2015

Ubuntu 14.04: My essential packages to be installed.

sudo apt-get install vim mc terminator bless chromium-browser krusader krename kdiff3 vnc4server gimp inkscape build-essential libmagick++-dev libboost1.55-all-dev rar octave okular network-manager-pptp network-manager-vpnc network-manager-openvpn gcc-multilib apt-file htop git xtightvncviewer ufraw imagej kde-baseapps-bin libjpeg62 libjpeg62-dev libjasper-runtime libjasper-dev libopenjpeg-dev Numix theme sudo add-apt-repository ppa:numix/ppa
sudo apt-get update
sudo apt-get install numix-gtk-theme numix-icon-theme-circle
sudo apt-get install numix-wallpaper-notd

Sublime 3 sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
Bash promptexport PS1="\[\e]0;\u@\h: \W\a\]${debian_chroot:+($debian_chroot)}\u@\h:\W\$ "