發表文章

目前顯示的是 6月, 2019的文章

debain安裝node-red , mosquitto 以及node-red增加登入面板

apt-get install vim apt-get install curl curl -sL https://deb.nodesource.com/setup_12.x | bash - apt-get install -y nodejs npm install -g node-red npm install -g node-red-dashboard apt-get install mosquitto apt-get install firewalld systemctl enable firewalld firewall-cmd --permanent --zone=public --add-port=1880/tcp firewall-cmd --permanent --zone=public --add-port=1883/tcp firewall-cmd --permanent --zone=public --add-port=443/tcp firewall-cmd --reload systemctl enable mosquitto systemctl restart mosquitto npm install -g node-red-admin node-red-admin hash-pw 你會得到一串HASH vim setting.js 找到 Securing Node-RED的地方 把註解拿掉 把HASH填上去 儲存後離開

如何在debian 9 架.onion 網站(內附自訂義域名方法)

[以Apache為例tor架站] apt-get install tor apt-get install apache2 apt-get install php7.0 vim /etc/tor/torrc 以下兩行註解拿掉 HiddenServiceDir /var/lib/tor/hidden_service/ HiddenServicePort 80 127.0.0.1:80 systemctl restart tor systemctl restart apache cat /var/lib/tor/hidden_service/hostname >>這就是你目前的.onion網站 [完成範例 (因考慮到各種因素 只有我爽才會開) ] http://coreyohg44vgmzr2.onion/ -------------------------------------------------------------------------------------- [tor自訂義域名] https://github.com/katmagic/Shallot apt-get install git apt-get install gcc apt-get install make git clone https://github.com/katmagic/Shallot.git cd Shallot ./configure && make [問題列] 以下為編譯自訂義域名時可能遇到的問題 1. In file included from src/math.c:3:0: src/math.h:23:24: fatal error: openssl/bn.h: 沒有此一檔案或目錄  #include <openssl/bn.h> [解法]: apt-get install libssl-dev 2. error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' [解法]: apt-get install libssl1.