Category: Ubuntu

HOWTO : Encrypt the Home Directory in Ubuntu

 

You may want to encrypt the home working directory or any user’s working home directory if you have not been set it up during the installation of Ubuntu.

Step 1 :

sudo apt-get install ecryptfs-utils

Step 2 :

adduser tempuser admin

Logout and re-login as tempuser.

Step 3 :

sudo ecryptfs-migrate-home -u samiux

Logout and re-login as samiux. But DO NOT reboot your system.

If you are not asking for the “Passphrase“, you should enter the following command :

sudo ecryptfs-add-passphrase Read More

HOWTO : Encrypt the Home Directory in Ubuntu

You may want to encrypt the home working directory or any user’s working home directory if you have not been set it up during the installation of Ubuntu.

Step 1 :

sudo apt-get install ecryptfs-utils

Step 2 :

adduser tempuser admin

Logout and re-login as tempuser. Read More

Torified Ubuntu VPN Server

Tor allows you to anonymity online. It protects your privacy and defend yourself against network surveillance and traffic analysis.

The setup of Tor is very complicated and sometimes you will fail to make it to work. The most easy way is to download Tor Browser. However, it has some limitations and the main problem is that it is for web browsing only.

The drawback of using Tor is the speed. It is quite slow as the traffic passes a lot of nodes in order to hide your IP address and traffic. Your IP will be changed every 10 minutes. The IP is not belonged to your home country.

Learn more about Tor. Read More

Cracking WPA2 PSK with Backtrack, Aircrack-ng and John The Ripper

This article will walk you through the steps used to crack a WPA2 encrypted wifi router using Backtrack, aircrack-ng and John the Ripper.

The information provided in this article is meant for educational purposes only. VirtualThreat is a site about computer security and not a site that promotes hacking/cracking/software piracy.  All the information on this site is meant for developing a Hacker Defense attitude among the users and to help prevent the attacks. VirtualThreat and its operators will not be liable for any misuse of this information.

Basic steps :

  •     Put interface in monitor mode
  •     Find wireless network (protected with WPA2 and a Pre Shared Key)
  •     Capture all packets
  •     Wait until you see a client and deauthenticate the client, so the handshake can be captured
  •     Crack the key using a dictionary file (or via John The Ripper)

I’ll use a Dlink DWL-G122 (USB) wireless network interface for this procedure.  In backtrack4, this device is recognized as wlan0.

First, put the card in monitor mode : Read More

Turn off or limit the Recent Documents feature in Ubuntu

If you want to turn off the Recent Documents feature in Ubuntu, all you have to do is create a .gtkrc file in your home directory.

touch $HOME/.gtkrc-2.0

Then add gtk-recent-files-max-age=0 to this file.

echo 'gtk-recent-files-max-age=0' | tee -a $HOME/.gtkrc-2.0

Read More

Bash script to backup my configs (dotfiles)

I needed some script to take care of my config files and put them in a single directory. So here it is.

#!/bin/bash

# Display All Hidden Dot Files In a Directory
# ls -a | egrep "^\." > backup_dotfiles.sh

DESTINATION="/storage/dotfiles"  # do not use a trailing slash (/)

Read More

How to set up a VPN server on Ubuntu

Install PoPToP Point to Point Tunneling Server:

sudo apt-get install pptpd

Edit /etc/pptpd.conf file:

sudo joe /etc/pptpd.conf

Uncomment the following lines (replace IP range if you like)

localip 192.168.0.1
remoteip 192.168.1.1-255

Save and exit.

Edit /etc/ppp/pptpd-options file

sudo joe /etc/ppp/pptpd-options

Make sure you have this: Read More

Install DeaDBeeF 0.5.2 in ubuntu using PPA

DeaDBeeF (as in 0xDEADBEEF) is an audio player for GNU/Linux, BSD, OpenSolaris and probably other UNIX-like systems.

What is new in 0.5.2

fixed reading id3v2 and apev2 tags from raw AAC files
fixed proxy authentication bug in vfs_curl plugin
added OpenIndian b148 support (Kevin van der Vlist)
improved APE performance
fixed freeze bug in alsa plugin on x86_64
added automatic creation of directory structure to the converter plugin
few fixes in random and shuffle modes
improved automatic config saving
added support for ffmpeg-0.8 (Igor Murzov)
fixed rename/remove playlist crash when no playlist was selected
last.fm plugin will now split multiline fields when scrobbling
few bug fixes / improvements in cuesheet support
fixed writing non-ascii id3v1 tags
pressing enter/play in paused state will now play selected track (bugfix)
fixed content-length handling after redirects in vfs_curl plugin
artwork plugin now supports png by default
fixed rdb check in aac adts parser, this means improved aac support (by ??)
fixed rare aac crash Read More