1

Topic: 2 Questions related to playing games and bash scripting

Hey

So I have noticed, that to run any game like wesnoth, I have to type su and run the game using /usr/games/wesnoth
normal wesnoth doesn't do anything. I also need to be a root
Why is this?
Also when I try to run Wyrmsun, I get this:

sh-5.1# /usr/games/wyrmsun
/usr/games/wyrmsun: line 3: exec: wyrmgus: not found

What's wrong?
That was question number one.

Second question is, let's say I write a simple bash script, where I put some commands, that would help me to connect to my phone, to get internet connection.
Is it possible to tell my laptop to run this script during boot? Can I put this script as a service for example? So everytime I turn Hyperbola on, it will run this script automatically?

Cheers

My nickname on libera.chat: fifihyperbola

All the best.

2

Re: 2 Questions related to playing games and bash scripting

You need to be within the group games as Hyperbola 0.4 is even more towards FHS-oriented. So:

doas usermod -aG games [USERNAME]

After a restart of the system you should be good to go.

Regarding connection to your phone: You mean as access-point? Well, there is nothing more needed than something like dhcpcd-ui.

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

3

Re: 2 Questions related to playing games and bash scripting

It won't automatically save games

20220526 23:21:25 error engine: Could not auto save the game. Please save the game manually.save_game_failed: failed opening file: Permission denied: iostream error
20220526 23:21:25 error general: Could not auto save the game. Please save the game manually.save_game_failed: failed opening file: Permission denied: iostream error
20220526 23:21:48 error filesystem: error writing to preferences file '/home/fifi/.config/wesnoth/preferences'
My nickname on libera.chat: fifihyperbola

All the best.

4

Re: 2 Questions related to playing games and bash scripting

Sorry but first the forum is no place for reporting issues: We have an issue-tracker for that kind of things.
Second to say: Please report fully. Only some logs are neither sufficient nor helpful. What settings did you make? How did you execute the application?

Please delete the corresponding files. You have stated before that you have executed Battle for Wesnoth under su-privileges. This means all files created also are done under root-privileges. So your normal user has no access towards them.

That would mean this:

doas rm -rf /home/fifi/.config/wesnoth/
Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

5

Re: 2 Questions related to playing games and bash scripting

I did type a command chmod -x to a bash script file, and I think that has messed something... :x

My nickname on libera.chat: fifihyperbola

All the best.

6

Re: 2 Questions related to playing games and bash scripting

Please first solve the problem with Battle for Wesnoth. As mentioned:

1. Correct group-membership, a game or generic user-application should never be executed under su.
2. Control configuration created, they should be created with your user and not root at all.

smile

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

7

Re: 2 Questions related to playing games and bash scripting

Okay, it doesn't matter actually anymore, because my laptop has coreboot SeaBios, so I finally want to try out openBSD.
Sorry :-).

Take care :-)

My nickname on libera.chat: fifihyperbola

All the best.

8 (edited by zapper 2022-05-28 04:52:05)

Re: 2 Questions related to playing games and bash scripting

cynicfm wrote:

Okay, it doesn't matter actually anymore, because my laptop has coreboot SeaBios, so I finally want to try out openBSD.
Sorry :-).

Take care :-)

Alrighty, but you should know its chmod +x  yourscript

chmod -x

has a very different effect...

wink

Your script will not work after that for sure.

Btw, does OpenBSD work with palemoon or uxp based browsers?

Last I checked, it doesn't...

Either way, if you decide to come back for any reason, I do use xmpp and irc and might be able to help.

Only thing is, time...

But if you want, you could just keep a vm of Hyperbola and OpenBSD, so you can bounce to whichever you feel like.

Anywho peace!

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!

9

Re: 2 Questions related to playing games and bash scripting

Yeah, I am back...
I am staying with you, guys. Decided to stop using openBSD, because my wi-fi plays up there and you know...
But I am installing void linux on my 2nd partition, because I want to play some old windows games, like Diablo 2 or Heroes 3 on wine, so will be dual booting again, but I am fine with that. big_smile

My nickname on libera.chat: fifihyperbola

All the best.

10

Re: 2 Questions related to playing games and bash scripting

cynicfm wrote:

Yeah, I am back...
I am staying with you, guys. Decided to stop using openBSD, because my wi-fi plays up there and you know...
But I am installing void linux on my 2nd partition, because I want to play some old windows games, like Diablo 2 or Heroes 3 on wine, so will be dual booting again, but I am fine with that. big_smile

Actually, if you want something on your 2nd partition that runs old windows games, iI recommend using something else, voidlinux isn't exactly even close to libre and they install crappy drivers whether you need them or not...

Also, if its games before NT, there is a package within Hyperbola that can help.

Btw, furthermore, its not hard to disable connecting to the internet wih it.

Unless you need internet, in which case, things get somewhat more complex...

Dunno if devuan is your cup of tea, but its the next best thing imo.

Also, I don't know if this would work, but wine 7.0 supposedly has multilib built in now, maybe as optional? But yeah, multilib is no longer separated.

Anywho though, no idea how well it will work in Hyperbola at this time, but try if you wish!

The best option is to not need non-free, which I understand is something most won't want...

The 2nd is dosbox-x offline usage

The third is devuan

The fourth of course, is something more mainstream and/or independent kind of distro.

Hope you  have fun!

Just be mega careful...

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!

11 (edited by anthk 2022-05-30 14:05:03)

Re: 2 Questions related to playing games and bash scripting

zapper wrote:
cynicfm wrote:

Yeah, I am back...
I am staying with you, guys. Decided to stop using openBSD, because my wi-fi plays up there and you know...
But I am installing void linux on my 2nd partition, because I want to play some old windows games, like Diablo 2 or Heroes 3 on wine, so will be dual booting again, but I am fine with that. big_smile

Actually, if you want something on your 2nd partition that runs old windows games, iI recommend using something else, voidlinux isn't exactly even close to libre and they install crappy drivers whether you need them or not...

Also, if its games before NT, there is a package within Hyperbola that can help.

Btw, furthermore, its not hard to disable connecting to the internet wih it.

Unless you need internet, in which case, things get somewhat more complex...

Dunno if devuan is your cup of tea, but its the next best thing imo.

Also, I don't know if this would work, but wine 7.0 supposedly has multilib built in now, maybe as optional? But yeah, multilib is no longer separated.

Anywho though, no idea how well it will work in Hyperbola at this time, but try if you wish!

The best option is to not need non-free, which I understand is something most won't want...

The 2nd is dosbox-x offline usage

The third is devuan

The fourth of course, is something more mainstream and/or independent kind of distro.

Hope you  have fun!

Just be mega careful...


I think both Diablo II and Heroes 3 have free engines:

https://github.com/OpenDiablo2/OpenDiablo2

https://github.com/dgcor/DGEngine

https://github.com/vcmi/vcmi

Setting up a newer GCC for DGEngine is not that difficult, you can compile it with
./configure --prefix=/opt/gcc and then run make and, as root, make install.

Then compiling DGEngine with cmake would be similar to:
cmake . -DCMAKE_C_COMPILER=/opt/gcc/bin/gcc -DCMAKE_CXX_COMPILER=/opt/gcc/bin/g++ -DCMAKE_BUILD_TYPE=Release -L ; make

12

Re: 2 Questions related to playing games and bash scripting

For Diablo 1: https://github.com/diasurgical/devilutionX

Human being in favor with clear principles and so also for freedom in soft- and hardware!

Certainly anyone who has the power to make you believe absurdities has the power to make you commit injustices: For a life of every being full with peace and kindness, including diversity and freedom. Capitalism is destroying our minds, the planet itself and the universe in the end!

13

Re: 2 Questions related to playing games and bash scripting

I have used Devuan before. In fact, that was my first systemd-free linux distribution I have ever used :-)
So it is possible to play Heroes 3 and Diablo 2 without installing wine?
OpenDiablo 2 and vcmi, and that's it?
It will run on Hyperbola?

Might give devuan a try, thanks for a good advice. But if I can play heroes 3 or diablo 2 on Hyperbola, then I do not really have to do it any soon. wink

My nickname on libera.chat: fifihyperbola

All the best.

14

Re: 2 Questions related to playing games and bash scripting

cynicfm wrote:

I have used Devuan before. In fact, that was my first systemd-free linux distribution I have ever used :-)
So it is possible to play Heroes 3 and Diablo 2 without installing wine?
OpenDiablo 2 and vcmi, and that's it?
It will run on Hyperbola?

Might give devuan a try, thanks for a good advice. But if I can play heroes 3 or diablo 2 on Hyperbola, then I do not really have to do it any soon. wink

Vcmi it's a free engine for Heroes 3, and ditto with OpenDiablo 2 for the former.

15

Re: 2 Questions related to playing games and bash scripting

anthk wrote:
zapper wrote:
cynicfm wrote:

Yeah, I am back...
I am staying with you, guys. Decided to stop using openBSD, because my wi-fi plays up there and you know...
But I am installing void linux on my 2nd partition, because I want to play some old windows games, like Diablo 2 or Heroes 3 on wine, so will be dual booting again, but I am fine with that. big_smile

Actually, if you want something on your 2nd partition that runs old windows games, iI recommend using something else, voidlinux isn't exactly even close to libre and they install crappy drivers whether you need them or not...

Also, if its games before NT, there is a package within Hyperbola that can help.

Btw, furthermore, its not hard to disable connecting to the internet wih it.

Unless you need internet, in which case, things get somewhat more complex...

Dunno if devuan is your cup of tea, but its the next best thing imo.

Also, I don't know if this would work, but wine 7.0 supposedly has multilib built in now, maybe as optional? But yeah, multilib is no longer separated.

Anywho though, no idea how well it will work in Hyperbola at this time, but try if you wish!

The best option is to not need non-free, which I understand is something most won't want...

The 2nd is dosbox-x offline usage

The third is devuan

The fourth of course, is something more mainstream and/or independent kind of distro.

Hope you  have fun!

Just be mega careful...


I think both Diablo II and Heroes 3 have free engines:

https://github.com/OpenDiablo2/OpenDiablo2

https://github.com/dgcor/DGEngine

https://github.com/vcmi/vcmi

Setting up a newer GCC for DGEngine is not that difficult, you can compile it with
./configure --prefix=/opt/gcc and then run make and, as root, make install.

Then compiling DGEngine with cmake would be similar to:
cmake . -DCMAKE_C_COMPILER=/opt/gcc/bin/gcc -DCMAKE_CXX_COMPILER=/opt/gcc/bin/g++ -DCMAKE_BUILD_TYPE=Release -L ; make


Hmm... I didn't know this, thank you for the info!

smile

HyperbolaBSD: The Future of Secure Libre Lightweight Operating Systems!