How to return terminal prompt to default?

I've recently noticed my terminal prompt seems to indicate the IP address of my cable router.
I say recently, since I did have some Internet problems which were solved after powering down the router and removing the battery for a few minutes. Since then, the prompt has been:
Last login: Mon Dec 26 18:27:44 on ttys000
d24-235-195-133:~ user$
Is there a way to return it to a 'default' prompt, and second, why did it change?
Many thanks.

MrHoffman is 100% correct.  Disk Utility repair permissions, verify (or even repair) have absolutely nothing to do with the prompt you are getting.
And reinstalling Mac OS X will change nothing, as the problem, as MrHoffman explained, has nothing to do with your Mac.  It is your router and/or your ISP.
The bash shell always does a reverse DNS lookup on your Mac's IP address to get your computer name.  The Mac's DNS lookup service does not get a result from the DNS servers, it will use your computer name as specified in System Preferences -> Sharing.  In your case, prior to restarting your cable modem, the DNS lookup did not return anything, so your sharing computer name was used.  After the cable modem restart, the DNS lookup started returning a result so bash used that information.
Chances are it is a lot more work than it is worth trying to get the DNS lookup to stop returning a value, so it is easier to just change your PS1 shell variable and get on with life.
You could even use the following to always get your sharing computer name
PS1='$(networksetup -getcomputername):\W \u\$ '

Similar Messages

  • How to make Terminal prompt change permanent?

    I am using OS X Lion v10.7.2 and want to change my terminal prompt, but everytime I shutdown and restart Terminal, it defaults back to the original.
    I am using
    export PS1="\w >"
    Thanks

    If it exists, its in your Home Directory
         ls .bash_profile
    If you get
          ls: .bash_profile: No such file or directory, then just create it with:
              echo PS1='\w >' >> .bash_profile

  • How to create a prompt with default value as current_date?

    Hello
    I'd like to create a prompt on the dashboard that has current_date as the default value. Is it possible to achieve so?
    Please provide any pointers..
    Thank you

    Unfortunately, no. Presentation variables are declared in a dashboard prompt (see page 44 of this link http://download.oracle.com/docs/cd/B40078_02/doc/bi.1013/b31767.pdf)
    Any other type of workaround would not be worth the trouble of asking the developers to create the variable for you. One note, the current date may very well already be defined and just not known to you. Can you ask your developer if he/she has a variable that contains the current date or how long it would take to create one for you?
    As a whole, it would be nice to have a set of "date" repository variables if you run Requests based on common date ranges (e.g., first day of current month, last day of current month, first day of quarter, last day of quarter, most recent end-of-year date, etc.) These can be very useful in automating reports so they don't require prompts. Of course, it depends on your organization and what you use OBIEE for...
    We have built many such variables and it has been very valuable to the users and report builders. Just a thought...

  • How to reset dashboard prompt value to default by using of a radio button

    Hi All,
    I have a raido button to switch between 'quick search' and 'advanced search', 'quick search' is variable prompt, and its default value is 'OBIEE', when I switch to 'advanced search', I need to reset 'quick search' variable prompt to default value which is 'OBIEE'. and when I switch to 'quick search', I need to reset 'advanced search' selections to default value as well.
    Any help? much appreciated.
    Ling

    I agree with David_T.
    The best way is to use date column and calculations over it.
    Another way is to use for conversion months to date a code like that:
    1. It's a code for month-2, i.e. for JAN we get NOV
    MONTHNAME(TIMESTAMPADD(SQL_TSI_MONTH, -2, CAST('01.' || CASE WHEN "Time"."Month" = 'JAN' THEN '01' ELSE WHEN "Time"."Month" = 'FEB' THEN '02' ... WHEN "Time"."Month" = 'DEC' THEN '12' END || "Time"."Year" AS DATE))) 2. It's a code for month-1, i.e. for JAN we get DEC
    MONTHNAME(TIMESTAMPADD(SQL_TSI_MONTH, -1, CAST('01.' || CASE WHEN "Time"."Month" = 'JAN' THEN '01' ELSE WHEN "Time"."Month" = 'FEB' THEN '02' ... WHEN "Time"."Month" = 'DEC' THEN '12' END || "Time"."Year" AS DATE))) Then I advise to create a report with one column "Time"."Month" and filters - "Time"."Month" is promted OR "Time"."Month" = <formula from 1.> OR "Time"."Month" = <formula from 2.> When this report gets a "Time"."Month" equal 'JAN' then it returns 'NOV', 'DEC' and 'JAN'.
    In you report on dashboard you get previous report as a condition report for column "Time"."Month"
    It has to work.

  • How do I return to Firefox's Default window size?

    I want to return Firefox to the default window size it had when I installed it. I know how to re-size the window with the mouse, but I want it to be exactly the same (px) every time.

    Window sizes and positions are stored in [http://kb.mozillazine.org/localstore.rdf localstore.rdf] in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder].
    You can delete the file or remove the current custom settings from that file to reset the window size to the default.<br />
    As an alternative you can edit or remove the main-window section in localstore.rdf if you want to keep the toolbar customization:
    <pre><nowiki>RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"</nowiki></pre>

  • How to return Firefox download to the default

    I now have my downloads saved to a file on my computer. Because of that, when I download something, it doesn't show up in Firefox's download window. I have to go to my computer file to install it. I would like to return to Firefox's default window. How do I do that? Thanks.

    You can view/change the downloads place in '''Tools''' ('''Alt''' + '''T''') > '''Options''' > '''General''' > '''Downloads'''. You can also mark it to be always visible when downloading. Alternatively you can open the downloads window via '''Tools'' ('''Alt''' + '''T'') > '''Downloads''' (or '''Ctrl''' + '''J''').
    [https://support.mozilla.org/en-US/kb/Options%20window%20-%20General%20panel?as=u Options > General]

  • How to return to default settings

    How to return a desktop to factory settings

    No need to respond to this question.  I believe I found what i was looking for. 

  • Terminal prompt starts with client IP Address

    I named my macbook pro as "pine" and add the following line to the .bash_profile file
    export PS1='\h:\w> '
    Normally, it displays "pine:~>", but after I connect my laptop to the wireless network via a VPN, the prompt becomes
    client-77-104-71-149:~>
    Why does the terminal prompt look so weird? How to change it back to normal?

    The issue occurs on a daily basis for about 100 laptops that are normally docked to a wired connection (subnet 10.2.3.x), but when undocked the laptop transitions to a wireless connection (10.2.5.x).  When initially docked, a laptop connected to
    a wired connection will properly negotiate with DHCP all four parts of the handshake in the classic way and get an IP address (10.2.3.101 for example). 
    The problem begins about 5 - 10 minutes later when the same laptop makes a DHCPDiscover with a source address of 10.2.3.101 and destination address of 255.255.255.255.  This continues every 10 minutes or so until the laptop is undocked or taken off
    the wire.  It only acquires on additional address once, but if we delete it off the DHCP server, then it reacquires the bad, additional lease. 
    When the laptop reach 50% of its lease life or later (undocked and returned the next day), it make a DHCPRequest for 10.2.3.101 from source address 0.0.0.0 to destination address 255.255.255.255.  It then reacquires the lease like normal. 
    Yes, the docking and undocking will move them between subnets by changing the interface.  If we disable the wireless adapters while the laptop is docked, it stops sending DHCPDiscover packets from source address 10.2.3.101 to destination address 255.255.255.255. 
    When we reenable the wireless adapters, then the bad behavior starts up again.  We see this in Wireshark packet captures and the DHCP client logging.  None of the events or strings have from the logs have either given us an explantion or solution. 
    Thanks again,
    Mark

  • Make applescript display terminal prompts

    Hi,
    I new to applescript, and am trying to to automate some terminal commands. At one point, the user is required to enter information to complete the command in the terminal. Is there a way that I can either show the terminal, or set some sort of display to display the prompts?
    Thanks!

    Would I be able to request that info and then place it into the terminal prompt?
    Sure.
    set username to text returned of (display dialog "Enter your username" default answer "Joe")
    set password to text returned of ("Enter your password" default answer "" with hidden answer)
    set theURL to "http://www.site.com/page.html"
    do shell script "curl -u "& username & ":" & password & space & theURL
    The idea here is to prompt the user for the data and combine the answer(s) with the static text that's passed to the shell.

  • How to close Terminal Windows and terminate processes with Applescript?

    I'm trying to quit the Terminal via AppleScript. I need to run 4 different Terminal scripts on a server but would also need to restart this server every day automatically... and my favorite choice would be to do this properly.
    I suceeded terminating all other applications, cleaning folders and sending messages, but I did not find a solution quitting the Terminal!
    When I tell it to quit, it asks if I want to terminate all processes, even if I use the "ignoring application responses" command. The Terminal gets stuck on that dialog box and one has to manually hit "Terminate".
    Anyone knows about a solution how to avoid this prompt or how to default "Terminate"? There must be something like "close window 1 with process terminate", or?
    Many thanks in advance!

    :-))) Sometimes the answer is so easy... Thanks a lot!

  • Why does FP Advise sometimes erroneously return terminated?

    I am running a multi-threaded LV 5.1 app with fieldpoint and a NI-4060 dmm. Sometimes, the first call to FP Advise returns terminated as true. This never happened when using a NI-4050 dmm. Are there other interactions between these two systems I need to know about?

    The FieldPoint driver is totally independant of the drivers for the NI-4050 DMM, there should be no interaction between them at all. A couple of questions, what are you using as the Advise Rate input to the FP Advise.vi, a rate that is too small (e.g. 0) can sometimes cause erroneous behavior. To avoid this, the default is set to 10 ms starting in FieldPoint Explorer 2.0.3 or 2.0.4, but if you are using an older version, this may be the cause. What version of FieldPoint Explorer are you using? Alternatively, how many I/O points are in your IAK file and what type of network module are you using. An extremely large IAK (e.g. several hundred to several thousand points) that has numerous ethernet points will take longer to launch the server so it is possible that the
    server has not finished connecting to all of the I/O points by the time you do the first advise which could return the improper information that the server is not online ("terminated"). If this is the case, a small delay before you start the Advise should clear this up.
    Regards,
    Aaron

  • How can I pre-define the default selection in a SelectOneChoice?

    How can I pre-define the default selection in a SelectOneChoice?
    (1) Here's my JSF-code:
    <af:selectOneChoice label="#{res['usercreate.input.sex']}"
    value="#{bindings.Sex.inputValue}"
    binding="#{SelectListBean.sexlist}"
    readOnly="false" autoSubmit="false">
    <af:selectItem label="#{res['data.sex.women']}" value="1"/>
    <af:selectItem label="#{res['data.sex.man']}" value="2"/>
    </af:selectOneChoice>
    (2): manged bean: to set the default value to be the first in the list, my managed bean as follows:
    import oracle.adf.view.faces.component.core.input.CoreSelectOneChoice;
    public class MBSListBean {
    private CoreSelectOneChoice sexlist;
    public MBSListBean() {
    public void setSexlist(CoreSelectOneChoice sexlist) {
    this.sexlist = sexlist;
    this.sexlist.setValue(1);
    public CoreSelectOneChoice getSexlist() {
    return sexlist;
    (3) when i launch the page, it often gives me such warnings:
    WARNUNG: Could not find selected item matching value "1" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=_id7]
    how to solve the problem ?
    Thanks,
    wzzdx

    You could also set the default on your entity or viewobject, in the properties of your attribute.

  • How to use the prompt value in the report column

    Hi
    I have a report prompt column which is 'Adj Type' which holds values 10,20,30 and when user selects Adj Type = 10 then this value should be passed to report column.
    For Eg. Column 1 value is 10 and this should multiple with prompt value and the output should be 10* 10.
    Any thoughts how to capture the prompt values in report column for calculation.

    hi hsekar,
    1) Declare a presentation variable in prompt under the Set Variable section -->Presentation Variable -->P_var
    2) In Fx Table_name.Your_column * @{P_Var}
    @{P_var}{20} ( 20 is default value it will override when a user selects value in prompt
    Thanks,
    Saichand.v

  • How to use Terminal with KeySpan USB serial adaptor cable?

    I own a KeySpan model USA-19HS to use with our MacBookPro when working on clients networking equipment that require serial communication. I have used ZTerm with excellent luck, but it costs, and is yet another application that I dont really want. I would like to know if any one out there has exacing instructions on how to use Terminal with this adaptor. If I could write a file that had, say, the couple most common settings (9600-8-n-1, 57600-8-n-1, et cetera) that I could simply click on, to open a new Terminal window with those settings, then simply close that, and open a new window (apple+n) in order to get back to a default settings terminal window. All feedback is most appreciated.
    Thanks so much, Jason Sjobeck

    Hi, Jason. Welcome to the Discussions.
    You wrote: "All feedback is most appreciated."OK.
    1. Have you considered discussing this with Keyspan Support?
    2. Have you read the section "OSX has Terminal.app - why do I need ZTerm?" on the ZTerm Home Page? That seems to explain why one needs an app like ZTerm.
    3. A quick search of Keyspan's FAQ for your product and terminal doesn't yield much more than how to find the serial ports using Terminal.
    Likewise, this Google search also yields little, and variants of that search of such weren't particularly help either.
    It appears your inquiry seems to be a somewhat esoteric topic.
    4. Apparently, ZTerm X is a bit long in the tooth and there's no Universal Binary for it. It sounds, however, like you've tried it running on your MBP under Rosetta, yes?
    5. In researching alternatives to ZTerm for you, I note the followng:• The comment from "Reverb" on this page suggests C-Kermit or Kermit as a free alternative.
    • This tip on Mac OS X Hints cites Minicom as another option.6. You may want to try your question on the Unix Discussion.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How do I make Photoshop the default Edit App for .jpg in Windows 7?

    How do I make Photoshop the default Edit App for .jpg in Windows 7?    I want to be able to right click on a .jpg file, select the EDIT option in the Context Menu, then have Photoshop edit the file instead of Paint.
    In Windows XP it was very easy to use the File Manger to associate the file type .jpg and action edit with Photoshop.    No so easy in Windows 7.  It is easy to change the default OPEN application, but I would like to leave Windows Viewer as the default OPEN application and have Photoshop as the EDIT applicaiton.

    Before I posted the original question here, I had probably spent a couple of hours trying to research it.   I hate to find no answer for something I know can be done.   So I spent some more time and found the following in the bowels of a Tech Forum that is generally way over my head.  I have modified it to be Photoshop specific.
    These instructions will update the default EDIT action for image types - jpg,png,gif and the variations.     If you are unfamiliar with editing the program registry you probably will want to back up your registry or take a system backup.
    1. Open up the registry editor (Regedit.exe).
    You will need to be signed on as a Windows user that is an administrator
    2. Find HKEY_CLASSES_ROOT -> SystemFileAssociations -> image ->  shell -> edit -> command
    This seems like it would be easy but it is not, because there are many key names that are very close (like System.FilesAssociations).   Keep looking because you will find it eventually. 
    3. Double click on "Default" (on right window pane) and update the program location.
    You should see that MSPAINT.EXE is the current program.
    Erase the existing value and enter you photoshop location in quotes followed by %1 in quotes.  For me this is "C:\Program Files  (x86)\Adobe\Adobe Photoshop CS4\Photoshop.exe" "%1"  
    Hit return.
    4.  Exit Regit and test.

Maybe you are looking for

  • SPRY Accordion Linking

    I want to link certain text from a homepage to a second page that contains a SPRY Accordion with three panels. But I want to link to the second panel open, even though this is not the default open panel if you load that page independantly. Is there a

  • Multi-user access control

    User #1 opens a PDF on a server and starts making changes.  User #2 opens the same file and starts making changes.  User #2 for example can create sticky notes and make lots of comments.  When User #2 tries to save his changes he's denied as User #1

  • " Flow control: Entry SAPMV45B, PSTC, P1, *   , *   , * is missing in T185"

    Hi all, I have an order with 5 line items, and all are from same plant. When i try to change some thing for line item 5 system is saying that " No status object is missing for SDI xxxxx/50, where as xxxxx is a sales order number and 50 is line item.

  • Problem Installing AERS

    Hi guys, I'm new in OPA Technology and I need help because I can't find anything about my problem on Metalink. I describe my situation: Node 1 (Windows 2003 Server) Oracle Database 9.2.0.6 Software (Installed) Oracle Database 9.2.0.6 (Created) Node 2

  • Burning Movies to DVDs

    I am not sure this is the best place to post this, but hopefully someone has some insight. I have some movies on my computer and I want to burn them onto DVD's so I can play them on a conventional DVD player in my house. I already made one dvd DL a c