lenosisnickerboa / csgosl

A CSGO server launcher, one-click install & run
GNU General Public License v3.0
381 stars 39 forks source link

Error installing on Debian #282

Closed marcospacagnan closed 4 years ago

marcospacagnan commented 4 years ago

I've been trying for some time to install csgosl on Debian on a Google VPS by accessing it directly through the browser and I always get the following error after executing ./csgosl.sh: no display name and no $ DISPLAY environment variable while executing "load /usr/lib64/tk8.5/../libtk8.5.so Tk" ("package ifneeded Tk 8.5.7" script) invoked from within "package require Tk" (file "bin / csgosl.tcl" line 6) Could someone help me please?

lenosisnickerboa commented 4 years ago

I don't know what kind of environment "Debian on a Google VPS by accessing it directly through the browser" gives you but if the DISPLAY environment variable isn't set csgosl will not be able to open a new window and it will all fail. This has nothing to do with csgosl, it's just how things work. You can try issuing the command xterm which creates a new terminal for you in a new window. When that works csgosl will also work. But you will have to set the DISPLAY variable correctly first.

You can e.g. read about the DISPLAY variable here. The DISPLAY variable points out your X server and which display to use. A common default value is hostname:0 . It's not certain that you have an X server running in your environment, and then neither xterm nor csgosl will be possible to run.

Hope that helps!

lenosisnickerboa commented 4 years ago

Any progress?

marcospacagnan commented 4 years ago

No progress until then. I realized that some links to download the necessary packages are very outdated and should also cause malfunctions. Could you please review this project? I would love to use linux as an operating system. I even tried to run on a virtual machine on my PC and it always generates the same error ...

lenosisnickerboa commented 4 years ago

Don't understand "some links to download the necessary packages are very outdated and should also cause malfunctions. Could you please review this project?" What links? What packages? Which project?

I still think the main issue to deal with is getting e.g. xterm to work first by getting X properly setup and setting DISPLAY accordingly. Then csgosl will have a chance of working at least.

I have never used Debian and will not have time to set csgosl up on that linux flavor. But if all you want is to run csgosl on linux there are plenty other linux flavors to choose from, see the ones I have tested here: https://github.com/lenosisnickerboa/csgosl/wiki/Platform-support

If however you would get it to work on Debian please report the required installation steps so I can update the docs.

whopavan commented 4 years ago

I had the same issue with Ubuntu on GCP. After googling and doing some research I found these

From - https://askubuntu.com/questions/432255/what-is-the-display-environment-variable If you are not using a graphical environment (i.e. you are logging in on the system console with no windows etc; or you are logging in remotely from a text-only terminal over SSH or similar, such as from a Windows computer running PuTTY) then no GUI is involved

Basically, when you ssh through the command line there is no GUI, csgosl expects you to "Click on I Understand" when running ./csgosl.sh plus it uses GUI to configure the server.

Temporary solution

Add -X when you ssh into the server -X will enable X11 forwarding (more about X11 - https://en.wikibooks.org/wiki/Guide_to_X11/Introduction ). What this will do is it uses your display as your server display (remember that lower case x -x will disable X11 forwarding according to the man page of ssh)

Usage example - ssh -X myServer@111.222.X.X

Permanent/Good solution

A permanent/good solution would be to remove GUI for Linux based installations and add flags to configure things, like for example ./csgosl.sh start --map "de_dust2" --tickrate "128" If you guys agree on my this solution we can contribute together and get it working.

lenosisnickerboa commented 4 years ago

From the main csgosl github page: "csgosl is a graphical user interface (GUI) for a Counter Striker Global Offensive server (CSGO server from now on). csgosl supports one-click install, update, start and stop server on windows and linux platforms (supported platforms). If you just want your own CSGO server up and running in no time this is the place for you. csgosl provides a graphical user interface supporting most mainstream server options."

The whole purpose with csgosl is to provide a simple GUI for anyone wanting to host a csgo server without having to learn about cfg files, and cvars, ... A few clicks and you're done. What your "permanent solution" suggests is pretty much to use the Valve command line tools directly. I don't see a point in providing a script which will merely wrap the Valve stuff. And I think there are already a couple of those around which is intended for more advanced users.

Regarding X11 forwarding, yes using the -X option to ssh will forward the X traffic to wherever you point it to. But you must have an X server running at that location. So again, I'm unfortunately not familiar with the environments you use for running csgosl and either use the -X switch or set the DISPLAY variable correctly and csgosl will happily start.

whopavan commented 4 years ago

Yes, totally agree. But the difference would be Valve command line tools aren't "one-click install, update, start and stop". That's the main reason for suggesting a permanent solution. Though using -X was all fine for me and worked well so yeah maybe no need of a command-line installation.

lenosisnickerboa commented 4 years ago

True, I see.

On Wed, Aug 19, 2020 at 4:22 AM Pavan Kumar notifications@github.com wrote:

Yes, totally agree. But the difference would be Valve command line tools aren't "one-click install, update, start and stop". That's the main reason for suggesting a permanent solution. Though using -X was all fine for me and worked well so yeah maybe no need of a command-line installation.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lenosisnickerboa/csgosl/issues/282#issuecomment-675812824, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEA3F5SGJI2XDMFHRXRU3YLSBMZMPANCNFSM4PGGTMGA .

-- Mvh Lennart Oscarsson, 0735551986