Steam Deck Web App Generator
STEAM DECK TERMINAL

Open Konsole on Steam Deck and run a script

By ยท

Many Steam Deck guides, this site's generator included, end with "run this in a terminal". On the Deck, the terminal is an app called Konsole, and it only exists in Desktop Mode. Here is how to open it, type in it, and run a downloaded .sh file.

1. Switch to Desktop Mode

Press STEAM, open Power and choose Switch to Desktop. The right trackpad moves the pointer, R2 clicks and L2 right-clicks. The Desktop Mode guide has the rest of the controls.

2. Open Konsole

Konsole is KDE's terminal, and SteamOS's desktop is KDE Plasma. Click the application launcher in the lower left corner of the taskbar and start Konsole. If you do not see it, type konsole while the launcher is open to search for it.

To open a terminal straight in a folder, for example where you saved a download, open that folder in Dolphin, the file manager, right-click an empty spot and choose Open Terminal Here.

3. Typing in Konsole

  • Press STEAM + X for the on-screen keyboard. Valve's Desktop FAQ says this works while Steam is running, so start Steam on the desktop if the keyboard does not appear.
  • For longer sessions, a USB or Bluetooth keyboard is far quicker. Valve's FAQ says some desktop situations still need one.
  • In Konsole, paste with Ctrl + Shift + V. Plain Ctrl + V does not paste in most Linux terminals.

4. Go to the folder with your script

Chrome and most browsers save downloads to your Downloads folder. Move there with cd and list the files to check the name:

cd ~/Downloads
ls

File names are case-sensitive, and a name with spaces needs quotes, as in cd "My Folder".

5. Run the .sh file

A downloaded script is not executable yet. Give it permission once, then run it from the same folder:

chmod +x youtube.sh
./youtube.sh

The ./ tells the shell to run the file in the current folder. If you would rather not change permissions, bash youtube.sh runs it too. Read a script before you run it: cat youtube.sh prints it. Valve's FAQ specifically warns against running random commands and scripts found on the internet.

When a command asks for a password

Commands that start with sudo ask for the deck user's password, and the Deck ships without one. Valve's answer is to set one with passwd; the sudo password guide walks through it. Konsole shows nothing while you type a password, which is normal.

Example: the generator's script

This site's generator produces exactly the kind of file described above. It writes a launcher that opens one website full screen in Chrome and adds it to Steam as a non-Steam game, and it does not need sudo. The whole flow, using YouTube as the example:

  1. In Game Mode, press the STEAM button, open Power and choose Switch to Desktop.
  2. Install Google Chrome from the Discover Software Center if you don't have it yet. The generated script starts the Chrome flatpak (com.google.Chrome), which is the version Discover installs.
  3. Open the generator in a browser on the Deck. Enter https://www.youtube.com as the Site URL and YouTube as the App Name. Leave Use ~/Documents as default folder switched on.
  4. Press Generate script, then Download .sh. The file is saved as youtube.sh.
  5. Open Konsole in the folder you downloaded it to and run:
    chmod +x youtube.sh
    ./youtube.sh
    The script writes a small launcher, ~/Documents/YouTube.sh, makes it executable and hands it to steamos-add-to-steam, which adds it to your Steam library as a non-Steam game.
  6. Double-click Return to Gaming Mode on the desktop. The shortcut is in your Library under Non-Steam, listed as YouTube.sh. You can rename it in the shortcut's Properties.
  7. Launch it. Chrome opens https://www.youtube.com full screen in kiosk mode, with no tabs, address bar or scrollbars. To close it, press STEAM and choose Exit Game.

Before you run it

  • The App Name becomes the launcher's file name, so spaces and apostrophes are fine but a slash is not.
  • Leave ~/Documents/YouTube.sh where it is. The Steam shortcut points at that file.
  • The launcher uses your normal Chrome profile, so a site you sign in to in Chrome on the desktop is still signed in when you open the shortcut in Game Mode. Inside Game Mode, STEAM + X brings up the on-screen keyboard.
  • The script does not set a controller layout. Pick one in the shortcut's controller settings. Microsoft's and NVIDIA's own Steam Deck guides both use the Gamepad with Mouse Trackpad template for their browser and app shortcuts, which gives you a pointer on the trackpad.

Questions

How do I open the terminal on Steam Deck?

Switch to Desktop Mode, click the application launcher in the lower left corner and start Konsole, the KDE terminal that comes with SteamOS. Typing Konsole in the launcher's search box finds it.

How do I run a .sh file on Steam Deck?

Open Konsole in the folder that holds the file, make it executable with chmod +x name.sh, then start it with ./name.sh. Both commands run as your normal user.

Why can't I type in Konsole on Steam Deck?

The on-screen keyboard opens with STEAM + X, but Valve's Desktop FAQ says that only works while Steam is running. Start Steam on the desktop first, or plug in a keyboard.

What is the Konsole password on Steam Deck?

There is none by default. The deck user ships without a password, so commands that use sudo will not work until you set one with passwd.