Debian 安裝 MegaRAID Storage Manager

下載 Latest MegaRAID Storage Manager (MSM) 解壓縮

apt-get install alien

alien –scripts *.rpm (MSM目錄)

dpkg -i lib-utils2_*.deb

dpkg -i lib-utils_*.deb

dpkg -i megaraid-storage-manager_*.deb

./usr/local/MegaRAID Storage Manager/startupui.sh

sas*deb 不安裝

#rm /var/lib/dpkg/info/sas*.prerm

#dpkg -P sas-snmp

#dpkg -P sas-ir-snmp

Debian 9 Screen Share 螢幕分享 VNC “error in tightvnc viewer no security types supported.”

使用Debian內建的螢幕分享,正常都可以在手機與Linux機器上連線,

唯獨在Windows使用 Tightvnc 時,會顯示不支援此安全類型,

必須關閉安全設定才行

apt-get install dconf-editor

安裝後打開 系統工具–dconf編輯器,

org/gnome/desktop/remote-access/require-encryption

undefined

將他關閉改成 False

儲存後即可連線了

Apache 固定網址 設定

不管是用 WordPress 或者是 nibbleblog 等等設定固定網址時,

都會遇到404 Not Found 錯誤網頁打不開,

首先以nibbleblog 為例,於設定中開啟固定網址,會提示你將以下內容複製到.htaccess,

“開啟之前請確定伺服器是否已經將必須的模組開啟與設定正確,並且複製這個內容到”.htaccess”這個檔案裡面,這個檔案應該被放置在您的網域根目錄”

  • 在主機中新增.htaccess

  • a2enmod rewrite

  • 修改 /etc/apache2/sites-available/000-default.conf
    增加以下Code
    <Directory “/var/www/nibbleblog/”>
    AllowOverride All
    </Directory>

  • 重新啟動 Apache  “/etc/init.d/apache2 restart” or “service apache2 restart”

以上完成後,網頁即可正常顯示囉

Debian 9 Install Squid and configure Proxy server

apt-get install squid

vi /etc/squid/squid.conf

add:

acl CONNECT method CONNECT
acl lan src 192.168.1.0/24
http_access allow localhost
http_access allow lan
request_header_access Referer deny all
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all
forwarded_for off

/etc/init.d/squid restart