Installing xfce after netinstall

New to Debian (Or Linux in general)? Ask your questions here!

Re: Installing xfce after netinstall

Postby nadir » 2011-11-04 15:09

last paragraph: viewtopic.php?f=10&t=44596&start=15#p253367
I would feel much better if anyone could telly me why he thinks he needs sudo that way (that way means instead of su)

ivanovnegro wrote:I am with @el_koraco, I use sudo, do not see any problem with it.

You might want to stress the "I" and add a "with what i do as of now"
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.
User avatar
nadir
 
Posts: 5964
Joined: 2009-10-05 22:06
Location: away

Re: Installing xfce after netinstall

Postby ivanovnegro » 2011-11-04 15:22

nadir wrote:last paragraph: viewtopic.php?f=10&t=44596&start=15#p253367
I would feel much better if anyone could telly me why he thinks he needs sudo that way (that way means instead of su)

ivanovnegro wrote:I am with @el_koraco, I use sudo, do not see any problem with it.

You might want to stress the "I" and add a "with what i do as of now"


Ok, I really won't go into a sudo discussion here. I think Debian is doing it right, it offers you the choice, Ubuntu not, and I really do not care about the Ubuntu way. But sudo is there for a reason and Debian offers you that, so it is a part of Debian and is not only an Ubuntu thing. I use sudo for my admin tasks and that is all and I am also the only user on my machine. I do not say others have to do the same as I do but I also do not descourage people from using sudo.
ivanovnegro
 
Posts: 729
Joined: 2011-06-04 20:06
Location: Valencia, Spain

Re: Installing xfce after netinstall

Postby el_koraco » 2011-11-04 15:31

nadir wrote:no, it is not a few letters.


Yes it is.
User avatar
el_koraco
 
Posts: 178
Joined: 2011-10-20 11:49

Re: Installing xfce after netinstall

Postby nadir » 2011-11-04 15:52

el_koraco wrote:
nadir wrote:no, it is not a few letters.


Yes it is.

You might want to edit the Debian wiki page, in that case.
Root > sudo

Sudo is a program designed to let system administrators allow some users to execute some commands as root (or another user). The basic philosophy is to give as few privileges as possible but still allow people to get their work done. Sudo is also an effective way to log who ran which command and when.

As of DebianSqueeze, if you ask for the Desktop task during the installation, that pulls in sudo with a default configuration that automatically grants sudo-ing rights to any member of the sudo group. Depending on what user accounts you set up during the install, it's still possible that you may not have been added to that group - you can check by running groups.

Why sudo?

Using sudo is better (safer) than opening a session as root for a number of reasons, including:

Nobody needs to know the root password (sudo prompts for the current user's password). Extra privileges can be granted to individual users temporarily, and then taken away without the need for a password change.

It's easy to run only the commands that require special privileges via sudo; the rest of the time, you work as an unprivileged user, which reduces the damage that mistakes can cause.
Auditing/logging: when a sudo command is executed, the original username and the command are logged.

For the reasons above, switching to root using sudo -i (or sudo su) is usually deprecated because it cancels the above features.

Configuration overview

Now, if you want to allow certain users to execute certain programs, here's a quick example (for more information, read the fine manual).

http://wiki.debian.org/sudo


ivanovnegro: I use sudo for my admin tasks and that is all and I am also the only user on my machine.

But that is what i was talking about. _If_ you are the only user, i for one can't see any reason for sudo at all. If i could, i might be using it. If i would be using it, and i ran into problems of any kind, i would think about not using it. I guess.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.
User avatar
nadir
 
Posts: 5964
Joined: 2009-10-05 22:06
Location: away

Re: Installing xfce after netinstall

Postby vbrummond » 2011-11-04 16:26

I use sudo and I do so by choice why? Because all I need to do is add a few letters to the beginning of a command. And I still have the power to log into a root shell if I want.
Always on Debian Testing
vbrummond
 
Posts: 4468
Joined: 2010-03-02 01:42

Re: Installing xfce after netinstall

Postby el_koraco » 2011-11-04 18:32

nadir wrote:But that is what i was talking about. _If_ you are the only user, i for one can't see any reason for sudo at all. If i could, i might be using it. If i would be using it, and i ran into problems of any kind, i would think about not using it. I guess.


A typical user will not do a whole bunch of administering the system, so whether he uses sudo or su to open a root shell is largely irrelevant. As for usage, I su to root for admin tasks, but here's an excerpt from my sudoers file

Code: Select all
lekoraco  ALL = NOPASSWD: /usr/sbin/pm-suspend
lekoraco  ALL = NOPASSWD: /sbin/reboot
lekoraco  ALL = NOPASSWD: /sbin/poweroff
lekoraco  ALL = NOPASSWD: /sbin/hdparm


Don't have no policykit and shutdown dialogs, so this saves up on time and nerves (I have the relevant commands aliased to sudo in my .zshrc, so I never even type it). There's always a way to use various tools on Linux that one doesn't think of immediately.
User avatar
el_koraco
 
Posts: 178
Joined: 2011-10-20 11:49

Re: Installing xfce after netinstall

Postby nadir » 2011-11-04 19:01

Of that i did not speak at all, it and it is not what the OP does. That is a way to use sudo which makes sense, and it is what the Debian wiki speaks about too.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.
User avatar
nadir
 
Posts: 5964
Joined: 2009-10-05 22:06
Location: away

Re: Installing xfce after netinstall

Postby hellfire695 » 2011-11-07 04:11

You also may get much better performance if only install what you need and use apt-build. however be careful with apt-build it \'s still a bit exprimental in nature
Don't bash windows it's like kicking a puppy. And you wouldn't kick a puppy would you? WOULD YOU!?
http://www.networkworld.com/news/2011/0 ... tml?page=2
hellfire695
 
Posts: 61
Joined: 2011-11-06 21:07

Re: Installing xfce after netinstall

Postby elav » 2011-11-15 11:50

Greetings:
I searched the forum a solution to my problem and not find it. Using Debian Testing and LightDM and everything works perfectly. Where is the problem? If I lift up the session with Slim or startx, Xfce will not let me restart or shut down the PC.

I tried installing HAL and DBUS and did not work. I tried adding my user to the group powerdev did not work. I tried adding the file /etc/sudoers line:

Code: Select all
user ALL=NOPASSWD: /usr/sbin/shutdown-helper-xfsm


did not work either. Even the binary xfsm-shutdown-helper does not exist on this route.
I also do not work to lock the screen with Xscreensaver, and I repeat, all this happens with Slim or startx, with LightDM everything works normally. I was weighing that maybe the way it manages LightDM Xfce session, is what causes the shutdown and restart buttons work but not sure.

I created .xinitrc file in my / home, which contains this in:
Code: Select all
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

#exec ck-launch-session startxfce4
exec ck-launch-session dbus-launch xfce4-session


but neither has worked. Any solution for this?

Sorry for my bad english :mrgreen:
url: blog.desdelinux.net
User avatar
elav
 
Posts: 30
Joined: 2011-03-14 18:09
Location: /var/www/debian.net

Re: Installing xfce after netinstall

Postby layr » 2011-11-24 21:45

Happy Debian user now.
Anyway, i have learned about the '--no-install-recommends' function. Is there a solid rule to figure out whether the packages NEEDS recommends or not (for instance the openoffice case)?
Could xfce4 and gdm3 be installed with this option; or xorg for that matter?
User avatar
layr
 
Posts: 81
Joined: 2011-10-11 15:07

Re: Installing xfce after netinstall

Postby boobdillin » 2011-11-24 21:50

Install without recommends and see if you have the functionality you need, if not then install the recommends or just reinstall the package with recommends.
boobdillin
 
Posts: 26
Joined: 2011-11-07 16:21

Re: Installing xfce after netinstall

Postby layr » 2011-12-04 14:28

el_koraco wrote:
salome wrote:Why use gdm3 instead of lighter display managers like slim, xdm or lightdm? Because Wheezy's policykit bugs (e.g. USB device mounting, suspend/hibernate) affect these light DMs.

You need
Code: Select all
..somestuff...
eval 'dbus-launch --sh-syntax --exit-with-session'
exec ck-launch-session WM/DE

in .xinitrc in order to get the permissions working correctly.

The .xinitrc should be in the /home directory right? Can't locate that file anywhere.
Found a non-hidden xinitrc: /etc/X11/xinit/
That's not the same is it?
Edit: i give up with slim and the like - gdm3 is way too much easier to use.
User avatar
layr
 
Posts: 81
Joined: 2011-10-11 15:07

Previous

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable