<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=6717&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Dhcpdiscover freezes boot, when there is no wifi network]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=6717</link>
		<description><![CDATA[The most recent posts in Dhcpdiscover freezes boot, when there is no wifi network.]]></description>
		<lastBuildDate>Tue, 09 Jul 2024 20:43:49 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Dhcpdiscover freezes boot, when there is no wifi network]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=51011#p51011</link>
			<description><![CDATA[<p>You might want to use the following setup variant:<br />First, create or edit&#160; <span class="bbc">/etc/wpa_supplicant/wpa_supplicant.conf</span> to have 2 initial lines like this:</p><div class="codebox"><pre><code>ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1</code></pre></div><p>Secondly, change <span class="bbc">/etc/network/interfaces</span> for wlan0 to read like this </p><div class="codebox"><pre><code>auto wlan0
iface wlan0 inet manual
    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp</code></pre></div><p>Thirdly, add the user to the group <span class="bbc">netdev</span>.</p><p>Then that user can operate the wlan0 connection with wpagui (which you might need to install), and all details for networks that they connect to gets saved in /etc/wpa_supplicant/wpa_supplicant.conf, to be autimatically re-used upon roaming... (it&#039;s also possble for you to enter that beforehand with a text editor, but the file is also updated by wpa_supplicant. See <span class="bbc">man wpa_action</span> for details).</p><p>EDIT: Note that there are <span class="bbu">two iface blocks for wireless</span> in this setup. Firstly the <span class="bbu">wlan0</span> block that registers it to wpa_supplicant via the wpa_roam setting, telling the name of the connection database file to use. Secondly a <span class="bbu">default</span> block that wpa_action uses for configuring the interface. Note that &quot;default&quot; is the name of that block.</p><p>EDIT 2: Technically this solves the issue of running a dhcp attempt too early to the wrong network by&#160; the wireless setup being broken up into two phases. The first phase happens on boot, where the interface is brought up to link level. That enables wpa_supplicant to scan for available networks. The interface is thereafter raised to ip level when wpa_supplicant discovers a network it has connection details for, and then dhcp is used (as configured by the default iface block) with the approrpiate link encryption for aquiring the network address(s) etc.</p><p>This setup also allows for static (rather than dhcp) network configurations to be made for individual networks. You do that by other specially named iface blocks to identify the concerned connections. See the man page if you need that.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Tue, 09 Jul 2024 20:43:49 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=51011#p51011</guid>
		</item>
		<item>
			<title><![CDATA[Dhcpdiscover freezes boot, when there is no wifi network]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=51009#p51009</link>
			<description><![CDATA[<p>Hello! I use Devuan and sysVinit. I often use different networks and sometime switch to smartphone&#039;s hotspot. This is how I typed my extra simple config, cat /etc/network/interfaces</p><div class="codebox"><pre><code>#wifi with wlan0 to Xiaomi Redmi
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
	wpa-ssid Redmi
	wpa-proto WPA2
	wpa-key-mgmt WPA-PSK
	wpa-psk mykeyheremykeyhere</code></pre></div><p>This connects me to my smartphones network. But if I reboot and switch off my smartphone&#039;s hotspot (for example next day, when I just came to work), my Devuan stops booting because of DHCPDISCOVER that waiting network with continuing delays. This is awful, I wish first start X-server and Slim for type my username and pass and only after that start networking and DHCP. Could you advise something? How to move start of networking after start of Slim?</p>]]></description>
			<author><![CDATA[dummy@example.com (youni)]]></author>
			<pubDate>Tue, 09 Jul 2024 17:13:15 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=51009#p51009</guid>
		</item>
	</channel>
</rss>
