Best Audio Tools for Ubuntu Linux

Play and Manage Music in Linux
Rhythmbox is a music software originally inspired by Apple's iTunes. It is based on the powerful GStreamer media framework. It included in the default installation of ubuntu. Play, rip, and burn audio CDs, Display audio visualizations.

Audacious is a lightweight audio player with a WinAmp/XMMS-like skin type GUI. It supports popular audio formats. Spectrum analyzer, Oscilloscope and voiceprint visualizations are built in.

Amarok is an audio player for KDE offering lot of features

Banshee is music playback and management software for Gnome. It can use to Listen internet radio with the ability to add custom stations. Rip CDs, Burn CDs, either as MP3s or as conventional audio CDs

Editing and Recording Music in Linux
Audacity is a free, easy-to-use audio editing and recording software. It is sourceforge award winning Software. It Record from microphone, line input, or other sources. Dub over existing tracks to create multi-track recordings. 16 channels can record at once (need multi-channel hardware). Level meters can monitor volume levels. Easy editing with Cut, Copy, Paste, and Delete. Edit and mix an unlimited number of tracks. Change the pitch without altering the tempo, can remove hiss, hum and other noices, built in effects includes Echo,Phaser,Wahwah,Reverse. Record and edit 16-bit, 24-bit, and 32-bit samples.

Convert PDF to TXT in Ubuntu Linux

Use pdftotext utility can be used to convert Portable Document Format (PDF) files to plain text.

$ sudo apt-get install poppler-utils

usage:

$ pdftotext abc.pdf xyz.txt

$ pdftotext -l 5 abc.pdf xyz.txt ( convert last 5 pages)

$ pdftotext -f 5 abc.pdf xyz.txt (convert first 5 pages)

$ pdftotext -upw 'password' abc.pdf xyz.txt ( for password protected pdf)

Enable Process Accounting in Ubuntu: Acct will log user process

If you Enable process accounting in your system, it will help you to keep track of your user processes. It is very useful for System administrators for keeping log of your users.

in Ubuntu Process accounting can be done by installing utility called Acct

$ sudo apt-get install acct


$ sudo touch /var/log/pacct - make a log file for process accounting


$ sudo accton /var/log/pacct - enable process accounting on


or

$ /etc/init.d/acct start

For viewing the Process Information Use the following command

Display details about users' connect time

$ ac
ac command displays a report of connect time in hours based on the logins/logouts.

ac - Print total connection time.
ac -dp - display daily (-d) connection totals by person (-p)

Display information about previously executed user commands

$ sudo lastcomm john - will display the commands executed by user john

$ sudo lastcomm rm - search and display log by command rm

$ sudo lastcomm pts/1 - search and display log by terminal name


Print Accounting statistics

$ sudo sa
sa command will display information about previously executed commands, The information can also be summarized on a per-user basis


The output fields are labeled as follows:

cpu sum of system and user time in cpu seconds

re “real time” in cpu seconds

k cpu-time averaged core usage, in 1k units

avio average number of I/O operations per execution

tio total number of I/O operations

k*sec cpu storage integral (kilo-core seconds)

u user cpu time in cpu seconds

s system time in cpu seconds
Display ouput per user
$ sudo sa -u

Display the number of processes and number of CPU minutes on a per-user basis
$sudo sa -m

By using sa command and looking at re, k, cp/cpu time you can find out suspicious activity or user and command who is eating your CPU and Memory . An increase in CPU/memory usage is indication of problem.

see more here http://www.gnu.org/software/acct/manual/html_mono/accounting.html

Install LTSP in Ubuntu 11.04 Natty Narwhal






Linux Terminal Server Project (LTSP) is a free and open source software for Linux that allows many people to simultaneously use the same computer. Applications run on the server with a terminal known as a thin client (also known as an X terminal) handling input and output. Generally, terminals are low-powered, lack a hard disk and are quieter than desktop computers because they do not have any moving parts.
In case of the newer MueKow (LTSP 5) setup, the client first builds an SSH tunnel to the LTSP server's X environment, through which it will start the LDM login manager (on the LTSP server). From this point forward, all programs are started on the LTSP server, but displayed and operated from the client.

See How to install LTSP in Ubuntu with few simple steps.
First You have to set a Static IP address in Your Machine to 192.168.0.1
( See How to setup static IP)
Now
Open a terminal in your existing Ubuntu Machine ad type the following Commands

$ sudo apt-get install ltsp-server-standalone openssh-server

$ sudo ltsp-build-client
$ sudo /etc/init.d/networking restart
$ sudo /etc/init.d/dhcp3-server restart


Now Your LTSP Server is ready. Set PXE boot in client system ( This means you have to select Network card as your Boot Device).

If you change your IP Address You have to do the following
* Configure DHCP Server (/etc/ltsp/dhcpd.conf)
* Run command "sudo ltsp-update-sshkeys"

Play swf file(Macromedia Flash) on Ubuntu / Debian Linux






swfdec-gnome is a very good Tool to play SWF files (Macromedia Flash) on GNOME. This package contains programs to integrate Flash functionality into the GNOME desktop. It's main application is swfdec-player, a stand-alone viewer for Flash files. It also contains swfdec-thumbnailer, a program that provides screenshots for files to display in the Nautilus file manager.

How to Install in Ubuntu
Open a Terminal
$ sudo apt-get install swfdec-gnome
or use Synaptic package manager

How to change the MAC address of a Windows machine

This will help you to change the MAC address of a Windows machine.


Change Registry
This howto requires little knowledge on the Windows Registry. Also,
make sure you have a good backup of your registry.

•Goto command prompt and type "ipconfig /all", and
•Note the Description for the NIC you want to change.
•Not the MAC Address for the NIC you want to change
•Goto command prompt and type "net config rdr", and remember the number between the long number (GUID) inside the { }. For example, for MAC address "00C095ECB794," you should remember "{1C9324AD-ADB7-4920-B02D-AB281838647A}". You can copy and paste it to the Notepad, that's probably the easiest way.
•Go to Start -> Run, type "regedt32" to start registry editor. Do not use "Regedit."
•Do a BACKUP of your registry in case you screw up the following steps.
•Click on "HKEY_LOCAL_MACHINE on Local Machine" sub-window
•Click on the root key "HKEY_LOCAL_MACHINE".
•Click on the drop-down menu "Registry -> Save Subtree As" and save the backup registry in to a file. Keep this file in a safe place.
•Go to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}". Double click on it to expand the tree. The subkeys are 4-digit numbers, which represent particular network adapters. You should see it starts with 0000, then 0001, 0002, 0003 and so on.
•Go through each subkey that starts with 0000. Click on 0000, check DriverDesc keyword on the right to see if that's the NIC you want to change the MAC address. The DriveDesc should match the Description you recorded from step (a.-I.). If you are not 100% sure about the DriverDesc, then you can verify by checking if the NetCfgInstanceID keyword value matches the GUID.
•If there is no match, then move on to 0001, 0002, 0003, and so on, until you find the one you want. Usually 0000 contains the first NIC you installed on the computer.
•In this demonstration, 0000 is the NIC I selected.
•Once you selected the subkey (i.e. 0000), check if there is a keyword "NetworkAddress" exist in the right side of the window.
•If "NetworkAddress" keyword does not exist, then create this new keyword:
•Click on the drop down menu "Edit -> Add Value".
•In the Add Value window, enter the following value then click OK.
•Value Name: = NetworkAddress
•Data Type: = REG_SZ
•String Editor window will pop up at this time
•Enter the new MAC address you want to modify. Then click OK.
•(There should not be any "-" in this address. Your entry should only consist of 12 digits.
•If "NetworkAddress" keyword exists, make sure it shows the keyword type is REG_SZ, and it should show as NetworkAddress:REG_SZ: . This keyword might not have a value at this time.
•Double click on the keyword NetworkAddress and the String Editor window will pop up.
•Enter the new MAC address you want to modify. Then click OK. (There should not be any "-" in this address. Your entry should only consist of 12 digits).
•Goto Start->Setting->Control Panel, and double click on "Network Neighborhood".
•Select the Network Adaptor you just changed the MAC address.
•Disable and enable the adaptor
•At the command prompt, type "ipconfig /all" to confirm the new MAC address.

Angry IP Fast and simple - IP and Port Scanner in ubuntu


Angry IP Scanner is a IP and Port Scanner widely used by Network Administrators and Hackers. It is an open-source and cross-platform network scanner designed to be fast and simple to use. It scans IP addresses and Ports. It has lots other features also.

Features
It can scan IP addresses with in a given range,
It can also scan their ports.
It can be used for finding a host alive by just pinging.
It can be used for resolving the host name, finding MAC Address.

It also has additional features, like NetBIOS information computer name, workgroup name, and currently logged in Windows user), web server detection, customizable openers, etc.

Installation
Download version 3.0-beta3 Here

$ sudo dpkg -i ipscan_3.0-beta3_i386.deb

Control A Relay from PIC Microcontroller - Circuit Diagram

Simply you can control a relay through Pic Microcontroller. See a simple circuit for controlling a single relay with pic 16f628. When RB5 port of pic become High the relay will operate. This Circuit works with non-latching ralays(commonly used relays are non-latching)

Howto find out Your Ubuntu / Debian is 32 bit or 64 bit

Some times you need to know , Your Ubuntu / Debian is 32 bit or 64 bit,

You can use the following command

open a terminal and type



$ uname -m

You will get an output like i686 or x86_64


i686 means it is 32 Bit
x86_64 means it is 64 bit

Install PHP GD (PHP Graphics) support in Ubuntu / Debian

PHP is not limited to creating just HTML output. It can also be used to create and manipulate image files in a variety of different image formats, including GIF, PNG, JPEG, WBMP, and XPM. Even more convenient, PHP can output image streams directly to a browser. You need to install GD Library for this purpose. Simply you can do this.
If you have a LAMP (PHP. APACHE and Mysql) Installation in your System , you can install GD library using the following .

in Ubuntu /Debian Install the package


$ sudo apt-get install php5-gd ( or use synaptic for installing this package )

Now Restart Your apache

$sudo /etc/init.d/apache2 restart

setup Static IP Address in Ubuntu 10.10

Setup Static IP Address

If you want to setup a Static IP Address in your system , Modify the file /etc/network/interfaces. If your First Ethernet Interface is eth0 ,see the following Example. Just add the following lines in the file with the help of an Editor and Restart the network or system.



auto eth0
iface eth0 inet static
address 192.168.0.25
netmask 255.255.255.0
gateway 192.168.0.1



after modifing the file
$ sudo /etc/int.d/networking restart

Mount A Linux Partition In FreeBSD

For ext2fs filesystem Support under FreeBSD, You have to build a new kernel with ext2fs support. Put the line
options “EXT2FS”

in your kernel configuration file for the new kernel and compile.

or

Do the following steps to enable ext2fs support in the kernel:

# cd /usr/src/sys/modules/ext2fs
# make
# make install

You can use ‘kldload‘ to load the ext2fs module in to the kernel.

# kldload ext2fs
Then you will be able to mount your linux partitions by giving a command like:

# mount -t ext2fs /dev/ad1s1 /mnt

to unload module use

# kldunload ext2fs

To load the module automatically on system startup

add the following line in to /boot/loader.conf

ext2fs_load=”YES”

Free java Script Source Code

With almost 800 ready-to-use Java Scripts that you can cut & paste into your own web pages, this package is the largest collection of JavaScripts available anywhere!


All of the scripts have been organized by category so you can find what you need quickly. Even so, we invite you to browse through all of the categories so you get a feel for what is available. You may find some useful scripts you didn’t even know existed or pickup some ideas for your own projects! Happy scripting!

Download