Profile cover photo
Profile photo
Dara Theam
701 followers
701 followers
About
Posts

Post has attachment
glusterfs basic
* information * - host1: 192.168.58.22 - host2: 192.168.58.75 - /dev/sdc1, on both hosts, and will be used in glusterfs configuration - update your hosts file or dns server to  match hostname and ip 1- install glusterfs-server on both host $ sudo apt-ge...
Add a comment...

Post has attachment
restart rsync when there's no more data receive
after a certain period of connection problem, rsync will not resume its downloading, so the following script will check on rsync data transfer and restart it , when it's necessary. ** pyrsync.py ** import subprocess import re import os def killBynName(n...
Add a comment...

Post has attachment
some basic etcd commands
1- enable etcd to listen on other interface, for example you have set your eth0 with ip 192.168.58.75, so the etcd configuration in /etc.default/etcd will be ETCD_LISTEN_CLIENT_URLS="http://localhost:2379,http://localhost:4001,http://192.168.58.75:2379" ETC...
Add a comment...

Post has attachment
add self issure ca to linux and firefox trusted ca
* add to linux * 1- for example we have ca.crt, so copy it to ca directory $ sudo cp ca.crt /usr/share/ca-certificates/mozilla/myca.crt 2- use the following command to start the update $ update-ca-certificates  3- then we can use command below to check ...
Add a comment...

Post has attachment
host asp.net on linux host
1- install xsp, asp.net standalone webserver $ sudo apt-get install mono-xsp 2- create a directory call asp.net and create the following file $ sudo mkdir asp.net $ cd asp.net - for debug purpose, Web.Config <configuration>     <system.web>         <customE...
Add a comment...

Post has attachment
cisco, reactive to link failure two hops away
*****info               ------------r3 -------(30.0.0.1)p1 ------------ cl1-->r1                                           internet              -----------r2 -----------(30.0.0.5)p2---------- 1- r1 configuration track 1 ip sla 1 reachability ! trac...
Add a comment...

Post has attachment
ceph storage configuration introduction
** setup info - admin pc : ip: 192.168.58.42, name:anode - mon pc: ip 192.168.58.151, name cnode1 - osd0 pc: ip 192.168.58.152, name: cnode2, add another disk /dev/sdb - osd1 pc: ip 192.168.58.153, name: cnode3, add another disk /dev/sdb - client pc: ip: ...
Add a comment...

Post has attachment
variance of khmer lunar calendar
in lunar calendar, we have to add days to keep pace with solar calendar, since there's only 354 days a year. so we use big leap year to small leap year to add all  those missing days. the calendar below has the following rules - big leap year we add a month...
Add a comment...

Post has attachment
configure cisco router to send logs to syslog server
1- install syslog server $ sudo apt-get install syslog-ng 2- configure syslog server, edit its configuration file  /etc/syslog-ng/syslog- ng.conf, as below @version: 3.7 @include "scl.conf" @include "`scl-root`/system/tty10.conf" options { chain_hostnames(o...
Add a comment...

Post has attachment
configure streaming media server using icecast2
1- install necessary packages $ sudo apt-get install icecast2 dir2ogg oggfwd 2- the icecast2 config file /etc/icecast2/icecast.xml should look like below <icecast>     <location>Earth</location>     <admin>icemaster@localhost</admin>     <limits>         <c...
Add a comment...
Wait while more posts are being loaded