How can i make the bash promt for the root user red ?

After an Epic battle with Gnome3 and FGLRX i finnaly gave up and installed openbox instead :-)
I use the xterm terminal and i would like to change the color of the root bash to red but i cannot get this done for some reason.
I tried several suggestion in /etc/bash.bashrc but none work properly.
I can change the prompt just fine i just can't get it to recognize the root user and give him a diffirent color.
All i am looking todo is change the prompt from "dennis@hostname ~]$" to "Dennis" or "Root" and i wish root to be in red.
Does anyone have this setup down and can ya share the bashrc file with me ? does anyone have suggestion for me ?

Dennis Beekman wrote:is there no way todo it from /etc/bash.bashrc ? this would apply to all users at once... wich would be much nicer.
I source this from my /etc/bash.bashrc: http://paste.xinu.at/5KkTu/bash Not exactly what you want, but you get the idea. (I just noticed though that the 'export' statements in all lines are probably incorrect and should be omitted.)
EDIT: Yes, just tested, sed -i 's|export ||g' prompt.sh, please.
EDIT2: Also, EXTRAPROMPT is not used in this simplified example, omit that too.
Last edited by brain0 (2011-08-04 15:44:15)

Similar Messages

  • Realtek network card seems to be disappeared. how can i make it visible again for the OS?

    i can't access my LAN card. somehow it is disappeared. how can i make it visible again for the OS? my OS is windows 7. thanks very much for your help

    right click on the button bar, then select "customize toolbar", drag any button you like into the toolbar and you're done!
    Diego

  • How can I make more email postboxes for iPad2?

    How can I make more email maps for the iPad2?

    If you are on iOS 5 as your tagline suggests and it's an IMAP type account then you should get an Edit button at the top of the list of folders that you currently have on your email account. If it's a POP type account then you won't get the Edit button.

  • How can I make a intro page for my website, then after the intro has run make the page automatically change to my we site home screen

    how can I make a intro page for my website, then after the intro has run make the page automatically change to my website's home screen

    You can do this using a meta refresh but the problem is you have to add it to the html file for the page very time you publish changes.
    A better way is to create a splash page and upload it to the server outside of the folder produced by iWeb. Example HERE.
    The meta refresh is added to the head section of the html file...
    <meta http-equiv="refresh" content="32;url=http://www.domain.about.com/Page-Name.html">
    The delay time in seconds is marked in blue and the URL to the redirect page is in red.

  • How can I make a bootable disk for Mountain Lion?

    How can I make a bootable disk for Mountain Lion?

    Make Your Own Mountain/Lion Installer
    1. After downloading Mountain/Lion you must first save the Install Mac OS X Mountain/Lion application. After Mountain/Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Mountain/Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing.
    2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your flash drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to an hour depending upon the flash drive size.
    3. Locate the saved Mountain/Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
    4. Plug in your freshly prepared USB flash drive. You are going to clone the content of the InstallESD.dmg disc image to the flash drive as follows:
    Double-click on the InstallESD.dmg file to mount it on your Desktop.
    Open Disk Utility.
    Select the USB flash drive from the left side list.
    Click on the Restore tab in the DU main window.
    Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
    Drag the mounted disc icon from the Desktop into the Source entry field.
    Double-check you got it right, then click on the Restore button.
    When the clone is completed you have a fully bootable installer that you can use without having to re-download Mountain/Lion.
    Note: The term Mountain/Lion used above means Lion or Mountain Lion.

  • How can I make a "property node" for a VI?

    Hello!
    If I add a boolean button on the FP then I am able to make a property node for that button in the Block Diagram. But how can I make a property node for a VI? I have several VI:s an that together is one program. What I need to do is to verify what kind of VI some of my VI:s is. I need to verify if it is .exe or .vi-file, and if it is .exe then I want to disable run, abort, run continuously bottons otherwise not. I have hard that this is possible to do programmaticaly but I can´t figure out how. I am aware that I could do that manually in the File->vi properties->customize->windows appearance but theese choises makes it last forever.
    I want to be able to stop and run and everything if it is a .vi file, but if it is .exe-file then all those buttons should be disabled.
    Anyone have an example on this?
    In an other message at this Forum I read "You can use the `Front Panel Window. Allow Runtime PopUp`" property to disable run-time shortcuts menues programmaticaly, but still I dont know how to create this property node.
    /Amir

    You really shouldn't open a new thread. If you don't understand something, ask and we will explain it.
    Like I said in the other thread, you can check if you are running in LV or an EXE by using the Application>>Kind property. To get it, place a property node (from the Application Control palette) on the diagram, click it and find the property.
    To set the properties for the VI, place another property node, right click it and select Select Class>>VI Server>>VI. You should have the properties you want under Front Panel Window.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf). I believe chapter 17 of the user manual explains about programmatic control of VIs.
    Try to take over the world!

  • When i burn videos to a dvd-r disc it works on my macbook but not on a windows/pc or my dvd player. How can i make it work on all the above and not just a mac product?

    when i burn videos to a dvd-r disc it works on my macbook but not on a windows/pc or my dvd player. How can i make it work on all the above and not just a mac product?

    Unfortunately, the recording & movie industry does not respect the rights of the people who make them money, and thus you can only use the paid-for content in ways they see fit. Even if I lived in a bunker where no one else could possibly see the movie I paid for, therefor I'm not 'sharing it illegally', I would still not be allowed in a blue moon to copy that movie to DVD for TV viewing. Someone will tell you to get an AppleTV. How about Apple give us one for free? Until this changes, people wanting to use their content in multiple locations will continue to download music & movies via torrents, legally or illegally.

  • How can I make Calen Mob pick up the right colors

    How can I make Calen Mob pick up the right colors from Google Calendar. In fact, how can I contact the developer that made Calen Mob Pro. I hear it was Blue tag but they either sold it or dropped it because they make no claim for it.  Does anyone kknow of a group calendar for IOS that will report the color choices as well as the  data? Calenmob Pro just brings in one color for every date and appt. Thanks!

    Where did you get LR2.2? The most recent public version is LR2.1!
    Try an external EXIF reader like EXIFReader.
    Don

  • How can i make Apple id free for downloading apps

    how can i make free apple ID for downloading apps?

    No thats false thers an other way go to App Store ( on iphone or itunes) then choose any free app click download the App Store will ask you for your apple id the click in this dialog on create new apple id then you should select by Credit Card None, thats a trick, you don't need a credit or itunes card
    PS: Sorry for my bad english

  • TS4293 How can I make iMovie to show me the AVCHD files importet by iPhoto?

    My iMovie 11 shows the videos from my iPhone importet by iPhoto, but not all the videos importet the same way from my camera. It works fine with the videos recorded in MP4 but not at all with the AVCHD. How can I make iMovie to show me the AVCHD files? iPhoto imports and shows the AVCHD fine. Also I could import the AVCHD files with iMovie but then they would be twice on my computer and use a  lot of space.
    thanks for your help

    Right now, iMovie won't edit AVCHD wrapped files. You have a few options:
    1. Import the videos with iMovie. Afterwards, you may add the imported movies to iPhoto if you want.
    2. Import the videos with another app. (Too numerous to mention.)
    3. Convert the videos with a third-party tool.
    4. Wait for a future version of iMovie that adds this capability.

  • How can I make lining number format for opentype fonts in Acrobat?

    How can I make lining number format for opentype fonts in Acrobat?

    I bought the Max OT font. I want the numbers on the right to look like on the left. I could do that in word, but not in adobe acrobat.

  • How can I make a recovery disk for an imac 24 "  early 2008 to April 2009 or connect via thunderbolt to another imac

    How can I make a recovery disk for an imac 24 "  early 2008 to April 2009 or connect via thunderbolt to another imacimac 24 "   or connect via thunderbolt to another imac
    ann

    You will only know about the hard drive when you try to access it in TDM from your other computer. If you cannot boot into TDM mode or if the drive does not appear on the new computer's Desktop then it is likely bad.
    What you are thinking about as a recovery disk is the Recovery HD normally created when you install Lion or later on the computer. You boot from it as follows:
    Boot Using Command+R keys:
      1. Restart the computer.
      2. Immediately after the chime press and hold down the
          "COMMAND" and the "R" keys together.
      3. Release the keys when the Utilities Menu appears.

  • How can I make my movies pro for mac work?

    How can I make my movies pro for mac work?
    I have downloaded it i click on the icon but I cant make it work

    Delete the app using this free utlity > Download AppCleaner for Mac
    Then re download the app using the same Apple ID it was originally purchased from. You won't be charged again.
    How to re download apps from the Mac App Store:
    Open the App Store. From the menu bar click Store > Sign In
    Click Purchases from the top of the App Store window.
    Select which apps you want to re download. Then right or control click where you see Installed  then click Install.
    If you still have problems, I located the app developer's website. Contact details for help here >   http://www.mymovies.dk/about.aspx

  • How can you make your persona show on the top and bottom? Also can you make it bigger at the top to show more of the picture?

    How can you make your persona show on the top and bottom?
    Also can you make it bigger at the top to show more of the picture?

    Add extra empty toolbars if you want to see more of the persona.<br />
    You can create extra toolbars to get extra space via View > Toolbars > Customize<br />
    You have to put something on a toolbar (drag a Space item onto it) before closing the Customize window because empty toolbars are automatically removed.<br />
    See http://kb.mozillazine.org/Toolbar_customization

  • I downloaded a Trial version of Adobe Acrobat XI.  Now the trial has runout and I've signed up for a subscription.  However, my software still needs a serial number.  How can I get a serial number for the installed software?

    I downloaded a Trial version of Adobe Acrobat XI.  Now the trial has runout and I've signed up for a subscription.  However, my software still needs a serial number.  How can I get a serial number for the installed software?

    There is no serial number and you don't need one. What you need for a subscription is to SIGN IN within Acrobat, so it knows the subscriptions you own.

Maybe you are looking for

  • "Error in TTCmd::Prepare() while allocating statement handle")

    "Error in TTCmd::Prepare() while allocating statement handle") How does this kind of error come out? What is the reason? The posibilities are what? Hoping to receive your answers/ Thanks! Edited by: user10789526 on 2009-8-20 上午12:13

  • Error 7 applicatio​n builder invoke node

    I get this error when I tried to build an application. "Error 7 occured at Invoke Node in Dist read linkage.vi-> Dist Cmp Settings to Disk Hier.vi-> Dist Build App Image.vi-> Build Application.vi Possible reason, LabView: File not found.....and then

  • Can't create HealthVault accounts in PPE. 'We're sorry. We could not complete your last request'

    Since last week, we've been unable to manually create any HealthVault accounts in the PPE environment. We are trying to test the patient signup process for our application but keep hitting a wall when creating the actual HealthVault account. This has

  • At-selection-screen modification

    Hi Experts, I am doing the selection screen modification. The selection screen is designed such as i have two radio buttons 1. header & 2. Item anb beside header radio button i have field sales document number and beside item radio button sales item

  • Security in Web Dynpro screens

    I have a generic web dynpro screen which allows users to create / edit some records.  The users are supposed to create records only for the profit centers that they are authorized to. 1. I have a profit center lookup in the screen that I created that