After the Chinese attacked my system trice recently I am a bit paranoid about securing my system. I used to sync data using rsync which uses ssh. However, using this as root is not a good idea hence I decided to use rsync as a non-root user without a prompt for a password.
You use a Postfix setup with amavisd-new and get the following errors in your mail log: status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) The solution is to restart both amavisd-new and Postfix and then check with netstat -tap that both are running on the ports 25 and 10025 (postfix) and 10024 (amavisd-new).
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 :
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.
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 .
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”
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.
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.
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.
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.
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.
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.