FlashPlayer 2018-02-12

Post here if you are a new Porteus member and you're looking for some help.
User avatar
Ed_P
Contributor
Contributor
Posts: 4125
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

FlashPlayer

Post#16 by Ed_P » 14 Jan 2018, 00:04

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
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1505
Joined: 20 Mar 2012, 03:42
Distribution: 4.0-64bit all-DE+more
Location: australia
Contact:

FlashPlayer

Post#17 by ncmprhnsbl » 14 Jan 2018, 00:53

try : su -l
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 4125
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

FlashPlayer

Post#18 by Ed_P » 14 Jan 2018, 01:31

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]
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1505
Joined: 20 Mar 2012, 03:42
Distribution: 4.0-64bit all-DE+more
Location: australia
Contact:

FlashPlayer

Post#19 by ncmprhnsbl » 14 Jan 2018, 04:35

and round and round we go :crazy:
that's because of symlinks in /usr/bin
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 4125
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

FlashPlayer

Post#20 by Ed_P » 14 Jan 2018, 14:45

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.
;)
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 5932
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil
Contact:

FlashPlayer

Post#21 by brokenman » 14 Jan 2018, 17:47

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?
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Blaze
DEV Team
DEV Team
Posts: 1911
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current Xfce x86_64
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

FlashPlayer

Post#22 by Blaze » 14 Jan 2018, 17:53

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"
Linux porteus 4.18.3-porteus #1 SMP PREEMPT Sat Aug 18 16:50:00 UTC 2018 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Ed_P
Contributor
Contributor
Posts: 4125
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

FlashPlayer

Post#23 by Ed_P » 14 Jan 2018, 18:46

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:
Ed

Jack
Contributor
Contributor
Posts: 1528
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 4.0rc4 My Mate 64 bit
Location: USA

FlashPlayer

Post#24 by Jack » 13 Feb 2018, 04:16

New flashplayer-plugin-28.0.0.161-x86_64-1.txz
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Post Reply