You are not logged in.
Hi, I am converting my system over to some of the changes that are taking place with Arch to get it current and I went to change host name resolution over but I don't have the command that they are talking about "hostnamectl" what package to I have to install? I already have things like inetutils and net-tools installed what am I missing?
thanks you for your help
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
hostnamectl is part of the new nss-myhostname package. Have you updated recently? It should have been pulled in by the update in the filesystem package.
Offline
Yes I installed that package when I read the wiki, so if it is in that package something else is wrong. I tried the command not found, I tried "which" not found I searched the filesystem for that file not found. Does anyone have an idea what might be happening?
thanks for all your help.
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
it's part of systemd but has only recently been added with version 195, 194 doesn't have it yet. Update your system.
Offline
I apologize. I assumed that command came with that package as they were mentioned together in the mailing list. Doing a pacman -Qo, I see that it's actually part of systemd.
Offline
I apologize. I assumed that command came with that package as they were mentioned together in the mailing list. Doing a pacman -Qo, I see that it's actually part of systemd.
Hi and thanks, Yes I have that also installed as part of my "get caught up" day. How are you seeing it in systemd?
thanks
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
How are you seeing it in systemd?
Doing a pacman -Qo, I see that it's actually part of systemd.
pacman -Qo /usr/bin/hostnamectlpacman -Qo shows which package "owns" a command -- this only works if you already have hostnamectl installed.
Last edited by 2ManyDogs (2012-10-26 14:43:29)
Offline
jk121960 wrote:How are you seeing it in systemd?
Scimmia wrote:Doing a pacman -Qo, I see that it's actually part of systemd.
pacman -Qo /usr/bin/hostnamectlpacman -Qo shows which package "owns" a command -- this only works if you already have the hostnamectl installed.
Yes I had tried this but it comes back with
[root@zenlinux ~]# pacman -Qo /usr/bin/hostnamectl
error: failed to read file '/usr/bin/hostnamectl': No such file or directory
[1]+ Done hostname zenlinux
[root@zenlinux ~]# The reference to hostname in the output is me setting it in bash till I figure this out.
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
this only works if you already have hostnamectl installed.
Update your system. Once you have systemd 195, you will have /usr/bin/hostnamectl.
You can tell which version of systemd you have with "pacman -Qs systemd"
Last edited by 2ManyDogs (2012-10-26 14:47:26)
Offline
2ManyDogs wrote:this only works if you already have hostnamectl installed.
Update your system. Once you have systemd 195, you will have /usr/bin/hostnamectl.
pacman is only offering me systemd 194-3 and I ran "reflector" this morning. Do you think I am just getting an old repo image?
thanks
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
Did you run "pacman -Syy" or preferably "pacman -Syu" after you ran reflector ?
Offline
Did you run "pacman -Syy" or preferably "pacman -Syu" after you ran reflector ?
Yes I always run my update as -Syu
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
Try a different mirror.
Offline
Try a different mirror.
just did and the best I get is 194-4, I am going to run reflector again.
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
The Packages page says the current version of systemd is 195-2, but it was just updated today. You could just wait and update again later today or tomorrow...
Offline
The Packages page says the current version of systemd is 195-2, but it was just updated today. You could just wait and update again later today or tomorrow...
OK thanks
I appreciate all the help.
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
2ManyDogs wrote:The Packages page says the current version of systemd is 195-2, but it was just updated today. You could just wait and update again later today or tomorrow...
OK thanks
I appreciate all the help.
--jerry
I got the update and ran "hostnamectl set-hostname myhostname" replacing my hostname and I got
Failed to issue method call: Launch helper exited with unknown return code 1I appreciate any help that anyone can give.
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
Offline
hostnamectl doesn't write to /etc/hostname. If you want to change the name permanently, hostnamectl isn't going to help you. Same goes for the other new utilities: localectl and timedatectl.
Actually...
# cat /etc/hostname
amaranth
# hostnamectl set-hostname example
# cat /etc/hostname
exampleOffline
I got the update and ran "hostnamectl set-hostname myhostname" replacing my hostname and I got
Failed to issue method call: Launch helper exited with unknown return code 1
Sorry, I've never seen this error. Hopefully someone with more information will answer soon.
Does setting your hostname by editing /etc/hostname not work for some reason? I know the wiki says you should use hostnamectl to set the hostname, but I think you can just edit /etc/hostname and be done with it.
Offline
jk121960 wrote:I got the update and ran "hostnamectl set-hostname myhostname" replacing my hostname and I got
Failed to issue method call: Launch helper exited with unknown return code 1Sorry, I've never seen this error. Hopefully someone with more information will answer soon.
Does setting your hostname by editing /etc/hostname not work for some reason? I know the wiki says you should use hostnamectl to set the hostname, but I think you can just edit /etc/hostname and be done with it.
Well from the post prior to you I am thinking you can, I was just trying to follow the wiki as written. I am currently running on a restored copy so I can work because it was messing with stuff I use. I will attempt update again as soon as AUR is back up.
thanks for everyones help with this
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
are you actually using systemd? maybe hostnamectl depends on the system being booted with systemd.
And yes, editing /etc/hostname should be fine, hostnamectl just has some advanced functionality like setting the "pretty" and "transient" hostname or setting an icon to represent the host in GUIs (didn't even know this stuff existed
).
Offline
are you actually using systemd? maybe hostnamectl depends on the system being booted with systemd.
And yes, editing /etc/hostname should be fine, hostnamectl just has some advanced functionality like setting the "pretty" and "transient" hostname or setting an icon to represent the host in GUIs (didn't even know this stuff existed).
Yea, I was transitioning over to the new approach as to not get to behind the curve, sometimes it's a pain to catch up. I will continue as soon as I get a a positive result from yaourt instead of smutz. There is currently somthing wrong at aur.archlinux.org so I can't update as the update series I have to reconcile includes the python name remapping and it foobars apps I need from the aur, that I will have to reinstall.
thanks again
--jerry
Arch Awesome, Ranger & Vim the coding triple threat.
Offline
You don't need to reinstall from the AUR if you still have the PKGBUILD files and the source. Just edit the PKGBUILD and rebuild the packages, as described in this topic.
Offline