[PR] この広告は3ヶ月以上更新がないため表示されています。
ホームページを更新後24時間以内に表示されなくなります。

FPGAなど、パソコンに関連することを載せている。


タイトル
仮運営中
google検索
このホームページ内の検索に使用してください。
linuxのインストール後の設定について
本文コメント
linux,今回はcentos6.0をインストールした後の設定について


centos6.0をnetinstall

フォルダを開いて、編集->設定->動作 常にブラウザウィンドウで開くにチェックを入れる。
これにより、フォルダを開く度に違うウィンドウが開くことを防ぐ。(nautilusで開く)

まず、sudoコマンドを使えるようにする。端末でsuでrootユーザになり、visudoと打つ。
すると、/etc/sudoersがviで開かれる。
そこで、
root ALL=(ALL) ALL
のところに
centos6 ALL=(ALL) ALL
と追加する。
:wq
で保存してviを終了する。
これで、再起動するとsudoが使えるようになる。

次に、xorg.confをインストールする。
----------失敗
sudo service gdm stop
黒画面
sudo Xorg -configure
sudo service gdm start
----------

ctrl+ALT+F6 ->CUI
Xサーバを止める。
#init 3

#Xorg -configure

startx ->GUI
日本語が英語になるが気にせずに再起動

#Xorg -configureで得られたxorg.conf.newをコピーする。
sudo cp /root/xorg.conf.new /etc/X11/xorg.conf
内容を変更する前に、バックアップを取っておく。
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
xorg.confを変更する。
sudo gedit /etc/X11/xorg.conf

Section "Monitor"に
HorizSync 30-83 #<- add
VertRefresh 56-75 #<- add

Section "Screen"に
DefaultDepth 24 #<- add

SubSection "Display"に
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480" #<- add
を追加する。

再起動して、システム->設定->ディスプレイで解像度を設定する。
上記のことをすると、ここでは
1280x1024
1280x960
1280x800
1152x864
1280x768
1024x768
800x600
848x480
640x480
が設定できる。
もし、1280x1024以上の解像度が必要であれば、HorizSync、VertRefreshを変更するといいかもしれない。

youtubeなどの動画を見るために
flash playerをrpmでインストール。


xorg.conf
----------
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "catalogue:/etc/X11/fontpath.d"
	FontPath     "built-ins"
EndSection

Section "Module"
	Load  "dri2"
	Load  "dri"
	Load  "record"
	Load  "dbe"
	Load  "extmod"
	Load  "glx"
EndSection

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

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

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	HorizSync 30-83	# 20111113 add
	VertRefresh 56-75	# 20111113 add
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: : integer, : float, : "True"/"False",
        ### : "String", : " Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "PrintVGARegs"       	# []
        #Option     "PrintTVRegs"        	# []
        #Option     "I2CScan"            	# []
        #Option     "VBEModes"           	# []
        #Option     "NoAccel"            	# []
        #Option     "AccelMethod"        	# 
        #Option     "ExaNoComposite"     	# []
        #Option     "ExaScratchSize"     	# 
        #Option     "SWCursor"           	# []
        #Option     "ShadowFB"           	# []
        #Option     "Rotate"             	# []
        #Option     "VideoRAM"           	# 
        #Option     "ActiveDevice"       	# []
        #Option     "BusWidth"           	# []
        #Option     "Center"             	# []
        #Option     "PanelSize"          	# []
        #Option     "ForcePanel"         	# []
        #Option     "TVDotCrawl"         	# []
        #Option     "TVDeflicker"        	# 
        #Option     "TVType"             	# []
        #Option     "TVOutput"           	# []
        #Option     "TVPort"             	# []
        #Option     "DisableVQ"          	# []
        #Option     "DisableIRQ"         	# []
        #Option     "EnableAGPDMA"       	# []
        #Option     "NoAGPFor2D"         	# []
        #Option     "NoXVDMA"            	# []
        #Option     "VbeSaveRestore"     	# []
        #Option     "DisableXvBWCheck"   	# []
        #Option     "ModeSwitchMethod"   	# []
        #Option     "MaxDRIMem"          	# 
        #Option     "AGPMem"             	# 
	Identifier  "Card0"
	Driver      "openchrome"
	VendorName  "VIA Technologies, Inc."
	BoardName   "K8M800/K8N800/K8N800A [S3 UniChrome Pro]"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth 24		# add 20111113
	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
		Modes     "1280x1024" "1024x768" "800x600" "640x480" #20111113 add
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes     "1280x1024" "1024x768" "800x600" "640x480" #20111113 add
	EndSubSection
EndSection
----------

Copyright (C) 2013 雑 All Rights Reserved.