How to setup dnydns for freebsd

You can script this yourself or you can use one of two clients available in the ports collection. ipcheck – written in python opendd – written in C I chose opendd since it is written in C and is not dependant on other packages (e.g. python being installed). There are a lot of Dynamic DNS [...]

Read full story · Comments { 0 }

How to access HP ILO via a ssh tunnel

Sometimes your HP ILO web interface may only be accessible via a  jump box in a DMZ. In this case you may be able to access it with an ssh tunnel. Here is how. download putty.exe and plink.exe  — plink is a command line interface to putty. Here are the official putty and plink site [...]

Read full story · Comments { 0 }

Mysql Proxy on freebsd

This took me a while to work out.   When people create databases for web applications e.g. for  wordpress or forums, they typically use localhost. For whatever reason it is hardcoded in the mysql client library to use unix domain sockets in every case if ‘localhost’ is used. You can’t even turn this off. To get [...]

Read full story · Comments are closed

Virtualmin FreeBsd tip

I came across a problem when i added more than certain amount of domains on my freebsd webserver, where apache would no longer start. The problem is there is limit in apache to how many accounts the apache user account can be a group of. Anyway the fix is to remove www from /etc/group for [...]

Read full story · Comments are closed

Manage cronjobs with VCS Application

Here is how I fail over application account cronjobs using VCS. Application Appx_cronjobs ( Critical = 0ff StartProgram = “/usr/bin/su – appxusr -c “touch ./crontab.LAST”" StopProgram = “/usr/bin/su – appxusr -c “/usr/bin/rm -f ./crontab.LAST”" CleanProgram = “/usr/bin/su – appxusr -c “/usr/bin/rm -f ./crontab.LAST”" MonitorProgram = “/usr/bin/su appsusr -c /etc/VRTSvcs/utils/vcs_cron_monitor.sh” ) # vcs_cron_monitor.sh Script. #!/bin/ksh ME=`/usr/ucb/whoami` [...]

Read full story · Comments { 0 }

Top Space Users In A Filesystem

# A fast way to find a file du -a | grep -i # Top 10 space users in a filesystem du -a | sort -n | tail -10 Link to this post!

Read full story · Comments { 0 }

How to tell process owning open socket without lsof

Normally with lsof lsof -i tcp: I found this alternative for if lsof is not available on a server to determine the process associated with an open socket Loop through all the running processes with this command till you find it. pfile | grep “port:” Sorry but I think it is only available on Solaris [...]

Read full story · Comments { 0 }

SQUID Cache In Jail

Here is how i setup a squid cache server in it’s own jail compiling ensure you select no NIS in /etc/make.conf before you compile in /etc/rc.d squid_enable=”yes” squid_user=”root” NB you must run as root otherwise you will get permission errors when squid tries to run on port 80 as squid.   Link to this post!

Read full story · Comments are closed

How to change the hostname of a VCS server

PROBLEM Keep seeing old host name of hostname in hastatus output after changing hostname of cluster node bash-3.00# /opt/VRTSvcs/bin/hastatus -sum Link to this post!

Read full story · Comments { 0 }

Apache MYSQL VirtualMin PHP5

These are the steps I carry out to setup a jailed webserver For starters we don’t want to be compiling X libraries and NIS so first off vi /etc/make.conf NO_X=true NO_X11=true WITHOUT_X11=true NO_NIS=true WITHOUT_NIS=true /etc/nsswitch.conf group: files hosts: files dns networks: files passwd: files shells: files cd /usr/ports/databases/mysql51-server make install cd /usr/ports/database/mysql51-client make install /usr/ports/databases/mysql51-scripts [...]

Read full story · Comments are closed