建造基于Ubuntu的NAS服务器(ftp samba Apache, PHP MySQL(6)

HOWTO : Home made NAS server with Ubuntu 8.04.1 – Part VI
[HOWTO] 用Ubuntu 8.04.1搭建NAS服务器 – Part VI

This part is also optional. The Samba is shared with Windows desktops that files stored in the Samba will be infected by virus. To prevent this, you should install the ClamAV, the open source anti-virus program for Linux that kills Windows virus.
这部分也是可选的。Samba为Windows客户端提供共享,保存的文件会感染病毒。可以安装ClamAV防病毒,Linux版本的开源防病毒系统,可以杀Windows病毒。

ClamAV

Edit /etc/apt/sources.list and append the following lines at the end of the file :
编辑/etc/apt/sources.list,并在最后增加以下行:

sudo nano /etc/apt/sources.list

# ClamAV PPA
deb hardy main
deb-src hardy main

sudo apt-get update
sudo apt-get install clamav clamav-daemon arj unzoo lha unrar

Make sure clamav-daemon is running :
确保clamav-daemon运行中:
ps ax | grep clamd

If not :
sudo /etc/init.d/clamav-daemon start
sudo /etc/init.d/clamav-freshclam start

Scan and kill virus if found at 03:00am on every day :
扫描和杀毒定义在每天夜里3点:
sudo crontab -e

0 3 * * * clamscan -r -i –remove /home > /home/samiux/scan.txt

Remember to configure the ClamAV’s 15 threads to 3 or less in order to reduce the consumption of CPU resources but the con is that it take a longer time to complete the virus scan of the whole system :
为减少CPU资源的消耗,把ClamAV配置文件中的15线程,改为不多于3个。因此整个系统的病毒扫描需要更多的完成时间。
sudo dpkg-reconfigure clamav-base

Remarks : The current version of ClamAV at the time of this writing cannot scan RAR files. It is a bug and it will be fixed later.
说明:ClamAV当前版本不能扫描RAR文件。这个bug将来会补上。


HOWTO : Home made NAS server with Ubuntu 8.04.1 – Part VII
[HOWTO] 用Ubuntu 8.04.1搭建NAS服务器 – Part VII

Some personal NAS in the market comes with iTune music server. However, iTune is not an Open Source software.
市场上一些家用NAS带有iTune音乐服务。不过iTune不是开源软件。

Sockos is an Open Source personal music server that written in Java. She requires Sun’s Java Runtime. IcedTea is not compatible so far.
Sockos是一个java编写的开源个人音乐服务。要求sun的jre支持。目前还不能兼容IcedTea。

Sockos is a cross platform software and requires no installation. She can run on a standalone personal computer or on a server. For running on personal computer with GUI, please refer to her official site.
Sockos是跨平台的,不需要安装。可以独立运行在个人PC机或服务器上。如果运行在有GUI界面的个人机上,请指向它的官方站点。

The client computer requires no mp3 player to play the music but may need Flash (optional). Flex player requires no installation of music player on the clinet computer. Other formats, such as WMV, OGG and Flac, require pre-installed music players that fit for the special formats.
客户机上播放音乐,不需要mp3播放器,可能需要Flash。客户机上的Flex player不需要安装。其他的格式,如WMV, OGG and Flac,需要预先安装相应的播放器。

The advantage of Sockos is that you can listen to your mp3 files at anytime and anywhere under the condition that fast internet connection is available. The disadvantage is that you should have at least IEEE 802.11g (54M) Wifi connection for smooth operation. GPRS and HSDPA do not work properly in my testing.
使用Sockos的优点是,在有快速互联网连接时,你可以在任何时间任何地点听你的mp3文件。缺点是,你至少要有EEE 802.11g (54M) Wifi,才能有平滑的操作。经过测试,GPRS和 HSDPA无法正常运行。

linux

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyfzgs.html