All posts by avnva

02Oct/14

SHELLSHOCK

Shellshock is a bash vulnerability which has a bigger and wider footprint in the World Wide Web.
bash is pervasive is just about any variance of *nix.

To test for vulnerability.

$ env x='() { :;}; echo vulnerable' bash -c "echo this is a test"

have fun patching it up.

28Jul/14

PE get together

Was a nice session last night attending Celes annual get together. Met lots of interesting people with great personality.

Many inspired me with their determination and zest in life. Always seek and try out things that inspired you,  things that you yourself felt worthwhile for you effort, that thing may potentially be what you’re searching for  all this life,  your dream job. No matter how  remote the idea is. Give it a try.

WanXuan took the plunge  and got a job in China. Chloe start dreaming big and work towards her goal as a life coach. Ngee Kee  moved out of IT to start his own career coaching and consultation business.

What we  need is the thought of giving and sharing, the idea of creating value for others, and not  what the returns or rewards. When we  bring enough value to others,  others will bring value to us.

Anchoring thoughts

施比接更有福
Give and you shall receive
Just do it

03May/14

Customising CentOS 6.5

Install CHROME following instruction from Ravi Saive
http://www.tecmint.com/install-google-chrome-on-redhat-centos-fedora-linux/

Enable Sudo by adding below to /etc/sudoers

username ALL=(ALL) ALL

Install EPEL Repo

wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

Enable NTFS

yum install ntfsprogs

Speedup bootup by disabling kdump

[root@Host-001 username]# chkconfig | grep kdump
kdump 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@Host-001 username]# chkconfig kdump off

Influence yum repo by modifying timedhosts.txt file.

[root@Host-001 yum.repos.d]# cat /var/cache/yum/i386/6/timedhosts.txt
repo.apiknet.co.id 0.341011047363
centos.mirror.secureax.com 0.142287969589
mirror.smartmedia.net.id 0.205235958099
mirror.axarva.co.id 0.133571863174
mirror.nus.edu.sg 0.004839048386
ossm.utm.my 1.15346980095
mirror.oscc.org.my 0.141036987305
centos.biz.net.id 0.154747009277
mirrors.hostemo.com 0.48002910614
kartolo.sby.datautama.net.id 0.357422113419
buaya.klas.or.id 0.277396202087
mirror.upsi.edu.my 0.156529188156
centos.ipserverone.com 0.143703937531
singo.ub.ac.id 0.302852869034
[root@Host-001 yum.repos.d]#

Modify /etc/fstab for SSD. Enabling TRIM, reduce write.

/dev/mapper/VolGroup-lv_root / ext4 defaults,discard,noatime,nodiratime 1 1
 UUID=33ab3417-0f2d-48e6-adf3-5795098b07bf /boot ext4 defaults 1 2
 /dev/mapper/VolGroup-lv_home /home ext4 defaults,discard,noatime,nodiratime 1 2
 /dev/mapper/VolGroup-lv_swap swap swap defaults,discard,noatime,nodiratime 0 0
 tmpfs /dev/shm tmpfs defaults 0 0
 devpts /dev/pts devpts gid=5,mode=620 0 0
 sysfs /sys sysfs defaults 0 0
 proc /proc proc defaults 0 0
 tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0

Enable TRIM for LVM modifying /etc/lvm/lvm.conf

issue_discards = 1