FreeBSD安装疑问

其他Linux/Unix/BSD/OSX等发行版讨论
回复
jinjiachen
帖子: 2148
注册时间: 2012-12-16 15:43
系统: debian

FreeBSD安装疑问

#1

帖子 jinjiachen » 2015-10-17 20:49

最近突然兴起,想体验下FreeBSD,有一些资料说其只能安装在主分区上,现电脑双系统,WIN7+LINUX,因此已无法再分出主分区,请问下FB是否可以安装在空闲逻辑分区上?
我的分区表如下:
dev/sda1 * 2048 93782015 93779968 44.7G 7 HPFS/NTFS/exFAT
/dev/sda2 156461054 976771071 820310018 391.2G 5 扩展
/dev/sda5 254117888 351772184 97654297 46.6G 83 Linux
/dev/sda6 547086336 972865535 425779200 203G b W95 FAT32
/dev/sda7 972867584 976771071 3903488 1.9G 82 Linux 交换 / Solaris
/dev/sda8 156463102 254117887 97654786 46.6G b W95 FAT32
/dev/sda9 351774720 547077509 195302790 93.1G 83 Linux
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: FreeBSD安装疑问

#2

帖子 poloshiao » 2015-10-17 22:11

https://www.freebsd.org/doc/handbook/bsdinstall.html
Chapter 2. Installing FreeBSD
请问下FB是否可以安装在空闲逻辑分区上?
可以試試
jinjiachen
帖子: 2148
注册时间: 2012-12-16 15:43
系统: debian

Re: FreeBSD安装疑问

#3

帖子 jinjiachen » 2015-10-19 11:14

poloshiao 写了:https://www.freebsd.org/doc/handbook/bsdinstall.html
Chapter 2. Installing FreeBSD
请问下FB是否可以安装在空闲逻辑分区上?
可以試試
嗯嗯 我就是在这上面看的,现在已经安装成功,准备安装X,在虚拟机中安装完全没问题,可在我的笔电上安装完Xorg后却无法成功startx,安装命令为:

代码: 全选

pkg install Xorg
安装完后按手册调试,如下命令

代码: 全选

Xorg -config configfile -retro
出现叉叉和灰色背景,说明安装配置是对的啊,可就是startx无法成功启动twm,不知为何,错误的log回家后贴出,请帮忙分析下,谢谢
jinjiachen
帖子: 2148
注册时间: 2012-12-16 15:43
系统: debian

Re: FreeBSD安装疑问

#4

帖子 jinjiachen » 2015-10-19 19:34

我的显卡信息如下

代码: 全选

lspci |grep VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler [Radeon HD 6310]
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Seymour [Radeon HD 6400M/7400M Series] (rev ff)

以下是我的Xorg.0.log中的信息,有点长

代码: 全选

X.Org X Server 1.14.7
Release Date: 2014-06-05
[   634.175] X Protocol Version 11, Revision 0
[   634.175] Build Operating System: FreeBSD 10.1-RELEASE-p22 i386 
[   634.175] Current Operating System: FreeBSD PC-JJC 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 19:31:38 UTC 2015     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
[   634.175] Build Date: 04 October 2015  04:19:44AM
[   634.175]  
[   634.175] Current version of pixman: 0.32.6
[   634.175] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   634.175] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   634.175] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Oct 19 19:10:34 2015
[   634.224] (II) Loader magic: 0x822b178
[   634.224] (II) Module ABI versions:
[   634.224] 	X.Org ANSI C Emulation: 0.4
[   634.224] 	X.Org Video Driver: 14.1
[   634.224] 	X.Org XInput driver : 19.1
[   634.224] 	X.Org Server Extension : 7.0
[   634.226] (!!) More than one possible primary device found
[   634.226] (--) PCI: (0:0:1:0) 1002:9802:1043:100c rev 0, Mem @ 0xb0000000/268435456, 0xfeb00000/262144, I/O @ 0x0000f000/256, BIOS @ 0x????????/65536
[   634.226] (--) PCI: (0:1:0:0) 1002:6760:1043:100c rev 0, Mem @ 0xc0000000/268435456, 0xfea20000/131072, I/O @ 0x0000e000/256, BIOS @ 0x????????/65536
[   634.226] (==) Using default built-in configuration (21 lines)
[   634.226] (==) --- Start of built-in configuration ---
[   634.226] 	Section "Device"
[   634.226] 		Identifier	"Builtin Default vesa Device 0"
[   634.226] 		Driver	"vesa"
[   634.226] 	EndSection
[   634.226] 	Section "Screen"
[   634.226] 		Identifier	"Builtin Default vesa Screen 0"
[   634.226] 		Device	"Builtin Default vesa Device 0"
[   634.226] 	EndSection
[   634.226] 	Section "Device"
[   634.226] 		Identifier	"Builtin Default fbdev Device 0"
[   634.226] 		Driver	"fbdev"
[   634.226] 	EndSection
[   634.226] 	Section "Screen"
[   634.226] 		Identifier	"Builtin Default fbdev Screen 0"
[   634.226] 		Device	"Builtin Default fbdev Device 0"
[   634.226] 	EndSection
[   634.226] 	Section "ServerLayout"
[   634.226] 		Identifier	"Builtin Default Layout"
[   634.226] 		Screen	"Builtin Default vesa Screen 0"
[   634.226] 		Screen	"Builtin Default fbdev Screen 0"
[   634.226] 	EndSection
[   634.226] (==) --- End of built-in configuration ---
[   634.226] (==) ServerLayout "Builtin Default Layout"
[   634.227] (**) |-->Screen "Builtin Default vesa Screen 0" (0)
[   634.227] (**) |   |-->Monitor "<default monitor>"
[   634.239] (**) |   |-->Device "Builtin Default vesa Device 0"
[   634.239] (==) No monitor specified for screen "Builtin Default vesa Screen 0".
	Using a default monitor configuration.
[   634.239] (**) |-->Screen "Builtin Default fbdev Screen 0" (1)
[   634.239] (**) |   |-->Monitor "<default monitor>"
[   634.239] (**) |   |-->Device "Builtin Default fbdev Device 0"
[   634.239] (==) No monitor specified for screen "Builtin Default fbdev Screen 0".
	Using a default monitor configuration.
[   634.239] (==) Automatically adding devices
[   634.239] (==) Automatically enabling devices
[   634.239] (==) Not automatically adding GPU devices
[   634.335] (==) FontPath set to:
	/usr/local/share/fonts/misc/,
	/usr/local/share/fonts/TTF/,
	/usr/local/share/fonts/OTF/,
	/usr/local/share/fonts/Type1/,
	/usr/local/share/fonts/100dpi/,
	/usr/local/share/fonts/75dpi/
[   634.335] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[   634.335] (II) The server relies on devd to provide the list of input devices.
	If no devices become available, reconfigure devd or disable AutoAddDevices.
[   634.335] Initializing built-in extension Generic Event Extension
[   634.335] Initializing built-in extension SHAPE
[   634.335] Initializing built-in extension MIT-SHM
[   634.335] Initializing built-in extension XInputExtension
[   634.335] Initializing built-in extension XTEST
[   634.335] Initializing built-in extension BIG-REQUESTS
[   634.336] Initializing built-in extension SYNC
[   634.336] Initializing built-in extension XKEYBOARD
[   634.336] Initializing built-in extension XC-MISC
[   634.336] Initializing built-in extension XINERAMA
[   634.336] Initializing built-in extension XFIXES
[   634.336] Initializing built-in extension RENDER
[   634.336] Initializing built-in extension RANDR
[   634.336] Initializing built-in extension COMPOSITE
[   634.336] Initializing built-in extension DAMAGE
[   634.336] Initializing built-in extension MIT-SCREEN-SAVER
[   634.336] Initializing built-in extension DOUBLE-BUFFER
[   634.336] Initializing built-in extension RECORD
[   634.336] Initializing built-in extension DPMS
[   634.336] Initializing built-in extension X-Resource
[   634.336] Initializing built-in extension XVideo
[   634.336] Initializing built-in extension XVideo-MotionCompensation
[   634.336] Initializing built-in extension XFree86-VidModeExtension
[   634.336] Initializing built-in extension XFree86-DGA
[   634.336] Initializing built-in extension XFree86-DRI
[   634.336] Initializing built-in extension DRI2
[   634.336] (II) LoadModule: "glx"
[   634.343] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   634.350] (II) Module glx: vendor="X.Org Foundation"
[   634.350] 	compiled for 1.14.7, module version = 1.0.0
[   634.350] 	ABI class: X.Org Server Extension, version 7.0
[   634.350] (==) AIGLX enabled
[   634.352] Loading extension GLX
[   634.352] (II) LoadModule: "vesa"
[   634.378] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[   634.381] (II) Module vesa: vendor="X.Org Foundation"
[   634.381] 	compiled for 1.14.7, module version = 2.3.3
[   634.381] 	Module class: X.Org Video Driver
[   634.381] 	ABI class: X.Org Video Driver, version 14.1
[   634.381] (II) LoadModule: "fbdev"
[   634.383] (WW) Warning, couldn't open module fbdev
[   634.383] (II) UnloadModule: "fbdev"
[   634.383] (II) Unloading fbdev
[   634.383] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   634.383] (II) VESA: driver for VESA chipsets: vesa
[   634.383] (--) Using syscons driver with X support (version 2.0)
[   634.383] (--) using VT number 9

[   634.391] (WW) Falling back to old probe method for vesa
[   634.391] (EE) No devices detected.
[   634.391] (EE) 
Fatal server error:
[   634.391] (EE) no screens found(EE) 
[   634.391] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   634.391] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   634.391] (EE) 
[   634.401] (EE) Server terminated with error (1). Closing log file.
据说现在的Xorg不用配置也可以直接startx,不过我还是生成了一个,内容如下

代码: 全选

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
	Screen      2  "Screen2" RightOf "Screen1"
	Screen      3  "Screen3" RightOf "Screen2"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/local/lib/xorg/modules"
	FontPath     "/usr/local/share/fonts/misc/"
	FontPath     "/usr/local/share/fonts/TTF/"
	FontPath     "/usr/local/share/fonts/OTF/"
	FontPath     "/usr/local/share/fonts/Type1/"
	FontPath     "/usr/local/share/fonts/100dpi/"
	FontPath     "/usr/local/share/fonts/75dpi/"
EndSection

Section "Module"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/sysmouse"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Monitor"
	Identifier   "Monitor2"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Monitor"
	Identifier   "Monitor3"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "ColorTiling"        	# [<bool>]
        #Option     "ColorTiling2D"      	# [<bool>]
        #Option     "RenderAccel"        	# [<bool>]
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "EXAVSync"           	# [<bool>]
        #Option     "EXAPixmaps"         	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
	Identifier  "Card0"
	Driver      "radeon"
	BusID       "PCI:0:1:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "ColorTiling"        	# [<bool>]
        #Option     "ColorTiling2D"      	# [<bool>]
        #Option     "RenderAccel"        	# [<bool>]
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "EXAVSync"           	# [<bool>]
        #Option     "EXAPixmaps"         	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
	Identifier  "Card1"
	Driver      "radeon"
	BusID       "PCI:1:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "DefaultRefresh"     	# [<bool>]
        #Option     "ModeSetClearScreen" 	# [<bool>]
	Identifier  "Card2"
	Driver      "vesa"
	BusID       "PCI:0:1:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "DefaultRefresh"     	# [<bool>]
        #Option     "ModeSetClearScreen" 	# [<bool>]
	Identifier  "Card3"
	Driver      "vesa"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Card1"
	Monitor    "Monitor1"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen2"
	Device     "Card2"
	Monitor    "Monitor2"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen3"
	Device     "Card3"
	Monitor    "Monitor3"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection


根据日志文件,好像是显卡驱动没装上,可是xf86-video-ati 我是安装了的啊,不解,求各位帮忙
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: FreeBSD安装疑问

#5

帖子 poloshiao » 2015-10-19 20:45

Xorg -config configfile -retro
你在哪裡看到這個指令與參數 請提供網址

https://www.freebsd.org/doc/handbook/x11-wm.html
請提供 FreeBSD 版本 及 要登入的桌面
jinjiachen
帖子: 2148
注册时间: 2012-12-16 15:43
系统: debian

Re: FreeBSD安装疑问

#6

帖子 jinjiachen » 2015-10-19 21:29

poloshiao 写了:
Xorg -config configfile -retro
你在哪裡看到這個指令與參數 請提供網址

https://www.freebsd.org/doc/handbook/x11-wm.html

請提供 FreeBSD 版本 及 要登入的桌面
在其官网的中文手册上,FreeBSD的版本是10.2,最新的,至于桌面,X还未成功启动,谈不上桌面。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: FreeBSD安装疑问

#7

帖子 poloshiao » 2015-10-19 23:33

在其官网的中文手册上
請查證一下
是否誤解了
jinjiachen
帖子: 2148
注册时间: 2012-12-16 15:43
系统: debian

Re: FreeBSD安装疑问

#8

帖子 jinjiachen » 2015-10-20 8:41

poloshiao 写了:
在其官网的中文手册上
請查證一下
是否誤解了
不好意思,我昨天印象中放了URL,刚刚发现没有,看来是糊涂了,网址如下
https://www.freebsd.org/doc/zh_CN/books ... onfig.html

按里面的说法,我的确是测试Xorg成功了,不过startx失败,难道是freeBSD内核比较旧,不支持我的显卡?我用uname -a无法查取其内核版本,和linux有点不一样
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: FreeBSD安装疑问

#9

帖子 poloshiao » 2015-10-20 9:37

比較看看 有何不同
https://www.freebsd.org/doc/zh_CN/books/handbook/x-config.html
https://www.freebsd.org/doc/zh_CN.UTF-8/books/handbook/x-config.html
https://www.freebsd.org/doc/en/books/handbook/x-config.html
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html
jinjiachen
帖子: 2148
注册时间: 2012-12-16 15:43
系统: debian

Re: FreeBSD安装疑问

#10

帖子 jinjiachen » 2015-10-20 10:04

poloshiao 写了:比較看看 有何不同
https://www.freebsd.org/doc/zh_CN/books/handbook/x-config.html
https://www.freebsd.org/doc/zh_CN.UTF-8/books/handbook/x-config.html
https://www.freebsd.org/doc/en/books/handbook/x-config.html
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html
英文里和中文中的确有所不同,它提到了将用户加用video组,回去可以试试,自从Xorg7.3开始无配置文件即可startx,在archlinux中我也没找到Xorg.conf文件,为何FreeBSD却不行呢 真是奇怪
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: FreeBSD安装疑问

#11

帖子 poloshiao » 2015-10-20 11:49

Xorg -config configfile -retro
1. https://www.freebsd.org/cgi/man.cgi?que ... th=X11R7.4
Xorg [:display] [option ...]
-config file
Read the server configuration from file. This option will work
for any file when the server is run as root (i.e, with real-uid
0), or for files relative to a directory in the config search
path for all other users.
1-1. 這裡在 -config 後面接的 file 應該是 Server configuration file 不是 "configfile" 英文單字 參見
https://www.freebsd.org/cgi/man.cgi?que ... th=X11R7.4
FILES
Server configuration file.
上面是預設檔案
Xorg -config configfile -retro
出现叉叉和灰色背景,说明安装配置是对的啊,
2. https://www.freebsd.org/cgi/man.cgi?que ... th=X11R7.4
Ctrl+Alt+Backspace
Immediately kills the server -- no questions asked. This is
disabled by default. It can be enabled with the -retro command
line flag or by setting the DontZap xorg.conf(5) file option to
a FALSE value.
2-1. 加 -retro 是要啟用 Ctrl+Alt+Backspace
方便你 測試成功後 要能夠立刻按下 Ctrl+Alt+Backspace 或 同时按下 Ctrl+Alt+Fn 来切换到用于启动 X 的虚拟控制台 (F1 表示第一个虚拟控制台) 之后按 Ctrl+C。
据说现在的Xorg不用配置也可以直接startx,不过我还是生成了一个,内容如下
3. https://www.freebsd.org/doc/zh_CN.UTF-8 ... onfig.html
如果一切准备妥当, 就可以把配置文件放到公共的目录中了。 您可以在 Xorg(1) 里面找到具体位置。 这个位置通常是 /etc/X11/xorg.conf 或 /usr/local/etc/X11/xorg.conf。
# cp xorg.conf.new /etc/X11/xorg.conf
现在已经完成了 X11 的配置全过程。
Xorg 可以通过 startx(1) 工具来启动。 除此之外, X11 服务器也可以用 xdm(1) 来启动。
3-1. 不知道 你所產生的 配置 /etc/X11/xorg.conf 是不是 依照上面的程序 產生的 ?
英文里和中文中的确有所不同
4. 參閱
https://www.freebsd.org/doc/zh_CN.UTF-8 ... ation.html
進一步參閱
https://www.freebsd.org/doc/zh_CN.UTF-8 ... /l10n.html
4-1. 確認一下 你安裝的 FreeBSD 是使用什麼 語言编码
因為許多設定檔 特別是 登入跟掛載 指令 跟 語言编码 有關
自从Xorg7.3开始无配置文件即可startx,在archlinux中我也没找到Xorg.conf文件,为何FreeBSD却不行呢 真是奇怪
5. https://www.freebsd.org/cgi/man.cgi?que ... th=X11R7.4
注意 這一篇是 X11R7.4 因為還沒有看到更新的
OPTIONS
Xorg supports several mechanisms for supplying/obtaining configuration
and run-time parameters: command line options, environment variables,
the xorg.conf(5) configuration file, auto-detection, and fallback
defaults. When the same information is supplied in more than one way,
the highest precedence mechanism is used. The list of mechanisms is
ordered from highest precedence to lowest. Note that not all parame-
ters can be supplied via all methods. The available command line
options and environment variables (and some defaults) are described
here and in the Xserver(1) manual page. Most configuration file param-
eters, with their defaults, are described in the xorg.conf(5) manual
page. Driver and module specific configuration parameters are
described in the relevant driver or module manual page.

In addition to the normal server options described in the Xserver(1)
manual page, Xorg accepts the following command line switches:
vtXX XX specifies the Virtual Terminal device number which Xorg will
use. Without this option, Xorg will pick the first available
Virtual Terminal that it can locate. This option applies only
to platforms that have virtual terminal support, such as Linux,
BSD, SVR3, and SVR4.
... 以下省略

5-1. 顯然 在 FreeBSD 的 Xorg 也是支援多樣化的設定來源
5-1-1. 預裝 FreeBSD 以後 如果運作良好 不必先花時間去折騰 /etc/X11/xorg.conf 等等設定檔
意思是 新手 儘量依照 安裝導引說明方法安裝 不要吸收太多網路文章 而急著折騰
要參考網路文章 一定要注意 適用版本 不同版本 可能有一些差異
5-1-2. 通常只有 非預裝情況 才需去折騰 /etc/X11/xorg.conf
难道是freeBSD内核比较旧,不支持我的显卡?
6. 先參閱
6-1. https://www.freebsd.org/doc/zh_CN.UTF-8 ... onfig.html
6.4.3. 高级配置主题
6.4.3.1. 配置 Intel i810 显示芯片组
6-2. https://www.freebsd.org/doc/en/books/ha ... onfig.html
5.4.5. Video Cards
5.4.6. Monitors
6-3. https://www.freebsd.org/doc/en/books/ha ... onfig.html
5.4.8. Manual Configuration
我用uname -a无法查取其内核版本,和linux有点不一样
7. 的確不同 不要用 Linux 的思維方式 來想 FreeBSD 把它當全新的系統
7-1. https://zh.wikipedia.org/wiki/FreeBSD
FreeBSD被認為是自由作業系統中的不知名的巨人。它不是Unix,...
相較於另一知名的類Unix作業系統GNU/Linux,其核心Linux為一組開發人員開發設計,...
7-2. https://forums.freebsd.org/threads/free ... ost-113398
FreeBSD does not have kernel version, It have OS version,
jinjiachen
帖子: 2148
注册时间: 2012-12-16 15:43
系统: debian

Re: FreeBSD安装疑问

#12

帖子 jinjiachen » 2015-10-20 20:59

感谢仁兄的详细回答,现按顺序一一回答

1

代码: 全选

Xorg -config configfile -retro
此命令中的configfile就是用Xorg -configure生成的配置文件

2. 如此看来-retro是如你所说,不过alt+ctrl+backspace并没什么效果,alt+ctrl+F1会黑屏,不过实际键入指令有效,如reboot

3.配置文件的确是按手册生成的,虽通过了测试,却无法成功startx,我反复思量,还是生成的配置不能驱动我的硬件,要微调,可是对硬件不太熟,不知如何修改,尝试在linux下生成配置文件作为参考,却无奈生成不了。。。

4.编码是LANG="C"
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: FreeBSD安装疑问

#13

帖子 poloshiao » 2015-10-20 21:39

无法成功startx
詳細參閱
https://www.freebsd.org/cgi/man.cgi?que ... ormat=html
startx [ [ client ] options ... ] [ -- [ server ] [ display ] options
... ]
kuuga
帖子: 10
注册时间: 2011-05-23 16:24

Re: FreeBSD安装疑问

#14

帖子 kuuga » 2016-03-07 9:52

有沒有人可以告訴我如何進入FreeBSD桌面環境的指令? 因為我已經安裝了Gnome3...
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: FreeBSD安装疑问

#15

帖子 poloshiao » 2016-03-07 11:25

我已經安裝了Gnome3
https://www.freebsd.org/doc/zh_TW/books ... 11-wm.html

1. 當 GNOME 安裝完成後, 必須告訴 X server 啟動 GNOME 而非原本的 window manager。
啟動 GNOME 最簡單的方法是利 用 GDM(GNOME Display Manager)。

2. GNOME may also be started from the command-line by properly configuring a file named .xinitrc. If a custom .xinitrc is already in place, simply replace the line that starts the current window manager with one that starts /usr/local/bin/gnome-session instead. If nothing special has been done to the configuration file, then it is enough simply to type:
% echo "/usr/local/bin/gnome-session" > ~/.xinitrc
Next, type startx, and the GNOME desktop environment will be started.
回复