Click Technology Limited

Just another WordPress weblog

How can I secure my Linux box?

December11

This is a long and detailed topic, and there’s plenty to read on the interweb, but you should definitely consider items such as….

which dynamically update your firewall rules when your machine is attacked amongst other features.

For hardening, try Bastille Linux.  RTFM first, as this could be problematic if you screw up.

posted under General | No Comments »

How do I downsize a Hi-Def movie?

August22

In Debian / Ubuntu, use avconv.


somebody@your-laptop:~$
avconv -i input.mp4 -b 64k -s hd720 -strict experimental output.mp4

This command uses avconv, where..

-i input.mp4 = the input file name
-b 64k = down sample the audio channel to 64k – should be fine.
-s hd720 = reduce the video from hd1020 to the 720 format
-strict experimental = Allows mp4 output
output.mp4 = the output file.

If you haven’t got avconv installed, use

somebody@your-laptop:~$ sudo apt-get install avconv

and follow instructions.

posted under General | No Comments »

How do I change my MAC Address?

August13

In Ubuntu, just open a terminal window and type

somebody@your-laptop:~$
sudo macchanger eth1 -r

This will change the wifi address, as your physical CAT 5 port is prolly eth0.  The command above will change the MAC address to a random MAC address.

Sweet!

posted under General | No Comments »

How do I renew my DHCP Address?

August13

In Ubuntu, just open a terminal window and type

somebody@your-laptop:~$ sudo dhclient -r

That should drop (release) the address.  To renew it…

somebody@your-laptop:~$ sudo dhclient

Simples!
posted under General | No Comments »

What CPU do I have?

June15

In Ubuntu, just open a terminal window and type


somebody@your-laptop:~$ cat /proc/cpuinfo

Compare it here.

Simples!

posted under General | No Comments »

MySQL Table Data Copy

June4

To copy data and a table structure in the same database, ay to backup a table, here’s the code…


CREATE TABLE new_tbl SELECT * FROM orig_tbl;

Simple as.

posted under General | No Comments »

How do I tell what version of Linux I’m running?

May5

Good question, and an annoying one as I can never remember the command. It is..

somebody@your-laptop:~$ lsb_release -a

Sweet!

posted under Linux Tips | No Comments »

What hardware do I have?

April23

You need to know what hardware you’ve got in your Linux box?

Easy..

somebody@your-laptop:~$ sudo lshw

Job done.

posted under Linux Tips | No Comments »

mp3, Sound Juicer and all that…

April8

One of the annoying things about MP3 apps on Linux is that, given it’s the most popular ripping format in the world (prolly), I can’t see why Linux tends not to include it as a default sound format.

I think the reason is summat to do with copyright or something?  Anyway, whatever.

The solution to get MP3 support into your machine is to open a terminal and issue this command..

somebody@your-laptop:~$ sudo apt-get install gstreamer0.10-plugins-ugly-multiverse

Once installed, the MP3 option in applications appears so Sound Juicer / Rhythmbox suddenly have MP3 available – sweet!

posted under Linux Tips | No Comments »

Mail Ports

April6

Network ports used in conjunction with IP addresses are used to define the TCPIP socket for network connections between hosts on an (inter)network so they can communicate with each other.  Some port numbers are classics and here are those used for electronic mail.

POP3 – port 110

IMAP – port 143

SMTP – port 25

HTTP – port 80

Secure SMTP (SSMTP) – port 465

Secure IMAP (IMAP4-SSL) – port 585

IMAP4 over SSL (IMAPS) – port 993

Secure POP3 (SSL-POP) – port 995

posted under Linux Tips | No Comments »
« Older Entries