Changing local host name

I would like to change my command prompt at the terminal window. At present it is shown as <mycompletename@XXXXXXX>
where "mycompletename" is well my name and xxxxxxxxx are some alpha numeric characters. How can i get rid of this alphanumberic characters? i tried using hostname -s XXX, but its not permanent. Some more searching said to change hostconfig in /etc, but i dont see anything as HOSTNAME-AUTOMATIC, in there. Another option which works is PS1='something', however, this is also not permanent. I am not sure what else i can do to change name of command prompt to show myname@somethingdifferent.
Is there any thing i can do with on my .bash_profile in my home directory? or any thing else? please guide. I am the admin of the computer, however i have not set any root.
Thanks
Sudeep
MacBook2,1 Mac OS X (10.4.9)
Mac OS X (10.4.9)
Mac OS X (10.4.9)

I've checked your other thread. I fear, you misunderstood my first posting. There I said:
Add the following line:
HOSTNAME=$HOSTNAME
where $HOSTNAME is the hostname you want to set.
That means:
Replace $HOSTNAME with the actual hostname you want to give the computer. The line should finally have looked something like 'HOSTNAME=MacBook'.
Sorry, but I was under the impression you would know at least some basics in script programming and how to use variables and how to read other people's code. I guess my instructions where just not clear enough.
The problems you describe in your other thread are because the root filesystem is mounted read-only in single user mode. You need to remount the filesystem read-write before you can make any changes to files.
I just took a quick look at Google to find the neccessary commands. I've just tested it on my MacBook, worked perfectly.
1. Boot the Mac into single user mode by pressing and holding 'Command + S' during boot time.
2. When you're at the command line type the following:
/sbin/mount -wu /
That will remount the root filesystem read-write and you'll be able to edit the system files.
3. When you're done editing, save the file. If you're using vi ignore the message about not being able to safe some temp vi file. Just hit ENTER once. After that type 'exit', hit ENTER once more and the Mac should boot up fine again.

Similar Messages

  • System tried to change local host name

    A screen message with an exclamation mark showed up on my Mac Mini screen this morning which says:  This computer's local hostname . . . is already in use on the network. The name has been changed to . . . (then inserted the current host name (# 2). I don't know what to make of this, and fear some kind of hacking. If this could be the case what can I do to find out?  The only other thing I can think of is that I left my Time Machine on & it tried to do a full backup with my backup drive full.  Anyone else have this happen?

    There are several possible causes for this behavior.
    1. Two (or more) computers on the local network have the same Bonjour name, such as "X's-MacBook-Pro.local".
    2. You have two simultaneous connections to the same local network: probably Ethernet and Wi-Fi. If applicable, disconnect the Ethernet cable or turn off Wi-Fi.
    3. A Mac wakes from sleep due to network traffic. This is a bug in OS X that may only affect some models.
    4. A device that gets its network address from the router wakes from sleep, and the address it was using before has been assigned to another device.
    5. A third-party wireless router has incompatible settings or firmware. In that case, refer to the manufacturer or ISP for support. Restarting the router may help, temporarily.
    6. See also this support article.
    Rename the computer in the Sharing preference pane.

  • Local host name  message pops up on start up

    I've started getting message  on start up saying "local host name is already in use, do  you want to change"
    this just began happening.
    what does this mean and how can i fix it from poping up?
    thanks

    Hey R%%^Y,
    Thanks for the question. It sounds like another computer on your network may have a similar local hostname. You can change your hostname in System Preferences > Sharing:
    OS X Mavericks: Find your computer’s name and address
    http://support.apple.com/kb/PH13790
    Local hostname: Your computer’s local hostname, or local network name, is displayed on your local network so others on the network can connect to your Mac.
    Your computer’s local network name is displayed beneath the computer’s name at the top of Sharing preferences.
    The local network name is your computer’s name with “.local” added, and any spaces are replaced with hyphens (-). For example, if your computer’s name is My Computer, your local network name is “My-Computer.local.” Local network names are not case sensitive, so “my-computer.local” is the same as “My-Computer.local.”
    Thanks,
    Matt M.

  • Local host name already in use

    I routinely get a message saying "local host name is already in use on this network. The name has ben changed to...."

    Is this a home network or a workplace network?
    If you open up terminal.
    Go to Applications> Utilities> Terminal and type in hostname
    what comes up?

  • DNS or Local Host Name Issue

    I have an iMac, 10.6.2 that continues to get a duplicate IP address error. I have determined that this iMac is seeing itself as another machine on the network, hence the duplicate IP error. I have changed the local host name under system preferences -->network (and in sharing) to imac10.6.2-username However, on the WINS tab of system preferences-->network the computer name shows as imac 9B14C4. I have manually changed this on the WINS tab and but it doesn't actually change it. I have flushed DNS and used the scutil--gethostname command to no avail. Additionally, this iMac does not show up when browsing the network from any machine on the network. All other Macs here do. Any suggestions?
    Message was edited by: EricWeiner
    Actually I can browse to it through the network by either the DNS name or the WINS name, even though I tried to make them the same.

    I use a Mac mini as a small AV server, and have exactly the same issue. Message keeps popping up at least once a day. Changing name in Preferences doesn't make any difference. After a few weeks it's gone from 'Centerstage' to 'Centerstage-8'. I even formatted the HD and installed Leopard and after that Snow Leopard. Didn't solve anything. Very irritating. Apple only recognizes this as a Mac OS X server issue.
    Help.

  • Changing the Host Name in Lite Database

    Hi,
         I am using oracle 10g Database release 2 and oracle 10g Lite Database Release 3
    OS is Windows 2003 Server
    I changed the host name
    “Old Name Oracle10g New Name OracleTENR1”
    Also change the host name in Listener.ora and tnsname.ora after that i restart the machine
    I checked the Database status (it is in OPEN STATE only )
    And then I start the mobile server it's not working ….
    How to change the host name in the oracle 10g Lite Database ?
    Please Advice
    Thank U
    SHAN

    hi,
    Thanks Fot the Reply ......
    I have changed the hostname in webtogo.ora
    Mobile Server is Working...
    But the Problem is "with the Browser http://localhost/webtogo it shows this error message in the Screen"
    500 Internal Server Error
    java.lang.NullPointerException     at oracle.lite.web.util.TaggedHtml.parse(Unknown Source)     at oracle.lite.web.util.TaggedHtml.init(Unknown Source)     at oracle.lite.web.WebtogoLogonPage.init(Unknown Source)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2231)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4617)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4541)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2821)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)
    Please Advice.....
    thank U
    SHAN

  • BW settings required when we change the host name in R/3

    Hi All,
    we had a test system in R/3 and we are planning to change the Host name in R/3 and this is connected to bw test.after basis change the host name in r/3 test what are settings required to be done in BI .
    Regards,
    jasmine.

    after name change check the RFC connection in SM59 and then see if you data sources are anabled from new source system.

  • Change AIX host name

    Hi all,
    I have to change the host name of an AIX server which I have an Oracle 10g already Installed on it.
    First, Is it possible to change the host name without break off oracle server?
    What is the drawback on the oracle server?
    Apart the Listener, what should I change in the configuration of the oracle server, and where?
    drawback on OEM?
    Inventory?
    etc...
    any oracle note??
    Thanks in advance
    S. Hage

    user12004538 wrote:
    Hi all,
    I have to change the host name of an AIX server which I have an Oracle 10g already Installed on it.
    First, Is it possible to change the host name without break off oracle server?
    What is the drawback on the oracle server?
    Apart the Listener, what should I change in the configuration of the oracle server, and where?
    drawback on OEM?
    Inventory?
    etc...
    any oracle note??With V10+ no listener.ora file is required.
    Nothing involving Oracle RDBMS needs to be changed when hostname changes.
    OEM will break when hostname changes.
    tnsnames.ora on remote clients need to be modified to reflect new hostname.

  • Change EP host name

    Hello:
    Is it possible to change the host name in the portal server?
    hostA.domain.com -> hostBCDE.domain.com
    What do I need to change in configuration after the name change?
    Thank you

    Hello,
    IT is not possible to change the Host name of the Portal server and it is not at all recommended by SAP.
    Suneel

  • OracleVM Manager template 2.2.0 trying change the host name

    Hi,
    I have installed the OracleVM Manager 2.2.0 template
    into an OraclVM Server 2.2.1.
    Reading the OracleVM Manager 2.2.0 install
    instructions "Readme_for_Media_Pack_B59146-01.txt" and doing
    the installation in the interview area, I am asked
    to provide the fully qualified domain name as the
    name of the OracleVM Manager.
    Therefore, I provided something like this.
    ovmmanager.mydomain.mytopdomain
    Later, when I was in the OracleMV Manager,
    I noticed the following.
    Correct information was written in my /etc/hosts file.
    192.168.1.160 ovmmanager.mydomain.mytopdomain ovmmanager
    The case seems however, that unusual information
    was written to the /etc/sysconfig/network file.
    HOSTNAME=ovmmanager.mydomain.mytopdomain
    When I type "uname -a", the results are shown.
    ovmmanager.mydomain.mytopdomain
    I say, "unusual", because most people prefer a single
    name "ovmmanger" to be the host name.
    I have tried to permanently change the host name of the computer by
    changing the contents of the /etc/sysconfig/network file to the following.
    HOSTNAME=ovmmanager
    Next, at the command line I would type the following.
    hostname ovmmanger
    When I type "uname -a", the results are shown.
    ovmmanager
    However, every time I do an 'xm shutdown' to the
    OracleVM Manger (the ovmmanger), and then later do an
    'xm create vm.cfg' to start the ovmmanger,
    when I type a "uname -a", the results are shown.
    ovmmanager.mydomain.mytopdomain
    When I look at the contents of the /etc/sysconfig/network file
    the contents are back to the original contents.
    HOSTNAME=ovmmanager.mydomain.mytopdomain
    instead of my preferred contents
    HOSTNAME=ovmmanager
    My first question is the following.
    By design, does the OracleVM Manager 2.2.0 template
    supposed to have a host name to be a
    fully qualified domain name?
    ovmmanger.mydomain.mytopdomain.
    My second question is the following.
    If the situation is satisfactory to have just
    ovmmanger
    as my host name, then how do I prevent the host name renaming
    process to reoccur every time I do an 'xm create vm.cfg' to start
    the OracleMV Manager?
    Thank you
    AIM

    First Question: No, it does not have to be a full qualified hostname. As long as the hostname is resolved in your network short qualified is fine.
    Second Question: You don't have to do anything. In OVM Template design the configuration tool is just called the first time your template is started. All succeeding startups will not go through the configuration again. (There is however an option to reenable/reset the VM that the configuration is called again).
    Regards
    Sebastian

  • ORA-12545 error after changing the host name as IP address in Tnsnames.ora

    HI,
    I tried to connect PHP and oracle in Red Hat linux. I got error ORA-12545 after changing the host name as IPAddress in Tnsnames.ora file. In sqlnet.ora file also i have entry for tnsnames in Directory_Path. I struggled so much but i couldnt solve that. Please give me ur valuable suggestions....

    12545, 00000, "Connect failed because target host or object does not exist"
    // *Cause: The address specified is not valid, or the program being
    // connected to does not exist.
    // *Action: Ensure the ADDRESS parameters have been entered correctly; the
    // most likely incorrect parameter is the node name. Ensure that the
    // executable for the server exists (perhaps "oracle" is missing.)
    // If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the
    // host name to a numeric IP address and try again.
    Seems you specified wrong IP address.

  • I want to change my Host Name

    I want to change my Host name. I just need a little instruction. Can you please help.
    Thanks Brett.

    You want to change your Host name in a meeting or in the Connect system?
    In a Meeting, go to the pod options menu for the Attendee List, and select Edit My Info. You can then change your name in the room.
    In Connect, you need to be an Admin, and be able to edit User Profiles.

  • Change the host name of communication channel at runtime

    Hi,
    I am connecting to an SQL server using a JDBC receiver communication channel.
    The vendor who is managing this SQL server says that he has a primary server with the ip <IP1> and a secondary server with ip <IP2>.
    He wants me to switch to IP2 when IP1 is down.
    Is there any possibility of  to achieve this ?
    regards,
    Piyush

    I dont think there is any options available in JDBC adapter to change the host name dynamically...
    what u can do is - u create a dummy scenario which will just check whether the database is up or not and store the flag values in PI ABAP stack..
    Now before u send data to JDBC u do look up and check which server is up...and based on that u divert ur message to required system.
    thats what I can think of now...
    chirag

  • New Local host names

    I am brand new to macs and still don't have a lot of it down yet, so this question may seem pretty simple.
    When I turn on my mac, it has started telling me that my local-host-name is already being used and that I need to use a new one. For example:
    XXXXXXXXX-2.local is already being used, please use XXXXXXXX-3.local etc.
    That's not the exact wording but the basic idea of it. I think that it's affecting my ability to connect to my external harddrive through my router.
    Thanks,
    macbook   Mac OS X (10.4.9)  

    My computer has a name unique to my network "John Smith's Computer" however this message appears below
    Other computers on your local subnet can access your computer at john-smiths-computer-5.local
    Is this alright? I would think that this isn't how it should operate. Is there a way that I can close/log-off of x-x-computer-5.local?

  • I have been asked to change my Host Name . Is this genuine??

    I have been asked to change my Host Name . Is this genuine??

    For the DNS Changer malware see the following:
    Will your internet service cut off on July 9?
    DCWG | DNS Changer Working Group
    How to remove the DNS Changer malware

Maybe you are looking for