Results 1 to 3 of 3

Thread: The colour of user@hostname~@: ?

Hybrid View

  1. #1
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    15

    The colour of user@hostname~@: ?

    Hello again..
    This time I'm wondering about the colour of the "user@hostname~@:" in the Console? When I ran knoppix from the cd, it used to be cyan(?), after the hdd-install it's just plain white..
    My friends adviced me to edit /home/user/.bash_profile, but I noticed that I didn't even have one! Well my friend sent his one over and I managed to get it into my home folder.. But the colour of user@hostname~@: is still white? How can I change this? What file should I edit/make?

    And by the way, I had to shutdown X (init 3) while I was installing the nvidia drivers.. There I noticed a change of colours.. Did the .bash_profile I created only affect that?

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Portland, OR USA
    Posts
    568
    You should take a look at the Bash Prompt HOW-TO at the Linux Documentation Project -- specifically the section on Colors.

    For example, in order to change the color of the bash prompt to cyan for all users, look for the following line in /etc/profile (as root):

    PS1="\u@\h:\w\\$ "

    Change it to this (additions bolded):

    PS1="\[\033[1;36m\]\u@\h:\w\\$\[\033[0m\] "

    (Dunno about the NVidia part of your question. Nothing radically changed when I installed 'em...)

    If you only want the changes to apply to your user, instead of all users, add the line to ~/.bashrc instead of /etc/profile.

  3. #3
    Junior Member registered user
    Join Date
    Aug 2003
    Posts
    15
    Thank you, that was exactly what I was looking for

Similar Threads

  1. Unique Hostname
    By A.Skwar in forum Ideas
    Replies: 23
    Last Post: 01-20-2006, 01:51 PM
  2. change hostname?
    By Valhalla in forum General Support
    Replies: 3
    Last Post: 03-25-2004, 07:53 PM
  3. Where's the colour gone
    By GlennsPref in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 01-18-2004, 07:02 AM
  4. Can't set hostname.
    By WimG in forum Networking
    Replies: 5
    Last Post: 09-27-2003, 04:16 PM
  5. How do I change the hostname?
    By jensen in forum General Support
    Replies: 2
    Last Post: 07-18-2003, 10:30 PM

Posting Permissions

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


(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray picture

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray

$174.99



HP ZBook Firefly 14

HP ZBook Firefly 14" G8 Mobile Workstation i5 11th Gen 16GB RAM 256 GB SSD No AC

$184.99



SGIN 17.3

SGIN 17.3" Laptop Intel Quad-Core Up to 2.4 GHZ 8GB RAM 256GB SSD HD

$229.99



Dell Optiplex 7050 Micro Core i5-7500 8 GB RAM 256GB SSD Microsoft Windows 11 picture

Dell Optiplex 7050 Micro Core i5-7500 8 GB RAM 256GB SSD Microsoft Windows 11

$89.99



Intel Xeon E5 - 2667V2  / SR19W   3.30GHz 25MB  8-Core CPU Socket LGA2011 picture

Intel Xeon E5 - 2667V2 / SR19W 3.30GHz 25MB 8-Core CPU Socket LGA2011

$30.00



AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 CPU Processor Brand New Unused picture

AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 CPU Processor Brand New Unused

$395.95



AMD FX 8350 8-CORE 4.00GHz CPU FD8350FRW8KHK SOCKET AM3+ *QTY picture

AMD FX 8350 8-CORE 4.00GHz CPU FD8350FRW8KHK SOCKET AM3+ *QTY

$39.99



AMD Ryzen 7 9700X 8-Core 16-Thread 40MB Cache Socket AM5 9000 Series Processor picture

AMD Ryzen 7 9700X 8-Core 16-Thread 40MB Cache Socket AM5 9000 Series Processor

$245.99



Lenovo ThinkPad T14S Gen 1 8-Core Ryzen 7 Pro 4750U 512GB SSD 16GB RAM FAIR BATT picture

Lenovo ThinkPad T14S Gen 1 8-Core Ryzen 7 Pro 4750U 512GB SSD 16GB RAM FAIR BATT

$225.00



Dell T7810 Workstation 8-Core 2.40GHz E5-2630 v3 No RAM GPU HDD OS picture

Dell T7810 Workstation 8-Core 2.40GHz E5-2630 v3 No RAM GPU HDD OS

$259.98