Posts tagged with

Server

Currently unreadable (pending) sectors

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” …

Read more →

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 …

Read more →

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.04 but the same should …

Read more →

Uploading a file in Mediawiki

Uploading a file is easy if you see the upload link. I didn’t. To ensure you see it you have to change the setting in LocalSettings.php $wgEnableUploads = true; You may get an error **Could not create directory “mwstore://local-backend/local-public/ **and some more alpha characters. This turned out …

Read more →