Airport ID instead of machine name in Terminal

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Airport ID instead of machine name in Terminal
# 1  
Old 10-08-2011
Airport ID instead of machine name in Terminal

Hi.

When I open a Terminal window instead of getting the machine's name (i.e. Joe-Bloggs-laptop) I get `unknown-00-1x-5x-cx-ex-ex:~ bloggs$' which is the Mac's Airport ID (ID munged).

I'm on a wireless LAN with one other laptop & three iPhones (Macs running 10.6.8 & iPhones all up to date).

Any help appreciated as to why this is occurring & how to fix it...
# 2  
Old 10-08-2011
what is the output of "echo $PS1"?
# 3  
Old 10-08-2011
`\h:\W \u\$'
# 4  
Old 10-08-2011
i have something like:
Code:
PS1='My-Mac:$PWD$ '

and in my .profile is the following:
Code:
PS1=$(uname -n | cut -d "." -f1)':$PWD$ '

# 5  
Old 10-08-2011
I'm assuming `PS1='My-Mac:$PWD$' is written in your .bash_profile/.bashrc?

---------- Post updated at 02:18 PM ---------- Previous update was at 01:35 PM ----------

I used `PS1="[\d \t \u@\h:\w ] $' which did what it was supposed to but \h resolved to the Airport ID...
# 6  
Old 10-08-2011
so your hostname got resolved to "unknown-00-1x-5x-cx-ex-ex". haven't you set a hostname for your machine in systemproperties -> sharing -> hostname?

Changing your Mac’s Computer Name
# 7  
Old 10-08-2011
in SysPrefs/Sharing it's `job-bloggs-macbook-pro-7' & the computer name is `Joe Blogg’s MacBook Pro (2)'.

When I had Parallels installed it switched from `MacBook Pro' to MacBook Pro (2) but I've since uninstalled Parallels completely.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Airport using semaphores and shared memo

Hi just doin' this here for the naval school, back here in Pportugal, and needed some help, especially with the shared memo i want to use for the 10 airport gate, and the maximum of 4 planes preparing to leave; canīt figure out how the gate can be id by the same PID. WELL, if someone wants to... (2 Replies)
Discussion started by: Turbo
2 Replies

2. Programming

Airport using semaphores and shared memo

Hi just doin' this here for the naval school, back here in Pportugal, and needed some help, especially with the shared memo i want to use for the 10 airport gate, and the maximum of 4 planes preparing to leave; canīt figure out how the gate can be id by the same PID. WELL, if someone wants to... (1 Reply)
Discussion started by: Turbo
1 Replies

3. Web Development

MySQL: Random offers for every airport

I need to write a MySQL query where it loops through every airport and generates 10 random offers (my offers table is 990,000+ rows) The code I have below works for 1 airport, but as soon as it gets bigger it slows RIGHT down. This is using PHP/MySQL At the moment it takes well over a... (2 Replies)
Discussion started by: worchyld
2 Replies

4. Shell Programming and Scripting

Execute command from terminal on remote machine

Hi All, I want to execute some commands on unix machine from the mac machne. I have two options for doing so, I am confused which is the best way of doing. Here are two options. Requirement: Execute command on the remote server machine. Commands to be executed itself contain arguments to be... (0 Replies)
Discussion started by: Ranu
0 Replies

5. Solaris

Connecting Solaris to Airport network

Hi, I've been trying to find out for the past two days how to set my Solaris 10 to join wireless network (Airport base station with ACL and wep or wpa on). Using ethernet is a bit out of question as I don't have an ethernet cable that would reach the other side of the house. Solaris 10... (1 Reply)
Discussion started by: giax
1 Replies

6. UNIX for Dummies Questions & Answers

terminal emulation displaying in machine language

I entered the command cat 401328 in an attempt to see a file. Now, my screen is displaying machine language. The properties of the file say that it is a postgres application. Is there a command I can enter so everything gets back to normal? Thanks, (2 Replies)
Discussion started by: Debbie
2 Replies
Login or Register to Ask a Question