» tagged pages
» logout
Ubuntu
Return to Ubuntu

Only Ubuntu

(or Cancel)

(Editing anonymously: to be credited for your changes, login or register a new account)

other page actions:

Tags Applied to this Topic

1 person has tagged this page:

Thursday, May 15, 2008

How to Disable "Smarter" Address Bar in Firefox 3

The "smarter" address bar might be help for some people.if you want to disable follow this.


The first step, in the address bar, enter in
about:config

It should give you some warning. Just disregard it.

In the search bar, enter:
browser.urlbar

Change the browser.urlbar.matchOnlyTyped boolean to True.
(Double click it)

Next, change the browser.urlbar.maxRichResults integer to 0.
(Double click and enter in 0 instead of current number)

Thursday, May 15, 2008

How To Replace ScreenCapture with KSnapshot

On Windows I've become quite happy with Snag-It. In searching for something comparable on Ubuntu, I've found KSnapshot.


I miss the Ctrl-Shift-P shortcut to launch the application, so I've decided to get Fn-PrtSc to launch KSnapshot. Maybe you will find this more to your liking ...

1. Use the Synaptic Package Manager and install 'ksnapshot'
2. Open a Terminal window, after 'ksnapshot' is installed
3. Type the following commands:

cd /usr/bin
sudo mv gnome-screenshot gnome-screenshot.orig
sudo ln -s ksnapshot gnome-screenshot

Now, when you press Fn-PrtSc, KSnapshot will be launched.

The only downside is ... if you're trying to get a screen capture for something going on at that very moment - something that's possibly fleeting fast - this won't be good for you.

But, KSnapshot offers window-under-cursor, section-of-window, screen, and region capture capabilities.

Thursday, May 15, 2008

How to Upgrade Ubuntu Server from Feisty (7.04) to Hardy (8.04)

This tutorial will explain how to upgrade Ubuntu Server from Feisty to Hardy

Step 1: Feisty to Gusty Upgrade

first be sure your feisty up-to-date

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade


if everything ok, ready for upgrade to gusty.

nano /etc/apt/source.list

all change "feisty" to "gutsy"

save and exit (ctrl-x, yes)

sudo apt-get update
sudo apt-get dist-upgrade


(one package doesn't upgrade : mailscanner
but this step its fix:
nano /etc/init.d/mailscanner

around 124 line (do_stop function) add 'exit 0'

do_stop()
{ exit 0
# Return
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
start-stop-daemon --stop --retry=TERM/30 --name $NAME
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2

# Remove lockfile for cronjobs
if [ $RETVAL -eq 0 ]; then
rm -f /var/lock/subsys/mailscanner
touch $stopped_lockfile
fi

}


save and exit.

and re-apply
sudo apt-get dist-upgrade

command. its works. there some warning related with mailscanner but not important (for now)

and reboot

my server is gutsy, now.

step 2. Gutsy to Hardy upgrade

nano /etc/apt/source.list

all change "gutsy" to "hardy"

save and exit (ctrl-x, yes)

sudo apt-get update
sudo apt-get dist-upgrade

one package doesn't upgrade : mailscanner
but no problem

reboot

mailscanner fix:

first backup your mailscanner folder. (/etc/mailscanner)

sudo cp -R /etc/mailscanner /etc/mailscanner_backup


sudo apt-get remove --purge mailscanner

(if removing results same error, around 124 line (do_stop function) add 'exit 0')

wget http://http.us.debian.org/debian/pool/main/m/mailscanner/mailscanner_4.68.8-1_all.deb
sudo dpkg -i mailscanner_4.68.8-1_all.deb

and

nano /etc/default/mailscanner

# Uncomment this line once MailScanner has been fully configured.
#
run_mailscanner=1

save and exit..

replace your backup mailscanner folder (/etc/mailscanner)

sudo cp -R /etc/mailscanner_backup /etc/mailscanner

/etc/init.d/mailscanner start

Friday, May 09, 2008

Install Ubuntu 8.04 ( Hardy Heron) without a CD-ROM

Things you'll Need

1) Ubuntu Hardy Heron (8.04) ALTERNATE .iso (see below)

2) At least 2 partitions on your HD

3) vmlinuz & initrd.gz files from Hardy - NOT the ones included on the .iso (see below)




Steps:

1) Download the ALTERNATE .iso from the Ubuntu download site:

http://www.ubuntu.com/getubuntu/download

REMEMBER: mark the "Check here if you need the alternate desktop CD." option, on the botton.

2) Download both vmlinuz & initrd.gz files, Hardy's version, from this site:

http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-i386/current/images/hd-media/

3) Create an /boot folder on your secondary HD partition, and move the alternate .iso and the vmlinuz & initrd.gz from step (2) onto it.

4) If you don't have Grub already installed, install it on a removable media or Hard Disk. Then, edit your /boot/grub/menu.lst and add the following entry:


title Install Ubuntu Hardy
root (hd0,2)
kernel /boot/vmlinuz vga=normal ramdisk_size=149720 root=/dev/rd/0 rw --
initrd /boot/initrd.gz


**(hd0,2) refers to the 1st hard drive 'hd0' and the 3rd partition '2'.

The counting of partitions and hard drives starts at zero. Linux loves making life complicated

Change (hd0,2) to match the drive and partition of your .iso file.

e.g (hd1,3) Refers to drive 2 and partition 4.

5) OK! You are ready to go! Now reboot your system (with the removeable media if you installed Grub on it) and choose the "Install Ubuntu Hardy" entry.


6) Now follow the installation as usual, which should be working as if the disk was in the CD-ROM tray.

Friday, May 09, 2008

Crack a WPA/WPA2 Wifi Network using Ubuntu 7.10 (Gutsy)

what is the Difference Between cracking a WPA network and WPA2 network,Nothing !! There is no difference between cracking a WPA or WPA2 networks at all.In order to sucessfully crack any WPA/WPA2 network,there are 2 main things must happen


1) U must capture the Full 4 Way Handshake.

2) Your Passphrase must be in the DICTIONARY you choose in order to sucessfully BruteForce.

We will be using the aircrack-ng suite of tools and a small dictionary file on Ubuntu.

There are a few ways to crack a WPA / WPA2 PSK password this is just one of them.

This method is usally vunerable because of the end user, as most people will use a pass phrase thats easy to remember.
bcz evry body doesnt want to keep long password.

You will need the following details

A Client connected to the AP to Deauth

ESSID = this is the Name of your wireless network i.e MYWIRELESS
BSSID = this is the MAC address of your AP and will be in this format 00:1C:10:26:A9:39 everyone’s is different so make sure
you write it down correctly or the following will not work

Channel = This will be the channel your AP is Broadcasting on i.e channel 7

ALSO you will need a decent dictionary file you can find many of these around on the internet google is your friend on this one,then lets start below are the Steps

Step 1 - Start the wireless interface in monitor mode

Airmon-ng strat wifi0 (starts ur Interface with Monitor mode)
Airodump-ng ath0 (Monitors the Access point available)

Step 2 - Start airodump-ng to collect authentication handshake

Airodump-ng -c 11 -w psk –bssid 00:1C:10:26:A9:39 ath0

Where:

-c 11 is the channel for the wireless network

- -bssid 00:1C:10:26:A9:39 is the access point MAC address. This eliminate extraneous traffic.

-w psk is the file name prefix for the file which will contain the IVs.

ath0 is the interface name.

Important: Do NOT use the ”- -ivs” option. You must capture the full packets.

Step 3 - Use aireplay-ng to deauthenticate the wireless client

aireplay-ng -0 3 -a 00:1C:10:26:A9:39 -c 00:0F:B5:EC:99:6F ath0

Where:

-0 means deauthentication

3 is the number of deauths to send (you can send muliple if you wish)

-a 00:1C:10:26:A9:39 is the MAC address of the access point

-c 00:0F:B5:EC:99:6F is the MAC address of the client you are deauthing

ath0 is the interface name

Step 4 - Run aircrack-ng to crack the pre-shared key

aircrack-ng -w dictionary.txt -b 00:1C:10:26:A9:39 psk*.cap

Where:

-w password.lst is the name of the dictionary file. Remember to specify the full path if the file is not located in the same directory.

*.cap is name of group of files containing the captured packets. Notice in this case that we used the wildcard * to include multiple files.

Done now wait for some time It depends upon ur Dictionary file and the passphrase ,

You should now have your PSK passphrase

&evilmonkey000&

Friday, May 09, 2008

How to Backup using Rsync in Ubuntu

rsync is a software application for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate. An important feature of rsync not found in most similar programs/protocols is that the mirroring takes place with only one transmission in each direction. rsync can copy or display directory contents and copy files, optionally using compression and recursion.


In daemon mode, rsync listens to the default TCP port of 873, serving files in the native rsync protocol. rsync can also be used to synchronize local directories, or via a remote shell such as RSH or SSH. In the latter case, the rsync client executable must be installed on both the local and the remote host.

The rsync command

sudo rsync -av --progress --delete --log-file=/home/your-username/Desktop/$(date +%Y%m%d)_rsync.log --exclude "/home/your-username/.gvfs" /home /media/HomeBackup

the -av bit: 'a' means archive, or copy everything recursively preserving things like permissions, ownership and time stamps. The 'v' is verbose, so it tells you what its doing, either in the terminal, in in this case, in the log file. --progress gives you more specific info about progress.

--delete checks for changes between source and destination, and deletes any files at the destination that you've deleted at the source. --log-file saves a copy of the rsync result to a date-stamped file on my desktop.

--exclude leaves out any files or directories you don't want copied. In my case, the .gvfs directory in Hardy Heron was a pain as even with sudo it errored and wouldn't copy properly, so I excluded it (Its not necessary to copy it anyway) If you don't use Hardy yet, or any distro using the latest Gnome, skip this line, or upgrade!

/home is the directory I want copied. /home copies the directory and its contents, /home/ would just copy the contents

/media/HomeBackup is the separate drive. Change this to whatever your backup location is. You can actually have this drive off-site and use ssh, but that will be a tutorial for another day!


The bash script

I was just pasting this command into Terminal each day, but wanted something automatic, so step one was a bash script.

Very easy, just open a new document in your favourite text editor, and type #!bin/bash followed by the command itself on a new line. So:

#!/bin/bash
sudo rsync -av --progress --delete --log-file=/home/your-username/Desktop/$(date +%Y%m%d)_rsync.log --exclude "/home/your-username/.gvfs" /home /media/HomeBackup


Save that as rsync-shell.sh on your Desktop and make it executable by typing
sudo chmod +x /home/your-username/Desktop/rsync-shell.sh

or by right-clicking the file, select Properties, Permissions and then checking the Execute box


You can now double click that .sh file, choose 'Run in Terminal', it will ask you for your password and run, then leave a log file on your desktop.

or, you can make a cron job to do it for you!


The cron job

My biggest obstacle with this was the sudo bit. rsync won't be able to backup all files, or delete any, without root privileges. I didn't want to have to be there when it runs to type in my password, but after a bit of searching I found out how to make a root cron job.

Copy your .sh file to /root by typing
sudo cp /home/your-username/Desktop/rsync-shell.sh /root

Then type
sudo crontab -e

You'll see a line which reads: # m h dom mon dow command

Under that type
0 22 * * * /root/rsync-shell.sh

What this all means is:

1. The number of minutes after the hour (0 to 59)
2. The hour in military time (24 hour) format (0 to 23)
3. The day of the month (1 to 31)
4. The month (1 to 12)
5. The day of the week(0 or 7 is Sun, or use name)
6. The command to run

So at 22:00 (10pm) every day root will run the shell script, without prompting you for sudo password (because its running as root already)

Now press Control-X, then type Y, then press enter.

You'll see crontab: installing new crontab

Souce From here

Sunday, May 04, 2008

Howto Install Wine in Ubuntu 8.04 (Hardy Heron )

Here is a quick way to add the winehq repository so you dont need to wait for the ubuntu community to add the latest wine.



Open up a terminal Applications->Accessories->Terminal

Now copy/paste these commands:

Adding the gpg apt key:

wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

Lets add the Repository via wget:

sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list

Now lets update our apt sources and install the latest wine!

sudo apt-get update ; sudo apt-get install wine

Ok now you will always have the latest wine package installed!

Friday, May 02, 2008

Howto Loop Movie, Video, and Display Screensaver as Desktop Wallpaper in Ubuntu

Want to loop a video clip or movie on your desktop? I did and found a nice little tool that does just that



First lets grab some essential building libraries via the terminal: Applications->Accessories->Terminal

sudo apt-get install build-essential libx11-dev x11proto-xext-dev libxrender-dev libxext-dev cvs

Now lets Install xwinwrap:

cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xapps co xwinwrap
cd xwinwrap
make
sudo cp xwinwrap /usr/bin


Now lets start our video/movie as the Desktop Wallpaper!
First find a video/movie you would like to set as your backround and issue this command:

xwinwrap -ni -fs -s -st -sp -b -nf -- mplayer -wid WID -nosound "Steal This Film II.Xvid.avi" -loop 0


Now everything should be working fine, if you would like sound, remove -nosound

You can also display Screensavers as your background:

nice -n 15 ./xwinwrap -ni -o 0.20 -fs -s -sp -st -b -nf -- /usr/lib/xscreensaver/glmatrix -root -window-id WID

Friday, May 02, 2008

Restore All Installed packages in Ubuntu Hardy Heron and to a New machine

Ever forget what you had installed and find yourself at a fresh ubuntu install thinking to yourself... Damn now I gotta open up synaptic and search for everything I had... Well fortunately you dont need to do that. With this easy howto you can also restore all your packages that were installed by simply creating a package list and uninstalling every application installed after the list was made.




The following command creates a list of all the installed packages at the present time:

sudo dpkg --get-selections > /etc/package.selections

Now we created our package list and we can copy this list to a new ubuntu computer and install the same packages in the list to the new machine or, restore the packages to the time you created the package list:

sudo dpkg --set-selections
The above command will uninstall all packages installed after you created your restore list.

Friday, May 02, 2008

Setup Compiz Fusion with open source ati radeon drivers

Older ATI cards have been blacklisted for Compiz Fusion because of a bug in the driver, but there is an easy workaround for many cards that use the open source ati drivers. Radeon 9500 are the oldest cards to support the restricted "fglrx" drivers, so everything older requires the open source drivers to function properly.



First edit the launcher for Compiz Fusion:

gksudo gedit /usr/bin/compiz

Near the top, add the line

SKIP_CHECKS="yes"

I added it under VERBOSE="yes"

You may also need to install the Compiz settings manager program that you can access from System->Preferences->Advanced Desktop Effect Settings | 1-click install or:

sudo apt-get install compizconfig-settings-manager

You can now load Compiz Fusion with

compiz --replace

and revert to Metacity (the basic window manager) with

metacity --replace

I suggest making launchers in a panel for this.

Remember that this is a workaround and may not work for everybody. If you have further problems, you should consider running a forum search and then posting on one of the main support forums if you still need help.
For the record, my card is an ATI Mobility Radeon 9000.

Friday, May 02, 2008

Awesome Opensource MilkDrop Winamp Music Visualizations for Ubuntu Linux! (475 visuals!)

projectm doesnt currently work with amarok or any music player at the moment so you can simply run projectM before/after/during what your listening to and the effects will be amazing, this will work for any sounds and can even be configured to visualize music on the lan/wan!


Howto install:

wget http://www.users.qwest.net/~choice240662796/projectm_1.1-rev-980-2_i386.deb


sudo dpkg -i projectm_1.1-rev-980-2_i386.deb

*recommended but optional* *updated* Download my 475 presets and extract to preset directory

cd ~ ; wget http://www.users.qwest.net/~choice240662796/projectm_presets.tar.gz


tar zxvf projectm_visuals.tar.gz

When you download a preset package, you will need to extract all the files to a directory where projectM can find it. We put ours in ~/projectM/presets and then we'll create a symbolic link to our preset directory so projectM can see it

cd /usr/share/projectM/presets && sudo ln -s ~/projectm/presets/ others


Howto Run:
Goto: Applications->Sound and Video->projectM-pulseaudio
Usage:

Controls (these are listed in the menu under "hotkeys":

m - brings up a menu
f - toggles fullscreen on/off
l - "locks" to a particular preset
y - toggles shuffle mode
n - next preset
p - previous preset
r - selects random preset

F1 - Help menu
F2 - Toggles song title on/off (doesn't work in libvisual or pulseaudio as far as I can tell)
F3 - Toggle preset name on/off
F4 - Toggle rendering info on/off
F5 - Shows fps


How to load visualizations:
Simply click the load preset button and select the presets in the correct directory you want to see. You can create a visualization playlist as well, its easy.

Other info:

ProjectM uses pulseaudio, it can do everything that pulseaudio can do. In the menu, you can select which pulseaudio source to use as the music input to the visualizations. This includes network sound resources. You CAN use projectM as a visualizer for the music ANOTHER PC is playing!

Adding too many presets may crash projectm, so load only a hundred or so at a time, or experiment on how many can be loaded at once.

Saturday, April 26, 2008

Howto install JS3tream and backup to Amazons S3

JS3tream was written to provide easy streaming of data to and from Amazons S3 data storage service. JS3tream is NOT a backup solution by itself. But, coupled with tar or zip, JS3tream provides a very powerful backup solution.

Install the Sun JVM using the following command

sudo apt-get install sun-java5-bin

You will need the zip/unzip utility to extract the JS3tream utility

sudo apt-get install unzip

Go to the JS3tream web site, and download the latest zip file. Extract this file to a directory of your choice. Eg /usr/local/bin

cd /usr/local/bin

unzip js3tream-0.6.2.zip

Test to make sure both java and JS3tream are correctly setup. Start by going to the directory you put JS3tream.

cd /usr/local/bin

Make sure java is correctly installed. I happen to have 1.5.0.11

sudo java -version

java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)

Test that JS3tream can be executed.

sudo java -jar js3tream.jar --help

JS3tream v0.6 - December 17, 2007
Protected under the LGPL
Copyright (c) Shane Powell 2007
http://js3tream.sourceforge.net

At this point JS3tream should be correctly installed. Now, it's simply a matter of following the examples and howtos on the JS3tream web site.

Saturday, April 26, 2008

Howto Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

On-the-fly encryption software which can create a virtual encrypted disk within a file and mount it as a real disk. It can also encrypt a hard disk partition or storage device, such as USB flash drive. Moreover, TrueCrypt supports plausible deniability.


Preparing your system

You need to install the following packages

sudo apt-get install build-essential linux-headers-`uname -r` linux-source-2.6.24 libfuse-dev libgtk2.0-dev

Then create a tmp directory in your home directory

mkdir -p ~/tmp

Now download TrueCrypt source from here

Go to the path where you saved TrueCrypt source and untar the file in your ~/tmp directory

tar -zvxf TrueCrypt\ 5.1a\ Source.tar.gz -C ~/tmp

Now you should download wxAll source code. You can pick it from here

Go to the path where you saved wxAll source and untar the file in your ~/tmp directory

tar -zvxf wxWidgets-2.8.7.tar.gz -C ~/tmp

Now go to your ~/tmp/truecrypt-5.1a-source directory

cd ~/tmp/truecrypt-5.1a-source

and launch this command line

WX_ROOT=~/tmp/wxWidgets-2.8.7 make wxbuild

This will build the ./wxrelease subdirectory in the truecrypt source path. You'll probably will have some warning from the compiler, but you can safely ignore.

Once you have your shell back, launch this command line to compile truecrypt

WX_ROOT=~/tmp/wxWidgets-2.8.7 make

Probably you will get a lot of warning from the compiler, but you can ignore it. They are just warning.

Now go Main directory in TrueCrypt source

cd ~/tmp/truecrypt-5.1a-source/Main

and start truecrypt gui

./truecrypt

If everything is ok, you should have now the truecrypt gui running.

Now close you application from the Gnome notification area and copy your just compiled truecrypt binary in you /usr/local/bin directory

sudo cp ~/tmp/truecrypt-5.1a-source/Main/truecrypt /usr/local/bin/

Now you have truecrypt binary in your path so you can run it simply with

truecrypt

Now you can safely remove you working directories

rm -rf ~/tmp/truecrypt-5.1a-source ~/tmp/wxWidgets-2.8.7

Saturday, April 26, 2008

Howto Disable CTRL-ALT-DEL from shutting down in Ubuntu

If you want to disable CTFL-ALT-DEL from shutting down their server use the following procedure.


For Dapper, and earlier Users

1)If you are using Dapper Drake, or before, you will have to edit /etc/inittab with the editor of your choice.

sudo gedit /etc/inittab

2)Now, look for the line that looks like this:

exec /sbin/shutdown -r now "Control-Alt-Delete pressed"

This is what we want to change. delete whole line. Now, its up to you what you want to do. If you want it to just print a message, and then do nothing, enter this

"CTRL+ALT+DEL is disabled!!"

or any other message of your choice.

If you want it to execute a script, change the line to

exec /path/to/your/script.sh

Thats it! Now, you can leave your server in peace, and not have to worry about anyone pressing CTRL+ALT+DELETE, and shutting it down!

For Edgy,Feisty,Gutsy,Hardy Users

In Edgy, you have to edit /etc/event.d/control-alt-delete. Then, just follow the steps in step 2 of Dapper and Earlier.

Sunday, April 20, 2008

How to Save Streaming Videos in Mplayer

1. Copy the url of the streaming video mms://etc... or http://...

2. Open up a terminal.

3. mplayer -dumpstream -dumpfile stream_video_name.wmv mms://etc...

4. Wait for the stream dump.

Source from here


Sunday, April 20, 2008

HOWTO: Install your Canon PIXMA MP130 Printer using the iP1500 Printer Driver

If you want to install Canon PIXMA MP130 Printer follow this procedure

Add the following to the /etc/apt/sources.list:

deb http://mambo.kuhp.kyoto-u.ac.jp/~takushi/ubuntu ./
Then:

sudo apt-get update
Then:

sudo apt-get install libcnbj-2.5 bjfilter-2.5 pstocanonbj
Cupsys will be automatically restarted and you can select printer in cupsys configuration which is

http://localhost:631
To add the printer through the cups, the first thing you do is click on add a printer. The next screen will ask you for the name of you printer, location and description. The only thing you really have to fill in is the name – anything you want will do. After you have filled in the information click continue. The next page asks you to select your printer which should be Gutenprint USB Printer #1 (Canon MP130). Hit continue and then it will ask you for your driver. Select the Canon Pixma iP1500 Ver.2.50 (en) then click on add printer. Printing a test page should work! I've used the method on both Gutsy and Hardy.

Sunday, April 13, 2008

Mount .ISO's in Ubuntu Linux The Easy way

I download .iso's all the time, and wanted to be able to mount iso's for winblows games on wine. What this does is map your iso to a filesystem directory. Here is what I did, and here is what you can do as well.

First grab fuseiso

sudo apt-get install fuseiso

Then lets add ourselves to the fuse usergroup

sudo adduser myusename fuse

If you were not in the fuse group you will need to log off, then back in right now.Now lets create ourselves a fuseiso folder to mount our iso

sudo mkdir /media/fuseiso

Now we just grabbed an iso off the net, so lets mount it!

sudo fuseiso myisofile.iso /media/fuseiso

Ok now the iso is mounted and we can use it like its a cd/dvd Nautilus/cd your way to /media/fuseiso and the files from the iso will be mounted readonly.



Source from here

Sunday, April 13, 2008

Recover and Undelete files in Ubuntu the easy way!

Ok I accidentally deleted my /etc/network/interfaces file and didnt have my access point connected to a pc, its just wireless now, so what I did to recover the file was this, please note if you delete the file shutdown your pc immediately or unmount your drive as fast as possible to avoid overwriting the deleted data. This method can be used to find unencrypted passwords and interesting information as well. This works best from a livecd/unmounted filesystem:



grep --binary-files=text -300 "Unique String in Text file" /dev/hda1 > output.txt

The -300 option tells grep to report the 300 lines before the string you choose

Basically this will take quite a while depending on the size of your hard drive and may output a ton of irrelevent information to the output.txt file, you may want to edit the -300 line variable and do man grep to see further usage options.

This method worked for me only because I shutdown my pc immediately and booted into my Hardy Livecd and the file was still available, I just copied/pasted the relevant output to my interfaces file.

Alternatively you can use the strings command to dump all the text on a partition then grep the strings output for the relevent output, Here is an example:

strings /dev/hda1 > bigtxtfile

grep -i "information" bigtxtfile > grepoutputfile

I ran into another program that is utterly Amazing, actually quite scary, I was able to recover photo's deleted from months ago, even after reading/writing the drive. So now I will need to find a tool to wipe what was deleted lol.. Here is some info..

Foremost is a console program to recover files based on their headers, footers, and internal data structures. This process is commonly referred to as data carving. Foremost can work on image files, such as those generated by dd, Safeback, Encase, etc, or directly on a drive. The headers and footers can be specified by a configuration file or you can use command line switches to specify built-in file types. These built-in types look at the data structures of a given file format allowing for a more reliable and faster recovery.

Originally developed by the United States Air Force Office of Special Investigations and The Center for Information Systems Security Studies and Research , foremost has been opened to the general public

source code http://foremost.sourceforge.net/

Grab foremost:

sudo apt-get install foremost

Have Foremost audit your drive for recoverable files:

sudo foremost -w -i /dev/hda -o /recovery/foremost

Have foremost recover jpg files:

sudo foremost -t jpg -i /dev/hda -o /recovery/foremost

If you have additional suggestions or methods to restore files please comment and share your knowledge

Sunday, March 30, 2008

Create a SSH Tunnel for Firefox to surf securely

A ssh tunnel for Firefox to a remote computer is good security measure. Especially when connecting via an untrusted network like a wifi hotspot or other public networks. The tunnel encrypts and sends the data to your remote machine then it is sent over the web to your destination. This tutorial assumes you have an account on a remote machine you can ssh into. This is a pretty easy set up.

Now all you need to do is login your remote computer that you have access to with SSH then issue this 1 command

ssh -D 9999 -C me@ipaddress.com

The -D switch - Specifies a local “dynamic” application-level port forwarding. We are also adding the -C switch for compression.

Next we need to put the settings into Firefox.

Firefox> Edit> Preferences> Advanced tab> Network tab> Settings button.

Select Manual proxy configuration

SOCKS Host: localhost Port: 9999

SOCKS v5

No Proxy for: localhost, 127.0.0.1

Note: Sometimes localhost can cause a problem. If your settings are right and it still is not working replace localhost with 127.0.0.1.



Source from here

Saturday, March 22, 2008

Howto Setup Vidalia TOR GUI with Ubuntu

Tor is the open source leader to anonymous connections on the internet, you can anonymize your internet presence from AIM/ICQ/MSN/ Jabber/IRC/WWW/FTP and you can even issue a torify command at the command prompt to anonymize your wget/ssh/lynx/ftp/perl or whatever. Basically tor is for the people by the people, it is only alive because we make it so, we can choose to use it freely or use it freely and help it out by running a server on your computer to make the internet safer. Basically tor encrypts your data communications through chained/linked proxies all over the internet.

Vidalia is a cross-platform controller GUI for Tor, built using the Qt framework. Using Vidalia, you can start and stop Tor, view the status of Tor at a glance, and monitor Tor’s bandwidth usage. Vidalia also makes it easy to contribute to the Tor network by helping you set up and manage your own Tor server.

Vidalia runs on most platforms supported by Qt 4.1 or later, including Windows, Mac OS X, and Linux or other Unix variants using the X11 window system.

Prepare your system

sudo apt-get install libevent

Now you need to get the latest tor source code from here

wget http://www.torproject.org/dist/tor-0.2.0.22-rc.tar.gz

tar zxvf tor-0.2.0.22-rc.tar.gz

cd tor-0.2.0.22-rc

./configure

make

sudo make install

Install Vidalia GUI

You need to edit the /etc/apt/sources.list file

sudo gedit /etc/apt/sources.list

add the following lines

deb http://ppa.launchpad.net/adnarim/ubuntu gutsy main
deb-src http://ppa.launchpad.net/adnarim/ubuntu gutsy main

Save and exit the file

Update the source list

sudo apt-get update

Install vidalia

sudo apt-get install vidalia

Once installed press alt F2 and open the run prompt and type in “vidalia” without the quotes, this will start tor, vidalia and you can configure tor/vidalia by right clicking on the tray applet and click on settings, right there you can view all the nodes and choose what to connect to, see node uptimes, os’s and locations with a graphical map.

For web browsing in firefox I prefer using an extention named FoxyProxy it works well with firefox and swiftfox, you can grab this extention directly from here

If you prefer stronger anonymity & protection I strongly Suggest Torbutton for firefox you can download from here

Install the addon and go through the Tor wizard and it will set you up for you and you can view which tor nodes you connect through actively via vidalia

Speed Tweaks for tor

Lets get to editing our torrc so we can improve the speed!

gedit ~/.vidalia/torrc

Paste this at the beginning of the torrc:

# Set the Tor Circuit Build time to find faster tor servers, increments of seconds

CircuitBuildTimeout 2

# connections while Tor is not in use.

KeepalivePeriod 60

# Force Tor to consider whether to build a new circuit every NUM seconds.

NewCircuitPeriod 15

# Set How many entry guards we should we keep at a time

NumEntryGuards 8



Source from here
Page 1 | Next >>
Username:
Password:
(or Cancel)