For three days straight, I have connected to the public WiFi network at my local library. Each day, I have seen a different prompt in Terminal. Here are some of the prompts I've seen:  zp-pc:~ russell$ mary-pc:~ russell$ normob05:~ russell$   I have check under System Preferences -> Sharing, and my computer name is "Russell's Mac". Also, I set the DHCP Client ID to "RUSSMAC" under System Preferences -> Network -> Advanced -> TCP/IP, but I still see the random host names at the Terminal prompt.  Why is my computer name changing every day?
17320
My computer name in System Preferences &gt; Sharing is set to &quot;archos&quot;, but is showing as &quot;iphone&quot; on Terminal. It just started doing this after I loaded Xcode for doing iPhone development: Last login: Mon Nov  7 14:46:55 on ttys001 iphone:~ travis$   Any ideas what could be causing this?
39705
I have several instances of terminals running in my working environment, what I would like is to set a specific title for each one, in order to have a clear idea what purpose the specific terminal serves i.e. Apache, editing_ini, postgres etc...  Of course from the command line.
123706
I am wondering if there is anything (software or hardware) out there that can do something I think I may have made up, Dynamic Static IPs. The idea is that when a new device connects to the local network this device/software acts as a DHCP server, if the device is new then it dynamically assigns it a new address that has never been used before and stores this MAC Address IP Address combination in a database, if the device's MAC is in the database the devices gets the same IP as before.  I am aware this is similar to sticky IP allocation but I don't want the IPs to stick for a while I want them to be superglued on for ever.  Bonus question: Is this possible using a Raspberry Pi running Raspbian on a network with around 100 devices? The RPi is already acting as the DHCP server and the router has this capability but it is turned off.  Many thanks in advance for any and all help offered!
90269
I realized that the hostname had changed while I was doing some work using terminal in OS X Yosemite. I thought there might be an IP address conflict so I reset it. However I still get another device's name (someone else's iPhone, to be exact) when I use the hostname command:  Last login: Fri May  1 15:52:42 on ttys000 SomeonesiPhone:~ irem$  SomeonesiPhone:~ irem$ hostname SomeonesiPhone.wireless.duke.local   What's going on and how can I fix this?  It appears the IP address has not changed. But the address that I get by doing ipconfig getifaddr en0 is different from my public IP address.  I looked up my public IP address using Google, like this:
122963
A few weeks ago, my machine (lets call it "main") was logged into wirelessly from an unauthorized host, probably using ssh.  I did not detect the intrusion until a few days ago, and my machine is completely shut down.  I found the login using this line from last:  myusername    pts/1        ipad             Tue Oct 15 22:23 - 22:25  (00:02)   Needless to say, not only does no one in my family own an iPad, but almost none of my friends do, either.  This makes me suspect that whoever was behind this changed the hostname of their machine.  Additionally, I discovered this line in the last output on another machine of mine ("secondary"):  myusername    pts/2        :0               Tue Oct 15 22:23 - 22:23  (00:00)   This line coincides with the timestamp from main, which has password-less ssh access (through keys) to secondary.  Is it possible that whoever broke in to main has also rooted secondary?  How can I prevent this from happening again?  Are there logs that I can look through to determine exactly how main was accessed (I am the only user on the system and have a very strong password)?  Is it at all possible that this is just a weird bug that occurred?  Should I, and where should I start looking for rootkits and/or keyloggers?  In short, what should I do?
65419
Ubuntu sends my computer's configured hostname to any DHCP server it tries to use. How do I stop it from sending a hostname?
52905
I'm on 10.9, and I had been using internet sharing successfully again for the first time since Lion. Today though, it just decided to stop working again.  Network layout:  Modem -ethernet-&gt; Router -ethernet-&gt; Mac Pro -ethernet-&gt; MacBook Pro Retina   The internet works fine on the Mac Pro, but it is no longer forwarding the proper DHCP settings to the MacBook.  Previously, the MacBook would get the IP address of 192.168.2.12, and was able to surf the web fine. (Though it wasn't able to connect to any AirPlay/AirPrint devices while on the ethernet interface)  Sometime today, a setting got messed up, and I'm not sure how to fix it or what setting it is.  The MacBook now has a "Self-assigned" IP of 169.254.121.24, even though it is set to use DHCP. The ethernet port on the Mac Pro that the MacBook Pro is connected to is showing a "Self-assigned" IP of 169.254.36.53, even though it is set up to use DHCP as well.  The internet sharing options appear to be correct: share connection from Ethernet 1 to Ethernet 2.  But alas, for no apparent reason, I'm not getting internet access.
92177
I've a small home network up and running and managed to set up ssh. Can anyone tell me what I need to do to refer to one computer on the network from another by host name rather than IP address (which is what I'm doing now)?
16931
When I open the terminal, a name is displayed before I type any command as follows: administrator@administrator:~$  What specific steps do I take to change the display name?
105951
Utilities like host and dig let you see the IP address corresponding to the host name.  There is also the getent utility that can be used to query /etc/hosts or other NSS databases.  I am looking for a convenient standard utility (which is available in Debian, say) which resolves a host name regardless of where it is defined.  It should be more or less equivalent to  ping "$HOST" | head -1 | perl -lne '/\((.*?)\)/ &amp;&amp; print $1'
8752
I am currently at this stage of setting up DHCP, and id just like to know what this output in terminal means? I know I have to edit a file but I do not know which one, and I do not know what to put in it. Ultimately I would like to set up a DHCP server.  matt@matt-R580-R590:~$ sudo tail /var/log/syslog Jan  3 17:35:23 matt-R580-R590 dhcpd: Wrote 0 leases to leases file. Jan  3 17:35:23 matt-R580-R590 dhcpd:  Jan  3 17:35:23 matt-R580-R590 dhcpd: No subnet declaration for eth0 (no IPv4 addresses). Jan  3 17:35:23 matt-R580-R590 dhcpd: ** Ignoring requests on eth0.  If this is not what Jan  3 17:35:23 matt-R580-R590 dhcpd:    you want, please write a subnet declaration Jan  3 17:35:23 matt-R580-R590 dhcpd:    in your dhcpd.conf file for the network segment Jan  3 17:35:23 matt-R580-R590 dhcpd:    to which interface eth0 is attached. ** Jan  3 17:35:23 matt-R580-R590 dhcpd:  Jan  3 17:35:23 matt-R580-R590 dhcpd:  Jan  3 17:35:23 matt-R580-R590 dhcpd: Not configured to listen on any interfaces! matt@matt-R580-R590:~$
73367
What I get:  host:~ user$ cat example.txt some texthost:~ stas$   What I want to get:  host:~ user$ cat example.txt some text host:~ stas$   Is there a way I can make cat behave like this?  I'm using bash on Mac OS X.
101368
I've used IRC for a long time and I've seen people with really unique hostnames. I'm wondering how they are able to have those?  My theory is that one sets up a server as part of the efnet/freenode network and somehow masks his real identity behind that custom server.  Could someone explain layman's terms how this is done?  And on a related note, how easy is it to customize your hostname if you're say, running an irc client on your domain and would like to use your domain name instead of the internal vps address?   Example: if I'm using linode, it'll say I'm member_whatever@members.linode.com as my hostname. I host several sites so I'm pointing a few A records to my server, I want my hostname to be something like 'meder@medero.org' for example, instead of the default linode one.
72338
I'm running a Samba server on my MacBook and I've also set up port forwarding to said server from my router.  My public IP is 106.51.x.x (according to google and a few other services) and my Mac's local IP is 192.168.x.x, but when I head to my router's configuration page, it says my external IP is 10.242.x.x.  This is what I don't understand, when connected to my home WiFi, using the 10.242.x.x address works just fine. But if I try to access the same over 4G, the connection times out.  As for the public address, neither WiFi nor 4G works.  Is there some setting on my Mac (I'm running MacOS Sierra) that I must alter to make it visible to the public?
56581
This may be a bit of a noobish question, but I was taking a look at /etc/hosts on my new Xubuntu install and saw this:  127.0.0.1 localhost 127.0.1.1 myhostname   On most 'nixes I've used, the second line is omitted, and if I want to add my hostname to the hosts file, I'd just do this:  127.0.0.1 localhost myhostname   Is there a difference between these two files in any practical sense?
91378
I completed a survey that stated I am only allowed to do it once per day. If I try to do it again, I am not allowed as expected.  I am trying to find out how they know that it is from the same computer/network.  I tried doing the survey with another computer on the same LAN but it still didn't work. Then I thought they might be using my public IP and after changing that, it still didn't work on either computer.  Now I'm wondering how they uniquely identify my local network without relying on my public IP address? My next guess is that they are using the MAC-address of my router.  I want to know what are common/popular methods that websites use to do this type of thing.
59051
When I open Terminal I expect it to show what my PS1 is set to \h:\W \u\$.  However it's not displaying my hostname Eriks-MacBook, as displayed in System Preferences.  Instead, it's showing a random string unknownb88d120cd4b2.   How can this be fixed or reset?  This machine is brand new, and the preferences/settings haven't been changed.