Mount S3 on linux Amazon S3 Important considerations when using s3fs, namely related to the inherent limitations of S3: – no file can be over 5GB – you can’t partially update a file so changing a single byte will re-upload […]
LPI 102
I passed my Exam today, 650/800 My Notes: xwininfo – shows X11 color depth GPG send a encrypt file – use the user publick key to encrypt locale – Get locale-specific information, dont display Timezone gok – on-screen keyboard echo […]
Linux Kernel Modules
> Manage/Query kernel and kernel modules at runtime Key files, terms and utilities include: /lib/modules/kernelversion/modules.dep – Kernel module interdependencies /etc/modules.conf & /etc/conf.modules – modprobe configuration file (new and old) Commands | Description depmod | Determine module dependencies insmod | Insert […]
TCP Send-Queue
Script to monitor the TCP Send-Queue. Send-Q is retrived from the netstat cmd. ex.: #netstat -anp |more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name The script syntax example: #check_sendq -w 900 […]
How to connect to a NFS server share
The RedHat linux client that will connect to a NFS server. Needs to have portmap and if you dont want dynamic ports, enter static ports into /etc/sysconfig/nfs, for example: RQUOTAD_PORT=875 LOCKD_TCPPORT=32803 LOCKD_UDPPORT=32769 MOUNTD_PORT=892 STATD_PORT=662 STATD_OUTGOING_PORT=2020 1. Start portmap service portmap […]
How to use selenium with nagios
How to use selenium with nagios_server 1. Install mozilla firefox headless(no GUI) yum install xorg-x11-server-Xvfb.x86_64 xfonts-base xfonts-75dpi xfonts-100dpi firefox ImageMagick.x86_64 — Starts firefox on virtual gui DISPLAY=:1 firefox http://google.com & — test and check Xvfb :1 -screen 1 1024x768x24 & […]
memcached 1.4.13 rpm
I have compiled the rpm for CentOS/RedHat 5.x 32bits and 64bits The steps are to create a rpm package from source. If you need to just install, download it x64bits x32bits Requires # yum install libevent livevent-devel (make sure its […]