linux-noah / noah

Bash on Ubuntu on macOS
Other
1.93k stars 90 forks source link

Can it use FUSE? #42

Open probonopd opened 6 years ago

probonopd commented 6 years ago

Can it use FUSE? Then we could possibly run AppImages. Has anyone ever tried?

darkfader commented 5 years ago

Perhaps try via osxfuse.

brew cask install osxfuse

And read https://github.com/osxfuse/fuse/blob/master/doc/how-fuse-works And modify libfuse/libosxfuse code or something?

osxfuse creates osxfuse0..63 in /dev

crw-rw-rw-  1 root       operator        37,   0 Dec 28 02:36 osxfuse0
up to
crw-rw-rw-  1 root       operator        37,  63 Dec 28 02:35 osxfuse63

and in Ubuntu it shows:

crw-rw-rw- 1 root      tty        0, 151552 Dec 28 01:36 osxfuse0
up to
crw-rw-rw- 1 root      tty        0, 151615 Dec 28 01:35 osxfuse63

So at least it needs to find out how the device names and numbers work and if it uses the same API. On normal Linux, it seems it was 10, 229 /dev/fuse

+/** The major number of the fuse character device */
+#define FUSE_MAJOR MISC_MAJOR
+
+/** The minor number of the fuse character device */
+#define FUSE_MINOR 229