DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th November 2008
phreud phreud is offline
Port Guard
 
Join Date: Nov 2008
Posts: 22
Default Need to use full path to commands and xorg.config problem

I've got two problems with my newly installed FreeBSD 7.0 workstation.
  1. After installing X11 and Openbox, I can no longer access some commands directly. for example shutdown and pkg_version need the full path (/sbin/shutdown) or I get a 'command not found', while find on the other hand works without using full path. This applies for both root and users.
  2. I cannot find an xorg.conf file anywhere. X and Openbox both start up fine. I never ran xorgconfig after install, and to be honest, I'm a little afraid it might screw something up if I run it now . Will running xorgconfig create an xorg.conf file? Will the fact that X11 worked 'out-of-the-box' mean I can safely run xorgconfig and it will detect everything alright?

Thanks in advance.
Reply With Quote
  #2   (View Single Post)  
Old 17th November 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

  1. When you su, be sure to use su -. Without the '-' you do not get root's full PATH.
  2. Xorg 7.3 may not require a xorg.conf. Read: http://www.freebsd.org/doc/en_US.ISO.../x-config.html
__________________
Kill your t.v.
Reply With Quote
  #3   (View Single Post)  
Old 17th November 2008
phreud phreud is offline
Port Guard
 
Join Date: Nov 2008
Posts: 22
Default

  1. The same problem appears for users too. I just realized I have changes shell for my user and for root and that might be the problem. They now both use bash (I later found a post about not changing roots shell, oh well). Could it be I have to add /sbin to the PATH?
  2. Thanks for the url. I guess you're right. Problem is, where do I add localization stuff for X when I don't have a config file? I need to change the keyboard layout in X.
Reply With Quote
  #4   (View Single Post)  
Old 17th November 2008
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by phreud View Post
  1. The same problem appears for users too. I just realized I have changes shell for my user and for root and that might be the problem. They now both use bash (I later found a post about not changing roots shell, oh well). Could it be I have to add /sbin to the PATH?
  2. Thanks for the url. I guess you're right. Problem is, where do I add localization stuff for X when I don't have a config file? I need to change the keyboard layout in X.
Your path per user should be specified in ~/.profile. Your X options should be specified per user in ./.Xdefaults. Note that due to the
change of the default shell your profile might not be read.
For instance on OpenBSD in order to have your profile read you have to
specify in your .Xdefaults
Code:
XTerm*loginShell: true
That is actually default behavior of Xorg.
Reply With Quote
  #5   (View Single Post)  
Old 17th November 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

  1. /sbin and /usr/sbin are not added to regular users' PATH because those contain administrative programs. If you really need those in your path anyway, then (for bash) update ~/.profile or ~/.bash_profile appropriately. P.S. Change root's shell back to something in the base system if you want to avoid trouble down the line.
  2. If you need to customize, then you'll need to generate a xorg.conf file. You can follow the instructions at that same URL.
__________________
Kill your t.v.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 7.1 Ati Xpress 200M Xorg 7.4 problem raduenea FreeBSD Installation and Upgrading 11 1st July 2009 12:46 AM
Xorg + Xfce4 resolution problem sniper007 FreeBSD General 4 30th April 2009 04:38 PM
Xorg 7.3 -> 7.4 config problems jbhappy FreeBSD Ports and Packages 4 29th April 2009 03:34 AM
4.4 on macmini ppc xorg problem gosha OpenBSD Installation and Upgrading 27 14th February 2009 10:06 PM
Xorg very slow (problem with DRI?) Hihihi OpenBSD General 6 18th July 2008 06:21 PM


All times are GMT. The time now is 09:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick