I am using Slitaz 4. Each time I boot the machine I have to to go to my wifi configuration and start my network conection manually. I cannot see an option to get it to start the network automatically on reboot. Is there a way to do this please.
WiFi configuration
(19 posts) (6 voices)-
Posted 7 years ago #
-
Posted 7 years ago #
-
Do you use a live-system or have you installed slitaz permanently on HD?
If you use a live-system, then every chanches are lost when you restart.Posted 7 years ago # -
No it's installed on the HDD.
I realise that a live system will need resetting every time. It even asks for the wifi key every reboot.Posted 7 years ago # -
I have read through the link that Kultex posted. My linux skill is basic so I'm struggling. I think that I have to add the line
/etc/init.d/network.sh start to my /etc/network.conf file.
Is that it? Does it have to be at the begining or in a particular place. Or am I totally wrong.
Thanks.Posted 7 years ago # -
network.conf is a configuration file. It won't run network.sh.
How did you configure your Wi-Fi for the first time and what do you have to do now at boot to start it?
Posted 7 years ago # -
That's the wifi-part of my network.config:
#
# Wi-Fi settings for iwconfig.
## Wi-Fi interface. It can auto-search interface if value below is fail.
WIFI_INTERFACE="wlan0"# WPA driver; default is "wext" (Wireless Extension).
WIFI_WPA_DRIVER="wext"# Set the operating mode of the device. The mode can be "Ad-Hoc", "Managed",
# "Master", "Repeater", "Secondary", "Monitor" or "Auto".
WIFI_MODE="managed"# Set the operating channel in the device. Empty by default.
WIFI_CHANNEL=""# Force the card to register to the Access Point given by the address, if it's
# possible. Empty by default to automatic mode.
WIFI_AP=""#
# Wi-Fi settings for wpa_supplicant (for given network).
## SSID (network name)
WIFI_ESSID="my SSID"# BSSID (optional), use this block to associate with the AP
WIFI_BSSID=""# Wi-Fi security. Empty ("") for open network; "ANY" for trying many methods;
# "WEP" for WEP; "WPA" for WPA/WPA2-PSK; "EAP" for 802.1x EAP.
WIFI_KEY_TYPE="WPA"# Password for WEP, WPA, EAP, WAPI, and ANY; both in ASCII or HEX form.
WIFI_KEY="my key"# Method for EAP: "PEAP", "TLS", "TTLS", "PWD".
WIFI_EAP_METHOD=""# File path to CA certificate file (PEM/DER).
WIFI_CA_CERT=""# File path to client certificate file (PEM/DER).
WIFI_CLIENT_CERT=""# Identity string for EAP.
WIFI_IDENTITY=""# Anonymous identity string for EAP.
WIFI_ANONYMOUS_IDENTITY=""# Inner authentication parameters: "", "PAP", "MSCHAP", "MSCHAPV2", "GTC".
WIFI_PHASE2=""Posted 7 years ago # -
Slitaz network.sh can only configure/enable one interface.
Using wired INTERFACE then WIFI="no"
Using wireless WIFI_INTERFACE then WIFI="yes"
Since WIFI="yes" in /etc/network.conf is required to enable wifi adapter( WIFI_INTERFACE).
Preconfigured wifi enabled on boot requires WIFI="yes"
Applies to slitaz 2,3,4,5Posted 7 years ago # -
mojo > Slitaz network.sh can only configure/enable one interface.
is that a bug or a feature?
Posted 7 years ago # -
The one adapter configuration is a feature. Different network configurations can be loaded on network.sh restart to quickly switch between installed adapters or connect to access points with different login credentials.
http://doc.slitaz.org/en:guides:network-scriptThe internet sharing tutorial shows how to add a second ethernet adapter.
http://forum.slitaz.org/topic/internet-connection-sharing/page/2#post-1335Posted 7 years ago # -
This issue is with my Panasonic Toughbook CF-28 (P3 800mhz 248 Mb ram). It was installed via network boot floppy as there is no cd drive on this. The ethernet connection I did nothing. It just connected from the boot floppy. The wifi is via a MSI PCMCIA WiFi adaptor which uses an rtl chipset. I dont recall exactly what I did to connect via wifi but it was nothing special other than configuring the wifi key and encryption type. I alway connect via wifi. To start it I have to go to applications/system tools/wifi configeration. Root password then highlight my wifi connection and click start. It then connects although sometimes it asks again for the wifi key which I know by heart so its not a big problem just a bit annoying. Today it connected on boot without any input from me but this is a first.
Here is my network conf# /etc/network.conf: SliTaz system wide networking configuration.
# Config file used by: /etc/init.d/network.sh
## Set default interface.
INTERFACE="eth0"# Dynamic IP address.
# Enable/disable DHCP client at boot time.
DHCP="yes"# Static IP address.
# Enable/disable static IP at boot time.
STATIC="no"# Set IP address and netmask for a static IP.
IP="192.168.0.6"
NETMASK="255.255.255.0"# Set route gateway for a static IP.
GATEWAY="192.168.0.1"# Set DNS server for a static IP.
DNS_SERVER="192.168.0.1"# Wifi connection.
# Enable/disable wireless connection at boot time.
WIFI="yes"# Wifi interface (iwconfig) and ESSID.
WIFI_INTERFACE="wlan0"
WIFI_ESSID="NETGEAR"
WIFI_MODE="managed"
WIFI_KEY="xxxxxxxxx"
WIFI_KEY_TYPE="WPA"
WPA_DRIVER=""
WIFI_CHANNEL=""
WIFI_IWCONFIG_ARGS=""I have edited my network key with xxxx in this post but it is shown in full and correctly in the conf file.
Do I have to change the default connection to wifi rather than eth0.Thanks
Posted 7 years ago # -
@terrybull
Your network.conf is correct.
INTERFACE="eth0" is correct.
Check if you have no internet connection on boot:
Error messages in dmesg or /var/log/messages concerning wlan0 interface or wpa_supplicant not associating with NETGEAR access point.Posted 7 years ago # -
I have just booted it now and again had to start the wifi and put in my nework key.
This is a copy of the boot log. Seems to be relivent although I dont understand it?Processing /etc/init.d/rcS...
Mounting proc filesystem...[70G[ [1;32mOK[0;39m ]
Checking filesystem on : /dev/hda1
/dev/hda1: clean, 22489/1802240 files, 657265/7198720 blocks
Remounting rootfs read/write...
Starting udev daemon...
Udevadm requesting events from the Kernel...
Udevadm waiting for the event queue to finish...
Using Udev for hotplugging...
Mounting filesystems in fstab...
Searching for early boot options...[70G[ [1;32mOK[0;39m ]
Cleaning up the system...[70G[ [1;32mOK[0;39m ]
Setting up tmp X11 and ICE unix dir...[70G[ [1;32mOK[0;39m ]
Mounting /proc/bus/usb filesystem...[70G[ [1;32mOK[0;39m ]
Starting system log deamon: syslogd...[70G[ [1;32mOK[0;39m ]
Starting kernel log daemon: klogd...[70G[ [1;32mOK[0;39m ]
Requesting events from the Kernel...[70G[ [1;32mOK[0;39m ]
Executing all initialization scripts...
Parsing kernel cmdline for SliTaz live options...
Swap memory detected on: /dev/hda5
Activating swap memory...
Setting hostname...[70G[ [1;32mOK[0;39m ]
Configuring loopback...[70G[ [1;32mOK[0;39m ]
wlan0 is not a wifi interface, changing it.
Configuring ...lo no wireless extensions.eth0 no wireless extensions.
dummy0 no wireless extensions.
iwconfig: unknown command "on"
[70G[ [1;32mOK[0;39m ]
Starting wpa_supplicant for WPA-PSK...
wpa_supplicant: option requires an argument -- 'i'
wpa_supplicant v0.7.3
Copyright (c) 2003-2010, Jouni Malinen <j@w1.fi> and contributorsThis program is free software. You can distribute it and/or modify it
under the terms of the GNU General Public License version 2.Alternatively, this software may be distributed under the terms of the
BSD license. See README and COPYING for more details.This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/)usage:
wpa_supplicant [-BddhKLqqstuvW] [-P<pid file>] [-g<global ctrl>] \
-i<ifname> -c<config file> [-C<ctrl>] [-D<driver>] [-p<driver_param>] \
[-b<br_ifname>] [-f<debug file>] \
[-o<override driver>] [-O<override ctrl>] \
[-N -i<ifname> -c<conf> [-C<ctrl>] [-D<driver>] \
[-p<driver_param>] [-b<br_ifname>] ...]drivers:
wext = Linux wireless extensions (generic)
hostap = Host AP driver (Intersil Prism2/2.5/3)
atmel = ATMEL AT76C5XXx (USB, PCMCIA)
wired = Wired Ethernet driver
options:
-b = optional bridge interface name
-B = run daemon in the background
-c = Configuration file
-C = ctrl_interface parameter (only used if -c is not)
-i = interface name
-d = increase debugging verbosity (-dd even more)
-D = driver name (can be multiple drivers: nl80211,wext)
-g = global ctrl_interface
-K = include keys (passwords, etc.) in debug output
-t = include timestamp in debug messages
-h = show this help text
-L = show license (GPL and BSD)
-o = override driver parameter for new interfaces
-O = override ctrl_interface parameter for new interfaces
-p = driver parameters
-P = PID file
-q = decrease debugging verbosity (-qq even less)
-v = show version
-W = wait for a control interface monitor before starting
-N = start describing new interface
example:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
Starting udhcpc client on: ...
udhcpc: SIOCGIFINDEX: No such device
Restoring last alsa configuration...[70G[ [1;32mOK[0;39m ]
Starting TazPanel web server on port 82...[70G[ [1;32mOK[0;39m ]
Checking if /etc/locale.conf exists...
Locale configuration: en_GB[70G[ [1;32mOK[0;39m ]
Keymap configuration: uk
Loading /usr/share/kbd/keymaps/i386/qwerty/uk.map.gz
Starting local startup commands...
Starting all daemons specified in /etc/rcS.conf...
Starting message bus daemon: DBUS... [70G[ [1;32mOK[0;39m ]
Starting Hardware Abstraction Layer: HAL... [70G[ [1;32mOK[0;39m ]
Starting slim login manager: Slim... [70G[ [1;32mOK[0;39m ]
Setting up kernel security rules... [70G[ [1;32mOK[0;39m ]
Iptables rules are disabled in: /etc/firewall.conf...
Starting httpd deamon: httpd... [70G[ [1;32mOK[0;39m ][3g H H H H H H H H H
c]R
[1mWelcome to your box.[0m
SliTaz boot time: 16sPosted 7 years ago # -
@terrybull
The boot.log indicates there is no wifi interface available when network.sh attempts to start wpa_supplicant. The cardbus could be a bottleneck that slows down the initialization of the network interface. Check for cardbus or network interface errors in /var/log/messages and dmesg.Posted 7 years ago # -
Appologese for the long post but this doesn't mean a thing to me. Boot this morning and again I had to start the wifi manually and got asked nor the wifi key.
Copy of /var/log/messages
and this is dmesgThanks
Posted 7 years ago #
Reply »
You must log in to post.