Easy setup guide for Ubuntu / Debian (DEB packages and repo)

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Re: Easy setup guide for Ubuntu / Debian (DEB packages and r

Postby carlettod » Tue Jun 19, 2012 9:09 am

happy.neko wrote:Debian users, please do not attempt to install latest Precise package (ps3mediaserver - 1.53.99+git+mencoder34587-2) due to init.d differences between Ubuntu and Debian.


Hi happy.neco,
there is a problem with my init.d script in debian?
I am avaiable to correct any bugs!!!

Waiting for your comments

CarlettoD
carlettod
 
Posts: 10
Joined: Wed Feb 01, 2012 11:49 am

Re: Easy setup guide for Ubuntu / Debian (DEB packages and r

Postby happy.neko » Tue Jun 19, 2012 6:47 pm

carlettod wrote:Hi happy.neco,
there is a problem with my init.d script in debian?
I am avaiable to correct any bugs!!!

Waiting for your comments

CarlettoD

Yes, there is one problem. init.d script runs PS3MS before network initialization completes. More info here viewtopic.php?f=3&t=14399&start=10#p70356
I was unable to fix it with init.d and moved to upstart. But upstart system is not available for Debian and apparently breaks installation.

Any help with init.d will be much appreciated.
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm

Re: Easy setup guide for Ubuntu / Debian (DEB packages and r

Postby carlettod » Wed Jun 20, 2012 2:26 pm

happy.neko wrote:
carlettod wrote:Hi happy.neco,
there is a problem with my init.d script in debian?
I am avaiable to correct any bugs!!!

Waiting for your comments

CarlettoD

Yes, there is one problem. init.d script runs PS3MS before network initialization completes. More info here viewtopic.php?f=3&t=14399&start=10#p70356
I was unable to fix it with init.d and moved to upstart. But upstart system is not available for Debian and apparently breaks installation.

Any help with init.d will be much appreciated.


Hello,
seems that this is an issue of Debian. For e.g. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609242 but there are users who have the same problem with other demons.
PS3 Media Server is very sensitive because during its startup checks whether the network is up.
Other demons start regardless of whether the network is up (e.g. Transmission-daemon).

This depends probably on which version of Debian is used.
I think that in recent versions (wheezy - testing) the problem is resolved.
My script int.d meets all standards of Debian startup routine.

Debian users can try to solve the problem by replacing the following line of init.d script:

Code: Select all
# Required-Start:    $local_fs $remote_fs $network


with this:

Code: Select all
# Required-Start:    $all


After the replacement is needed to run the following commands:

Code: Select all
update-rc.d -f ps3mediaserver remove


and

Code: Select all
update-rc.d ps3mediaserver defaults


Now the startup links will be numbered as 99 instead of 20.
PLEASE NOTE: with number 99 ps3mediaserver waits also for complete startup of graphical environment (if present)

All Debian users can try the change.

In Ubuntu the change is not needed because there isn't the bug!

The "Upstart" is not a solution because in Debian it is not yet fully supported and implemented.


Waiting for your test results and opinions

Thanks
Carlo
carlettod
 
Posts: 10
Joined: Wed Feb 01, 2012 11:49 am

Re: Easy setup guide for Ubuntu / Debian (DEB packages and r

Postby happy.neko » Wed Jun 20, 2012 11:02 pm

Code: Select all
Required-Start:    $all
doe not work on Ubuntu, ps3ms server stills starts before all network interfaces are available.
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm

Re: Easy setup guide for Ubuntu / Debian (DEB packages and r

Postby SlasherIT » Thu Jun 21, 2012 12:48 am

happy.neko wrote:Debian users, please do not attempt to install latest Precise package (ps3mediaserver - 1.53.99+git+mencoder34587-2) due to init.d differences between Ubuntu and Debian.


So what do Debian users do then? Are you going to fix this?
SlasherIT
 
Posts: 28
Joined: Mon May 21, 2012 6:49 pm

Re: Easy setup guide for Ubuntu / Debian (DEB packages and r

Postby carlettod » Thu Jun 21, 2012 10:22 am

happy.neko wrote:
Code: Select all
Required-Start:    $all
doe not work on Ubuntu, ps3ms server stills starts before all network interfaces are available.


Hi,
I didn't understand!
Init.d script does not work in Ubuntu or in Debian?
In my tests with Ubuntu the problem does not exist!

As a workaround, is possible to place same code in the script that waits until the network is not active

I'll try to find some solution and post it in the forum just ready...

Please tell me if the problem only affects Debian ... thanks
carlettod
 
Posts: 10
Joined: Wed Feb 01, 2012 11:49 am

Re: Easy setup guide for Ubuntu / Debian (DEB packages and r

Postby SlasherIT » Thu Jun 21, 2012 3:01 pm

Yo carlettod,

From what I understand, its only Debian that is affected. I have confirmed this myself. When installing the latest PMS package in Debian, it messes up the installation. I posted this in my other thread:

Hey happy.neko,

I'm trying to install the latest PMS package on debian. So I let it install in debian with sudo dpkg -i blablabla... then it tries to do so. Eventually it fails and says errors were encountered while processing bla bla bla.

So I open Synaptic, and get a warning about broken packages. It says, that it wants to remove sysvinit, and install upstart. Now before, I did this, and after restarting, I could not boot into debian as it said it could not find sbin/init. So I re installed the whole OS, and here I am again. What should I do? If I allow synaptic to fix 'broken packages' (PMS), my system is going to get messed up again. Help would be appreciated, thanks.
SlasherIT
 
Posts: 28
Joined: Mon May 21, 2012 6:49 pm

Re: Easy setup guide for Ubuntu / Debian (DEB packages and r

Postby carlettod » Thu Jun 21, 2012 3:01 pm

happy.neko wrote:Yes, there is one problem. init.d script runs PS3MS before network initialization completes. More info here viewtopic.php?f=3&t=14399&start=10#p70356
I was unable to fix it with init.d and moved to upstart. But upstart system is not available for Debian and apparently breaks installation.

Any help with init.d will be much appreciated.


Hi,
I just now noticed the new upstart script... very well!

I found a small error in the variable "$APPLICATION_OPTS" that is not equal to that declared in the file "defaults" ($DAEMON_OPTS). I'd change it in "$APPLICATION_OPTS".

Thanks for continuing enhancements to your project...
In the coming days, I'll try to test the operation of the new upstart script in any context...

By
CarlettoD
carlettod
 
Posts: 10
Joined: Wed Feb 01, 2012 11:49 am

Re: Easy setup guide for Ubuntu / Debian (DEB packages and r

Postby happy.neko » Fri Jun 22, 2012 12:23 pm

Version 1.53.99-4 released with edited upstart script.
I hope it'll fix daemon shutdown problem. If anyone was affected by this bug please test it.

SlasherIT wrote:
happy.neko wrote:Debian users, please do not attempt to install latest Precise package (ps3mediaserver - 1.53.99+git+mencoder34587-2) due to init.d differences between Ubuntu and Debian.


So what do Debian users do then? Are you going to fix this?

Stick for now with ubuntu 11.04 packages.

carlettod wrote:I didn't understand!
Init.d script does not work in Ubuntu or in Debian?

It works with mentioned bug (startup before network is up). Tested under Ubuntu 12.04 desktop.
Last edited by happy.neko on Fri Jun 22, 2012 2:46 pm, edited 1 time in total.
Reason: fixed ubuntu version
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm

Re: Easy setup guide for Ubuntu / Debian (DEB packages and r

Postby SlasherIT » Fri Jun 22, 2012 1:50 pm

So is it safe for me to install the latest PMS package on Debian, 1.53.99-4?
SlasherIT
 
Posts: 28
Joined: Mon May 21, 2012 6:49 pm

PreviousNext

Return to Linux/Unix Support

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests