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 Tue 11 Dec 2018, 02:59
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
StretchDog
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 11 of 11 [163 Posts]   Goto page: Previous 1, 2, 3, ..., 9, 10, 11
Author Message
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Fri 26 Oct 2018, 15:49    Post subject:  

quirkian2new wrote:
But found that hda1 and hda2 were automatically mounted at bootup ? is there any boot parameter that prevents such automatical mounting of hda1 and hda2 ?


Yes, add noauto to the kernel boot command line.

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
quirkian2new

Joined: 06 Oct 2015
Posts: 123
Location: on the inter-planet train

PostPosted: Fri 26 Oct 2018, 23:00    Post subject:  

Thanks Fred,

i add noauto to the kernel boot command line, but my sda2 is still automatically mounted under /mnt/sda2

sda2 is the partition where i placed the live folder. is it possible none of my harddisk partition mounted while all running in ram. My experience with Fatdog64 (huge initrd) is that none of my harddisk partition mounted automatically.
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1305

PostPosted: Sun 28 Oct 2018, 01:44    Post subject:  

I'm getting a lot of "structure needs cleaning" errors. How do I fix them. I'm running stetchdog in a virtualbox. It was working well for quite a while but I don't see an option to do e2fsk in the boot menu.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Mon 29 Oct 2018, 06:11    Post subject:  

@s243a
Quote:
I'm getting a lot of "structure needs cleaning" errors. How do I fix them. I'm running stetchdog in a virtualbox. It was working well for quite a while but I don't see an option to do e2fsk in the boot menu.


Adding parameter fsck to the kernel boot command line will check all partitions.
(but I didn't test with virtualbox)

@quirkian2new
Quote:
i add noauto to the kernel boot command line, but my sda2 is still automatically mounted under /mnt/sda2


Yes, boot partition is always mounted at start, but to unmount you can add a simple scriptt to /root/Startup
Code:
#!/bin/sh

hdrv=$(cat /mnt/live/etc/homedrv | cut -d'/' -f3)
umount /dev/$hdrv

(but need to boot with copy2ram to make this work)

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Wed 07 Nov 2018, 13:32    Post subject:  

Replying to questions from here:
http://murga-linux.com/puppy/viewtopic.php?p=1009302#1009302

Quote:
Porteus Modules: How can load then at startup, how can I extract them to convert them to SFS

How can I chanbge from single click to double click in XFCE.

I use Pocket with Firefox but it seems to be broken.

I had a question about printing but I solved that.
My Network connection keeps dropping and I dont know where to fixit.

My wireless connection only recognizes my wireless printer but not the wifi.

I am completely new to both Debian and Puppy, I have everythin in Porteus.

Thanks in advance

Rafael Alcocer


Hello Rafael,

First, there maybe some confusion.
StretchDog is using method for booting borrowed from Porteus (with some cheatcodes working, not all).
For the rest it has nothing to do with Porteus.
So forget about loading .xzm modules.

Quote:
How can I chanbge from single click to double click in XFCE

In the Preferences of Thunar and in Desktop settings (right-click on Desktop)

For the other problems you have, please provide more details.

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
trister

Joined: 01 Mar 2015
Posts: 110

PostPosted: Wed 14 Nov 2018, 11:09    Post subject:  

trister wrote:

Is it possible in the EXIT: boot option to disable the save session message when shutting down (or at least make default the Do Not Save option) ?
I want to save the session only when I want (eg with save2flash).


I'm returning to that question. I did make a squashfs with the script you pointed out to me but I noticed something yesterday:

While the posted script does sets as default the "Do Not Save" graphical enviroment (window popup) , it does not seem to change the text based question for saving (the one that it shown outside the windows manager.

Is there another location for the save-on-exit poweroff script? (when outside window managers)
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Wed 14 Nov 2018, 16:13    Post subject:  

trister wrote:
trister wrote:

Is it possible in the EXIT: boot option to disable the save session message when shutting down (or at least make default the Do Not Save option) ?
I want to save the session only when I want (eg with save2flash).


I'm returning to that question. I did make a squashfs with the script you pointed out to me but I noticed something yesterday:

While the posted script does sets as default the "Do Not Save" graphical enviroment (window popup) , it does not seem to change the text based question for saving (the one that it shown outside the windows manager.

Is there another location for the save-on-exit poweroff script? (when outside window managers)


Hi trister, the script for to Save or NoSave from console is: /usr/local/bin/snap

Attached modified version that wil not save after waiting 10 seconds.

The part for "dialog" changed to make it work that way is:
Code:
           dialog --timeout 10 --yes-label "SAVE" --no-label "NO SAVE" --yesno "Press ENTER key within 10 seconds to save the session...
Or, press TAB then ENTER to not save session...
After waiting 10 seconds the session will not be saved..." 0 0  >/dev/console
ret=$?
     [ $ret -ne 0 ] || SAVE="yes"
   
   if [ "$SAVE" != "" ];then
echo
echo """Saving session..."""

/usr/bin/snapmergepuppy 2> /dev/null

  else
echo
echo """Session not saved"""   
   fi

Change text or timeout value as you like.

EDIT: Above code is not how it is in reality, see:
http://murga-linux.com/puppy/viewtopic.php?p=1010170#1010170

Fred
snap-nosave.tar.gz
Description  Extract and copy 'snap' (and replace) to /usr/local/bin/
gz

 Download 
Filename  snap-nosave.tar.gz 
Filesize  996 Bytes 
Downloaded  22 Time(s) 

_________________
Dog Linux website

Last edited by fredx181 on Thu 15 Nov 2018, 04:55; edited 1 time in total
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2709

PostPosted: Wed 14 Nov 2018, 20:34    Post subject:  

ANSI esc code didn't quote very well in the previous posting.

\003 (at least for me) .... test post ....
Code:
while :
do
        printf '\033[s'
        printf '\033[1;31mSession not saved\033[0m'
        sleep 1
        printf '\033[u'
        printf '\033[s'
        printf '\033[1;32mSession not saved\033[0m'
        printf '\033[u'
        sleep 1
done

Seems to work for me (cut code, open xterm, middle mouse click to paste and press enter and I see red and green alternations of "Session not saved"

A nice feature of (real) xterm is its better true-colour support.
Code:
awk 'BEGIN{
    s="/\\/\\/\\/\\/\\"; s=s s s s s s s s;
    for (colnum = 0; colnum<77; colnum++) {
        r = 255-(colnum*255/76);
        g = (colnum*510/76);
        b = (colnum*255/76);
        if (g>255) g = 510-g;
        printf "\033[48;2;%d;%d;%dm", r,g,b;
        printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b;
        printf "%s\033[0m", substr(s,colnum+1,1);
    }
    printf "\n";
}'

whereas I believe urxvt isn't supportive
s.jpg
 Description   
 Filesize   7.98 KB
 Viewed   259 Time(s)

s.jpg


_________________
( ͡° ͜ʖ ͡°) :wq
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1305

PostPosted: Thu 15 Nov 2018, 01:38    Post subject:  

fredx181 wrote:
@s243a
Quote:
I'm getting a lot of "structure needs cleaning" errors. How do I fix them. I'm running stetchdog in a virtualbox. It was working well for quite a while but I don't see an option to do e2fsk in the boot menu.


Adding parameter fsck to the kernel boot command line will check all partitions.
(but I didn't test with virtualbox)


I can report that adding this option fixed my problem Smile
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3573
Location: holland

PostPosted: Thu 15 Nov 2018, 04:46    Post subject:  

rufwoof wrote:
ANSI esc code didn't quote very well in the previous posting.
...


Yes, it's because the forum doesn't show the special character with copy/paste.
In reality it looks as in screenshot below.

Can be this also, modified echo lines (note that "dialog" display works only from console (>/dev/console)):
Code:
           dialog --timeout 10 --yes-label "SAVE" --no-label "NO SAVE" --yesno "Press ENTER key within 10 seconds to save the session...
Or, press TAB then ENTER to not save session...
After waiting 10 seconds the session will not be saved..." 0 0  >/dev/console
ret=$?
     [ $ret -ne 0 ] || SAVE="yes"
   
   if [ "$SAVE" != "" ];then
echo
echo -e "\e[0;32mSaving session...\033[0m"
/usr/bin/snapmergepuppy 2> /dev/null

  else
echo
echo -e "\e[0;31mSession not saved\033[0m" 
   fi


Fred
2018-11-15-092922_964x213_scrot_764x169.png
 Description   
 Filesize   76.12 KB
 Viewed   219 Time(s)

2018-11-15-092922_964x213_scrot_764x169.png


_________________
Dog Linux website
Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 1117

PostPosted: Thu 15 Nov 2018, 17:29    Post subject:  

rufwoof wrote:


A nice feature of (real) xterm is its better true-colour support. ...
whereas I believe urxvt isn't supportive


urxvt can be compiled with true color support. (For Fatdog64 you can find a contrib package at the link in my signature).

_________________
Fatdog64-800|+Packages|Kodi|Findnrun|+forum|gtkmenuplus
Back to top
View user's profile Send private message 
trister

Joined: 01 Mar 2015
Posts: 110

PostPosted: Mon 19 Nov 2018, 02:34    Post subject:  

fredx181 wrote:


Hi trister, the script for to Save or NoSave from console is: /usr/local/bin/snap

Attached modified version that wil not save after waiting 10 seconds.

Fred


Thanks Fred.
I used your file and worked very well Smile

I'll post here an updated squashfs that changes the default save option.
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2709

PostPosted: Mon 19 Nov 2018, 06:19    Post subject:  

This might have a impact ??
https://www.phoronix.com/scan.php?page=news_item&px=Debian-No-Vendor-Specific-Patch
Quote:
Debian Packages To Eliminate Vendor-Specific Patches, Affecting Downstreams Like Ubuntu

_________________
( ͡° ͜ʖ ͡°) :wq
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 11 of 11 [163 Posts]   Goto page: Previous 1, 2, 3, ..., 9, 10, 11
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.0942s ][ Queries: 13 (0.0174s) ][ GZIP on ]