自由軟體與資訊安全 上課補充的額外關鍵詞及操作筆記
[4/26]
standard input、 standard output、
input redirection、 output redirection
詳見 這一篇
的圖解及第二節名詞解釋。
第一節的命令有些只適用於 rpm 系統;
lubuntu 為 debian 系統, 要用 dpkg -l
查詢套件清單, 所以第一節的命令很多並不適用。
[4/19]
md5sum 實驗: 以下請用普通人 (stux) 的身份做事:
- 造訪
ubuntu 下載目錄, 查看 MD5SUMS 的內容。
如果你下載其中一個檔案, 例如 ubuntu-17.04-desktop-amd64.iso,
可以用
md5sum ubuntu-17.04-desktop-amd64.iso
來檢查你這頭算出來的 md5sum 是否與官網公告的相同。 - 更多 md5sum 實測:
echo 'abc' | md5sum
或是echo 'abx' | md5sum
=> 換了一個字母, 算出來的 "指紋" 就完全不一樣了。
gpg 加密實驗: 以下繼續用普通人 (stux) 的身份做事:
nano secret.txt # 隨便敲一點中英文進去、 存檔、 離開 ls -trl gpg -ac secret.txt # 被要求設定密碼。 需要打第二次以便確認沒打錯 ls -trl # 多出一個檔案 secret.txt.asc cat secret.txt.asc # 除了頭尾有固定格式之外, 內容像是一堆亂碼 gpg -d secret.txt.asc # 解密後直接把結果印在螢幕上 gpg -d secret.txt.asc > ans.txt # 解密後另存新檔
收工、 記筆記: history > stux-history.txt
可以把新產生的 stux-history.txt 複製到隨身碟上, 或 e-mail 給自己。
以下請開另一個分頁, 用 root 的身份做事:
grep stux /etc/passwd grep stux /etc/shadow passwd stux # 改 stux 的密碼 grep stux /etc/shadow # 密碼欄位果然長得不同了 passwd stux # 再改一次 stux 的密碼, 但打入相同的密碼 grep stux /etc/shadow # 咦, 密碼欄位又變了? 因為 salt 也改變了
收工、 記筆記: history > root-history.txt
可以把新產生的 root-history.txt 複製到隨身碟上, 或 e-mail 給自己。
注意: root 的指令歷史跟 stux 的指令歷史是分開記錄的,
不過很不幸地, 在你 (按 ctrl-d 或下 exit 指令)
結束一個 shell 時, 他們會寫入同一個檔案 (~/.bash_history)
所以會互相蓋掉 :-(
[3/9]
K,M,G,T dhcp lubuntu 網路固定 IP 設定 command option argument
[2/22]
command prompt 命令列提示符號 user name host name console/terminal 終端機 device name 裝置名稱 mount 掛載 umount 卸載 boot menu 開機選單 firmware 韌體 root
111 學年度下學期課表
洪朝貴 [ ckhung 小老鼠 cyut 點 edu 點 tw ]
研究室: L737 ; 分機 7805
https://www.cyut.edu.tw/~ckhung/
一 | 二 | 三 | 四 | 五 | |
---|---|---|---|---|---|
3 10:25 11:15 |
資訊社會 通識:中興Y308 |
||||
4 11:20 12:10 |
資訊社會 通識:中興Y308 |
||||
N 12:30 13:20 |
祐綸 研究:L-737 |
||||
5 13:30 14:20 |
|||||
6 14:30 15:20 |
OH *:L-737 |
OH *:L-737 |
|||
7 15:30 16:20 |
OH *:L-737 |
OH *:L-737 |
Programming 日1D:M-212 |
DataViz 日3D:M-212 |
|
8 16:30 17:20 |
Programming 日1D:M-212 |
DataViz 日3D:M-212 |
|||
9 17:30 18:20 |
Programming 日1D:M-212 |
DataViz 日3D:M-212 |
|||
A 18:25 19:10 |
3D 專題:L-737 |
||||
B 19:10 19:55 |
|||||
C 20:00 20:45 |
|||||
D 20:50 21:35 |
|||||
E 21:35 22:20 |