How to destroy all your data on your Ubuntu Linux system!
WARNING: Do NOT try these examples; they will cause data loss!
If you intentionally want to wipe your hard drive or destroy all data on it, here are a few examples!
The following examples are provided to warn about the dangers of dd, if used incorrectly. Trying any of these commands with the proper privileges will almost certainly result in major data loss, and may make the system unusable. In order to prevent accidental copying and pasting, “dd” has been replaced with “[dd]” here.
This overwrites the complete first hard disk with null bytes, erasing it (though not in a manner that is as secure as overwriting with random data):
[dd] if=/dev/zero of=/dev/hda
This overwrites the first few blocks of the first hard disk with the file, resulting in a loss of the partition table:
[dd] if=funnysong.mp3 of=/dev/hda
This will completely corrupt an entire hard disk (/dev/dsp is the sound player/recorder):
[dd] if=/dev/dsp of=/dev/hda
This will overwrite an entire disk with pseudorandom data, making its initial contents unrecoverable outside a clean room in a hard drive forensics laboratory, and probably unrecoverable there as well.
[dd] if=/dev/urandom of=/dev/hda
The examples above presume device names (valid on some Linux systems) that may be different on other platforms. Here are some common variations.
Mac OS X:
[dd] if=/dev/zero of=/dev/disk0
Minix:
[dd] if=/dev/zero of=/dev/c0d0p0
NetBSD/OpenBSD (does not work if securelevel > 1):
[dd] if=/dev/zero of=/dev/rwd0
Let me know if you find anything more destructive/efficient!
Overglossed GTK2 Theme with hot icons and Obsidian Cursors in Ubuntu Gutsy or Heron!
Ok I found an other awesome theme for Ubuntu, you gotta check this out, here is how I got my box setup....
Ok lets install this baby!
First lets grab Overglossed theme and install it!
wget http://ubuntu-debs.googlecode.com/files/Overglossed.tar.gz
tar zxvf Overglossed.tar.gz
sudo mv $HOME/Desktop/Overglossed /usr/share/themes
sudo chmod 777 /usr/share/themes/Overglossed/overglossed.jpg
Now... Lets install the black/white 2 style icon pack!
wget http://ubuntu-debs.googlecode.com/files/black-white_2-Style.tar.gz
tar zxvf black-white_2-Style.tar.gz
sudo mv black-white_2-Style/ /usr/share/icons
Now lets set up the Obsidian Cursor theme:
wget http://ubuntu-debs.googlecode.com/files/Obsidian.tar.gz
tar zxvf Obsidian.tar.gz
sudo mv Obsidian/ /usr/share/icons
Ok now the fun part, simply go to System->Preferences->Appearance and select Overglossed as the theme and select the black white 2 style icon pack and go into cursor settings and select Obsidian, enjoy!
defcon
Howto: Make Ubuntu look like fedora with the Nodoka Theme
Click System → Preferences → Theme menu command. In Theme Preferences dialog, choose Nodoka item. Also click on the customize tab then click on icons and select "Echo"
[updated] Upgraded nodoka engine to fedore core 9's and added echo-icon-set from git
I really dont like fedora, but its theme is nice and crisp, check it out, if you dont like it rm -rf :)sudo apt-get install build-essential libgtk2.0-devdpkg -i gtk-nodoka-engine_0.6-1_i386.deb
Install themetar zxvf nodoka-theme-gnome-0.3.90.tar.gz
cd nodoka-theme-gnome-0.3.90/
sudo cp -r Nodoka/ /usr/share/themes/wget http://ubuntu-debs.googlecode.com/files/echoicons.tar.gz
tar zxvf echoicons.tar.gz
sudo cp -R Echo /usr/share/icons/Use theme
Enjoy
-defcon
HOWTO: Adobe Air and Xdrive® Desktop Lite Under WINE in Ubuntu Gutsy
Wow, I was just experimenting with wine and I found out the new adobe air works flawlessly in Ubuntu with wine, it will probably work with other distro's but lets take a look how I set this up with Ubuntu w/Wine. Adobe Air applications are pretty sweet!
Xdrive® Desktop Lite install file (http://xdrive.com/downloads/)
Windows Beta3 installer for Adobe Air (http://labs.adobe.com/downloads/air.html)
WINE (I used 0.9.54)
Cant find adobe air?wget http://ubuntu-debs.googlecode.com/files/air_b3_win_121207.exe
OK. Go to your command line, get to the directory of the executable downloaded and do:"wine air_b3_win_121207.exe" (This is the filename that I downloaded off of the Adobe Labs site)
This will bring up the installer. Go through the prompts and it will say that it installed fine.
Now, we need to install the Xdrive® Desktop Lite client. To do this, we have to run the install air application executable located in the Adobe Air folder in your "C Drive"
/home/wine "Adobe\ AIR\ Application\ Installer.exe"

Now you will be asked a few questions, simply click install!
Next you will be asked where to install and it will ask you if you want to save an icon on the desktop, select yes and then uncheck run after installer finishes.
Once it is installed you can double-click the "Xdrive Desktop Lite" icon on the desktop with a wine glass.
Once you run it this is how it will appear!
After you Login you can upload/download and copy/paste, add/remove folders in Xdrive :)
Here is more information on Xdrive® Desktop Lite from the official Xdrive Website
If you like this baby, check out these applications:
Google Analytics Air application here
Twitter App: Here
Here is hundreds more!
P.S. Please let me know how everything installed, and if you experimented with any other adobe air apps!
Howto: Convert Redhat and Fedora .rpm files to .deb files in Ubuntu
Just switch from redhat/fedora to Ubuntu and your used to rpm's? Or did you find an rpm that isnt available as a .deb file? I sure have so I thought I would share the easy process of converting rpm to deb, check it out.
To do this, install Alien using:sudo apt-get install alien
And convert using:sudo alien -k name-of-rpm-file.rpm
To install .deb packages, double click the file and click Install Package or simply:sudo dpkg -i name-of-created-deb-file.deb
Alternatively you can simply install rpm files, This command converts rpm to deb then installs the deb file, after it will delete the temporary .deb createdsudo alien -i name-of-rpm-file.rpm
enjoy
defcon
Access and Synchronize GetDeb.net packages through Apt-get and Synaptic
If you already dont know about getdeb.net, it is a great site to download the latest software, not many people know this but you can use getdeb's mirrors as repositories to sync your GetDeb packages with the update manager and Synaptic.
1. Open up a terminal (applications>accessories> Terminal) and run the following:
sudo echo "deb http://ubuntu.org.ua/ getdeb/" | sudo tee -a /etc/apt/sources.list
or
deb http://mirrors.dotsrc.org/ getdeb/
If I were you I would ping each host to see which is closer and add that one
Save the file and exit.
3. Now run the following in the terminal:
sudo apt-get update
sudo apt-get upgrade
Now you should be able to install GetDeb.net programs through the Synaptic package manager as well as apt.
Securely Delete files from Journaling Filesystems in Ubuntu and Linux Operating Systems
Previously I posted a tutorial on setting up wipe with Nautilus, It has come to my attention that since ext3 is a journaling file system that wipe isn't enough to securely delete files from people that have the tools/hardware to recover files, today I will show you how to delete a file that is unrecoverable to the best of my knowledge.. Read on if you like :)
WARNING: DO NOT RUN THESE POSIX COMMANDS UNLESS YOU ARE EXTREMELY CAREFUL
Issue these commands carefullydd if=/dev/zero of="file you want shreded"
sync
shred -u -v -n 5 "file you want shreded"
sync
Breaking it down, the commands say this:
* dd: "move data around"
* if=: "the input file is..."
* /dev/zero: "not a file at all, but a device that outputs an unending stream of zeros"
* of=: "and the output file is..."
* sync writes any data buffered in memory out to disk. This can include (but is not limited to) modified super blocks, modified inodes, and delayed reads and writes. This must be implemented by the kernel; The sync program does nothing but exercise the sync(2) system call.
* shred Overwrites the specified FILE(s) repeatedly, in order to make it harder for even very expensive hardware probing to recover the data.
If you have any other suggestions please share your knowledge, security & privacy should be common knowledge in todays world
defcon