Monthly Archives: March 2014

Simple anti-spam Measure for Email

I use a very simple system with my incoming email addresses that reduce spam to almost zero.

If you have your own domain or if your ISP allows you to setup aliases/forwrding to your real email address it is simple.

Whenever you deal with a new company, set-up a new email address. Whenever you have to open an account with a company say its called spammers inc. 🙂 After all most, if not all companies only want your details to spam you with marketing or pass your details on for a profit. Anyway, create a forwarding address to your real email address called from_spammers_inc@yourdomain.co.uk If you later start to get junk mail from anyone other than spammers inc on that address you know they have passed your email address on.

Continue reading

Installing and Configuring ssh

I install openssh server and sort out the configuration of ssh so I can login to other machines locally without a password. This is a security risk! I also want to use Xwindows programs installed and run on one machine while actually running on another, hence the ForwardX11 bit. Also considered a security risk by some.

Continue reading

Installing and Configuring Zentyal 3.3 on Ubuntu 12.04-LTS Part 3

Welcome to part three. If you missed part 1, Initial installation and configuration you can see it here. The second part setting up users and domains is here

In part three we will be setting up

  • Email
  • Securing Web Based Email
  • Anti-Spam/Virus Measures
  • Grey Listing

Continue reading

Getting a USB Logitech Rumblepad Working on Linux

Logitech ignore Linux so do not provided any drivers or help 🙁 but most are already catered for by the kernel.

cat /dev/input/js0

If you see some unusual characters on the screen it means Linux found your USB rumblepad. (It’s a good sign).

sudo apt-get install joystick

joystick is a program to calibrate the gamepad from the console. Use these commands to calibrate and then test the rumble pad. There will be a whole bunch of numbers on the screen which should change as you press buttons and wiggle the joysticks.

jscal /dev/input/js0
jstest /dev/input/js0

Split Large Files and Rebuild Them

The other day I needed to transfer a 3.8G file over ftp. The problem was that the ftp server timed out and logged me out when only around a third of the file was transferred.

So I needed to split the file into small chunks and send those. Then you have the problem of sticking all the fragments back together again. Thankfully I’m not on Windows 🙂 I use Linux so this was all done with standard Linux commands.

First I split the file into 500Mb fragments.

Continue reading

Find The Memory Usage of a Process

Well this was something i needed to do the other day and as I would not need to do it again for some time, and would therefore forget what i did. I simply wrote it down for later use :-);

Take a look as the man page for the command ps. Well that’s about it really. Ok, a little more info would be nice.

What is needed is to change the format of the output to give the required information. I my case I wanted to see only the PID, user name, the command name and the memory usage. This will give the following:

ps -o pid,euser,comm,rss

In the man page take a look at the section STANDARD FORMAT SPECIFIERS there are a whole bunch of them to choose from.