Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[solved]X server Configuration

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
64 posts
  • 1
  • 2
  • 3
  • Next
Author
Message
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

[solved]X server Configuration

  • Quote

Post by haleh » Mon Jul 09, 2012 2:25 pm

I want to install Desktop enviroment ,during X server Configuration,I face a problem ,my eselect kernel list is :

Code: Select all

#eselect kernel list
Available kernel symlink targets :
     [1]        linux-3.2.21-gentoo *
when I run this commad :

Code: Select all

#ls /boot
linux-2.6.34-gentoo-r1
what can I do now ???
Last edited by haleh on Wed Jul 25, 2012 8:45 pm, edited 1 time in total.
Top
BillWho
Veteran
Veteran
User avatar
Posts: 1600
Joined: Sat Mar 03, 2012 1:08 am
Location: US

  • Quote

Post by BillWho » Mon Jul 09, 2012 2:39 pm

haleh,

When you did ls /boot were you chrooted to gentoo from live media :?: If so then that's normal.
OOPS :oops: Disregard that

Are you chrooted to gentoo or did you boot gentoo :?: If you booted gentoo then you probably are not mounting /boot
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Mon Jul 09, 2012 2:49 pm

I was in the root login !!!!was it normal ????
Top
BillWho
Veteran
Veteran
User avatar
Posts: 1600
Joined: Sat Mar 03, 2012 1:08 am
Location: US

  • Quote

Post by BillWho » Mon Jul 09, 2012 3:16 pm

haleh,

OK, what's happening is /boot is not automatically mounted at boot. Before copying bzimage there, mount /boot first

If you don't want to fall in that trap again, remove noauto from the fstab file for the /boot line.
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Mon Jul 09, 2012 3:43 pm

I do the following steps in http://www.gentoo.org/doc/en/xorg-config.xml but when I run $startx it will say command not found ,what is wrong ???? :? :) :roll:
Top
BillWho
Veteran
Veteran
User avatar
Posts: 1600
Joined: Sat Mar 03, 2012 1:08 am
Location: US

  • Quote

Post by BillWho » Mon Jul 09, 2012 4:55 pm

haleh,

Going to need some info - paste these back:

Code: Select all

uname -a

ls -l /boot

ls -l /usr/bin/startx

cat /home/yourname/.xinitrc (change yourname to your login name)

cat /etc/fstab

eix -CcI x11-base
If you don't get anything from eix -CcI x11-base then

Code: Select all

emerge eix && eix-update
then try it again
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Tue Jul 10, 2012 8:37 am

Code: Select all

uname -a
Linux tux 3.2.21-gentoo #2 SMP sat July 7 15:01:25 local time zone must be set ---s ee zic m i686 Intel(R) core(TM) 2Duo CPU T5870 @ 2.00 GHZ Genuine Intel GNU/Linux

ls -l /boot
total 4820
-rw-r--r--1  root   root 4919664 July 9 18:31 Kernel-2.6.34-gentoo-r1

ls -l /usr/bin/startx
ls:/usr/bin/startx : No such file or directory

ls -l /home/root/.xinitrc
ls :/home/root/.xinitrc : No such file or directory
 
cat /etc/fstab 
/dev/sda4     /boot        ext2      noatime    1   2
/dev/sda6      /              ext3      noatime    0   1
/dev/sda5     none         swap       sw          0   0 
/dev/cdrom   /mnt/cdrom auto      noauto,ro 0  0 
/dev/fd0        /mnt/floppy  auto    noauto     0   0

emerge eix && eix-update 

eix -CcI x11-base
No match found
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Tue Jul 10, 2012 9:08 am

The guide you've mentioned is a bit incomplete.
(BTW, that '/dev/cdrom' line is a bit pointless, but that's a different issue)
The real question here is what will you be running within xorg-server ?
I suspect that "command not found" at the end of startx output was the correct and expected behavior.
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Tue Jul 10, 2012 11:54 am

This is exactly what I did !!

Code: Select all

Login :root

#cd /usr/src/linux
#make menuconfig
Device Drivers--->
Input device support -->
<*>Event interface

Device Drivers --->
Graphics support --->
support for frame buffer devices --->
(Disabling the drivers)
console display driver support --->
<*>frame buffer console support

#make && make module_install
#cp arch/x86/boot/bzImage /boot/kernel-2.6.34-gentoo-r1

#eselect kernel list
[1]     linux-3.2.21-gentoo

#nano -w /etc/make.conf
INPUT_DEVICES="evdev synaptics"
VIDEO_CARD="nouveau"

#echo "x11-base/xorg-server udev" >> /etc/portage/package.use
#emerge xorg-server

#env-update
#source /etc/profile

$startx

I know that I should have made a mistake here in codes but what is wrong????
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Tue Jul 10, 2012 12:43 pm

Let me repeat myself:
The real question here is what will you be running within xorg-server ?
I suspect that "command not found" at the end of startx output was the correct and expected behavior.

Full output of startx or a pastebin of xorg log could help in making sure that's the case.
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Tue Jul 10, 2012 1:21 pm

VoidMage wrote:Let me repeat myself:
The real question here is what will you be running within xorg-server ?
I suspect that "command not found" at the end of startx output was the correct and expected behavior.

Full output of startx or a pastebin of xorg log could help in making sure that's the case.
I am sorry but I don't understand what you are saying, :oops:
I want to install Gnome,and now I am configuring X server but as I am new and I don't have experience I will face problems :D :) :?
Full output of $startx :-bash :startx :command not found !!
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Tue Jul 10, 2012 2:06 pm

:roll: Honestly...
First of all, x11-apps/xinit.
Second, above will change very little, as xorg-server is for running its clients and most likely you didn't set up any.

At minimum, it should be a window manager (in Gnome that's IIRC metacity), but most likely you want at least a session manager (so, gnome-session).
Top
BillWho
Veteran
Veteran
User avatar
Posts: 1600
Joined: Sat Mar 03, 2012 1:08 am
Location: US

  • Quote

Post by BillWho » Tue Jul 10, 2012 2:08 pm

haleh,

A couple of things - there's a mismatch of kernels. Check the times and version
uname -a
Linux tux 3.2.21-gentoo #2 SMP sat July 7 15:01:25 local time zone must be set ---s ee zic m i686 Intel(R) core(TM) 2Duo CPU T5870 @ 2.00 GHZ Genuine Intel GNU/Linux

ls -l /boot
total 4820
-rw-r--r--1 root root 4919664 July 9 18:31 Kernel-2.6.34-gentoo-r1
x11-base/xorg-server is not installed. You should follow this http://www.gentoo.org/doc/en/xorg-config.xml
ls -l /usr/bin/startx
ls:/usr/bin/startx : No such file or directory
Going through the above will tell you what to do to cure this
ls -l /home/root/.xinitrc
ls :/home/root/.xinitrc : No such file or directory
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Top
wcg
Guru
Guru
Posts: 588
Joined: Tue Jan 06, 2009 7:05 pm

  • Quote

Post by wcg » Tue Jul 10, 2012 2:18 pm

You might post the output of the mount command. Run it logged
in as root:

Code: Select all

[root's user prompt] mount
See what is mounted where with what mount options.
(All the "not founds" seem to indicate that partitions
are not mounted where you expect them to be.)
TIA
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Tue Jul 10, 2012 2:34 pm

BillWho wrote:haleh,

A couple of things - there's a mismatch of kernels. Check the times and version
uname -a
Linux tux 3.2.21-gentoo #2 SMP sat July 7 15:01:25 local time zone must be set ---s ee zic m i686 Intel(R) core(TM) 2Duo CPU T5870 @ 2.00 GHZ Genuine Intel GNU/Linux

ls -l /boot
total 4820
-rw-r--r--1 root root 4919664 July 9 18:31 Kernel-2.6.34-gentoo-r1
x11-base/xorg-server is not installed. You should follow this http://www.gentoo.org/doc/en/xorg-config.xml
ls -l /usr/bin/startx
ls:/usr/bin/startx : No such file or directory
Going through the above will tell you what to do to cure this
ls -l /home/root/.xinitrc
ls :/home/root/.xinitrc : No such file or directory
Bill : I wonder about mismatch of them too,but I don't know why this is like this !! :? when I run your command I understand that it is not installed but I followed http://www.gentoo.org/doc/en/xorg-config.xml and I wrote in my previous post what commands did I run !!!!! :? I am very curious what did I wrong ??? :)
Top
BillWho
Veteran
Veteran
User avatar
Posts: 1600
Joined: Sat Mar 03, 2012 1:08 am
Location: US

  • Quote

Post by BillWho » Tue Jul 10, 2012 2:53 pm

Let's try this again since you've done several things:

ls -l /boot

ls -l /home

ls -l arch/x86/boot/bzImage

eselect profile show

eix -CcI x11-base
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Tue Jul 10, 2012 2:57 pm

Actually, a better check would be 'ls -l /usr/bin/X' as startx script is a part of xinit - while it's listed in the ebuild as a hard dep, it's (mostly) just for convenience sake.
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Tue Jul 10, 2012 3:50 pm

This is output:it seems nothing has changed :?

Code: Select all

#ls -l /boot
total 4676
-rw-r--r-- 1 root  root 4773072 July 10 15:45 Kernel-2.6.34-gentoo-r1

#ls -l /home 
total 4
drwxr-xr-x 3 tux tux 4096 Jul 8 21:28 tux

#ls -l arch/x86/boot/bzImage
ls:cannot access arch/x86/boot/bzImage :No such file or directory

#ls -l /usr/bin/X
ls:cannot access /usr/bin/X :No such file or directory

#eselect profile show
default/linux/x86/10.0.Desktop/gnome

#eix -CcI x11-base 
No matches found
:?
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Tue Jul 10, 2012 3:53 pm

VoidMage wrote::roll: Honestly...
First of all, x11-apps/xinit.
Second, above will change very little, as xorg-server is for running its clients and most likely you didn't set up any.

At minimum, it should be a window manager (in Gnome that's IIRC metacity), but most likely you want at least a session manager (so, gnome-session).
Yeah,you are right,I didn't setup any clients and about window manager ,I think that I should it install it after X server configuration ,AM I RIGHT????or not :?
Top
BillWho
Veteran
Veteran
User avatar
Posts: 1600
Joined: Sat Mar 03, 2012 1:08 am
Location: US

  • Quote

Post by BillWho » Tue Jul 10, 2012 4:03 pm

Sorry, my mistake with bzimage :oops:

Try

Code: Select all

ls -l /usr/src/linux/arch/x86/boot/bzImage
Also eix -CcI x11-base shows nothing - it should show

Code: Select all

gentoo 3.5.0-rc6 # eix -CcI x11-base 
[I] x11-base/xorg-drivers (1.12@06/10/2012): Meta package containing deps on all xorg drivers
[I] x11-base/xorg-server (1.12.2@07/04/2012): X.Org X servers
so

Code: Select all

emerge x11-base/xorg-server 
then paste back

Code: Select all

eix -CcI x11-base
when done

Another strange thing is your fstab shows a separate /boot partition, but you don't show a lost+found directory :?
So paste back

Code: Select all

mount|column -t && blkid
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Tue Jul 10, 2012 4:18 pm

wcg wrote:You might post the output of the mount command. Run it logged
in as root:

Code: Select all

[root's user prompt] mount
See what is mounted where with what mount options.
(All the "not founds" seem to indicate that partitions
are not mounted where you expect them to be.)
it is just for you :D :) ;)

Code: Select all

/rootfs on /type rootfs (rw)
/dev/root on /type ext3 (rw,noatime,errors=continue,barrier=1,data=writeback)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on/run type tmpfs(rw,nosuid,nodev,noexect,relatime,size=1024k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs(rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs(rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
cpuset on /sys/fs/cgroup/cpuset type cgroup(rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup(rw,nosuid,nodev,noexec,relatie,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup(rw,nosuid,nodev,noexec,relatime,cpuacct)
freezer on /sys/fs/cgroup/freezer type cgroup(rw,nosuid,nodev,noexec,relatime,freezer)
udev on /dev type dev tmpfs(rw,nosuid,relatime,size=10240k,nr_inodes=1218325,mode=755)
devpts on /dev/pts type devpts(rw,nosuid,noexec,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
usbfs on /proc/bus/usb type usbfs(rw,noexec,nosuid,devmode=0664,devgid=85)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
:roll:
Last edited by haleh on Thu Jul 12, 2012 7:14 pm, edited 1 time in total.
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Tue Jul 10, 2012 4:21 pm

BillWho wrote:Sorry, my mistake with bzimage :oops:

Try

Code: Select all

ls -l /usr/src/linux/arch/x86/boot/bzImage
Also eix -CcI x11-base shows nothing - it should show

Code: Select all

gentoo 3.5.0-rc6 # eix -CcI x11-base 
[I] x11-base/xorg-drivers (1.12@06/10/2012): Meta package containing deps on all xorg drivers
[I] x11-base/xorg-server (1.12.2@07/04/2012): X.Org X servers
so

Code: Select all

emerge x11-base/xorg-server 
then paste back

Code: Select all

eix -CcI x11-base
when done

Another strange thing is your fstab shows a separate /boot partition, but you don't show a lost+found directory :?
So paste back

Code: Select all

mount|column -t && blkid
:) :? yeah when I was in chrooted livecd environment ,it showed lost+found because my boot partition is separated but now it doesn't show :(
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Tue Jul 10, 2012 4:59 pm

Code: Select all

#ls -l /usr/src/linux/arch/x86/boot/bzImage
-rw-r--r-- 1 root root 477372 jul 10 15:44 /usr/src/linux/arch/x86/boot/bzImage
#emerge x11-base/xorg-server
it installed without any error the same as other times
#eix -cCI x11-base 
no matches found 
Top
BillWho
Veteran
Veteran
User avatar
Posts: 1600
Joined: Sat Mar 03, 2012 1:08 am
Location: US

  • Quote

Post by BillWho » Tue Jul 10, 2012 5:04 pm

haleh,

Looking through all the info in this thread things are getting more and more confusing :( It doesn't appear that you're chrooting correctly. The output of mount for wcg doesn't show /dev/sda6 mounted which is your / (root) partition :?

What live meda are you using :?: and whatever you're using chroot to gentoo like this:

Code: Select all

mkdir /mnt/gentoo
mkdir /mnt/gentoo/boot

mount /dev/sda6 /mnt/gentoo
mount /dev/sda4 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="\[\033[1;33m\]chroot to ->\[\033[1;31m\](gentoo) #\[\e[0m\] "
I can't tell if you have a separate /home partition or not so just start with /boot and /.

After you're chrooted paste back

Code: Select all

mount|column -t && blkid
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Top
haleh
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Fri Jul 06, 2012 12:06 pm

  • Quote

Post by haleh » Tue Jul 10, 2012 5:35 pm

BillWho wrote:haleh,

Looking through all the info in this thread things are getting more and more confusing :( It doesn't appear that you're chrooting correctly. The output of mount for wcg doesn't show /dev/sda6 mounted which is your / (root) partition :?

What live meda are you using :?: and whatever you're using chroot to gentoo like this:

Code: Select all

mkdir /mnt/gentoo
mkdir /mnt/gentoo/boot

mount /dev/sda6 /mnt/gentoo
mount /dev/sda4 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="\[\033[1;33m\]chroot to ->\[\033[1;31m\](gentoo) #\[\e[0m\] "

I can't tell if you have a separate /home partition or not so just start with /boot and /.

After you're chrooted paste back

Code: Select all

mount|column -t && blkid

Hey,Bill
I am sorry , :oops: my mother will kill me because there are about 10 h I am sitting in front of my pc ,today it is my turn to cook :D ,and I didn't ,I will continue tomorrow see you later
Top
Post Reply

64 posts
  • 1
  • 2
  • 3
  • Next

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy