Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Linux and Open Source

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-18-2015, 04:17 AM   #1
Jim2220
Junior Member
 
Join Date: Nov 2015
Posts: 11
Default 1: eval: ./displaylink-installer.sh: Permission denied

Attempting to install DisplayLink driver for Xenarc 700TSU on Linux Mint 17.2. Here's what I get including a dump of the kernel version:

fred@fred-desktop ~/JimDisplaylink $ sudo ./displaylink-driver-1.0.138.run
[sudo] password for fred:
Verifying archive integrity... All good.
Uncompressing DisplayLink Linux Driver 1.0.138 100%
./displaylink-driver-1.0.138.run: 1: eval: ./displaylink-installer.sh: Permission denied
fred@fred-desktop ~/JimDisplaylink $ su
Password:
fred-desktop JimDisplaylink # ./displaylink-driver01.0.138.run
bash: ./displaylink-driver01.0.138.run: No such file or directory
fred-desktop JimDisplaylink # ./displaylink-driver-1.0.138.run
Verifying archive integrity... All good.
Uncompressing DisplayLink Linux Driver 1.0.138 100%
./displaylink-driver-1.0.138.run: 1: eval: ./displaylink-installer.sh: Permission denied
fred-desktop JimDisplaylink # ls -l
total 5892
-rwxr-xr-x 1 fred fred 6029830 Aug 20 11:12 displaylink-driver-1.0.138.run
fred-desktop JimDisplaylink # uname -r
3.16.0-38-generic
fred-desktop JimDisplaylink # cat /proc/sys/kernel/osrelease
3.16.0-38-generic
fred-desktop JimDisplaylink # lsb_release
No LSB modules are available.
fred-desktop JimDisplaylink #

It looks like the .run file starts but when it tries to invoke displaylink-installer.sh it some how does not have sufficient permissions. I don't know enough about Linux to understand why.

New additional output using bash -x to invoke the .run file

+ MS_Printf ' 100%% '
+ printf ' 100%% '
100% + test xy = xy
+ PATH=/usr/xpg4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ cd /tmp/selfgz1274024900
++ id -u
+ chown -R 1000 .
++ id -g
+ chgrp -R 1000 .
++ expr 12083 + 6017747
+ offset=6029830
+ test n = n
+ echo

+ cd /tmp/selfgz1274024900
+ res=0
+ test x./displaylink-installer.sh '!=' x
+ test xn = xy
+ eval ./displaylink-installer.sh install
++ ./displaylink-installer.sh install
./displaylink-driver-1.0.138.run: line 489: ./displaylink-installer.sh: Permission denied
+ res=126
+ test 126 -ne 0
+ test xn = xy
+ test n = n
+ cd /tmp
+ /bin/rm -rf /tmp/selfgz1274024900
+ eval true
++ true
+ exit 126

Last edited by Jim2220; 11-30-2015 at 02:46 AM. Reason: Add debug info
Jim2220 is offline   Reply With Quote
Old 11-30-2015, 02:49 AM   #2
Jim2220
Junior Member
 
Join Date: Nov 2015
Posts: 11
Default More output from bash debug

This is additional output using bash -x to obtain more info:

+ MS_Printf ' 100%% '
+ printf ' 100%% '
100% + test xy = xy
+ PATH=/usr/xpg4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ cd /tmp/selfgz1274024900
++ id -u
+ chown -R 1000 .
++ id -g
+ chgrp -R 1000 .
++ expr 12083 + 6017747
+ offset=6029830
+ test n = n
+ echo

+ cd /tmp/selfgz1274024900
+ res=0
+ test x./displaylink-installer.sh '!=' x
+ test xn = xy
+ eval ./displaylink-installer.sh install
++ ./displaylink-installer.sh install
./displaylink-driver-1.0.138.run: line 489: ./displaylink-installer.sh: Permission denied
+ res=126
+ test 126 -ne 0
+ test xn = xy
+ test n = n
+ cd /tmp
+ /bin/rm -rf /tmp/selfgz1274024900
+ eval true
++ true
+ exit 126

It appears as though the .run file is using a script to do some preliminary work before it unsuccessfully attempts to invoke displaylink-installer.sh. How can it be that the .run file has insufficient permissions to invoke something contained within itself?
Jim2220 is offline   Reply With Quote
Old 11-30-2015, 06:42 PM   #3
Jim2220
Junior Member
 
Join Date: Nov 2015
Posts: 11
Default Driver is packaged using makeself

Another clue. displaylink-driver-1.0.138.run is a collection of files which includes a canned script that (in my case unsuccessfully) invokes displaylink-installer.sh.
The .run file is created using a utility named makeself which is documented at

https://github.com/megastep/makeself

The makeself web page talks about an "embedded command" or "embedded script" which I think is displaylink-installer.sh.

Of possible interest, the web page contains a section beginning "Archives generated with Makeself 2.1 can be passed the following arguments:" for example --noexec --keep But note that the web page describes an option --verbose which is apparently not implemented by makeself (--confirm might be the equivalent of --verbose ? )
Jim2220 is offline   Reply With Quote
Old 12-28-2016, 05:01 PM   #4
Corey O.
Junior Member
 
Join Date: Dec 2016
Posts: 1
Default

I had the same problem. I think there's definitely a bug in the script. If you take a look at the script, you'll notice a number of options. Try executing the script with the '--keep' option. This will prevent it from deleting the directory with the uncompressed files when the script terminates.

This option fixed everything for me. If it does not for you, you can still attempt to go into the newly created directory and run ./displaylink-installer.sh manually.
Corey O. is offline   Reply With Quote
Old 12-28-2016, 05:49 PM   #5
rboerner
Super Moderator
 
Join Date: Jan 2015
Posts: 416
Default

The version of the driver you are trying to install seems to be the initial release and not the latest available here -> http://www.displaylink.com/downloads/ubuntu
rboerner is offline   Reply With Quote
Reply

Tags
700tsu, displaylink-installer.sh, mint17.2, permissions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:31 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.