Monday, May 22, 2017

how to hard restart amazon kindle oasis

"""
I request you please do hard restart of 40 seconds.

1. Connect the device to a power adapter, if available.
2. Press and hold the Power button for 40 seconds. If the device
restarts before 40 seconds has passed, release the Power button.
3. Press the Power button again to restart your Kindle.

Please let me know once you have done.
"""

Saturday, May 20, 2017

how to rename crypted device in crypttab

according to n.r.,

"""
Replace OLD_NAME with NEW_NAME in /etc/crypttab, and then:

# dmsetup rename OLD_NAME NEW_NAME
# update-initramfs -c -t -k all
# update-grub
# reboot
"""

references:

- https://unix.stackexchange.com/questions/81011/how-to-change-the-name-an-encrypted-full-system-partition-is-mapped-to

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

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

Saturday, October 17, 2015

How to Auto Mount NFS in Mac OS X Yosemite! Permanently

etc/auto_master:

/myserver auto_myserver

/etc/auto_myserver.

Add the following lines to this file:

MyShare1 myserver.local:/exported/path/MyShare1
MyShare2 myserver.local:/exported/path/MyShare2

To check if mounting works, run:

sudo automount -vc

The shares should have been moun

http://wied.it/blog/how-to-permanently-mount-a-nfs-share-on-mac-os-x-yosemite-using-automount.html