LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 10-21-2002, 10:37 AM   #1
ccool
Member
 
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71

Rep: Reputation: 15
Question 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
 
Old 10-21-2002, 11:26 AM   #2
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
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
 
Old 10-21-2002, 12:12 PM   #3
ccool
Member
 
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71

Original Poster
Rep: Reputation: 15
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
 
Old 10-21-2002, 01:27 PM   #4
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
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.
 
Old 10-21-2002, 01:47 PM   #5
ccool
Member
 
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71

Original Poster
Rep: Reputation: 15
thanks for your quick answer... I'll try that

ccool
 
Old 10-21-2002, 01:54 PM   #6
ccool
Member
 
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71

Original Poster
Rep: Reputation: 15
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.
 
Old 10-21-2002, 05:53 PM   #7
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
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?
 
Old 10-21-2002, 06:47 PM   #8
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
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.
 
Old 10-23-2002, 08:12 AM   #9
ccool
Member
 
Registered: Oct 2002
Location: Canada
Distribution: Slackware 10.1
Posts: 71

Original Poster
Rep: Reputation: 15
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 ?
 
Old 10-23-2002, 12:36 PM   #10
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xfree 4.3.0 Slice909 Linux - Newbie 2 08-31-2004 07:37 AM
Updating XFree while running XFree? Micro420 Mandriva 7 02-18-2004 01:48 PM
XFree 86 phekno Linux - Laptop and Netbook 1 11-21-2003 07:24 AM
Xfree ??? ETeria Linux - Software 3 08-01-2003 01:31 PM
Xfree? Avi Linux - Newbie 1 06-30-2003 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration