Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Installing xfce after netinstall

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: Installing xfce after netinstall

#31 Post by vbrummond »

layr wrote:That is available only when you select to allow logging in as root.
I am sorry but.. back up. You disabled root intentionally and then state that the installer does not ask for a root password? Disabling root prompt is only available if you choose to use a more verbose installer as well. You can probably make a root account if you give it a password, but I would make sure before you do I do not have vbox up to test if it breaks anything. :) (I usually have a root account I never disabled it until this install).
Always on Debian Testing

User avatar
layr
Posts: 86
Joined: 2011-10-11 15:07
Has thanked: 1 time

Re: Installing xfce after netinstall

#32 Post by layr »

Haha:D I thought the 'login as root' was as for logging from login page only:D
Then again, Ubuntu doesn't even have that option, yet root passwords work?!
(i'm probably mixing something up again). Well, i'll go with the root login option then :)

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: Installing xfce after netinstall

#33 Post by vbrummond »

Ubuntu actually is set up with no root login, which some people complain about. To be honest I really see no difference and find sudo to be more convenient. (except when I have to echo something into a file, I need to log into a root shell with sudo su)
Always on Debian Testing

User avatar
layr
Posts: 86
Joined: 2011-10-11 15:07
Has thanked: 1 time

Re: Installing xfce after netinstall

#34 Post by layr »

Ok, got that working now.
But suspend option is still a no-go :(

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: Installing xfce after netinstall

#35 Post by vbrummond »

All I know about suspend is your hardware must support it under Linux (never had it work with nvidia cards) and you need pm-utils installed.
Always on Debian Testing

User avatar
layr
Posts: 86
Joined: 2011-10-11 15:07
Has thanked: 1 time

Re: Installing xfce after netinstall

#36 Post by layr »

vbrummond wrote:All I know about suspend is your hardware must support it under Linux (never had it work with nvidia cards) and you need pm-utils installed.
pm-utils - check
and suspend worked under ubuntu (only hibernation goofed every now-and-then)
I should add that i now started testing on VM. That might be the problem. I'll try it on separate partition and post results.

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: Installing xfce after netinstall

#37 Post by vbrummond »

If it can work under Linux then it is possible, obviously. A log of a failed suspend would help but I am not sure how to obtain that data unless it is under the back-up dmesg log. (/var/log/dmesg.1?). Also which Ubuntu version worked.. Debian Stable uses 2.6.32, which is the same as Ubuntu Lucid. You can optionally install a newer kernel in Debian that might fix the issue.
Always on Debian Testing

User avatar
Thorny
Posts: 542
Joined: 2011-02-27 13:40

Re: Installing xfce after netinstall

#38 Post by Thorny »

layr wrote:...
Then again, Ubuntu doesn't even have that option, yet root passwords work?!
(i'm probably mixing something up again).
Yes, you are mixing something up, or rather, misinterpreting. In default Ubuntu, user, root, does not have a password except in cases where a desktop install has been re-configured to have one or in server installs where one is usually desired. The admin user (first one created) can sudo (with the user password) but that is not a user, root, password.
vbrummond wrote:A log of a failed suspend would help but I am not sure how to obtain that data
Try: /var/log/pm-suspend.log, it might have useful information.

User avatar
el_koraco
Posts: 243
Joined: 2011-10-20 11:49
Has thanked: 3 times
Been thanked: 8 times

Re: Installing xfce after netinstall

#39 Post by el_koraco »

layr wrote:Ok, got that working now.
But suspend option is still a no-go :(
run

Code: Select all

su -c 'pm-suspend'
and input your root password, or

Code: Select all

sudo pm-suspend
with your user password.
I still don't get which of the admin options you're using.

User avatar
layr
Posts: 86
Joined: 2011-10-11 15:07
Has thanked: 1 time

Re: Installing xfce after netinstall

#40 Post by layr »

layr wrote:I should add that i now started testing on VM. Might that might be the problem?
Did you copy that? Added this later. At this second i can't get to wired connection, so i can try installation on partition later.
vbrummond wrote:If it can work under Linux then it is possible, obviously. A log of a failed suspend would help but I am not sure how to obtain that data unless it is under the back-up dmesg log. (/var/log/dmesg.1?). Also which Ubuntu version worked.. Debian Stable uses 2.6.32, which is the same as Ubuntu Lucid. You can optionally install a newer kernel in Debian that might fix the issue.
Worked under Ubuntu 10.10 and 11.04 (haven't tested others). Current kernel is 3.0.0.1
Not sure if this is what you mean, but here they are: dmesg and dmesg.0
el_koraco wrote:run

Code: Select all

su -c 'pm-suspend'
and input your root password, or

Code: Select all

sudo pm-suspend
with your user password.
I still don't get which of the admin options you're using.
Those commands didn't do anything - no error either.
As for the admin options... i'm not sure either to be honest. I just reinstalled again and added my user to the sudoers file.
EDIT: finally managed to generate error by getting suspend button to panel. "Failed to suspend session. No kernel support"

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: Installing xfce after netinstall

#41 Post by nadir »

The best is to get rid of sudo altogether.
The second best would be to understand sudo, and what it might be used for. The Ubuntu way is not what it might be used for.
(That is not against Ubuntu, i don't care how they do it, and it probably is a distro as good or bad as any other. I only say that using sudo that way doesn't make much sense, and leads to trouble too. There must be a reason all other distributions do it different, or not? I doubt that is the source of your actual problem, but i picked the best option, instead of the second best. That means i use su).
The most short way to say how i do things: i use the Debian defaults. I ain't got much problems, though i don't know much.
If you know why you use sudo ignore my post.
"Failed to suspend session. No kernel support"
No clue, i never suspend, but i would simply try a different kernel, say liquorix. The other option is to search the web for that (until someone can tell you, i can't).
If you still do it in VBox go to -> settings -> system -> processor -> and enable PAE at the bottom of it (wild shots in the dark).

btw: at the very top of this thread you ask about xfce/compiz. It works good for me (but so does gnome...). It is worth a try.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: Installing xfce after netinstall

#42 Post by vbrummond »

I was not able to find a way to suspend inside virtualbox.
Always on Debian Testing

User avatar
el_koraco
Posts: 243
Joined: 2011-10-20 11:49
Has thanked: 3 times
Been thanked: 8 times

Re: Installing xfce after netinstall

#43 Post by el_koraco »

nadir wrote:The best is to get rid of sudo altogether.
It's a few letters, don't make a big deal out of it.
@layr, it doesn't even make sense to troubleshoot suspending in a VM. Once you put Debian on a partition, we can diagnose the problem (in case it persists).

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: Installing xfce after netinstall

#44 Post by nadir »

no, it is not a few letters.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

ivanovnegro
Posts: 728
Joined: 2011-06-04 20:06
Location: Valencia, Spain

Re: Installing xfce after netinstall

#45 Post by ivanovnegro »

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

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: Installing xfce after netinstall

#46 Post by nadir »

last paragraph: http://forums.debian.net/viewtopic.php? ... 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.

ivanovnegro
Posts: 728
Joined: 2011-06-04 20:06
Location: Valencia, Spain

Re: Installing xfce after netinstall

#47 Post by ivanovnegro »

nadir wrote:last paragraph: http://forums.debian.net/viewtopic.php? ... 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.

User avatar
el_koraco
Posts: 243
Joined: 2011-10-20 11:49
Has thanked: 3 times
Been thanked: 8 times

Re: Installing xfce after netinstall

#48 Post by el_koraco »

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

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: Installing xfce after netinstall

#49 Post by nadir »

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.

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: Installing xfce after netinstall

#50 Post by vbrummond »

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

Post Reply