Tahr 6.0.5 no_pae will not shutdown with AVAHI installed

Using applications, configuring, problems
Message
Author
User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

Tahr 6.0.5 no_pae will not shutdown with AVAHI installed

#1 Post by rockedge »

Hello! I am wondering if any one could help point me in the correct direction to fix my tahr 6.0.5 installed on a USB stick (ext2 system), to shutdown cleanly.
Running on a DELL E1505 laptop, tahr performs very well. I am working on setting up the machine with AVAHI to emulate an AIRPRINT printer so I can easily print from an iPad and a iPod using a Puppy Linux machine connected to a Canon MG2520 printer.

I have a desktop running tahr 6.0.5 that is physically connected to the printer set up with CUPS and is printing like a champion. I can connect from all my machines running varoius flavors of Puppy Linux and a few with some type of Windows ranging from XP to Windows 10.

So for my girlfriend who really needs to print out her brand new granddaughter's photos to stay in line with the tradition of grandparents showing off, from her iPad. So in total overkill I want to set up AIRPRINT with old gear and hack my way onto the honor roll.

I have tried to compile avahi but after many attempts and getting really close it will not build successfully.

So I installed AVAHI from the Package Manager (PPM2) after updating the package db. Then attempting to reboot the machine will not shutdown and by a forced poweroff the tahr save folder is corrupted and on reboot wants to go into a Maintenance Shell and xwin will not start.

I have encountered this earlier with UPUP 3.9.9.2 and installing MySQL server via PPM. The fix was to make an SFS of the mysql installed. Crash the system>reinstall the OS>load the SFS>remaster the OS. I am hoping that a similar approach can be avoided.
Thanks for any help!

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#2 Post by rockedge »

This worked to get a clean reboot. The save folder is broken.

Code: Select all

#reboot --force

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#3 Post by rcrsn51 »

Good luck with getting Avahi working in Puppy. Please keep us posted.

In the end, it may be simpler for her to just email you the pictures.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#4 Post by rockedge »

Well I am close. Exactly what I did to achieve getting AVAHI to run on tahr 6.0.5 I at this moment can not say. I did a little of this and a lot of that, installing wildly around python and dbus to attempt to build it but finally stuck to using PPM to install. So far I have this:
Image

I am testing now to configure it to be seen as AIRPRINT.

I still can not cleanly shutdown but it is running and I will sort that out later.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#5 Post by rockedge »

After some small adjustments to /etc/avahi/airprinter.service the iPod and iPad see the printer and attempts to print. So at this point using Puppy Linux to make an AIRPRINT printer out of a plain Canon MG2500 Series printer is almost a success and working completely. Except I can not shutdown cleanly and still needs a tweak somewhere to really complete the print process.

Image
ImageImage

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#6 Post by bigpup »

Except I can not shutdown cleanly
What happens if you enter

Code: Select all

wmpoweroff
in the console?
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#7 Post by rockedge »

Code: Select all

#reboot --force

did work and the machine reboots but the save folder was corrupted.

I tried different several variations of wmexit and the symlinks wmpoweroff, wmreboot but they did not work.

X stops and the OS drops to console.

with

Code: Select all

#xwin
the graphical server starts again but no reboot or shutdown

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#8 Post by bigpup »

Try replacing these files with the ones in the Tahr 6.0.5.iso
They will be in the puppy_ tahr_6.0.5.sfs

/usr/bin/wmpoweroff
/usr/bin/wmexit

Try a shutdown from the menu->Exit
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#9 Post by Mike Walsh »

Hi, rockedge.

I had this exact same problem a week or two back. I installed Tahr64 6.05 about 3 months ago, but have never been able to get my Epson Stylus SX218 working correctly with it.....and CUPS would not advertise itself on the network.

Bill (rcrsn51) tells me even he couldn't make CUPS behave itself in Tahr64.

I tried installing avahi from the PPM, and, like you, ended up with a 'Maintenance Shell', which wouldn't shut down and had to be forcibly powered-off, and 'X' would not start. I too had to do a complete re-install from back-ups.

I can totally accept the desire to 'hack your way onto the honor roll' (!) :lol: , but in all honesty, it's far simpler to just use this.

I helped test & refine the newest version, which, like all the best ideas, is elegantly simple, and works a treat; way better than the standard CUPS 'sharing' set-up, where the versions of CUPS at either end often have different ideas about what takes priority, and print jobs end up getting lost in cyberspace...

Trust me, it's well worth a try.

You might also find this post useful.....although Tahr32 doesn't seem to have Tahr64's CUPS problems in this respect, even when installing 64-bit packages.

Hope that perhaps helps.


Mike. :wink:
Last edited by Mike Walsh on Tue 10 May 2016, 10:04, edited 3 times in total.

ozsouth
Posts: 858
Joined: Fri 01 Jan 2010, 22:08
Location: S.E Australia

#10 Post by ozsouth »

I had trouble with my Acer V5132 rebooting instead of shutting down. Fixed by upgrading kernel to 3.17.4 (from ibiblio's puppylinux repository).

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#11 Post by rockedge »

bigpup wrote:Try replacing these files with the ones in the Tahr 6.0.5.iso
They will be in the puppy_ tahr_6.0.5.sfs

/usr/bin/wmpoweroff
/usr/bin/wmexit

Try a shutdown from the menu->Exit
Thanks for the tip. Tried it and it did not work. I will perhaps remove packages from what I installed and maybe I will find what causes the wmexit not to function. I will browse the code in wmexit to see what the procedures are.

I also copied the save folder as it is now to see what happens when I attempt to shut down now with

Code: Select all

#reboot --force
and start tahr back up and see if the copied folder will load.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#12 Post by rockedge »

I helped test & refine the newest version, which, like all the best ideas, is elegantly simple, and works a treat; way better than the standard CUPS 'sharing' set-up, where the versions of CUPS at either end often have different ideas about what takes priority, and print jobs end up getting lost in cyberspace...
very cool....I will definitely try this out today.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#13 Post by rockedge »

Forced a reboot and broken save folder. can not do much with the maintenance shell. The folders are corrupted by the installation of the avahi-discover package it appears. Directly after install on a fresh OS the machine will not shutdown cleanly.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#14 Post by rcrsn51 »

Is this just a case of needing to kill the avahi daemon before shutting down?

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#15 Post by Mike Walsh »

Hmm.

That doesn't make sense. If you've wiped everything, and done a fresh install, there should be no trace of whatever was previously installed. :?

Odd. Bill could be right about killing the avahi daemon.....but if that was me, I wouldn't bother with avahi anymore. The p910nd print server should do exactly what you want.


Mike. :wink:

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#16 Post by rockedge »

I reached this point with all the components working and using a python script to generate printer service files for avahi.
Image

I can use Bonjour on a Windows XP machine to see the AVAHI AIRPRINT printer which prints nicely and avahi-discover sees the printer(s) .

I can turn on and off the avahi-daemon and it all seems to work with the test iPod Touch Generation 5 seeing one of the printers and attempts to work but nothing gets printed. I will test an iPad later.

still no shutdown is possible

Will an Apple (iPad,iPod) device see the P910nd print server?

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#17 Post by Mike Walsh »

Hi again, rockedge.

Looks like you're determined to give avahi another try, then... :lol:
rockedge wrote:Will an Apple (iPad,iPod) device see the P910nd print server?
I don't see why not. All the 'client' (the Apple device) is doing is communicating with a specific port, at a specific address. That's really how all print utilities work, underneath the GUI.....which is put there simply to make things a wee bit more comprehensible by you, the user.

Normally, it's port 631 for CUPS; for p910nd, it's port 9100. And it should work, anyway; Apple use a version of POSIX (which is Unix-based).....and these days, Apple are the folks who maintain CUPS.

There's every reason right there why it should work. :D

All you can do is try!


Mike. :wink:

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#18 Post by rockedge »

I have tried out p910nd and so far can not trick the iPad or iPod to be able to "see" the printers. These devices do not allow one to modify the ports or add printer locations and connections manually. These Apple devices either see the printer or not so the print server must be able to emulate AIRPRINT or no go it seems. Using AVAHI I can get the printers configured as airprint capable and runs through CUPS well. The print job hangs though for some reason. Otherwise all my machines (windows and puppy linux) can print through a single puppy linux taihr 6.0.5 machine that physically is USB connected to a Canon printer.

I need to isolate the reason tahr will not shut down with avahi installed. If anyone can help with the shutdown process to help debug this.

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#19 Post by rockedge »

Finally a sign of something positive....I was able to print from an iPod 5 Touch using a Canon printer attached via USB to a Puppy Linux tahr 6.0.5 machine running AVAHI along side CUPS.

Using CUPS-PDF worked then stopped but the debug log indicates I think, that the system is working...only nothing more prints. Tried lots of things and the Tahr machine is so deep in modifications that I may have to start fresh to find the point printing from the iPad and iPod worked again.


192.168.0.4 is the iPod 5 touch. This is the log report as I attempt to print a Note text to CUPS-PDF.

Code: Select all

D [16/May/2016:12:40:44 +2300] Report: printers-implicit=0
D [16/May/2016:12:40:44 +2300] Report: stringpool-string-count=45599
D [16/May/2016:12:40:44 +2300] Report: stringpool-alloc-bytes=15840
D [16/May/2016:12:40:44 +2300] Report: stringpool-total-bytes=880704
D [16/May/2016:12:40:45 +2300] process_browse_data: Canon_MG2500_series@192.168.0.2 not found...
D [16/May/2016:12:40:58 +2300] cupsdAcceptClient: 9 from 192.168.0.4:631 (IPv4)
D [16/May/2016:12:40:58 +2300] cupsdReadClient: 9 POST /printers/CUPS-PDF HTTP/1.1
D [16/May/2016:12:40:58 +2300] cupsdSetBusyState: Active clients
D [16/May/2016:12:40:58 +2300] cupsdAuthorize: No authentication data provided.
D [16/May/2016:12:40:58 +2300] cupsdReadClient: 9 2.0 Get-Printer-Attributes 199
D [16/May/2016:12:40:58 +2300] Get-Printer-Attributes ipp://stick3.local.:631/printers/CUPS-PDF
D [16/May/2016:12:40:58 +2300] Returning IPP successful-ok for Get-Printer-Attributes (ipp://stick3.local.:631/printers/CUPS-PDF) from 192.168.0.4
D [16/May/2016:12:40:58 +2300] cupsdSetBusyState: Not busy
D [16/May/2016:12:40:58 +2300] cupsdReadClient: 9 WAITING Closing on EOF
D [16/May/2016:12:40:58 +2300] cupsdCloseClient: 9
D [16/May/2016:12:41:01 +2300] cupsdAcceptClient: 9 from 192.168.0.4:631 (IPv4)
D [16/May/2016:12:41:01 +2300] cupsdReadClient: 9 POST /printers/CUPS-PDF HTTP/1.1
D [16/May/2016:12:41:01 +2300] cupsdSetBusyState: Active clients
D [16/May/2016:12:41:01 +2300] cupsdAuthorize: No authentication data provided.
D [16/May/2016:12:41:01 +2300] cupsdReadClient: 9 2.0 Get-Printer-Attributes 200
D [16/May/2016:12:41:01 +2300] Get-Printer-Attributes ipp://stick3.local.:631/printers/CUPS-PDF
D [16/May/2016:12:41:01 +2300] Returning IPP successful-ok for Get-Printer-Attributes (ipp://stick3.local.:631/printers/CUPS-PDF) from 192.168.0.4
D [16/May/2016:12:41:01 +2300] cupsdSetBusyState: Not busy
D [16/May/2016:12:41:01 +2300] cupsdReadClient: 9 WAITING Closing on EOF
D [16/May/2016:12:41:01 +2300] cupsdCloseClient: 9
D [16/May/2016:12:41:03 +2300] cupsdAcceptClient: 9 from 192.168.0.4:631 (IPv4)
D [16/May/2016:12:41:03 +2300] cupsdReadClient: 9 POST /printers/CUPS-PDF HTTP/1.1
D [16/May/2016:12:41:03 +2300] cupsdSetBusyState: Active clients
D [16/May/2016:12:41:03 +2300] cupsdAuthorize: No authentication data provided.
D [16/May/2016:12:41:03 +2300] cupsdReadClient: 9 2.0 Get-Printer-Attributes 201
D [16/May/2016:12:41:03 +2300] Get-Printer-Attributes ipp://stick3.local.:631/printers/CUPS-PDF
D [16/May/2016:12:41:03 +2300] Returning IPP successful-ok for Get-Printer-Attributes (ipp://stick3.local.:631/printers/CUPS-PDF) from 192.168.0.4
D [16/May/2016:12:41:03 +2300] cupsdSetBusyState: Not busy
D [16/May/2016:12:41:03 +2300] cupsdReadClient: 9 WAITING Closing on EOF
D [16/May/2016:12:41:03 +2300] cupsdCloseClient: 9
D [16/May/2016:12:41:06 +2300] cupsdAcceptClient: 9 from 192.168.0.4:631 (IPv4)
D [16/May/2016:12:41:06 +2300] cupsdReadClient: 9 POST /printers/CUPS-PDF HTTP/1.1
D [16/May/2016:12:41:06 +2300] cupsdSetBusyState: Active clients
D [16/May/2016:12:41:06 +2300] cupsdAuthorize: No authentication data provided.
D [16/May/2016:12:41:06 +2300] cupsdReadClient: 9 2.0 Get-Printer-Attributes 202
D [16/May/2016:12:41:06 +2300] Get-Printer-Attributes ipp://stick3.local.:631/printers/CUPS-PDF
D [16/May/2016:12:41:06 +2300] Returning IPP successful-ok for Get-Printer-Attributes (ipp://stick3.local.:631/printers/CUPS-PDF) from 192.168.0.4
D [16/May/2016:12:41:06 +2300] cupsdSetBusyState: Not busy
D [16/May/2016:12:41:06 +2300] cupsdReadClient: 9 WAITING Closing on EOF
D [16/May/2016:12:41:06 +2300] cupsdCloseClient: 9
D [16/May/2016:12:41:15 +2300] process_browse_data: Canon_MG2500_series@192.168.0.2 not found...

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#20 Post by rockedge »

WOW....I installed CUPS 1.7.5 from here:

http://distro.ibiblio.org/quirky/quirky ... ages-april
then this lib: libjpeg9
http://ftp.us.debian.org/debian/pool/ma ... 1_i386.deb
restarted CUPS and the avahi-daemon.
now the iPod and iPad printing is working with the AirPrint emulation working!

So running tahr 6.0.5 nopae as a CUPS -AVAHI print server the AirPrint emulation is working allowing me to print from Apple mobile devices to any printer attached to the Puppy Linux machine and / or network printer.

Now if I could only shutdown and restart cleanly...........

Post Reply