Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Attempting to run Gnome 3
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Bandion
n00b
n00b


Joined: 15 Aug 2014
Posts: 11

PostPosted: Fri Aug 15, 2014 5:41 pm    Post subject: Attempting to run Gnome 3 Reply with quote

I am very much an beginner with Gentoo and any desktop environment.
I do not understand the USE flag and the --autounmask-write, and how it interacts with packages.. (I am trying to read up on this to understand though)

I followed the Gentoo handbook to install Gentoo, then attempted to install gnome, but ran into blocked packages.
This was solved by emerge genkernel-next

I was originally attempting to run gnome as root, found other posts saying that this is a bad idea, so created a user "carl".
When I am attempting to run startx, i get the following error:

Code:


Initializing built-in extension DRI2
Loading extension GLX
/home/carl/.xinitrc: line 7: unclutter: command not found
xset:  bad font path element (#1), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
xset:  bad font path element (#1), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
xset:  bad font path element (#1), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
xset:  bad font path element (#1), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
xrdb: No such file or directory
xrdb: can't open file '/home/carl/.Xresources'
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
/home/carl/.xinitrc: line 19: urxvtd: command not found
xinit: connection to X server lost

waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.


the .xinitrc
Code:

carl@Gentoo-CF ~ $ cat /home/carl/.xinitrc
# $Id: ~/.xinitrc, 2012/11/22 09:48:07 -tclover Exp $
#dbus-launch --sh-syntax --exit-with-session nm-applet --sm-disable &
#dbus-launch --sh-syntax --exit-with-session gcm-session &
#xcalib -gc 1.0 -b 0.0 -co 100.0 ~/.icc/sRGB_v4_ICC_preference.icc
#/usr/libexec/polkit-gnome-authentication-agent-1 &
ladi-system-tray 1>/dev/null 2>&1 &
unclutter -idle 8 -noevents &
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
xset s off
xset fp+ /usr/share/fonts/TTF-FD/
xset fp+ /usr/share/fonts/artwiz-latin1
xset fp+ /usr/share/fonts/artwiz-aleczapka-en
xset fp+ /usr/share/fonts/terminus
xset fp rehash
xrdb -load ~/.Xresources
setxkbmap fr
#xrdb -merge ~/.Xdefaults
#[[ -f ~/.xcolors/sj-bright ]] && xrdb -merge ~/.xcolors/sj-bright
urxvtd -q -o -f &
case $(tty | cut -b9-) in
        1) exec ck-launch-session dbus-launch --sh-syntax
--exit-with-session enlightenment_start;;
        2) exec ck-launch-session dbus-launch --sh-syntax
--exit-with-session lxsession          ;;
        3) exec ck-launch-session dbus-launch --sh-syntax
--exit-with-session openbox-session    ;;
esac
# vim:fenc=utf-8:ci:pi:sts=0:sw=4:ts=4:


make.conf
Code:

 cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=core2 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

#default USE setting
#USE="bindist mmx sse sse2 X"

USE="gtk gnome -qt4 -kde dbus dvd alsa cdr X -bindlist"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

MAKEOPTS="-j5"

GENTOO_MIRRORS="http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/"


my home directory
Code:

carl@Gentoo-CF ~ $ ls -al
total 24
drwxr-xr-x 3 carl carl 4096 Aug 15 11:48 .
drwxr-xr-x 3 root root 4096 Aug 12 10:58 ..
-rw------- 1 carl carl 1144 Aug 15 11:47 .bash_history
drwx------ 3 carl carl 4096 Aug 15 11:12 .dbus
-rw------- 1 carl carl    0 Aug 15 11:48 .Xauthority
-rwxrwxrwx 1 carl carl 1094 Aug 13 09:26 .xinitrc
-rw-r--r-- 1 root root 2311 Aug 15 11:48 xorg.conf.new


Where should I be looking to correct this?
Is there any other file that would be useful to look at?

Thank you
Carl
Back to top
View user's profile Send private message
Bandion
n00b
n00b


Joined: 15 Aug 2014
Posts: 11

PostPosted: Fri Aug 15, 2014 6:29 pm    Post subject: Reply with quote

Not sure if it would be helpful or not....

emerge --info
Code:

 $ emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X3440_@_2.53GHz-with-gentoo-2.2
KiB Mem:    16407528 total,  16075976 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of tree: Thu, 07 Aug 2014 00:45:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support readline sdl session socialweb spell sse sse2 ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

Back to top
View user's profile Send private message
shazeal
Apprentice
Apprentice


Joined: 03 May 2006
Posts: 173
Location: New Zealand

PostPosted: Fri Aug 15, 2014 7:54 pm    Post subject: Reply with quote

Is your path broken? As user carl...

Code:
echo $PATH


You have no .bashrc so I am guessing you created the user incorrectly...

As user carl...

Code:
cp -R /etc/skel/.bash* ~/


EDIT: Then log out/in again.

You should have used this when creating the user...
Code:

useradd -m carl

_________________
CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go"
Back to top
View user's profile Send private message
Bandion
n00b
n00b


Joined: 15 Aug 2014
Posts: 11

PostPosted: Fri Aug 15, 2014 9:43 pm    Post subject: Reply with quote

Not sure how I added the user, but most likely did not use the -m

Code:
carl@Gentoo-CF /root $ echo $PATH
/bin:/usr/bin

ran the cp command, it still does not start.
Code:

Loading extension GLX
/home/carl/.xinitrc: line 7: unclutter: command not found
xset:  bad font path element (#1), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
xset:  bad font path element (#1), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
xset:  bad font path element (#1), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
xset:  bad font path element (#1), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
xrdb: No such file or directory
xrdb: can't open file '/home/carl/.Xresources'
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
/home/carl/.xinitrc: line 19: urxvtd: command not found
DBUS_SESSION_BUS_ASSRESS='unix:abstract=/tmp/dbus-mw04mGdKHR,guid=dc18f6983f5c7cb3831f1o2753ee7f21';
export DBUS_SESSION_BUS_ADDRESS;
DBUS_SESSION_BUS_PID=3879;
DBUS_SESSION_BUS_WINDOWID=4194305;
xinit: connection to X server logs
waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.



I created a second user carl1 using the adduser -m carl1

Code:

carl1@Gentoo-CF /root $ ls -al ~/
total 32
drwxr-xr-x 4 carl1 carl1 4096 Aug 15 16:48 .
drwxr-xr-x 4 root  root  4096 Aug 15 16:41 ..
-rw------- 1 carl1 carl1   34 Aug 15 16:43 .bash_history
-rw-r--r-- 1 carl1 carl1  127 Jul 23 22:44 .bash_logout
-rw-r--r-- 1 carl1 carl1  193 Jul 23 22:44 .bash_profile
-rw-r--r-- 1 carl1 carl1  551 Jul 23 22:44 .bashrc
drwx------ 3 carl1 carl1 4096 Aug 15 16:41 .dbus
drwx------ 2 carl1 carl1 4096 Jul 23 23:46 .ssh
-rw------- 1 carl1 carl1    0 Aug 15 16:48 .Xauthority


Code:
Gentoo-CF ~ # su carl1
carl1@Gentoo-CF /root $ echo $PATH
/bin:/usr/bin


I get a different error when running startx
Code:

Initializing built-in extension DRI2
Loading extension GLX
/etc/X11/xinit/xinitrc: line 59: twm: command not found
/etc/X11/xinit/xinitrc: line 60: xclock: command not found
/etc/X11/xinit/xinitrc: line 63: exec: xterm: not found
/etc/X11/xinit/xinitrc: line 61: xterm: command not found
/etc/X11/xinit/xinitrc: line 62: xterm: command not found
xinit: connection to X server lost

waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.


my guess is that xterm is not installed?
not sure of the below can tell you if it is installed or not...
Code:

carl@Gentoo-CF /root $ emerge -pv xterm

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] x11-apps/xmessage-1.0.4  123 kB
[ebuild  N     ] x11-apps/luit-1.1.1  137 kB
[ebuild  N     ] x11-apps/bdftopcf-1.0.4  114 kB
[ebuild  N     ] media-fonts/font-alias-1.0.3  101 kB
[ebuild  N     ] media-fonts/font-misc-misc-1.1.2  USE="X nls" 1,889 kB
[ebuild  N     ] x11-terms/xterm-297  USE="openpty truetype unicode -Xaw3d -toolbar" 1,094 kB

Total: 6 packages (6 new), Size of downloads: 3,455 kB


Thank you
Carl
Back to top
View user's profile Send private message
john_deaux
n00b
n00b


Joined: 16 Sep 2013
Posts: 47
Location: On the banks of the Pontchartrain

PostPosted: Sat Aug 16, 2014 2:47 am    Post subject: Reply with quote

Bandion,

The few times that I've had a slot conflict an update of the system resolved them.

Have you tried "emerge -avuND @world" to update the system?

Regards,

j_d
Back to top
View user's profile Send private message
Sulman
n00b
n00b


Joined: 15 Feb 2014
Posts: 59

PostPosted: Sat Aug 16, 2014 4:15 am    Post subject: Reply with quote

Carl, is your user in the video group? It's necessary to get GLX available to a regular user.

can't hurt to do this:

Code:
usermod -a -G video,wheel,users,audio carl1


And logout and in again.

Your xorg server is exiting okay so it seems to be working.

I don't use .xinitrc to launch Gnome. Which version of Gnome are you using? Your mentioning of Genkernel-next makes me wonder if you've attempted a Gnome3 install and it's expecting systemd for init. If that means nothing to you, don't continue with Gnome (for now).

You are essentially there with regard to a working graphic stack, but at this point I would not try gnome - you're going to have a job getting that working if it is Gnome 3. Instead try something light like Xfce with Slim as the login manager. Refer to the Wiki for both of these environments; everything you need is there.

What is happening right now is startx is simply lauching a vanilla Xorg server; it's not configured to launch any desktop environments.
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4104
Location: USA

PostPosted: Sat Aug 16, 2014 5:06 am    Post subject: Reply with quote

When building Gnome it helps to have /etc/make.profile pointing to the right profile. You can

eselect profile list

and eselect profile <number> to select the build profile (usually #4 or #5 on the option list). It makes Gnome a lot easier to install. You can also choose KDE here too.

In any case X11, the graphics system, tries to run .xinitrc when running startx. When the script .xinitrc ends, it will kill the server. If you don't have an .xinitrc, it will use the default session that's stored in /etc/X11/xinit/xinitrc . Here you'll see the commands you got that failed to run when you don't have twm, xclock, and xterm installed.

I'm not quite sure what desktop environments you have fully installed at this point but if you actually got Gnome3 installed, you can put "gnome-session" in your .xinitrc which will then start Gnome when you startx.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
shazeal
Apprentice
Apprentice


Joined: 03 May 2006
Posts: 173
Location: New Zealand

PostPosted: Sat Aug 16, 2014 6:43 am    Post subject: Reply with quote

If you want to start X by itself you need to emerge the whole thing.
Code:

emerge -av xorg-x11


If you are just going to run gnome, its not needed. However it just takes up a bit of disk space it wont hurt anything to install the full X11.
_________________
CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go"
Back to top
View user's profile Send private message
Bandion
n00b
n00b


Joined: 15 Aug 2014
Posts: 11

PostPosted: Sat Aug 16, 2014 2:17 pm    Post subject: Reply with quote

It was Gnome 3 I was tying to install. I have no issues shelving that for something else.

I have tried emerging Xfce previously and was unable to get that to work as well, so ditched it and went back to Gnome 3
I will go back to it and try again

I have emerged X, and it does run, but only brings me to a black screen.. Will do some searching for that...



john_deaux:
Running "emerge -avuND @world" is what led me to installing Genkernal-next. Everything is up to date

eccerr0r:
My profile is set for Gnome/systemd
[3] default/linux/amd64/13.0/desktop
[4] default/linux/amd64/13.0/desktop/gnome
[5] default/linux/amd64/13.0/desktop/gnome/systemd *
[6] default/linux/amd64/13.0/desktop/kde
[7] default/linux/amd64/13.0/desktop/kde/systemd

This is what a co-worker told me to select... would 4 be better? or should I just go with 3?

Thanks
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4104
Location: USA

PostPosted: Sat Aug 16, 2014 2:48 pm    Post subject: Reply with quote

Yes having the systemd profile would be the easiest way to get Gnome3 working.

When you say you have a black screen, do you see a mouse cursor or not? (and you have gnome-session in your .xinitrc?)

Did the "gnome-session" command get installed?

If you're using 'startx' to (eventually) start gnome, you may need to also run
Code:
# tell gnome to use gnome menus
export XDG_MENU_PREFIX=gnome-
in your ~/.xinitrc else your menus may not show up. This may be a historical problem though... but gnome-session should be the last line in your user .xinitrc.

Are you planning on using gdm or other graphical login manager? Perhaps it's already installed. If you're running systemd, does running

Code:
systemctl start gdm


do anything?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
Bandion
n00b
n00b


Joined: 15 Aug 2014
Posts: 11

PostPosted: Sat Aug 16, 2014 10:11 pm    Post subject: Reply with quote

No, the gnome-session was not in my .xinitrc file.
I added it as the last line

The user I created using useradd -m carl1 does not even have a .xinitrc
Code:

carl1@Gentoo-CF /root $ ls -al ~
total 32
drwxr-xr-x 4 carl1 carl1 4096 Aug 16 09:20 .
drwxr-xr-x 4 root  root  4096 Aug 15 16:41 ..
-rw------- 1 carl1 carl1  150 Aug 16 17:12 .bash_history
-rw-r--r-- 1 carl1 carl1  127 Jul 23 22:44 .bash_logout
-rw-r--r-- 1 carl1 carl1  193 Jul 23 22:44 .bash_profile
-rw-r--r-- 1 carl1 carl1  551 Jul 23 22:44 .bashrc
drwx------ 3 carl1 carl1 4096 Aug 15 16:41 .dbus
drwx------ 2 carl1 carl1 4096 Jul 23 23:46 .ssh
-rw------- 1 carl1 carl1    0 Aug 16 09:20 .Xauthority


Not sure if copying the .xinitrc from user carl would work.
Code:

carl@Gentoo-CF /root $ cat ~/.xinitrc
# $Id: ~/.xinitrc, 2012/11/22 09:48:07 -tclover Exp $
#dbus-launch --sh-syntax --exit-with-session nm-applet --sm-disable &
#dbus-launch --sh-syntax --exit-with-session gcm-session &
#xcalib -gc 1.0 -b 0.0 -co 100.0 ~/.icc/sRGB_v4_ICC_preference.icc
#/usr/libexec/polkit-gnome-authentication-agent-1 &
ladi-system-tray 1>/dev/null 2>&1 &
unclutter -idle 8 -noevents &
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
xset s off
xset fp+ /usr/share/fonts/TTF-FD/
xset fp+ /usr/share/fonts/artwiz-latin1
xset fp+ /usr/share/fonts/artwiz-aleczapka-en
xset fp+ /usr/share/fonts/terminus
xset fp rehash
xrdb -load ~/.Xresources
setxkbmap fr
#xrdb -merge ~/.Xdefaults
#[[ -f ~/.xcolors/sj-bright ]] && xrdb -merge ~/.xcolors/sj-bright
urxvtd -q -o -f &
case $(tty | cut -b9-) in
        1) exec ck-launch-session dbus-launch --sh-syntax
--exit-with-session enlightenment_start;;
        2) exec ck-launch-session dbus-launch --sh-syntax
--exit-with-session lxsession          ;;
        3) exec ck-launch-session dbus-launch --sh-syntax
--exit-with-session openbox-session    ;;
esac
# vim:fenc=utf-8:ci:pi:sts=0:sw=4:ts=4:
gnome-session

I also ran the following:
Code:

export XDG_MENU_PREFIX=gnome-


when running the command:
Code:

systemctl start gdm
Failed to get D-Bus connection: Unknown error -1

Oh when running X or startx, i get a black screen with no cursor...
user carl
X I need to killall X to break
startx dies with the dbus error posted previously

user carl1
X I need to killall X to break
startx dies with:
Code:
Loading extension GLX
/etc/X11/xinit/xinitrc: line 59: twm: command not found
/etc/X11/xinit/xinitrc: line 60: xclock: command not found
/etc/X11/xinit/xinitrc: line 61: xterm: command not found
/etc/X11/xinit/xinitrc: line 63: exec: xterm: not found
/etc/X11/xinit/xinitrc: line 62: xterm: command not found
xinit: connection to X server lost

waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.
Back to top
View user's profile Send private message
Bandion
n00b
n00b


Joined: 15 Aug 2014
Posts: 11

PostPosted: Sat Aug 16, 2014 10:13 pm    Post subject: Reply with quote

I will be out of town until the 26th, so my late replys are only due to that..
As soon as I am back, I will be back and running any commands suggested

THanks

Carl
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4104
Location: USA

PostPosted: Sun Aug 17, 2014 1:25 am    Post subject: Reply with quote

This is a mishmash of questions and answers ... apologies, as there's a lot of things going on here.

I'm not sure where you got the .xinitrc you posted... that seems to be something someone lent you. All you need in your ~/.xinitrc are those two lines:

Code:
export XDG_MENU_PREFIX=gnome-
gnome-session


The way .xinitrc should work is that all the lines in the file must finish ASAP - meaning either they should be setting environment variables or running something asynchronously with "&" ...
The last executed line in the file should stop execution of .xinitrc until that program itself ends - and that tells the X server it should finally quit.

When X starts and blacks the screen, it's not a good sign that you don't see the mouse cursor. Does your monitor actually report a video mode or did it go to sleep?

As a sanity check, if you run "gnome-session" at the command line, does it give "command not found" or does it run something and complain X isn't started? This is just to verify that a portion of the core of Gnome got installed.

Now the error you get when you run "systemctl start gdm" is indicating that though you have systemd installed, systemd isn't running. To run systemd you'll need to check out the systemd guide - mostly you need to make sure that you specify init=/usr/lib/systemd/systemd in your bootloader. Make sure you keep another boot entry with the existing configuration in case this setting doesn't let you boot the computer.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
poncho
n00b
n00b


Joined: 06 Mar 2011
Posts: 63

PostPosted: Sun Aug 17, 2014 3:14 pm    Post subject: Reply with quote

Sulman wrote:
can't hurt to do this:
Code:
usermod -a -G video,wheel,users,audio carl1


Don't use the audio group if you want to use ConsoleKit/Systemd to manage the permissions.
see http://wiki.gentoo.org/wiki/PulseAudio#Permissions
Back to top
View user's profile Send private message
Bandion
n00b
n00b


Joined: 15 Aug 2014
Posts: 11

PostPosted: Tue Aug 26, 2014 2:36 pm    Post subject: Reply with quote

So for the user Carl1 I created the .xinitrc file with just the two lines below, and chmod it to 777

I ran X, and it just did a black screen, no cursor. Verified that the monitor did not go into sleep mode.

Ran gnome-session and received the following error:

Code:

carl1@Gentoo-CF ~ $ gnome-session
gnome-session[927]: WARNING: Could not connect to ConsoleKit: Unable to lookup session information for process '927'
gnome-session[927]: WARNING: Unable to find required component 'gnome-shell'

** (gnome-session-failed:939): WARNING **: Cannot open display:


Code:
carl1@Gentoo-CF ~ $ equery list '*onsole*'
 * Searching for *onsole* ...
[IP-] [  ] sys-auth/consolekit-0.4.6:0



Would it be due to the difference in Caps in the name?

Going over the SystemD installation documentation now...

Thanks
Carl


eccerr0r wrote:
This is a mishmash of questions and answers ... apologies, as there's a lot of things going on here.

I'm not sure where you got the .xinitrc you posted... that seems to be something someone lent you. All you need in your ~/.xinitrc are those two lines:

Code:
export XDG_MENU_PREFIX=gnome-
gnome-session


The way .xinitrc should work is that all the lines in the file must finish ASAP - meaning either they should be setting environment variables or running something asynchronously with "&" ...
The last executed line in the file should stop execution of .xinitrc until that program itself ends - and that tells the X server it should finally quit.

When X starts and blacks the screen, it's not a good sign that you don't see the mouse cursor. Does your monitor actually report a video mode or did it go to sleep?

As a sanity check, if you run "gnome-session" at the command line, does it give "command not found" or does it run something and complain X isn't started? This is just to verify that a portion of the core of Gnome got installed.

Now the error you get when you run "systemctl start gdm" is indicating that though you have systemd installed, systemd isn't running. To run systemd you'll need to check out the systemd guide - mostly you need to make sure that you specify init=/usr/lib/systemd/systemd in your bootloader. Make sure you keep another boot entry with the existing configuration in case this setting doesn't let you boot the computer.
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4104
Location: USA

PostPosted: Tue Aug 26, 2014 3:11 pm    Post subject: Reply with quote

It's a bit alarming that the screen blacks out with no cursor, will have to see why your X server is blacking out. Do you have "vte2_90" installed or "gnome-terminal" (or if you have xterm installed)? Try running one of these in your .xinitrc instead of gnome-session and see if you get a terminal on your X session, again having it as the only thing in your .xinitrc.

What graphics adaptor and how did you set up your graphics? What machine do you have? Is it a laptop? Does the external monitor port work?

As an aside, what happens if you try to run gnome-shell? This is probably not important yet as the X11 problem is a bigger issue.

I'd not look into the consolekit issue just yet, but if you are using systemd's consolekit, you can try running "loginctl" and see if systemd's consolekit is doing anything. If you're using the ConsoleKit package try "ck-list-sessions" for something similar.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
Bandion
n00b
n00b


Joined: 15 Aug 2014
Posts: 11

PostPosted: Tue Aug 26, 2014 3:20 pm    Post subject: Reply with quote

Looks like I have the vte2_90 installed

Code:
carl1@Gentoo-CF ~ $ equery list '*vte*'
 * Searching for *vte* ...
[IP-] [  ] x11-libs/vte-0.36.3:2.90
carl1@Gentoo-CF ~ $ equery list '*ome-termina*'
!!! No installed packages matching '*ome-termina*'
 * Searching for *ome-termina* ...
carl1@Gentoo-CF ~ $ equery list '*xterm*'
!!! No installed packages matching '*xterm*'
 * Searching for *xterm* ...


To setup the graphics, I did nothing special, just followed the documentation on setting up Gnome3 it is a Nvidia GeForce 210
It is a server board with xeon processor

tried it with vte2_90
Code:
carl1@Gentoo-CF ~ $ cat .xinitrc
export XDG_MENU_PREFIX=gnome-
#gnome-session
vte2_90


Same black screen
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4104
Location: USA

PostPosted: Tue Aug 26, 2014 3:30 pm    Post subject: Reply with quote

If you log in remotely, can you run

DISPLAY=:0 vte2_90

and would anything pop up on the display after it's in the "black screen" state?

Are you using nvidia-drivers (closed source) or nouveau (open source) drivers?

There is a log file at /var/log/Xorg.0.log, may need to post that to see if there are any hints at why it didn't completely start up. If you run X and if it starts up completely, it should at least give you a mouse cursor.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
Bandion
n00b
n00b


Joined: 15 Aug 2014
Posts: 11

PostPosted: Tue Aug 26, 2014 3:50 pm    Post subject: Reply with quote

For the drivers, it is the open source nouveau

with X running, no cursor
sshing in and running the Display command, I get a command prompt on the screen (dedicated monitor) and I also get the X cursor


Xorg.0.log
Code:
carl1@Gentoo-CF ~ $ tail -f /var/log/Xorg.0.log
[948170.900] (**) Option "xkb_model" "pc104"
[948170.900] (**) Option "xkb_layout" "us"
[948170.901] (II) config/udev: Adding input device PC Speaker (/dev/input/event6                         )
[948170.901] (II) No input driver specified, ignoring this device.
[948170.901] (II) This device may have been added with another device file.
[948170.903] (EE) FBDEV(0): FBIOBLANK: Invalid argument
[948771.013] (EE) FBDEV(0): FBIOBLANK: Invalid argument
[948771.013] (EE) FBDEV(0): FBIOBLANK: Invalid argument
[948771.014] (EE) FBDEV(0): FBIOBLANK: Invalid argument
[949460.077] (EE) FBDEV(0): FBIOBLANK: Invalid argument
[949490.810] (II) evdev: CHICONY USB NetVista Full Width Keyboard: Close
[949490.810] (II) UnloadModule: "evdev"
[949490.810] (II) evdev: American Megatrends Inc. Virtual Keyboard and Mouse: Cl                         ose
[949490.810] (II) UnloadModule: "evdev"
[949490.810] (II) evdev: USB Optical Mouse: Close
[949490.810] (II) UnloadModule: "evdev"
[949490.810] (II) evdev: Sleep Button: Close
[949490.810] (II) UnloadModule: "evdev"
[949490.810] (II) evdev: Power Button: Close
[949490.810] (II) UnloadModule: "evdev"
[949490.893] (EE) Server terminated successfully (0). Closing log file.
Back to top
View user's profile Send private message
Bandion
n00b
n00b


Joined: 15 Aug 2014
Posts: 11

PostPosted: Tue Aug 26, 2014 6:52 pm    Post subject: Reply with quote

I had stepped away from my desk and a co-worker sat down and emerged gnome, it completed successfully

my .xinitrc
Code:
carl1@Gentoo-CF ~ $ cat ~/.xinitrc
export XDG_MENU_PREFIX=gnome-
exec gnome-session



The gnome desktop is now working fine ...

No idea what he did differently than I did.
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4104
Location: USA

PostPosted: Wed Aug 27, 2014 2:48 am    Post subject: Reply with quote

Yes, just wanted to make sure all the pieces are working before assuming things. Showing that terminal prompt proves without a doubt the X server is working where a black screen with no cursor does not... Now it would be interesting to know exactly what went wrong - most likely it choosing not to use your .xinitrc for whatever reason (or was it switched to using gdm to login?)

Congratulations on a working install!
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
Bandion
n00b
n00b


Joined: 15 Aug 2014
Posts: 11

PostPosted: Wed Aug 27, 2014 12:21 pm    Post subject: Reply with quote

I would assume it is still using the xinitrc, but either way it is working....
any thoughts why X still shows the black screen?
But Gnome is working...
Appreciate your help..

Carl
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 4104
Location: USA

PostPosted: Wed Aug 27, 2014 3:08 pm    Post subject: Reply with quote

Over the years the default screen appears to have changed but surprised the mouse cursor has been 'hidden' in a no-client situation.
The default screen usually is that well known stipple pattern which really should be kept for nostalgic and debug purposes...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 186
Location: Estonia, Tallinn

PostPosted: Tue Sep 02, 2014 6:28 am    Post subject: Reply with quote

Using .xinitrc is often a bad idea. Better to use sessions, which for command line startx can be chosen with XSESSION environment variable (either one-off or in env.d for a default). In a login manager like gdm or lightdm those are exposed as the session choices. Stuff like "exec gnome-session" in .xinitrc can not work properly, because then your gnome-session does not run inside a dbus user session for example; you'd need "dbus-launch --exit-with-session -- gnome-session" or something like that. But session files take care of all that for you, but the presence of .xinitrc overrides a large part of it.
_________________
GNOME team lead; GStreamer
Back to top
View user's profile Send private message
ZeTaKa
n00b
n00b


Joined: 26 Jan 2004
Posts: 24
Location: /home/zK

PostPosted: Tue Sep 09, 2014 5:59 am    Post subject: Reply with quote

I have exactly the same problem. I followed this http://wiki.gentoo.org/wiki/Systemd/Installing_Gnome3_from_scratch manual and have the same problems. Black screen, and when appears somethings its something its wrong....

I used gentoo some much time ago, but now, every year i try to make a gentoo environment and i always fails. And the most part of the time, i have no time for try to solve all the issues of the install and back to other distros.

I can understand if i use ~amd64 branch for everything, some times things can fail, but my only package in unstable its the kernel, for i want tuxonice kernel. Gnome 3 works perfectly on other distros. But i want gnome3 on gentoo.

Im not quite sure, buts sure its a stupid idea. Maybe its needed activate hald and dbus with the system? In the how to don't say anything, but maybe its that...

And i have gdm on the start but just, it don't start
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum