|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
FreeBSD help for a newb
I just installed FreeBSD for the first time and I'm trying to figure it out. I see that I can run mozilla or netscape or opera on it, but I don't know what I'm doing wrong.
It keeps saying cannot open display when I try to run netscape or mozilla. Did I do something wrong while setting it up, or what? Another thing, the whole reason for installing it in the first place is that I wanted it to run a webapp I developed in PHP and MySQL. What do I do to get apache running and php and mysql installed? Thanks in advance! PS, does freebsd have any type of graphical interface or is it all command line? (I really am a newbie to bsd). |
|
#2
|
||||
|
||||
|
>> It keeps saying cannot open display when I try to run netscape or mozilla.
Sounds like you're trying to run them without running X-Windows first? Try typing startx to see if XWindows comes up. If not, you'll need to install that before you can run any programs with a GUI. See http://www.freebsd.org/doc/en_US.IS...ndbook/x11.html for more If you don't know how to install software on FreeBSD, keep reading the stuff below. >> What do I do to get apache running and php and mysql installed? Best way for a newbie is probably to use either packages or ports to install them. See chapter 4 of the Handbook for details: http://www.freebsd.org/doc/en_US.IS...book/ports.html You can also bring up the install menu by typing /stand/sysinstall and install packages that way, if you like. The handbook details the similarities and differences between installing by the two methods, so read them and determine which works for you. I prefer ports to packages, unless the software being installed is very large (or my hardware is really slow). So, I would install apache, php and mysql from ports and X-Windows and KDE from packages. Your needs may vary. >> PS, does freebsd have any type of graphical interface or is it all command line? You can install a GUI, if you want to. It is not necessary for freebsd to use a GUI to operate. >> (I really am a newbie to bsd). Good place to start is the FreeBSD handbook. http://www.freebsd.org/doc/en_US.IS...book/index.html
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#3
|
|||
|
|||
|
Ok, I got everything running except for the fact that I can't connect to the mysql running on 127.0.0.1. Do I have to use a different ip number, or do I not have mysql setup right? Just to make sure, whats the command to do a pkg_add install of mysql?
Another thing, I know that freebsd doesn't need a gui to run and operate, but with me being completely new to this system, I need it to operate. I tried installing gnome and kde but when I type in startx, I get some error code that I don't know what it means. Can someone interpret what this means... Code:
# startx Using authority file /root/.Xauthority Writing authority file /root/.Xauthority Using authority file /root/.Xauthority Writing authority file /root/.Xauthority XFree86 Version 4.3.0 Release Date: 27 February 2003 X Protocol Version 11, Revision 0, Release 6.6 Build Operating System: FreeBSD 4.9 i386 [ELF] Build Date: 07 October 2003 Before reporting problems, check http://www.XFree86.Org/ to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/XFree86.0.log", Time: Wed Jan 14 12:22:07 2004 (EE) Unable to locate/open config file (EE) Error from xf86HandleConfigFile() Fatal server error: no screens found When reporting a problem related to a server crash, please send the full server output, not just the last messages. This can be found in the log file "/var/log/XFree86.0.log". Please report problems to xfree86@xfree86.org. X connection to :0.0 broken (explicit kill or server shutdown). Last edited by matteorr : January 14th, 2004 at 02:02 PM. |
|
#4
|
|||
|
|||
|
Seems you haven't configured X yet. The easiest way I know is to run "xf86cfg".
What I suggest you do is read chapter 5 of the handbook. It's not too long and after that you should understand how to get X running. Last edited by kolatracks : January 14th, 2004 at 04:28 PM. |
|
#5
|
|||
|
|||
|
Now when I type in startx, I get this...
Code:
# startx XFree86 Version 3.3.6 / X Window System (protocol Version 11, revision 0, vendor release 6300) Release Date: xx November 2000 If the server is older than 6-12 months, or if your card is newer than the above date, look for a newer version before reporting problems. (see http://www.XFree86.Org/FAQ) Operating System: FreeBSD 4.9-RELEASE i386 [ELF] Configured drivers: SVGA: server for SVGA graphics adaptors (Patchlevel 1): NV1, STG2000, RIVA 128, RIVA TNT, RIVA TNT2, RIVA ULTRA TNT2, RIVA VANTA, RIVA ULTRA VANTA, RIVA INTEGRATED, GeForce 256, GeForce DDR, Quadro, GeForce2 GTS, GeForce2 GTS (rev1), GeForce2 Ultra, Quadro 2 Pro, GeForce2 MX, GeForce2 MX DDR, Quadro 2 MXR, ET4000, ET4000W32, ET4000W32i, ET4000W32i_rev_b, ET4000W32i_rev_c, ET4000W32p, ET4000W32p_rev_a, ET4000W32p_rev_b, ET4000W32p_rev_c, ET4000W32p_rev_d, ET6000, ET6100, et3000, pvga1, wd90c00, wd90c10, wd90c30, wd90c24, wd90c31, wd90c33, gvga, r128, ati, sis86c201, sis86c202, sis86c205, sis86c215, sis86c225, sis5597, sis5598, sis6326, sis530, sis620, sis300, sis630, sis540, tvga8200lx, tvga8800cs, tvga8900b, tvga8900c, tvga8900cl, tvga8900d, tvga9000, tvga9000i, tvga9100b, tvga9200cxr, tgui9400cxi, tgui9420, tgui9420dgi, tgui9430dgi, tgui9440agi, cyber9320, tgui9660, tgui9680, tgui9682, tgui9685, cyber9382, cyber9385, cyber9388, cyber9397, cyber9520, cyber9525, 3dimage975, 3dimage985, cyber9397dvd, blade3d, cyberblade, clgd5420, clgd5422, clgd5424, clgd5426, clgd5428, clgd5429, clgd5430, clgd5434, clgd5436, clgd5446, clgd5480, clgd5462, clgd5464, clgd5465, clgd6205, clgd6215, clgd6225, clgd6235, clgd7541, clgd7542, clgd7543, clgd7548, clgd7555, clgd7556, ncr77c22, ncr77c22e, cpq_avga, mga2064w, mga1064sg, mga2164w, mga2164w AGP, mgag200, mgag100, mgag400, oti067, oti077, oti087, oti037c, al2101, ali2228, ali2301, ali2302, ali2308, ali2401, cl6410, cl6412, cl6420, cl6440, video7, ark1000vl, ark1000pv, ark2000pv, ark2000mt, mx, realtek, AP6422, AT24, AT3D, s3_savage, s3_virge, s3_svga, NM2070, NM2090, NM2093, NM2097, NM2160, NM2200, ct65520, ct65525, ct65530, ct65535, ct65540, ct65545, ct65546, ct65548, ct65550, ct65554, ct65555, ct68554, ct69000, ct64200, ct64300, mediagx, V1000, V2100, V2200, p9100, spc8110, i740, i740_pci, i810, i810-dc100, i810e, Voodoo Banshee, Voodoo3, smi, generic Using syscons driver with X support (version 2.0) (using VT number 9) XF86Config: /root/XF86Config (**) stands for supplied, (--) stands for probed/default values Config Error: /root/XF86Config:1 Section "ServerLayout" ^^^^^^^^^^^^^^ not a recognized section name X connection to :0.0 broken (explicit kill or server shutdown). From the error message at the bottom, I gather that I'm supposed to delete the "serverlayout" section of the config file. Am I right? |
|
#6
|
|||
|
|||
|
Does anyone know what I can do to fix it so that I can load GNOME, or any type of gui? Thanks in advance!
|
|
#7
|
|||
|
|||
|
freebsd (or any other BSD) wouldn't be my choice for running X but I did get it working (just for fun) after reading section 5 of the handbook. It's not long so read it.
If you got X running and just want to know how to start gnome then all I did was cd into my home and type the following: Code:
echo "/usr/X11R6/bin/gnome-session" > ~/.xinitrc then startx BTW I did this a few months ago and don't remmember everything exactly so read section 5.
__________________
Google :: Apache Manual :: FreeBSD Handbook
SourceHack :: SourceHack Forums :: SourceHack IRC UNIX is simple; it just takes a genius to understand its simplicity!!! |
|
#8
|
|||
|
|||
|
I read that and I didn't see anything that dealt with the error I'm getting (listed above). I did everything like it said, well, to the best of my understanding.
By trying to figure out what the error message was telling me, there is some lines in the config file that shouldn't be there. I didn't know if I just deleted that section if it would fix the problem or would introduce bigger ones. Anyway, I'll look back over that and see if I can find anything that I might have done wrong. Thanks for your help and advice. |
|
#9
|
|||
|
|||
|
Quote:
Stay with XFree 4.3. The 3.3 series is a little outdated and (which is the problem here) does not recognize the "ServerLayout" directive. hth, M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#10
|
|||
|
|||
|
Okay, I didn't realize that I had installed some v4 components when I was doing it. I was trying to get v3. I followed the instructions as well as I could and you see what I got.
Anyway, I uninstalled the v3 and tried to install the v4. I got to the part when I'm supposed to test it by typing in: # XFree86 -xf86config XF86Config.new And it gave me an error and didn't load the black and grey screen like it did last time. So, I gave up on it and deinstalled it and am in the process of installing v3 again. Should I stop that and go back or what? |
|
#11
|
||||
|
||||
|
dont install v3. use /usr/ports/x11/XFree86-4
install that, then to configure it, type in /stand/sysinstall goto Configure, XFree86. use the xf86config option. after that is all done, set up your desktop by editing ~/.xinitrc and ~/.xsession then startx and it will work
__________________
John5788 EMail: john5788@x5788.net URL: http://www.x5788.net AIM: John57881, John57883 ICQ: 74077537 MSN: John@5788.zzn.com YIM: John5788 |
|
#12
|
|||
|
|||
|
I followed your directions. When you said to edit ~/.xinitrc and ~/.xsession I looked it up on this and did what it said.
Quote:
I did this and I got an error, so then I started typescript and did it again to show you what its doing. Does this tell you what I did wrong or do I need to script the whole thing? Code:
# cd /usr/ports/x11/gnome2
# make install clean
===> Installing for gnome2-2.4.0
===> gnome2-2.4.0 depends on file: /usr/X11R6/libexec/cdplayer_applet2 - found
===> gnome2-2.4.0 depends on executable: gnome-cd - found
===> gnome2-2.4.0 depends on executable: gnome-dictionary - found
===> gnome2-2.4.0 depends on executable: eog - found
===> gnome2-2.4.0 depends on executable: gnome-control-center - found
===> gnome2-2.4.0 depends on executable: gconf-editor - found
===> gnome2-2.4.0 depends on executable: gnect - found
===> gnome2-2.4.0 depends on executable: gedit - found
===> gnome2-2.4.0 depends on executable: gnome-terminal - found
===> gnome2-2.4.0 depends on executable: gnome-session - found
===> gnome2-2.4.0 depends on executable: bug-buddy - found
===> gnome2-2.4.0 depends on executable: gnome-system-monitor - found
===> gnome2-2.4.0 depends on executable: nautilus - found
===> gnome2-2.4.0 depends on executable: yelp - found
===> gnome2-2.4.0 depends on executable: gdm - found
===> gnome2-2.4.0 depends on executable: screensaver-properties-capplet - found
===> gnome2-2.4.0 depends on file: /usr/X11R6/share/gnome/help/user-guide/C/user-guide.xml - found
===> gnome2-2.4.0 depends on file: /usr/X11R6/share/gnome/sounds/question.wav - found
===> gnome2-2.4.0 depends on file: /usr/X11R6/libdata/pkgconfig/libgail-gnome.pc - found
===> gnome2-2.4.0 depends on executable: file-roller - found
===> gnome2-2.4.0 depends on file: /usr/X11R6/share/themes/HighContrast/gtk-2.0/gtkrc - found
===> gnome2-2.4.0 depends on executable: ggv - found
===> gnome2-2.4.0 depends on executable: acme - found
===> gnome2-2.4.0 depends on executable: gok - found
===> gnome2-2.4.0 depends on executable: gpdf - found
===> gnome2-2.4.0 depends on executable: nautilus-cd-burner - found
===> gnome2-2.4.0 depends on executable: gcalctool - found
===> gnome2-2.4.0 depends on executable: gucharmap - found
===> gnome2-2.4.0 depends on executable: zenity - found
===> gnome2-2.4.0 depends on executable: gst-thumbnail - found
===> gnome2-2.4.0 depends on file: /usr/X11R6/lib/X11/fonts/bitstream-vera/Vera.ttf - found
===> gnome2-2.4.0 depends on executable: gnopernicus - found
===> gnome2-2.4.0 depends on file: /usr/local/bin/python2.3 - found
===> gnome2-2.4.0 depends on executable: epiphany - found
===> gnome2-2.4.0 depends on executable: gnomemeeting - found
===> Generating temporary packing list
===> Checking if x11/gnome2 already installed
===> gnome2-2.4.0 is already installed
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of x11/gnome2
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1
Stop in /usr/ports/x11/gnome2.
# echo "usr/X11R6/bin/gnome-session" > ~/.xinitrc
# startx
\
XFree86 Version 3.3.6 / X Window System
(protocol Version 11, revision 0, vendor release 6300)
Release Date: xx November 2000
If the server is older than 6-12 months, or if your card is newer
than the above date, look for a newer version before reporting
problems. (see http://www.XFree86.Org/FAQ)
Operating System: FreeBSD 4.9-RELEASE i386 [ELF]
Configured drivers:
VGA16: server for 4-bit colour VGA (Patchlevel 0):
ET4000, ET4000W32, ET4000W32i, ET4000W32i_rev_b, ET4000W32i_rev_c,
ET4000W32p, ET4000W32p_rev_a, ET4000W32p_rev_b, ET4000W32p_rev_c,
ET4000W32p_rev_d, ET6000, ET6100, et3000, ncr77c22, ncr77c22e, ati,
sis86c201, sis86c202, sis86c205, sis86c215, sis86c225, sis5597,
sis5598, sis6326, sis530, sis620, sis300, sis630, sis540, tvga8200lx,
tvga8800cs, tvga8900b, tvga8900c, tvga8900cl, tvga8900d, tvga9000,
tvga9000i, tvga9100b, tvga9200cxr, tgui9400cxi, tgui9420, tgui9420dgi,
tgui9430dgi, tgui9440agi, cyber9320, tgui9660, tgui9680, tgui9682,
tgui9685, cyber9382, cyber9385, cyber9388, cyber9397, cyber9520,
cyber9525, 3dimage975, 3dimage985, cyber9397dvd, blade3d, cyberblade,
oti067, oti077, oti087, oti037c, cl6410, cl6412, cl6420, cl6440,
generic
MONO: server for interlaced and banked monochrome graphics adaptors
(Patchlevel 0):
hgc1280, sigmalview, apollo9, hercules
Using syscons driver with X support (version 2.0)
(using VT number 9)
XF86Config: /root/XF86Config
(**) stands for supplied, (--) stands for probed/default values
dbe: Unknown error loading module
dri: Unknown error loading module
extmod: Unknown error loading module
glx: Unknown error loading module
record: Unknown error loading module
xtrap: Unknown error loading module
speedo: Unknown error loading module
type1: Unknown error loading module
Config Error: /root/XF86Config:29
Section "InputDevice"
^^^^^^^^^^^^^
not a recognized section name
X connection to :0.0 broken (explicit kill or server shutdown).
|
|
#13
|
|||||
|
|||||
|
Quote:
Hmmm.. What about this is it that you don't understand? Quote:
Well, ... Quote:
"XFree86" is part of V4.X. For V3.X, you have to use: # X -probeonly There were also 2 or 3 scripts to do the X setup for you, XF86Setup (caps?) or similar but I really can't remember the details. It's been quite some time... Why do you want to use the old version anyway? M. |