Unable to install USB Redirector

J

jadog

Guest
I am new to Linux and Proxmox and am having trouble installing USB Redirector. I wish to have windows xp share the printer so it can be available on my netowrk. I am using the following kernel: 2.6.32-11-pve

I followed the instructions here: http://pve.proxmox.com/wiki/USB_Redirector

I opened putty and logged into Proxmox. Then I tried to run this command to resolve dependancies.

Code:
apt-get install build-essential pve-headers-`uname -r`

I go the following error:
Code:
Unable to locate package pve-headers-uname -r

So I ran aptitude update and aptitude upgrade and then issued the command again. Now I get:

Code:
root@proxmox:/# apt-get install build-essential pve-headers-`uname -r`
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package 'build-essential' has no installation candidate

Any ideas?
 
apt-get update
 
apt-get update

Thanks for that. Running "apt-get update" allowed me to complete the first step without errors.

I think I'm getting closer, but I'm not there yet. The step before running the installer said I should issue the following command to edit the installer:

Code:
sed -i 's/KERNELDIR=\/usr\/src\/linux/KERNELDIR=\/usr\/src\/linux-headers-`uname -r`/' installer.sh

However, when I did that, it didn't error, but it didn't say it was successful either.

When I opened the installer.sh file (using sftp) to view it, I noticed that the kernel source path remained unchanged. Is this supposed to point to a different directory?

Code:
# Default kernel sources path
KERNELDIR=/lib/modules/`uname -r`/build


So I moved on and when I tried to run the ./installer.sh command, I got this:
Code:
root@proxmox:/tmp/usb-redirector-linux-x86_64# ./installer.sh
-bash: ./installer.sh: Permission denied

I am logged in as root, so I'm not sure why I don't have permissions. I assume though that it has something to do with the previous step failing?
 
There is something strange on how you use backticks. `uname -r` should expand to '2.6.32-11-pve' - Try to use that directly instead of the 'uname -r' command.
 
I always wonder why not use the much simpler to type and to understand syntax $(uname -r) instead of those difficult to generate in most keyboard ` that can also be confused with ' by novices :)
 
Can't install with Proxmox 4.0.


root@lab:/1# ./installer.sh install

*** Installing USB Redirector for Linux v3.2.2
*** Destination dir: /usr/local/usb-redirector
*** Checking installation...
*** Detecting system...
*** distribution: debian
*** kernel: 4.2.2-1-pve
Your kernel version is not officially suppported! Would like to try installing anyway [y/n] ? y
You're doing it at your own risk! %)
*** Compiling kernel module...
*** Cleaning up installation...
***
*** Installation failed!
??? Cannot compile kernel module. Installation terminated. See buildlog.txt file for more information.

buildlog.txt:
make -C /lib/modules/4.2.2-1-pve/build M=/1/files/modules/src/tusbd modules
make[1]: Entering directory '/usr/src/linux-headers-4.2.2-1-pve'
CC [M] /1/files/modules/src/tusbd/driver.o
CC [M] /1/files/modules/src/tusbd/usbdcdev.o
CC [M] /1/files/modules/src/tusbd/minor_control.o
/1/files/modules/src/tusbd/minor_control.c: In function ‘IIIlIllll’:
/1/files/modules/src/tusbd/minor_control.c:54:1: error: implicit declaration of function ‘strnicmp’ [-Werror=implicit-function-declaration]
if(strnicmp(IllIll,"\x73\x68\x61\x72\x65",(0x1448+2821-0x1f48))==
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/1/files/modules/src/tusbd/minor_control.o' failed
make[2]: *** [/1/files/modules/src/tusbd/minor_control.o] Error 1
Makefile:1398: recipe for target '_module_/1/files/modules/src/tusbd' failed
make[1]: *** [_module_/1/files/modules/src/tusbd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.2-1-pve'
Makefile:61: recipe for target 'default' failed
make: *** [default] Error 2
 
Can't install with Proxmox 4.0.


root@lab:/1# ./installer.sh install

*** Installing USB Redirector for Linux v3.2.2
*** Destination dir: /usr/local/usb-redirector
*** Checking installation...
*** Detecting system...
*** distribution: debian
*** kernel: 4.2.2-1-pve
Your kernel version is not officially suppported! Would like to try installing anyway [y/n] ? y
You're doing it at your own risk! %)
*** Compiling kernel module...
*** Cleaning up installation...
***
*** Installation failed!
??? Cannot compile kernel module. Installation terminated. See buildlog.txt file for more information.

buildlog.txt:
make -C /lib/modules/4.2.2-1-pve/build M=/1/files/modules/src/tusbd modules
make[1]: Entering directory '/usr/src/linux-headers-4.2.2-1-pve'
CC [M] /1/files/modules/src/tusbd/driver.o
CC [M] /1/files/modules/src/tusbd/usbdcdev.o
CC [M] /1/files/modules/src/tusbd/minor_control.o
/1/files/modules/src/tusbd/minor_control.c: In function ‘IIIlIllll’:
/1/files/modules/src/tusbd/minor_control.c:54:1: error: implicit declaration of function ‘strnicmp’ [-Werror=implicit-function-declaration]
if(strnicmp(IllIll,"\x73\x68\x61\x72\x65",(0x1448+2821-0x1f48))==
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/1/files/modules/src/tusbd/minor_control.o' failed
make[2]: *** [/1/files/modules/src/tusbd/minor_control.o] Error 1
Makefile:1398: recipe for target '_module_/1/files/modules/src/tusbd' failed
make[1]: *** [_module_/1/files/modules/src/tusbd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.2-1-pve'
Makefile:61: recipe for target 'default' failed
make: *** [default] Error 2

Try that link http://www.incentivespro.com/usb-redirector-linux-3.4-x86_64.tar.gz
but beware, it may be unstable beta version

root@tel-hv05:~/usb-redirector-linux-x86_64# ./installer.sh install-server

*** Installing USB Redirector for Linux v3.4
*** Destination dir: /usr/local/usb-redirector
*** Checking installation...
*** Detecting system...
*** distribution: debian
*** kernel: 4.2.6-1-pve
Your kernel version is not officially suppported! Would like to try installing anyway [y/n] ? y
You're doing it at your own risk! %)
*** Compiling kernel module...
*** Kernel module successfully compiled
*** Creating directories...
*** Preparing scripts...
*** Copying files...
*** Setting up init script...
*** Starting daemon...
*** Please allow incoming connections on 32032 port for USB Sever to be able to accept connections from remote clients.
*** INSTALLATION SUCCESSFUL! To uninstall, run /usr/local/usb-redirector/uninstall.sh
 
  • Like
Reactions: Deni74

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!