|
Post by Chris Iverson on Feb 24, 2019 3:00:49 GMT -5
So, I do have it running on Ubuntu 18.04, but there were some steps I needed to take to enable running 32-bit applications, as Ubuntu has been 64-bit by default(with no 32-bit support) for a while now.
I already had it up and running on my server due to running Run BASIC on it, but I went through the steps again to verify them on a Ubuntu desktop VM, as well.
Here's the command and the packages I had to install to get LB5 running on Ubuntu 18.04.
From a terminal:
sudo dpkg --add-architecture i386
This allows i386(32-bit) packages to be found by the package manager. Otherwise, it's purely 64-bit(i686) only.
sudo apt update
After enabling i386 packages, you need to refresh your package list before you'll be able to find them. Running this command will do just that.
sudo apt install libc6:i386 libx11-6:i386 zlib1g:i386
This installs the i386(32-bit) versions of the base system runtime library(libc6), the window manager library(libx11-6), and the zlib compression library(zlib1g).
I don't know if there are any other dependencies, but I have not found any yet, and LB5 appears to start and run just fine.
All together:
sudo dpkg --add-architecture i386 sudo apt update sudo apt install libc6:i386 libx11-6:i386 zlib1g:i386
|
|
|
Post by metro on Feb 24, 2019 8:53:29 GMT -5
Hi Chris, can I glean from this you have no issues (segmentaion Faults) running RunBasic on your Ubuntu 18.04 system
metro
|
|
|
Post by Chris Iverson on Feb 24, 2019 12:42:57 GMT -5
Nope, I've had no issues with it.
|
|
|
Post by metro on Feb 24, 2019 14:58:55 GMT -5
Nope, I've had no issues with it. That's annoying, I have tried multiple 64bit distros (over a year) adding i386 architecture etc as you described but always get a segmentation fault. I have even tried using the free version of RB. I must have a glitch in my home partition as that is left untouched after each distro change. I'll take a fresh look at it. Thanks for the feedback
|
|
|
Post by donnybowers on Feb 24, 2019 22:54:34 GMT -5
Thanks for posting this. I had 32bit architecture working on my machine for some other software I was using, but your instructions on how to do it are so much simpler than the way I did it. I put your instructions in my Linux notes for future reference.
|
|
|
Post by donnybowers on Feb 25, 2019 21:11:31 GMT -5
I just put an "LB5-347 alpha" launch icon on my Ubuntu desktop (Linux Lite). For anyone interested, here's how I did it.
. right click on the desktop and click "Create Launcher" (may be different depending on your system) . Name: LB5-347 alpha . Comments: not necessary . Command: ./lin32-347 lb5alpha.im . Working Directory: /home/me/lb5-347 (your directory name) . Options: Checkbox "Run in Terminal"
Runs the program in a terminal and closes the terminal when you close (or crash?) the program.
The same concept should work for putting it into your program menu (depending on your system)
Note: Not sure yet, but I believe if LB freezes up, you can click on the terminal and press Ctrl+C. At least it has always worked for me when I've executed the program using a normal terminal. I assume it would be the same.
|
|
|
Post by donnybowers on Feb 25, 2019 21:37:26 GMT -5
to Chris: ... can I glean from this you have no issues (segmentaion Faults) running RunBasic on your Ubuntu 18.04 system I have issues (segmentation Faults) running RunBasic on my Linux Lite system, which is pretty much the same as the latest Ubuntu system. I was surprised when I didn't have this problem with the LB5-347 alpha. I have no clue what caused it, but I'm pretty sure it was working when I first installed this system on the machine. I'm also having problems with running LB4.04 in Wine. The program runs, but it won't let me open or save files in LB, Notepad or most Windows programs that have a File menu. It worked at first and now it doesn't. I wish I knew what's going on, but unfortunately I don't. My solution will probably be to reinstall, probably switching to either Linux Mint or else regular Ubuntu. What's holding me back is that I have about 400 gigs of personal data (programs, documents, books, music, videos etc.) on my machine that I need to back up before I can reinstall the operating system. I just don't know what else to do. I've searched around a little for answers, but haven't found anything yet. I probably should join the Ubuntu forum I guess.
|
|
|
Post by metro on Feb 25, 2019 21:54:39 GMT -5
to Chris: ... can I glean from this you have no issues (segmentaion Faults) running RunBasic on your Ubuntu 18.04 system I have issues (segmentation Faults) running RunBasic on my Linux Lite system, which is pretty much the same as the latest Ubuntu system. I was surprised when I didn't have this problem with the LB5-347 alpha. I have no clue what caused it, but I'm pretty sure it was working when I first installed this system on the machine. I'm also having problems with running LB4.04 in Wine. The program runs, but it won't let me open or save files in LB, Notepad or most Windows programs that have a File menu. It worked at first and now it doesn't. I wish I knew what's going on, but unfortunately I don't. My solution will probably be to reinstall, probably switching to either Linux Mint or else regular Ubuntu. What's holding me back is that I have about 400 gigs of personal data (programs, documents, books, music, videos etc.) on my machine that I need to back up before I can reinstall the operating system. I just don't know what else to do. I've searched around a little for answers, but haven't found anything yet. I probably should join the Ubuntu forum I guess. If you use a 32bit system you will not experience the segmentation faults, I've lost count of how many 64bit systems I have tried and failed to solve the problem Chris's method of updating the i386 architecture is pretty much what I do. I also have a separate HOME partition so any new installs of an OS only the root partition is formatted , HOME remains untouched. (you should still have backups though)
|
|
|
Post by Chris Iverson on Feb 25, 2019 22:03:52 GMT -5
Yeah, I don't know what to tell ya. I've got RB running on a Ubuntu VM hosted in the Amazon AWS cloud at rbp.thearcaneanomaly.net. It doesn't do anything right now, but it works. I can only guess that there's some other dependency that's not got a 32-bit version installed; instead it tries to execute against the 64-bit version, and crashes.
|
|
|
Post by donnybowers on Feb 25, 2019 22:53:01 GMT -5
I used Chris's architecture update. In my case I think I've tinkered too much at this point and probably should just back up my files and reinstall a new system. I've ordered a couple of new 128G flash drives on Ebay. In the mean time there's XP Pro in a virtual machine for some of this stuff. Fortunately right now I'm more or less focusing on what I can do (or not) with alpha 347 which is working with the i386 32 bit tweaks. or is LB5 64 bit? It would be nice if it worked on 32 bit just in case I have to dig out an old machine for some reason. LOL
|
|
|
Post by Carl Gundel on Feb 25, 2019 23:00:43 GMT -5
I used Chris's architecture update. In my case I think I've tinkered too much at this point and probably should just back up my files and reinstall a new system. I've ordered a couple of new 128G flash drives on Ebay. In the mean time there's XP Pro in a virtual machine for some of this stuff. Fortunately right now I'm more or less focusing on what I can do (or not) with alpha 347 which is working with the i386 32 bit tweaks. or is LB5 64 bit? It would be nice if it worked on 32 bit just in case I have to dig out an old machine for some reason. LOL The version you have is 32-bit, but there will be a 64-bit version also.
|
|
|
Post by donnybowers on Feb 25, 2019 23:02:53 GMT -5
Chris Iverson
I think next time I'll follow your advice and use a separate partition for the home directory. I used to just always keep a separate data partition as virtual drive, which was actually a pretty good practice. But I like that idea. It shouldn't be that hard to partition as home and then if there's a problem just use the same drive as home again.
There's no place like /home.
|
|
|
Post by donnybowers on Feb 25, 2019 23:57:45 GMT -5
Yeah, I don't know what to tell ya. I've got RB running on a Ubuntu VM hosted in the Amazon AWS cloud at rbp.thearcaneanomaly.net. It doesn't do anything right now, but it works. I can only guess that there's some other dependency that's not got a 32-bit version installed; instead it tries to execute against the 64-bit version, and crashes. Cool. What does it cost you a month for a VM host? Why don't you at least put a little program on there that adds 2+2 or something just so people can see it in action? "HELLO WORLD"? Really?
|
|
|
Post by Chris Iverson on Feb 26, 2019 0:20:12 GMT -5
I bought a 3-year reserved t2.micro instance on AWS EC2 for $115, which comes out to about $3.81/mo. If you pick the absolute lowest tier, you can get a VM on Google Compute Engine for free. Not joking, I've had a VM active on there for at least a year now without paying a dime. Most VPS services have some sort of ~$5/mo plan that is usually pretty workable. DigitalOcean's always gotten good reviews, and I've also had good results with OVH, which has a basic plan starting at $4.50/mo. The example thing isn't a bad idea. Also, metro was the one that suggested a separate /home partition, not me, although I do recommend it. EDIT: There, the hangman demo is now the default page, and you can get to the Spirals demo here: rbp.thearcaneanomaly.net/seaside/go/runbasicpersonal?app=spiralsEDIT2: I also have a couple servers set up at my home for websites and various things to test stuff, but that comes with a public SLA of "is my home's power and internet working, and can I be bothered to make sure the server's up", meaning if it's something I actually want people to see, I'd be better off putting it on one of the VPS service providers
|
|
|
Post by donnybowers on Feb 26, 2019 1:05:09 GMT -5
I wonder how many solar panels it would take to keep a Raspberry Pi alive perpetually? LOL
|
|