Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 26 Jan 2020, 18:34
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
slacko-5.6 Final - plus testing next
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 31 [465 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, ..., 29, 30, 31 Next
Author Message
Jim1911

Joined: 19 May 2008
Posts: 2460
Location: Texas, USA

PostPosted: Tue 09 Jul 2013, 16:31    Post subject:  

rcrsn51

You may have hit on the problem because my printer works well on 5.5 . More food for thought for Mick.

Thanks,
Jim
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1761

PostPosted: Tue 09 Jul 2013, 17:11    Post subject:  

(...continuation of this...)
I'm still trying to investigate what's going on in /usr/local/pup_event/ and things become a tiny bit more clear...

When Gparted is starting formatting a partition (eg. sdb1, a pendrive), /usr/local/pup_event/frontend_change receives (from .../pup_event/pup_event_frondend_d, I suppose) this string:
rem:sdb1 add:sdb1
but does nothing with it.
Whereas insertion/removal of a usb drive produces:
add:sdb add:sdb1
or
rem:sdb rem:sdb1
and frontend_change properly creates/removes an icon on/from the pinboard.

@Mick: did you mention to Barry about this yet (or should I do it?)? Maybe it's an easy fix for him..?
Well, in the end it's not a major issue, but could be confusing for a user who formats a partition to another filesystem and ends up with useless icon on the pinborard (unless X will be restarted).
Thank you. Smile
_____________

@Zigbert: could you please add support for f2fs to your pmount version (see original pmount)?
Would be nice. Smile

Thanks &
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8744
Location: qld

PostPosted: Tue 09 Jul 2013, 17:26    Post subject:  

I think the problem lies @line 398 in /etc/rc.d/rc.sysinit. You'll see, Wink

Now, there is a bug in woof where the variable DEVTMPFSFLG gets set. In out situation, it should get set to 0. As you will see it's set to 2. That will make those entries irrelevant to us, but still should probably be fixed.

More later..

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
sszindian


Joined: 24 Apr 2010
Posts: 805
Location: Pennsylvania U.S.

PostPosted: Tue 09 Jul 2013, 18:27    Post subject: HP 1050 all-in-one printer  

rcrsn51 wrote:

As you know, there are two steps to installing a printer in CUPS.

1. Detecting the physical device through Add Printer / Find New Printers.
2. Providing the correct printer driver software.

Which one are we talking about?
-----------------------------------------------------------------------------------------------------------

I only ever use Find New Printers!

I can't understand why it doesn't find the HP 1050? I'm aware nothing has changed since 5.5?

I believe I've tried all the little 'tricks' you've taught me over several versions of puppy's!

>>>---Indian------>

_________________
Cloud Computing For Every Puppy (a .pet)
http://murga-linux.com/puppy/viewtopic.php?t=69192
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12945
Location: Stratford, Ontario

PostPosted: Tue 09 Jul 2013, 18:42    Post subject:  

@jim1911 and sszindian:

Here is something to try:

1. Install the attached PET.

2. Run:
rmmod usblp
/etc/init.d/cups restart


3. Run CUPS.
cups_usb_patch_slacko-5.6.pet
Description 
pet

 Download 
Filename  cups_usb_patch_slacko-5.6.pet 
Filesize  7.82 KB 
Downloaded  315 Time(s) 
Back to top
View user's profile Send private message 
sszindian


Joined: 24 Apr 2010
Posts: 805
Location: Pennsylvania U.S.

PostPosted: Tue 09 Jul 2013, 19:32    Post subject: Cups Patch  

rcrsn51 wrote:

1. Install the attached PET.

2. Run:
rmmod usblp
/etc/init.d/cups restart

3. Run CUPS.
-------------------------------------------------
Yep... that patch was needed. the 1050 printer found, setup and printed a test-page in about a minute!

'As always, Thanks rcrsn51' and hope this helps mic, looks like he has a nice build going here!

>>>---Indian------>

_________________
Cloud Computing For Every Puppy (a .pet)
http://murga-linux.com/puppy/viewtopic.php?t=69192
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12945
Location: Stratford, Ontario

PostPosted: Tue 09 Jul 2013, 19:50    Post subject:  

sszindian: Excellent. However, you will need to permanently blacklist the usblp module for this to keep working.

Could you try one more thing for me:

1. Do a clean install.
2. Run: chmod 700 /usr/lib/cups/backend/usb
3. Run CUPS.

@Mick: This patch comes from compiling CUPS without the --disable-libusb option. So CUPS detects USB printers through libusb (like SANE) instead of through the device node.

However, a few drivers need to work through /dev/usb/lp0, so this is not a 100% solution.

I would like to hear from other users with USB printers - not just HP - about how they work.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8744
Location: qld

PostPosted: Tue 09 Jul 2013, 20:14    Post subject:  

Thanks rcrsn51,

I did notice that the 'usb' file in your pet was -rwx------ (0700) and is 2/3 the size of the original.

I'm just wondering though if when I revert the error in woof that causes the kernel to take over creation of device nodes whether this will be a waste of effort.

I'll run the current slacko alpha on my file/print server (cannon mp490) and see what happens, also with my dev version.

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 12945
Location: Stratford, Ontario

PostPosted: Tue 09 Jul 2013, 20:57    Post subject:  

Even though my USB printers work, there is something else going on with udev. In other Puppies, /etc/udev/rules.d/55-cups.rule is responsible for giving the printer device nodes 666 permissions.

In this Slacko, it isn't working - /dev/usb/lp0 always has 660. But this is good enough to allow printing.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8744
Location: qld

PostPosted: Tue 09 Jul 2013, 21:09    Post subject:  

rcrsn51 wrote:
Even though my USB printers work, there is something else going on with udev. In other Puppies, /etc/udev/rules.d/55-cups.rule is responsible for giving the printer device nodes 666 permissions.

In this Slacko, it isn't working - /dev/usb/lp0 always has 660. But this is good enough to allow printing.
And the permissions is I believe the problem. SFR touched on it.

Now, the bug in woof is setting a new variable, DEVTMPFSFLG to 2 in the initrd and /etc/rc.d/rc.sysinit. It shouldn't becuase the condition is if udev >= 176. We are using 167. Our DEVTMPFSFLG var should be 0. However it is working anyway.

Here are the relevant lines from rc.sysinit (@line 395)
Code:
DEVTMPFSFLG=2
#130618 devtmpfs-enabled kernel, initrd may have loaded it on /dev, if DEVTMPFSFLG<>0.
if [ $DEVTMPFSFLG -ne 0 ];then
 #device nodes created by kernel in initrd are all 'root' group. fix (before starting udevd)...
 chmod 660 /dev/* 2>/dev/null
 chmod 666 /dev/null
 chmod 666 /dev/zero
 chgrp tty /dev/[pt]ty*
 chgrp  /dev/console
 chgrp video /dev/fb0
 chgrp floppy /dev/fd[0-9]
 chgrp disk /dev/[hs]d[a-z]*
 chgrp disk /dev/fuse
 chgrp disk /dev/mmcblk*
 chgrp cdrom /dev/sr[0-9]
fi


Probably should be added to that:
Code:
chmod 666 /dev/usb/* #rcrsn51
chmod -R 1777 /dev/shm #SFR
chmod 666 /dev/urandom


That *should* be superfluous in my next release because I'll fix the woof bug and we should then be back to the old method of udev creating device nodes.

EDIT: one other thing.

Pemasu probably hasn't got the variable in his rc.sysinit. That block of code will error with "unary operator expected" or something because the variable isn't in quotes. Therefore that block fails to run (which is a good thing for pemasu).

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
Jim1911

Joined: 19 May 2008
Posts: 2460
Location: Texas, USA

PostPosted: Tue 09 Jul 2013, 22:47    Post subject:  

rcrsn51 wrote:
@jim1911 and sszindian:

Here is something to try:

1. Install the attached PET.

2. Run:
rmmod usblp
/etc/init.d/cups restart


3. Run CUPS.
Do you need me to try this in view of 01micko's comments? If so, it will have to be tomorrow.
Jim
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8744
Location: qld

PostPosted: Wed 10 Jul 2013, 00:21    Post subject:  

Jim1911 wrote:
Do you need me to try this in view of 01micko's comments? If so, it will have to be tomorrow.
Jim


Up to you Jim, but I just did a test build with 3.4.52 (patches for f2fs worked Cool ) and the perms problems mentioned by SFR with using Firefox as Spot have disappeared after fixing the woof bug Smile .

I'll post the info on to BK.

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 6627
Location: Valåmoen, Norway

PostPosted: Wed 10 Jul 2013, 06:25    Post subject:  

SFR wrote:
@Zigbert: could you please add support for f2fs to your pmount version (see original pmount)?
Would be nice. Smile
I have missed this one... When did it happened

If the support came after Wary 5.5, I can diff that pmount with the latest.
I am the one to blame for not keeping the original pmount that I have based my version of Embarassed


Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 8744
Location: qld

PostPosted: Wed 10 Jul 2013, 06:32    Post subject:  

Sigmund, I just plucked this one from the recent woof tree..(attached)


---------------------------------------

SFR wrote:
@Mick: did you mention to Barry about this yet (or should I do it?)? Maybe it's an easy fix for him..?
Well, in the end it's not a major issue, but could be confusing for a user who formats a partition to another filesystem and ends up with useless icon on the pinborard (unless X will be restarted).


Reported Wink
pmount.gz
Description  REAL gzip
gz

 Download 
Filename  pmount.gz 
Filesize  7.14 KB 
Downloaded  303 Time(s) 

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 1761

PostPosted: Wed 10 Jul 2013, 07:53    Post subject:  

01micko/rc.sysinit wrote:
chmod 660 /dev/* 2>/dev/null

It makes sense now. Wink
01micko wrote:
Reported Wink

Thanks. And yes, a blank CD/DVD icon indeed doesn't show up on the pinboard and I have vague memory that it used to do this before, somewhere in 5.3.3 or 5.4...

@Zigbert:
Hopefully, it's just a matter of a few additional bytes in:
VALIDPARTS="`echo "$PARTSINFO" | grep -E 'f2fs|vfat|msdos...
It seems to work fine with this, but I might be wrong...
EDIT: almost forgot again - Pburn creates a debug file in /root named "test" (looks familiar Wink ).

Greetings!
Screenshot.jpg
 Description   
 Filesize   27.39 KB
 Viewed   654 Time(s)

Screenshot.jpg


_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.

Last edited by SFR on Wed 10 Jul 2013, 13:05; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 31 [465 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, ..., 29, 30, 31 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0692s ][ Queries: 12 (0.0137s) ][ GZIP on ]