[SOLVED] How do I change my computer name in Mint 17.3
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
When I type nano /etc/hostname in the CLI this is what I get.
^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
Code:
^
represents the
Code:
Ctrl key
the letter represents the key you have to use along with the Ctrl key to get it to do what it says it does by pressing them two keys together.
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 I learn, the dumber I get
NO!
the more you learn about Linux the more you find out their is more to learn.
example:
NANO:
Code:
nano -c /path/filename
placing the -c before the path to your file you want to create, or modify, this will tell nano to show column and line numbers.
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:
The American National Standards Institute (ANSI, /ˈænsiː/ AN-see) is a private non-profit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States.
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?
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?
With all due respect but,you're going on 80 and you do not know the reference to the bada bing slang prase?
Bada Bing Bada Boom is something Frank may have said.
Quote:
Bada bing, bada boom
A term commonly used by members of the Mafia.
Slang for, "it's finished; taken care of."
Often it is heard in the metropolitan
areas of New York, specifically Brooklyn.
and a lot of movies one may watch.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.