Page 2 of 2

FlashPlayer

Posted: 14 Jan 2018, 00:04
by Ed_P
brokenman wrote:
13 Jan 2018, 14:20
Actually this shouldn't require a fix. /opt/porteus-scripts should be a part of your $PATH variable.
It is in the 3.2.2's guest mode but not root mode.

Code: Select all

guest@porteus:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts:/usr/lib64/java/bin:/usr/lib64/qt/bin:/usr/lib64/java/bin:/usr/lib64/qt/bin:/usr/lib64/java/bin:/usr/lib64/qt/bin

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib64/java/bin:/usr/lib64/qt/bin

root@porteus:/home/guest# ./bootmode.sh
Boot device: /dev/sda6
Device format: "ntfs" 
Boot ISO: /ISOs/Porteus-CINNAMON-v3.2.2-x86_64.iso
 Changes to be saved to a save.dat file.
Save.dat: /porteus3.2/changes/porteussave.dat
Changes:  changes=EXIT:/porteus3.2/changes/porteussave.dat

FlashPlayer

Posted: 14 Jan 2018, 00:53
by ncmprhnsbl
try : su -l

FlashPlayer

Posted: 14 Jan 2018, 01:31
by Ed_P
ncmprhnsbl wrote:
14 Jan 2018, 00:53
try : su -l
I don't need to do that with 4.0. And it's path doesn't have /opt/porteus-scripts in it.

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib64/java/bin
root@porteus:/home/guest# update-flash
[OK] User is root
[OK] Distro is Porteus
[OK] Flash is installed

[OK] Internet connection exists
Downloading live script ...
Downloading: update-flash-live  DONE
/usr/local/bin/update-flash-live: line 63: warning: command substitution: ignored null byte in input

Searching online for latest flash player version ...

Installed version:	28.0.0.137-
Latest version:		28.0.0.137

 Would you like to continue? [y/n]

FlashPlayer

Posted: 14 Jan 2018, 04:35
by ncmprhnsbl
and round and round we go :crazy:
that's because of symlinks in /usr/bin

FlashPlayer

Posted: 14 Jan 2018, 14:45
by Ed_P
ncmprhnsbl wrote:
14 Jan 2018, 04:35
and round and round we go :crazy:
that's because of symlinks in /usr/bin
Yup.
brokenman wrote:
13 Jan 2018, 14:20
Actually this shouldn't require a fix. /opt/porteus-scripts should be a part of your $PATH variable.
;)

FlashPlayer

Posted: 14 Jan 2018, 17:47
by brokenman
When you log in as guest, the file /etc/profile is run and the following environment variable from the script is locked and loaded.

Code: Select all

PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts"
Now because you are logged in as guest, guest has access to this path. Root doesn't have this path because they are not logged in. This leaves two options if you want to access /opt/porteus-scripts

1. Use a login shell: su -l
This will maintain all the env variables from guest.

2. Put symlinks in /usr/bin to the path /opt/porteus-scripts files
guest has access to /usr/bin root has access to /sbin

Does this explain it clearly?

FlashPlayer

Posted: 14 Jan 2018, 17:53
by Blaze
for root user need to tweak /etc/login.defs

Code: Select all

ENV_SUPATH     PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
for guest user need to tweak /etc/profile

Code: Select all

# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts"

FlashPlayer

Posted: 14 Jan 2018, 18:46
by Ed_P
brokenman wrote:
14 Jan 2018, 17:47
Does this explain it clearly?
Yes. :)

Basically we are discussing your use of the word "required" for ncmprhnsbl's solution to the update-flash function on 3.2.2. Technically it is not "required" so long as users remember/know to use a different form of the su command. Or edit the path as Blaze has noted. But of the solutions noted ncmprhnsbl's is the easiest to implement, just download an updated module. :good:

FlashPlayer

Posted: 13 Feb 2018, 04:16
by Jack
New flashplayer-plugin-28.0.0.161-x86_64-1.txz