Rex's 備忘錄

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

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

儲存後即可連線了

 

Debian9 架設 Monero XMR 礦池步驟

Debian9 架設礦池,指令完成基本上就可以了

 

apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev

apt-get install libboost-all-dev git npm nodejs nodejs-legacy libminiupnpc-dev redis-server

add-apt-repository ppa:bitcoin/bitcoin

apt-get update

apt-get install libdb-dev libdb++-dev

apt-get update

apt-get install build-essential libssl-dev

curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash

source ~/.profile

nvm --version

nvm install 0.10.48

nvm use 0.10.48

nvm alias default 0.10.48

nvm use default

 

 

wget -c --progress=bar https://downloads.getmonero.org/blockchain.raw

./monero-blockchain-import --verify 0 --input-file ./blockchain.raw

./monerod --detach

 

First remove NodeJS:
sudo ap-get remove npm nodejs -y

Then download and unzip NodeJS v0.10.25
wget https://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz && tar xvzf node-v0.10.25.tar.gz

Compile and Install NodeJS and NPM from the source:

cd node-v0.10.25
make
sudo make install

Make sure to remove node_modules directory before you run npm update

 

48nTGUiJxaa1W7ddzCt3VfcqB37QoX6bcNqEbCYXU7Cf1CPca8CYXrB32QkFEqnEhARbWEjFoTSyJDDLCyuN8zXbMusE4V9

xmr.omine.org:3000

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"

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

Home