# Lightweight OSK to use with Chromium autostart

**URL:** <https://dietpi.com/forum/t/lightweight-osk-to-use-with-chromium-autostart/23574>\
**Category:** General Discussion\
**Tags:** raspberry-pi-4\
**Created:** [4 June 2025 15:37 UTC](https://dietpi.com/forum/t/lightweight-osk-to-use-with-chromium-autostart/23574 "2025-06-04T15:37:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkhayes117](https://dietpi.com/forum/user_avatar/dietpi.com/dkhayes117/32/7965_2.png) [@dkhayes117](https://dietpi.com/forum/u/dkhayes117)\
**Post date:** [4 June 2025 15:37 UTC](https://dietpi.com/forum/t/lightweight-osk-to-use-with-chromium-autostart/23574/1 "2025-06-04T15:37:23Z")

</div>

Hi, new user here. I’ll start by saying that I really like the way DietPi is setup.

Currently, I’m looking at setting up an industrial kiosk with DietPi, RPi4/5, and a touchscreen monitor. In my testing, DietPi is much more responsive than Raspbian Lite + Ubuntu-Frame + wpe-webkit-mir-kiosk + ubuntu-frame-osk.

I’ve setup DietPi to auto start chromium full-screen etc. via custom script which also fires up `onboard` on-screen keyboard. It all works fine, but I can’t auto show the OSK because a lack of a gnome.

I’m a noob with gnome/LXDE type stuff. What is the lightest way get an OSK that will auto show?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://dietpi.com/forum/user_avatar/dietpi.com/dkhayes117/32/7965_2.png) [@dkhayes117](https://dietpi.com/forum/u/dkhayes117)\
**Post date:** [5 June 2025 14:39 UTC](https://dietpi.com/forum/t/lightweight-osk-to-use-with-chromium-autostart/23574/2 "2025-06-05T14:39:23Z")

</div>

I tried really hard not to install LXDE and still get auto show to work, but no dice. At least I have two options.

1. install lxde which is lightweight and get auto-show with the OSK
2. Use Chromium autostart only and manually pull up the OSK when needed

There maybe a better way to handle this, but for now this works in a custom script autostart

```bash

#!/bin/bash
# DietPi-AutoStart custom script
# Location: /var/lib/dietpi/dietpi-autostart/custom.sh
export DISPLAY=:0

# Run built-in Chromium autostart script
/var/lib/dietpi/dietpi-software/installed/chromium-autostart.sh &

# Let chromium spin up
sleep 15

# Start LXDE session
startlxde &

# wait for LXDE to initialize
sleep 5

# Hide LXPanel
pkill lxpanel || true

# Start OSK
onboard &

exit 0

```

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [3 September 2025 14:39 UTC](https://dietpi.com/forum/t/lightweight-osk-to-use-with-chromium-autostart/23574/3 "2025-09-03T14:39:49Z")

</div>

Closed on 3 September 2025 14:39 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
