You are not logged in.

#1 2012-04-28 03:25:06

PYTH
Member
Registered: 2012-04-02
Posts: 56

Xinit not working (setting up gnome)

I just got Arch Linux on my  laptop and have a working connection! Now I am installing Gnome. I have done that and would like to run gnome session. I am logged in as a root and I run:

xinit /usr/bin/gnome-session

and I get:

- bash: xinit: command not found

I am not sure what to do.... I am falling the instructions on a youtube video (here are the shownotes: http://www.thisweekinlinux.com/2010/10/archcommands/) from this week in linux and my results are not like his.

Any help would be appreciated!


Soli Deo Gloria!  - To God alone be the glory!

Offline

#2 2012-04-28 03:30:49

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,568

Re: Xinit not working (setting up gnome)

Follow the beginners guide instead
https://wiki.archlinux.org/index.php/Be … #Install_X

Are you sure you want to run X as root?

Offline

#3 2012-04-28 03:34:17

PYTH
Member
Registered: 2012-04-02
Posts: 56

Re: Xinit not working (setting up gnome)

What does run x as root mean?

Last edited by PYTH (2012-04-28 03:37:20)


Soli Deo Gloria!  - To God alone be the glory!

Offline

#4 2012-04-28 03:41:35

adamrehard
Member
From: NY, USA
Registered: 2011-11-03
Posts: 154

Re: Xinit not working (setting up gnome)

It's not generally a good practice to use the root account for normal work. I won't tell you not to, as that's your decision, but it needs to be said.
Have you tried using a normal user account?
Try using The Wiki: GNOME, specifically the section about startx. It will work exactly the same way using xinit.
I hope this makes sense and helps.

PS: Please use the code tags for posting output. It just makes it a little easier to read. Thanks!


"The box said requires Vista or better, so I installed Arch"
Windows != Linux

Offline

#5 2012-04-28 03:43:39

PYTH
Member
Registered: 2012-04-02
Posts: 56

Re: Xinit not working (setting up gnome)

I set up another user but it is very limited so it can't install anything because it is no the root. How do I give it access to do everything that the root can?


Soli Deo Gloria!  - To God alone be the glory!

Offline

#6 2012-04-28 03:46:38

PYTH
Member
Registered: 2012-04-02
Posts: 56

Re: Xinit not working (setting up gnome)

@skunktrader I went through the guide and did everything all the way to "Configure X (Optional)" and know when I run: xinit /usr/bin/gnome-session I get:

xinit: /lib/libc.so.6: version 'GLIBC_2.15' not found (required by /usr/lib/libx11.so.6)

PS: How do I do code tags?


Soli Deo Gloria!  - To God alone be the glory!

Offline

#7 2012-04-28 03:48:40

PYTH
Member
Registered: 2012-04-02
Posts: 56

Re: Xinit not working (setting up gnome)

and when I run startx I now get:
usr/bin/startx: line 145: hostname: command not found


Soli Deo Gloria!  - To God alone be the glory!

Offline

#8 2012-04-28 04:19:27

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,568

Re: Xinit not working (setting up gnome)

PYTH wrote:

@skunktrader I went through the guide and did everything all the way to "Configure X (Optional)" and know when I run: xinit /usr/bin/gnome-session I get:

xinit: /lib/libc.so.6: version 'GLIBC_2.15' not found (required by /usr/lib/libx11.so.6)

PS: How do I do code tags?

Usually that means that your system is out of date.  The beginners guide says you should fully update the system before installing X

Offline

#9 2012-04-28 04:20:08

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,568

Re: Xinit not working (setting up gnome)

PYTH wrote:

and when I run startx I now get:
usr/bin/startx: line 145: hostname: command not found

http://www.archlinux.org/news/hostname- … inetutils/

Offline

#10 2012-04-28 04:21:03

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,568

Re: Xinit not working (setting up gnome)

In general, you should NOT use random guides on the net to install Arch, especially one that is 18 months old.

Offline

#11 2012-04-28 04:23:07

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,568

Re: Xinit not working (setting up gnome)

PYTH wrote:

I set up another user but it is very limited so it can't install anything because it is no the root. How do I give it access to do everything that the root can?

https://wiki.archlinux.org/index.php/Be … Guide#Sudo

Offline

#12 2012-04-28 04:29:32

PYTH
Member
Registered: 2012-04-02
Posts: 56

Re: Xinit not working (setting up gnome)

Ok. Thanks a lot! I will try all of that tomorrow! I see what you mean about the beginners guide and did not realize it was 18 months old... thanks for you help!


Soli Deo Gloria!  - To God alone be the glory!

Offline

#13 2012-04-28 14:41:15

PYTH
Member
Registered: 2012-04-02
Posts: 56

Re: Xinit not working (setting up gnome)

Ok. I am doing everything in the beginners guide now and it seems to be going good exept for now when I run startx (i upgraded my system) I get this:

X.Org X Server 1.12.1
Release Date:2012-04-13
X Protocol Verion 11, Revision 0Build Operating System: Linux 3.3.1-1-ARCH i1686
Current Operating System: Linux myhost 3.3.1-1-ARCH #1 SMP PREEMPT Mon apr 23
Kernel command line: root=dev/disk/by=uuid/a4e0b6e0-fcdd-46db-bdae-1199e46e0bf1 ro
Build Date: 14 April 2012

Current version of pixman: 0.24.4
                                    Before reporting problems, chck http://wiki.x.org
                                     to ake sure that you have the lastest version
Markers: (--) probed, (**) from config file, (==) degault setting,
                 (++) from command line, (!!) notice, (II) informational,
                 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "var/log/Xorg.0.log", Time: Sat Apr 28 09:29:47 2012
(==) Using config directory: "/etc/X11/xorg.conf.d"'resize called 1440 900
xinit: Unable to run program "xterm": No such file or directory
Specify a profram on the command line or ake sure that /usr/bin
is in your path

xinit: connection to X server lost

waiting for X server to shud Server terminated successfuly (0). Closing log file


Soli Deo Gloria!  - To God alone be the glory!

Offline

#14 2012-04-28 14:45:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,262
Website

Re: Xinit not working (setting up gnome)

Either you don't have a proper ~/.xinitrc, or you are still trying to run X as root which you were already advised against.

You do not have xterm installed, and the root user xinitrc runs xterm, so X starts, and when nothing is running, it ends just as it is supposed to.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#15 2012-04-28 14:50:18

PYTH
Member
Registered: 2012-04-02
Posts: 56

Re: Xinit not working (setting up gnome)

Ok. I will try to run it with another user....


Soli Deo Gloria!  - To God alone be the glory!

Offline

#16 2012-04-28 15:07:35

PYTH
Member
Registered: 2012-04-02
Posts: 56

Re: Xinit not working (setting up gnome)

Ok. I created a user and gave him access to everything but this time I got the error
E: [pulseaudio] main.c: Daemon startup failed. ( in red )
lost connection etc...


Soli Deo Gloria!  - To God alone be the glory!

Offline

#17 2012-04-28 15:09:30

PYTH
Member
Registered: 2012-04-02
Posts: 56

Re: Xinit not working (setting up gnome)

Hm... when I try to install pulseaudio (which I think I already did but) it denies be permission because I am not a root... hmm


Soli Deo Gloria!  - To God alone be the glory!

Offline

#18 2012-04-28 15:58:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,262
Website

Re: Xinit not working (setting up gnome)

*throws hands up*

If you will not follow advice given in this and your other threads, and if you will not go all the way through the beginners guide without trying to take short cuts, then there is really nothing anyone here can do to help.

Last edited by Trilby (2012-04-28 15:58:23)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#19 2012-04-29 04:41:34

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: Xinit not working (setting up gnome)

Think of it this way: you use root to configure and change the system, so to install packages and use pacman you're going to use root; you should use a normal user account for running "normal" things, for work, for fun, for internet, etc etc.

Offline

#20 2012-04-30 22:37:14

adr14n
Member
From: Tecamac, Mexico
Registered: 2011-04-26
Posts: 1
Website

Re: Xinit not working (setting up gnome)

Forget about all of them, and try this as root:

pacman -S gdm
nano /etc/rc.conf

and add fuse this to line:

MODULES=( fuse , ...)

replace network by networkmanager and add dbus this to:

DAEMONS=(..., dbus, networkmanager, ...)

Save it and now edit inittab:

nano /etc/inittab

comment id:3 and uncomment id:5

## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:

And finally uncomment x:5:respawn:/usr/sbin/gdm -nodaemon

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim ]/dev/null 2]&1

Save, reboot and enjoy GNOME!!

Last edited by adr14n (2012-04-30 22:42:56)

Offline

Board footer

Powered by FluxBB