You are not logged in.

#1 2012-05-20 05:12:51

nidhin
Member
Registered: 2012-05-20
Posts: 5

Gnome to virtual terminal

I've installed gdm  and gnome into my arch linux and I've added gdm to the list of deamons. But I forgot to install the sudo program. Now I'm not able to perform any superuser activities since gdm, by default, does not allow root user login. I tried to switch to virtual consoles from gnome-session using keyboard shortcuts like ALT-CTRL-Fn and ALT-CTRL-SHIFT-Fn. But none of them seem to work. Now, how can I move into virtual terminals or is there some other way to login as root user?

PS: I'm running my arch in vmware.

Last edited by nidhin (2012-05-20 05:33:05)

Offline

#2 2012-05-20 05:18:09

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: Gnome to virtual terminal

In a terminal try executing the "su" command.  That should elevate that terminal to root privileges and if so you can then install sudo.


Edit: I don't mean one of the virtual terminals, I mean the "gnome-terminal" in your accessories menu.

Last edited by headkase (2012-05-20 05:20:29)

Offline

#3 2012-05-20 05:24:41

nidhin
Member
Registered: 2012-05-20
Posts: 5

Re: Gnome to virtual terminal

headkase wrote:

In a terminal try executing the "su" command.  That should elevate that terminal to root privileges and if so you can then install sudo.


Edit: I don't mean one of the virtual terminals, I mean the "gnome-terminal" in your accessories menu.


I tried that and its showing su: incorrect password  (tried both my user password and root password).

Offline

#4 2012-05-20 05:57:03

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: Gnome to virtual terminal

"su" takes your root password.  Are you absolutely sure you are entering it correctly?

Offline

#5 2012-05-20 07:01:19

nidhin
Member
Registered: 2012-05-20
Posts: 5

Re: Gnome to virtual terminal

headkase wrote:

"su" takes your root password.  Are you absolutely sure you are entering it correctly?

Yes, I'm. Infact I did not supply any password for root during installation.

Offline

#6 2012-05-20 07:21:20

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Gnome to virtual terminal

Try booting in runlevel 1 and resetting your root password for starters.


Burninate!

Offline

#7 2012-05-20 08:01:53

nidhin
Member
Registered: 2012-05-20
Posts: 5

Re: Gnome to virtual terminal

Gcool wrote:

Try booting in runlevel 1 and resetting your root password for starters.

Yeah It worked. I changed my root password by booting in runlevel 1 and then logged in as a normal user. Now I was able to run su properly. I guess password is mandatory for su. Originally I didn't had a root password.

And can somebody tell me how can I switch to virtual terminal from gnome-session?  I tried various keyboard shortcuts like ALT-CTRL-Fn, ALT-CTRL-SHIFT-Fn etc..None of these worked.

Last edited by nidhin (2012-05-20 08:12:08)

Offline

#8 2012-05-20 11:22:57

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Gnome to virtual terminal

nidhin wrote:

And can somebody tell me how can I switch to virtual terminal from gnome-session?  I tried various keyboard shortcuts like ALT-CTRL-Fn, ALT-CTRL-SHIFT-Fn etc..None of these worked.

So you basically just want to switch to another tty? Within vmare, this is done through Alt-F1, Alt-F2,... if I'm not mistaken.


Burninate!

Offline

#9 2012-05-20 13:21:36

nidhin
Member
Registered: 2012-05-20
Posts: 5

Re: Gnome to virtual terminal

Gcool wrote:

So you basically just want to switch to another tty? Within vmare, this is done through Alt-F1, Alt-F2,... if I'm not mistaken.

Alt-Fn could only switch me between VTs only when I'm already working on one of them. But I need to switch to a VT from gnome session. I remember ALT-CTRL-SHIFT-Fn used to do the same in ubuntu.

Offline

#10 2012-05-20 15:32:21

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Gnome to virtual terminal

Shouldn't the shortcut be CTRL-ALT-Fn to go to the ttys?

Offline

Board footer

Powered by FluxBB