It's very simple.
For User:
chown username filename
chown username directoryname
Recursively:
chown -R username directoryname
For Group:
chgrp groupname filename
chgrp groupname directoryname
Recursively:
chgrp -R groupname directoryname
-----
Change groupname and username at the same time.
chown username:groupname filename
Change username and groupname at the same time recursively.
chown -R username:groupname directoryname
Source: http://www.mysysad.com/2006/09/change-group-attributes-to-file.html
Sunday, December 18, 2011
Monday, October 31, 2011
Restore Panels In Ubuntu Back To Their Default Settings
Messed up your panels in Gnome? Maybe your new to Ubuntu and accidentally deleted items or the panel itself and now you can't figure out how to get it back.
Once the Terminal window opens, enter the following command at the prompt:
gconftool-2 --shutdown
(Note: There should be no spaces between the two dashes before shutdown.)
EDIT – there is another method instead of shutting down gconfd. Instead use the following command.
gconftool --recursive-unset /apps/panel
(Remember: There should be no spaces between the two dashes before shutdown.)
Then enter the next command:
rm -rf ~/.gconf/apps/panel
And enter one more command:
pkill gnome-panel
Both top and bottom panels will appear (if missing) with their default settings. Now you can customize them to your preference and get on with using Ubuntu.
NOTE: This method will work in Gutsy Gibbon (7.10) and Hardy Heron (8.04) version of Ubuntu.
Once the Terminal window opens, enter the following command at the prompt:
gconftool-2 --shutdown
(Note: There should be no spaces between the two dashes before shutdown.)
EDIT – there is another method instead of shutting down gconfd. Instead use the following command.
gconftool --recursive-unset /apps/panel
(Remember: There should be no spaces between the two dashes before shutdown.)
Then enter the next command:
rm -rf ~/.gconf/apps/panel
And enter one more command:
pkill gnome-panel
Both top and bottom panels will appear (if missing) with their default settings. Now you can customize them to your preference and get on with using Ubuntu.
NOTE: This method will work in Gutsy Gibbon (7.10) and Hardy Heron (8.04) version of Ubuntu.
source : watchingthenet.com
Wednesday, October 19, 2011
Skype video with Ubuntu
How to launch Skype + V4L2 directly from Gnome menus so that the webcam works:
Menu System --> Preferences --> Main Menu
In the window select Internet, then Skype
Click on [Properties] button
In Command enter:
bash -c 'export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so; skype'
http://ubuntuforums.org/showthread.php?t=966882&page=3
https://wiki.ubuntu.com/SkypeWebCams
Menu System --> Preferences --> Main Menu
In the window select Internet, then Skype
Click on [Properties] button
In Command enter:
bash -c 'export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so; skype'
http://ubuntuforums.org/showthread.php?t=966882&page=3
https://wiki.ubuntu.com/SkypeWebCams
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
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
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
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
Tuesday, July 19, 2011
Install Linux Canon Printer Driver in Ubuntu
https://help.ubuntu.com/community/CanonCaptDrv190
Canon provide Debian Packages to install the driver under ubuntu for download. Offical supported is only the previous version 10.04 of ubuntu. Extracting the zip file you will find under
/32-bit_Driver/Debian
the deb packages. First thing to install is cndrvcups-common_2.20-l_i386.deb with dpkg -i. The
problem is that ubuntu 11.04 doesn’t contain the required gs-esp
package.
Workaround is to download and install it with
dpgk -i gs-esp_9.01~dfsg~svn12047-0ubuntu1_all.deb
After that you can install the common canon driver and afterwards the ufr driver:
dpgk -i cndrvcups-common_2.20-1_i386.deb dpgk -i cndrvcups-ufr2-uk_2.20-1_i386.deb
Now you can open the driver setup application and click on the add button. Choose network printer, enter the ip of your canon printer and click on examine. Select from the list below Canon and click on next. Select “LBP6650″ and click on next. Confirm dialog with use button. Test your configuration with printing a test page.
http://ralf.schaeftlein.de/2011/06/18/canon-lbp6650-under-ubuntu-11-04/
Update for 12.04
http://radu.cotescu.com/how-to-install-canon-lbp-printers-in-ubuntu/
Canon provide Debian Packages to install the driver under ubuntu for download. Offical supported is only the previous version 10.04 of ubuntu. Extracting the zip file you will find under
the deb packages. First thing to install is cndrvcups-common_2.20-l_i386.deb with dpkg -i
Workaround is to download and install it with
dpgk -i gs-esp_9.01~dfsg~svn12047-0ubuntu1_all.deb
After that you can install the common canon driver and afterwards the ufr driver:
dpgk -i cndrvcups-common_2.20-1_i386.deb dpgk -i cndrvcups-ufr2-uk_2.20-1_i386.deb
Now you can open the driver setup application and click on the add button. Choose network printer, enter the ip of your canon printer and click on examine. Select from the list below Canon and click on next. Select “LBP6650″ and click on next. Confirm dialog with use button. Test your configuration with printing a test page.
http://ralf.schaeftlein.de/2011/06/18/canon-lbp6650-under-ubuntu-11-04/
Update for 12.04
http://radu.cotescu.com/how-to-install-canon-lbp-printers-in-ubuntu/
Subscribe to:
Posts (Atom)