Installing a .tar.gz application.

maybe try the following:

1. Open the executable file:

$ vim vrs

2. Locate the following line:

export WRKDIR=`mktemp -d /tmp/selfextract.XXXXXX`

move the arrow keys until the cursor flashes over the above line.

3. Press the 'I' key on your keyboard, or hit the 'Insert' key on your keyboard.

4. Being careful not to type anything else, make the necessary changes so that it looks as follows:

export WRKDIR=`mkdir /tmp/selfextract.XXX`

In other words, the "mktemp -d" part has simply become "mkdir"

5. Once the changes are made, press the 'Esc' key on your keyboard, and then type in the following:

:wq

The colon allows for the input of key commands, the 'w' specifies write, and the 'q' specifies quit.

6. Now try run the install command again, like before... as root, for example:

sudo ./vrs

edit:
 
Last edited:
It looks fine actually.
If you run it a couple of time does the bolded value change?

“./install.sh: line 21: /tmp/selfextract.SUZQax/bin/vrs: No such file or directory
Installation cancelled 0”
 
export WRKDIR=`mktemp -d /tmp/selfextract.XXXXXX`
with $WRKDIR referenced in a couple of lines later in the script. My question then is: wouldn't WRKDIR reference multiple different temp directories on multiple execution?

No it will not change in the script when running. the back quotes means execute the contained text, the shell then takes the result and assigns it to the variable.

easy way to see this is open up a shell and do:

export WRKDIR=`mktemp -d /tmp/selfextract.XXXXXX`
echo $WRKDIR

If you run the script multiple times then yes it will change

Looking at the script find the following line
tail -n +$SKIP $0 | tar xz -C $WRKDIR

add after it
echo tail -n +$SKIP $0

then we can get the actual tar file :)

so steps then is
mkdir /tmp/abc
tail -n +31 ./vrs | tar xz -C /tmp/abc <- the tail part i got when i ran the ./vrs after i added the echo
cd /tmp/abc
./install.sh /tmp/abc

And yes you will need a window manager, whole thing runs in a gui.

Or send my your email address and ill send you the tar file without the auto extract which seems to be a problem for you.
 
Last edited:
I'll try again as soon as a get a chance, but while the Windows machine is still running, it's not urgent. I don't think I'll have a chance before the end of April (deadlines), but thanks for all the help. Will update than.
 
Top
Sign up to the MyBroadband newsletter
X