Linux app with no GUI installed

BlitzMax Forums/BlitzMax Programming/Linux app with no GUI installed

andre72(Posted 2012) [#1]
Hi,

I need a small Linux app for a server where's no GUI installed.
After it works fine on my development PC it crashs on the Server.

After check this out and also plese google for solution I figure out that BM Linux is using GUI commands in BRL.System (http://www.blitzbasic.com/Community/posts.php?topic=94821#1089359).

In the sample there's just CurrentDate (the function I only need from) copied to the bmx itself.
But in this case BM returns a compiling error because of missing types ...

So please can you show me a fast solution making a GUI less executable for Linux?

Thanks

Andre


Htbaa(Posted 2012) [#2]
I believe Mark would need to move some parts to get BlitzMax apps to run on a headless server. Just tried the maximus binary on my server and it wants libX11 to be installed. Which makes no sense as it's a CLI app.


xlsior(Posted 2012) [#3]
I'm pretty sure that Banshee got it to work on a non-GUI server -- Search some of the old threads...


andre72(Posted 2012) [#4]
I'm a novice with Linux but I wonder also about X11 ..
However as the thread I point to is more than a year old I think it wouldn't be moved in time.
Thanks for the hint I'll have a look for Banshee ...


Banshee(Posted 2012) [#5]
I'm pretty sure that Banshee got it to work on a non-GUI server -- Search some of the old threads...

Unfortunately I havn't touched Linux outside of php and ssh for well over a year and my "getting on a bit" brain doesn't recall any details which might be useful for you. I do recall formulating the opinion that just about the worst distro for Blitz is Centos, and most web servers are Centos.

I think had some success with CLI apps a while back but nothing with a canvas without installing X11 which my security guys insist isn't viable on any of the servers I have available to me because of their other operations and fears over security.

I do always compile in framework mode, which solves a lot of issues. If the only command causing you grief is CurrentDate() then you might consider using a shell exec and reading the output from the command line, the following might be helpful to achieve it:

date +"%m/%d/%Y %H:%M:%S"

I hope that helps, sorry I can't be more useful.