31 May, 2009

How to record rip streaming net radio in Ubuntu Debian Linux easy steps

How to record streaming net radio in Ubuntu Debian Linux easy way. 
You kan do it from textmode or if you have Gnome desktop, use GNOME Terminal, 
and change to directory [You could 'mkdir' (make directory)] you want to stream to.
then you need to install 'streamripper'
$: sudo apt-get install streamripper

Here is how to use: 'streamripper (URL)' to rip,
just replace (url) with your stream,
and streamripper will be separating each song to own file and naming the files, if information is available. If you type:

$: streamripper (URL) -r 

then you will create a local relay on http://localhost:8000 
or relay port:XXXX be shown when ripping start.

You can then use that on your music player so you don't need to have 2 connections open to the web radio, to listen & rip at the same time.
If you don't want to have tons of folders everytime you rip, type:

$: streamripper (URL) -s

then all ripping will be save in that directory you standing in.

You can use
$: streamripper (URL) -a

to rip into a single file, and '-d' allows selecting directory for more options. 
$: man streamripper ... will tell more.

For a GUI way, 

$: sudo apt-get install streamtuner

It will appear in your menus, and allows you to browse large selection of web radio streams and just hit record button to record the stream with streamripper.
ripping will look like this, have fun.... :)

27 May, 2009

How To Install VMWareServer2 on Ubuntu 9.04

How To Install VMWareServer2 on Ubuntu 9.04

The VMWare team finally decided to make an Ubuntu friendly version of their software, and made installation relatively easy!
They removed the VMWare server console and instead change to Web browser easy to use management system! That means friendly to use for you and me!

So lets get startet to install.
This is what you need to do to install VMWare Server 2 on Ubuntu 9.04:

Note: If you using ubuntu server and doesn't have a GUI, you need to register for the download, and then download it to your Desktop machine, any folder you want.

Now, to the install steps:

1. Install the necesarry prerequisites

$ sudo apt-get install linux-headers-`uname -r` build-essential xinetd

2. Now change into the directory where you want your VMWare TAR ball to be. I saved mine in /home/morphus.dk/vm

$ cd /home/yourusername/vm

Note: if your didn't make a directory yet, you do it like this:

$ mkdir vm
now you have a directory name "vm"
then copy your VMware tarball to that "vm" directory,like this

$ cp whereeveryourare/VMware-server-*.tar.gz VMware-server-*.tar.gz

then change directory to "vm" or what ever you have call it, like this

$ cd whereeveryouare/vm

3. Now Extract the TAR ball and run the installer

$ tar xvfz VMware-server-*.tar.gz

$ cd vmware-server-distrib

$ sudo ./vmware-install.pl

4. You can hit enter for all of the defaults, except when asked for a name of an alternate administrator. For that enter your username.
If you don't, you will have to reset the root password as that is the default administrator for VMWare Server,
when asked for the direcrory of virtual machines, you have the option of saving them in a different directory. I for instance like to save mine in /home/morphus.dk/vm.
5. Near the end, you will have to enter your serial number which you received when you first registered for the download.
6. Done! Now you are ready to login! You can login to the web console by browsing to

Log in to VMserver2:

  1. http://servername:8222
  2. or http://localhost:8222 (or hvat ever port you set, thru installation)

After building your first machine, you can view it through the web console in Firefox after installing the correct plugins which you will be prompted for in the web console.
That is it! Seriously! Can you believe it? In just about all previous Ubuntu versions, and VMWare Server versions it has been 1.5 bitches to install. This time it is really really easy!
After you installing it, and have any comments, let me know what you think!

17 May, 2009

Wordpress quick 3 steps install.

Install Wordpress directly on you webserver in terminal througt ssh or putty consol.
WordPress directly to your web server using wget (or lynx or another console-based web browser):

* wget http://wordpress.org/latest.tar.gz
* Then unzip the package using:
tar -xzvf latest.tar.gz


How to install Wordpress blog on UBUNTU LAMP server?

This tutorial is how to install WordPress on Ubuntu Linux Desktop using LAMP. Why ? One reason is that you can do a lot of developing (playing around) much quicker as there is no need to use ftp. If You like me, play around with WordPress as a developer (perhaps you create your own theme or plugin), you should install WordPress locally in your Ubuntu Linux Desktop.

You do not need to convert your Ubuntu Desktop into Ubuntu Server. You only need install addition packages that you need to run WordPress on your Ubuntu Linux desktop.

Get ready?! Let?s start to install WorPress on Ubuntu Linux desktop.

Install LAMP

You can view my previous post about LAMP Installation On Ubuntu, if you have not already done so.

Download WordPress

You can download WordPress from their official website into your Ubuntu desktop.

Extract your WordPress archieve into your server directory

sudo tar zxvf wordpress-x.x.x.tar.gz --directory=/var/www/

Prepare MySQL Database for WordPress

Create a database for WordPress on your Ubuntu, as well as a MySQL user who has all privileges for accessing and modifying it. You can use phpMyAdmin to make it easier ;)

  • First create dababase: wordpress
  • Then create a new user: wordpress with password: wordpresspassword

Write down the values you used for databasename, wordpressusername, hostname, and password for future purpose ;)

Configure WordPress Setting

Copy the wp-config-sample.php file to wp-config.php. Open and edit wp-config.php file

// ** MySQL settings ** //
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'wordpresspassword');
define('DB_HOST', 'localhost');

Run the Install Script

Using your favorite web browser (Firefox by default), visit wp-admin/install.php within the directory into which you just installed WordPress on your web site. For example: point your browser to http://localhost/wordpress/wp-admin/install.php
.

Preview your New WordPress

Point your browser to http://localhost/wordpress.

Well done! You have your own WordPress on Your Ubuntu Linux Desktop.

16 May, 2009

Installing LAMP on Ubuntu (Linux,Apache,MySQL,PHP)

Installing LAMP on Ubuntu (Linux,Apache,MySQL,PHP)
Linux/Unix, PHP, Tutorials and Ubuntu
Apache, LAMP, Linux, MySQL, PHP, Ubuntu.

This guide is divided into 3 steps: installing/tesing Apache, PHP and finally MySQL.

Lets start with Apache:
1. Open the terminal (we will be using it through most of my guide) from Applications > Accessories > Terminal
2. Install apache2 using apt-get by typing the following

sudo apt-get install apache2

Note that you should know the root password.
Now everything should be downloaded and installed automatically.
To start/stop apache2 write:
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop

Your www folder should be in: /var/www/

If installing Apache2 was succesfull you should see an ordinary HTML page when you type: http://localhost in your browser

Finished with Apache ? lets conquer PHP:

1. Also in terminal write:
sudo apt-get install php5 libapache2-mod-php5

or any php version you like
2. restart apache
$ sudo /etc/init.d/apache2 restart

This is it for PHP :D Wanna test it ? Just create an ordinary PHP page in /var/www/ and run it.
Example:
$ sudo nano /var/www/test.php

and write in it:
$ < ?php Echo "Hello, World!"; ?>

Now run it by typing http://localhost/test.php in browser… You should see your ” Hello World ”

OK ,lets continue to installing MySQL:
1. Open terminal and type:
$ sudo apt-get install mysql-server-5.0

2. (optional) If you are running a server you should probably bind your address by editing bind-address in /etc/mysql/my.cnf and replacing its value (127.0.0.1) by your IP address
3. set your root password (although mysql should ask you about that when installing)
mysql> SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(’xxxxxx’);

4. Try running it
mysql -uroot -pxxx

where xxx is your password.
Note: You can install PHPMyAdmin for a graphical user interface of MySQL by executing
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

5. restart apache for the last time
sudo /etc/init.d/apache2 restart

Congratulions your LAMP system is installed and running :D Happy Coding

1: To open PHPMYADMIN type just in your browser:
"http://localhost/phpmyadmin" - without quotes of course

2: To start, stop or restart APACHE2 - open terminal and type:
"apachectl start/stop/restart "

12 May, 2009

HyperTerminal in Ubuntu - Minicom Serial Port


HyperTerminal replacement in Ubuntu - Minicom

I was kinda surprise that HyperTerminal is not available anymore in Windows Vista. No problem, I rebooted my notebook to Ubuntu and fire-up minicom.

1. By default, minicom is not installed in Ubuntu, so you need to install it first.
$ sudo apt-get install minicom

2. Find the name of your Serial Port
$ dmesg | grep tty

In the output look for something like "tty". The output in my case is like this:
$ dmesg | grep tty

[ 0.004000] console [tty0] enabled
[ 1.284802] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.285068] 00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

This means the device correspond to my serial port is ttyS0.

3. Configure minicom
sudo minicom -s
* Use the keyboard keys to select the menu item Serial port setup.
* Enter A to change the Serial Device to /dev/ttyS0,
and then enter E to change the line speed to 9600 8N1
* Using arrow keys, select Save setup as dfl

4. Select Exit from Minicom.

5. Next time, from the terminal you only need to run sudo minicom in order to access your Cisco box.

11 May, 2009

Installing Packet Tracer 5 BIN package as root - how?

Installing Packet Tracer 5.3 BIN package as root - how?

sudo chmod +x PacketTracer53_i386_installer-deb.bin
sudo ./PacketTracer53_i386_installer-deb.bin


download here

06 May, 2009

tptest for linux

tptest for linux
tptest is a program for testing your broadband.
downunder are instruction for installing in linux:

download here
tar xzvf tptest-3.1.7.tar.gz
cd tptest-3.1.7
cd apps/unix/client/
make

kör sen programmet (byt ut bredband.net till den leverantör du tycker är lämplig)
run program like this (change bredband.net with any ISP you want)

./tptestclient -v 10 -m tcp-auto tptest.bredband.net 1640