If you get many of these in your massages log, it is as a result of spammers hitting the mail server with bogus domains and the DNS is trying to resolve the IP to the domain, it is coming back false, and the mail server drops the message as designed.

Continue reading

I noticed a strange error while uploading files. My server does not allow any file to be uploaded above the 128kb, even when the settings in /etc/php.ini are set to higher sizes. After a lot of searching I managed to find the solution: add the following to the file /etc/httpd/conf.d/fcgid.conf :

Continue reading

Set up Perlbrew

HTML development work often is done remotely with all dangers of messing up a production version. My friend Gurunandan Bhat suggested I set up a local development environment. As always all credit goes to him for his support. This is therefore a howto for anyone eager to set up a local development environment for a dynamic web site.

Continue reading

How to use GIT

Set up a git account on github.com. Upload your ssh key. To verify this is done click on top right Account Settings, then ssh keys on left. Then proceed to create a repository on Github. Don’t add a README. On your local machine, go into your application folder. Type git init This creates a .

Continue reading

I have been receiving alerts from root that “Device: /dev/sda [SAT], 4 Currently unreadable (pending) sectors”. As all my data is backup properly I don’t worry about it. Googling it, I didn’t find a straight answer for this. smartctl –all /dev/sda | grep -e “Reallocated_Sector_Ct” -e “Current_Pending_Sector” -e “Offline_Uncorrectable” -e “UDMA_CRC_Error_Count” -e “Hardware_ECC_Recovered”

Continue reading

Normally your photos in your digital camera are saved with some number which says very little and may conflict with the next batch after you clear your memory. One of the best programs I have ever used to rename my photos is jhead. This takes the date when the picture was actually taken.

Continue reading

prompt colour

As I often work on multiple servers it is rather dangerous that one give a command on the wrong server. To minimise the risk it is good practise to colour the terminal prompt by adding this at the end of the ~/.bash_profile file. export PS1="\e[0;32m\u\e[m\e[0;32m@\h\w \$ \e[m" and something like this in the root of the same server (i.

Continue reading

Mailman

I was looking at creating a simple alias to enable to send a mail out to everybody. My first thought was to set an alias in /etc/aliases but that didn’t work as the email is was not recognized by postfix. I use ISPconfig, the latest version of which is supposed to support mailman.

Continue reading

Samba logging

A staff member came to me to state that his Yahoo account had been hacked from our company account, or so he claimed. This made me look at the samba logs and realise that user logging was not actually implemented while it is relatively easy to do so. This is used on Ubuntu 11.

Continue reading

systemctl enable name-of-the-service To use Samba as an example systemctl enable smb.service systemctl enable nmb.service systemctl start smb.service systemctl start nmb.service All that the first command does is create a symlink ln -s ‘/usr/lib/systemd/system/smb.service’ ‘/etc/systemd/system/multi-user.target.wants/smb.service’ Thus /etc/systemd/system/multi-user.target.wants contains all services that need to start automatically.

Continue reading

Tape Backup

To make a tape backup, give the following two commands on the terminal of the Felicity Linux server. The first one rewinds the tape to the beginning and the second one makes the actual backup. Just cut and paste the following two lines, press enter, and leave it for the machine to do the backup.

Continue reading

Author's picture

Our Man in India

A man who is the representative of a country or organization in a particular place. The expert in the field.

Management Consultant

Goa, India