| View previous topic :: View next topic |
| Author |
Message |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Mon Jul 09, 2012 2:25 pm Post subject: [solved]X server Configuration |
|
|
I want to install Desktop enviroment ,during X server Configuration,I face a problem ,my eselect kernel list is :
| Code: | #eselect kernel list
Available kernel symlink targets :
[1] linux-3.2.21-gentoo * |
when I run this commad :
| Code: | #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 |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Mon Jul 09, 2012 2:39 pm Post subject: |
|
|
haleh,
When you did ls /boot were you chrooted to gentoo from live media If so then that's normal.
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
Since installing gentoo, my life has become one long emerge  |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Mon Jul 09, 2012 2:49 pm Post subject: |
|
|
| I was in the root login !!!!was it normal ???? |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Mon Jul 09, 2012 3:16 pm Post subject: |
|
|
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
Since installing gentoo, my life has become one long emerge  |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Mon Jul 09, 2012 3:43 pm Post subject: |
|
|
I do the following steps in [url]http://www.gentoo.org/doc/en/xorg-config.xml [/url] but when I run $startx it will say command not found ,what is wrong ????  |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Mon Jul 09, 2012 4:55 pm Post subject: |
|
|
haleh,
Going to need some info - paste these back:
| Code: | 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: | | emerge eix && eix-update | then try it again _________________ Good luck
Since installing gentoo, my life has become one long emerge  |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Tue Jul 10, 2012 8:37 am Post subject: |
|
|
| Code: | 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
|
|
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4812
|
Posted: Tue Jul 10, 2012 9:08 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Tue Jul 10, 2012 11:54 am Post subject: |
|
|
This is exactly what I did !!
| Code: | 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???? |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4812
|
Posted: Tue Jul 10, 2012 12:43 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Tue Jul 10, 2012 1:21 pm Post subject: |
|
|
| 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,
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
Full output of $startx :-bash :startx :command not found !! |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4812
|
Posted: Tue Jul 10, 2012 2:06 pm Post subject: |
|
|
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). |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Tue Jul 10, 2012 2:08 pm Post subject: |
|
|
haleh,
A couple of things - there's a mismatch of kernels. Check the times and version
| Quote: | 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
| Quote: | 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
| Quote: | ls -l /home/root/.xinitrc
ls :/home/root/.xinitrc : No such file or directory |
_________________ Good luck
Since installing gentoo, my life has become one long emerge  |
|
| Back to top |
|
 |
wcg Guru

Joined: 06 Jan 2009 Posts: 557
|
Posted: Tue Jul 10, 2012 2:18 pm Post subject: |
|
|
You might post the output of the mount command. Run it logged
in as root:
| Code: |
[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 |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Tue Jul 10, 2012 2:34 pm Post subject: |
|
|
| BillWho wrote: | haleh,
A couple of things - there's a mismatch of kernels. Check the times and version
| Quote: | 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
| Quote: | 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
| Quote: | 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 ???  |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Tue Jul 10, 2012 2:53 pm Post subject: |
|
|
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
Since installing gentoo, my life has become one long emerge  |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4812
|
Posted: Tue Jul 10, 2012 2:57 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Tue Jul 10, 2012 3:50 pm Post subject: |
|
|
This is output:it seems nothing has changed
| Code: | #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 |
 |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Tue Jul 10, 2012 3:53 pm Post subject: |
|
|
| VoidMage wrote: | 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  |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Tue Jul 10, 2012 4:03 pm Post subject: |
|
|
Sorry, my mistake with bzimage
Try | Code: | | ls -l /usr/src/linux/arch/x86/boot/bzImage |
Also eix -CcI x11-base shows nothing - it should show
| Code: | 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: | | emerge x11-base/xorg-server |
then paste back 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: | | mount|column -t && blkid |
_________________ Good luck
Since installing gentoo, my life has become one long emerge  |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Tue Jul 10, 2012 4:18 pm Post subject: |
|
|
| wcg wrote: | You might post the output of the mount command. Run it logged
in as root:
| Code: |
[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
| Code: |
/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)
|

Last edited by haleh on Thu Jul 12, 2012 7:14 pm; edited 1 time in total |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Tue Jul 10, 2012 4:21 pm Post subject: |
|
|
| BillWho wrote: | Sorry, my mistake with bzimage
Try | Code: | | ls -l /usr/src/linux/arch/x86/boot/bzImage |
Also eix -CcI x11-base shows nothing - it should show
| Code: | 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: | | emerge x11-base/xorg-server |
then paste back 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: | | 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  |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Tue Jul 10, 2012 4:59 pm Post subject: |
|
|
| Code: | #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
|
|
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Tue Jul 10, 2012 5:04 pm Post subject: |
|
|
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: | 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: | | mount|column -t && blkid |
_________________ Good luck
Since installing gentoo, my life has become one long emerge  |
|
| Back to top |
|
 |
haleh Tux's lil' helper


Joined: 06 Jul 2012 Posts: 127
|
Posted: Tue Jul 10, 2012 5:35 pm Post subject: |
|
|
| 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: | 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: | | mount|column -t && blkid |
|
Hey,Bill
I am sorry , 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 ,and I didn't ,I will continue tomorrow see you later |
|
| Back to top |
|
 |
|