You are not logged in.
Pages: 1
Hello and bonjour, Slitaz forum members!
Hello especially to the experts here who kindly come to the aid of confused Linux beginners like myself and endure our boring and foolish questions. (I'm hoping that one of these long-suffering experts, namely Mojo, will reply to this post. Ceel gave me the reference.)
Only yesterday, after much sweaty labor and not a few tears, I succeeded finally in installing a bootable version of Slitaz on a USB stick. My ordeal can be followed on the thread "Yet another tazusb question" (although I really don't think anyone would want to follow it, it just isn't that amusing).
Imagine my chagrin, though, after believing I had escaped at long last from the clutches of Mr. Gates, to find myself obliged to send this post from behind barred Windows because I, like so many before me, am stumped by the Slitaz wireless configuration and have to revert to MS to access this forum. Ce n'est pas rigolo, je vous assure. But I know that Mojo or another good soul will take pity on me and come to my rescue so that this need not continue..
Now, to the facts of the case. I have Slitaz 3.0 on a 1Gb FAT32 partition of a 4Gb usb stick, which I plug into my Asus EeePC1000HA netbook (Intel Atom N270 CPU), which came with an Atheros AR5007EG Wireless Network Adapter.
No hard disk install. Nor do I intend to do one. pendrive=freedom.
Why Slitaz 3? Because Slitaz 4 doesn't come in a hybrid iso (or so I was told by someone in this forum).
Now, just so nobody says "Did you look for an answer in the forum?", I swear I have done my duty and searched for posts that might help me with Slitaz wireless. None was pertinent to my specific situation.
However, I did acquire useful information from them, for example what terminal commands to use - lspci and lsusb - to get the data that folks might need in order to help me, as well as a rundown on what's in the network.conf file (which, in all honesty, I never heard of before in my life <grin>).
I'll print the results below after shutting down, going back to Slitaz, and coming back (Oy!)
But first, here's what I found out while trying to get online in Slitaz at first boot:
-- I was able to get Netbox to list wlan0.
-- Ath5k is auto-detected as "loaded kernel module".
-- Wireless Manager scans and detects all my usual wi-fi signals and lists their properties, like encryption, correctly.
-- Nevertheless, I cannot connect to any of them.
Coupla newbie-type comments:
-- Shouldn't Slitaz be loading wlan0 and scanning during the boot? (I think I saw that as part of the boot process.)
-- I don't believe that Netbox (or whatever) is applying DHCP to wlan0. This is just a gut feeling and probably should be ignored <grin>.
I'll go do lspci and lsusb and make a copy of network.conf, and be right back. . .
. . . I'm back. Ran lspci in the terminal (where else, right?) with that cool ">" redirection to a file "lspci.txt" (learned this from reading forum posts), which I then copied to my desktop in sda1 (more about this below). The only relevant data I could see was:
01:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR5001 Wireless Network Adapter [168c:001c] (rev 01)
03:00.0 Ethernet controller [0200]: Attansic Technology Corp. Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller [1969:1026] (rev b0)
No lsusb data. Probably because no usbutils (?). Lack of this data provoked the appearance of a dialogue window that offered to look for usbutils (or whatever it's called). That in turn brought up the Tazhw window, which said it was searching. Well, it kept on searching. And searching. It never caught on to the fact that I didn't have an Internet connection, so it hung. (Has someone fixed this bug in Slitaz 4?)
I started to get a little huffy after about fifteen minutes of Tazhw searching pointlessly, so I brought up a terminal and wrote the first thing that came to mind, which I think was "su, root, kill Tazhw". That scared it away, by golly!
Here's 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="no"
# Wifi interface (iwconfig) and ESSID.
WIFI_INTERFACE="wlan0"
WIFI_ESSID="any"
WIFI_MODE="managed"
WIFI_KEY=""
WIFI_KEY_TYPE="none"
WPA_DRIVER=""
WIFI_CHANNEL=""
WIFI_IWCONFIG_ARGS=""
--------------------------------------------------------------------------------------------------------
That's all the data I was able to collect. However, I feel obliged to mention a few irritating bugs that came my way (besides Tazhw searching for a package without an Internet connection, as mentioned above). I realize that I am using Slitaz 3 and not the latest version, but I'll mention them anyway as they are not inconsequential:
1) "Find Files" in PCman does not work. It returned nothing for File Name "network.conf" in Places to Search "/etc", which is where I found it. (Yes, I know that "cat /etc/network.conf" would probably have caught the file.)
2) The buttons at the bottom of the Mountbox dialogue window do not work properly. Only the dialogue window you get when you double-click on a device listed in Mountbox provides a working mount-unmount dialogue. (see below).
3) Although the c: partition on my hard disk drive (sda1) is mounted, apparently as part of the boot process, I am unable to access my Windows desktop (c:\Documents and Settings\Mike\Desktop). Using PCman I can get to that directory, but there is nothing in it, whereas it is actually where all my important files are kept. All other sub-directories in sda1 are accessible. Not Desktop.
I wanted to copy the file I made in Slitaz of lspci, as well as network.conf, to my Desktop in c: so that I could print them here, and this bug was a problem for me. I was fortunately able to solve it by unmounting sda1 and re-mounting it in /home/tux instead of /media/disk. Then I had access to Desktop in c:. I further experimented by unmounting it again (after copying the files over), and re-mounting it in /media again after recreating a /disk directory there. That worked, too.
This is all very problematic and I hope it has been fixed in Slitaz 4. If I can't acccess my important files on sda1 I am in trouble. There's no time to unmount and remount every time I need a file there. Nor to attempt to work with them in a terminal.
One last comment about this: Should any partitions of the hard disk be mounted by default? Isn't that rather unusual? I suppose it was put into the boot process with the idea of being user-friendly, but it may not be such a good idea, do you think? It certainly made a lot of trouble for me.
Enough said about bugs in Slitaz 3. Veux pas qu'on se fâche avec moi.
I hope that Mojo or someone else will help me straighten out my wireless problem. I want to get online in Slitaz ASAP.
Maybe the best thing for me to do is make a new usb installation, this time of Slitaz 4?
Cheers!
Mike
Offline
Hi Mike7
Boot your PC from Slitaz 3.0 (temporarily).
I suppose you have an usb key, formated as ext3 ; plug this key in.
If you type #fdisk -l you'll see
-> your hard drive hda
-> your key as sda
I suppose you have the package syslinux installed and slitaz-4.0.iso downloaded. Just type :
#isohybrid slitaz-4.0.iso
#dd if=/path/slitaz-4.0.iso of=/dev/sda
Now reboot on the usb key, install Slitaz then #wifibox
I already tried that and it's works perfectly.
Don't forget : you have to choice between either eth0 or wlan0 , not the both.
I hope this fews tricks will be useful for you.
Offline
Hi, Yves.
I appreciate your reply, but I'm afraid I can't follow you at all.
No, I don't have a usb key formatted in ext3. I guess I could make one if Gparted in Slitaz 3 works.
What "package that syslinux installed" are you talking about? Do you mean the syslinux that was put on my Slitaz 3 stick by the usb installer I ran in Windows? Is that in order to have the isohybrid application available? I thought the isohybrid application came as part of Linux. Am I wrong?
How can I download Slitaz 4 to a local Slitaz 3 directory when Slitaz 3 can't connect to the Internet?
As to using isohybrid and dd, that procedure has never worked for me and I have tried it maybe ten times with various versions of Linux. There's a lengthy discussion of the isohybrid/dd method for usb stick installations in my first thread.
When you say "Now reboot on the usb key", do you mean the new one with Slitaz 4 on it or the one I have now, with Slitaz 3? Since you say "reboot" this is unclear.
And what do you mean by "install Slitaz then #wifibox"? Install to where? I think I explained clearly in my post that I am running Linux from usb sticks, not my hard drive. So, "install" to where?
Like I said, Yves, I appreciate your wanting to help. I know you mean well. But you are just confusing me more.
Please, Mojo, will you come to my aid when you have a minute?
Cheers!
Offline
Unable to access my Windows desktop:
In pcmanfm hit the F4 key,terminal opens in the Desktop directory:
[c]ls[/c]
Do the file/folder contents from Desktop output in terminal you can't see in pcmanfm ?
Install issues:
DD or burning an iso to a flash drive writes the cdrom iso9660 filesystem which is read only. It wipes out the partition,df reports drive as full,same size as iso size regardless of how large the flash drive is. You can't write to the drive,there is no persistence, so it's not an install.
The best solution for formating ext3/installing slitaz to flash drive on windows computer without cdrom drive is frugal install to windows partition: http://doc.slitaz.org/en:guides:frugal
I use 7zip on winxp to extract kernel and rootfs.gz from slitaz 4.0 iso, copy slitaz iso for the install source on C:/ as well. Boot into the slitaz frugal,login root,fdisk -l to get C:/ and flash drive /dev ,mkdir C:/ mount point,mount C:/ to get access to the slitaz iso for install source,,tazusb format /dev/sdX,tazusb gen-iso2usb /path/to/iso /dev/sdX
Wireless:
Open terminal,su, password: root
[c]# leafpad /etc/network.conf[/c]
Change
INTERFACE="eth0"
to
INTERFACE="wlan0"
Change
WIFI="no"
to
WIFI="yes"
leafpad=> File/Save File/Quit
[*]Stop networking
[c]# /etc/init.d/network.sh stop[/c]
[*]List loaded kernel modules
[c]# lsmod[/c]
[*]Unload ath5k if listed
[c]# modprobe -r ath5k[/c]
[*]Install firmware
[c]# tazpkg install[/c] firmware-atheros-20120625.tazpkg
[*]List network devices
[c]# ls /sys/class/net[/c]
[*]Load ath5k
[c]# modprobe ath5k[/c]
[*]Verify wifi device registered (wlan0,ra0,eth1)
[c]# ls /sys/class/net[/c]
[*]Start networking
[c]# /etc/init.d/network.sh start[/c]
[*]Configure network
Red button menu / System Tools / Wireless networks connnections
or
[c]subox wifibox[/c]
Important info:
Slitaz can't associate to hidden networks,the wifi router must broadcast it's name (ESSID).
The network script can only manage one network adapter at a time.
If you fail to configure wifi you will have to reconfigure ethernet before you can use it.
If you can't connect post output:
ls /sys/class/net
iwlist scan
iwconfig
ifconfig
cat /etc/network.conf
Online
Bonjour Mike7,
Just a detail I forgot to mention to you: as you run SliTaz from a Live, you'll have to configure your wifi after each boot...
It exists a way to save your configuration but we'll see that later when your problem will be solved. I let you, you are in good hands.
Offline
Hi, Mojo and Ceel.
My roof is leaking worse than before and it is going to rain this week. Also, I no longer have hot water because my water heater blew up. So it may be a few days before I have a chance to do what Mojo suggests and post a reply.
But I will do it ASAP.
Cheers!
Mike
Offline
Dear Ceel or Mojo-
Before I go any further configuring my Slitaz 3.0 pendrive, can you tell me how to make a copy of it on another pendrive? I just lost my Puppeee Linux pendrive (it will not boot any more), and I would not like the same thing to happen to my Slitaz pendrive, which is now the only working Linux I have.
If I can make the copy in Windows, that would be a lot easier for me.
Thanks!
Mike
Offline
Hello Mike,
Your stick is FAT 32. Copy (or zip) its \boot directory on your HD.
When you'll want to create a new live
[*]copy/unzip the saved \boot on the new pendrive's root
[*]open the terminal of windows and go to the \boot\syslinux of the stick
[*]type [c]syslinux -ma -d \boot\syslinux[/c] x:
x: is the drive's letter windows's given to your stick
It should work.
Offline
Pages: 1
[ Generated in 0.024 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]