Posts

Showing posts with the label ubuntu

MySQL change root password

Image
To change the root password for the database in linux you use mysqladmin utility. The parameters you need to pass are: -u root the username used for logging in. In this case we want to be root obviously -p'currentPassword' the password for logging in. Notice there are no space between p and quote. password newPassword define the new password. So for example: mysqladmin -u root -p'myoldpassword' password mynewpassword

Open file manager window from console

Some times you work in console, and need to open current path in file manager window. You can open any window and then navigate to location that is in your console path, or you can simply type xdg-open . & The "." means that you pass the current location to the command "xdg-open", and appending the "&" sign at the end will able you to detach xdg-open command from the console, so you still can contine to work on the console and keep the file manager window opened.

Adding Gnome 3 to Ubuntu 11.04

This works for Ubuntu 11.04. To install Gnome 3 on Ubuntu 11.04 you basically do sudo apt-get install gnome-shell and then switch to it doing gnome-shell --replace If after first command you get an error about unmet dependencies like gir1.2-atk-1.0 you might open Ubuntu Software Center and click Edit->Software Sources... and add "ppa:gnome3-team/gnome3". Or do it via terminal by running sudo add-apt-repository ppa:gnome3-team/gnome3 sudo apt-get update sudo apt-get dist-upgrade After that re-run the first command