You are not logged in.

#1 2014-02-26 10:09:12

grubenm
Member
Registered: 2014-02-25
Posts: 35

Network Hostname Remains 'archiso'; Local Changeable

Hey all,

I've installed arch linux on 4 (or 6 boxes, if you count reinstalls tongue), but on my most recent install I can't seem to convince the router than the box's name is not "archiso." (As a hopefully-helpful aside, monitorix also thinks the hostname is "archiso").  I do not have this problem with my other boxes.

My configuration is almost verbatim a following of the Wireless Setup ArchWiki entry section 2.1.7.2 Systemd with wpa_supplicant and static IP

The output of my network-wireless@.service file is as follows:

[Unit]
Description=Wireless (Home) Connectivity (%i)
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device

[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/conf.d/network-wireless\@%i

ExecStart=/usr/bin/ip link set dev %i up
ExecStart=/usr/bin/wpa_supplicant -B -i %i -c /etc/wpa_supplicant.conf
ExecStart=/usr/bin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev %i
ExecStart=/usr/bin/ip route add default via ${gateway}

ExecStop=/usr/bin/ip addr flush dev %i
ExecStop=/usr/bin/ip link set dev %i down

[Install]
WantedBy=multi-user.target

and my /etc/conf.d/network-wireless@[actualWifiInterface]:

address=192.168.1.80
netmask=24
broadcast=192.168.1.255
gateway=192.168.1.254

and my /etc/wpa_supplicant.conf

network={
        ssid="[RealRouterSSID]"
        #psk="[RealPassphrase]"
        psk=[Real_wpa_passphrase_output]
}

and finally, /etc/hostname:

NotArchiso

(And yes, the hostname displayed on the tty is correctly "NotArchiso")

One final note: on this persistently "archiso"-hostnamed box, I have never used dhcpcd.  All the other boxes connect via a static IP address as well, but have previously connected to the router at least once using dhcpcd.

Any hints or tips would be greatly appreciated.  This issue is admittedly more aesthetic than anything since there's only one "archiso," but in the words of a young Montgomery Burns, "You can't all sign [your names] with an X."

Last edited by grubenm (2014-02-26 10:13:01)

Offline

#2 2014-02-26 10:30:52

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Network Hostname Remains 'archiso'; Local Changeable

Delete the entry for the machine in the router or use something like Samba or Avahi to announce the new name "the proper way". Hostname announcement and commercial routers are a major annoyance.

Offline

#3 2014-02-27 00:18:23

grubenm
Member
Registered: 2014-02-25
Posts: 35

Re: Network Hostname Remains 'archiso'; Local Changeable

If 'avahi' and 'samba' are the only other packages beside 'dhcpcd' which can properly announce a hostname to the router, then for me personally it's just easier to configure and run dhcpcd once then return to the above-configured static IP network-wireless service.

Offline

Board footer

Powered by FluxBB