Currently browsing category

Linux, Page 15

自訂 .ssh/config 檔案

用下列檔案之後, 就可以直接 ssh xxx 機器短名 然後會帶入你要的帳號 # cat .ssh/config Host xxx Hostname xxx.liho.tw User root Host yyy Hostname yyy.liho.tw User root Host …

create linux ram disk to share via nfs

# mkdir -p /mnt/ramdisk # mkdir -p /exports/ramdisk # mount -t tmpfs -o size=32G tmpfs /mnt/ramdisk # mount –bind /mnt/ramdisk /exports/ramdisk # …

HandBrake CLI with subtitles example

$ cat handbrake.sh #/bin/bash /Applications/HandBrakeCLI -i $1 -o ${1%\.*}.m4v –preset=”AppleTV 3″ –srt-file=”${1%\.*}.eng.srt,${1%\.*}.cht.srt” –srt-lang=”eng,zho” –srt-codeset=”ISO-8859-1,UTF-8″ Reference : https://trac.handbrake.fr/wiki/CLIGuide, HandBrake CLI Downloads

AirPlay on Raspberry Pi

把塵封已久的 Raspberry Pi 拿出來玩 為了使 raspberry pi 連 wifi 我買了 EDIMAX EW-7811Un 無線網卡. 首先, 先把 raspberry pi 的作業系統安裝好. 我是下載 RASPBIAN JESSIE LITE …

[linux] how to generate a ssh2 key

# ssh-keygen -t rsa -b 2048 # ssh-keygen -e -f id_rsa.pub —- BEGIN SSH2 PUBLIC KEY —- bAAAB3Nzax1yc2EAAA3BIwAAAQEAx8xMS2x3x+Rx2xKxHxsxVxUxvxWxhx/xPxHxZx3xvE 6IJuidg+DxRWcu0Z4+zlP8lDfvQHox5y80qnK5LxQN4doae8mSxvNMuByxox5xTxnxaxGr bZLvKWauRRxIWF7AeEU3St3fCjUAxchHD0HDJFv10J4lyxfjLdBNdLKMPtlgD8vCgmfV4A T+6Lf7IA9jZxr68ZQEGESdhzMwtuxO8J467GQ5eU0L2HL5pwd7OujEqPW8Y5OnzhZCMd8S b7HiXZpeL2WLaNYSEggispn09UH7SSexUDxcxxDCppnJaxcQNr6UoIJ+/qQAMT2jUYxzaH …