Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-21-2002, 10:37 AM
|
#1
|
Member
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71
Rep:
|
xfree and more
Hi everybody,
I have a little problem, I compile Xfree86 4.2.1 from the sources, I configured it with xf86config and xf86cfg, I finally got along doing a link in the /dev, mouse --> psaux, and so, I know that the graphic interface works, because It started and I could "use" it to configure it with the /usr/X11R6/bin/xf86cfg
After that, I install Icewm on my computer, everything went ok, but when I tried to startx (/usr/X11R6/bin/startx) I got error message saying that xauth not found (about 8 of them) and one xinit not found. I wondered what it could be?
I also would like to ask you if you know how a command can be called without its full path. Right now, when I install something in /usr/local/ ... I can only run it if I call the full path (ex: /usr/local/bin/ssh ) and it is a little bit frustrating... how can I make those command like the ones in /bin or /sbin so I could type only "ssh" !?!
Thanks everybody, I really appreciate your help
|
|
|
10-21-2002, 11:26 AM
|
#2
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Rep:
|
Append the required subdirectories to your $PATH. Different distros use either .bashrc or .bash_profile (located in your home directory)
Directories in the path command are seperated by a colon ":".
So, path statement should look like this:
PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin
At the end of the file make sure that PATH is somewhere in the EXPORT statement.
Putting the correct entries in your path statement might solve the other problem with starting X, but I'm not sure. Anyone else want to make a stab at it?
HTH
|
|
|
10-21-2002, 12:12 PM
|
#3
|
Member
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71
Original Poster
Rep:
|
thanks a lot for your answer on my "path" problem ... this is one problem solve
as for my other problem, maybe there is something, a how to !? or anything that might help me...
as I said, my xfee86 seems to have compile ok, but when I try to run a windows manager, something goes wrong. It would seems logical to me that you have to tell somehow/somewhere wich windows manager you want to run with you X. I just know that I cannot start my windows manager directly from the consol with the command /usr/local/bin/icewm
thanks for your time
Ccool
|
|
|
10-21-2002, 01:27 PM
|
#4
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Rep:
|
I'm still having a little problem with my LFS, so I haven't gotten that far to install XFree86. BUT, on my slackware system, the thing file I have to edit to change window managers is called xinitrc, and is located in /etc/X11/xinit Down at the bottom of the file you should see (for instance) exec wmaker
Just change wmaker to gnome-session (for others I'm not sure of the names). I think icewm is one, elightenment may be another one, but, like I said, I'm not sure.
Then just save the file, and type startx at the command line
HTH
Last edited by peeples; 10-21-2002 at 01:29 PM.
|
|
|
10-21-2002, 01:47 PM
|
#5
|
Member
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71
Original Poster
Rep:
|
thanks for your quick answer... I'll try that
ccool
|
|
|
10-21-2002, 01:54 PM
|
#6
|
Member
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71
Original Poster
Rep:
|
euh, I just tried everything you said...
for some reason, I created /etc/bashrc and it did'nt work, so I tried /root/.bashrc and it did'nt work either (I rebooted just to make sure and it did do nothing)
and so you could understand more my problem with X here is my error message
startx
/usr/X11R6/bin/startx: xauth: command not found
/usr/X11R6/bin/startx: xauth: command not found
/usr/X11R6/bin/startx: xauth: command not found
/usr/X11R6/bin/startx: xauth: command not found
/usr/X11R6/bin/startx: xinit: command not found
/usr/X11R6/bin/startx: xauth: command not found
that's pretty much it...
Last edited by ccool; 10-21-2002 at 04:25 PM.
|
|
|
10-21-2002, 05:53 PM
|
#7
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Rep:
|
Now that I'm home, I can look at my system. My path is in .bash_profile
and it goes in your home directory (in my case, /home/peeples). You shouldn't be logging in as root. Try creating .bash_profile in YOUR home.
This is what mine looks like:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/local/mysql:$QTDIR/bin
BASH_ENV=$HOME/.bashrc
QTDIR=/usr/local/qt
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=/usr/lib:$QTDIR/lib:$LD_LIBRARY_PATH
USERNAME="root"
export USERNAME BASH_ENV PATH QTDIR MANPATH LD_LIBRARY_PATH
umask 077
After you installed XFree86, which window manager did you install?
|
|
|
10-21-2002, 06:47 PM
|
#8
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
what does your ~/.xinitrc (or /usr/X11R6/lib/X11/xinit/xinitrc) file look like? I use fluxbox and have gkrellm and it says this:
exec /usr/local/bin/gkrellm -w &
exec fluxbox
by the way, what does "echo $PATH" give you? do you have the X stuff in there? ex, here's mine:
bash-2.05a# echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:
what is important is the /usr/X11R6/bin (make that /usr/local/X11R6/bin if that's where you installed it)
and what about "cat /etc/ld.so.conf"? here's mine:
bash-2.05a# cat /etc/ld.so.conf
# Begin /etc/ld.so.conf
/usr/local/lib
/opt/lib
/usr/X11R6/lib
/usr/lib
# End /etc/ld.so.conf
If all the above configuration is o.k., I think everything should run smoothly. The only difference would be that you need to change "exec fluxbox" to "exec icewm" or whatever the executable to start your windowmanager is called.
there's also a hint for icewm here:
http://hints.linuxfromscratch.org/hints/icewm.txt
good luck
-Adam
Last edited by adam_boz; 10-21-2002 at 06:51 PM.
|
|
|
10-23-2002, 08:12 AM
|
#9
|
Member
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71
Original Poster
Rep:
|
thanks guys,
everything worked fine... I made the changes in .bash_profile and in xinitrc... soo, my windows manager with X works fine...
entering the full path in the xinit did the job
by the way, is fluxbox cool ?
|
|
|
10-23-2002, 12:36 PM
|
#10
|
Member
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538
Rep:
|
I really like it a lot. It uses very little ram, and is clean looking. You put the apps that you want in the menu (right click) so there's not a whole bunch of stuff that you don't use.
you can always just try it out if you want.... without removing icewm. All you need to do is change your xinitrc. There's also a script out there somewhere that will let you keep both in the xinitrc and choose the one you want when you type startx..... I'll get back if I can find the link.
You really shouldn't need to put the full path in xinitrc though, as long as you make sure that the path to it is in your aahhh... PATH
congradulations on setting up X.
happy linuxing
-Adam
|
|
|
All times are GMT -5. The time now is 07:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|