How do I stop quicksetup from coming up?

Moderator: Forum moderators

Post Reply
Lassar
Posts: 107
Joined: Mon Jan 18, 2021 12:59 am
Been thanked: 1 time

How do I stop quicksetup from coming up?

Post by Lassar »

Got it so the firewall comes up.

In the remaster copied /init.d/rc.wall to /temp/ect/init.d/rc.wall.
Copied /ect/localtime to /temp/ect/localtime.

But how do I stop quicksetup from coming up?

User avatar
bigpup
Moderator
Posts: 7319
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 964 times
Been thanked: 1624 times

Re: How do I stop quicksetup from coming up?

Post by bigpup »

What specific version of Puppy are you remastering?

Is this only going to be used on one specific computer?

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Lassar
Posts: 107
Joined: Mon Jan 18, 2021 12:59 am
Been thanked: 1 time

Re: How do I stop quicksetup from coming up?

Post by Lassar »

It's on Bionicpup64.

For right now it's only for this computer, but maybe
later on use it on another computer.

HerrBert
Posts: 365
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 19 times
Been thanked: 135 times

Re: How do I stop quicksetup from coming up?

Post by HerrBert »

To prevent quicksetup from running on every time you boot in live mode you can add a file /etc/personal_settings_popup_disabled to your remaster.

But this will not prevent welcome1stboot from running at boot.
If you also don't want welcome1stboot running on every startup you can instead add an empty file /var/local/delayedrun_firstboot_flag to your remaster¹ or preferably to an additional adrv or ydrv.
If this file is present at boot, quicksetup and welcome1stboot will not be started.

¹) IIRC adding/editing things in /var only works if you do a manual remaster.

User avatar
bigpup
Moderator
Posts: 7319
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 964 times
Been thanked: 1624 times

Re: How do I stop quicksetup from coming up?

Post by bigpup »

If you are going to use it on a different computer.
You will need to do settings for that computer.
So may need to keep it showing Quicksetup.

After you make setting and make a save.
On reboot Quicksetup should no longer pop up.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Lassar
Posts: 107
Joined: Mon Jan 18, 2021 12:59 am
Been thanked: 1 time

Re: How do I stop quicksetup from coming up?

Post by Lassar »

Does the remasterpup2 follow symbolic links in root.

Could you put a symbolic link to in root to
/var/local/delayedrun_firstboot_flag, and have that to work?

If not, remasterpup2 needs to be rewritten to include /var directory.

HerrBert
Posts: 365
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 19 times
Been thanked: 135 times

Re: How do I stop quicksetup from coming up?

Post by HerrBert »

I don't understand your question at all...

What do you want to do? A symbolic link from /var/local/delayedrun_firstboot_flag to root will do nothing at all... Vice versa will do neither!

The script /usr/sbin/delayedrun looks for a real file named /var/local/delayedrun_firstboot_flag. So no, a link will not do the job.

remasterpup2 is known to be outdated for a long time. nic007 aka amethyst has written some scripts for creating alternative remasters and so on. Have a look at viewtopic.php?t=1694

Another hint:

If you only want to change your local time and enable your firewall you may consider not to do a remaster, but just add these changes from /initrd/pup_rw/WHATEVER to an additional adrv.

Feel free to ask if you don't know how to do it.

williams2
Posts: 1066
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 306 times

Re: How do I stop quicksetup from coming up?

Post by williams2 »

If remaster2 saves /root/.xinitrc
you could add this line to the file /root/.xinitrc

touch /var/local/delayedrun_firstboot_flag

for example you could change this:
/usr/sbin/delayedrun &
to this
touch /var/local/delayedrun_firstboot_flag
/usr/sbin/delayedrun &

then remaster.

or, if remaster2 saves /etc/rc.d/rc.local then
you could put touch /var/local/delayedrun_firstboot_flag
in the file /etc/rc.d/rc.local

User avatar
mikeslr
Posts: 3019
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 174 times
Been thanked: 955 times

Re: How do I stop quicksetup from coming up?

Post by mikeslr »

Lassar wrote: Mon Dec 06, 2021 1:54 am

But how do I stop quicksetup from coming up?

quicksetup only runs if you don't have a SaveFile/Folder.
The meaning of communication is the exchange of information between 2 or more people. You still have not responded to my question here, viewtopic.php?p=43511#p43511 about the difficulty you were having creating a SaveFile/Folder. If you haven't created one, we don't know what you are doing, or how you are doing it.

User avatar
mikeslr
Posts: 3019
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 174 times
Been thanked: 955 times

Re: How do I stop quicksetup from coming up?

Post by mikeslr »

Lassar, if you use nicOS-Utilities-Suite as I suggested here, viewtopic.php?p=43511#p43511 you could then use its "Save2SFS" module to create the adrv.sfs Herrbert suggested above. Do that after you've made the edits he suggested in his other post on this thread. I think* they are correct. I'm reasonably sure* an adrv.sfs will 'capture' those settings. Or perhaps post a question on the nicOS-Utilities-Suite thread, viewtopic.php?p=12983#p12983

*I recall this question arose on the old Forum, but don't recall the answer, and didn't recall it when I used Save2SFS. I must have done something wrong. Although the First-Run GUI appears, all my customizations and settings had been captured; and in about 10 seconds the GUI disappears.

While bigpup is correct in that you will need First-run if you port your remaster to a different computer, it can still be able to be run from Menu>Setup>QuickSetup first run settings. I don't think the edits Herrbert suggest will prevent that. But that's a guess. Asking amethyst (known previously on the 'old forum' as nic007) is likely to result in a better informed reply.

Lassar
Posts: 107
Joined: Mon Jan 18, 2021 12:59 am
Been thanked: 1 time

Re: How do I stop quicksetup from coming up?

Post by Lassar »

Am not impressed with nicOS-Utility-Suite remaster.

After installing glibc 28, removed glibc 27 library.

In the remaster the glibc 27 files are back.

In addition, if you don't do the check, the remaster
classic doesn't include the windowmanger file.

Throwing me to the command line.

And would have to type xwin icewm.

Then it would come up, and get the internet.

So made sure it did the check, and put windowsmanager file in.

So now it boots right up into icewm. No command line.

The trouble is on booting up there is no internet.

Have to restart X server, and then get the internet.

Here is part of my .xinitrc file

Code: Select all


touch /var/local/delayedrun_firstboot_flag
dhcpcd &

So how do I get the internet straight up, upon booting up
into icewm?

Lassar
Posts: 107
Joined: Mon Jan 18, 2021 12:59 am
Been thanked: 1 time

Re: How do I stop quicksetup from coming up?

Post by Lassar »

Figured out how to get the internet.

Here's the code in my .xinitrc file

Code: Select all


touch /var/local/delayedrun_firstboot_flag
dhcpcd &
sleep 7
pkill dhcpcd
dhcpcd &
User avatar
AntonioPt
Posts: 271
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 110 times
Been thanked: 52 times

Re: How do I stop quicksetup from coming up?

Post by AntonioPt »

i made an update in welcome1stboot script
if screen is below then 800x600 it will display full Screen
Hope is usefull

Code: Select all

#!/bin/ash
#welcome

export TEXTDOMAIN=welcome1stboot
export OUTPUT_CHARSET=UTF-8

width=$( xwininfo -root | grep 'geometry' | awk '{print $2}' | cut -d 'x' -f1)
height=$(xwininfo -root | grep 'geometry' | awk '{print $2}' | cut -d 'x' -f2 | cut -d '+' -f1)
[ "$width" -le "800" ] && resize='resizable="true"'        || resize='resizable="false"'
[ "$width" -le "800" ] && w_W='default_width="'$width'"'   || w_W=""
[ "$width" -le "800" ] && w_H='default_height="'$height'"' || w_H=""

read -r ISSUE ETC < /etc/issue
W_MSG="$(gettext "Welcome,
This is the first time you are running ${ISSUE}!...")"

if check_internet ; then
  LABEL_INTERNET="$(gettext "Congratulations, you seem to be connected to the Internet. Experiment with mouse-over, left-click and right-click on the 'network' icon in the tray. Click on the icon on the right (or on the desktop) if you need to reconfigure the Internet connection")"
elif check_internet working_network ; then
  LABEL_INTERNET="$(gettext "There is a working network interface, but you are not connected to the Internet. Click on the 'connect' icon on the right, or on left-side of the desktop (do NOT double-click), to setup the Internet connection. Note the network status icon in the tray.")"
else
  LABEL_INTERNET="$(gettext "Click on the button on the right, or icon at left of the screen (one click only!). You will then see some buttons for choosing how you wish to connect to the Internet. It is easy...")"
fi

LABEL_INTERNET="$(gettext "<b>Internet connection</b>
${LABEL_INTERNET}")"
LABEL_NEEDHELP="$(gettext "<b>I need help!</b>
Explore the Menu -- see bottom-left of screen. Lots of local help is available -- select Help in the menu. The local Help page also has the Release Notes for this version of ${ISSUE}-- well worth checking out! When you get online, the web browser home page has many more links.")"
LABEL_SETUP="$(gettext '<b>Setup</b>
Want to install an upgraded video driver? Country localization? Printing? Sound? Mouse? Keyboard? Click here (or 'setup' icon at top of screen).')"

export WELCOME_DIALOG='
<window title="'$(gettext 'Welcome')'" icon-name="gtk-info" '$w_W' '$w_H' '$resize'>
  <vbox>
    <hbox border-width="7" space-expand="true" space-fill="true">
      <pixmap icon_size="4"><input file>/usr/share/doc/puppylogo96.png</input></pixmap>
      <text use-markup="true"><label>"<big>'"${W_MSG}"'</big>"</label></text>
    </hbox>
    <hbox border-width="7" space-expand="true" space-fill="true">
      <text space-expand="false" space-fill="false"><label>""</label></text>
      <text xalign="0" use-markup="true" space-expand="true" space-fill="true"><label>"'"${LABEL_INTERNET}"'"</label></text>
      <vbox space-expand="false" space-fill="false">
        <button>
          '$(/usr/lib/gtkdialog/xml_button-icon /usr/local/lib/X11/pixmaps/connect48.png huge)'
          <action>/usr/sbin/connectwizard & </action>
        </button>
      </vbox>
    </hbox>
    <hseparator></hseparator>
    <hbox border-width="7" space-expand="true" space-fill="true">
      <text space-expand="false" space-fill="false"><label>""</label></text>
      <text xalign="0" use-markup="true" space-expand="true" space-fill="true"><label>"'"${LABEL_SETUP}"'"</label></text>
      <vbox space-expand="false" space-fill="false">
        <button>
         '$(/usr/lib/gtkdialog/xml_button-icon /usr/local/lib/X11/pixmaps/configuration48.png huge)'
         <action>/usr/sbin/wizardwizard & </action>
        </button>
      </vbox>
    </hbox>
    <hseparator></hseparator>
    <hbox border-width="7" space-expand="true" space-fill="true">
      <text space-expand="false" space-fill="false"><label>""</label></text>
      <text xalign="0" use-markup="true" space-expand="true" space-fill="true"><label>"'"${LABEL_NEEDHELP}"'"</label></text>
      <vbox space-expand="false" space-fill="false">
        <text space-expand="false" space-fill="false"><label>""</label></text>
        <button>
         '$(/usr/lib/gtkdialog/xml_button-icon help.svg huge)'
         <action>basichtmlviewer file:///usr/share/doc/index.html & </action>
        </button>
      </vbox>
    </hbox>
    <hbox border-width="7" space-expand="true" space-fill="true">
      <pixmap><input file>/usr/share/doc/tray.png</input></pixmap>
      <text xalign="0" use-markup="true" space-expand="true" space-fill="true"><label>"'$(gettext "...mouse-over and click the tray applets!")'"</label></text>
    </hbox>
  </vbox>
</window>'
gtkdialog -p WELCOME_DIALOG 
# https://wikka.puppylinux.com/gtkdialogDocTips4.2
### END ###

Why astronauts use Linux
Because you can't open windows in space

Post Reply

Return to “Re-masters”