How to reset GNU/Linux root/user password

root-012
The root account is the most privileged account on a Unix system. The root account has no security restrictions imposed upon it (Hmm…there are some exceptions though). When you are logged in as super user, you don’t have to face any questions. Therefore it is easy, with a mistyped command, to wipe out crucial system files or even the whole system all of a sudden. I have had situations where I forgot my root password and is unable to do any administrative level tasks. Due to increase in different type of cloud services, users are forced to manage large number of passwords and it is very common to forget some of them which may include the system’s own root password. What can we do in those situations? Either we recover or just reset the previous root password with a new one. The former is Continue reading

Crazy text mode browsing from bash through elinks

Image

All of us are quite familiar with web browsers like mozilla firefox, google chromium etc. They are unavoidable in this fast moving internet world. But have you ever thought of browsing the internet via a text mode browser? It sounds a bit crazy, right? GNU/Linux is a platform for that too which is made possible by elinks, an opensource text web browser.

It fast access a busy server. Consider a situation where you tried to search some content or website, but at the same time another user also tries Continue reading

Change the host/computer name and bluetooth name in GNU/Linux

Hostname is the computer name, usually displayed in user@hostname format after login. This hostname is the name you gave during the installation of the GNU/Linux i.e, the computer name. Most of us wish to change this name afterwards. Here is a simple way described to perform the action.

1. sudo nano /etc/hostname
2. Just replace the whole thing i.e, the present hostname with the new one.
3. Save the file
4. sudo nano /etc/hosts
5. Edit the second line starting with 127.0.1.1 by replacing the current hostname with the same one you entered in /etc/hostname.
6. Save the file and logout.

During the next login changes will be made.

Another important thing is about the bluetooth name visible to others during file transfer. In Ubuntu I think the default name is ‘ubuntu-0’. Don’t you feel shame to have such a bluetooth name? It is your freedom to set a name of your own. That’s the power of GNU/Linux. Don’t worry at all. GNU/Linux is also capable of changing this name too. For the change to come true,

1. cd /var/lib/bluetooth
2. There will be a directory with your bluetooth device MAC address (Most probably only that will be the only one inside this directory). Get into
that directory.
3. sudo nano config
4. Substitute the perefered name adjacent to ‘name’ written as the first line.
5. Save the file.
6. Restart the bluetooth by sudo service bluetooth restart.

Now you can have that name in the bluetooth settings and accordingly as the public visible name.