Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - maersi

Pages: [1]
1
QB64 Discussion / Re: QB64 on Raspberry Pi (again)
« on: October 17, 2020, 02:58:55 pm »
Excellent :) I can see the output from shell commands now. So I can press on.
VPN was just an example. There is no supplied VPN program or app, Just a set of instructions. I am planning to "WGET" the list of VPN servers from the provider's website, and display the list for selection in my program. This would then edit the vpn config file, with IP address and port, then edit sysctl.conf, and issue sudo sysctl -p to avoid a reboot, and finally start vpn.
After closing  vpn, the program would reverse the edit to sysctl. conf, issue another sudo sysctl -p, sudo ifconfig eth0 down, and sudo ifconfig eth0 up. No reboots required. I'm just lazy ;-)
As I am the only user of the Pi, I have no qualms about using chmod 666 on such files.
Thanks again - starting QB64 from the terminal would not have occurred to me, especially as the nice QB64 devs have created an entry point in the Programming category

2
QB64 Discussion / QB64 on Raspberry Pi (again)
« on: October 17, 2020, 07:13:26 am »
So, a few months ago, trapped at home, I dug an old Raspberry  Pi  2, out of a drawer, and found it was still working. I set it up as a home samba server and media centre, and all was fine,
I wanted to add some more features, and needed to write some code. QB64 seemed to be the best choice. BASIC was the first language I learned, back in the early 70's, I have QB64 installed on both Windows and Linux, which I tend to use when I can't find an existing way to do something.
QB64 is now installed on the Pi, and seemed less painless than the last time I tried it, compiled on the 4th attempt - less than 2 hours overall.
The initial "Hello World" program compiled and ran fine.
I realise that this is not officially supported, but wondered if anyone could help. I have two problems:
1: the IDE is broken when set to full screen, but seems OK otherwise
2: SHELL is not working as a statement or function - I can't tell if it is starting a shell but not passing the execution string, or not starting the shell. There is no error.

This is a biggie - without shell I cannot do what is needed. I want to simplify and automate some actions.
For example, my VPN provider requires that IPV6 be disabled before starting VPN, and I have to edit their config file to insert the details of the server I want to connect to.
I want to simplify this procedure, and that cannot be achieved without SHELL
Obviously, the compiled BASIC program itself is running in a shell, but seems either unable to create a sub shell or pass an executable string to a sub shell.
The problem may be nothing to do with QB64 - maybe a permissions problem somewhere.
I would be gratefully for any pointers.

3
I have just seen this message. [abandoned, outdated and now likely malicious qb64 dot net website - don’t go there] is still up, and still looks genuine  enough to fool people. I can think of no legitimate reason to host a fake copy of a genuine site.
[abandoned, outdated and now likely malicious qb64 dot net website - don’t go there] is hosted by GoDaddy.
It might be worth a QB64.org admin contacting GoDaddy to discuss.
Registrar Abuse Contact Email: abuse@godaddy.com

Pages: [1]