Howto: Create TTY User to view logs via TTY in Ubuntu Linux

We all have various log files on our Ubuntu system, and sometimes it is nice to be able to easily view a log file within a tty. Here is a simple howto, to create a tty user that's only purpose is to watch a log file
First lets create the logging script after sudo -s:
cat >>/usr/bin/logwatch
Paste this, then control-c when its pasted in the terminal, alternatively you can use a text editor..
#! /bin/bash
watch tail -n 80 /var/log/messages

Note: You can replace /var/log/messages with any log you choose, like a firewall log for instance.
Make /var/log/messages Readable and our script executable, for this I'll use chmod:
chmod 644 /var/log/messages
chmod +x /usr/bin/logwatch

Now append /usr/bin/logwatch to /etc/shells then save/exit
gedit /etc/shells

Now lets create the user that we can login via the TTY
adduser logwatch --shell /usr/bin/logwatch
Set a password, like "logwatch"

Now lets try this out, all you need to do now is simply press ALT-CTRL-F1 or any other TTY from F1-F6 then login as "logwatch" with password "logwatch", what will happen is the user will be logged into our /usr/bin/logwatch script and only be able to watch the log, so we can cycle between tty's and X

Expand full post here...

Comments

Howto: Mount .ISO, .IMG, .BIN, .MDF, and .NRG 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
If you are in firefox and have apt-url installed click here to install with one click!
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.

More information on fuseiso can be found here

Expand full post here...

Comments

Crack Pdf Files with Ubuntu Linux!

Dont you hate when you run into a locked down pdf on the web? I search google all the time for title filetype:pdf and some are locked, this is the solution! PDFCrack is a GNU/Linux (other POSIX-compatible systems should work too) tool for recovering passwords and content from PDF-files. It is small, command line driven without external dependencies. The application is Open Source (GPL).
Features

* Supports the standard security handler (revision 2 and 3) on all known PDF-versions
* Supports cracking both owner and userpasswords
* Both wordlists and bruteforcing the password is supported
* Simple permutations (currently only trying first character as Upper Case)
* Save/Load a running job
* Simple benchmarking
* Optimised search for owner-password when user-password is known


Install pdfcrack in Ubuntu


sudo aptitude install pdfcrack

pdfcrack Syntax


pdfcrack -f filename [options]

pdfcrack Options

-b, - -bench - Perform benchmark and exit.
-c, - -charset=STRING - Use the characters in STRING as charset.
-m, - -maxpw=INTEGER - Stop when reaching INTEGER as password length.
-n, - -minpw=INTEGER - Skip trying passwords shorter than INTEGER.
-l, - -loadState=FILE - Continue from the state saved in FILENAME.
-o, - -owner - Work with the ownerpassword.
-p, –password=STRING - Uses STRING as userpassword to speed up breaking ownerpassword (implies -o).
-q, - -quiet - Run quietly.
-s, - -permutate - Try permutating the passwords (currently only supports switching
first character to uppercase).
-u, - -user - Work with the userpassword (default).
-v, - -version - Print version and exit.
-w, - -wordlist=FILE - Use FILE as source of passwords to try.

pdfcrack Example

pdfcrack mylocked.pdf

More information on this great utility can be found @ the authors site here
Lifehacker.com Has some alternative utilities and ideas for cracking pdf's here
UbuntuGeek has some information about this tool here

Expand full post here...

Comments

Howto: Crack Rar, 7z, and zip files with RarCrack in Ubuntu Linux

Ever run into the problem where you created a password protected zip/rar file and you forgot the password or accidentally deleted it? Or just dont know the password at all? Well I have come across a nice solution for cracking zip/rar files. Its called rarcrack, If you forget your password for compressed archive (rar, 7z, zip), this program is the solution.
This program uses bruteforce algorithm to find correct password. You can specify which characters will be used in password generations.


Download RarCrack
wget http://superb-east.dl.sourceforge.net/sourceforge/rarcrack/rarcrack-0.2.tar.bz2
Install RarCrack
tar xvjf rarcrack-0.2.tar.bz2
cd rarcrack-0.2
sudo apt-get install libxml2-dev
make ; sudo make install
Using RarCrack:

rarcrack your_encrypted_archive.ext [--threads thread_num] [--type rar|zip|7z]
Everything in [] are optional, rarcrack default crack two threads and autodetect the archive type. If the detection wrong you can specify the correct file type with the type parameter. RarCrack currently crack maximum in 12 threads.

After the cracking started RarCrack will print the current status of cracking and save it's to a status file. If you want more specific password character set, you need to run RarCrack to create the XML status file (3 sec).

There will be a sample XML file, and you see there is a character set. If you want, you can modify this file and when you start RarCrack again the program will be use new variables.
Warning: Take care when you changing this file, make sure the current password don't have characters outside the abc[character set]!

Know of any other rar/zip/7z cracking tools worth mentioning?


More information on rarcrack can be found here

Expand full post here...

Comments

Convert Audio to other formats with Ease using Sox in Ubuntu Linux

SoX is the swiss army knife of sound processing programs. SoX is a command line utility that can convert various formats of computer audio files in to other formats. It can also apply various effects to these sound files during the conversion. As an added bonus, SoX can play and record audio files on several unix-style platforms. SoX is a general purpose sound converter/player/recorder that supports the following formats:

  • RAW sound data in various data styles
  • RAW textual sound data
  • Amiga 8svx files
  • Apple/SGI AIFF files
  • SUN .au files
    • PCM, U-law, A-law, G7xx ADPCM files
    • mutant DEC .au files
    • NeXT .snd files
  • AVR files
  • CD-R data (music CD format)
  • CVS and VMS files (continous variable slope)
  • GSM raw data (with optional library)
  • Macintosh HCOM files
  • Amiga MAUD files
  • MP3 files (with optional external library)
  • IRCAM SoundFile files
  • NIST SPHERE files
  • Turtle beach SampleVision files
  • Soundtool (DOS) files
  • Yamaha TX-16W sampler files
  • Sound Blaster .VOC files
  • Ogg Vorbis files (with optional external library)
  • FLAC files (with optional external library)
  • Dialogic/OKI ADPCM .VOX files
  • Microsoft .WAV files
    • PCM, U-law, A-law, MS ADPCM, IMA ADPCM, GSM, RIFX (big endian)
  • Psion (PDA) Record.app files and A-law .WVE files
  • Maxis XA Audio files
    • EA ADPCM (read support only)
  • Record and Play audio on various Unix platforms.
  • null file type that reads and writes from/to nothing.
Ok Lets get to converting shall we?
sox myfile.mp3 myfile.ogg
The above command converts mp3 to ogg which is a cleaner format to use, you can use this command to convert files to any format above by just adding the file extention you want it converted to.
Then we can play the ogg file right from the command line and add a lil extra bass :)
play myfile.ogg bass +3
More information can be found on SoX on the developer's page here

Expand full post here...

Comments

Top Linux BitTorrent Clients For Ubuntu

I use BitTorrent for downloading music, movies and linux distro's. Back in the day bitTorrent didnt exist and I relied on bbs and ftp, these are two direct, centrally located ways that I shared files in the past. I also have played around with XDCC's on irc, gnutella, which most people know as limewire. While I will always prefer the old ways, like dialing up to the local bbs and logging in to a ftp, or swinging by an xdcc channel, the new alternative is... "just ok for now" I hope it is better optimized, more secure, and more anonymous in the future. I have tried all the command line BitTorrent clients, and they are awesome with memory/cpu usage but that isnt the preferred way anymore, most resort to GUI clients, and there are a few to choose from that kick ass. Here is a few to think about:

What is Deluge?

Deluge is a full-featured BitTorrent client for Linux, Mac OS X and Windows. It uses libtorrent in it's backend and PyGTK for it's user interface.

Deluge features a rich plugin collection; in fact, most of Deluge's functionality is available in the form of plugins.

Deluge was created with the intention of being lightweight and unobtrusive. It is our belief that downloading shouldn't be the primary task on your computer and therefore shouldn’t monopolize system resources.

Deluge is not designed for any one desktop environment and will work just fine in GNOME, KDE, XFCE and others.

Deluge is Free Software and is licensed under the GNU General Public License.

What about features?

Deluge has a wide-array of features, including:

  • Web UI
  • BitTorrent Protocol Encryption - Ability to force Encryption Inbound/Outbound, force handshake or full stream encryption
  • Highly Configurable Network Settings - Tweakability
  • Mainline DHT
  • Local Peer Discovery (aka LSD)
  • FAST protocol extension
  • µTorrent Peer Exchange
  • UPnP and NAT-PMP
  • Proxy support
  • Web seed
  • Private Torrents
  • Global and per-torrent speed limits
  • Configurable bandwidth scheduler
  • Password protection
  • RSS
  • Block List Importer - Import anti-P2P ip lists
  • Desired Ratio Plugin
  • Event Logging - logs blocked ip's network errors and network statistics/errors and other info
  • Speed Limiter - Limit the speed per torrent upload/download
  • Prioritize Files - Easily Select Downloadable files instead of every file in the torrent
  • Network Health Monitor
  • Torrent Creation
  • Torrent Scheduler
  • Low memory/cpu usage!
  • And much more

How do I Install Deluge?
Click Here for one click Install if you are running Firefox with apt-url installed or:
sudo apt-get install deluge-torrent
How do I hack deluge to work on private trackers?
Check my older post that still works here on How to make deluge sp00f: http://www.ubuntu-unleashed.com/2007/09/setup-and-spoof-deluge-bittorent-client.html

What is Transmission?

Transmission is a lightweight client, for people that do not care about extra features, that want just a standard BitTorrent Client.

What about features?


  • Selective downloading and file prioritizing
  • Encryption support, with option to ignore unencrypted peers
  • Torrent file creation
  • Peer exchange (compatible with Azureus and μTorrent)
  • Automatic port mapping (using UPnP/NAT-PMP)
  • MSE Tracker Extension support
  • Fast Resume - with peer caching
  • Auto-banning of peers who send bad data
  • Sort and filter by tracker
  • Single listening port for all torrents

How do I Install Transmission?
Click Here for one click Install if you are running Firefox with apt-url installed or:
sudo apt-get install transmission

What is Ktorrent?

KTorrent is a BitTorrent client written in C++ for KDE using the Qt user interface toolkit. It is maintained in the KDE Extragear. This is probably the best kde torrent client, but uses allot of cpu/ram

Features

  • Upload and download speed capping / throttling & scheduling
  • Internet searching with torrent search engines using KHTML part.
  • Support for UDP trackers.
  • IP address blacklist plugin
  • Port forwarding with UPnP (Universal Plug and Play)
  • Protocol encryption
  • DHT (mainline version), and support for trackerless torrents
  • µTorrent peer exchange (PEX) support (as of 2.1 RC1).
  • File Prioritization
  • Ability to import partially-downloaded files
  • Directory scanner to automatically watch directories for new torrents
  • Manual addition of trackers to torrents
  • RSS feed support
  • Web interface plugin with default por number 8080

How do I Install Ktorrent?
Click Here for one click Install if you are running Firefox with apt-url installed or:
sudo apt-get install ktorrent

What is Azureus?

Azureus is a Bittorrent client written in java and comes bundled with many invaluable features for both beginners and advanced users that is very bloated...


What about features?

  • Multiple torrent downloads
  • Upload and download speed limiting, both globally and per torrent
  • Advanced seeding rules
  • Adjustable disk cache
  • Only uses one port for all the torrents
  • UPnP sets the forward on your router
  • Can use a proxy, for both tracker and peer communications
  • Fast resume
  • Can set a default download dir and move completed files
  • Can import torrents automatically from a set dir
  • Highly customizable interface
  • IRC plugin included for quick help
  • Embedded tracker, host your own torrents, automate your shares (periodic scanning of a dir)…
  • Distributed Hash Table: host on it a completely decentralised torrent and/or benefit from it when the tracker is offline.
  • Auto-adjustment of your upload and download speeds according to your network charge with Autospeed
  • Auto-download torrents with RSS Feed Scanner
  • Schedule upload and download speed limits with Speed Scheduler
  • Receive a mail when a download finishes with Status Mailer
  • Add numerous info on torrents (Extra seeding columns, Country Locator)
  • Remote control Azureus through the Swing Web Interface or the HTML Web Interface


How do I Install Azureus
Click Here for one click Install if you are running Firefox with apt-url installed or:
sudo apt-get install azureus



You Want A Terminal BitTorrent Client eh?
rtorrent/libtorrent is a nice ncurses based client, check it out here or apt-get install rtorrent

Got anything else worth mentioning?


Expand full post here...

Comments

Howto: Install awesome Music Visualizations for Rythmbox and XMMS In Ubuntu


I absolutely love visualizations while listening to music, its unfortunate that Ubuntu does not currently have many presets, Fortunately here is a quick way to enjoy a few other visualizations in Ubuntu, personally I think these visualizations should have been installed by default with Rythmbox!
If your in Firefox and have apt-url installed click here to install this with one click!
sudo apt-get install libvisual-0.4-plugins
Ok now Reload Rythmbox and click on Visualization, and you will get a drop down List of the GOOM Alternative Visuals

Hopefully when I get a chance I will port over winamp visuals to rythmbox but, that may take some time hehe

Expand full post here...

Comments

Clicky Web Analytics