How to Skype

ติดตั้งโปรแกรมเรียบร้อยแล้ว

log in เข้าโปรแกรม

skype_login
Read more

apache directive for mod mono

MonoAutoApplication disabled AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd MonoDocumentRootDir “/var/www/webXX/web/”

MonoServerPath appliz “/usr/local/bin/mod-mono-server4″

MonoApplications appliz /:/var/www/webXX/web/

MonoExecutablePath appliz /usr/local/bin/mono

SetHandler mono MonoSetServerAlias appliz AddHandler mod_mono .aspx .ascx .asax .ashx .config .cs .asmx Options FollowSymLinks AllowOverride All จดไว้

how to config network in virtualbox

ทำการ set network เป็นแบบ bridge = เสมือนอยู่ใน network เดียวกันกับ  Host แล้ว

แก้ไข IP address เป็น fix ip วงเดียวกัน

จุดประสงค์เพื่อใช้ทดสอบ ออกภายนอกได้ forward port เข้ามาได้

 

 

 

 

 

 

munin-node Mysql5 Centos5

# yum install perl-Cache perl-Cache-Cache
# yum install perl-IPC-ShareLite perl-DBD-MySQL

cat /usr/local/directadmin/conf/mysql.conf
user=user
passwd=removed

nano /etc/munin/plugin-conf.d/munin-node
env.mysqlopts -u user -ppassword

ln -s /usr/share/munin/plugins/mysql_* /etc/munin/plugin/

สั่งรันใหม่ แล้วยังมี error

error Name "main::field" used only once: possible typo at /etc/munin/plugins/mysql_isam_space_ line 216
Plugin "exim_mailstats" exited with status 1024. --received.value 0

ตามไปลบ link plug in ที่มีปัญหา ออกจาก /etc/munin/plugins


แหล่งลอก 1 2 3

How to use Rtorrent

เข้า screen ไปสั่งรัน rtorrent

คำสั่งเบื้องต้น

screen –S xx1 สั่ง screen เปิด session ชื่อคำว่า xx1 ต่อท้าย

screen ctrl a d ออกจาก screenและ detached ไว้

screen –ls list ดู session

screen –r xx1.yyy resume session

screen –D xxx สั่งให้ session attached เป็น detached

เริ่ม

:~$ screen -ls
No Sockets found in /var/run/screen/S-web13_b.

เช็คว่า มี screen ที่ทำทิ้งไว้หรือเปล่า

หรือ :~$netstat -anp | grep 51005

51005 เป็นพอร์ตที่เซตไว้ เพื่อเช็คว่า ได้รันโปรแกรมทิ้งไว้หรือเปล่า

:~$screen –S 123

จะเปิดหน้าต่างหน้าว่าง (ขณะนี้อยู่บน screen 123 แล้ว)

web13_b@X:~$rtorrent

สั่งเปิดโปรแกรม rtorrent

กด ctrl a d เพื่อค้างหน้าทำงานหน้านี้ และออกไปหน้าแรก

เช็คพื้นที่

1:~$quota กด enter

Filesystem blocks quota        limit grace   files   quota   limit   grace
/dev/sda1 18970360 35840000 35841024             103       0       0

blocks size ปัจจุบัน

quota ที่จำกัดไว้

grace คือไรไม่รู้ ..

2:~$ du –hs กด enter
19G     .

Chaho Matcha Soy Milk Green Tea Powder

Chaho Matcha Soy Milk Premium Green Tea Powder 240 g

http://www.chaho.co.th/o_matcha.php?chk=10&bt=1

ได้ชิมฟรีกล่องนึง หอมๆ กลิ่นเขียวๆ ไปหน่อย แต่ก็อร่อยดี กินง่ายอะไรก็อร่อย …

FireSSH

สะดวกดี แก้ไขกับ nano บางครั้งเละเทะให้สับสนบ้าง

เวลากด copy/paste ให้กด shift ร่วมด้วย

เจ้าของเดียวกับ fireftp p p p p :P

ISPConfig V2 Activities

เนื่องจากมีการเพิ่ม domain แล้ว .. ด้วยความรวดเร็ว ispconfig ทำงานไม่ทัน (มั้ง)

ไฟล์ log  แสดงการทำงานของ ispconfig

/home/admispconfig/ispconfig/ispconfig.log

 

อีกส่วนใน log ของ apache-tomcat มี error เป็นซากเวบที่เคยใช้งาน

ขึ้นเตือนเฉยๆ เอาออกซะ

ERROR org.apache.catalina.core.ContainerBase.[Catalina].[xxx.com].

ลบ xxx.com ในนี้ทิ้ง แล้วสั่งรันใหม่

/usr/lib/apache-tomcat/work/Catalina

 

เกี่ยวกันรึเปล่าไม่รู้ แต่ลบแล้วหาย error

 

จบบบ

Move torrent when job done

เพิ่ม

system.method.set_key = event.download.finished,move_complete,"execute=mv,-u,$d.get_base_path=,~/ที่เก็บไฟล์/download/;d.set_directory=~/ที่เก็บไฟล์/download/"

 

โหลดเสร็จแล้วย้าย ไฟล์ยังทำงานอยู่ ใช้งานได้ จบ

how to install rtorrent

วิธีติดตั้ง ทำบน debian 5

สั่งลง apt-get install rtorrent

สร้าง config เก็บใน home ของ user

:~$nano .rtorrent.rc

 


#Copy and Paste Below here
#Start of .rtorrent.rc

#Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
max_peers = 80

# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
max_peers_seed = -1

# Maximum number of simultanious uploads per torrent.
max_uploads = 15

# Global upload and download rate in KiB. "0" for unlimited.
download_rate = 700
upload_rate = 200

# Default directory to save the downloaded torrents.
directory = ~/Torrents

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = ~/Torrents/session

# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=~/Torrents/watch/*.torrent
schedule = untied_directory,5,5,stop_untied=

# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=100M

# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0

# The ip address reported to the tracker.
#ip = 127.0.0.1
#ip = rakshasa.no

# The ip address the listening socket and outgoing connections is
# bound to.
#bind = 127.0.0.1
#bind = rakshasa.no

# Port range to use for listening.
port_range = 51001-51001

# Start opening ports at a random position within the port range.
port_random = no

# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
check_hash = yes

# Set whetever the client should try to connect to UDP trackers.
use_udp_trackers = no

# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa

# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
encryption = allow_incoming,try_outgoing,enable_retry

#
# Do not modify the following parameters unless you know what you're doing.
#

# Hash read-ahead controls how many MB to request the kernel to read
# ahead. If the value is too low the disk may not be fully utilized,
# while if too high the kernel might not be able to keep the read
# pages in memory thus end up trashing.
hash_read_ahead = 8

# Interval between attempts to check the hash, in milliseconds.
hash_interval = 10

# Number of attempts to check the hash while using the mincore status,
# before forcing. Overworked systems might need lower values to get a
# decent hash checking rate.
hash_max_tries = 5

# Max number of files to keep open simultaniously.
#max_open_files = 128

# Number of sockets to simultaneously keep open.
#max_open_sockets = <no default>

#####Comment out this section if not needed
####scedule an unlimited download throttle at 00:15
#schedule = throttle_1,00:00:15,24:00:00,download_rate=0

#####scedule an download throttle at 06:00
#schedule = throttle_2,06:00:00,24:00:00,download_rate=50

#Finish of .rtorrent.rc

แก้ไขค่า ที่เก็บไฟล์ สปีดดาวโหลด อัพโหลด port ตามใจชอบ

 
จบ