Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: Project23D on February 23, 2014, 10:58:04 PM
-
Seeing that using the search in this forum yields nothing for ser2net, I thought I would share the following:
to use ser2net, it's seems you must start is using the command: (perhaps I need to update my $PATH)
/usr/sbin/ser2net
But to add to that, the .conf file does not exist when you install ser2net, so you need to add one. Because I am new, and yet to learn how ideally to place files, I placed the .conf file here:
/home/tc
because what I'm doing with arduino needs to happen when the computer is booted, I updated bootlocal.sh with the following:
/usr/sbin/ser2net -c /home/tc/ser2net.conf
.filetool already saves the home folder, so I figured what better place to put the .conf file.
After that, I performed a backup, rebooted, and without SSH'ing back into the unit, I went into puTTY on my laptop and entered in the pertinents to the microCore box, and the output from the arduino was displayed. Awesome!
microCore is installed on a HP thin client with 128MB RAM, and even with all the junk I need, it only takes 70MB RAM with services running.
you can find the ser2net.conf examples on the net, but mine is just here and just one line:
2738:raw:0:/dev/ttyUSB0:9600
-
What version of Core are you running?
Where did you get ser2net? Applications are supposed to install into /usr/local not /usr.
-
microCore 4.7.7
ser2net is in the repository, searched using tce-ab
after installing and trying to find where ser2net.conf file might be, (before I learned that I had to make it) I did:
sudo find / -name ser2net
gave the following output:
/tmp/tcloop/ser2net
/tmp/tcloop/ser2net/usr/sbin/ser2net
/usr/local/tce.installed/ser2net
/usr/sbin/ser2net
I didn't know what the other stuff really was for, and being an unorthodox Linux user, I just went with the /usr/sbin. Seemed right to me, ha.
Works great with what I wrote in the first post. I'm very excited that it worked first time.
I have microCore installed to the thin client's DOM, or Disk on Module, which is what HP calls the flash drive module with a laptop IDE connector on it. I am sure that some configs are obfuscated, but it works!
-
OK, I checked the 5.x repository and did not see it, that is why I asked.
I also run HP thin clients.
I have one T5720, four T5730 and one T5740.
-
unless ser2net is no longer supported in 5.x, or socat has taken it's place, please put ser2net in 5.x!
-
Hi Project23D
If you wish, you can try it under 5.x yourself. Boot up 5.x and fetch the extension:
cd /etc/sysconfig/tcedir/optional/
wget -c http://repo.tinycorelinux.net/4.x/x86/tcz/ser2net.tcz
Load it and try it. It has no dependencies, so I suspect it will work. If you confirm it functions, it will be copied to the 5.x repo.
-
You can try it in 5.2, and if it works post a message in http://forum.tinycorelinux.net/index.php/topic,15906.0.html
-
ser2net works with 5.2!
now to figure out how to make it install it to load on boot...
-
The same way you make any other program install at boot.