Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 11 Dec 2018, 04:41
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Networking » Wireless
Wifi-TrayNet and Wifi-Scanner
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 7 [94 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Fri 22 Jun 2018, 11:34    Post subject:  

Hi stemsee, looks good, your TODO list.

Quote:
I do not know about yad negative geometry values, except starting at max res and subtracting from that, but that isn't yad that is math. How does yad do it?


Doesn't matter what resolution you have, this works e.g. for top-right corner:
Code:
yad --geometry 200x200-40+40

Or e.g. for bottom-right corner:
Code:
yad --geometry 200x200-40-40


Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2275
Location: In The Way

PostPosted: Fri 22 Jun 2018, 12:10    Post subject:  

fredx181 wrote:
Hi stemsee, looks good, your TODO list.

Quote:
I do not know about yad negative geometry values, except starting at max res and subtracting from that, but that isn't yad that is math. How does yad do it?


Doesn't matter what resolution you have, this works e.g. for top-right corner:
Code:
yad --geometry 200x200-40+40

Or e.g. for bottom-right corner:
Code:
yad --geometry 200x200-40-40


Fred

Ok, thanks ... got it! That would have saved me some time had I known it before! At least I can use it to assign geometry defaults to start with.

cheers
stemsee
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2275
Location: In The Way

PostPosted: Fri 22 Jun 2018, 19:59    Post subject:  

I figured out a better way to find wireless cards, so no need to show all interfaces when given option to select. When only one card found option to select does not show.
Code:
for i in `ls /sys/class/net`; do yes=`ls /sys/class/net/$i | grep wireless`; [[ "$yes" ]] && echo "$i" >>/tmp/int; done


Geometry is off by default, and this line of code adds a default geometry
Code:
mkdir -p $HOME/.wifi-connect/geometry
for i in Accept~Connection AP-Selector Configuration-n-Connection Connect! Disconnect-Interface \
Interface-Selection IP-Info Keep-Connection license-copyright-info Preview Random-Mac-Generator \
Saved-Profiles Setting-AutoConnect Try-Profiles Wifi-Interface-Selection Wifi-IP-Info Wifi-Scanner \
Wifi-Scanner-Multi-Wifi Wifi-TrayNet-Interfaces wlan0 wlan1
do
   touch $HOME/.wifi-connect/geometry/$i
   echo "-40-40" >$HOME/.wifi-connect/geometry/$i
done


Basic instruction file added.

Single instance code adjusted, seems to work here.

Last edited by stemsee on Wed 04 Jul 2018, 04:58; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Sat 23 Jun 2018, 13:19    Post subject:  

Hi stemsee,
Improvement is the instructions dialog, but for me there's still no profile created in /root/.wifi-connect/profiles (did the same as before by only filling in the password at the profile setting dialog), so could not make wifi connection.

Code:
root@live:~# '/usr/sbin/Wifi-TrayNet'
no eth1
no usb0
cat: /root/.wifi-connect/geometry/Instructions: No such file or directory
cat: /tmp/Wifi-TrayNet/exip: No such file or directory
cat: /root/.wifi-connect/geometry/Connect: No such file or directory
sed: -e expression #1, char 3: extra characters after command
cat: '/root/.wifi-connect/static/"UPC44685"': No such file or directory
xvkbd: no process found
chmod: cannot access '/tmp/Wifi-TrayNet/netsel': No such file or directory
cp: cannot stat '/tmp/Wifi-TrayNet/netsel': No such file or directory
Successfully initialized wpa_supplicant
Failed to open config file '/tmp/qrc', error: No such file or directory
Failed to read or parse configuration '/tmp/qrc'.


EDIT: Now first time start runs OK, but second time (after quit) doesn't:
Code:
root@live:~# '/usr/sbin/Wifi-TrayNet'
bash: cleanfinish: command not found
/tmp/traynetm: line 3: kill: (5610) - No such process
root@live:~# Wifi-TrayNet: no process found

There it hangs, after ctlr+c, then running Wifi-TrayNet again it runs ok.

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2275
Location: In The Way

PostPosted: Sun 24 Jun 2018, 09:42    Post subject:  

So I believe I have corrected the start stop problem and maintained the single instance only requirement. using
Code:
running=`ps -e | grep Wifi-TrayNet | wc -l`
[[ "$running" -gt 2 ]] && exit #check if running, one instance only

function cleanfinish (){
   [[ -f $HOME/.wifi-connect/traynetm ]] && exec $HOME/.wifi-connect/traynetm
   kill -HUP -$$
}:export -f cleanfinish
trap cleanfinish EXIT

task='kill $NOTIF_ICON'
echo "#!/bin/sh
NOTIF_ICON=$NOTIF_ICON
$task
sleep 1 && killall -g -ns -9 Wifi-TrayNet &
sleep 1 && rm -rf $HOME/.wifi-connect/Wifi-TrayNet &
sleep 0.5 && rm -f $HOME/.wifi-connect/traynetm &
" > $HOME/.wifi-connect/traynetm


As regards the problem you say you experience with profile creation please watch these videos made with weX. But the only other possibility I could imagine is that the first time I ran BionicDog I noticed no /tmp in / ... so to maintain that condition I moved all /tmp/Wifi-TrayNet to $HOME/.wifi-connect/Wifi-TrayNet ... even so I could not replicate the failure to create profiles.

https://drive.google.com/open?id=1_d_c4-AI7LIaqKUY_Q9r2Z119gm74TT8

https://drive.google.com/open?id=1QLi_nIB879N8nfDWgmsXiIXFjN1HTbwP
Back to top
View user's profile Send private message MSN Messenger 
stemsee

Joined: 27 Jun 2013
Posts: 2275
Location: In The Way

PostPosted: Sun 24 Jun 2018, 21:31    Post subject:  

update to v3.7
Last edited by stemsee on Wed 04 Jul 2018, 04:58; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Mon 25 Jun 2018, 07:23    Post subject:  

Hi stemsee, tried your latest 3.7 deb but still no profile is made.
I test always from a pristine Bionicdog install, the (older) previous version (as I see that you use that also (nice video's, btw Smile )).
I think I do everything right, first left-click on the icon, wait a while, select my network and then at the profile dialog I only type my password and select busybox udhcpc ....
Output:
Code:
root@live:~# '/usr/sbin/Wifi-TrayNet'
no eth1
no usb0
Warning: Missing charsets in String to FontSet conversion
sed: -e expression #1, char 3: extra characters after command
cat: '/root/.wifi-connect/static/"UPC44685"': No such file or directory
xvkbd: no process found
chmod: cannot access '/root/.wifi-connect/Wifi-TrayNet/netsel': No such file or directory
cp: cannot stat '/root/.wifi-connect/Wifi-TrayNet/netsel': No such file or directory
Successfully initialized wpa_supplicant
Failed to open config file '/tmp/qrc', error: No such file or directory
Failed to read or parse configuration '/tmp/qrc'.

Tried also "Initiate connection" and set the profile again, same result, no profile in /root/.wifi-connect/profiles .

EDIT: Wifi-Scanner works for me, created profile and connection made.
Just to mention: clicking on "Select Wifi Card" does nothing.

Fred

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2275
Location: In The Way

PostPosted: Mon 25 Jun 2018, 10:09    Post subject:  

Hi Fred

So start/stop problem seems resolved satisfactorily for you??

Select Wifi card menu option only works when two or more wireless cards are detected ... your system has only one so that has no effect. To see the wireless card-name being used is in the Configuration-&-Connection gui.

So what could be preventing profile creation for TrayNet but allowing creation for Scanner? and also not even creating netsel, and Scanner also uses netsel. I am baffled, so do you know what it is?

If you have time make a video similar to the one I did.

cheers
stemsee
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Mon 25 Jun 2018, 14:28    Post subject:  

Hi Stemsee,

Quote:
So start/stop problem seems resolved satisfactorily for you??

Yes.
Quote:
Select Wifi card menu option only works when two or more wireless cards are detected ... your system has only one so that has no effect

Ah, of course, you said that earlier.
Quote:
So what could be preventing profile creation for TrayNet but allowing creation for Scanner? and also not even creating netsel, and Scanner also uses netsel. I am baffled, so do you know what it is?
If you have time make a video similar to the one I did.


I have no idea, with one of the earlier versions it worked OK to create profile, apparently you changed something.
I will make video, probably tomorrow.

EDIT: here's video, hopefully you see something wrong I do that explains the problem.
https://drive.google.com/open?id=1UAZ0N7kWkHOvL7PGflZlmjefd_ueSjMK
Otherwise, can you test on BD install without changes saved, just like I do ?

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2275
Location: In The Way

PostPosted: Tue 26 Jun 2018, 07:54    Post subject:  

Hi Fred

I cannot see anything wrong in what you are doing in the video.

I thought I would see a selection including config editor 'geany', because in that case I found I got the same errors you posted. Yesterday I tried without changes and I got the errors too. Today I fixed the error when selecting config editor, and then just now I booted without changes and without installing or uninstalling anything I executed only the script from out of tree on sdb1, and everything worked, except connection, until I copied over hook scripts.

https://drive.google.com/open?id=1JUL_SfkjG5NCHJke2Byh9ql5La-thJ4x

One thing I notice is that you selected dhc editor for 'busybox udhcpc....' that gets priority over the hardcocded argument, but without altering it it makes no difference and is not necessary.

Another thing is that if the same network name is selected in the tray menu then 'tail -fn0 /file' does not respond and does not get the gui opened, this is why it is necessary to 'initiate connection', I guess tail in aploop function, must be re-initialised after each read. (EDIT: fixed by auto sending a dummy AP, which is excluded, to monitored file after real AP selection activates gui)

Also, tried the same script in BionicPup without problems.

So even though on my system there was no obvious problem, yet it seems the priorities of arguments from the gui caused the errors ... so now the final test is to see if the small changes I made work on your system.

So here is only the script ... which you could run out of tree.

Last edited by stemsee on Wed 04 Jul 2018, 04:59; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Tue 26 Jun 2018, 14:15    Post subject:  

Hi stemsee, sorry, your latest script didn't work either.
But I know now, my ssid "UPC44685" is boycotted by Wifi-Traynet !! Evil or Very Mad Crying or Very sad
No, seriously, I think it has to do with wpa, trying other networks (wpa2) will create a profile just fine, and after that when trying my ssid, the profile is created but with the ssid of the previous network inside profile config, oh well...difficult to explain, see video:
https://drive.google.com/open?id=193itrVvreagneJPbUXseG9b8rtZXx6Mc

It's not in the video, but just now I tried creating another profile (from my neighbor from which I know he has also wpa) and it didn't work either, so must be a wpa thing, I guess.

EDIT: I tried some earlier versions and with 3.4 it works ok to create a (wpa) profile, and since you implemented the read-only fields the problem began (3.5).

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2275
Location: In The Way

PostPosted: Tue 26 Jun 2018, 16:47    Post subject:  

Thanks Fred,

So when I implemented the id:RO field I also implemented network type, eap, wpa2, wpa, wep but I didn't want to get too involved with multitude of possibilities.

After creating the profile did it connect? Maybe should only create profile after successful connection!

FYI
http://www.lsi.upc.edu/lclsi/Manuales/wireless/files/wpa_supplicant.conf

What interests me are the unset defaults ... knowing these can reduce the config entries in the network blocks. So probably just need to reconfigure the network block for wpa.

stemsee
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Tue 26 Jun 2018, 17:09    Post subject:  

stemsee wrote:
After creating the profile did it connect?


Not sure what you mean. With the 3.4. version, yes, it did connect.
What you saw on the last screencast was just creating (wpa2) profiles from other networks (not mine) to show that it works for profile creating, but no connection made.

Quote:
Maybe should only create profile after successful connection!

Yes, maybe good, but if it makes things even more complicated, there's again the risk of creating new bugs, I'd say .

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2275
Location: In The Way

PostPosted: Wed 27 Jun 2018, 08:35    Post subject:  

So please run
Code:
iwlist wlan0 scan
and post the output for your network. Le's try see if the ciphers or type are matched with the network block in the wpa profile.

Creating the profile after connection is just a matter of copying either qrc or netsel to profiles/$ssid+$bssid after the icon turns yellow (local connection) or green (internet), instead of after closing the password gui. That actually makes more sense. What could possibly go wrong!? Laughing
Back to top
View user's profile Send private message MSN Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Wed 27 Jun 2018, 09:03    Post subject:  

My network:

Code:
          Cell 09 - Address: 00:18:4D:52:54:A2
                    Channel:9
                    Frequency:2.452 GHz (Channel 9)
                    Quality=70/70  Signal level=-32 dBm 
                    Encryption key:on
                    ESSID:"UPC44685"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s
                    Bit Rates:9 Mb/s; 18 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000002d2574d9e
                    Extra: Last beacon: 32ms ago
                    IE: Unknown: 00085550433434363835
                    IE: Unknown: 010882848B960C183048
                    IE: Unknown: 030109
                    IE: Unknown: 2A0100
                    IE: Unknown: 32041224606C
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD0900037F0101000CFF7F
                    IE: Unknown: DD0C00037F020101020002534000
                    IE: Unknown: DD1A00037F030100000000184D5254A202184D5254A264002C010C08
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00


And this is the other wpa network I mentioned that no profile was created (als wpa version 1, but slightly different)
Code:
          Cell 23 - Address: 54:22:F8:DF:06:4F
                    Channel:13
                    Frequency:2.472 GHz (Channel 13)
                    Quality=18/70  Signal level=-92 dBm 
                    Encryption key:on
                    ESSID:"Sterrenburg"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000032e637d7197
                    Extra: Last beacon: 2464ms ago
                    IE: Unknown: 000B5374657272656E62757267
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 03010D
                    IE: Unknown: 050400010000
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1A1C181BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D160D080400000000000000000000000000000000000000
                    IE: Unknown: 4A0E14000A002C01C800140005001900
                    IE: Unknown: 7F0101
                    IE: Unknown: DD0E0050F204104A0001101044000102
                    IE: Unknown: DD090010180201000C0000
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00


Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 5 of 7 [94 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Networking » Wireless
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2991s ][ Queries: 12 (0.0078s) ][ GZIP on ]