Linux BASICtools - questions
Posted: Fri Jun 03, 2016 4:20 am
I decided to play in DEMO mode today. I'm surprised I got as far as I did.
I am using the LIVE version of Ubuntu 12.04.LTS so everything should be duplicate able.
Aside:
So, I've been running from CD for at least a year, if not longer. I have a small flash drive that has a script that for the most part;
a) Disables trackpad tapping; b) Sets the time zone (file on flash drive); c) Installs Flash from a directory on the USB stick (a copy); d) Adds an ARP entry for a printer then checks for an internet connection and terminates if it doesn't find one.
You basically need to 1. Mount the flash drive; 2. Connect to a network and 3. Open a terminal window and execute "sudo bash /media/KINGSTON/config from a fresh boot.
Now it downloads and installs the latest Firefox and NFS and creates the mount points.
I have another script that helps me to install VPN if I need it.
I did, at one time, I did install the arduino development kit and got around most of the issues. The biggest one there is USB permissions. That can be temporarily solved by running in sudo mode. The Arduino has two types of USB devices.
You definitely need a readme.linux type of file.
The first thing was the .gz whatever it was mounted as a Network drive eventually. Totally odd. It's definately not apt, or the package manager. Vivaldi (new browser) uses stuff with an RPM extension. That works nice. privateinternetacess.com (paid VPN) uses a WGET sort of construct. I think the VPN stuff requires adding the proper repository. Synaptic is cool too as a package manager.
Ok, back to the issues:
1. Where do you suggest that BASIC be installed? I picked /usr/local/bin. So, I moved the stuff there.
2. tk apparently isn't installed and there are three versions to choose from. tk,
via apt, you can install tk, tk8.4 and tk8.5 (I chose tk) I found that out because BASICtool complained that it could not find wish.
3. I added execute permissions by doing:
chmod +x TclTerm.tcl and chmod +x TclTerm.tcl
4. I did add a path to BASIC using some form of the command here: http://unix.stackexchange.com/questions ... th-to-path
5. sudo wish BASICtools.tcl at least launches BASICtools. sudo wish TclTerm.tcl launches with only two real options.
Claear and reset. and the error ttyso is not available which would be OK. Earlier in my playing, I got a syntax error. Not running as sudo got some permission errors with some .out? type of file.
5a. One f the startups were really wierd where it trys a lot of the tty's. I suppose the tty with USB in it is not there because the FDDI device isn't present.
6. HELP gave me the following error: start: Unknown job: http://www.coridium.us/ARMhelp/index.htm
from the Ubuntu terminal window.
7. About ArmBasic tools gives me an error I can;t read all of. Could not execute (path)BASICArmb... the .. are part of the message.
8. the connection command gives me "Could not execute 21xx No such file...." Again ... is part of the message.
9. Edit/show preprocessor. Gives me a message about "Notepad".
10. Finally the BIG ISSUE. Choose editor doesn;t work at all. at one point it was opening gedit. The selection process only allows .com, .exe and .bat. They don;t exist in Linux. I wanted to add pico. Typing the complete path to pico didn't work either.
I could probably fake it.
11. I did make a simple file: e.g. 10 print 1; 20 END
12. I forget what's supposed to happen, but loading doesn;t show in window. SHow pre-processsed doesn;t show anything.
Based on another message, I tough a minimal amount of emulation was done.
13. This error (gedit:19416): GLib-GIO-WARNING **: Missing callback called fullpath = /root/.local/share/recently-used.xbel
occurred.
14. Print doesnt; work "Could not execute Printit.exe"
couldn't execute "PrintIt.exe": no such file or directory
couldn't execute "PrintIt.exe": no such file or directory
while executing
"exec $::printIt __temp.out "
(procedure "printWdw" line 16)
invoked from within
"printWdw .display.txxt "
invoked from within
".#menubar.#menubar#fil invoke active"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke active]"
(procedure "tk::MenuInvoke" line 50)
invoked from within
"tk::MenuInvoke .#menubar.#menubar#fil 1"
(command bound to event)
15. It's kinda hard to tell in the Details box, where the individual errors start and end. I'd insert a blank line if you can.
e.g. At a menu selection. Check to see if a blank line was sent and if not send one.
BASICtools starts in a window in the lower left hand corner and then moves a bit.
As I said, I'm surprised I got as far as I did. As i said, since I used the LIVE CD, it's like starting from scratch everytime, so you should be able to duplicate everything. The error messages in the dialogs are too short. The file exploring may need some help at a later time.
Lots of odd issues (probably PATH related):
ubuntu@ubuntu:/usr/local/bin/BASIC$ cd ~
ubuntu@ubuntu:~$ BASICtools.tcl
Error in startup script: couldn't read file "TclTerm.tcl": no such file or directory
while executing
"source TclTerm.tcl"
(file "/usr/local/bin/BASIC/BASICtools.tcl" line 1293)
ubuntu@ubuntu:~$ sudo wish BASICtools.tcl
Error in startup script: couldn't read file "BASICtools.tcl": no such file or directory
ubuntu@ubuntu:~$ pwd
/home/ubuntu
BASICtools.tcl does involk BASICtools at least sometimes.
So, the most annoying issues are:
1. Can;t select editor
2, No readme.linux type of file.
Where one should put the thing; Path; how to execute; Adding execute permissions; USBport permissions
3. Error messages are not long enough.
4. References to Notepad
5. Probably some PATH wierdnesses
Enough for now.
I am using the LIVE version of Ubuntu 12.04.LTS so everything should be duplicate able.
Aside:
So, I've been running from CD for at least a year, if not longer. I have a small flash drive that has a script that for the most part;
a) Disables trackpad tapping; b) Sets the time zone (file on flash drive); c) Installs Flash from a directory on the USB stick (a copy); d) Adds an ARP entry for a printer then checks for an internet connection and terminates if it doesn't find one.
You basically need to 1. Mount the flash drive; 2. Connect to a network and 3. Open a terminal window and execute "sudo bash /media/KINGSTON/config from a fresh boot.
Now it downloads and installs the latest Firefox and NFS and creates the mount points.
I have another script that helps me to install VPN if I need it.
I did, at one time, I did install the arduino development kit and got around most of the issues. The biggest one there is USB permissions. That can be temporarily solved by running in sudo mode. The Arduino has two types of USB devices.
You definitely need a readme.linux type of file.
The first thing was the .gz whatever it was mounted as a Network drive eventually. Totally odd. It's definately not apt, or the package manager. Vivaldi (new browser) uses stuff with an RPM extension. That works nice. privateinternetacess.com (paid VPN) uses a WGET sort of construct. I think the VPN stuff requires adding the proper repository. Synaptic is cool too as a package manager.
Ok, back to the issues:
1. Where do you suggest that BASIC be installed? I picked /usr/local/bin. So, I moved the stuff there.
2. tk apparently isn't installed and there are three versions to choose from. tk,
via apt, you can install tk, tk8.4 and tk8.5 (I chose tk) I found that out because BASICtool complained that it could not find wish.
3. I added execute permissions by doing:
chmod +x TclTerm.tcl and chmod +x TclTerm.tcl
4. I did add a path to BASIC using some form of the command here: http://unix.stackexchange.com/questions ... th-to-path
5. sudo wish BASICtools.tcl at least launches BASICtools. sudo wish TclTerm.tcl launches with only two real options.
Claear and reset. and the error ttyso is not available which would be OK. Earlier in my playing, I got a syntax error. Not running as sudo got some permission errors with some .out? type of file.
5a. One f the startups were really wierd where it trys a lot of the tty's. I suppose the tty with USB in it is not there because the FDDI device isn't present.
6. HELP gave me the following error: start: Unknown job: http://www.coridium.us/ARMhelp/index.htm
from the Ubuntu terminal window.
7. About ArmBasic tools gives me an error I can;t read all of. Could not execute (path)BASICArmb... the .. are part of the message.
8. the connection command gives me "Could not execute 21xx No such file...." Again ... is part of the message.
9. Edit/show preprocessor. Gives me a message about "Notepad".
10. Finally the BIG ISSUE. Choose editor doesn;t work at all. at one point it was opening gedit. The selection process only allows .com, .exe and .bat. They don;t exist in Linux. I wanted to add pico. Typing the complete path to pico didn't work either.
I could probably fake it.
11. I did make a simple file: e.g. 10 print 1; 20 END
12. I forget what's supposed to happen, but loading doesn;t show in window. SHow pre-processsed doesn;t show anything.
Based on another message, I tough a minimal amount of emulation was done.
13. This error (gedit:19416): GLib-GIO-WARNING **: Missing callback called fullpath = /root/.local/share/recently-used.xbel
occurred.
14. Print doesnt; work "Could not execute Printit.exe"
couldn't execute "PrintIt.exe": no such file or directory
couldn't execute "PrintIt.exe": no such file or directory
while executing
"exec $::printIt __temp.out "
(procedure "printWdw" line 16)
invoked from within
"printWdw .display.txxt "
invoked from within
".#menubar.#menubar#fil invoke active"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke active]"
(procedure "tk::MenuInvoke" line 50)
invoked from within
"tk::MenuInvoke .#menubar.#menubar#fil 1"
(command bound to event)
15. It's kinda hard to tell in the Details box, where the individual errors start and end. I'd insert a blank line if you can.
e.g. At a menu selection. Check to see if a blank line was sent and if not send one.
BASICtools starts in a window in the lower left hand corner and then moves a bit.
As I said, I'm surprised I got as far as I did. As i said, since I used the LIVE CD, it's like starting from scratch everytime, so you should be able to duplicate everything. The error messages in the dialogs are too short. The file exploring may need some help at a later time.
Lots of odd issues (probably PATH related):
ubuntu@ubuntu:/usr/local/bin/BASIC$ cd ~
ubuntu@ubuntu:~$ BASICtools.tcl
Error in startup script: couldn't read file "TclTerm.tcl": no such file or directory
while executing
"source TclTerm.tcl"
(file "/usr/local/bin/BASIC/BASICtools.tcl" line 1293)
ubuntu@ubuntu:~$ sudo wish BASICtools.tcl
Error in startup script: couldn't read file "BASICtools.tcl": no such file or directory
ubuntu@ubuntu:~$ pwd
/home/ubuntu
BASICtools.tcl does involk BASICtools at least sometimes.
So, the most annoying issues are:
1. Can;t select editor
2, No readme.linux type of file.
Where one should put the thing; Path; how to execute; Adding execute permissions; USBport permissions
3. Error messages are not long enough.
4. References to Notepad
5. Probably some PATH wierdnesses
Enough for now.