Page 1 of 1

Zeroconf 32-bits

Posted: 15 Dec 2011, 13:46
by wread
I think Porteus will be a best seller the moment it brings Zeroconf out of the box. For that we need additionally under 500 KB for Zeroconf files and to recompile kdelibs and whatever with Zeroconf to make it work.

I have made the necessary modules for Zeroconf for Porteus 32-bit version, they can be downloaded from http://www.mediafire.com/?luxs8b4pjwi4d

Brokenman mentioned once, he would recompile Trinity with zeroconf for the comming version (maybe 1.1 final?). Fanthom could do the same for the 64-bits version (redoing the zeroconf-files accordingly).

I can contribute these addtional modules. For the more advanced: dowload the modules, put them in a modules/Zeroconf folder. You will need to start two daemons; I do it in rootcopy/rc.d/rc.local. Add the lines

# Create user and group "avahi"
#
if [ -x /etc/rc.d/rc.avahi ]; then
echo "creating user and group avahi..."
/etc/rc.d/rc.avahi
fi
#
# Start avahidaemon
#
if [ -x /etc/rc.d/rc.avahidaemon ]; then
sh /etc/rc.d/rc.avahidaemon start
fi
#
# Start avahidnsconfd
#
if [ -x /etc/rc.d/rc.avahidnsconfd ]; then
sh /etc/rc.d/rc.avahidnsconfd start
fi
#

Reboot, it works, just trinity won't still acknowledge it. :(

Regards!

Re: Zeroconf 32-bits

Posted: 15 Dec 2011, 14:07
by Ahau
Hi wread, thank you very much!

I've been including three of these packages (avahi, libdaemon, and nss-mdns) in my XFCE build (http://code.google.com/p/porteus-xfce/downloads/list) for some time, with only a cursory knowledge of what they are up to (they are included by the upstream maintainer, with the exception of nss-mdns).

I've grabbed the fourth package (mdns-scan), and it appears to run and finds everything on my local network -- very nice! Now, I just have to hit the books and learn more about what can be done with them :)

Re: Zeroconf 32-bits

Posted: 15 Dec 2011, 14:41
by Hamza
Wread, Thanks!

Please use the CODE tag instead of paste your code like this.

Code: Select all


#!/bin/bash
## This is a description

# This function return the hostname
gethost(){
if [ -f "/etc/HOSTNAME" ]; then
hostname=`cat /etc/HOSTNAME`
else
hostname="Unknown"
fi
return $hostname
}

gethost
echo $hostname
exit 0
Thanks.

Re: Zeroconf 32-bits

Posted: 15 Dec 2011, 15:35
by wread
@Hamza
No matter how old one gets, one can learn new things!

Thank you!

Re: Zeroconf 32-bits

Posted: 15 Dec 2011, 18:04
by Hamza
Use the CODE Tag

Code: Select all

[code]This is my code.
[/code]

Ciao!

Re: Zeroconf 32-bits

Posted: 16 Dec 2011, 02:44
by brokenman
As promised i will compile it into the next Trinity ... especially if it makes Porteus a best seller.

Re: Zeroconf 32-bits

Posted: 17 Dec 2011, 03:17
by Ahau
hello wread,

Would you please elaborate a little bit on what the mdns-scan program offers or does, beyond what avahi-discover does? I'm just trying to sort out whether or not I should include it in my build for xfce.

Thanks!

Re: Zeroconf 32-bits

Posted: 19 Dec 2011, 21:00
by wread
Ahau wrote:hello wread,

Would you please elaborate a little bit on what the mdns-scan program offers or does, beyond what avahi-discover does? I'm just trying to sort out whether or not I should include it in my build for xfce.

Thanks!
Avahi is a system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite. This enables you to plug your laptop or computer into a network and instantly be able to view other people who you can chat with, find printers to print to or find files being shared. Compatible technology is found in Apple MacOS X (branded Bonjour and sometimes Zeroconf). Details ... | Definition at Wikipedia

At any rate include it, if you want to create a best seller!

Regards!

Re: Zeroconf 32-bits

Posted: 19 Dec 2011, 21:26
by Hamza
That would be very useful to have this feature.

A poll for include this feature :)

Re: Zeroconf 32-bits

Posted: 05 Feb 2012, 00:21
by wread
@all
Meanwhile I compiled kdelibs-4.7.4-i486 (32-bits) with Zeroconf awareness. For those members of the Porteus Community experimenting with KDE4-32-bits who would like to give it a try, I have posted the library in mediafire:
http://www.mediafire.com/?jokm0o1j3cojdkx

Download it and overwrite the corresponding kdelibs-4.7.4-i486-aliens-1.xzm and reboot.

Enjoy!

Re: Zeroconf 32-bits

Posted: 05 Feb 2012, 20:23
by brokenman
Thanks Wread.

I have also added zeroconf/avahi support for next Porteus release (32bit)