Tuesday, September 13, 2011

Listening to online radio stations under Linux

Method 1
Tuning into your favourite online radio stations without needing to open a dedicated music application is a breeze using RadioTray. The application runs directly from your system panel with a menu-only interface – thus making it very straightforward to use. Just don’t expect a fully featured bells-and-whistle jukebox for all RadioTray wants to do is give you access to your favourite radio stations with as few clicks as possible – a goal to which it admirably lives up to. Download RadioTray  

Method 2
I feel like a kid in a candy shop. I installed streamtuner today. Streamtuner makes thousands (no exaggeration) of internet music stations available to you. This includes all shoutcast and live365 stations. You also need to have xmms or beep-media-player or somesuch player that can play playlists. So: $sudo apt-get install streamtuner xmms and you are set! Now you can search or browse through the thousands of streams and pick the one you want to hear.

More>>
http://www.omgubuntu.co.uk/2010/06/listen-to-radio-stations-in-ubuntu-using-radiotray/ 
http://embraceubuntu.com/2006/04/05/listen-to-and-record-internet-music-radio-stations/ 
http://www.webupd8.org/2010/07/listen-to-internet-radio-in-ubuntu.html
http://www.liberiangeek.net/2010/06/listen-to-internet-radiomusic-in-ubuntu-10-04-lucid-lynx/ 
http://www.brighthub.com/hubfolio/matthew-casperson/articles/73046.aspx  

Radio Stations in Sri Lanka
http://en.wikipedia.org/wiki/List_of_radio_networks_in_Sri_Lanka
http://www.asiawaves.net/sri-lanka-radio.htm 
http://radiostationworld.com/locations/sri_lanka/radio_websites.asp

Saturday, September 10, 2011

How to change computer name in Ubuntu

Computer name is normally given during the OS installing phases. But you could easily change the computer name with a simple GUI tool which is there in Ubuntu by default.There is a command line tool as well if you are so particular.GUI tool is simple and easy to use.Here is a step by step guide on how to change the computer name.

Using GUI

Go to System -> Administration -> Networking

Network settings

General Tab -> Host Settings -> Hostname: Specify the computer name

save changes and restart your computer.

Using command line

Goto terminal and type the following

sudo gedit /etc/hostname

Change your hostname Also take a look at /etc/hosts. And change your old name to your new one too.

Source : http://ubuntumanual.org/posts/143/how-to-change-computer-name-in-ubuntu

How to reset Mysql password

ERROR 1045: Access denied for user: 'root@localhost' (Using
password: NO)

or

ERROR 1045: Access denied for user: 'root@localhost' (Using
password: YES)


To resolve this problem ,a fast and always working way is the "Password Resetting" .

How can I reset my MySQL password?

Following this procedure, you will disable access control on the MySQL server. All connexions will have a root access. It is a good thing to unplug your server from the network or at least disable remote access.

To reset your mysqld password just follow these instructions :

Stop the mysql demon process using this command :

sudo /etc/init.d/mysql stop

Start the mysqld demon process using the --skip-grant-tables option with this command

sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &

Because you are not checking user privs at this point, it's safest to disable networking. In Dapper, /usr/bin/mysgld... did not work. However, mysqld --skip-grant-tables did.

start the mysql client process using this command

mysql -u root

from the mysql prompt execute this command to be able to change any password



FLUSH PRIVILEGES;

Then reset/update your password

SET PASSWORD FOR root@'localhost' = PASSWORD('password');

If you have a mysql root account that can connect from everywhere, you should also do:

UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root';





Alternate Method:

USE mysql
UPDATE user SET Password = PASSWORD('newpwd')
WHERE Host = 'localhost' AND User = 'root';

And if you have a root account that can access from everywhere:

USE mysql
UPDATE user SET Password = PASSWORD('newpwd')
WHERE Host = '%' AND User = 'root';

For either method, once have received a message indicating a successful query (one or more rows affected), flush privileges:


FLUSH PRIVILEGES;

Then stop the mysqld process and relaunch it with the classical way:

sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start


source https://help.ubuntu.com/community/MysqlPasswordReset