Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Getting "Unknown" error in Terminal?

To give you a quick summary of the situation I am in, I'm trying to set up a Minecraft server for my friend and I to play together, and this involves me using the Terminal. However, it doesn't appear to be working even though I'm doing everything I have been told to do.


After creating a text document with the correct content inside it, and saving it as server.command, I then have to go into Terminal and type "chmod a+x " and drag the server.command file into the Terminal and press Enter. After pressing Enter, it says "unknown-c8:bc:c8:c1:d1:5b:~ (user name)$". Why is it saying this, and how do I fix it so that what I am being told to do works like it should?

Mac OS X (10.6.8)

Posted on Mar 16, 2014 10:32 AM

Reply
7 replies

Mar 16, 2014 6:36 PM in response to Linc Davis

It is definitely an error, because in all the tutorials I've watched, it hasn't displayed that message. It's displayed something entirely different.


MrHoffman, if it's the tutorial you're asking for, it's right here: http://www.youtube.com/watch?v=x1SOcm5ufaA

That is only one tutorial. All the rest tell me to do the same thing regarding the terminal, i.e typing "chmod a+x " followed by the server.command file.

Mar 16, 2014 6:58 PM in response to OhBiscuits

It is definitely an error


No, it definitely is not. It's the shell prompt, showing the result of a reverse DNS lookup on the IP address of the network interface connected to the default route. Unless you're going to become a regular shell user, there's no reason to change it. If you want something to worry about, worry about what this command file is going to do to your system, which could be anything at all.

Mar 16, 2014 7:04 PM in response to OhBiscuits

Link Davis is correct. It is not an error.


By default the shell does a Reverse DNS lookup and the string returned is what the shell displays as part of your prompt.


The fact that your DNS server does not have a name associated with your IP address is common. However in this case your DNS server decided to return unknown-xx.xx.xx.xx.xx.xx is different, but still not an error.


If you were going to be a heavy Terminal user, there are thing you can do to ignore the DNS server response, but since this is a one off Terminal use, just accept that this is not an error from people that spend hours every day working in the Terminal/Unix environment.

Mar 17, 2014 6:59 AM in response to OhBiscuits

Somebody really needs to create a Minecraft installer for OS X, because you're only the most recent person to become entangled by the manual installation process.


I'm not going to watch a YouTube video to see what's gone weird with it; sorry. FWIW, There are text-based Minecraft installation and setup discussions around — I've seen a few discussed in previous reports of Minecraft server installation problems here. Those are generally better than the videos, as you have commands you can copy. Mistakes at the command line can lead to problems far worse than a prompt string change, too; data loss is possible, with certain sorts of commands.


Beyond the Minecraft server installation process, one of the prerequisites for the most common Minecraft server — Oracle Java — needs to be managed and kept current. Past versions of Oracle Java have allowed security to be breached, and there's no reason to expect that the most current version won't eventually be breached. Due to this history of vulnerabilities, the Apple OS X XProtect mechanisms will occasionally be updated to block Java when these vulnerabilities are reported. Put another way, you might find your Minecraft server unexpectedly taken offline when there's a Java security vulnerability loose.


As for the prompt string, here's a write-up on the prompt-changing bits.

Getting "Unknown" error in Terminal?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.