LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't install xrdp on debian 8.5 (https://www.linuxquestions.org/questions/linux-newbie-8/cant-install-xrdp-on-debian-8-5-a-4175582334/)

jimyoung 06-15-2016 09:56 AM

can't install xrdp on debian 8.5
 
when i do the command apt-get install xrdp i get this message.. i am new at alway done windows i thank anyone who can give me help.
jim@Server1:~$ apt-get install xrdp
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

ardvark71 06-15-2016 11:08 AM

Quote:

Originally Posted by jimyoung (Post 5561244)
when i do the command apt-get install xrdp i get this message.. i am new at alway done windows i thank anyone who can give me help.
jim@Server1:~$apt-get install xrdp
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Hi...

Welcome to the forum :)

You need administrative privileges to execute your command. To do this, place the word "sudo" in front of the command....

Code:

sudo apt-get install xrdp
Disclaimer: Be careful with commands including "su" or "sudo" especially, as it will essentially allow root access to your system. Mistakes could possibly damage or even destroy your OS.

Regards...

jimyoung 06-15-2016 11:12 AM

xrdp tried that got this
 
Quote:

Originally Posted by ardvark71 (Post 5561276)
Hi...

Welcome to the forum :)

You need administrative privileges to execute your command. To do this, place the word "sudo" in front of the command....

Code:

sudo apt-get install xrdp
Disclaimer: Be careful with commands including "su" or "sudo" especially, as it will essentially allow root access to your system. Mistakes could possibly damage or even destroy your OS.

Regards...

jim@Server1:~$ sudo apt-get install xrdp
bash: sudo: command not found

ardvark71 06-15-2016 11:15 AM

Quote:

Originally Posted by jimyoung (Post 5561278)
jim@Server1:~$ sudo apt-get install xrdp
bash: sudo: command not found

Hi...

Do the instructions here help?

Or how about...

Code:

su apt-get install xrdp


EDIT: Whoops, thanks guys. I didn't realize Debian was different in this respect. My apologies to the OP. :)

Regards...

Emerson 06-15-2016 11:22 AM

Gain root privileges with
Code:

su -
then execute your command.

suicidaleggroll 06-15-2016 11:22 AM

Debian doesn't use sudo for administration, that's just Ubuntu and its derivatives.

System administration needs to be done as root. When you installed Debian you set up a root password in addition to your regular user password. Use "su -" to switch to root, enter root's password, and then you can run apt-get and any other admin utilities as necessary.

Do not follow the instructions in the link posted by ardvark71 unless you want to compromise the security of your system. Sudo can be a powerful and useful tool, but it is not designed and should not be used to make a regular user the equivalent of root.

ardvark71 06-15-2016 11:27 AM

Quote:

Originally Posted by suicidaleggroll (Post 5561286)
Do not follow the instructions in the link posted by ardvark71 unless you want to compromise the security of your system. Sudo can be a powerful and useful tool, but it is not designed and should not be used to make a regular user the equivalent of root.

Hi...

Then why is it ok to use for Ubuntu and its derivatives? :confused:

Regards...

suicidaleggroll 06-15-2016 11:32 AM

Quote:

Originally Posted by ardvark71 (Post 5561287)
Hi...

Then why is it ok to use for Ubuntu and its derivatives? :confused:

Regards...

In mine and many others' opinions, it's not. The first thing I do when I set up any of those systems is enable the root account and disable that stupid unlimited sudo nonsense. All of the protections that are put in place to restrict access to the root account (and there are a lot...no GUI access, no SSH access, etc) are completely voided when a regular user is granted unlimited sudo privileges.

Canonical did it to make Linux more "Windows-like", they didn't do it for security. If you notice, Canonical has also stripped EVERY reference to the word "Linux" from their website so they can pretend to be something different, all while compromising security and adding spyware right into the DE.

ardvark71 06-15-2016 11:43 AM

Quote:

Originally Posted by suicidaleggroll (Post 5561289)
In mine and many others' opinions, it's not. The first thing I do when I set up any of those systems is enable the root account and disable that stupid unlimited sudo nonsense. All of the protections that are put in place to restrict access to the root account (and there are a lot...no GUI access, no SSH access, etc) are completely voided when a regular user is granted unlimited sudo privileges.

Canonical did it to make Linux more "Windows-like", they didn't do it for security. If you notice, Canonical has also stripped EVERY reference to the word "Linux" from their website so they can pretend to be something different, all while compromising security and adding spyware right into the DE.

Hi...

Thank you for the explanation, although I honestly don't see the difference between the two in terms of the system rights given. :)

EDIT: Never mind the last part, I think I get the essence of what you're saying, at least in part... ;)

Quote:

All of the protections that are put in place to restrict access to the root account (and there are a lot...no GUI access, no SSH access, etc) are completely voided when a regular user is granted unlimited sudo privileges.
Regards...

erik2282 06-15-2016 11:46 AM

Quote:

Originally Posted by suicidaleggroll (Post 5561289)
In mine and many others' opinions, it's not. The first thing I do when I set up any of those systems is enable the root account and disable that stupid unlimited sudo nonsense. All of the protections that are put in place to restrict access to the root account (and there are a lot...no GUI access, no SSH access, etc) are completely voided when a regular user is granted unlimited sudo privileges.

Canonical did it to make Linux more "Windows-like", they didn't do it for security. If you notice, Canonical has also stripped EVERY reference to the word "Linux" from their website so they can pretend to be something different, all while compromising security and adding spyware right into the DE.

I just installed Linux Lite 3.0 on my laptop that's had debian stable for years. I found this odd that when updating through the gui update application i kept putting my root password and kept failing. I put in my user password that worked, :scratch: . Anyway I want to disable the sudo stuff as well.

suicidaleggroll 06-15-2016 12:02 PM

Quote:

Originally Posted by erik2282 (Post 5561299)
I just installed Linux Lite 3.0 on my laptop that's had debian stable for years. I found this odd that when updating through the gui update application i kept putting my root password and kept failing. I put in my user password that worked, :scratch: . Anyway I want to disable the sudo stuff as well.

To disable it you simply need to comment out the line in /etc/sudoers that's granting "admins" the ability to do anything they want. On ubuntu and friends it looks like:
Code:

# Allow members of group sudo to execute any command
%sudo    ALL=(ALL:ALL) ALL

Just make sure the root account is active before doing so or you'll lock yourself out of your own system.

You can still use sudo as it was intended, by adding rules in /etc/sudoers to allow SPECIFIC users to run SPECIFIC tasks, this just removes the all-encompassing Windows style rule that turns any user in the "sudo" group into another root.

erik2282 06-15-2016 12:11 PM

Thanks suicidaleggroll.

jimyoung 06-15-2016 12:36 PM

xrdp thanks
 
Quote:

Originally Posted by ardvark71 (Post 5561282)
Hi...

Do the instructions here help?

Or how about...

Code:

su apt-get install xrdp


EDIT: Whoops, thanks guys. I didn't realize Debian was different in this respect. My apologies to the OP. :)

Regards...

Thanks for the help it seems to be ok

ardvark71 06-15-2016 01:13 PM

Quote:

Originally Posted by jimyoung (Post 5561333)
Thanks for the help it seems to be ok

Hi...

You're welcome, were you able to get it to install? If so, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks! :)

Regards...

jimyoung 06-16-2016 08:13 AM

xrdp
 
Quote:

Originally Posted by ardvark71 (Post 5561365)
Hi...

You're welcome, were you able to get it to install? If so, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks! :)

Regards...

Yes just got to figure it out now. but it did install like you said i thank you i am trying to learn


All times are GMT -5. The time now is 09:51 PM.