# Restart device and update existing python file in RPi

**URL:** <https://hub.mender.io/t/restart-device-and-update-existing-python-file-in-rpi/1998>\
**Category:** General Discussions\
**Created:** [June 3, 2020, 7:31am UTC](https://hub.mender.io/t/restart-device-and-update-existing-python-file-in-rpi/1998 "2020-06-03T07:31:25Z")\
**Posts on this page:** 1\
**Showing post:** 35

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [June 28, 2020, 5:30am UTC](https://hub.mender.io/t/restart-device-and-update-existing-python-file-in-rpi/1998/35 "2020-06-28T05:30:58Z")

</div>

Hi @oleorhagen,  
I have setup the production server. It looks good, Our past communication has helped me alot to reach here.

Now, I’m trying to figure out how to get Mender devices to connect to server.  
For demo server, it was extremly easy to configure Mender client to server communication, but for production, I’m not able to start where in the documentation.

1. Should I built new with Yocto or
2. Is it possible to configure mender client in my existing OS.  
I have a RPi zero w and a Jetson Xavier (Debian) which I need to connect to Mender server. Where to start\ How to configure ?

Because from what I read, it has lots of configuration needed, therefore Im worried how will i manage it for 100’s or 1000’s devices for production while manufacturing it, I need mender clients during the manufacturing time (or Is it possible to automate the config) . When it comes to demo server the config was just so easy, just run the shell commends:  
DEVICE\_TYPE=“jetsonnano”  
SERVER\_IP\_ADDR=“4…/.xx.xxx.xxx”  
sudo DEBIAN\_FRONTEND=noninteractive dpkg -i mender-client\_2.2.0-1\_arm64.deb  
sudo mender setup   
–device-type $DEVICE\_TYPE   
–demo   
–server-ip $SERVER\_IP\_ADDR  
sudo systemctl restart mender-client

---

_[View the full topic](https://hub.mender.io/t/restart-device-and-update-existing-python-file-in-rpi/1998)._
