Currently browsing tag

Linux, Page 8

[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 解壓縮

GNOME 最小安裝 / 反安裝

安裝桌面套件 # yum -y groupinstall “Desktop” “Desktop Platform” “X Window System” “Fonts” 其它套件選擇性地安裝 # yum -y groupinstall “Graphical Administration Tools” # yum …

[linux] 產生 ethX uuid

# uuidgen eth0 a4c64ff7-4882-4e7d-8119-b46dc04c05aa # vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 TYPE=Ethernet UUID=a4c64ff7-4882-4e7d-8119-b46dc04c05aa