You are not logged in.

#1 2015-04-06 10:38:02

Arakis
Member
From: Hamminkeln - Germany
Registered: 2013-08-11
Posts: 46
Website

Write to /dev/fb0 of remote computer

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

#2 2015-04-09 23:54:11

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Write to /dev/fb0 of remote computer

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

#3 2015-04-10 12:58:05

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Write to /dev/fb0 of remote computer

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

Board footer

Powered by FluxBB