Re: Fail to start KDE and Gnome - further test
--- Stephen Liu <[EMAIL PROTECTED]> wrote: > > --- Armin Pirkovitsch <[EMAIL PROTECTED]> wrote: > > > Stephen Liu wrote: > > [...] > > > > > > Something strange happened here. If copying "xorg.conf.new" on > > > /etc/X11/ and renaming it as "xorg.conf". I can't start X, the HD > > only > > > turning. Now I don't have /etc/X11/xorg.conf. I can start KDE > > (not > > > Gnome). I don't know which "xorg.conf" I am now running. > > > > just have a look at /var/log/Xorg.0.log - it will tell you which > > config > > file is used > > Hi Armin, > > > # cat /var/log/Xorg.0.log | grep xorg > (**) Option "XkbRules" "xorg" > (**) : XkbRules: "xorg" > > > # cat /var/log/Xorg.0.log | grep conf > Markers: (--) probed, (**) from config file, (==) default setting, > (EE) Unable to locate/open config file > Running "/usr/X11R6/bin/getconfig -X 6090 -I > /etc/X11,/usr/X11R6/etc/X11,/usr/X11R6/lib/modules,/usr/X > > 11R6/lib/X11/getconfig -v 0x10de -d 0x01df -r 0xa1 -s 0x1043 > -b 0x81f3 -c 0x0300" > (==) Using default built-in configuration (53 lines) > (==) --- Start of built-in configuration --- > (==) --- End of built-in configuration --- > Using the default mouse configuration. > Using the default keyboard configuration. > > Would it be "getconfig"? Why I'm not allowed to copy > /root/xorg.conf.ne /etc/X11/xorg and run xorg.conf there? > > Unfortunataely xorg.0.log is a big file. I have no idea where to > look > at the error message on running xorg.conf. Any suggestion? TIA > > > B.R. > satimis Hi Armin and folks, I made further test as follow; # cp /root/xorg.conf.new /etc/X11/xorg.conf Hard reboot X = [Ctrl]+[Alt]+[Back Space] exited to runlevel 3 Login : satimis Password: xxx $ startx KDE started with color looking strangely and finally PC hung. Hard reboot and removed xorg.conf # cat /var/log/Xorg.0.log . FreeFontPath:FPE "/usr/XR11R6/lib/X11/Fonts/misc/" refcount is 2. should be 1: fixing * end * Any advice how to fix this problem. TIA B.R. Stephen Liu Send instant messages to your online friends http://uk.messenger.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Fail to start KDE and Gnome
--- Armin Pirkovitsch <[EMAIL PROTECTED]> wrote: > Stephen Liu wrote: > [...] > > > > Something strange happened here. If copying "xorg.conf.new" on > > /etc/X11/ and renaming it as "xorg.conf". I can't start X, the HD > only > > turning. Now I don't have /etc/X11/xorg.conf. I can start KDE > (not > > Gnome). I don't know which "xorg.conf" I am now running. > > just have a look at /var/log/Xorg.0.log - it will tell you which > config > file is used Hi Armin, # cat /var/log/Xorg.0.log | grep xorg (**) Option "XkbRules" "xorg" (**) : XkbRules: "xorg" # cat /var/log/Xorg.0.log | grep conf Markers: (--) probed, (**) from config file, (==) default setting, (EE) Unable to locate/open config file Running "/usr/X11R6/bin/getconfig -X 6090 -I /etc/X11,/usr/X11R6/etc/X11,/usr/X11R6/lib/modules,/usr/X 11R6/lib/X11/getconfig -v 0x10de -d 0x01df -r 0xa1 -s 0x1043 -b 0x81f3 -c 0x0300" (==) Using default built-in configuration (53 lines) (==) --- Start of built-in configuration --- (==) --- End of built-in configuration --- Using the default mouse configuration. Using the default keyboard configuration. Would it be "getconfig"? Why I'm not allowed to copy /root/xorg.conf.ne /etc/X11/xorg and run xorg.conf there? Unfortunataely xorg.0.log is a big file. I have no idea where to look at the error message on running xorg.conf. Any suggestion? TIA B.R. satimis Send instant messages to your online friends http://uk.messenger.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Fail to start KDE and Gnome
Stephen Liu wrote: [...] > > Something strange happened here. If copying "xorg.conf.new" on > /etc/X11/ and renaming it as "xorg.conf". I can't start X, the HD only > turning. Now I don't have /etc/X11/xorg.conf. I can start KDE (not > Gnome). I don't know which "xorg.conf" I am now running. just have a look at /var/log/Xorg.0.log - it will tell you which config file is used > > I can toggle resolution to increase font size on browser witn > [Ctrl]+[Alt]+[+] -- Armin Pirkovitsch [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Fail to start KDE and Gnome
Hi Armin, Tks for your advice. --- Armin Pirkovitsch <[EMAIL PROTECTED]> wrote: > Stephen Liu wrote: > > Hi Jonathan Chen, > > > > Tks for your advice. > > > > > >> If you're going to use "startx" you will need a ${HOME}/.xinitrc > with > >> the following contents: > >> > >>#/bin/sh > >>startkde > >> > >> Make sure the file is 755 permissions. This will start up X with > KDE. > >> I would suggest you configure /etc/ttys to start up KDM instead of > >> using "startx" > > > > Your advice worked here starting KDE. > > > > What I'm trying to do is running; > > > > $ startkde > > will start K desktop > > > > $ gnome-session > > will start Gnome desktop > > This won't work since those are just the windowmanagers - you need an > X > server to start them. > However you could solve it with some small scripts: > > > start-gnome.sh: > > #!/bin/sh > rm -f ~/.xinitrc > ln -s ~/.xinitrc_gnome ~/.xinitrc > startx > > > > .xinitrc_gnome: > > #!/bin/sh > exec /usr/local/bin/gnome-session > > > > start-kde.sh: > > #!/bin/sh > rm -f ~/.xinitrc > ln -s ~/.xinitrc_kde ~/.xinitrc > startx > > > > .xinitrc_gnome: > > #!/bin/sh > exec /usr/local/bin/startkde > > > > make sure all of these files are executable (chmod 755 ) > the .xinitrc* files have to be in your home directory - > start-gnome.sh > and start-kde.sh in any directory in your PATH (eg. ~/bin if it's > only > for one user) Something strange happened here. If copying "xorg.conf.new" on /etc/X11/ and renaming it as "xorg.conf". I can't start X, the HD only turning. Now I don't have /etc/X11/xorg.conf. I can start KDE (not Gnome). I don't know which "xorg.conf" I am now running. I can toggle resolution to increase font size on browser witn [Ctrl]+[Alt]+[+] B.R. satimis Send instant messages to your online friends http://uk.messenger.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Fail to start KDE and Gnome
Stephen Liu wrote: > Hi folks, > > FreeBSD-6.2-amd64 > > This is a test, I insalled aprox >80% of the packages on Disc 2 > After installation completed PC rebooted to runlevel 3. Login as user > and run; > > $ startkde > warning: > Kpersonalizer : Cannot connect to Xserer > - repeated- > > $ gnome-session > (gnome-session 1968) gtk-Warning ** cannot open displayed > > $ startx > 3 xterm windows started. On xterm I can start KDE with a lot of > warning displayed on xterm windonw. But I can't start Gnome on xterm. > > I can start "firefox" on xterm. Now I'm posting on "firefox" browser. > > Please advise where I have to check fixing the problems. TIA There are two files that control which windowsmanager shall be used (depending on whether you use a login manager or just startx) One is called .xinitrc the other one .xsession - they are both in your home directory - create them (you can create one of them and symlink the other one) and add the start command to the file (full path) - and make sure they are set executable (chmod 755 ) eg. for kde: exec /usr/local/bin/startkde eg for gnome: exec /usr/local/bin/gnome-session -- Armin Pirkovitsch [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Fail to start KDE and Gnome
Stephen Liu wrote: > Hi Jonathan Chen, > > Tks for your advice. > > >> If you're going to use "startx" you will need a ${HOME}/.xinitrc with >> the following contents: >> >> #/bin/sh >> startkde >> >> Make sure the file is 755 permissions. This will start up X with KDE. >> I would suggest you configure /etc/ttys to start up KDM instead of >> using "startx" > > Your advice worked here starting KDE. > > What I'm trying to do is running; > > $ startkde > will start K desktop > > $ gnome-session > will start Gnome desktop This won't work since those are just the windowmanagers - you need an X server to start them. However you could solve it with some small scripts: start-gnome.sh: #!/bin/sh rm -f ~/.xinitrc ln -s ~/.xinitrc_gnome ~/.xinitrc startx .xinitrc_gnome: #!/bin/sh exec /usr/local/bin/gnome-session start-kde.sh: #!/bin/sh rm -f ~/.xinitrc ln -s ~/.xinitrc_kde ~/.xinitrc startx .xinitrc_gnome: #!/bin/sh exec /usr/local/bin/startkde make sure all of these files are executable (chmod 755 ) the .xinitrc* files have to be in your home directory - start-gnome.sh and start-kde.sh in any directory in your PATH (eg. ~/bin if it's only for one user) -- Armin Pirkovitsch [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Fail to start KDE and Gnome
Hi Jonathan, > I would suggest you configure /etc/ttys to start up KDM instead of > using "startx" I'm prepared running this box building servers for test. I don't expect the box booting straight to login page. X is only for communicating outside World. I'm not used to running elinks, the text broswer. Tks. B.R. satimis Send instant messages to your online friends http://uk.messenger.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Fail to start KDE and Gnome
Hi Jonathan Chen, Tks for your advice. > If you're going to use "startx" you will need a ${HOME}/.xinitrc with > the following contents: > > #/bin/sh > startkde > > Make sure the file is 755 permissions. This will start up X with KDE. > I would suggest you configure /etc/ttys to start up KDM instead of > using "startx" Your advice worked here starting KDE. What I'm trying to do is running; $ startkde will start K desktop $ gnome-session will start Gnome desktop Tks. B.R. Stephen Liu Send instant messages to your online friends http://uk.messenger.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Fail to start KDE and Gnome
On Tue, Feb 27, 2007 at 04:23:37PM +0800, Stephen Liu wrote: > Hi Armin, > > Tks for your advice. > > > There are two files that control which windowsmanager shall be used > > (depending on whether you use a login manager or just startx) > > One is called .xinitrc the other one .xsession - they are both in > > your > > home directory - create them (you can create one of them and symlink > > the > > other one) and add the start command to the file (full path) - and > > make > > sure they are set executable (chmod 755 ) > > eg. for kde: > > exec /usr/local/bin/startkde > > eg for gnome: > > exec /usr/local/bin/gnome-session > > Done as per your advice. > > $ cat ~/.xsession > exec /usr/local/bin/startkde > exec /usr/local/bin/gnome-session You didn't follow his instructions. You only need *ONE* of the lines in there - either "startkde" or "gnome-session". > $ ls -al ~/.xsession > -rwxr-xr-x 1 satimis wheel 62 Feb 27 07:59 /home/satimis/.xsession > > $ startkde You will need to use "startx" instead. -- Jonathan Chen <[EMAIL PROTECTED]> -- Do not take life too seriously. You will never get out of it alive. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Fail to start KDE and Gnome
On Tue, Feb 27, 2007 at 01:26:41PM +0800, Stephen Liu wrote: > Hi folks, > > FreeBSD-6.2-amd64 > > This is a test, I insalled aprox >80% of the packages on Disc 2 > After installation completed PC rebooted to runlevel 3. Login as user > and run; > > $ startkde > warning: > Kpersonalizer : Cannot connect to Xserer > - repeated- > > $ gnome-session > (gnome-session 1968) gtk-Warning ** cannot open displayed > > $ startx > 3 xterm windows started. On xterm I can start KDE with a lot of > warning displayed on xterm windonw. But I can't start Gnome on xterm. > If you're going to use "startx" you will need a ${HOME}/.xinitrc with the following contents: #/bin/sh startkde Make sure the file is 755 permissions. This will start up X with KDE. I would suggest you configure /etc/ttys to start up KDM instead of using "startx" Cheers. -- Jonathan Chen <[EMAIL PROTECTED]> -- "Nyuck, nyuck, nyuck" - Curly ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Fail to start KDE and Gnome
Hi Armin, Tks for your advice. > There are two files that control which windowsmanager shall be used > (depending on whether you use a login manager or just startx) > One is called .xinitrc the other one .xsession - they are both in > your > home directory - create them (you can create one of them and symlink > the > other one) and add the start command to the file (full path) - and > make > sure they are set executable (chmod 755 ) > eg. for kde: > exec /usr/local/bin/startkde > eg for gnome: > exec /usr/local/bin/gnome-session Done as per your advice. $ cat ~/.xsession exec /usr/local/bin/startkde exec /usr/local/bin/gnome-session $ ls -al ~/.xsession -rwxr-xr-x 1 satimis wheel 62 Feb 27 07:59 /home/satimis/.xsession $ startkde ksplash: cannot connect to X server kdeinit: Aborting, $DISPLAY is not set Warning: Connect() failed: No such file or directory ksmserver: Cannot connect to Xserver ! startkde: shutting down ... Warning: Connect() failed: No such file or directory Error: Can't contact kdeinit ! startkde running shutdown script startkde : Done Still failed. B.R. satimis Send instant messages to your online friends http://uk.messenger.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"