原创 centos7 應用筆記: 使用 sparse 作靜態檢測

centos7 應用筆記: 使用 sparse 作靜態檢測 sparse 是用於 C 語言的語法分析器,用以對 C 代碼進行靜態檢查,它不但能夠檢查 ANSI C 並且還能檢查具有 gcc 擴展的 C 。 安裝 yum -y in

原创 centos7 應用筆記: 添加 編輯 Applications 菜單 功能

centos7 應用筆記: 添加 編輯 Applications 菜單 功能 爲了可以編輯 Applications菜單。 需要安裝 alacarte。 # 安裝 alacarte yum -y install alacarte

原创 grub修復

查看分區 ls > (hd0) (hd0,gpt1) (hd0,gpt2) (hd0,gpt3) 查看鏡像文件 ls (hd0,gpt2)/ > initramfs-3.10.0.img > vmlinuz-3.10.0

原创 centos7 應用筆記: 安裝 window7 和 centos7 雙系統 (帶共享數據分區)

centos7 應用筆記: 安裝 window7 和 centos7 雙系統 (帶共享數據分區) 這裏使用一個 160G 的硬盤來安裝 window7 和 centos7 雙系統。 另外,會實現帶共享數據的分區。令到兩個系統之間

原创 centos7應用筆記:WPS 安裝

centos7 安裝 WPS WPS 有 linux 版本,聽說比較好。所以安裝了一個試一試。 安裝步驟如下: wget https://wdl1.cache.wps.cn/wps/download/ep/Linux2019/88

原创 自編譯內核 invalid signature 問題解決

自編譯內核 invalid signature 問題解決 使用自己編譯的內核出現如下問題: error: /vmlinuz-3.10.0 has invalid signature error: you need to load

原创 centos7應用筆記:umlet安裝

umlet是一款很好的 uml 繪圖軟件。可以用於 windows 和 linux。 用戶可以使用命令來畫圖,十分方便。 1 設置 java 環境變量 安裝 umlet 前,需要設置 java 環境變量 修改文件: /etc/pr

原创 使用usb串口線作爲console

1 檢查是否支持 USB 串口線 dmesg | grep tty > usb 1-5: pl2303 converter now attached to ttyUSB0 > console [ttyUSB0] enabled

原创 centos7 應用筆記: tmux3.0 安裝 和 配置

centos7 應用筆記: tmux3.0 安裝 和 配置 編譯 tmux3.0 所依賴的庫 # 安裝 libtermcap、ncurses、libevent、readline庫 (編譯 vim & tmux 所依賴的庫) yu

原创 防火牆的橋和端口聚合

防火牆的橋和端口聚合 防火牆有的時候,會放置到 兩個 做了端口聚合的交換機之中。 以下的測試,是比較 防火牆做成多橋,和聚合之後再做橋的區別。 測試 1 防火牆單橋 拓撲 +--------

原创 centos7 應用筆記: systemd-analyze 分析開機過程

centos7 應用筆記: systemd-analyze 分析開機過程 centos7 是使用 systemd 管理服務的。 如果 開機很慢。可以使用 systemd-analyze 分析開機過程。 使用 systemd-an

原创 centos7 應用筆記: fslint 文件查重

centos7 應用筆記: fslint 文件查重 fslint 可以用於文件的查重。 fslint 掃描的是文件的內容。如果內容一致,則會認爲文件一致。而不論文件名是否一致。 安裝 fslint # 安裝 fslint yum

原创 centos7 應用筆記: vim8.1 安裝

centos7 應用筆記: vim8.1 安裝 編譯 vim8.1 所依賴的庫 # 安裝 libtermcap、ncurses、libevent、readline庫 (編譯 vim & tmux 所依賴的庫) yum -y in

原创 centos7 應用筆記: 重新編譯內核

centos7 應用筆記: 重新編譯內核 安裝依賴庫: # 安裝 bc (is needed for linux kernel compiling) yum -y install bc.x86_64 # 安裝 elfutil

原创 linux 信號處理函數的初始化

問題 很多時候,進程之間會使用信號,來進行進程間通信。 但是一般信號處理函數的默認動作,就是退出進程。 如果進程,在初始化信號處理函數的過程中就接收到了信號,就會退出。 因此正確的初始化信號處理函數,就顯得很重要。 一般的方法 一