網頁

顯示具有 Linux 標籤的文章。 顯示所有文章
顯示具有 Linux 標籤的文章。 顯示所有文章

2011年3月8日 星期二

NFS Server on Ubuntu and Windows 7 NFS client

想找一個在Ubuntu下可以類似dropbox的網路硬碟使用,
比較簡單的就是在Ubuntu下架設NFS Server,
而在Windows 7用NFS client連接.

Ubuntu安裝:
apt-get install nfs-kernel-server
apt-get install nfs-common

修改 /etc/exports後, 執行sudo exportfs -ra即可.
設定參考資料: SettingUpNFSHowTo - Community Ubuntu Documentation

Windows 7在Ultimate與Enterprise版可啟動NFS client的功能,
Control Panel --> Programs and Features --> Turn Windows features on or off
+[] Services for NFS
[] Administrative Tools
[] Client for NFS

使用方式: (斜線的方式不一樣)
mount \\server\share source drive:

如:
mount \\abc.com\home\resource n:

要得知某個Server有分享哪一個資源:
showmount -e abc.com

不過目前測試速度很慢,(未成功)
且聽說不支援中文檔名?
Windows 7 有出一個類似 Windows Services for UNIX - Wikipedia, the free encyclopedia
(名字不太一樣, 叫Microsoft Utilities and SDK for Subsystem for UNIX-based Applications)
還沒測試過.

Ubuntu間連線倒是ok.

2011年2月25日 星期五

2010年9月5日 星期日

Eclipse on Ubuntu

在VMWare裡面把Ubuntu 10.04裝起來,
Ubuntu的介面真的是越做越好了,
裝完後想把Eclipse裝起來用,
有幾個心得紀錄一下.

2010年8月11日 星期三

VPN Server on Ubuntu

在Ubuntu上架設VPN其實蠻簡單的,
那天老師問了說現在有什麼特別需要架設一個Linux Server之類的,
說真的除了效率與Mail Server在Windows很難取代,
其他似乎都有解決方案...

2010年6月28日 星期一

Disable ipv6 on Ubuntu

There is a strange problem with kernel message: lo: Disabled Privacy Extensions
It is caused by the ipv6 module in kernel.
reference:
Old Nabble - ubuntu-users - lo: Disabled Privacy Extensions

To close it, you have to recompile kernel.
There is a hack to close it through the loader. (If no ipv6 needed)
edit the /etc/default/grub and modify:
GRUB_CMDLINE_LINUX="ipv6.disable=1"

here are the references to close it:
1. Ubuntu Tips - JoeHacker
2. Grub 2 - Ubuntu Wiki

2010年6月25日 星期五

Stop php execution in Apache's directory

參考文件:

1. 精讚部落 不讓上傳的目錄執行PHP

有時讓使用者上傳圖片,會怕惡意的上傳可執行的php,雖然可以用改檔名來防止,就怕駭客使用非正規的方法上傳檔案,因此在上傳的目錄下,要設定不執行php的安全性設定。

httpd.conf 在網站的上傳目錄設定下:
<Directory "/home/axer/php/zdemo/upload">
AllowOverride None
php_flag engine off
Allow from all
</Directory>

2. 如何限制某個目錄不能執行PHP?
3. PHP File Upload Security

2009年8月7日 星期五

No SPAM header@@

今天幫豐英老闆抓mail廣告信的問題,
我想說我已經有裝SPAM了,
奇怪為什麼還跟我呼天喊地說有廣告信,
找了一整個晚上發現,

1. amavisd-new Tips and FAQ -- spam scanners
2. https://help.ubuntu.com/9.04/serverguide/C/mail-filtering.html

If the server's hostname is different from the domain's MX record you may need to manually set the $myhostname option. Also, if the server receives mail for multiple domains the @local_domains_acl option will need to be customized. Edit the /etc/amavis/conf.d/50-user file:

$myhostname = 'mail.example.com';
@local_domains_acl = ( "example.com", "example.org" );

真是靠邀... 花了我快2個小時,
設定一下就好了.

2009年7月15日 星期三

Postfix on Ubuntu

這兩天把mail server架設起來,
都在研究怎麼處理廣告信的問題,
說真的email系統真的是很棘手,
光編碼的相容性就會搞到暈頭,
底下記錄一下我整理過的過程.

2009年6月29日 星期一

AWStats on Ubuntu

之前就有在我的電腦上面加上流量控制,
找了幾套其實看起來都沒有awstats好. =.=

2009年6月25日 星期四

libapache2-mod-bw on Ubuntu

剛把相簿還原好了, 終於...
真感動, 相簿中的相片有12萬張, 資料備份好壓縮起來有52G,
解開有快100G, 光資料庫就有74MB, 實在是蠻誇張的.

2009年6月24日 星期三

XRDP問題後續與Ubuntu 9.04安裝

今天早上繼續Run了一下XRDP,
感覺問題還是不少,
主要問題如下:(在8.04底下)
1. Gnome的panel設定一直update不成功
2. Xauthorization
3. 鍵盤問題輸入

2009年6月23日 星期二

XRDP在Ubuntu 8.04 LTS問題



今天從早上一直到下午都在實驗室弄我那有問題的Server,
本來想說要裝64位元XP或Ubuntu,
結果那台P4竟然是32位元的,
剛好學弟在, 問了他一些Ubuntu的問題,
想說好吧, 來裝裝看吧.

2008年7月9日 星期三

防砍站 Part 3

除了先前分析connection的方法,
找到了一個可以直接從apache中去限制連線數目 -- mod_limitipconn

防砍站 Part 2

這兩天一樣在跟砍站奮戰中,
主要是之前的策略果然太硬了.

2008年7月2日 星期三

crontab


沒甚麼大事,
只是我剛剛又耍寶了...

防砍站 Part 1



最近天氣比較熱,
電腦一直呈現快要當機的情況...

2006年11月2日 星期四

主機被入侵

今天晚上沒上WOW,
我睡到兩點,
起來研究一下到底發生什麼事情了,