f1sz
Posts: 1
Joined: Fri Jan 18, 2019 8:19 am

Disable "Welcome to Raspberry Pi" setup wizard at system start

Fri Jan 18, 2019 8:24 am

Hello,
Is it possible the "Welcome to Raspberry Pi" setup wizard window at the system start?

I configure raspberry through SSH, and I don't want to plug mouse & keyboard every time, when I deploy new rPI. I've to set all settings (locale, keyboard settings, wifi region etc.) through raspi-config, but the window is still displaying.

Image

User avatar
DougieLawson
Posts: 38798
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Disable "Welcome to Raspberry Pi" setup wizard at system start

Fri Jan 18, 2019 8:41 am

I've asked Simon to do this before. He wouldn't agree to it.

It's 100% illogical to ask for WiFi and ssh things when WiFi & ssh are already configured - but we have to live with it.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

jtommi
Posts: 1
Joined: Sat Feb 02, 2019 9:42 am

Re: Disable "Welcome to Raspberry Pi" setup wizard at system start

Sat Feb 02, 2019 10:43 am

Found the solution.
I took this filewatcher script from super : https://superuser.com/a/959040
I rewrote it a bit to look like this : https://gist.github.com/jtommi/3dcd9781 ... 7f2063241d

With this filewatcher I found that when you press Done on the last step, it deletes a file.
That file is /etc/xdg/autostart/piwiz.desktop
So if you want to get rid of it :

Code: Select all

sudo rm /etc/xdg/autostart/piwiz.desktop
sudo reboot now
If you want to immediately kill it without reboot :

Code: Select all

sudo kill $(ps aux | grep '[p]iwiz' | awk '{print $2}')

User avatar
n0rt0x
Posts: 4
Joined: Fri Feb 22, 2019 7:39 pm

Re: Disable "Welcome to Raspberry Pi" setup wizard at system start

Tue Feb 26, 2019 12:55 pm

Is there a way to manually launch this program at a later date in case you accidentally clicked it away?
Have you tried turning it off and on again? ;)

globiboulga666
Posts: 40
Joined: Sun Jun 17, 2018 6:38 pm

Re: Disable "Welcome to Raspberry Pi" setup wizard at system start

Sun Apr 07, 2019 9:20 pm

Hi,

I had the same problem, keeping this thing opening again at each start despite it's already configured is really frustrating. Why not just add a checkbox "do not show again" ?
Once checked, and clicked on "Cancel", a message saying "you can manually run this tool by typing sudo piwiz in a terminal." before closing the app.

User avatar
sapnho
Posts: 244
Joined: Sun Sep 14, 2014 3:49 pm
Location: Frankfurt am Main
Contact: Website

Re: Disable "Welcome to Raspberry Pi" setup wizard at system start

Thu May 16, 2019 3:52 pm

Thanks so much @jtommi ! Exactly what I was looking for.
www.TheDigitalPictureFrame.com - Build a really great digital picture frame with the Raspberry Pi.
With lots of great tips from this forum.
Please submit your digital picture frame project to the user gallery here: bit.ly/2WkyjW1

User avatar
Wazburi
Posts: 18
Joined: Wed Jan 06, 2016 4:22 am
Location: Appalachia

Re: Or Re-Enable "Welcome to Raspberry Pi" setup wizard at system start

Fri Jul 19, 2019 7:04 pm

jtommi wrote: So if you want to get rid of it :
Code: Select all

sudo rm /etc/xdg/autostart/piwiz.desktop
sudo reboot now

This information also helped me re-enable the piwiz configuration wizard after I clicked the "Cancel" button which also removes the wizard from the startup desktop permanently. -- (I use the 2019-07-10 image of Raspbian.)

If you want to restore the piwiz.desktop startup file from a newly flashed sd card in a USB card reader to your not-yet-configured Pi startup screen, the steps in terminal go like this:

Code: Select all

cd /media/pi/rootfs/etc/xdg/autostart
This changes the current directory to the location of piwiz.desktop in a NEWly flashed SD card in a USB port.

Code: Select all

sudo cp piwiz.desktop /etc/xdg/autostart/piwiz.desktop
This command copies the piwiz.desktop file from new external card to the internal card needing the piwiz start-up configuration window again.

You can shutdown or reboot the Pi as many times as you want and the piwiz wizard window will continue to appear until you complete the configuration process and press the "Done" button,
Or until you press the "Cancel" button
Or until you manually remove the piwiz.desktop file with a terminal command.

Here is a screen capture of a file manager folder in a newly flashed Raspbian SD card , viewing the directory of a second SD card in a USB port. The original piwiz.desktop file is beautifully adorned with the Raspberry Pi icon. Nice!
piwiz-origin.jpg
piwiz-origin.jpg (36.2 KiB) Viewed 4670 times
My friends call me "Word Salad"
  • All Hail Raspberry Pi !

izekube
Posts: 1
Joined: Sat Jun 06, 2020 6:38 pm

Re: Disable "Welcome to Raspberry Pi" setup wizard at system start

Sat Jun 06, 2020 6:43 pm

Beware of these tips... Followed your instruction to remove file and reboot (while update was running).
And now my Raspberry PI does not boot any longer... :(
So now it flashes 7 times indicating kernerl.img is missing.

Don't know what I did wrong, maybe I should have killed the update process first.

User avatar
Wazburi
Posts: 18
Joined: Wed Jan 06, 2016 4:22 am
Location: Appalachia

Re: Disable "Welcome to Raspberry Pi" setup wizard at system start

Sun Jun 07, 2020 7:47 pm

izekube wrote:
Sat Jun 06, 2020 6:43 pm
Beware of these tips... Followed your instruction to remove file and reboot (while update was running).
And now my Raspberry PI does not boot any longer... :(
So now it flashes 7 times indicating kernerl.img is missing.

Don't know what I did wrong, maybe I should have killed the update process first.
Condolence for dead or missing kernel.
Executing reboot in the midst of a system update or installation process is discouraged. Perhaps it would be best to allow these essential processes to complete?

I think the original poster wanted to remove the annoyance of having a configuration wizard run automatically on a newly flashed micro SD card when advance effort was performed to pre-configure the card for remote access. (Already configured, wizard not needed.)

Ordinarily, "piwiz.desktop" runs once for normal and beneficial first-time configuration with attached monitor/keyboard/mouse.

My purpose was the opposite of Original Poster. I wanted to restore the wizard for new users to practice or experience configuration via the wizard. The information from O.P. help me accomplish my unusual and non-normal repeating exercise which did not include terminal commands.

(Thanks for the cautionary tale of woe. Good luck on the redo.)
My friends call me "Word Salad"
  • All Hail Raspberry Pi !

User avatar
DougieLawson
Posts: 38798
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Disable "Welcome to Raspberry Pi" setup wizard at system start

Sun Jun 07, 2020 7:52 pm

Easiest way to get rid of it is sudo apt purge piwiz.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
rpdom
Posts: 16981
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Disable "Welcome to Raspberry Pi" setup wizard at system start

Mon Jun 08, 2020 8:38 am

DougieLawson wrote:
Sun Jun 07, 2020 7:52 pm
Easiest way to get rid of it is sudo apt purge piwiz.
So, you run that after logging in for the first time when the wizzard runs? :roll:
Unreadable squiggle

User avatar
bensimmo
Posts: 4550
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Disable "Welcome to Raspberry Pi" setup wizard at system start

Mon Jun 08, 2020 8:51 am

rpdom wrote:
Mon Jun 08, 2020 8:38 am
DougieLawson wrote:
Sun Jun 07, 2020 7:52 pm
Easiest way to get rid of it is sudo apt purge piwiz.
So, you run that after logging in for the first time when the wizzard runs? :roll:
f1sz (OP) sets up through SSH, so just does that at some point.
So the first boot to the Desktop will not be able to show it.

Return to “Raspberry Pi OS”