sh ./network-manager.shar
rm ./network-manager.shar
cd ./network-manager/
make
make install clean
uname -a
FreeBSD ugmm-2.router 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #0: Tue Feb 24 19:00:21 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
sh ./network-manager.shar
rm ./network-manager.shar
cd ./network-manager
make
root@ugmm-2:/usr/ports/net-mgmt/network-manager # make
===> License BSD3CLAUSE accepted by the user
===> network-manager-0.9.0 depends on file: /usr/local/sbin/pkg - found
=> network-manager-0.9.0.tar.xz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://BSDforge.com/projects/source/net-mgmt/network-manager/network-manager-0.9.0.tar.xz
fetch: http://BSDforge.com/projects/source/net-mgmt/network-manager/network-manager-0.9.0.tar.xz: size mismatch: expected 21048, actual 21044
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/network-manager-0.9.0.tar.xz
fetch: http://distcache.FreeBSD.org/ports-distfiles/network-manager-0.9.0.tar.xz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1
make
===> Giving up on fetching files: network-manager-0.9.0.tar.xz
Make sure the Makefile and distinfo file (/usr/ports/net-mgmt/network-manager/distinfo)
are up to date. If you are absolutely sure you want to override this
check, type "make NO_CHECKSUM=yes [other args]".
*** Error code 1
make NO_CHECKSUM=yes
root@ugmm-2:/usr/ports/net-mgmt/network-manager # make NO_CHECKSUM=YES
===> License BSD3CLAUSE accepted by the user
===> network-manager-0.9.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by network-manager-0.9.0 for building
===> Extracting for network-manager-0.9.0
===> Patching for network-manager-0.9.0
===> network-manager-0.9.0 depends on executable: sudo - found
===> network-manager-0.9.0 depends on package: py27-setuptools27>0 - found
===> network-manager-0.9.0 depends on file: /usr/local/bin/python2.7 - found
===> network-manager-0.9.0 depends on package: py27-setuptools27>0 - found
===> network-manager-0.9.0 depends on file: /usr/local/bin/python2.7 - found
===> Configuring for network-manager-0.9.0
===> Building for network-manager-0.9.0
===> Staging for network-manager-0.9.0
===> network-manager-0.9.0 depends on executable: sudo - found
===> network-manager-0.9.0 depends on package: py27-setuptools27>0 - found
===> network-manager-0.9.0 depends on file: /usr/local/bin/python2.7 - found
===> Generating temporary packing list
(cd /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/sbin/chown -Rh root:wheel $1 && /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; && /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- . /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/)
(cd /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/icons && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/sbin/chown -Rh root:wheel $1 && /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; && /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- . /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/pixmaps/networkmgr/)
/bin/cp /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr.desktop /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/applications/
/bin/cp /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr.desktop /usr/ports/net-mgmt/network-manager/work/stage/usr/local/etc/xdg/autostart/
install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/detect-nics.sh /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/
install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/detect-wifi.sh /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/
install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/enable-net.sh /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/
install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/functions-networking.sh /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/
install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/test-netup.sh /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/
install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr.py /usr/ports/net-mgmt/network-manager/work/stage/usr/local/bin/
====> Compressing man pages (compress-man)
if [ -d "/usr/ports/net-mgmt/network-manager/work/stage/usr/local/lib/python2.7/site-packages/network_manager-0.9.0-py2.7.egg-info" ]; then /bin/ls /usr/ports/net-mgmt/network-manager/work/stage/usr/local/lib/python2.7/site-packages/network_manager-0.9.0-py2.7.egg-info | while read f; do echo lib/python2.7/site-packages/network_manager-0.9.0-py2.7.egg-info/${f} >> /usr/ports/net-mgmt/network-manager/work/.PLIST.mktmp; done; fi;
make install clean
root@ugmm-2:/usr/ports/net-mgmt/network-manager # make install clean
===> Installing for network-manager-0.9.0
===> network-manager-0.9.0 depends on executable: sudo - found
===> network-manager-0.9.0 depends on package: py27-setuptools27>0 - found
===> network-manager-0.9.0 depends on file: /usr/local/bin/python2.7 - found
===> Checking if network-manager already installed
===> Registering installation for network-manager-0.9.0
Installing network-manager-0.9.0...
===> Cleaning for sudo-1.8.13
===> Cleaning for network-manager-0.9.0
Failed to execute command "networkmgr".
Failed to execute child process "networkmgr" (Permission denied).
Thank you very much, jdakhayman, for the "heads up".Good day,
I am very interested in this.
uname -a
I use XFCE as my DE as well. I have copied over the file from the PR link as you instructed. (I used root account as I did this.)Code:FreeBSD ugmm-2.router 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #0: Tue Feb 24 19:00:21 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
I placed the file in the directory:
/usr/ports/net-mgmt.
I then ran:
sh ./network-manager.shar
rm ./network-manager.shar
Then I cd into the network-manager directory that was created:
cd ./network-manager
and then ran:
make
This is the following output from the initial make command:
Code:root@ugmm-2:/usr/ports/net-mgmt/network-manager # make ===> License BSD3CLAUSE accepted by the user ===> network-manager-0.9.0 depends on file: /usr/local/sbin/pkg - found => network-manager-0.9.0.tar.xz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch http://BSDforge.com/projects/source/net-mgmt/network-manager/network-manager-0.9.0.tar.xz fetch: http://BSDforge.com/projects/source/net-mgmt/network-manager/network-manager-0.9.0.tar.xz: size mismatch: expected 21048, actual 21044 => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/network-manager-0.9.0.tar.xz fetch: http://distcache.FreeBSD.org/ports-distfiles/network-manager-0.9.0.tar.xz: Not Found => Couldn't fetch it - please try to retrieve this => port manually into /usr/ports/distfiles/ and try again. *** Error code 1
So, I downloaded the distfile from your site http://BSDforge.com/projects/source/net-mgmt/network-manager/network-manager-0.9.0.tar.xz and manually placed it into the /usr/ports/distfiles/. Unfortunately, the distfile is not the same size as what is stated in the distinfo file in /usr/ports/net-mgmt/network-manager/
So I changed that from 21048 to 21044, and I ran:
make
and it reports
Code:===> Giving up on fetching files: network-manager-0.9.0.tar.xz Make sure the Makefile and distinfo file (/usr/ports/net-mgmt/network-manager/distinfo) are up to date. If you are absolutely sure you want to override this check, type "make NO_CHECKSUM=yes [other args]". *** Error code 1
I did as instructed and ran:
make NO_CHECKSUM=yes
Code:root@ugmm-2:/usr/ports/net-mgmt/network-manager # make NO_CHECKSUM=YES ===> License BSD3CLAUSE accepted by the user ===> network-manager-0.9.0 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by network-manager-0.9.0 for building ===> Extracting for network-manager-0.9.0 ===> Patching for network-manager-0.9.0 ===> network-manager-0.9.0 depends on executable: sudo - found ===> network-manager-0.9.0 depends on package: py27-setuptools27>0 - found ===> network-manager-0.9.0 depends on file: /usr/local/bin/python2.7 - found ===> network-manager-0.9.0 depends on package: py27-setuptools27>0 - found ===> network-manager-0.9.0 depends on file: /usr/local/bin/python2.7 - found ===> Configuring for network-manager-0.9.0 ===> Building for network-manager-0.9.0 ===> Staging for network-manager-0.9.0 ===> network-manager-0.9.0 depends on executable: sudo - found ===> network-manager-0.9.0 depends on package: py27-setuptools27>0 - found ===> network-manager-0.9.0 depends on file: /usr/local/bin/python2.7 - found ===> Generating temporary packing list (cd /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/sbin/chown -Rh root:wheel $1 && /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; && /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- . /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/) (cd /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/icons && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/sbin/chown -Rh root:wheel $1 && /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; && /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- . /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/pixmaps/networkmgr/) /bin/cp /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr.desktop /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/applications/ /bin/cp /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr.desktop /usr/ports/net-mgmt/network-manager/work/stage/usr/local/etc/xdg/autostart/ install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/detect-nics.sh /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/ install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/detect-wifi.sh /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/ install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/enable-net.sh /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/ install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/functions-networking.sh /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/ install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr/test-netup.sh /usr/ports/net-mgmt/network-manager/work/stage/usr/local/share/networkmgr/ install -o root -g wheel -m 555 /usr/ports/net-mgmt/network-manager/work/network-manager-0.9.0/networkmgr.py /usr/ports/net-mgmt/network-manager/work/stage/usr/local/bin/ ====> Compressing man pages (compress-man) if [ -d "/usr/ports/net-mgmt/network-manager/work/stage/usr/local/lib/python2.7/site-packages/network_manager-0.9.0-py2.7.egg-info" ]; then /bin/ls /usr/ports/net-mgmt/network-manager/work/stage/usr/local/lib/python2.7/site-packages/network_manager-0.9.0-py2.7.egg-info | while read f; do echo lib/python2.7/site-packages/network_manager-0.9.0-py2.7.egg-info/${f} >> /usr/ports/net-mgmt/network-manager/work/.PLIST.mktmp; done; fi;
it completed and then I ran:
make install clean
Code:root@ugmm-2:/usr/ports/net-mgmt/network-manager # make install clean ===> Installing for network-manager-0.9.0 ===> network-manager-0.9.0 depends on executable: sudo - found ===> network-manager-0.9.0 depends on package: py27-setuptools27>0 - found ===> network-manager-0.9.0 depends on file: /usr/local/bin/python2.7 - found ===> Checking if network-manager already installed ===> Registering installation for network-manager-0.9.0 Installing network-manager-0.9.0... ===> Cleaning for sudo-1.8.13 ===> Cleaning for network-manager-0.9.0
and it built, the icon does appear in the settings menu after the install, although it isn't the same icon as in your screenshot, but when I run it from the menu, it throws an error:
Code:Failed to execute command "networkmgr". Failed to execute child process "networkmgr" (Permission denied).
Hope I left feedback on this in the proper way and that I didn't make any mistakes. I am not sure if I added to much info, or not. Thank you for the effort you have put into this.
jda
# networkmgr
Traceback (most recent call last):
File "./trayicon.py", line 3, in <module>
import gtk
ImportError: No module named gtk
# pkg install gtk2
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed
Dear grub3r, it is a shot in the dark, but please check if you have x11-toolkits/py27-gtk2 installed.
EDIT: I have had a look what is imported by trayicon.py. The next step might be to check devel/py-gobject.
networkmgr
by root this message appears:# networkmgr
/usr/local/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
uname -a
FreeBSD dmb-tech 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
Yes, sure, sorry. If you seek in /usr/ports/INDEX-10 there is no py-gtk2 but py27-gtk2. But the port name is py-gtk2. This is strange but true.There is no x11-toolkits/py27-gtk2 I installed py-gtk2 instead, maybe you meant that too
As far as I root is not allowed to open X11 applications because of security issues. Please try to startWhen starting networkmgr by root this message appears:
networkmgr
as regular user.I have no idea how this should be possible in a world wide open software community.
Frankenstein. Not hardly. But it seems you think BSD was/is not well suited for a "standard desktop" OS.Nice, but IMO this is a hackish setup. The Linux / BSD desktop is worst than Frankenstein's monster. It's bloated, stinking, hacked together, an abomination with missing limbs and no orthogonality. Doing network management the proper way from GUI the proper way would require:
1. Restructuring parts as ifconfig(8) + wpa_supplicant(8) as a library, and use that.
2. Rethink the whole desktop paradigm in BSDs. All desktops I tried feel like Frankenstein's monster in Linux and BSDs. You need to start with the base OS before even writing a single line of graphical code to address this. This means:
- Writing an asynchronous message passing and notification facility in the base OS, pretty much like notifyd in MacOSx.
- Integrate said facility with devd(8) / autofs(5) / kevent(2).
- Maybe add to kernel another one more IPC mechanism -- Solaris doors or Windows NT like ALPC would be prime candidates IMO.
3. Restructuring other important system utilities as libraries, and make the command line tools just a shim above those libs is also important IMO. Prime candidates beside networking are user control, GEOM control, audio control, sharing control (NFS at least.)
4. Pay utmost attention to power management code in kernel and profile the user mode base system for power hungry pathway, isolate them and vanquish them out of the code.
5. Too much freedom of choice is bad. BSDs should in future absorb Wayland or X in the base and enforce a unique GUI toolkit and common controls. There is no other way unfortunately to ensure look and feel orthogonality on the desktop.
This doesn't mean destroying the "Unix (superpower) user experience (TM)" and everything Unix stands for. It just means that the 70s passed like 35 years ago BSDs should learn from Apple and MacOSX. IMO MacOSX is at the moment the best user experience one can have on desktop and laptops. Windows was easy and intuitive till Windows 8 when MS managed to ruin it somehow.