You are not logged in.
I've been a little dissapointed with the usability of netcfg. The program itself works awesome, but having to deal with profiles is a chore. So I wrote NetCfg-Interface. It's written completely in shell, so it has no dependencies other than netcfg itself. It makes extensive use of the "tput" command to create menus and dialogs. Let me know what the community thinks!
https://github.com/Jhebes/NetCfg-Interface
Also, I'm not a shell master, so if there's anything anyone sees that's wrong, it would be greatly appreciated.
Known Issues that I'm working on:
The editor has an option to delete lines from profiles. It doesn't work right now. It just sort of erases the entire profile.
EDIT: Should go without saying, but the script should be run as root.
However, if you don't like the idea of that, just add netcfg, iwlist, ifconfig, and cp to the sudoers file and allow them to run with no pass. Then just run the script regularly.
I would also like to mention that you should create a directory in your home folder to hold the profiles, and change the networkdir variable at the top of the script to reflect that. That way, you don't have the interfaces and examples folders read as network profiles.
Last edited by TheHebes (2012-07-02 20:14:01)
Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e
Offline
Nice, thanks! I have been planning to do this as well. Once I have the time, I will look at the code. Keep up
Offline
Going back through, this is sloppy. It probably would have made waaaay more sense to write this in python, esp. since then I could use a curses interface. So I'll probably start porting this from shell/tput to python/curses and see how that goes.
Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e
Offline
However, if you don't like the idea of that, just add netcfg, iwlist, ifconfig, and cp to the sudoers file and allow them to run with no pass.
IMHO this is a BAAAAAD idea, I mean putting cp into the sudoers so it can be used without a password! Then it's possible do something like
sudo cp /some/bad/file /etc/profile.d/file.sh
so it's executed everytime the system boots.
Offline
TheHebes wrote:However, if you don't like the idea of that, just add netcfg, iwlist, ifconfig, and cp to the sudoers file and allow them to run with no pass.
IMHO this is a BAAAAAD idea, I mean putting cp into the sudoers so it can be used without a password! Then it's possible do something like
sudo cp /some/bad/file /etc/profile.d/file.sh
so it's executed everytime the system boots.
not just that, but imho it's a bad idea to use sudo in scripts in general. Why not drop the sudo's from the script and whoever wants to be able to execute it without a password adds a NOPASSWD: Netcfg-Interface.sh to the sudoers file?! I admit that I haven't looked at the complete code, maybe I'm missing something?!
Offline
No, you're right. Like I said, sloppy, sloppy, sloppy!
Just posted it to let people know what commands are being executed by the script with root privileges. Again, I am looking to drop the netcfg dependency and rewrite this from the ground up in python, so that yes, it can just be run as one program with root privileges.
Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e
Offline