"sudo" command in Rasplex

Dear all, 

 

I am using rasplex which is working like a charm. Although, next to a video-client, I also want to make 

a music client on the same raspberry pi. 

 

I was willing to test this by logging into rasplex with the ssh functionality. Trying to install extra software, 

i couldn't even pass the command "sudo" the the system which said "not such a command". 

 

Can somebody explain me how to do it or give me some reason why this is not possible? 

 

Thanks already in advance! 

 

 

Rasplex is based on Openelec so a lot of the documentation can be found on that site/forum...

You can only SSH into rasplex using root since the password is saved in the RO portion of the SD card you can not create users or change passwords.  That being said there is no reason for the sudo package since if you are logged in as root it is redundant.  

If you are trying to install software realize there is no package manager and only packages required for rasplex have been installed. 

Swarmier, 

Thanks for the quick and clear answer. I guess I will try to continue without the sudo command then. 

One question still: you are saying the package manager will not work. Does this mean I cannot use the command "apt-get install"? 

Thanks in advance! 

Ok, 

I checked it and indeed  Icannot use the "apt-get" command. I downloaded the single .DEB packages. But without the installer programs Gdebi of dpkg I also cannot install these one. How can I do this? 

Thanks a lot already!

Greetings

Ok, 

I checked it and indeed  Icannot use the "apt-get" command. I downloaded the single .DEB packages. But without the installer programs Gdebi of dpkg I also cannot install these one. How can I do this? 

Thanks a lot already!

Greetings

Ok, 

I checked it and indeed  Icannot use the "apt-get" command. I downloaded the single .DEB packages. But without the installer programs Gdebi of dpkg I also cannot install these one. How can I do this? 

Thanks a lot already!

Greetings

To install a deb package you can use dpkg -i but, the reason people typically use a package manager is to resolve dependancies.  

Basically, since it sounds like you newer to linux... it is like when a windows machine needs .net... some packages install .net during the install process and some just complain about the lack of .net... In this case, apt-get would install the required software and dpkg would let you know it is not there... if you want to install it using dpkg, chasing down all the correct packages and their dependancies can be annoying and time consuming.

What extra software are you looking for?

Thanks for your answer swarmier. 

I am not really new to linux but I always used it with the possibility of a package manager which would solve all the dependancies for me:-) 

I also know I can install .deb packages with the dpkg but what I noticed is that in openelec this software dpkg is not even installed. It seems like the systems doesn't recognize the command.

Or is this not possible? 

The software I want to install are some extra encoder libraries which are: libflac-dev libfaad2 libmad0

I thought dpkg was supported, if not you would need to compile the source of each.... There are a few options to dual boot an SD card or you could look at RaspBMC with a Plex plugin... I think dpkg is supported on their and without looking also apt-get... 

I thought dpkg was supported, if not you would need to compile the source of each.... There are a few options to dual boot an SD card or you could look at RaspBMC with a Plex plugin... I think dpkg is supported on their and without looking also apt-get... 

Hey Swarmier, 

Thanks again for your reply! You are really a good help for me. 

1) The option for dual boot is not really a good option for me. I want to run both programs next to each other. 

2) RaspBMC I also considered but I am so happy with rasplex that I don't want to change anymore. It's such a good project

3) I would rather go for the option to recompile everything again. But when I do, can you help me with this? 

How do I include the dpkg package then? I don't know that so well (this is the part of linux where I am losing it). 

Thanks in advance! 

Hey man -- I don't think you need sudo.  Just run 'su - ' it will ask for the password, then you will see your $ turn to a #.  That means you are root.

To clarify so people reading this after are not confused....

sudo and su are similar commands give you root (or another users) permission, with rasplex you only can SSH in as root, so there is no need to issue su or sudo since you are already root.  From man page:

su - run a shell with substitute user and group IDs

 
sudo, sudoedit — execute a command as another user
 

Swarmier, 

Would it be possible that you give me a good tip in how to recompile the rasplex operation system with dpgk included? 

I now how I can compile the kernel but two questions remains for me: 

1) where do I get the full source code of the rasplex system. It seems I cannot find it on the github. 

2) how to I add the dpkg functionality? Is this in the modules I have to add something? 

Thanks in advance! 

Trying to put debian packages on rasplex would be a nightmare - you'll probably run into dependency hell. 

We are planning on releasing rasplex as a .deb file for raspbian, and also having a raspbian based version of rasplex available in addition to the openelec version, but this will probably be at least a few weeks away.

The reason why we haven't used debian so far is that openelec is highly optimized, and offers us a platform that we can fully support for one thing and one thing only - running plex.

We realize that there are other users that want to do more, which is why we have raspbian on our agenda.

Trying to put debian packages on rasplex would be a nightmare - you'll probably run into dependency hell. 

We are planning on releasing rasplex as a .deb file for raspbian, and also having a raspbian based version of rasplex available in addition to the openelec version, but this will probably be at least a few weeks away.

The reason why we haven't used debian so far is that openelec is highly optimized, and offers us a platform that we can fully support for one thing and one thing only - running plex.

We realize that there are other users that want to do more, which is why we have raspbian on our agenda.

Sounds great! I guess I will wait a few weeks longer. I have background in linux but dependency hell is not one of them :-) 

Sounds great! I guess I will wait a few weeks longer. I have background in linux but dependency hell is not one of them :-) 

It's something i pray you never have to deal with :)

 

It's something i pray you never have to deal with :)

 

:-), thanks for that

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.