Linux

Zip Example: How to Do!

The zip command under UNIX is use for a compression. It works…

The zip command under UNIX is use for a compression. It works as a file packaging utility for the following operating systems:

1. Unix
2. VMS
3. MSDOS
4. OS/2
5. Windows 9x/NT/XP, 6. Minix
7. Atari
8. Macintosh
9. Amiga
10. Acorn RISC OS.

Simple Examples

The syntax is as follows:

zip file.zip file1.txt file2.doc photo.jpg ...

To zip resume.doc and all *.c file, enter:

zip bacup.zip resume.doc *.c

To zip data directory, enter:

zip -r backup.zip data

UFW - Uncomplicated Firewall

UFW – Uncomplicated Firewall

The default firewall configuration tool for Ubuntu is ufw. Developed to ease…

The default firewall configuration tool for Ubuntu is ufw. Developed to ease iptables firewall configuration, ufw provides a user friendly way to create an IPv4 or IPv6 host-based firewall. By default UFW is disabled.

Gufw is a GUI that is available as a frontend.

Basic Syntax and Examples

Default rules are fine for the average home user

When you turn UFW on, it uses a default set of rules (profile) that should be fine for the average home user. That’s at least the goal of the Ubuntu developers. In short, all ‘incoming’ is being denied, with some exceptions to make things easier for home users.

Enable and Disable

Enable UFW

To turn UFW on with the default set of rules:

sudo ufw enable

To check the status of UFW:

sudo ufw status verbose

The output should be like this:

How To: PPTP VPN on Ubuntu 12.04 (pptpd)

PPTP VPN on Ubuntu 12.04 (pptpd)

Install Software sudo apt-get install pptpd ufw Allow Ports 22 and 1723…

Install Software
sudo apt-get install pptpd ufw

Allow Ports 22 and 1723 on UFW and Enable UFW
Warning: if you are connected to SSH on a port other than 22, please adjust the first command accordingly so you don’t get kicked off.

sudo ufw allow 22
sudo ufw allow 1723
sudo ufw enable

Edit /etc/ppp/pptpd-options
use your favourite editor in this case I use “sudo nano /etc/ppp/pptpd-options” and make sure you have the following parameters for encryption.

refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128

What Most Schools Don't Teach - Short Film

What Most Schools Don’t Teach

Learn about a new “superpower” that isn’t being taught in 90% of…

Learn about a new “superpower” that isn’t being taught in 90% of US schools.

Starring Bill Gates, Mark Zuckerberg, will.i.am, Chris Bosh, Jack Dorsey, Tony Hsieh, Drew Houston, Gabe Newell, Ruchi Sanghvi, Elena Silenok, Vanessa Hurst, and Hadi Partovi.

Directed by Leslie Chilcott. Executive producers Hadi and Ali Partovi.