Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Cool Make your SSH colorful !

    Bored of the plain black SSH prompts, here's something interesting to make you cheer up...

    Login to the server via SSH as root, edit the .bash_profile file found in the /root directory & paste the following line:
    export PS1="\[$(tput bold)$(tput setb 4)$(tput setaf 7)\]\u@\h:\w $ \[$(tput sgr0)\]"
    Save & quit the file... Now relogin through a new/different session to see the fun
    You can further more change the various attributes within the given line to try a variety of colours..
    eg: for blue background with command history number, try these:
    Code:
     export PS1='\e[1;31m\]\e[7m[\h - ${VIEW}\u ] [\w]\e[m\]\e[27m\n[\!]$'
    Code:
     export PS1='\e[7m[\h - ${VIEW}\u ] [\w]\e[27m\n[\!]$'
    IMPORTANT :: Please make sure to leave the current window running & check the changes in a new one, so that you'd be able to revert the changes done to the .bash_profile just in case you land up with a black background/screen along with black text..

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

  2. #2

    Default

    BAHAHAHAHAHAHAHHAH LOL i love this very nice thankyou

  3. #3
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Smile

    Quote Originally Posted by XXxxImmortal View Post
    BAHAHAHAHAHAHAHHAH LOL i love this very nice thankyou
    You're welcome

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •