Archive for March, 2010

Edit and create deb package

1. Unpack the Deb with the following line
mkdir temp; dpkg-deb –extract mypack.deb temp

What is being done to the left of the, is to create a directory
where temporary unpacking the deb. On the right, is specified
that unpacking the deb in the directory you created earlier.

2. Now extracting control package temporary / DEBIAN with the following line:
dpkg-deb –control mypack.deb temp/DEBIAN

3. Now edit the temporary file / DEBIAN / control changes fights that we want.

4. The repackaging. Deb with the following line:
dpkg –build temp; get your new pack.deb

5. Now we can install our new package with the command
sudo dpkg -i mypack.deb

No Comments

Install Duplicity on Linux(CentOS)

Duplicity backs directories by producing encrypted tar-format volumes
and uploading them to a remote or local file server.

Firstly, enable two important repo

Secondly, install Duplicity
$sudo yum install -y duplicity

Finally, Use it.
$duplicity –help

Following is a short tutorial
Read the rest of this entry »

No Comments

Install and set up Adobe Flex SDK on linux

1. Install JDK

2. Download Adobe Flex SDK (Free Adobe Flex SDK)

3. if run as root, you can create directory in /opt/flexsdk or other places
cd /opt/flexsdk
unzip ~/
if work as normal user
mkdir ~/flexsdk
cd ~/flexsdk
unzip ~/

4. change the variables
vi ~/.bashrc
#add the following lines
export PATH=$PATH:/opt/flexsdk/bin:~/flexsdk/bin
. ~/.bashrc

5. Test
$mxmlc –help
Adobe Flex Compiler (mxmlc)
Version 4.0.0 build 14159
Copyright (c) 2004-2009 Adobe Systems, Inc. All rights reserved.

No Comments

Resolve and Caching with Bind9 Nameserver

We are required to resolve our internal domains on a local nameserver and external (Internet) domains from ISP’s nameserver. There are different solutions to this problem, but in this howto, we are going to solve it through configuring a combination of caching-nameserver and BIND 9.

$yum install caching-nameserver bind*
Read the rest of this entry »

No Comments

Show the Bash History with date

echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile

Finished 🙂
run history command, the output should looks like the following.
1014 12/03/10 01:13:44 who -r
1015 12/03/10 01:13:45 history

No Comments