LinuxVillage

Questions En => Help requests => Discussion démarrée par: Taco.22 le 20 janvier 2013 à 12:04:17

Titre: Networking - wicd and gigolo
Posté par: Taco.22 le 20 janvier 2013 à 12:04:17
I'm trying to set up networking between a couple of computers running OB and using WICD and gigolo.  I've got gigolo installed and Thunar has a network symbol showing - albeit "Windows Network".  WICD is default network manager.  I'm madly googling away, but has anyone tried this combo?  Or is there another simple way of doing this?  Something else I'm reading about is pyneighborhood - an option?

I was thinking that if this doesn't get too messy it might be nice to have in Village_OB - easy home networking.  Or is that an oxymoron!!!
Titre: Re : Networking - wicd and gigolo
Posté par: melodie le 20 janvier 2013 à 14:14:55
Hi,

The network manager and the program gigolo are unrelated. Any network manager can be used to create the connection to the network : wicd, network-manager, command lines such as "dhcpcd", "dhclient", same with an indication of the interface used : "dhcpcd eth0"... or full command lines to attribute a fixed IP to the machine on the local network.

About gigolo, if you want to include it in a box, all you need to do is installing it in the box, no first configuration done : you don't know what the configuration of the local network of the user will be.

Each new connection done in gigolo will be a relation  between the machine from which you operate to another machine somewhere in the same local network, or between this machine behind which you are and severel machines on the local network.

If the user decides to make the hostnames of the "remote machines on the local network" be known from the machine where they operate from, then gigolo will be instructed to connect to:

marguerite 192.168.1.55
philadelphia 192.168.1.49
alleluia 192.168.1.97

...

but you can't know this.
Titre: Re : Networking - wicd and gigolo
Posté par: Taco.22 le 20 janvier 2013 à 14:39:11
So gigolo needs to be configured to recognise other computers on a network?  So far I've not been able to get two computers sitting next to each other and connected to each other through a router to talk through gigolo!  However I made the connection with an ftp client in seconds.  I've been getting into networking lately but Linux is proving somewhat tricky.  I am a long way from being able to set up network printing!! 
Titre: Re : Networking - wicd and gigolo
Posté par: melodie le 20 janvier 2013 à 15:09:49
gigolo used to work well, but is becoming old. I will do a test between two machines and will tell you if that works here.

In the meanwhile maybe would you want to try xsshfs ? Of course sshfs (or sshfs-fuse is sometimes the package name) needs to be installed.

http://forge.zici.fr/p/xsshfs/downloads


Titre: Re : Networking - wicd and gigolo
Posté par: Taco.22 le 20 janvier 2013 à 15:56:10
So far I have had success with ssh, and now I am trying sftp through Thunar.  So far that works well except no icon for the connection appears and there seems to be no way to bookmark it.  Got gigolo to connect and it can bookmark but I'm still trying to work out how to get Thunar to recognise SFTP.
Titre: Re : Networking - wicd and gigolo
Posté par: melodie le 20 janvier 2013 à 16:16:40
For the icons you might need to have the same sets of icons on both sides. I have done a full series of screenshots with gigolo to post here I will post them in a few minutes.

And gigolo allows choosing which file manager to use. Same, it will show the screenshots.


Titre: Re : Networking - wicd and gigolo
Posté par: melodie le 20 janvier 2013 à 16:57:22
Hi,
Here is a full howto for all: Access remote machines with Gigolo (http://linuxvillage.net/index.php/topic,44.msg104.html#msg104)
Titre: Re : Networking - wicd and gigolo
Posté par: Taco.22 le 20 janvier 2013 à 17:21:08
Thank you - that was too obvious!!!  Change the name of the FM in preferences  :o.  How the heck did I miss that!  All is working now.  I'm going to have to go back through apt-get log to work out what I have installed and throw out the unneeded stuff - got a bit hectic there for a bit.  The other thing to work out is how to launch gigolo in the background but with a tray icon.  It works from terminal but not from autostart.  Maybe .xinitrc?

I have tried sshfs but whatever folder I mount to is inaccessible unless I'm root.   Folders become unknown documents - as root it becomes a folder.  It seems to be an issue with Thunar - still trying to nut that one out.

By the way, nice add to Tips and Tricks.
Titre: Re : Re : Networking - wicd and gigolo
Posté par: melodie le 20 janvier 2013 à 18:43:39
how to launch gigolo in the background but with a tray icon.

Tray icon is available in one of the tabs of the preferences menu.

Have fun!  :D

PS: <mode="OT"> could someone select a few icon themes (http://custom.simplemachines.org/mods/index.php?action=search;type=12) to install and try on this forum ?</mode> (there are 51 of them available)



Titre: Re : Re : Networking - wicd and gigolo
Posté par: djohnston le 21 janvier 2013 à 00:50:34
By the way, nice add to Tips and Tricks.

+1
Titre: Re : Networking - wicd and gigolo
Posté par: Taco.22 le 21 janvier 2013 à 00:52:13
Citation de: melodie
Tray icon is available in one of the tabs of the preferences menu.

I have that checked but it's not working from autostart.  Not working from .xinitrc either.  Maybe a shell script launched from autostart would be the go.  However I am going to look at Spacefm and maybe not have to have gigolo at all.
Titre: Re : Networking - wicd and gigolo
Posté par: melodie le 21 janvier 2013 à 09:01:33
If you install obsession, and add in the ~/.config/autostart file this line:
# Startup applications in the tray with xdg-autostart
xdg-autostart

Then you copy /usr/share/applications/gigolo.desktop to the ~/.config/autostart directory (create it if needed) : here it works.

I tried to add in autostart:
gigolo &
and it worked too, but then the wicd tray applet is missing (I use wicd in Archlinux, and network-manager in Ubuntu because there it does work better in live-cd's).

I still need to test:
xdg-autostart &
I will be right back.

PS: forking xdg-autostart in the background works fine too.


Titre: Re : Networking - wicd and gigolo
Posté par: Taco.22 le 22 janvier 2013 à 00:09:39
I have tried just about every permutation I can think of to get gigolo to autostart.  I think I have run out of pages on the net with tips!  Yet once the system is booted gigolo starts in the background and places its icon in the tray just fine.

So far I'm having no luck installing obsession.  I have installed build-essential and libglib2.0-dev - all up 60mb! - but still getting this -
guest@village:~/Downloads/obsession$ make
Compiling lxsession-exit.c
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
No package 'x11' found
lxsession-exit.c:21:18: fatal error: glib.h: No such file or directory
compilation terminated.
make: *** [lxsession-exit.o] Error 1
guest@village:~/Downloads/obsession$

Starting to get very messy just to launch one little app!  However gigolo and thunar work well together so regardless of the autostart issue I think gigolo is in to stay.
Titre: Re : Networking - wicd and gigolo
Posté par: melodie le 22 janvier 2013 à 00:48:53
Hi,

The files you are missing belong to libgtk2.0-dev. It pulls in 55 more packages then dbus dev is still missing. I'll be right back...

libdbus-1-dev needs to be installed. This one comes alone this time, now the "make" goes till the end.

Titre: Re : Networking - wicd and gigolo
Posté par: Taco.22 le 22 janvier 2013 à 01:07:00
Installed libdbus-1-dev but got same message minus the lines pertaining to Package dbus ...
Titre: Re : Re : Networking - wicd and gigolo
Posté par: melodie le 22 janvier 2013 à 01:28:26
Installed libdbus-1-dev but got same message minus the lines pertaining to Package dbus ...

What about:
libgtk2.0-dev

?

Titre: Re : Networking - wicd and gigolo
Posté par: Taco.22 le 22 janvier 2013 à 02:08:06
Wow, thats 76mb installed!  That would mean over 130mb extra in the system just to autostart gigolo and to duplicate some entries already in the right-click menu.  Too much.

Time to think outside the square.  Why won't gigolo autostart?  I have tried .desktop in /etc/xdg/autostart, all sorts of other ideas, every known config in ~/openbox/autostart - nothing.  Regardless of settings htop doesn't show it listed.  Start it from menu and bingo - there it is in htop.

I then had a look in /usr/bin and found "gigolo" is a "shared library".  I'm doing some basic research but what makes a shared library different to an executable?  Just out of curiosity epdfview is also a shared library and also won't autostart.   Actually, I can't get ANY application to autostart.  Just tried sakura, and then geany.  I could be barking up a wrong tree here.  What am I missing?

Oh, and is it possible to get mimas's xdg-autostart only that he mentioned on the old forum.

EDIT - this seems to have become a bigger issue.  I just tried setting up a script but it failed to autostart.  I think the question now is - why won't Village_RC autostart applications?  Maybe a new thread is needed.

Titre: Re : Networking - wicd and gigolo
Posté par: melodie le 22 janvier 2013 à 02:41:20
Hi,
You need dev packages to be able to build anything;

You can avoid part of the recommends by setting it to "false" in the 99synaptic file in /etc/apt/apt.conf.d ;

you can even get rid of all the devel packages : I compiled successfully in Debian wheezy and did a tarball;

you can get it  : http://meets.free.fr/debian/obsession-compiled-for-debian-testing.tar.xz

Enjoy!

(I will have a look tomorrow in my Debian testing install to see if I can make it work the way I do in Archlinux).