LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Difficulty with plexmediaserver SlackBuild (https://www.linuxquestions.org/questions/slackware-14/difficulty-with-plexmediaserver-slackbuild-4175603865/)

walterbyrd 04-14-2017 08:21 PM

Difficulty with plexmediaserver SlackBuild
 
Just installed Slackware 14.2 x86_64 a few hours ago.

I am new to slackbuilds.

I am trying to install plexmedia server.

I found the slackbuild here.

https://slackbuilds.org/repository/1...lexmediaserver


When I try to run, I get this:

Code:

bash-4.3# ./plexmediaserver.SlackBuild
ar: /home/walter/Downloads/plexmediaserver/plexmediaserver_1.4.2.3400-ab906953b_i386.deb: No such file or directory

I have an AMD86

Code:

bash-4.3# uname -a
Linux fir 4.4.14-smp #2 SMP Fri Jun 24 14:44:24 CDT 2016 i686 AMD Athlon(tm) II X4 640 Processor AuthenticAMD GNU/Linux

Why is it looking for an i386 .deb file?

Also, when I click on the .deb file links, the files do not download, I have to right-click and chose save download.

Any help would be appreciated.

willysr 04-14-2017 08:55 PM

You are installing 32 bit version of Slackware 14.2 as can be seen by the output of uname (i686)

for 64 bit it should be x86_64

bassmadrigal 04-14-2017 10:21 PM

And the SlackBuild tarball does not contain the download. The download link is stored in the .info file. Once you extract the SlackBuild tarball, you need to cd into that directory and then download the source before running the SlackBuild. You can do this easily using the following:

Code:

source *.info
wget $DOWNLOAD

NOTE: If it is a precompiled package and not source, you may need to download the 64bit verison using wget $DOWNLOAD_x86_64 instead of $DOWNLOAD.

walterbyrd 04-16-2017 02:21 PM

I have 64-bit Slackware installed now.

Are you certain the plexmediaserver.info file is up to date? From that file:

DOWNLOAD_x86_64="https://downloads.plex.tv/plex-media-server/1.4.2.3400-ab906953
b/plexmediaserver_1.4.2.3400-ab906953b_amd64.deb"

If I enter https://downloads.plex.tv/ in my URL, I get redirected to https://www.plex.tv/downloads/

If I go to that URL, I cannot download plexmediaserver_1.4.2; instead I can download plexmediaserver_1.5.5

Should I download the 1.5.5?

Now I get this:


Code:

# ./plexmediaserver.SlackBuild
ar: /home/walter/Downloads/plexmediaserver/plexmediaserver_1.4.2.3400-ab906953b_amd64.deb: No such file or directory

I downloaded this:

plexmediaserver_1.5.5.3634-995f1dead_amd64.deb

But I am not sure what to do with it.

I tried using a utility called deb2tgz. After converting the .deb, I tried using installpkg. It installed, with a warning, but I cannot run plexmeidaserver.

Code:

# ./deb2tgz plexmediaserver_1.5.5.3634-995f1dead_amd64.deb

# installpkg plexmediaserver_1.5.5.3634-995f1dead_amd64.tgz
Verifying package plexmediaserver_1.5.5.3634-995f1dead_amd64.tgz.
Installing package plexmediaserver_1.5.5.3634-995f1dead_amd64.tgz:
PACKAGE DESCRIPTION:
WARNING:  Package has not been created with 'makepkg'
Package plexmediaserver_1.5.5.3634-995f1dead_amd64.tgz installed.


montagdude 04-16-2017 03:31 PM

SlackBuilds.org scripts do not always try to keep up with the latest version of software, often for good reason. Is there a reason you must have version 1.5.5? If not, enter the link from the .info file in your browser and it will download the version that the SlackBuild is designed for.

walterbyrd 04-16-2017 04:48 PM

> Is there a reason you must have version 1.5.5?

No, but that seems to be all that is available.

When I tried to download the 1.4.2 version, I got a message that the file is not available.

montagdude 04-16-2017 05:03 PM

I just entered this link into my browser address bar:

https://downloads.plex.tv/plex-media...953b_amd64.deb

And it indeed downloads plexmediaserver_1.4.2.3400-ab906953b_amd64.deb. So I'm not sure why it's not working for you.

bassmadrigal 04-16-2017 05:48 PM

What happens if you run the commands I provided (although, I didn't realize it had a 64bit version, so it'd amended for that)? If you don't get the download, can you paste the output here?

Code:

source *.info
wget $DOWNLOAD_x86_64

NOTE: this is from within the directory you extracted from the tarball.

walterbyrd 04-16-2017 05:54 PM

Am I supposed to download the .deb file, or does plexmediaserver.SlackBuild download the .deb file?

Where does plexmediaserver.SlackBuild look for the .deb file? In the same directory?


BTW: I was surprised to find this file on my system:

/lib/systemd/system/plexmediaserver.service

Why is this under systemd? Why is there even a /lib/systemd directory on my system.

I have no idea how it got there.

bassmadrigal 04-16-2017 06:02 PM

The SlackBuilds from slackbuilds.org will not download the source for you (although, some projects do offer that). You are required to download the source yourself or use a tool like sbopkg that will do it for you more automagically. And yes, the SlackBuild will look for the "source", or in this case the .deb file, in the same directory the SlackBuild is in (make sure you're in that directory when you run it too).

As for the systemd folder, it is likely something provided automatically by the plex people. This way they can support more platforms without a ton of extra work. The file can be safely ignored. It won't be used on Slackware.

walterbyrd 04-16-2017 06:13 PM

Downloaded plexmediaserver_1.4.2.3400-ab906953b_amd64.deb for the link provided.


Code:

# ./plexmediaserver.SlackBuild
Notice this created: /tmp/plexmediaserver-1.4.2.3400_ab906953b-x86_64-1_SBo.tgz

Code:

# cd /tmp
# installpkg plexmediaserver-1.4.2.3400_ab906953b-x86_64-1_SBo.tgz

Get the message it's installed.

Code:

# cd /etc/rc.d
# chmod a+x rc.plexmediaserver
# ./rc.plexmediaserver start
Starting plexmediaserver . . .

In the URL I enter: localhost:32400

Get the message "This XML file does not appear to have any style information associated with it. The document tree is shown below." with a bunch of XML gibberish.

bassmadrigal 04-16-2017 06:23 PM

Did you add the plex user and group that was mentioned on the README on SBo?

Code:

Plex Media Server runs as plex:plex (UID/GID 279) with its $HOME as
/var/lib/plexmediaserver:

# groupadd -g 279 plex
# useradd -u 279 -d /var/lib/plexmediaserver -s /bin/false -g plex plex

Once that is done, you should be able to set everything up using the following text. If that doesn't work, I'd suggest contacting the maintainer as I've never used plex (a kodi man myself).

Code:

After installing, grab an account from https://my.plexapp.com/ and visit
http://localhost:32400/manage to configure your server.


walterbyrd 04-16-2017 06:23 PM

Nevermind.

I need to enter localhost:32400/web

Seems to be working.

What an ordeal.

Thanks to everybody who helped, I could not have done it without you.

rob.rice 04-19-2017 05:44 AM

Quote:

Originally Posted by bassmadrigal (Post 5697827)
The SlackBuilds from slackbuilds.org will not download the source for you (although, some projects do offer that). You are required to download the source yourself or use a tool like sbopkg that will do it for you more automagically. And yes, the SlackBuild will look for the "source", or in this case the .deb file, in the same directory the SlackBuild is in (make sure you're in that directory when you run it too).

As for the systemd folder, it is likely something provided automatically by the plex people. This way they can support more platforms without a ton of extra work. The file can be safely ignored. It won't be used on Slackware.

man I hope this box of bugs NEVER MAKES IT'S WAY IN TO SLACKWARE

Gcubebuddy 10-22-2021 07:45 PM

Question about PLEX on Slackware 15
 
Hello, I was researching this, and was wondering how well the performance on Slackware worked and if it kept working after the initial install? I know sometimes PLeX won’t work when it’s expecting you to update the server software for it. Does it still work stably? I was also entertaining the idea of using Slackware as a NAS and then setting up a container app of Plex and use Slackware to present NFS volumes with the videos / music files…. I was not sure if that would be more stable or not. Any advice?

Thanks


All times are GMT -5. The time now is 02:12 AM.