Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

Archive for the 'Softwares' Category

How-To: using Python Virtual Environments

Posted by chantra on 3rd September 2013

A nice thing about Python is that there is tons of modules available out there. Not all those modules are readily available for your distro and even if there were, chances are that a newer release with new features is already out there.

You might not always want to install those modules system wide, either because there might not be any need for it, or because they could clash with the same module install via package management.

To answer this problem, python has a virtualenv that will let you create multiple virtual python instances within which you will be able to install whichever modules you might need. All this without requiring root pribileges.

Read the rest of this entry »

Tags: , ,
Posted in HowTo, Softwares, System | No Comments »

How-To: Bash Parameter Expansion and String Manipulation

Posted by chantra on 19th February 2013

Last time we saw how bash can help us in handling default values out of the box using parameter expansion. This time we will see how basic string operations (nonetheless common and useful) can also be achieved using bash.

There is many ways to do string manipulation with bash, like finding a filename extension using expr, separating the directory part from a filename using dirname and basename.... or even more sophisticated ones based on regex, sed....

Why using a sledgehammer to crack a nut when you could use bash builtin functionalities!

Read the rest of this entry »

Tags: , , ,
Posted in Administration, HowTo, Softwares, System | No Comments »

How-To: Bash Parameter Expansion and Default Values

Posted by chantra on 28th January 2013

Bash is a sh-compatible command language interpreter that executes commands read from the standard input or from a file.
There is much more to bash than running a sequence of commands, one of the features bundled with bash is parameter expansion.

Any shell user has most likely used shell variables, be it $1 or $myvar, to save values... but there is more to it. This tutorial will cover a subset of shell parameter expansion that can become really handy and save you a lot of time.

Read the rest of this entry »

Tags: , , ,
Posted in Administration, HowTo, Softwares, System | No Comments »

How-To: OpenVPN on Debian Squeeze with Username/Password authentication

Posted by chantra on 16th January 2013

OpenVPN is a SSL based VPN software that runs on most OS. It is simple to install and run.

In this tutorial, I will go over the steps needed to configure OpenVPN on Debian Squeeze to provide a full VPN tunnel, this is particularly useful when you want to access internet from non-trusted networks such as free hotspots...

There are many ways of setting up OpenVPN, a common one is to use a unique certificate for each users. Another one is to have each user authenticate with a username/password.

In this article, we will be setting OpenVPN to authenticate users using PAM.

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, Softwares, System | No Comments »

Terminator is getting a plugin system

Posted by chantra on 16th June 2010

I already spoke about Terminator a while back. Since then,, quite some time has passed and lots of features were added...

In the last 7+ months, cmsj as worked a lot on getting the whole architecture re-implemented in a more object-like architecture which makes the different component of Terminator interact together more naturally.

Read the rest of this entry »

Posted in HowTo, News, Softwares, Softwares | No Comments »

How-To: Changing the default text editor

Posted by chantra on 16th September 2009

There is a few software that will use the editor command to find out what text editor to use. Example commands will be dch to add a new .deb changelog entry, revision control softwares when prompting for a commit message ...

Read the rest of this entry »

Tags:
Posted in Administration, HowTo, Softwares | No Comments »

Vmware Workstation: DNS not working with NAT

Posted by chantra on 8th April 2009

Lately, I have been experiencing a funny network issue when using VMware Workstation VMs with NAT interface. Roughly, the IP network was working fine, but DNS resolution was not anymore. It happened intermittently, but I could see that this mainly happened when I was suspending my laptop, going to another location and resuming.

Forcing the VM to use a public DNS would solve the issue.

Read the rest of this entry »

Tags: , ,
Posted in HowTo, Softwares, Virtualization | No Comments »

How-To: Setting up BGP on Vyatta — page 3 — Setting BGP

Posted by chantra on 2nd November 2008

This entry is part 3 of 3 in the series How-To: Setting up BGP on Vyatta

3. Setting BGP

As told earlier on, vyatta-bgp1 will advertise AS 1 with network 1.1.1.0/24 to its neighbor vyatta-bgp2 handling AS 2
and
vyatta-bgp2 will advertise AS 2 with network 2.2.2.0/24 to its neighbor vyatta-bgp1 handling AS 1

They will use a common password for this communication, which is BGPtutorial.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, Networking, Softwares, System | No Comments »

How-To: Setting up BGP on Vyatta — page 2 — Network interfaces

Posted by chantra on 1st November 2008

This entry is part 2 of 3 in the series How-To: Setting up BGP on Vyatta

2. Setting the network interfaces

During this part, we are going to set up the 2 Border Gateway routers'network interfaces. In vyatta world, you need to enter the interactive configuration shell by typing:

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, Networking, Softwares, System | No Comments »

How-To: Setting up BGP on Vyatta

Posted by chantra on 1st November 2008

This entry is part 1 of 3 in the series How-To: Setting up BGP on Vyatta

Vyatta is a Linux based distro that ease the set up of VPN, Routers, antivirus.... It has a really small footprint on your system as it only requires something like 800M to be installed and is based on Debian. On the top of that, it offers configuration wrappers to facilitate service settings.

This tutorial will explain how to set up 2 Border Gateway Protocol (BGP) boxes to route the traffic from one Autonomous System (AS) to the other using Vyatta.
Vyatta Community Edition 4.1.4 was used during this set up.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, Networking, Softwares, System | No Comments »