-
![Quote](images/misc/quote_icon.png)
Originally Posted by
utu
Heres' my latest. On-line now in 50 seconds.
#!/bin/bash
# /etc/rc.local (mine is root:root and executable)
# other stuff(1)
setwifi () { # see
http://ubuntuforums.org/showthread.php?t=684495
WIFI="eth1"; dhclient -r $WIFI; ifconfig $WIFI up
iwconfig $WIFI essid "(alphanumeric ssid)" key "(hexadecimal wep)" mode "Managed"
nohup dhclient $WIFI; wait >/dev/null 2>&1
aplay -vv /usr/lib/libreoffice/basis3.3/share/gallery/sounds/ok.wav
}
# other stuff(2)
setwifi
# other stuff(3)
exit 0
ATT: knoppix team
Q: How would this script be ammended to my existing 'rc.local' and made 'root:root' & 'executable'?
Code:
#!/bin/bash
#
# rc.local
#
# Start local services after hardware detection
SERVICES="cups"
for i in $SERVICES; do
[ -x /etc/init.d/"$i" ] && /etc/init.d/"$i" start >/dev/null 2>&1
done
exit 0
THX!
luther
-
Senior Member
registered user
Greetings, luther.
I'm using Knoppix 7.2 and just the following in rc.local now:
sudo iwconfig wlan0 txpower 5mW rate 54M key (key code) essid "(essid name)"
Time to browser on-line is 50 seconds, same as when using Win7 on this laptop.
FWIW.
1. sudo is not really necessary as Forester has pointed out.
2. Klaus K has changed the 7.2 boot up process somewhat to improve boot time,
but I'm not aware just where and how.
3. The reduced transmit power was a suggestion of Klaus K's to counter-act
local wifi interference. I don't know if this helps on time to connect
but it seems to improve the frequent disconnect situation here.
4. It's quite likely Network Manager has improved as well since this thread
was initiated.
In answer to you question, I suggest the following:
As root call up leafpad and edit /etc/rc.local
by adding the following line just before the "exit 0" line:
iwconfig (wifi's device name) rate 54M key (router key code) essid "(router essid name)"
If that doesn't improve things, then this might be one more reason
to benefit from upgrading to 7.2.
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
utu
In answer to you question, I suggest the following:
As root call up leafpad and edit /etc/rc.local
by adding the following line just before the "exit 0" line:
iwconfig (wifi's device name) rate 54M key (router key code) essid "(router essid name)"
If that doesn't improve things, then this might be one more reason
to benefit from upgrading to 7.2.
utu,
The line needed to be rooted for the LED to fire, but wasn't able to connect. Therefore, resorted to 'udhcpc' that was installed from synaptic:
Code:
knoppix@Microknoppix:~$ sudo iwconfig wlan0 essid mynetwork
knoppix@Microknoppix:~$ sudo iwconfig wlan0 key 6789abcdef
knoppix@Microknoppix:~$ sudo udhcpc -b -i wlan0 -x hostname:Microknoppix -p /var/run/udhcpc.wlan0.pid
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending select for 192.168.0.14...
Lease of 192.168.0.14 obtained, lease time 86400
/etc/udhcpc/default.script: Resetting default routes
SIOCDELRT: No such process
/etc/udhcpc/default.script: Adding DNS 8.8.4.4
/etc/udhcpc/default.script: Adding DNS 8.8.8.8
knoppix@Microknoppix:~$
'udhcpc' freezes knoppix 7.0.3 on my older hardware, giving credence to this post to your 'old' thread.
'udhcpc' has a '-syslog' switch, but is useless when it causes knoppix to freeze!
luther
PS. 7.0.3 has been an excellent PC repair tool and hate to part w/it!
* posted w/udhcpc & w/nonetworkmanager cheatcode
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
luther
The line needed to be rooted for the LED to fire, but wasn't able to connect. Therefore, resorted to 'udhcpc' that was installed from synaptic:
I didn't make it clear that in Knoppix 7.2, I've gone back to using Network Manager.
I now use only the line I quoted earlier to boot my system.
You are quite right that the line itself must be issued by root.
This is, or may be, done by /etc/rc.local which has root:root ownership.
The programs you like in 7.03 may be available in 7.2 as well.
I'll take a look at my Synaptic to see if that's so, if you'll name it (or them).
Last edited by utu; 01-29-2014 at 10:40 PM.
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
utu
The programs you like in 7.03 may be available in 7.2 as well.
I'll take a look at my Synaptic to see if that's so, if you'll name it (or them).
utu,
Give this synaptic front end app a try and see if 7.2 is compatible with ALL its features:
.
7.03 had a few problems with it.
e.g., 4gig persistance.
luther
-
Senior Member
registered user
I note that my version of Synaptic, without being
itself upgraded from the initial 7.2 values,
indicates software-center 5.1.2debian3.1 Utility
is available for download.
I have no experience with using software-center
and no current motivation to use it. Perhaps you
can tell me what it's good-for.
I use reiserfs persistence, but have no current need
for 4 G's of it.
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
utu
I have no experience with using software-center
and no current motivation to use it. Perhaps you
can tell me what it's good-for.
software-center is where Update Manager resides. It's a memory hog and if it's not wise to update knoppix iso's, shouldn't it be blacklisted?
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
luther
software-center is where Update Manager resides. It's a memory hog and if it's not wise to update knoppix iso's, shouldn't it be blacklisted?
Greetings again, luther.
You've obviously got the right idea about (not) trying to upgrade Knoppix this way.
Blacklisting software-center might be in order on this principle, but
perhaps a little heavy-handed for some of the more experienced Knoppixers,
who know how to handle the 'dependencey hell' aspect which may arise.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Intel Core i5-10505 3.20 GHz Socket FCLGA1200 Hexa-Core Processor SRH38 #95 picture](/store/img/g/02EAAOSwTGNmedmM/s-l225/Intel-Core-i5-10505-3-20-GHz-Socket-FCLGA1200-Hexa.jpg)
Intel Core i5-10505 3.20 GHz Socket FCLGA1200 Hexa-Core Processor SRH38 #95
$88.00
![Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc... picture](/store/img/g/YFUAAOSwTDplMDa3/s-l225/Intel-Core-i9-14900K-14th-Gen-24-Core-32-Thread-4-.jpg)
Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc...
$533.99
![AMD Ryzen 7 7800X3D Processor (5 GHz, 8 Cores, Socket AM5), New /Sealed picture](/store/img/g/oVIAAOSw0tpmdfut/s-l225/AMD-Ryzen-7-7800X3D-Processor-5-GHz-8-Cores-Socket.jpg)
AMD Ryzen 7 7800X3D Processor (5 GHz, 8 Cores, Socket AM5), New /Sealed
$309.99
![Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc... picture](/store/img/g/0eYAAOSwcHZlMDWu/s-l225/Intel-Core-i7-14700K-14th-Gen-20-Core-28-Thread-4-.jpg)
Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc...
$373.99
![10th GEN INTEL Core i5-10400F 2.9GHz Socket-1200 Desktop CPU SRH3D Processor picture](/store/img/g/dPgAAOSwrWxmeHzS/s-l225/10th-GEN-INTEL-Core-i5-10400F-2-9GHz-Socket-1200-D.jpg)
10th GEN INTEL Core i5-10400F 2.9GHz Socket-1200 Desktop CPU SRH3D Processor
$69.99
![Intel i7-3770 SR0PK 3.40GHz 8MB 4-Core LGA1155 Socket CPU Processor picture](/store/img/g/SN4AAOSwxIRmWRvk/s-l225/Intel-i7-3770-SR0PK-3-40GHz-8MB-4-Core-LGA1155-Soc.jpg)
Intel i7-3770 SR0PK 3.40GHz 8MB 4-Core LGA1155 Socket CPU Processor
$29.99
![Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc... picture](/store/img/g/2f8AAOSw7ltlMDW2/s-l225/Intel-Core-i5-14600K-14th-Gen-14-Core-20-Thread-4-.jpg)
Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc...
$305.99
![Intel Core i7-4790 3.60Ghz 8MB Quad Core Socket 1150 Desktop Processor picture](/store/img/g/8PoAAOSwCPRasuy-/s-l225/Intel-Core-i7-4790-3-60Ghz-8MB-Quad-Core-Socket-11.jpg)
Intel Core i7-4790 3.60Ghz 8MB Quad Core Socket 1150 Desktop Processor
$33.99
![Intel® Core™ i7-13700F 16-Core Desktop Processor picture](/store/img/g/vR4AAOSwBrRmXfBm/s-l225/Intel-Core-i7-13700F-16-Core-Desktop-Processor.jpg)
Intel® Core™ i7-13700F 16-Core Desktop Processor
$260.00
![Intel Pentium 4 Extreme Edition 3.73 GHz SL7Z4 LGA775 Processor Prescott picture](/store/img/g/TbQAAOSwmOhmcjiz/s-l225/Intel-Pentium-4-Extreme-Edition-3-73-GHz-SL7Z4-LGA.jpg)
Intel Pentium 4 Extreme Edition 3.73 GHz SL7Z4 LGA775 Processor Prescott
$533.11