LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Closed Thread
  Search this Thread
Old 02-08-2015, 08:22 AM   #61
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786

Quote:
Originally Posted by codeguy View Post
Why?
That's how SBo tried to manage the UID/GID in order not to conflict with Slackware's adduser command
You can have your own way to manage UID/GID, but that's the recommended way if you are using SBo scripts.

Please note that we are enforcing you to do it since you can change it in the SlackBuild scripts manually if you like
 
Old 02-08-2015, 08:22 AM   #62
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
Quote:
Originally Posted by 55020 View Post
Have you tried scripting the necessary combination of getent, groupadd and useradd commands to make the numbers up on the fly? It's not the happiest way of spending an afternoon...
I have not. That's why I'm curious. I didn't think the numbers were important. Don't you only need the name? My first install of Postgres was before there was a slackbuild, so my postgres user is not 209, its 1001. My newest install on a new box has the pg user as 209. Never had problems with them as being two different numbers. groupadd, useradd, chown dont require the number. Never used getent.

If its a thing, thats cool. I just don't see it. Seems extra work for no reason. Sorry to be such a pest.
 
Old 02-08-2015, 08:23 AM   #63
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by ivandi View Post
Here is a patch for sbopkg to use fake chroot environment. It modifies only the build_package() function. Uses ro bind mounts for the system folders and rw bind mounts for the sbopkg folders. It can be easily made optional with for example USECHROOT and CROOTDIR variables in sbopkg.conf. It changes nothing in the way SBo works. Everything is run as root.
great job, thanks for the work!
 
Old 02-08-2015, 08:26 AM   #64
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
Quote:
Originally Posted by willysr View Post
That's how SBo tried to manage the UID/GID in order not to conflict with Slackware's adduser command
You can have your own way to manage UID/GID, but that's the recommended way if you are using SBo scripts.
OH! Its because people like to have their services in the range 200-300 (for example), and all their users > 1000?

adduser itself wouldn't have a problem, it just uses next available, right?
 
Old 02-08-2015, 08:49 AM   #65
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by codeguy View Post
OH! Its because people like to have their services in the range 200-300 (for example), and all their users > 1000?

adduser itself wouldn't have a problem, it just uses next available, right?
From adduser:
Code:
# v1.03 - 20/05/02
#       * Support 'broken' (null lines in) /etc/passwd and 
#         /etc/group files <sw>       
#       * For recycling UIDs (default still 'off'), we now look in 
#         /etc/login.defs for the UID_MIN value and use it
#         If not found then default to 1000 <sw>
<snip>
# Determine what the minimum UID is (for UID recycling)
# (we ignore it if it's not at the beginning of the line (i.e. commented out with #))
export recycleUIDMIN="$(grep ^UID_MIN /etc/login.defs | awk '{print $2}' 2>/dev/null)"
# If we couldn't find it, set it to the default of 1000
if [ -z "$recycleUIDMIN" ]; then
   export recycleUIDMIN=1000  # this is the default from Slackware's /etc/login.defs
fi


# This setting enables the 'recycling' of older unused UIDs.
# When you userdel a user, it removes it from passwd and shadow but it will
# never get used again unless you specify it expliticly -- useradd (appears to) just
# look at the last line in passwd and increment the uid.  I like the idea of 
# recycling uids but you may have very good reasons not to (old forgotten
# confidential files still on the system could then be owned by this new user).
# We'll set this to no because this is what the original adduser shell script
# did and it's what users expect.
recycleuids=no
in login/defs as shipped:
Code:
# Min/max values for automatic uid selection in useradd
#
UID_MIN             1000
UID_MAX            60000
# System accounts
SYS_UID_MIN          101
SYS_UID_MAX          999
FYI, <sw> is Stuart Winter aka drmozes in this forum.

This is "as shipped", of course you can customize this behavior at will.

Last edited by Didier Spaier; 02-08-2015 at 08:53 AM. Reason: Post completed
 
Old 02-08-2015, 10:47 AM   #66
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Shot in the dark question, but isn't gnash unmaintained currently?
 
Old 02-08-2015, 01:21 PM   #67
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
Quote:
Originally Posted by ReaperX7 View Post
Shot in the dark question, but isn't gnash unmaintained currently?
Do you mean me maintaining it, or upstream maintaining it?
 
Old 02-08-2015, 05:58 PM   #68
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Upstream. I'm only curious if gnash is worth keeping since freshplayer is approaching the same goals of gnash as an open source alternative to flashplayer from Adobe, but is more up-to-date in terms of support vectors.
 
Old 02-08-2015, 06:39 PM   #69
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
Quote:
Originally Posted by ReaperX7 View Post
Upstream. I'm only curious if gnash is worth keeping since freshplayer is approaching the same goals of gnash as an open source alternative to flashplayer from Adobe, but is more up-to-date in terms of support vectors.
It's still alive. It'd be nice to see a new release, the last one was right about 3 years ago. I think upstream could use some extra support as their server has been down for a while and nobody has had a chance to fix it yet.

Feel free to submit a script for freshplayer. However that doesn't mean gnash should be removed. It's all about choice. For example I've got an older machine without SSE2 support and it can't run the official plugins from Adobe because of it, but gnash works fine.
 
Old 02-08-2015, 08:52 PM   #70
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I'll see about the build instructions for FreshPlayer first before committing it to a script.
 
Old 02-08-2015, 09:54 PM   #71
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Okay, update on FreshPlayer.

It does need some extras from SBO (that I could tell):

libconfig
ragel (source is moved, is available from http://www.colm.net/files/ragel/ )
kelbt (source is gone, last copy of 0.15 I could get off archive.org I uploaded to my Slackworks repo-page. DL here: https://github.com/reaperx7/slackwor...ar.gz?raw=true )

optional dependency is pulseaudio

This should build the package:

Code:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_HAVE_LIBPULSE=0 ..
make
cp -v ../libfreshwrapper-pepperflash.so /usr/lib64/mozilla/plugins
I'll see about getting a SlackBuild crafted on this.

Last edited by ReaperX7; 02-08-2015 at 09:57 PM.
 
Old 02-09-2015, 12:31 AM   #72
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
thanks for reporting: kelbt and ragel are fixed in my git branch, will go in the main repository at the next update.
 
Old 02-09-2015, 12:56 AM   #73
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
Originally Posted by ReaperX7 View Post
freshplayer is approaching the same goals of gnash as an open source alternative to flashplayer from Adobe
No, that is completely wrong.

Fresh player, is a NPAPI wrapper about the PPAPI "Adobe" Flash plugin. It is 100% reliant on Adobe's code, without the PPAPI Adobe Flash plugin (extracted from the Chrome package), Fresh Player does absolutely nothing!

Gnash is a "clean" reimplementation of Flash with no Adobe code, as an NPAPI plugin.

It sucks and will never achieve its end Goal within a useful time period (while Flash remains relevant) but that is beside the point, the only similarity between these two projects is the fact that they allow you to run Flash content in browsers that use NPAPI plugins.
 
Old 02-09-2015, 12:19 PM   #74
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by ponce View Post
thanks for reporting: kelbt and ragel are fixed in my git branch, will go in the main repository at the next update.
You're welcome ponce. If any other packages end up in vaporized into the ether, I'll try what I can to toss them into my git for redistribution. Sad to see source code always getting vaporized from time to time.

Yeah ruario, but at the moment anyone could argue for either. Sometimes even the cleanest code isn't the most useful. It's well meaning, but not as useful.
 
Old 02-09-2015, 12:58 PM   #75
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Gnash is open source. Fresh player itself is Open Source but entirely depends on proprietary software. For some this is important. So one is not a replacement for the other for everybody.
 
  


Closed Thread



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SBO request: CDE wigry Slackware 23 05-05-2014 06:35 AM
Nvidia-driver.SlackBuild from SBo (or: I am a bad and sloppy SBo maintainer) kingbeowulf Slackware 8 08-31-2012 02:41 AM
Opera 10.01 in SBo hitest Slackware 2 11-09-2009 02:14 PM
Bug in 8.04, fixed in 8.10 - How to get fixed in 8.04 which is LTS? taylorkh Ubuntu 4 02-28-2009 05:17 PM
UNresolved and Fixed issue thread marking abs LQ Suggestions & Feedback 8 02-13-2004 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration