Tuesday, May 31, 2016

How to upgrade from Debian 7 to Debian 8

http://www.linuxveda.com/2015/04/28/upgrade-from-debian-7-to-debian-8/

Thursday, May 12, 2016

How to convert .webm into .mp3 using ffmpeg

ffmpeg -i Ricky\ Nelson\ -\ I\ Will\ Follow\ You\ \ \(1963\)-AyZAJQgrXKk.webm -acodec libmp3lame -aq 4 IWillFollowYou.mp3

Sunday, May 8, 2016

Windows 10 and Samba Share Connectivity Issue

Even though you have already set a password, it will still show this error.

HKey Local Machine / System / Current Control Set / Services / Lanman Workstation /
  Parameters

New DWord 32-bit
  AllowInsecureGuestAuth 1

Saturday, May 7, 2016

Sunday, April 17, 2016

lost+found

Wednesday, March 16, 2016

How to Concatenate Images with ImageMagick (convert)

convert image1 image2 -append result

or

convert image1 image2 +append result

Monday, March 14, 2016

How to Lock the Screen After Coming Back from Suspend (Sleep)


Locking the screen saver on hibernate or suspend

You may wish to run a screen locking utility when the system suspends (so that a password is required after waking up). This can be done by adding a script to the /etc/pm/sleep.d folder. Make sure the script is executable (chmod 755) and owned by root:root.

A simple example script is:

/etc/pm/sleep.d/00screensaver-lock
 #!/bin/sh   #   # 00screensaver-lock: lock workstation on hibernate or suspend     username= # add username here; i.e.: username=foobar   userhome=/home/$username   export XAUTHORITY="$userhome/.Xauthority"   export DISPLAY=":0"      case "$1" in      hibernate|suspend)         su $username -c "/usr/bin/slimlock" & # or any other such as /usr/bin/xscreensaver-command -lock      ;;      thaw|resume)      ;;      *) exit $NA      ;;   esac

https://wiki.archlinux.org/index.php/Pm-utils#Locking_the_screen_saver_on_hibernate_or_suspend