Skip to content

Instantly share code, notes, and snippets.

@dgdavid
Created August 13, 2020 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgdavid/4fdb4bb480bbfe35310d5a2582f11eee to your computer and use it in GitHub Desktop.
Save dgdavid/4fdb4bb480bbfe35310d5a2582f11eee to your computer and use it in GitHub Desktop.

Executing YaST Firstboot with an specific resolution

Yesterday, a guy from docu team ask me for help executing YaST Firstboot in an specific resolution.

Well, I'm trying to make screenshots of the SAP wizard. (...) , so I only need to log in with ssh and execute /usr/lib/YaST2/startup/YaST2.Firstboot. That works so far.

However, the script doesn't allow me to change the screen/window size. I need my screenshots in 800x600. Unfortunately, the script doesn't know the -g/--geometry option that is known in YaST.

Any hints? 🙂

Looking at the YaST2.Firstboot script, it is using the YaST2.call which includes the content of Y2_UI_ARGS env variable in the command to execute.

So, the window size of YaST Firstboot can be changed using Y2_UI_ARGS="-geometry widthxheigh"

Y2_UI_ARGS="-geometry 800x600" /usr/lib/YaST2/startup/YaST2.Firstboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment