How do I change my computer name in Mint 17.3
When I installed Mint it automatically assigned rusty@rusty-300E4A-300E5A-300E7A-3430EA-3530EA as my computer name.
How do I change that? |
Hey,
This guide gives some advice. Open up the command line interface and follow the steps marked in yellow. See if that works out. Good luck! |
hostname or HOSTNAME
in /etc mod it save it bada bing new name |
Hi BW.
My computer's name has always been Esmerelda so that is what it must be now. When I type in:- rusty@rusty-300E4A-300E5A-300E7A-3430EA-3530EA ~ $ hostname esmerelda in/etc I get this:- Program name: {yp,nis,}domainname=hostname -y dnsdomainname=hostname -d Program options: -a, --alias alias names -A, --all-fqdns all long host names (FQDNs) -b, --boot set default hostname if none available -d, --domain DNS domain name -f, --fqdn, --long long host name (FQDN) -F, --file read host name or NIS domain name from given file -i, --ip-address addresses for the host name -I, --all-ip-addresses all addresses for the host -s, --short short host name -y, --yp, --nis NIS/YP domain name Description: This command can get or set the host name or the NIS domain name. You can also get the DNS domain or the FQDN (fully qualified domain name). Unless you are using bind or NIS for host lookups you can change the FQDN (Fully Qualified Domain Name) and the DNS domain name (which is part of the FQDN) in the /etc/hosts file. What do I enter next? --domain or --yp, --nis or something else? |
What he means to say that in the folder /etc, there is a file named "hostname" ( you can check this by typing [ls /etc], this will show you all files in folder /etc)
By doing [nano /etc/hostname] in the CLI you can change the hostname into esmeralda. What you're seeing when typing [hostname] is a description of the hostname-program. good luck! |
key word you missed in my post prior to this, mod it <-- short for modify it starting from
Code:
#nano /etc/hostname If you want to give it a middle name then use a dot between the two. but No ending .(anything) you'll need to modify your /etc/hosts file for that. |
Quote:
|
When I type nano /etc/hostname in the CLI this is what I get.
GNU nano 2.2.6 File: /etc/hostname rusty-300E4A-300E5A-300E7A-3430EA-3530EA [ Read 1 line ( Warning: No write permission) ] ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell When I delete rusty-300E4A-300E5A-300E7A-3430EA-3530EA and type in Esmerelda I get GNU nano 2.2.6 File: /etc/hostname Modified Esmerelda ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell There is no button to save the change and the name has not been changed when I open the terminal again. __________________________________ The more I learn, the dumber I get |
What the CLI says is that your user(type) doesn't have the permissions to write to the /etc/hostname file.
You can fix this in two ways: -change the permission -enter sudo mode It's better to use sudo in this case. so type [sudo nano /etc/hostname]. When you've made your changes, press (ctrl) X, and confirm your changes by typing 'y'. |
Quote:
by having it spoken to them - repeatedly but I understand your point :D cheers ! |
Quote:
|
Quote:
the Code:
^ Code:
Ctrl key example: to get it to remove text using cut, place your cursor at the start of what you want to remove. then press ^K - meaning Crtl+k it will cut it out, if you want to take a block of text and move it somewhere else. Just keep cutting it,then place your cursor where you want your block of text you just cut out, then press ^U - Ctrl+U it will paste all of it at once. save it ^X - Crtl+x then follow the prompts beacuse it will give you a confrimation message. Quote:
the more you learn about Linux the more you find out their is more to learn. example: NANO: Code:
nano -c /path/filename So if you're compling code and you get an error saying something like. error line 596 blah blah blah in file.c just use nano -c this way you can page down and find line 596 to see what it is talking about. just press ^C then type in the line number hit enter and you're there. K = Cut with a K U = UnKut or Uncut X = means exit using the x - e is slient It is set up like Windows to a certin point. Being standardized in commands. In Windows Ctrl+x is cut, Ctrl+C is copy, Ctrl+V is paste. it is a standard format for everything in Windows, F1 is help in everything. When you're prgramming you only have so many key combo's to pick from. doing it the same way accross the board means less confustion. hence standards was issued. ANSI: Quote:
|
You are right Hydrurga.
We Newbies definitely do not know the lingo. Most of it is gobbledy-geek to us or may I be so bold as to say "geekspeak" I an going on 80 years old and a lot of what I learn today is forgotten tomorrow. So the "Select - click on - type blah blah blah - Enter" method works best for me. Please forgive me BW-userx but when I first read your post I thought that you had been smoking controlled substances. It was the bada bing bit that did it. No offence meant. Just trying to point out how geriatric brains work. (or don't) Back to the problem at hand. Where to now Horatio? |
Quote:
Bada Bing Bada Boom is something Frank may have said. Quote:
that was just my version of short hand. whereas a lot of people give way too much information on a simple fix. In how to's. it still forces the mind to hopefully be stimulated into thinking in the right direction using just key words. hostname - what you need to find /etc - where it is at mod it - what to do with it save it - what to do with it when you're done with it bada bing new name - what happens as a result of your proper actions towards the file. short and simple. :D one never knows how much the other knows or does not know, even if they say they are a newbie, and it never hurts to inquire further if more information is needed. |
Heh-heh.
I live in the southern part of Africa and your Mafia expressions are not very common here.(A tad far from NY.) We also do not have Mafiosa. We have Tsotsis. A totally different breed. Much more primitive. So to me you sounded more like a Rastafarian Jamaican doing Reggae. Jokes aside. I appreciate your help and will try to make sense of what you and Hydrurga have said. May the force be with you (that one I do know) __________________________________________ Of all the things I've lost, I miss my mind the most |
All times are GMT -5. The time now is 11:04 AM. |