Software

You are currently browsing the articles from KomKid.Net matching the category Software.

Ubuntu : Install ClamAV

1.ติดตั้ง ClamAV และ Update

1
2
3
4
5
apt-get install clamav
apt-get install clamav-daemon
/etc/init.d/clamav-daemon restart  
freshclam  #update virus definitions
clamscan -r /location_of_files_or_folders

2.Schedule Scan

1
2
crontab -e
00 00 * * * clamscan -r location_of_files_or_folders

3.Log and Quarantine

1
2
mkdir /var/log/clamav/infected
nano /etc/clamav/clamscan_schedule.sh

ป้อน

1
2
3
4
5
6
7
8
9
10
#!/bin/sh
### fix log file if needed
LOG_FILE="/var/log/clamav/scan.log"
if [ ! -f "$LOG_FILE" ]; then
touch "$LOG_FILE"
chmod 644 "$LOG_FILE"
chown clamav.clamav "$LOG_FILE"
fi
 
clamscan -r /public_data --quiet --log="$LOG_FILE" --verbose --move=/var/log/clamav/infected
1
chmod +x /etc/clamav/clamscan_schedule.sh

Written by Komkid on April 26th, 2010 with no comments.
Read more articles on Software and Ubuntu.

Ubuntu : Install FreeNX

FreeNX เป็นคนละตัวกับ NXServer ของ nomachine ครับ (ของ nomachine จำกัดแค่ 2 session เอง)
1.เพิ่ม repository

1
nano /etc/apt/sources.list

เพิ่ม

1
2
deb http://ppa.launchpad.net/freenx-team/ppa/ubuntu VERSION main
deb-src http://ppa.launchpad.net/freenx-team/ppa/ubuntu VERSION main

เพิ่ม key แล้ว update

1
2
 apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2a8e3034d018a4ce
apt-get update

2.ติดตั้ง server

1
aptitude install freenx

3.ติดตั้ง client (ใช้ของ nomachine)

1
2
wget http://64.34.161.181/download/3.4.0/Linux/FE/nxserver_3.4.0-12_i386.deb
dpkg -i nxclient_3.4.0-5_i386.deb

4.กรณีต้องการเปลี่ยน SSH key

1
dpkg-reconfigure freenx-server

เลือก Create new custom keys
จะได้ key อยู่ที่ /var/lib/nxserver/home/custom_keys/client.id_dsa.key สำหรับเอาไป import เข้า nxclient
อาจ copy ไปโดยให้คำสั่ง
ที่ server

1
cp /var/lib/nxserver/home/custom_keys/client.id_dsa.key ~/

ที่ client

1
scp user@freenx-server:~/client.id_dsa.key ~/

Written by Komkid on April 26th, 2010 with no comments.
Read more articles on Admin and Networking and Software and Ubuntu.

eXtplorer : PHP, AJAX File Manager

แนะนำ file manager น่าใช้ครับ ใช้ร่วมกับ Joomla ได้ด้วย
eXtplorer

eXtplorer is a web-based File Manager. You can use it to

* browse directories & files on the server and
* edit, copy, move, delete files,
* search, upload and download files,
* create and extract archives,
* create new files and directories,
* change file permissions (chmod) and much more…

You can even use eXtplorer to login to the FTP server (like net2ftp) and work as if you were using an FTP client. Access via WebDAV is also possible (requires some extra work and a database!).

eXtplorer is released under a dual-license: You can choose wether you want to use eXtplorer under the Mozilla Public License (MPL 1.1) or under the GNU General Public License (GNU/GPL). Note that if you decide to distribute/use eXtplorer under the MPL, you are not allowed to use the ExtJS Javascript library.

eXtplorer needs at least PHP 4.3 on the server and an up-to-date browser with Javascript enabled to run.

http://extplorer.sourceforge.net

Written by Komkid on December 6th, 2009 with no comments.
Read more articles on Admin and Internet and Software.

Open Visio file with Dia

Dia เปิดไฟล์ของ Visio (*.vsd) ตรง ๆ ไม่ได้ แต่เปิด XML Drawing (*.vdx) ได้
ดังนั้นก็ง่าย ๆ ด้วยการเปิดไฟล์ Visio แล้ว Save as เป็น XML Drawing (*.vdx) ดังตัวอย่าง
visio_xml_drawing
dia_xml_drawing

Written by Komkid on November 23rd, 2009 with no comments.
Read more articles on IT Tips and Software.

Cleanse the free space on a logical disk

เอาพื้นที่ของฉันคืนมา!
ทั้งที่ ๆ ลบไฟล์ออกแล้ว แต่พื้นที่ว่างกลับไม่เพิ่มขึ้นซักเท่าไหร่ มาลองวิธีนี้ดูครับ

วิธีที่ 1.
download file จาก http://download.sysinternals.com/Files/SDelete.zip
แตกไฟล์แล้วเรียก run ผ่าน cmd

sdelete -c drive

เช่น

sdelete -c c:/

จาก http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx

วิธีที่ 2.
download file จาก http://www.feyrer.de/g4u/nullfile-1.02.exe

แล้วก็ Double Click จากนั้นก็รอจนโปรแกรมทำเสร็จ

จาก http://kakku.wordpress.com/2008/06/23/virtualbox-shrink-your-vdi-images-space-occupied-disk-size/

Written by Komkid on September 3rd, 2009 with no comments.
Read more articles on IT Tips and Software.

« Older articles

Newer articles »