Posts: 58
Urban
Joined: 26 Feb 2008
#16
Multiple APs with the same essid works fine in ceni. Ceni lists them separately by mac and sorts by signal strength.

The wrapper I wrote in my previous post should work fine (EDIT: with tweaks that I just realized would be required) for adding to a menu, which I assume is what would be done. If anticapitalista wants a wrapper that can also pass arguments to ceni for command line use then I have a quick and dirty method that works already that is very dangerous considering the program has suid. I can also write it correctly if he is interested.

EDIT: I went ahead and finished the wrapper. Now the wrapper safely passes arguments. 7.2K compiled with O3.

Anti, if you end up using ceni and want the suid C wrapper let me know so I can send it to you. If not I will just use it for myself like I already am.

EDIT2: Here is a demo of the wrapper, but wrapping the command ls instead of ceni to demonstrate the argument passing.
newlinks below (7.2K)

+ Download
+ chmod +x lsWrapper
Now it works just like ls should.
+ lsWrapper -l -a

Note: I did NOT rewrite ls. I wrapped ls in a C program. I can just change the program to wrap ceni instead then give the program suid and bingo. No more password entering to run ceni.

Compiled with gcc 4.1.3 and flags -Wall -pedantic -ansi -O3

EDIT 3: Here is the ceni wrapper. I am not sure why I did not just upload it to begin with. Sometimes perl makes me want to hurt myself. Feedback is appreciated. Unicode is not supported in this version. I will add support later if it is required.
new links below (7.3K)

+ Download
+ mv ceniWrapper /usr/bin/
+ chown root /usr/bin/ceniWrapper
+ chmod 5555 /usr/bin/ceniWrapper
Now you should be able to just run ceni by typing in"ceniWrapper"

To do:
check for suid and that owner is root
deb package
unicode

Compiled with gcc 4.1.3 and flags -Wall -pedantic -ansi -O3
Last edited by Urban on 17 Apr 2008, 19:19, edited 2 times in total.
Posts: 13
kabon
Joined: 06 Apr 2008

07 Apr 2008, 01:53 #17

dell 700m uses intel 2200BG.
installed m7.2preview1 and it found the wireless network without any problem. didn't try ceni since everything worked as installed.
used m7.1 prior to this and could not get wireless to work.
Posts: 58
Urban
Joined: 26 Feb 2008
#18
anticapitalista: I am working on a revised version of the ceniwrapper for you to put in the new version of antiX. The revised version of the wrapper seems to be faster and smaller right now. There are also some other improvements being made.

UPDATE: This is essentially an entire rewrite. The deb package is at the bottom and is probably what should be used for installing.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://rapidshare.com/files/108242885/ceniwrapper.html"
linktext was:"http://rapidshare.com/files/108242885/ceniwrapper.html"
====================================
6.7K
This is the new version. Faster, smaller, and better.

+ Download
+ mv ceniWrapper /usr/bin
+ chown root:root /usr/bin/ceniwrapper
+ chmod 4555 /usr/bin/ceniwrapper
Typing in ceniwrapper in terminal should now run ceni passwordless. Someone please try this before the next version of antix is released.

gcc version 4.2.3
gcc -Wall -pedantic -O2

EDIT:
and here is a deb package. This is my first attempt at a deb package.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://rapidshare.com/files/108242444/ceniwrapper.deb.html"
linktext was:"http://rapidshare.com/files/108242444/c ... r.deb.html"
====================================
4K
This is probably better for working with apt-get and synaptic.

+ Download
+ dpkg -i ceniwrapper.deb
Now its ready and can be removed with sudo apt-get remove ceniwrapper and will be removed if ceni is removed.

EDIT2:
I have realized that uppercase W was mistake and have uploaded new versions with a lowercase w.