Synology DS 211+怎麼用bind及cron及ssh的root
作者:cross 日期:2011-07-11 01:07
使用這台nas想要使用的功能及遇到的情況
1。怎麼使用 ssh 功能
在DSM管理介面上的控制台 > 終端機,
就可以使用ssh登入操作,root密碼等於admin
2。怎麼在這台架dns server
DSM 版本為 3.1,它內鍵已有bind這個套件了,路徑在 /usr/syno/named/,裡面有個 S05dns.sh 程式,
將它放到/usr/syno/etc/rc.d,可以讓bind開機時執行,或者可以先 ./S05dns.sh start 打開bind dns 服務功能
ntop 3.3.8 版安裝時的問題
作者:cross 日期:2011-07-09 10:54
我要啟動 ntop時,/etc/init.d/ntop start 出現
解決方式是: 編輯/etc/init.d/ntop正在停止 [ 確定 ]
正在啟動 ntop: Processing file /etc/ntop.conf for parameters...
Thu Jul 7 15:34:46 2011 NOTE: Interface merge enabled by default
Thu Jul 7 15:34:46 2011 Initializing gdbm databases
FATAL ERROR: Unrecognized/unprocessed ntop options...
, --user ntop, , --db-file-path /var/ntop, , , , , , , --https-server 3001, , --local-subnets 10.1.1.0/24, , , --daemon,run ntop --help for usage information
Common problems:
-B "filter expressions" (quotes are required)
--use-syslog=facilty (the = is required)[失敗]
在 start() 的地方
將
daemon $prog -d -L @/etc/ntop.conf
改為
daemon $prog @/etc/ntop.conf
也就是去掉 -d -L
drbl + clonezilla, PXE開機後出現不支援網路卡
作者:cross 日期:2011-07-09 10:34
我有一個主機,主機板是 p5ql-e,它的網卡是 Atheros 1000M Ethernet Network Driver
當我在使用drbl+clonezilla,於pxe開進clonezilla後,出現如下圖問題
有可能是這個網路卡不被drbl 的kernel支援(非os的kernel)
我拿 atheros 的 linux driver去編譯
os 的 kernel 現在為 2.6.18-238.12.1.el5
也在/lib/modules/2.6.18-238.12.1.el5/kernel/drivers/net/atl1e/看到我剛編譯的模組 (alt1e.ko)
用 OpenVPN 2.2.0建構SSL VPN加密連線
作者:cross 日期:2011-07-04 15:01
續: http://ssorc.tw/rewrite.php/read-265.html
Server 端建置
環境
CentOS 5.6 x64
OpenVPN 2.2.0
預設的yum庫沒有openvpn
所以我要用 dar rpm
安裝 OpenVPN
yum install openvpn
OpenVPN本身提供一個小型的KEY的管理工具,它是建構在openssl底下的,套件裝好後,在/usr/share/doc/openvpnXXX目錄下就會有easy-rsa目錄
samba 建置檔案伺服器fileserver分享目錄檔案
作者:cross 日期:2011-07-02 22:17
環境:
。CentOS 5.6 x64
。Samba 3.x
摸擬:
。兩個使用者(cross,cross2),可以讀寫自已的家目錄
。cross 能讀寫 cross2 的家目錄
。cross2 只能讀 cross 的家目錄
。多一個 /data 目錄,可以給cross2讀而已,cross可以讀寫
先新增這兩個user,並把他們放到同一個群組裡去
groupadd ssorc
useradd -G ssorc cross -s /sbin/nologin
useradd -G ssorc cross2 -s /sbin/nologin
新增帳號後的權限狀態
VirtualBox 虛機是跑在一般 User (使用者),怎麼讓母機開機後就跑子機 (續)
作者:cross 日期:2011-07-01 00:10
上一篇說明怎麼用一般使用者讓母機在重開機/開機後把子機也自動跑起來 (我把它放在/etc/rc.local)
但會失敗
錯誤訊息
sudo sorry you must have a tty to run sudo
不過還是有解決方法
執行 visudo
#將這行註解,存檔離開
#Defaults requiretty
CentOS 5.6 x64 加上 VirtualBox 4.0 x64 無法使用USB ?!
作者:cross 日期:2011-06-29 13:35
我上網找了許久,完全沒有解答 (就算我加裝了 extension pack也不行)
不過在新版的 4.0.10 已修正了這個問題,我也更新了,且真的可以使用usb了,可喜可賀!!
官網發佈的訊息如下
ref: http://www.virtualbox.org/wiki/Changelog
VirtualBox 4.0.10 (released 2011-06-27)
This is a maintenance release. The following items were fixed and/or added:
- GUI: fixed disappearing settings widgets on KDE hosts (bug #6809)
- Storage: fixed hang under rare circumstances with flat VMDK images
- Storage: a saved VM could not be restored under certain circumstances after the host kernel was updated (bug #8983)
- Storage: refuse to create a medium with an invalid variant (for example Split2G with VDI; bug #7227)
- Snapshots: none of the hard disk attachments must be attached to another VM in normal mode when creating a snapshot
- USB: fixed occasional VM hangs with SMP guests (bug #4580)
- USB: proper device detection on RHEL/OEL/CentOS 5 guests (partial fix for bug #8978)
- ACPI: force the ACPI timer to return monotonic values for improve behavior with SMP Linux guests (bug #8511 and others)
- RDP: fixed screen corruption under rare circumstances (bug #8977)
- rdesktop-vrdp: updated to version 1.7.0
- OVF: under rare circumstances some data at the end of a VMDK file was not written during export
- Mac OS X hosts: Lion fixes (bug #8903)
- Mac OS X hosts: GNOME 3 fix
- Linux hosts: fixed VT-x detection on Linux 3.0 hosts (bug #9071)
- Linux hosts: fixed Python 2.7 bindings in the universal Linux binaries
- Windows hosts: fixed leak of thread and process handles
- Windows Additions: fixed bug when determining the extended version of the Guest Additions (4.0.8 regression; bug #8948)
- Solaris Additions: fixed installation to 64-bit Solaris 10u9 guests (4.0.8 regression)
- Linux Additions: RHEL6.1/OL6.1 compile fix
- Linux Additions: fixed a memory leak during VBoxManage guestcontrol execute (bug #9068)



