Jump to content
tschak909

#FujiNet - a WIP SIO Network Adapter for the Atari 8-bit

Recommended Posts

6 minutes ago, jamm said:

I have to admit, it's kind of a kick that you guys are able to share Atari files directly now.  😬

I dig it. :) Looking forward to the future ability to create a local copy of a shared ATR or other file onto the SD card without needing to make a sector copy or DOS "Duplicate Disk" function.

 

Share this post


Link to post
Share on other sites
2 minutes ago, DrVenkman said:

I dig it. :) Looking forward to the future ability to create a local copy of a shared ATR or other file onto the SD card without needing to make a sector copy or DOS "Duplicate Disk" function.

 

you CAN use NCOPY from the fnc-tools disk To copy a file from N: onto either N: or "D:"

  • Like 1

Share this post


Link to post
Share on other sites

It would be great if there were a way to mark a tnfs server as "mine" and have that allow you to copy files from other sources to the SD card or "mine" server. Conversely there should be no way for people to put new files on a server that isn't marked as "mine"

Share this post


Link to post
Share on other sites

TNFS file permissions match the underlying filesystem, so mark the files and or directory as read only for other users. done. :)

  • Like 1

Share this post


Link to post
Share on other sites

TNFS mount does have a concept of specifying a username and a password, but this will require adding additional functionality to fork child processes to handle file permissions with the effective user logged in.

-Thom

Share this post


Link to post
Share on other sites

In line with @Mr Robot's comments, it would probably be a good idea to disallow creation of "New" ATRs on any but local servers, or maybe only the SD card. And maybe only allow ATRs from remote non-LAN hosts to be mounted as RO. 

Share this post


Link to post
Share on other sites
12 minutes ago, DrVenkman said:

In line with @Mr Robot's comments, it would probably be a good idea to disallow creation of "New" ATRs on any but local servers, or maybe only the SD card. And maybe only allow ATRs from remote non-LAN hosts to be mounted as RO. 

I think it's a better idea to implement username/password as @tschak909 suggests. If you have a world exposed tnfs server you should know what you're doing and make it read only if you choose.

 

Edit: and if our firmware treated it read only when it was actually r/w, any person smart enough could easily still write to your server.

Edited by mozzwald
haxors

Share this post


Link to post
Share on other sites
3 hours ago, Mr Robot said:

So I printed an Atariartist picture to 1020 plotter... took _hours_ and obviously only has 4 colours so we're not expecting miracles here.

You inspired me ... :)

 

The original, drawn by a ~16 year old me circa 1984/1985 in AtariArtist.

 

image.thumb.png.63b93da63ee01bcc310bd7ecbe811c89.png

 

The FujiNet emulated 1020 Plotter output tonight. I got the pen color assignments wrong but after waiting over an hour for the output, I'm not gonna bother re-doing it, lol. 

 

2094946890_Annotation2020-08-05201114.thumb.png.6a22258e582207ce9febfa06b172f9ef.png

  • Like 8

Share this post


Link to post
Share on other sites

#Atari8bit Guys, @Savetz was able to put together a networked 2-player game of Connect 4 for #FUJINET in part of an afternoon, in Turbo BASIC XL. It's going to be stupid easy to make new games! -Thom

connect4-listing.thumb.PNG.10e825b7e67ce8a9a6372a248d136d85.PNGconnect4-protocol.thumb.PNG.ce6e6f9853d899713359c860f084cbb4.PNGWIN_20200805_20_09_22_Pro.thumb.jpg.5121dabcbefb8fa00f54105c6a1fb496.jpgWIN_20200805_20_09_48_Pro.thumb.jpg.e3dfbc6835f24a7020197091111c3a6f.jpgWIN_20200805_20_10_14_Pro.thumb.jpg.d73ebfe373846e1cdf26cca04ae2273c.jpgWIN_20200805_20_11_11_Pro.thumb.jpg.ad8173b878f1863e67a8abb8b606568f.jpg

  • Like 8

Share this post


Link to post
Share on other sites
2 hours ago, DrVenkman said:

You inspired me ... :)

 

The original, drawn by a ~16 year old me circa 1984/1985 in AtariArtist.

 

image.thumb.png.63b93da63ee01bcc310bd7ecbe811c89.png

 

The FujiNet emulated 1020 Plotter output tonight. I got the pen color assignments wrong but after waiting over an hour for the output, I'm not gonna bother re-doing it, lol. 

 

2094946890_Annotation2020-08-05201114.thumb.png.6a22258e582207ce9febfa06b172f9ef.png

I'm curious how long that would take to print on a real 1020, but I'm not willing to sacrifice one to find out...

 

Share this post


Link to post
Share on other sites
3 hours ago, DrVenkman said:

In line with @Mr Robot's comments, it would probably be a good idea to disallow creation of "New" ATRs on any but local servers, or maybe only the SD card. And maybe only allow ATRs from remote non-LAN hosts to be mounted as RO. 

 

Please do not put anything on TNFSD that you don't have backed up elsewhere.  Little to no effort has been put into securing that code (either by the original author 10 years ago or us in our recent additions), so assume any folders you expose via TNFSD are public and may be destroyed/altered.  Professionals get this stuff wrong even when they're trying, and we're not even trying...

 

Share this post


Link to post
Share on other sites

Name(userid) and Password has worked forever...

fail shared password 2 times and only local network access should be permitted, local network access should allow user to re-enable...

please don't go the annoying route of making everything read only until overridden by the user... a real hack or person attempting to do something malicious would simply change the flag/access and have their way with it in any case...

it was stated this is a key/encrypted capable device and could do secure connections... so packet sniffing script kiddies shouldn't be able to get or see the name(userid)/password

I despise default lock-down conditions, they are all simply tissue paper,

 

hmmm back your data up, that's what I've heard since carbon copy paper came into existance...

 

Share this post


Link to post
Share on other sites

As I've alluded to:

 

TNFS right now mounts everything anonymously.

 

The username and password are part of the MOUNT request, there just needs to be a sane way to handle this. Will take some thought.

 

In the mean time, as I've also said:

 

tnfsd runs with the privileges of the user which runs it.

 

This means, that if you set privileges on the data directory (or any files/directories under it) for OTHER users to read only, then the file is read only (for everyone), this will be beneficial for public TNFS servers, in the mean time.

 

I would assume any TNFS server on local LAN wouldn't be a security priority.

 

-Thom

  • Like 1

Share this post


Link to post
Share on other sites

Just to add to what @tschak909 said above and maybe elaborate on what I said before that: TNFSD does no enforcement of security itself. Therefore, all the security enforcement must come from your operating system's file security settings in the folders you've given TNFSD access to and the rights it has by virtue of what user context it's running in.  Obviously you don't want to run TNFSD as root or Administrator...

 

Share this post


Link to post
Share on other sites

oh my 😮

would anyone really expose their machines to the world with Administrator credentials or leave Root open to all?

say it ain't so Joe!

hmmm

Format drive C:? Y/N

N

Now formatting drive C

looks like ansii sys has had N re-assigned as Y

sorry but it's all gone now...

DERP!

 

seriously though, it's not like cookie monster is coming to the 8 bit... or is it... gimme a cookie!

Edited by _The Doctor__
  • Haha 1

Share this post


Link to post
Share on other sites
7 hours ago, jamm said:

I'm curious how long that would take to print on a real 1020, but I'm not willing to sacrifice one to find out...

This took over an hour, even setting “color 1” (black) to blank (white). I will probably try again at some point to reverse the green/blue colors.

 

If I could only remember off the top of my head which emulated color pen is which color ... “Pen 1” is black, correct? What colors are pens 2, 3, and 4? I can’t remember for sure which ones I guessed when I told the plotter utility to print this, lol. Well, let me rephrase - obviously the other pens are red, green and blue. I just can’t recall which “pen number” each color corresponds to in the 1020 Plotter emulation. :)

Share this post


Link to post
Share on other sites

https://github.com/FujiNetWIFI/fujinet-platformio/blob/dcdc1e75ab5423fb731bf03dc28b874da4a584a7/lib/printer-emulator/svg_plotter.cpp#L219-L222

 

0 Black
1 Blue
2 Green

3 Red

  • Like 3

Share this post


Link to post
Share on other sites
7 hours ago, StickJock said:

 The easy way to remember this order is that it is in alphabetical order.  BLA, BLU, G, R

Thanks for the mnemonic. :)

 

image.thumb.png.c37bcc6a383d8fc66f49a30d5a3b767e.png

 

EDIT: I spent the hour-plus for a Large plot instead. Now I get dithering. :)

 

Edited by DrVenkman
Higher-res plot
  • Like 3

Share this post


Link to post
Share on other sites

Hello guys

 

6 hours ago, StickJock said:

 The easy way to remember this order is that it is in alphabetical order.  BLA, BLU, G, R

 

Or RGB + Black, in reverse order.

 

Sincerely

 

Mathy

  • Like 1

Share this post


Link to post
Share on other sites
On 8/5/2020 at 12:41 PM, _The Doctor__ said:

star color printers were popular back in the day, I wonder if I still have one laying about... :)

slightly different commands, but great output. Star Micronix or something like that.

Nice stuff, I and some friends also used the Panasonic KXP's with the color kits. again slight differences in commands...

Might be a way for fujinet to set the differences with a condensed replacement of the subtle command character differences as opposed to complete modules swaps... not sure but  maybe that would help if space becomes and issue.

Star / Gemini are a little different from Epson. Mostly the old models.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...