Puppy as a wifi access point - OLD !!
ok tempestuous now we have to make it so that some thing like this free app can be used on the wifi
http://ardrone.parrot.com/parrot-ar-dro ... or-android
here is the plane that it flys
http://shop.singahobby.com/?q=node/26668
for now just something that responds via wifi from puppy is the goal not necessarily a flying thing, some thing simple like an off /on switch on an appliance would be an achievement.
http://ardrone.parrot.com/parrot-ar-dro ... or-android
here is the plane that it flys
http://shop.singahobby.com/?q=node/26668
for now just something that responds via wifi from puppy is the goal not necessarily a flying thing, some thing simple like an off /on switch on an appliance would be an achievement.
Last edited by aarf on Sat 17 Sep 2011, 23:42, edited 3 times in total.
i think this wifi interaction capability is kernel dependent. which kernels i don't know.
i think just need something like this
http://shop.singahobby.com/?q=node/27183
and this http://shop.singahobby.com/?q=node/27530 to start playing. (plus a lot of knowledge which can be acquired for free.)
i think just need something like this
http://shop.singahobby.com/?q=node/27183
and this http://shop.singahobby.com/?q=node/27530 to start playing. (plus a lot of knowledge which can be acquired for free.)
-
- Posts: 5464
- Joined: Fri 10 Jun 2005, 05:12
- Location: Australia
That's interesting, but it bears no relevance to wifi hotspots.aarf wrote:ok tempestuous now we have to make it so that some thing like this free app can be used on the wifi
http://ardrone.parrot.com/parrot-ar-dro ... or-android
Well "interaction" can mean many things. In terms of communication method, that's easy; it's ad-hoc wifi, as explained here -aarf wrote:i think this wifi interaction capability is kernel dependent.
http://ardrone.parrot.com/parrot-ar-dro ... ns-answers
And ad-hoc wifi is quite easy in Linux, howto here -
http://www.murga-linux.com/puppy/viewto ... 929#159929
But in terms of porting the AR.FreeFlight application to Linux, wow, that would take some effort, especially in terms of reading all the motion and camera data, then displaying it on the Linux X server.
What about just keeping a focus on how people can communicate in case the internet is shit down by our great leaders?
This is a aspect no one really discuss here.
So I am back to my Joomla stuff again. If internet is shut down. Can one somehow use such a technology as discussed here to build local Wifi net in cities etc?
Any views on this?
The thing is... If this Hostap was integrated so that a maximum number of cards and technologies was covered(maybe a multiboot CD with the 3 linux Wifi drivers represented) and it was set up as a system where you SPREAD the technology, so that people can log on to your APs server and download Puppy with the HostAP, so that they can "extend" the range of the network? In such a Puppy the Joomla(or any other technology) could have a lot of "howto's) on WifFi antennas and tricks to extend the range of your Wifi etc.
Call it "WarPup" or whatever:-)
This is a aspect no one really discuss here.
So I am back to my Joomla stuff again. If internet is shut down. Can one somehow use such a technology as discussed here to build local Wifi net in cities etc?
Any views on this?
The thing is... If this Hostap was integrated so that a maximum number of cards and technologies was covered(maybe a multiboot CD with the 3 linux Wifi drivers represented) and it was set up as a system where you SPREAD the technology, so that people can log on to your APs server and download Puppy with the HostAP, so that they can "extend" the range of the network? In such a Puppy the Joomla(or any other technology) could have a lot of "howto's) on WifFi antennas and tricks to extend the range of your Wifi etc.
Call it "WarPup" or whatever:-)
tempestuous
see this thread, for similar possibilities, with mesh networking, where bridging is/can be used
http://www.murga-linux.com/puppy/viewto ... 1&start=30
also http://wiki.freifunk.net/Hauptseite
Aitch
see this thread, for similar possibilities, with mesh networking, where bridging is/can be used
http://www.murga-linux.com/puppy/viewto ... 1&start=30
also http://wiki.freifunk.net/Hauptseite
Aitch
How about making a "proof of concept" Live CD, whereas the objective is to be able to boot from a live CD and your Wlan turns into a AP and the content is RapNews???
Anyone in for that? I can try to make the Puppy wished for by the one that can do the teckie stuff related to Wlan decides, and have a LHMP enabled Puppy XXX tanked up with LHMP and the RapNews content. They are scheduled to release a new broadcast this week about Kony 2012 and they have a large group of fans that would love such a item to broadcast locally at their school or neighborhood.
Just as a proof of concept if one could make "instant broadcast Puppy"
Anyone in for that? I can try to make the Puppy wished for by the one that can do the teckie stuff related to Wlan decides, and have a LHMP enabled Puppy XXX tanked up with LHMP and the RapNews content. They are scheduled to release a new broadcast this week about Kony 2012 and they have a large group of fans that would love such a item to broadcast locally at their school or neighborhood.
Just as a proof of concept if one could make "instant broadcast Puppy"
Will the instructions in this post still work in 5.3?
I didn't find a follow-up post in searching the site -- were the changes between 5.2 and 5.3 enough that I shouldn't expect the instructions and attached dotpet files to work any longer?
cross reference to shareinternet.pet
http://www.murga-linux.com/puppy/viewtopic.php?t=37520
http://www.murga-linux.com/puppy/viewtopic.php?t=37520
French translation being deleted after test in use
INSTRUCTIONS:
i) Installez les pets hostapd et bridge-utils.
ii) Installez aussi un des pets madwifi si vous avez un Atheros AR512x wifi device (PCI or PCMCIA), et rebootez.
Définissez :
- Comment allez-vous appeler votre point d’accès - ce sera le SSID.
- si vous voulez un cryptage WPA or WPA2 , ou pas de cryptage.
- Si Cryptage, quelle passphrase. Il vous faudra convertir l’ASCII passphrase choisie dans sa valeur hexadécimale 64 digit avec la commande -
Code:
wpa_passphrase <ssid> <passphrase>
Tous ces paramètres doivent être enregistrés dans /etc/hostapd.conf
J’ai pre-configuré un SSID "Puppy_Hotspot", avec WPA2 encryption, avec la PSK passphrase "woof1234".
Vous n’aurez rien à changer si vous utilisez ma configuration
Regardez toutefois /etc/hostapd.conf dans Geany juste pour voir de quoi je parle. J’ai commenté le PSK password (woof1234) et utilisé la valeur hexadécimale de la passphrase, calculée comme expliqué plus haut.
Notez la valeur de WPA2 encryption: "wpa_pairwise=CCMP"
Pour utiliser la vieille valeur WPA encryption, tapez : "wpa_pairwise=TKIP"
Si vous ne voulez pas de cryptage, tapez "wpa=0"
For the hostap_pci/hostap_cs drivers, changez "interface=ath0" en "interface=wlan0", et changez "driver=madwifi" en "driver=hostap", et changez "hw_mode=g" en "hw_mode=b".
Connectez maintenant votre ethernet interface to some form of modem/router. Ce sera la internet connection que vous partagerez via votre wifi interface.
Si vous aviez configuré votre ethernet interface avec Puppy's Network Wizard, il faut éliminer la configuration :
Code:
ifconfig eth0 down
Vous devez éliminer le dhcpcd daemon - TRES IMPORTANT.
Dans le Menu > System > System Status and Config > Pprocess process manager, vous devriez trouver "dhcpcd -d -l eth0"
Selectionnez-le, et cliquez "End process"
Otez le fichier stale dhcpcd run avec cette commande -
Code:
rm -f /var/run/dhcpcd-eth0.*
Changez votremode wifi driver "Station/Managed" mode en "AP/Master" mode -
Code:
ifconfig ath0 down
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode ap
Pour les hostap_pci/hostap_cs drivers, faire
ifconfig wlan0 down
iwconfig wlan0 mode Master
Ensuite bridgez your ethernet interface sur votre wifi interface :
Code:
ifconfig eth0 0.0.0.0 up
ifconfig ath0 0.0.0.0 up
modprobe bridge
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 ath0
Pour les hostap_pci/hostap_cs drivers, changez "ath0" en "wlan0".
Votre Puppy computer est reconnu sur le LAN par sa bridged interface: br0.
En theory donner une IP address à votre Puppy computer pour sa bridged interface n’est pas obligé mais en practique c’est essentiel. Faites ceci :
Code:
rm -f /var/run/dhcpcd-br0.*
dhcpcd -t 30 -h puppypc -d br0
I found that this may take 15 seconds or so! dhcpcd seems to struggle with a "br0" interface.
Various code will run by, and eventually you should see "...forking to background".
Vous voilà prêts à lancer le hostapd daemon
Code:
hostapd /etc/hostapd.conf -dd
Les deux dernières lignes que vous verrez seront :
"ath0: Setup of interface done.
l2_packet_receive - recvfrom: Network is down"
Ne vous affolez pas, c’est réussi.
Tout wifi client pourra se connecter à votre Puppy access point.
Bonne nouvelle j’ai créé un script dans /usr/bin appelé "Wifi-AP-launch.sh"
Obviously you can run this script from an rxvt terminal, but better still, I have created a desktop launch-script called "Wifi-AP-launch". With ROX, go to /usr/bin and drag the icon for "Wifi-AP-launch" (not Wifi-AP-launch.sh") onto the desktop. This is ready to go, but it has a generic icon. To give it a nice icon, right-click it, select File 'Wifi-AP-launch' > Set Icon...
and this will present a window. Use ROX to drag /usr/local/lib/X11/pixmaps/Wifi-AP-48.png into the window.
Done!
UPDATE: just because your Puppy computer is now a wifi Access Point, don't assume it's acting as a router ... it's not. See my later post about router/server/network considerations -
http://www.murga-linux.com/puppy/viewto ... 738#551738
i) Installez les pets hostapd et bridge-utils.
ii) Installez aussi un des pets madwifi si vous avez un Atheros AR512x wifi device (PCI or PCMCIA), et rebootez.
Définissez :
- Comment allez-vous appeler votre point d’accès - ce sera le SSID.
- si vous voulez un cryptage WPA or WPA2 , ou pas de cryptage.
- Si Cryptage, quelle passphrase. Il vous faudra convertir l’ASCII passphrase choisie dans sa valeur hexadécimale 64 digit avec la commande -
Code:
wpa_passphrase <ssid> <passphrase>
Tous ces paramètres doivent être enregistrés dans /etc/hostapd.conf
J’ai pre-configuré un SSID "Puppy_Hotspot", avec WPA2 encryption, avec la PSK passphrase "woof1234".
Vous n’aurez rien à changer si vous utilisez ma configuration
Regardez toutefois /etc/hostapd.conf dans Geany juste pour voir de quoi je parle. J’ai commenté le PSK password (woof1234) et utilisé la valeur hexadécimale de la passphrase, calculée comme expliqué plus haut.
Notez la valeur de WPA2 encryption: "wpa_pairwise=CCMP"
Pour utiliser la vieille valeur WPA encryption, tapez : "wpa_pairwise=TKIP"
Si vous ne voulez pas de cryptage, tapez "wpa=0"
For the hostap_pci/hostap_cs drivers, changez "interface=ath0" en "interface=wlan0", et changez "driver=madwifi" en "driver=hostap", et changez "hw_mode=g" en "hw_mode=b".
Connectez maintenant votre ethernet interface to some form of modem/router. Ce sera la internet connection que vous partagerez via votre wifi interface.
Si vous aviez configuré votre ethernet interface avec Puppy's Network Wizard, il faut éliminer la configuration :
Code:
ifconfig eth0 down
Vous devez éliminer le dhcpcd daemon - TRES IMPORTANT.
Dans le Menu > System > System Status and Config > Pprocess process manager, vous devriez trouver "dhcpcd -d -l eth0"
Selectionnez-le, et cliquez "End process"
Otez le fichier stale dhcpcd run avec cette commande -
Code:
rm -f /var/run/dhcpcd-eth0.*
Changez votremode wifi driver "Station/Managed" mode en "AP/Master" mode -
Code:
ifconfig ath0 down
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode ap
Pour les hostap_pci/hostap_cs drivers, faire
ifconfig wlan0 down
iwconfig wlan0 mode Master
Ensuite bridgez your ethernet interface sur votre wifi interface :
Code:
ifconfig eth0 0.0.0.0 up
ifconfig ath0 0.0.0.0 up
modprobe bridge
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 ath0
Pour les hostap_pci/hostap_cs drivers, changez "ath0" en "wlan0".
Votre Puppy computer est reconnu sur le LAN par sa bridged interface: br0.
En theory donner une IP address à votre Puppy computer pour sa bridged interface n’est pas obligé mais en practique c’est essentiel. Faites ceci :
Code:
rm -f /var/run/dhcpcd-br0.*
dhcpcd -t 30 -h puppypc -d br0
I found that this may take 15 seconds or so! dhcpcd seems to struggle with a "br0" interface.
Various code will run by, and eventually you should see "...forking to background".
Vous voilà prêts à lancer le hostapd daemon
Code:
hostapd /etc/hostapd.conf -dd
Les deux dernières lignes que vous verrez seront :
"ath0: Setup of interface done.
l2_packet_receive - recvfrom: Network is down"
Ne vous affolez pas, c’est réussi.
Tout wifi client pourra se connecter à votre Puppy access point.
Bonne nouvelle j’ai créé un script dans /usr/bin appelé "Wifi-AP-launch.sh"
Obviously you can run this script from an rxvt terminal, but better still, I have created a desktop launch-script called "Wifi-AP-launch". With ROX, go to /usr/bin and drag the icon for "Wifi-AP-launch" (not Wifi-AP-launch.sh") onto the desktop. This is ready to go, but it has a generic icon. To give it a nice icon, right-click it, select File 'Wifi-AP-launch' > Set Icon...
and this will present a window. Use ROX to drag /usr/local/lib/X11/pixmaps/Wifi-AP-48.png into the window.
Done!
UPDATE: just because your Puppy computer is now a wifi Access Point, don't assume it's acting as a router ... it's not. See my later post about router/server/network considerations -
http://www.murga-linux.com/puppy/viewto ... 738#551738
Last edited by Pelo on Sun 28 Dec 2014, 19:28, edited 1 time in total.
wlanconfig : command not found
wlanconfig : command not found
should it be "iwconfig"
# hostapd /etc/hostapd.conf -dd
Configuration file: /etc/hostapd.conf
ctrl_interface_group=0
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
Could not enable hostapd mode for interface wlan0
hostap driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
should it be "iwconfig"
# hostapd /etc/hostapd.conf -dd
Configuration file: /etc/hostapd.conf
ctrl_interface_group=0
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
Could not enable hostapd mode for interface wlan0
hostap driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
-
- Posts: 5464
- Joined: Fri 10 Jun 2005, 05:12
- Location: Australia
"wlanconfig" is a wifi configuration utility unique to the old "ath_pci" wifi driver. This driver, and the associated wlanconfig, are no longer contained in modern Puppy versions.Pelo wrote:wlanconfig : command not found
Clearly, a more recent package is required ... and the necessary update is mentioned in the very first post in this thread -
tempestuous wrote:Important Update Feb 2013:
This package updated for Slacko 5.4 here -
http://www.murga-linux.com/puppy/viewtopic.php?t=84269
All wifi drivers are now supported, not just the ath_pci and hostap drivers.