Author Topic: How to bring a little bling bling to your Terminal  (Read 1056 times)

Offline TheAkantor

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 8
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
How to bring a little bling bling to your Terminal
« on: February 07, 2020, 04:12:25 am »
Bringing just a little customization to the terminal



Step 1. Instal powerline fonts, can be found in the software manager or just type in the terminal
Code: [Select]
sudo apt install fonts-powerline
Step 2.
Open your file explorer and go your home directory, right click on a empty space and choose Show Hidden Files



Step 3.
Now that you can see the hidden files, i advice making a backup of the original .bashrc just in case you messed up somehow , go back to the original file .bashrc and open it with the text editor.

Scroll to the end press enter to add a new line and then copy and paste the code that i have in the spoiler below and save:

Spoiler (click here to view / hide)
[close]

If you have the terminal opened then close it and reopen to see the change.


This was made for the user but if you type in the terminal
Code: [Select]
sudo su and enter you password you will notice that when on root privileges the terminal show the default look.
In order to change it we also need to do the the same thing to the .bashrc file on our system root folder.
Now that you seen that the Terminal when on root privileges havent changed close terminal and reopen it.

Step 4. Modifying the .bashrc file on root, the friendly way
First step is making a backup of the .bashrc file on the root folder with command line bellow:

Code: [Select]
sudo cp -v /root/.bashrc /root/.bashrc.bak
Enter your password when asked and press enter.
Now that the backup file was made lets modify the original, so lets open it with a simple command line:

Code: [Select]
sudo xed /root/.bashrc
Enter your password if asked, you are now in the Xed text editor with elevated privileges, copy the code provided on Step 3 and paste it to the end of the file, save it with (Ctrl+s) and exit (Ctrl+q)

To see if the changes were applied correctly type
Code: [Select]
sudo su on the terminal and enter your password when asked.

Alternative way to do Step 4,I ADVISE DOING THE COMMAND LINE METHOD
Spoiler (click here to view / hide)
[close]

Hope this guide helps bring some bling bling to your terminal and sorry if there was already a guide for this.

Credits:
Chris Titus Tech video tutorial.
Andres Gongora for the script.
AndyInMokum for the safer way to modify the root file.

Bellow is the full script:
Spoiler (click here to view / hide)
[close]
« Last Edit: February 11, 2020, 02:44:43 am by TheAkantor »

Offline VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5898
  • Karma: 1160
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: How to bring a little bling bling to your Terminal
« Reply #1 on: February 07, 2020, 05:30:51 am »
Good job!   :)








Offline compicat

  • Newly Subscribed
  • *
  • Posts: 9
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: How to bring a little bling bling to your Terminal
« Reply #2 on: February 10, 2020, 02:10:47 pm »
Thanks for great share.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: How to bring a little bling bling to your Terminal
« Reply #3 on: February 10, 2020, 03:10:17 pm »
Nice job  ;).  However, I'm going to make a couple of constructive criticisms.  There is no need to drop to root user in the terminal.  In fact, I strongly recommend it's not done unless absolutely necessary.  There are too many new Linux users trying out PeppermintOS.  Dropping to root is courting disaster  :'(.  I strongly recommend using these command to first back up /root/.bashrc:
Code: [Select]
sudo cp -v /root/.bashrc /root/.bashrc.bakEnter your user password when asked, hit enter and you're done.  To open /root/.bashrc using the Xed text editor as root:
Code: [Select]
sudo xed /root/.bashrcEnter your user password if asked.  Xed will open up with elevated privileges.  Make the edits and save, (Ctrl+s).  Exit Xed, (Ctrl+q).  Doing things this way leaves nothing in the terminal as root  ;).

Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline TheAkantor

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 8
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: How to bring a little bling bling to your Terminal
« Reply #4 on: February 11, 2020, 12:27:28 am »
Thank you both, about that command line wasnt aware of it, anyway im a noob myself have alot to learn and that sure is a safer way to edit the root file.
Constructive criticism is always welcome, ill edit the topic later with your tip since im on the phone now.

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2393
  • Karma: 633
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: How to bring a little bling bling to your Terminal
« Reply #5 on: February 11, 2020, 12:37:30 am »
Hi TheAkantor,

Thanks for for the tutorial and for planning the change concerning the use of the root terminal. I was actually considering using my Global Mod status to make this change just to make it less risky.  ;) But I prefer to let the original author (in this case: you) make such changes.  8)

Regards,

-- Slim
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline TheAkantor

  • Jr. Member
  • **
  • Posts: 25
  • Karma: 8
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: How to bring a little bling bling to your Terminal
« Reply #6 on: February 11, 2020, 02:09:26 am »
Hi, im back just modified the instructions hope its more clear, i ended lefting the old one for root also but on a spoiler and advising to do the command line option instead. Feel free to edit if needed.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: How to bring a little bling bling to your Terminal
« Reply #7 on: February 11, 2020, 04:54:38 am »
Hi, im back just modified the instructions hope its more clear, i ended lefting the old one for root also but on a spoiler and advising to do the command line option instead. Feel free to edit if needed.

Thanks TheAkantor for that, you've just made working will elevated privileges much safer :).  Especially for new Linux users ;).  Working as root is really unforgiving.  You don't get the chance to review your changes.  One you hit the enter key, there's no turning back :o.  When using sudo, you have a safety net.  You're asked for your password and if you want to continue.  It doesn't eliminate screw ups; however, along with good backing up habits, it does seriously reduce the chances of screw ups ;D.

Some distros work as root by default.  Kali is one such distro.  This is a very specialized Debian based distro, designed for network diagnostics.  Its main users are professional network specialists.  Distros like Kali, are very much the exception to the rule though ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.