You are not logged in.

#1 2015-06-06 14:15:25

zxc159789
Member
Registered: 2015-06-06
Posts: 6

[SOLVED]I can't start the gnome

hello everybody
I was installed according to the https://wiki.archlinux.org/index.php/Beginners%27_guide archlinux
Then according to the https://wiki.archlinux.org/index.php/GNOME install gnome

I edited the post again Hope it looks more useful


But I can't startx start the desktop
I had a lot of document reference finally stopped here
I can't continue to

Before hanging display appeared like the picture

http://www.de-brauwer.be/images/virtual_box/xorg2.png

[root@localhost ~]# startx


X.Org X Server 1.17.1
Release Date: 2015-02-10
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.19.2-1-ARCH i686 
Current Operating System: Linux localhost 4.0.4-2-ARCH #1 SMP PREEMPT Fri May 22 03:19:32 UTC 2015 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=9db02512-05c3-4118-a892-dbbf3d2e1569 rw quiet
Build Date: 14 April 2015  10:36:09AM
 
Current version of pixman: 0.32.6
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.5.log", Time: Sat Jun  6 14:00:43 2015
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
^Cxinit: connection to X server lost

waiting for X server to shut down XIO:  fatal IO error 0 (Success) on X server ":5"
      after 1528 requests (1528 known processed) with 0 events remaining.
xterm: xterm: fatal IO error 104 (Connection reset by peer) or KillClient on X server ":5"
fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":5"
xterm: fatal IO error 104 (Connection reset by peer) or KillClient on X server ":5"
(II) Server terminated successfully (0). Closing log file.

xinit: unexpected signal 2

this is my  /root   dir file

[root@localhost ~]# ls -al
total 36
drwxr-x---  3 root root 4096 Jun  6 14:51 .
drwxr-xr-x 17 root root 4096 Jun  6 09:28 ..
-rw-------  1 root root  587 Jun  6 14:55 .bash_history
-rw-r--r--  1 root root    0 Jun  6 13:44 log.log
-rw-r--r--  1 root root    0 Jun  6 13:55 pkglist.orig
drwxr-xr-x  2 root root 4096 Jun  6 13:31 .vim
-rw-------  1 root root 5319 Jun  6 13:53 .viminfo
-rw-------  1 root root  270 Jun  6 14:00 .Xauthority
-rw-r--r--  1 root root  739 Jun  6 14:51 .xinitrc
-rw-r--r--  1 root root 3147 Jun  6 13:11 xorg.conf.new
[root@localhost ~]# cat .xinitrc 
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

Thank you for your help

-- mod note: converted img to url tags.  Please see guidelines on image sizes.  Trilby --

Last edited by zxc159789 (2015-06-07 02:55:47)

Offline

#2 2015-06-06 14:23:26

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED]I can't start the gnome

Greetings fellow Pastafarian and welcome to Arch smile

zxc159789 wrote:

Please note that in the middle of the code is pending I press CTRL + C to terminate it

I'm not sure I understand this -- why did you terminate it?

Have you created ~/.xinitrc?
https://wiki.archlinux.org/index.php/Xinitrc
https://wiki.archlinux.org/index.php/GNOME#Manually


Jin, Jîyan, Azadî

Offline

#3 2015-06-06 14:48:10

zxc159789
Member
Registered: 2015-06-06
Posts: 6

Re: [SOLVED]I can't start the gnome

Head_on_a_Stick wrote:

Greetings fellow Pastafarian and welcome to Arch smile

zxc159789 wrote:

Please note that in the middle of the code is pending I press CTRL + C to terminate it

I'm not sure I understand this -- why did you terminate it?

Have you created ~/.xinitrc?
https://wiki.archlinux.org/index.php/Xinitrc
https://wiki.archlinux.org/index.php/GNOME#Manually

If I do not to end it It will be in my inside keep the SSH terminal And there will be no further change on the display


I tried this two documents all related operations
I totally have no idea now

Offline

#4 2015-06-06 14:52:37

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

Re: [SOLVED]I can't start the gnome

zxc..., if you are wondering where your first post went, it looks like you hit "report" rather than "reply".

Head_on_a_stick is right, as usual - it looks like you need a ~/.xinitrc.  Without that file in your user's home directory, xinit starts twm, with a couple xterms and xclock.  This is exactly what is shown in your image.


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

Offline

#5 2015-06-06 15:03:48

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED]I can't start the gnome

zxc159789 wrote:

I tried this two documents all related operations

Please post the content of ~/.xinitrc


Jin, Jîyan, Azadî

Offline

#6 2015-06-06 19:15:13

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]I can't start the gnome

Please edit your thread title and remove the redundant and annoying plea for help. Read the rest of the Forum Etiquette when you do: https://wiki.archlinux.org/index.php/Fo … ow_to_post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-06-06 22:36:46

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: [SOLVED]I can't start the gnome

Even though I don't know if this is related, but just to rule out that this would interfere:

It is usually a bad idea to name your host "localhost".


pkgs │ hacks │ cfg │ blag

Offline

#8 2015-06-07 02:14:14

zxc159789
Member
Registered: 2015-06-06
Posts: 6

Re: [SOLVED]I can't start the gnome

Head_on_a_Stick wrote:
zxc159789 wrote:

I tried this two documents all related operations

Please post the content of ~/.xinitrc


this is my  /root   dir file

[root@localhost ~]# ls -al
total 36
drwxr-x---  3 root root 4096 Jun  6 14:51 .
drwxr-xr-x 17 root root 4096 Jun  6 09:28 ..
-rw-------  1 root root  587 Jun  6 14:55 .bash_history
-rw-r--r--  1 root root    0 Jun  6 13:44 log.log
-rw-r--r--  1 root root    0 Jun  6 13:55 pkglist.orig
drwxr-xr-x  2 root root 4096 Jun  6 13:31 .vim
-rw-------  1 root root 5319 Jun  6 13:53 .viminfo
-rw-------  1 root root  270 Jun  6 14:00 .Xauthority
-rw-r--r--  1 root root  739 Jun  6 14:51 .xinitrc
-rw-r--r--  1 root root 3147 Jun  6 13:11 xorg.conf.new
[root@localhost ~]# cat .xinitrc 
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

Offline

#9 2015-06-07 02:19:04

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

Re: [SOLVED]I can't start the gnome

Three things:

1) It is dangerous to run X as root and should simply never be done unless you know exactly what you are doing and why you are doing it (so you shouldn't)

2) That xinitrc is a copy of the systemwide one, which is why you are seeing xterms and xclock in twm: there is nothing about gnome in there.

3) Even if you tried to launch gnome from there, I believe gnome pampers users enough to not start up as root.

To do this right, create an xinitrc for your *user*, or post it if you have already done so.  What have you actually done to set up gnome?


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

Offline

#10 2015-06-07 02:22:26

zxc159789
Member
Registered: 2015-06-06
Posts: 6

Re: [SOLVED]I can't start the gnome

jasonwryan wrote:

Please edit your thread title and remove the redundant and annoying plea for help. Read the rest of the Forum Etiquette when you do: https://wiki.archlinux.org/index.php/Fo … ow_to_post


I have already modified is that ok

Offline

#11 2015-06-07 02:23:58

zxc159789
Member
Registered: 2015-06-06
Posts: 6

Re: [SOLVED]I can't start the gnome

ayekat wrote:

Even though I don't know if this is related, but just to rule out that this would interfere:

It is usually a bad idea to name your host "localhost".



I don't think this will affect the gnome after finish all the installation I will modify it

Offline

#12 2015-06-07 02:52:55

zxc159789
Member
Registered: 2015-06-06
Posts: 6

Re: [SOLVED]I can't start the gnome

Trilby wrote:

Three things:

1) It is dangerous to run X as root and should simply never be done unless you know exactly what you are doing and why you are doing it (so you shouldn't)

2) That xinitrc is a copy of the systemwide one, which is why you are seeing xterms and xclock in twm: there is nothing about gnome in there.

3) Even if you tried to launch gnome from there, I believe gnome pampers users enough to not start up as root.

To do this right, create an xinitrc for your *user*, or post it if you have already done so.  What have you actually done to set up gnome?



Thank you for your reminder
Have been using the root operation This is my mistake, I should pay attention to it
Gnome cannot start because I don't have the right to modify ~ /. Xinitrc
Now I am gnome has launched the thank you very much

Offline

Board footer

Powered by FluxBB