# Remotely editing userconfig.txt

**URL:** <https://community.info-beamer.com/t/remotely-editing-userconfig-txt/429>\
**Category:** Help\
**Created:** [March 28, 2019, 3:51pm UTC](https://community.info-beamer.com/t/remotely-editing-userconfig-txt/429 "2019-03-28T15:51:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfie.pates](https://community.info-beamer.com/letter_avatar_proxy/v3/letter/a/a88e4f/32.png) [@alfie.pates](https://community.info-beamer.com/u/alfie.pates)\
**Post date:** [March 28, 2019, 3:51pm UTC](https://community.info-beamer.com/t/remotely-editing-userconfig-txt/429/1 "2019-03-28T15:51:31Z")

</div>

Is there any provision in hosted infobeamer to remotely edit the userconfig.txt?

I need to apply HVS rotation to a video signal since packages I’m using don’t support rotation, and I don’t have direct access to the pi.

Cheers,  
A

---

<div class="post-metadata">

**Author:** ![infobeamer-fw](https://community.info-beamer.com/user_avatar/community.info-beamer.com/infobeamer-fw/32/3_2.png) [@infobeamer-fw](https://community.info-beamer.com/u/infobeamer-fw)\
**Post date:** [March 28, 2019, 4:14pm UTC](https://community.info-beamer.com/t/remotely-editing-userconfig-txt/429/2 "2019-03-28T16:14:12Z")

</div>

Direct editing is not possible, although that’s something that might be added. The main reason editing isn’t supported at the moment is that it is possible to create a completely broken configuration using `userconfig.txt` and there’s no way to recover from that remotely. All other configuration options are save in that regard.

If you want to edit anyway, the only way right now is to use the [ib-shell](https://github.com/info-beamer/package-sdk/tree/master/ib-shell) tool. Then run

```nohighlight
$ export API_KEY=<api key>
$ ib-shell --root <device_id>

```

to get a shell on the device. You can then edit the userconfig.txt in `/sd/config`. So like this:

```nohighlight
mount /sd -o remount,rw # the SD is mounted readonly by default
vi /sd/config/userconfig.txt
mount /sd -o remount,ro

```

[Support](https://info-beamer.com/contact) can do that for you, if you don’t want to do that on your own.

---

<div class="post-metadata">

**Author:** ![alfie.pates](https://community.info-beamer.com/letter_avatar_proxy/v3/letter/a/a88e4f/32.png) [@alfie.pates](https://community.info-beamer.com/u/alfie.pates)\
**Post date:** [March 28, 2019, 4:25pm UTC](https://community.info-beamer.com/t/remotely-editing-userconfig-txt/429/3 "2019-03-28T16:25:04Z")

</div>

Fantastic, you’ve just saved me an embarrassingly upside-down display!

Much appreciated.

---

<div class="post-metadata">

**Author:** ![Wassini](https://community.info-beamer.com/user_avatar/community.info-beamer.com/wassini/32/203_2.png) [@Wassini](https://community.info-beamer.com/u/Wassini)\
**Post date:** [August 15, 2019, 11:51am UTC](https://community.info-beamer.com/t/remotely-editing-userconfig-txt/429/4 "2019-08-15T11:51:09Z")

</div>

Whenever I run this, I get this error:

> ```
> Traceback (most recent call last):
> File "./ib-shell", line 2, in <module>
> import os, sys, requests, subprocess, json, threading, tty, termios, select, time, argparse, textwrap
> ImportError: No module named requests
> 
> ```

I have installed python-websockets

---

<div class="post-metadata">

**Author:** ![infobeamer-fw](https://community.info-beamer.com/user_avatar/community.info-beamer.com/infobeamer-fw/32/3_2.png) [@infobeamer-fw](https://community.info-beamer.com/u/infobeamer-fw)\
**Post date:** [August 15, 2019, 11:56am UTC](https://community.info-beamer.com/t/remotely-editing-userconfig-txt/429/5 "2019-08-15T11:56:15Z")

</div>

Look like you’re also missing `python-requests`. Can you give this a try?

---

<div class="post-metadata">

**Author:** ![Wassini](https://community.info-beamer.com/user_avatar/community.info-beamer.com/wassini/32/203_2.png) [@Wassini](https://community.info-beamer.com/u/Wassini)\
**Post date:** [August 15, 2019, 11:59am UTC](https://community.info-beamer.com/t/remotely-editing-userconfig-txt/429/6 "2019-08-15T11:59:00Z")

</div>

> [@infobeamer-fw](#):
>
> `python-requests`

Thanks 🙂 Now it is working

---

<div class="post-metadata">

**Author:** ![infobeamer-fw](https://community.info-beamer.com/user_avatar/community.info-beamer.com/infobeamer-fw/32/3_2.png) [@infobeamer-fw](https://community.info-beamer.com/u/infobeamer-fw)\
**Post date:** [August 15, 2019, 12:20pm UTC](https://community.info-beamer.com/t/remotely-editing-userconfig-txt/429/7 "2019-08-15T12:20:09Z")

</div>

Neat. I’ve updated both readme and ib-shell script to better guide future users.
