Tagged: nxusb ubuntu
November 5, 2019 at 09:12 #24338hogaengParticipant
I remote I want to use remote usb service, but there is no usb devices.
I found why there is no devices. My computer failed compile nxusb.ko.
$ cat /usr/NX/var/log/nxinstall.log | grep -i usb
NX> 700 Running: /bin/chown root:root ‘/usr/NX/scripts/restricted/nxusb.sh’.
NX> 700 Running: /bin/chmod 744 ‘/usr/NX/scripts/restricted/nxusb.sh’.
NX> 700 Running: /bin/chmod u+s ‘/usr/NX/scripts/restricted/nxusb.sh’.
NX> 700 Compiling the USB module.
NX> 700 Running: /bin/rm -f ‘/usr/NX/bin/nxusbd-legacy’.
NX> 700 Running: /bin/rm -f ‘/usr/NX/lib/libnxusb-legacy.so’.
NX> 700 Cannot compile USB module.
I try to compile it manually, but I got this error.
/usr/NX/share/src/nxusb $ make -f Makefile
make -C /lib/modules/5.0.0-32-generic/build M=/usr/NX/share/src/nxusb
make: Entering directory ‘/usr/src/linux-headers-5.0.0-32-generic’
CC [M] /usr/NX/share/src/nxusb/nxusb-vhci-iocifc.o
In file included from ./include/linux/uaccess.h:11:0,
/usr/NX/share/src/nxusb/nxusb-vhci-iocifc.c: In function ‘ioc_register’:
./arch/x86/include/asm/uaccess.h:435:29: error: invalid initializer
__typeof__(ptr) __pu_ptr = (ptr); \
./arch/x86/include/asm/uaccess.h:553:2: note: in expansion of macro ‘__put_user_nocheck’
__put_user_nocheck((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
/usr/NX/share/src/nxusb/nxusb-vhci-iocifc.c:238:3: note: in expansion of macro ‘__put_user’
scripts/Makefile.build:284: recipe for target ‘/usr/NX/share/src/nxusb/nxusb-vhci-iocifc.o’ failed
make: *** [/usr/NX/share/src/nxusb/nxusb-vhci-iocifc.o] Error 1
Makefile:1614: recipe for target ‘_module_/usr/NX/share/src/nxusb’ failed
make: *** [_module_/usr/NX/share/src/nxusb] Error 2
make: Leaving directory ‘/usr/src/linux-headers-5.0.0-32-generic’
Makefile:8: recipe for target ‘all’ failed
make: *** [all] Error 2
Please help me.
I’m using free version of NoMachine. My local computer is Ubuntu 18.04 and gcc version is 7.4. I’m connecting Windows10 and the other services work fine. Thank you.November 8, 2019 at 09:19 #24396BritgirlKeymaster
Considering some changes in the latest kernel codes, it is necessary to apply a patch to build nxusb.ko on that version of the kernel. We can send it to you if you agree.
One of the next releases of NoMachine will include this patch.November 12, 2019 at 10:10 #24430hogaengParticipant
I’m glad to hear about the good news. Now this issue is no more necessary to me. I can wait stable version. Thank you for your support.December 19, 2019 at 09:32 #24916meowsqueakParticipant
I would be interested in trying this patch, please. I have the exact same problem, Ubuntu 18.04, NoMachine 6.8.1.December 19, 2019 at 15:15 #24928BritgirlKeymaster
Please update to the latest version release a couple of days ago. It contains the patch. Full announcement here: https://www.nomachine.com/SU12Q00208December 20, 2019 at 08:45 #24933meowsqueakParticipant
Ah, I hadn’t noticed the release of 6.9.2 – that seems to work for me. Thank you.
This topic was marked as solved, you can't post.