Archive for the ‘linux’ Category

September 3, 2012 0

determine if folder is a mount point

By in bask, linux

If $dir is a mount point this if statement will determine is (Not tested) if [ `stat -fc%t:%T “$dir”` != `stat -fc%t:%T “$dir/..”` ]; then echo “$dir is mounted” else echo “$dir is not mounted” fi

July 24, 2012 0

inspect result of installing .deb file

By in deb, linux

What files is installed on the system and where when running a .deb file either by software-center or dpkg -i .deb? find out by running: dpkg-build –contents .deb This doesnt install the package but let you inspect what will happen is you install

Tags: ,

June 7, 2012 0

ubuntu 12.04 enable hibernation

By in linux, ubuntu, Ubuntu 12.04

Following this worked: http://askubuntu.com/questions/94754/how-to-enable-hibernation-in-12-04 create/edit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla with: sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla and insert [Re-enable hibernate by default] Identity=unix-user:* Action=org.freedesktop.upower.hibernate ResultActive=yes  

June 6, 2012 0

Ubunt 12.04 login screen reappears after messing with xorg.conf

By in linux, ubuntu, Ubuntu 12.04, Xserver

After messing with Xorg.conf I could no longer login on my usual account. The guest account however still was able to login and I could login through terminals (Alt – Ctrl – F1). The problem got fixed when I deleted: ~/.Xauthority and rebooted

June 4, 2012 0

prevent script/command from terminating when user logs out

By in linux

To prevent script or command from terminating when user logs out use nohup COMMAND output is directed to nohup.out in home directory

June 4, 2012 0

monitor network in terminal/shell

By in linux

the utility iftop seems to be doing a pretty good job monitoring network trafic

May 23, 2012 0

using rsync to copy files

By in linux, rsync

rsync options to get rsync to report progress: –verbose –progress –stats if copying over network use compression and secure transfer: –compress –rsh=/usr/bin/ssh tell rsync to copy recursively: –recursive keep file timestampts: –times keep permissions: –perms copy symbolic links: –links instruct rsync to delete files on the remote location that isn’t present on the source: –delete […]

Tags:

April 26, 2012 0

monitor system events on ubuntu

By in linux, ubuntu

to monitor system events such as connecting/disconnecting usb devices do tail -f /var/log/syslog

March 22, 2012 0

rsync to copy home directory

By in linux

sudo rsync -ah –exclude-from=/home/thomas/rsyncExcludeFile /home/ /home2/ tailing / are important the /home/thomas/rsyncExcludeFile file is a file containing directories and files not to sync such as Music

Tags:

March 1, 2012 0

problems with checkinstall

By in checkinstall, linux

using check install to properly install from source When installing ImageMagick-6.7.5-7 checkinstall failed with an error related to “mkdir -p” It seems that this error disappeared when running checkinstall with -fstrans=no so after calling ./configure and make I called sudo checkinstall -fstrans=no and everything seem to be correct