【QNAP】QNAP NAS 問題整理 
Sunday, January 3, 2016, 05:11 PM - 工作日誌   (同類別文章列表)
Posted by Administrator
SSH連線下重開機:

#kill 1
#kill -9 -1


設定檔位置:
/mnt/HDA_ROOT/.config/


中文輸入問題:
修改 /etc/inputrc 檔案,設定「set convert-meta off」,(將該行註解符號拿掉即可)


HDA_DATA失蹤:
e2fsck /dev/sda4 (這個是HDA_DATA的位置)
e2fsck /dev/sda3 (2017/7/12 新版改位置?)



e2fsck -b 8193 /dev/sde1
e2fsck -b 32768 /dev/sde1


網頁無法登入:
使用ssh登入(假設其它服務正常的話),並使用admin下此指令:
curl http://download.qnap.com/Storage/tsd/ut ... killer2.sh | sh


QNAP自動執行:
QNAP參考網址


mount -t ext2 /dev/mtdblock5 /tmp/config
vi /tmp/config/autorun.sh
chmod +x /tmp/config/autorun.sh
echo .
echo "unmounting /tmp/config..."
umount /tmp/config

記得去->控制台->硬體設定->勾選開機時執行使用者自訂的程序
(這個忘了勾、浪費了我幾個小時…)


IPKG代替軟體:

1.搜尋entware-ng
2.Install on QNAP NAS·Entware/Entware-ng Wiki·GitHub
3.依指示下載Entware-ng套件並存檔
4.開啟QNAP之APP Center,使用右上方、齒輪旁之有「+」的ICON進行手動安裝
5.安裝完成、可以使用

#opkg update //更新套件列表
#opkg list //顯示套件列表
#opkg install screen //安裝名為screen的套件 (名字由上方指令而來)



SWITCH USER指令:
sudo -i -u otheruser


產生.htpasswd檔案:
1.Log into your server via SSH.

2.Create an .htpasswd file in the directory you wish to password protect using the the htpasswd utility. For the first user, say user1, run the following:
[server]$ htpasswd -c /home/username/example.com/.htpasswd user1


3.Enter the password for the user. This creates a password for a user named 'user1'. The code in your .htpasswd file will show the encrypted password like this:
user1:$apr1$bkS4zPQl$SyGLA9oP75L5uM5GHpe9A2


4.Run it again (without the -c option) for any other users you wish to allow access to your directory.

5.Set the permissions on this file to 644.
[server]$ chmod 644 .htpasswd


QNAP htpasswd 路徑在: /mnt/ext/opt/apache/bin/htpasswd


.htaccess 檔案範例:
AuthName TsengktPersonalOnly!
AuthType Basic
AuthUserFile /share/HDA_DATA/.TKTConf/.htpasswd
require user tsengkt

發表回應 ( 共計705閱讀人次 )   |  permalink   |  $star_image$star_image$star_image$star_image$star_image ( 2.9 / 456 )

<<第一頁 <前一頁 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 下一頁> 最後>>