Great program by the way! I tried USB Redirector as well and I have to say this program is much simpler to use. I've been able to share USB devices and it works fantastic.
I need help with creating a daemon script to auto start the USB over Network daemon each time my physical server reboots.
I've done a bit of research and figured out that it seems that I need to add the changes to a file in either of the the two folders:
/etc/rc2.d/ /etc/init.d/
Is this correct? If so, do I just add the script (see below) I'm currently using to start the USB over Network daemon?
sudo /usr/local/bin/ftusbnet/sbin/ftusbnetd
Do I just need to add the above line into some file in one of the above directories?
I'm sorry for all the questions, and thanks for the help!
It depends on what Linux OS you have but you are on the right way. You need to add several strings to your init-scripts.
Start section: ___________________________________________________________________________ -->/usr/local/bin/ftusbnet/sbin/ftusbnetd -- just a way to USB over Network. Without "sudo" or any options.
-->"any functions that will note the process ID" ___________________________________________________________________________
End section: _________________________________________________________________________
--> "kill all usbnetfd" or "kill PID" ___________________________________________________________________________
If you wish we can write this script for you but we need detailed information about your OS and your init. files.
Thank you.Please do not hesitate to ask if you have any questions. Our support team will be glad to assist you.
This Linux distribution is probably somewhat unique in that it was developed by the Proxmox team. Proxmox is a Server Virtualization software much like ESXi. See here for more info: http://www.proxmox.com/products/proxmox-ve.
In any case, when I run the command you supplied, I get the following:
root@proxmox:~# cat /etc/lsb-release cat: /etc/lsb-release: No such file or directory
I plan on publishing a "How To" guide on the Proxmox forum and advertising your software as a better alternative than USB Redirector. Hopefully we can get this working!
Ok, I've verified that I need to add the entry to the /etc/init.d/ directory. I assume the modification should be made to the rc.local file.
Currently this is what it contains. Any ideas on what I need to add to it?
#! /bin/sh ### BEGIN INIT INFO # Provides: rc.local # Required-Start: $remote_fs $syslog $all # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Run /etc/rc.local if it exist ### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/init/vars.sh . /lib/lsb/init-functions
do_start() {
if [ -x /etc/rc.local ]; then
[ "$VERBOSE" != no ] && log_begin_msg "Running local boot scripts (/etc/rc.local)"
I`m sorry for such long delay. Our developer needed to download the ISO of this OS and to see it with his own eyes.
Please check your email. I will send the init-file there. Also here is the code. Just in case.
#! /bin/sh ### BEGIN INIT INFO # Provides: ftusbnetd # Required-Start: $syslog $time # Required-Stop: $syslog $time # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: USB-over-Network Server for Linux # Description: Daemon, that allows to redirect USB devices to the # remote hosts ### END INIT INFO
Wow, talk about going the extra mile. You guys are great!
I never got the email attachment because my email service dropped the attachment. I updated my profile with a different email if you want to try sending again. Otherwise, I just copied and pasted the script you provided into a file that I named ftusbnetd without any extension. Then I uploaded it to the etc/init.d/ folder and then I tried to run the command, I get Permission Denied.
I apologize for my inexperience with Linux. This is pretty much my first exposure to the CLI. Anyway, I created the file using the nano editor. Then I ran the "chmod +x /etc/init.d/ftusbnetd" command.
When running the commands below, nothing happened. No errors or success statements. It just advances to the next line.
root@proxmox:~# /etc/init.d/ftusbnetd start root@proxmox:~# /etc/init.d/ftusbnetd status root@proxmox:~#
When I run the status command on any other daemon's in the "init.d" directory, it says they are running. Is it possible that the ftusbnetd that is located in the "/usr/local/bin/ftusbnet/sbin/ftusbnetd" is somehow releated? If you would like me to email you the file that I created in nano, please pm your email address.
Ok, it's working now. So when I get order the license, I can just create a text file and name it ftusbnet.key. Then copy everything from the key you email into that file and drop it into the /etc directory, right?
By default "ftusbnetd" daemon searches for the license key in the following file "/etc/license.key". You should create this file and paste your license key in it (including the "BEGIN" and "END" lines). Alternatively, you can specify a custom location of the license key file with the help of '-k' option:
I also used this script but on my windows clinet I get the message that host is unreachable. Als o I would like to have it automatically connect the USB device. Is this possible? Or do I need to install the license (I have on) first?
- please check if the deamon is running - try to launch the deamon under root
Concerning your other question. Yes, you can connect devices automatically. Check this link to see how to enable the auto-connection function: http://www.fabulatech.com/usb-over-network-client-help/connecting-devices-auto.html