Blog links

Showing posts with label ubuntuLINUX. Show all posts
Showing posts with label ubuntuLINUX. Show all posts

How to reset your forgotten password in Ubuntu


forget password Ubuntu How to reset your forgotten password in UbuntuPassword can be reset in the Ubuntu very easily using the recovery mode. I have seen many people who are rebooting or reinstalling the entire system after they forgot their Ubuntu password. You don’t have to reinstall your entire system just because you forgot your password. There are various ways to reset the password. I am going to show you the easiest and quickest way. Do not feel  scare in the process as you have to face the black screen. It’s the safest way and is not harmful at all. You can quickly reset the password without any harm following these simple steps.  I would like to apology for bad screenshot which is done by digital camera
Step 1: After you start your system, choose the recovery mode and hit Enter.
recoverymode4 How to reset your forgotten password in Ubuntu
Step 2: Now after you go to the recovery mode, it will take certain time to load all the hardwares. After sometime, this following screen will appear.
changingpassword How to reset your forgotten password in UbuntuStep 3: Now, the real password resetting process starts from here. Type:
sudo username
Step 4: I am going to reset my password, the username is sachit. The thing is you need to at least know the username. Type the new desired password.usernameandpassword How to reset your forgotten password in Ubuntu
Now, the password is successfully updated.
Step 5:  You need to reboot the system now. Type these following commands:
sync
reboot -f
rebootsystem How to reset your forgotten password in Ubuntu
The password reset process is successful. Login with your new password and enjoy.
After logging in the screen “Enter password to unlock your login keyring” might appear. To make it disappear you need to type your old password which you don’t remember.  So, change your password again by following the same process. In the next startup type your keyring password which you set at the first reset process.

Read more

Cool Best terminal tricks you may not know about



linux terminal or the command line is very powerful. We spend most of our time in Linux terminal. You can simply give a command and produce your desired output. Also, there are various cool things you can do in your Linux terminal like watching movies, playing games, displaying your system information etc. There are also various keyboard shortcuts which can save you lots of time.

1) Keyboard shortcuts:

There are various keyboard shortcuts available for the terminal. You can apply shorcuts to copy, paste, zoom in, zoom out, opening up the new tab, viewing the terminal in the full screen etc.
  • Ctrl++ = Zoom in
  • Ctrl– = Zoom out
  • Shift+Ctrl+C = copy
  • Shift+Ctrl+V = paste
  • F11 = Fullscreen
You can view the keyboard shortcuts in Edit Menu under Keyboard shortcuts.
keyboardshortcuts 8 cool terminal tricks you may not know about

2) Working on tabs:

You can open and work on the tabs like you do on web browser in Linux terminal as well. To open the New tab press Ctrl+Shift+T or go to file and Click on Open New tab. This comes in very handy if you want to work on terminal while installing application via terminal as well.
tabsinterminal1 8 cool terminal tricks you may not know about

3) Up arrow key and down arrow key:

Press up arrow key takes you to the command that you have typed previously and down arrow key takes you to the command that you typed to the first command of recently opened terminal. Also while typing the command these shortcuts come in handy:
  • Ctrl+A = Takes you to beginning of the command
  • Ctrl+U = Erase the command
  • Ctrl+E = Takes you to end of the command
  • 4) Playing games in terminal:
Yes, it is true! You can play some classic games inside the Linux terminal. The package called BSD games should be installed for it. Go to terminal and type:
sudo apt-get install bsdgames
bsdgames 8 cool terminal tricks you may not know about
After the package in successfully installed you can open the games by typing the game names. You can search the available games in bsd packages and run the games. Have fun playing games inside terminal.

5) Watching movies in terminal:

You can actually watch movies inside terminal in the ASCII mode. For this, we need to install mplayer. Go to terminal and type:
sudo apt-get install mplayer
Now to watch the video type:
mplayer -vo caca moviename.extension
If you want to play only in black and white color type:
mplayer -vo aa moviename.extension
Remember, the video should be in Home folder. I am going to play the first episode of one of my favourite series “Games of Thrones”.
playingmovieinterminal 8 cool terminal tricks you may not know about
I know, it looks dirty. Some animation can play with the funny look.

6) Opening websites in Linux terminal:

You can open the websites in the Linux terminal itself using two different ways. Of course, there won’t be any picture. I have already written post on it. Read and enjoy opening website in the terminal.

7) Get the basic system information in terminal:

There is a simple Linux command which displays your system information. You can also find out the information about your kernel and information about the kernel along with GCC compiler.

8 ) Use terminal as a calculator:

You can do simple mathematical calculation in the terminal. You don’t need any calculator for this. Simply go to terminal and perform mathematical calculation. It’s easy, fast and cool.

Read more

Record the session of commands in a Linux


 How to record the session of commands in a LinuxYou may use lots and lots of commands in LInux. The command line in very powerful. They say “You can do almost anything from the command line in Linux!”, and I agree. Yes, you can do each and everything in Linux using the commands very quickly. If you are unfamiliar with the Linux commands check out our various beginner tutorials in Linux. Let’s focus on this one. We will record all the command we will type in the terminal and save it in a text file.

How to start the recording session?

First of all,  we will start the session that will record or store every commands we will type on the Terminal. Go to terminal and type:
script recordfile.txt
After you hit enter the script has been started.
recordingsession How to record the session of commands in a Linux
Here, recordfile.txt is the file name where our sessions is going to be stored. You can type the filename whatever you want.
The recording has begun. Whatever you type, it is stored in recordfile.txt.

How to stop the session?

To stop the session or the script hit Ctrl+D in your keyboard.
Now, you can see you textfile and find out the commands that has been recorded.

To view the text file:

cat recordfile.txt
How to append the session in the same file?
You have stopped the session, now what if you want to continue the session in that same text file. It’s easy go to terminal and type
script -a recordfile.txt
To stop and view the file, follow the same step.

Read more
2leep.com