Author Topic: BxbAsm  (Read 178305 times)

SteveA

  • Guest
Re: BxbAsm
« Reply #330 on: May 25, 2012, 07:19:34 PM »
Okay guys,
I have installed VirtualBox.

I have a question about what exactly to do next.
I downloaded some .iso files for Fedora, Ubuntu and Mint.
At this point, what am I supposed to do with them ?

I read thru the VirtualBox PDF docs, but, I don't see where it mentions the .iso's.

Steve


Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: BxbAsm
« Reply #331 on: May 25, 2012, 07:24:43 PM »
Quote
Use Settings -> Storage -> IDE Controller to setup the Virtual DVD (i.e. ISO DVD Image)

Then use the green + sign to add a new device. When prompted to, during the add, browse to the bootable ISO file that is to be used as the Virtual DVD (DVD image) to install. Then make sure the ISO is assigned as the Primary Master for the Virtual DVD. The Storage Form, right panel has the drop-down box to configure devices.

You can setup several ISO files and the Host CD drive as primary and secondary virtual devices. By configuring the Primary and Secondary Drive assignments, you can boot from any image or from a physical Host drive.

SteveA

  • Guest
Re: BxbAsm
« Reply #332 on: May 25, 2012, 08:14:08 PM »
Thanks John,
I think I got it.


SteveA

  • Guest
Re: BxbAsm
« Reply #333 on: May 28, 2012, 08:32:25 AM »
Hey Guys,
I installed each of these in the VM: Fedora, Ubuntu, Mint and Debian.
They each bootup into their respective GUIs and seem to work okay.

Question:
How do I modify them so that they boot up into the console, instead of the GUI ?
Or, should I just leave them as they are and open the terminal ?

Steve

edit:
Thanks for suggesting the VirtualBox.
It turns out to be a lot easier than creating  multi-boot system.
So far I don't see any down-side that would affect what I'm doing.

Steve
« Last Edit: May 28, 2012, 08:36:19 AM by SteveA »

jcfuller

  • Guest
Re: BxbAsm
« Reply #334 on: May 28, 2012, 09:25:46 AM »

Question:
How do I modify them so that they boot up into the console, instead of the GUI ?
Or, should I just leave them as they are and open the terminal ?

Steve



I don't know if there is a way but opening a terminal is not that difficult :)

For an IDE I use Geany. I've only tried Ubuntu and Mint12, and it is available in the software repositories.

If you want I can post my current BXB.INC and my library directory. I don't think I needed to make any changes to Bxbasm.c and friends.

James

SteveA

  • Guest
Re: BxbAsm
« Reply #335 on: May 28, 2012, 11:26:44 AM »
I don't know if there is a way but opening a terminal is not that difficult :)

I've only ever used Linux from the console, so the GUI is a new experience for me.
When I've used Linux, I was accessing a server (Slackware) via a terminal connection.

Quote
If you want I can post my current BXB.INC and my library directory.
I don't think I needed to make any changes to Bxbasm.c and friends.

Sure, that would be great.

I have noticed that the four distros do not all include the same GNU tools.
I was looking for gcc and I think I found it on only one, (so far).
From the terminal, on Debian, I typed "whereis gcc" and got no response.
It's like the bash commands are different, or something isn't setup right.

Steve

jcfuller

  • Guest
Re: BxbAsm
« Reply #336 on: May 28, 2012, 01:36:57 PM »
I just do a gcc --version from the terminal prompt.
I installed Bacon from the Mint12 software manager and it added all the -dev packages I think I'll need.

James


jcfuller

  • Guest
Re: BxbAsm
« Reply #337 on: May 28, 2012, 01:58:49 PM »
Steve,
  Here is my LibSource directory. It includes a makefile to make things easier.

James

Edit: forgot bxb.inc
I also include my build script
« Last Edit: May 28, 2012, 02:03:28 PM by jcfuller »

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: BxbAsm
« Reply #338 on: May 30, 2012, 11:24:18 PM »
On Debian-based distros, issue the command "sudo apt-get install build-essential" to install gcc etc.

Under Ubuntu, "sudo update-rc.d -f gdm remove" will disable the display manager (you'll need to restart afterwards).  Not sure if that works on Debian, worth a shot though...the other distros may have other ways of disabling the display manager (if you're running Gnome on all of them, it will be "gdm").  You should be able to manually start the Gui from the commandline if needed by running "startx".

A.


SteveA

  • Guest
Re: BxbAsm
« Reply #339 on: June 01, 2012, 09:24:45 AM »
On Debian-based distros, issue the command "sudo apt-get install build-essential" to install gcc etc.

Under Ubuntu, "sudo update-rc.d -f gdm remove" will disable the display manager (you'll need to restart afterwards).  Not sure if that works on Debian, worth a shot though...the other distros may have other ways of disabling the display manager (if you're running Gnome on all of them, it will be "gdm").  You should be able to manually start the Gui from the commandline if needed by running "startx".

Hey, thanks for the info Armando.

I've been buried in Debian for the past 2+ days.
Boy, was it a hassle.
Fedora, Mint and Ubuntu completely installed and updated properly and in a very short time.
Got all the GNU tools and everything I will (n)ever need.

Debian was a very different story.
Getting the updates and all the GNU stuff that I needed was really like pulling teeth.
I read and reread the specific docs and googled, but, nothing was working.
I mean, what took 10 minutes to do in each of the other three, was taking me days to figure out on debian.
Being a complete noob to debian and very little helpful information from the debian forum (jerks) guys, finally this morning I got it all done.

You know, when you spend 2 days doing google searches, reading and re-reading the docs (and nothing makes any sense) and you search forum posts, all before you post a question in a forum and a guy's reply is "STFW" and "RTFM", (Search The F*ing Web) and (Read The F*ing Manual), that kind of leaves a bad taste.

I once thought Forums and User Groups were there for the purpose of aiding in the persuit of finding solutions.

Steve

SteveA

  • Guest
Re: BxbAsm
« Reply #340 on: June 11, 2012, 08:42:26 PM »
Hey James,
I think I've finally got Linux in a usable state.

I have what might be a stupid question...,
what does jwasm/jwlink (linux) use for header and library files ?

I looked through the docs and the downloads and I don't see what I'm supposed to use.
How does this work ?


jcfuller

  • Guest
Re: BxbAsm
« Reply #341 on: June 12, 2012, 02:56:52 AM »
Steve,
  I don't think there are any. I think I used the h to inc app on windows with the linux gcc headers to get some of the basic ones.
I'll take a look later today.

James

jcfuller

  • Guest
Re: BxbAsm
« Reply #342 on: June 12, 2012, 05:09:23 AM »
Steve,
  Here is my jwasm linux include directory. There is probably junk in there as well as needed include files.

James

SteveA

  • Guest
Re: BxbAsm
« Reply #343 on: June 14, 2012, 03:00:39 PM »
Hey james,

I studied your linux console functions.
I was reminded that years ago I did quite a bit of terminal programming using escape sequences.
VT100 type terminals and some others too.

Until now, I didn't really have a good grasp of how linux worked and how it differed from windows, or even from DOS.
So, now I understand that aspect considerably better.

I've been studying up on Linux programming, regarding ncurses.
I don't know how familiar you are with ncurses, but, it's like an entire API for terminal programming.
So much more can be done using ncurses than with escape sequences.
Once again, it would not be cross platform compatible with windows, but, it would be with any flavor of *nix.
ncurses is very interesting stuff.

Steve

jcfuller

  • Guest
Re: BxbAsm
« Reply #344 on: June 15, 2012, 05:37:37 AM »
Steve,
  The functions I believe are mostly Armando's MBC/UBX that I borrowed.
I am aware of but have not studied ncurses very much. I may have done jwasm demo borrowed from FreeBasic.

James