# Run Amiberry after logging in

**URL:** <https://dietpi.com/forum/t/run-amiberry-after-logging-in/5304>\
**Category:** Troubleshooting\
**Created:** [13 May 2021 05:05 UTC](https://dietpi.com/forum/t/run-amiberry-after-logging-in/5304 "2021-05-13T05:05:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sikosis](https://dietpi.com/forum/user_avatar/dietpi.com/sikosis/32/3913_2.png) [@sikosis](https://dietpi.com/forum/u/sikosis)\
**Post date:** [13 May 2021 05:05 UTC](https://dietpi.com/forum/t/run-amiberry-after-logging-in/5304/1 "2021-05-13T05:05:21Z")

</div>

Hi,

I installed DietPi with Amiberry and its nice that it boots up with it (though the time is always 1-1-1970), however, when I quit and then login into the Raspberry Pi (to perform updates, etc) – I would like to then be able to run a command to launch Amiberry. Unfortunately, when I try I get the following error message:-

error while loading shared libraries: libSDL2\_image-2.0-so.0: cannot open shared object file: No such file or directory

I added /usr/local/lib to the path in /etc/bash.bashrc and when I echo $PATH, I can see it there, just wondering is there something else I’m missing. My workaround is just to restart the machine but I’d rather not have to do that just to launch Amiberry.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [13 May 2021 12:28 UTC](https://dietpi.com/forum/t/run-amiberry-after-logging-in/5304/2 "2021-05-13T12:28:44Z")

</div>

Hi,

did you tried to run systemctl restart amiberry to launch Amiberry

See as well our online docs - tab Starting [https://dietpi.com/docs/software/gaming/#amiberry](https://dietpi.com/docs/software/gaming/#amiberry)

---

<div class="post-metadata">

**Author:** ![sikosis](https://dietpi.com/forum/user_avatar/dietpi.com/sikosis/32/3913_2.png) [@sikosis](https://dietpi.com/forum/u/sikosis)\
**Post date:** [17 May 2021 03:14 UTC](https://dietpi.com/forum/t/run-amiberry-after-logging-in/5304/3 "2021-05-17T03:14:59Z")

</div>

Awesome … just tried it … works a treat!

---

<div class="post-metadata">

**Author:** ![wifi75](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/w/b4bc9f/32.png) [@wifi75](https://dietpi.com/forum/u/wifi75)\
**Post date:** [6 May 2022 09:25 UTC](https://dietpi.com/forum/t/run-amiberry-after-logging-in/5304/4 "2022-05-06T09:25:32Z")

</div>

but what is command line for start amiberry?

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [6 May 2022 12:18 UTC](https://dietpi.com/forum/t/run-amiberry-after-logging-in/5304/5 "2022-05-06T12:18:56Z")

</div>

This is the intended way to start it: The service loads the requires library path and starts Amiberry on main screen.
