Currently browsing category

Computers, Page 19

AirPlay on Raspberry Pi

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

忘記密碼改變 Mac OS X 密碼

開機的時候按 command + S 進入 single user mode 然後用下列指令改變密碼 # fsck -fy # mount -uw / # launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist # passwd …

[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 …

[linux] 解救不小心 rm 的檔案

有時候就是這麼豬頭!不小心在 linux 下把檔案砍了!! rm 下太快了,還好有 extundelete 程式,把我的檔案救回來了。 首先是安裝 extundelete 程式 ,下載回來之後解壓縮安裝 # tar xvf extundelete-0.2.4.tar.bz2 # cd extundelete-0.2.4 # ./configure # make …

linux check memory dimm status

檢查記憶體插槽狀態 # dmidecode -t memory # dmidecode 2.12 SMBIOS 2.5 present. Handle 0x1000, DMI type 16, 15 bytes Physical Memory Array Location: …

tar 用多核心壓縮/解壓縮

# yum install -y pigz 先安裝 pigz # tar –use-compress-program=pigz -cf xxx.tar.gz xxx 壓縮 tar –use-compress-program=pigz -xf xxx.tar.gz 解壓縮