Rex's 備忘錄

Debian install XMR-STAK


If you want to use your GPU for mining, do the following-
for AMD GPU’s-

Install drivers for your card

download the latest APP SDK from here. It should have the name AMD-APP-SDKInstaller-v(version number)-GA-linux64.tar.bz2

Extract it

Open the terminal wherever it is located

(optional) name it to something simpler

In the terminal, type ./(name).sh

After installing, you should be good.

for nVidia GPU’s-

Install drivers for your card

Download the latest CUDA Toolkit from here.

Download the base installer and follow the compilation instructions

Download every patch one-by-one in order and apply the patches

After that, you should be good.

Open the terminal and install dependencies by running this command-

sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev

Clone the package-

git clone

To remove donations, type-

gedit xmr-stak/xmrstak/donate-level.hpp


`constexpr double fDevDonationLevel = 2.0 / 100.0;`

`constexpr double fDevDonationLevel = 0.0 / 100.0;`
Make a directory-

mkdir xmr-stak/build

Move over there-

cd xmr-stak/build

Run cmake-

cmake ..

If you don’t have nVidia GPUs, type-

`cmake .. -DCUDA_ENABLE=OFF`
If you don’t have AMD GPUs, type-

`cmake .. -DOpenCL_ENABLE=OFF`
If you have neither (only CPU mining) type-

Finish building it-

make install

XMR-Stak will now be located in /home/user/xmr-stak/build/bin

In the terminal, type-

ccmake ..

(install if not installed, sudo apt install cmake-curses-gui)

Using the Up and Down arrows, scroll to the 2nd page. Then, on XMR-STAK_CURRENCY, press enter to change it to turtlecoin (if needed, you can make personal tweaks by reading the descriptions of each value).

Once you're done, press c and then g on your keyboard.


sysctl -w vm.nr_hugepages=128


Check XMR-Stak Setup and Configuration

If you see something like this, that means it’s working!

Debian 9 Install Squid and configure Proxy server

apt-get install squid

vi /etc/squid/squid.conf


acl lan src
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."


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



apt-get install dconf-editor

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




將他關閉改成 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 | 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

./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 && tar xvzf node-v0.10.25.tar.gz

Compile and Install NodeJS and NPM from the source:

cd node-v0.10.25
sudo make install

Make sure to remove node_modules directory before you run npm update



Apache 固定網址 設定

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

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


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


  • 在主機中新增.htaccess

  • a2enmod rewrite

  • 修改 /etc/apache2/sites-available/000-default.conf
    <Directory "/var/www/nibbleblog/">
    AllowOverride All

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