(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 25 Jan 2021, 17:04
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Slacko32/64 700 BETA 2
Moderators: Flash, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 18 of 35 [522 Posts]   Goto page: Previous 1, 2, 3, ..., 16, 17, 18, 19, 20, ..., 33, 34, 35 Next
Author Message
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1566

PostPosted: Sat 17 Sep 2016, 16:28    Post subject:  

I tried adding this to the end here and that did indeed silence it Laughing

/etc/rc.d/rc.sysinit wrote:
# always use devtmpfs
mount -t devtmpfs devtmpfs /dev 2>/dev/null
Back to top
View user's profile Send private message 
jlst

Joined: 23 Nov 2012
Posts: 571

PostPosted: Sat 17 Sep 2016, 19:28    Post subject:  

I've been editing the puppyinstaller script, and i think this is good enough. I tested frugal and full installs.. all good. Of course this is assuming you have used grub4dosconfig before to install the bootloader..

NEWGRUBTEXT
Code:
If you have GRUB installed, find the 'menu.lst' file (usually in /boot
in the partition in which GRUB is installed) and insert the text,
or, if you have GRUB4DOS installed, find the 'menu.lst' file (usually
in / in the partition in which GRUB4DOS is installed) and insert this:

title Puppy Linux 6.9.6.1 full install in sda6
#root (hd0,0) <-- GRUB legacy, ex: hd1,0
uuid e0d252ba-c4ac-41cd-82d5-585af7d66cab
kernel /boot/vmlinuz root=PARTUUID=3afa3af9-06 pmedia=atahd
#                    root=/dev/sda6

-----
For GRUB you must set root (hdX,X) to the correct values and comment/remove uuid. root (hdX,X) is also supported by grub4dos..


fstab..
Quote:
#/dev/sda6 / ext3 defaults 0 1
UUID=e0d252ba-c4ac-41cd-82d5-585af7d66cab / ext3 defaults 0 1
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /dev/pts devpts gid=2,mode=620 0 0
/dev/fd0 /mnt/floppy auto noauto,rw 0 0


so i think this is a wise solution, the /dev/sdXX as comments..
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8787
Location: qld

PostPosted: Sat 17 Sep 2016, 23:25    Post subject: Re: Weird Cups problem  

gyro wrote:
peebee wrote:
The problem is that Cups does not print after a reboot until the attached pet is installed - and it has to be freshly installed - i.e. after a reboot it has to be uninstalled and then re-installed upon which Cups bursts into life.
Same problem here on slacko-6.9.6.1 (32-bit).
I successfully setup my networked printer, and printed a test file.
After reboot I printed the test file a second time, nothing printed.
Uninstalled and installed a pet, printed test file a third time, success.

According to CUPS, there were 3 successfull jobs. But I only got the first and the third printouts, (Geany adds a header that includes the date and time of the printing). So it looks like the second print job disappeared down some bit bucket somewhere.
No idea why?

gyro


I don't know if the issue is perms on /tmp

Now, /tmp is a symlink to /initrd/mnt/tmpfs/tmp and perms are 0755. Usually /tmp requires 1777 (sticky 'bit' set).

EDIT:

This has to be it. /usr/local/petget/installpkg.sh resets perms on /tmp to 1777 if a dodgy package is installed. This affects the original dir from the symlink. Of course this doesn't survive a reboot so .. what is the best way to restore perms on /tmp at bootup? That will be the solution.

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

Joined: 23 Nov 2012
Posts: 571

PostPosted: Sun 18 Sep 2016, 00:37    Post subject:  

i placed the code in rc.sysinit ("making the filesystem usable") https://github.com/puppylinux-woof-CE/woof-CE/commit/8abe959d41ad96e8a9ea1e1dc5024fff48b77c54
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 4391
Location: Worcestershire, UK

PostPosted: Sun 18 Sep 2016, 02:33    Post subject:  

01micko wrote:
This has to be it. /usr/local/petget/installpkg.sh resets perms on /tmp to 1777 if a dodgy package is installed. This affects the original dir from the symlink. Of course this doesn't survive a reboot so .. what is the best way to restore perms on /tmp at bootup? That will be the solution.

jlst wrote:
i placed the code in rc.sysinit ("making the filesystem usable") https://github.com/puppylinux-woof-CE/woof-CE/commit/8abe959d41ad96e8a9ea1e1dc5024fff48b77c54

That fixes it - many thanks both....

_________________
LxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 1799
Location: Brisbane, Australia

PostPosted: Sun 18 Sep 2016, 07:01    Post subject:  

jlst wrote:
i placed the code in rc.sysinit ("making the filesystem usable") https://github.com/puppylinux-woof-CE/woof-CE/commit/8abe959d41ad96e8a9ea1e1dc5024fff48b77c54
Unfortunately when I tried to boot slacko 6.9.6.1(32) with the latest rc.sysinit from 'rationalise', I couldn't get X to start. Not sure what's going on there.
So, after back tracking to an older rc.sysinit, I can confirm that the non-printing problem is fixed with a
Code:
chmod 1777 /initrd/mnt/tmpfs/tmp
In the absense of the rc.sysinit fix. I added a
Code:
chmod 1777 /mnt/tmpfs/tmp
into init at the point that the directory is created.
This worked. So I have a patch to "init" but I haven't pushed it yet.
I think it's slightly tidier to fix the problem at it's source.
(I also checked, and /tmp is fine in pupmode=13).

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1799
Location: Brisbane, Australia

PostPosted: Sun 18 Sep 2016, 07:32    Post subject:  

@gcmartin,
There is no reason why you could not have a number of "BOOT_SPECS" files stored on your system, and copy the appropriate one into "initrd.gz" before the next boot, using "file2initrd".
The current "bootspecs" utility is not setup to do that.

gyro
Back to top
View user's profile Send private message 
jlst

Joined: 23 Nov 2012
Posts: 571

PostPosted: Sun 18 Sep 2016, 08:24    Post subject:  

gyro i went ahead and pushed this commit: https://github.com/puppylinux-woof-CE/woof-CE/commit/fa1a681f5d34e358563999d00522ec2705ec79fe

i noticed /tmp is a symlink to /initrd/mnt/tmpfs/tmp only when there is a pupsave, so i created an empty savefile for a usb to test this... then i was faced with the upgrade option... it didn't do well with an empty savefile.... so i think i'll add a check to prevent upgrades when the old version = ""

Last edited by jlst on Sun 18 Sep 2016, 08:29; edited 1 time in total
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1799
Location: Brisbane, Australia

PostPosted: Sun 18 Sep 2016, 08:29    Post subject:  

gyro wrote:
jlst wrote:
i placed the code in rc.sysinit ("making the filesystem usable") https://github.com/puppylinux-woof-CE/woof-CE/commit/8abe959d41ad96e8a9ea1e1dc5024fff48b77c54
Unfortunately when I tried to boot slacko 6.9.6.1(32) with the latest rc.sysinit from 'rationalise', I couldn't get X to start. Not sure what's going on there.
Sorry, my bad.
After downloading I forgot to check it had execute permisssions.
Strange how things don't work quite right when rc.sysint can't execute.

Still leaves the question, fix the /initrd/mnt/tmpfs/tmp permissions bug in "init" or "rc.sysinit"?

Edit: well you've patched init anyway.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1799
Location: Brisbane, Australia

PostPosted: Sun 18 Sep 2016, 08:52    Post subject:  

jlst wrote:
it didn't do well with an empty savefile.... so i think i'll add a check to prevent upgrades when the old version = ""
My experience is that puppy has never done well with an empty savefile or savefolder. So it's a wider issue that just upgrades. Should really reject empty savefile/folder erlier that in upgrade code.
Perhaps we could reject any savefile/folder that doesn't contain "/initrd/DISTRO_SPECS"?
In "setup_save_file()", immediately after the "#[ "PUPSAVE" ] && decrypt directory at SAVE_LAYER", line.

gyro
Back to top
View user's profile Send private message 
zigbert


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

PostPosted: Sun 18 Sep 2016, 13:11    Post subject:  

zigbert wrote:
zigbert wrote:
Major issue in 6.9.6.1 - both 32/64-bit

Piping output of find into grep fails.

pMusic (and probably other scripts) has used this mechanism for years, so it would have been detected if existing in previous Puppies.

Quote:
# find /mnt/sdb1/musikk/ | wc -l
70326
# find /mnt/sdb1/musikk/ -name *mp3 | wc -l
64658

# find /mnt/sdb1/musikk/ | grep mp3 | wc -l
8506

# find /mnt/sdb1/musikk/ -name *mp3 | grep mp3 | wc -l
64658


The 'red' command ends with the notice (not sent to stderr):
Binary file (standard input) matches
Code:
#find /mnt/sdb1/musikk/ 2> /dev/null | grep mp3 2> /dev/null
[...]
/mnt/sdb1/musikk/mp3/Blink 182 - Point of view.mp3
/mnt/sdb1/musikk/mp3/Johnny Bode - Det är så underbart at...mp3
Binary file (standard input) matches


Any clues?
Using the -a switch forces grep to read binary files (corrupted files) as text. This partly fixes the issue.
Code:
# find /mnt/sdb1/musikk/ | grep -a mp3 | wc -l
65154

The next problem was awk that removes duplicated lines depending on the value in a column by
Code:
awk -F'|' '!a[$1]++'
Now fixed by defining LANG=C
Code:
LANG=C awk -F'|' '!a[$1]++'


I will update pMusic

Next chapter:
Grep is the troublemaker, and it troubles with special chars.

With default settings (Slacko 6.9.6.1):
Code:
# echo "$LANG"
en_US.UTF-8
# grep mp3 ./index_mymusic.bak | wc -l           
14680
#
# LANG=en_US.UTF-8 grep mp3 ./index_mymusic.bak | wc -l
14680
With LANG set to something not UTF
Code:
# LANG=en_US grep mp3 ./index_mymusic.bak | wc -l     
70971
# LANG=C grep mp3 ./index_mymusic.bak | wc -l   
70971

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


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

PostPosted: Sun 18 Sep 2016, 13:20    Post subject:  

In Slacko 6.3.2 grep works as expected, but it includes an older version of grep - 2.14.
Grep in Slacko 6.9.6.1 is version 2.25

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


Joined: 11 Oct 2008
Posts: 8787
Location: qld

PostPosted: Sun 18 Sep 2016, 16:05    Post subject:  

zigbert wrote:
In Slacko 6.3.2 grep works as expected, but it includes an older version of grep - 2.14.
Grep in Slacko 6.9.6.1 is version 2.25


Did you happen to try busybox grep? You could perhaps use it on the condition of the 'grep -V'. IDK if it would work because I only have one album that has special chars and that seem to work anyway. (Just a note - these alphas ship busybox 1.25.0)

BTW - 'streamripper' package was broken. I'll fix it soon.

_________________
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: 6629
Location: Valåmoen, Norway

PostPosted: Sun 18 Sep 2016, 19:52    Post subject:  

The following text is for grep testing. I have also attached the same text in a file in case copy/pasting converts it (copy/paste worked for me). The gz is fake - it is a plain text file.
Code:
line 1.mp3
Gartnerlosjen - Tøffe tak Tute.mp3
The Beach Boys - Surfin´ U.S.A.mp3
Mötley Crüe - Primal Scream.mp3
line 5.mp3


Here is my result with plain grep and with the -a switch
Code:
# grep mp3 /root/forum     
line 1.mp3
Binary file /root/forum matches
#
# grep -a mp3 /root/forum   
line 1.mp3
Gartnerlosjen - Tøffe tak Tute.mp3
The Beach Boys - Surfin´ U.S.A.mp3
Mötley Crüe - Primal Scream.mp3
line 5.mp3
And the result with(out) UTF-8
Code:
# LANG=en_US grep mp3 /root/forum
line 1.mp3
Gartnerlosjen - Tøffe tak Tute.mp3
The Beach Boys - Surfin´ U.S.A.mp3
Mötley Crüe - Primal Scream.mp3
line 5.mp3
#
# LANG=en_US.UTF-8 grep mp3 /root/forum
line 1.mp3
Binary file /root/forum matches
#


How do I know if I use the busybox alternative?
Code:
# grep --version
grep (GNU grep) 2.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
forum.gz
Description 
gz

 Download 
Filename  forum.gz 
Filesize  124 Bytes 
Downloaded  141 Time(s) 

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


Joined: 11 Oct 2008
Posts: 8787
Location: qld

PostPosted: Sun 18 Sep 2016, 21:46    Post subject:  

zigbert - My result is same as yours (slacko64-6.9.6.1) but I added busybox grep invocation.. works as expected.

Code:
# grep -V                 
grep (GNU grep) 2.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
# grep mp3 /root/forum     
line 1.mp3
Binary file /root/forum matches
# grep -a mp3 /root/forum 
line 1.mp3
Gartnerlosjen - Tøffe tak Tute.mp3
The Beach Boys - Surfin´ U.S.A.mp3
Mötley Crüe - Primal Scream.mp3
line 5.mp3
# LANG=en_US grep mp3 /root/forum
line 1.mp3
Gartnerlosjen - Tøffe tak Tute.mp3
The Beach Boys - Surfin´ U.S.A.mp3
Mötley Crüe - Primal Scream.mp3
line 5.mp3
# LANG=en_US.UTF-8 grep mp3 /root/forum
line 1.mp3
Binary file /root/forum matches
# busybox grep mp3 /root/forum         
line 1.mp3
Gartnerlosjen - Tøffe tak Tute.mp3
The Beach Boys - Surfin´ U.S.A.mp3
Mötley Crüe - Primal Scream.mp3
line 5.mp3
# echo $LANG
en_AU.UTF-8

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 18 of 35 [522 Posts]   Goto page: Previous 1, 2, 3, ..., 16, 17, 18, 19, 20, ..., 33, 34, 35 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. 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.2891s ][ Queries: 12 (0.1320s) ][ GZIP on ]