'How can I install pycharm on digitalocean?

I needed a server for my python project, so I chose digitalocean

I need to install pycharm there so i downloaded it and now tried now to run pycharm.sh

But there's one error and I don't know a solution

Error here

root@ubuntu-s-2vcpu-4gb-amd-lom1-01:~/Downloads/pycharm-community-2022.1/bin# ls

brokenPlugins.db  fsnotifier idea.properties libdbm 64.so pycharm.png pycharm.svg repair
format.sh icons inspect.sh ltedit.sh pycharm.sh pycharm64.vmoptions restart.py

root@ubuntu-s-2vcpu-4gb-amd-lom1-01:~/Downloads/pycharm-community-2022.1/bin# sh pycharm.sh

Startup Error
Unable to detect graphics environment

I created this VM by this tutorial

https://www.youtube.com/watch?v=yDspwAm9_sY&ab_channel=MichaelKitas

Please somebody help me :3



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source