Zeroconf 32-bits

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Zeroconf 32-bits

Post#1 by wread » 15 Dec 2011, 13:46

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!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Zeroconf 32-bits

Post#2 by Ahau » 15 Dec 2011, 14:07

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 :)
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Zeroconf 32-bits

Post#3 by Hamza » 15 Dec 2011, 14:41

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.
NjVFQzY2Rg==

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Zeroconf 32-bits

Post#4 by wread » 15 Dec 2011, 15:35

@Hamza
No matter how old one gets, one can learn new things!

Thank you!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Zeroconf 32-bits

Post#5 by Hamza » 15 Dec 2011, 18:04

Use the CODE Tag

Code: Select all

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

Ciao!
NjVFQzY2Rg==

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Zeroconf 32-bits

Post#6 by brokenman » 16 Dec 2011, 02:44

As promised i will compile it into the next Trinity ... especially if it makes Porteus a best seller.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Zeroconf 32-bits

Post#7 by Ahau » 17 Dec 2011, 03:17

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!
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Zeroconf 32-bits

Post#8 by wread » 19 Dec 2011, 21:00

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!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Zeroconf 32-bits

Post#9 by Hamza » 19 Dec 2011, 21:26

That would be very useful to have this feature.

A poll for include this feature :)
NjVFQzY2Rg==

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Zeroconf 32-bits

Post#10 by wread » 05 Feb 2012, 00:21

@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!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Zeroconf 32-bits

Post#11 by brokenman » 05 Feb 2012, 20:23

Thanks Wread.

I have also added zeroconf/avahi support for next Porteus release (32bit)
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply