You are not logged in.
Hello,
i know, that the /dev/* files are device files, no real files, but is there a way to access them via network?
I mounted the remote file system via sshfs, but when i try "fdisk /mnt/dev/sda" or "cat /dev/urandom > /mnt/dev/fb0", i get a permission denied error (even as root).
I want to access the remote framebuffer for developing software for embedded hardware, but want to debug the application on my main archlinux computer.
Any idea for a trick?
Greetings,
Sebastian
Offline
The examples you have listed, like fdisk and cat /dev/urandom could simply be done by logging in with ssh and then running those commands.
What you probably really want is one of these options:
#1 You could write a simple program that accepts tcp connections, and forwards all the received data to /dev/fb0, then run that on the embedded device. Interesting programming exercise.
#2 netcat
EDIT:
#3 mkfifo and ssh
Last edited by teateawhy (2015-04-09 23:58:59)
Offline
I'm not sure it will work for /dev/fb0 but you could take a look at nmb, I've tried it for block devices and it worked well.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline