Memo/Linux/Fedora core 5
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#ls
#contents
*Fedora core 5 [#p190aa57]
*インストールメモ [#k6522e83]
~最新版パッチが適用されたisoイメージを [[Fedora Unity Tor...
DVDを焼いてインストール。
**インストールパッケージ [#n831964c]
「Development Tools」と「Legacy Network Server」「Legacy ...
[root@localhost ~]# yum grouplist
Installed Groups:
Office/Productivity
MySQL Database
Editors
System Tools
Text-based Internet
X Software Development
DNS Name Server
GNOME Desktop Environment
Authoring and Publishing
FTP Server
Network Servers
Java Development
X Window System
Graphics
Web Server
Windows File Server
Printing Support
Mail Server
Server Configuration Tools
Sound and Video
PostgreSQL Database
Administration Tools
News Server
Development Tools
Graphical Internet
Available Groups:
Engineering and Scientific
Window Managers
GNOME Software Development
XFCE Software Development
Legacy Network Server
Hardware Support
Games and Entertainment
XFCE
Legacy Software Development
Web Development
Eclipse
KDE Software Development
KDE (K Desktop Environment)
Educational Software
Done
**設定変更 [#ua533ff2]
~以後、ifconfigでIPを調べてからリモート操作。
***ホスト名設定 [#bf8a33f8]
#vi /etc/sysconfig/network
--------------------------------
NETWORKING=yes
HOSTNAME=tech-fsv
--------------------------------
# service network restart
***表示言語を日本語に [#ba8daed2]
# echo $LANG
en_US.UTF-8
[root@localhost misc]# locale -a | grep -i ja
ja_JP
ja_JP.eucjp
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc
# vi /etc/sysconfig/i18n
LANG="ja_JP.eucjp"
***ユーザ追加 [#v1a74dd9]
# useradd example
# passwd example
***yumの参照先を国内のミラーサーバに変更 [#n7f256a8]
# vi /etc/yum.repos.d/local-base
--------------------------------------------------------...
http://ftp.kddilabs.jp/Linux/packages/fedora/core/5/$ARC...
http://ftp.riken.go.jp/Linux/fedora/core/5/$ARCH/os/
http://ftp.iij.ad.jp/pub/linux/fedora/core/5/$ARCH/os/
--------------------------------------------------------...
# vi /etc/yum.repos.d/local-updates
--------------------------------------------------------...
http://ftp.kddilabs.jp/Linux/packages/fedora/core/update...
http://ftp.riken.go.jp/Linux/fedora/core/updates/5/$ARCH/
http://ftp.iij.ad.jp/pub/linux/fedora/core/updates/5/$AR...
--------------------------------------------------------...
# vi /etc/yum.repos.d/local-extras
--------------------------------------------------------...
http://ftp.kddilabs.jp/Linux/packages/fedora/extras/5/$A...
http://ftp.riken.go.jp/Linux/fedora/extras/5/$ARCH/
http://ftp.iij.ad.jp/pub/linux/fedora/extras/5/$ARCH/
--------------------------------------------------------...
# vi /etc/yum.repos.d/fedora-core.repo
--------------------------------------------------------...
#mirrorlist=http://fedora.redhat.com/download/mirrors/fe...
mirrorlist=file:///etc/yum.repos.d/local-base
--------------------------------------------------------...
# vi /etc/yum.repos.d/fedora-updates.repo
--------------------------------------------------------...
#mirrorlist=http://fedora.redhat.com/download/mirrors/up...
mirrorlist=file:///etc/yum.repos.d/local-updates
--------------------------------------------------------...
# vi /etc/yum.repos.d/fedora-extras.repo
--------------------------------------------------------...
#mirrorlist=http://fedora.redhat.com/download/mirrors/fe...
mirrorlist=file:///etc/yum.repos.d/local-extras
--------------------------------------------------------...
# yum update
-[[国内のミラーサイトでFedora Extrasを使うには>http://www...
***メモリ節約 [#f130f4a1]
-仮想コンソールを減らす(6->2)
# vi /etc/inittab
-----------------------
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
#3:2345:respawn:/sbin/mingetty tty3
#4:2345:respawn:/sbin/mingetty tty4
#5:2345:respawn:/sbin/mingetty tty5
#6:2345:respawn:/sbin/mingetty tty6
-----------------------
再起動
-不要なサービス停止
***その他 [#s40bf3db]
-アクセス制限
# vi /etc/hosts.allow
--------------------------------------------------------...
ALL: 127.
ALL: 192.168.
--------------------------------------------------------...
# vi /etc/hosts.deny
--------------------------------------------------------...
ALL: ALL
--------------------------------------------------------...
# service sshd restart
-時刻合わせ
# crontab -e
----------------------------------------
# Time Adjust 毎日2:43に時刻合わせ
43 2 * * * (/usr/sbin/ntpdate ntp.ring.gr.jp) > /dev/nul...
# CMOS Time Writting 1週間に一度ハードウェアクロックを更新
15 1 * * 7 (/sbin/hwclock --systohc) >/dev/null 2>&1
----------------------------------------
-logrotate
# vi /etc/logrotate.conf
----
compress
----
-locateが使えるように。~
※/etc/cron.daily/mlocate.cron で毎日1回実行される。
# updatedb
-xで文字化けする場合は、日本語フォントをインストール
# yum install fonts-japanese
-rootでも色つき編集を
# vi .bashrc
----
alias vi='vim'
----
**不具合 [#r5aa6b29]
***マウスカーソルが出ない&画面がとぎれる [#wb3091c5]
-マウスをクリックすると、反応はあるがカーソルが表示されない
-画面がとぎれている。800x600までしか表示できない
--Driverを"i810"から標準の"vesa"に変更したら正しく表示さ...
--それでもマウスが出ない場合は、Option "HWCursor" "o...
--/etc/X11/xorg.conf
Section "Device"
Identifier "Videocard0"
Driver "vesa"
VendorName "Videocard vendor"
BoardName "Intel Corporation 82865G Integrated ...
# Option "HWCursor" "off"
EndSection
**Apache [#re92d66c]
-/etc/httpd/conf/httpd.conf
#AddDefaultCharset UTF-8
AddDefaultCharset Off
**関連リンク [#r253a6d7]
-[[Fedora JP Project>http://fedora.jp/]]
/////////////////////////////////////////////////////////...
終了行:
#ls
#contents
*Fedora core 5 [#p190aa57]
*インストールメモ [#k6522e83]
~最新版パッチが適用されたisoイメージを [[Fedora Unity Tor...
DVDを焼いてインストール。
**インストールパッケージ [#n831964c]
「Development Tools」と「Legacy Network Server」「Legacy ...
[root@localhost ~]# yum grouplist
Installed Groups:
Office/Productivity
MySQL Database
Editors
System Tools
Text-based Internet
X Software Development
DNS Name Server
GNOME Desktop Environment
Authoring and Publishing
FTP Server
Network Servers
Java Development
X Window System
Graphics
Web Server
Windows File Server
Printing Support
Mail Server
Server Configuration Tools
Sound and Video
PostgreSQL Database
Administration Tools
News Server
Development Tools
Graphical Internet
Available Groups:
Engineering and Scientific
Window Managers
GNOME Software Development
XFCE Software Development
Legacy Network Server
Hardware Support
Games and Entertainment
XFCE
Legacy Software Development
Web Development
Eclipse
KDE Software Development
KDE (K Desktop Environment)
Educational Software
Done
**設定変更 [#ua533ff2]
~以後、ifconfigでIPを調べてからリモート操作。
***ホスト名設定 [#bf8a33f8]
#vi /etc/sysconfig/network
--------------------------------
NETWORKING=yes
HOSTNAME=tech-fsv
--------------------------------
# service network restart
***表示言語を日本語に [#ba8daed2]
# echo $LANG
en_US.UTF-8
[root@localhost misc]# locale -a | grep -i ja
ja_JP
ja_JP.eucjp
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc
# vi /etc/sysconfig/i18n
LANG="ja_JP.eucjp"
***ユーザ追加 [#v1a74dd9]
# useradd example
# passwd example
***yumの参照先を国内のミラーサーバに変更 [#n7f256a8]
# vi /etc/yum.repos.d/local-base
--------------------------------------------------------...
http://ftp.kddilabs.jp/Linux/packages/fedora/core/5/$ARC...
http://ftp.riken.go.jp/Linux/fedora/core/5/$ARCH/os/
http://ftp.iij.ad.jp/pub/linux/fedora/core/5/$ARCH/os/
--------------------------------------------------------...
# vi /etc/yum.repos.d/local-updates
--------------------------------------------------------...
http://ftp.kddilabs.jp/Linux/packages/fedora/core/update...
http://ftp.riken.go.jp/Linux/fedora/core/updates/5/$ARCH/
http://ftp.iij.ad.jp/pub/linux/fedora/core/updates/5/$AR...
--------------------------------------------------------...
# vi /etc/yum.repos.d/local-extras
--------------------------------------------------------...
http://ftp.kddilabs.jp/Linux/packages/fedora/extras/5/$A...
http://ftp.riken.go.jp/Linux/fedora/extras/5/$ARCH/
http://ftp.iij.ad.jp/pub/linux/fedora/extras/5/$ARCH/
--------------------------------------------------------...
# vi /etc/yum.repos.d/fedora-core.repo
--------------------------------------------------------...
#mirrorlist=http://fedora.redhat.com/download/mirrors/fe...
mirrorlist=file:///etc/yum.repos.d/local-base
--------------------------------------------------------...
# vi /etc/yum.repos.d/fedora-updates.repo
--------------------------------------------------------...
#mirrorlist=http://fedora.redhat.com/download/mirrors/up...
mirrorlist=file:///etc/yum.repos.d/local-updates
--------------------------------------------------------...
# vi /etc/yum.repos.d/fedora-extras.repo
--------------------------------------------------------...
#mirrorlist=http://fedora.redhat.com/download/mirrors/fe...
mirrorlist=file:///etc/yum.repos.d/local-extras
--------------------------------------------------------...
# yum update
-[[国内のミラーサイトでFedora Extrasを使うには>http://www...
***メモリ節約 [#f130f4a1]
-仮想コンソールを減らす(6->2)
# vi /etc/inittab
-----------------------
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
#3:2345:respawn:/sbin/mingetty tty3
#4:2345:respawn:/sbin/mingetty tty4
#5:2345:respawn:/sbin/mingetty tty5
#6:2345:respawn:/sbin/mingetty tty6
-----------------------
再起動
-不要なサービス停止
***その他 [#s40bf3db]
-アクセス制限
# vi /etc/hosts.allow
--------------------------------------------------------...
ALL: 127.
ALL: 192.168.
--------------------------------------------------------...
# vi /etc/hosts.deny
--------------------------------------------------------...
ALL: ALL
--------------------------------------------------------...
# service sshd restart
-時刻合わせ
# crontab -e
----------------------------------------
# Time Adjust 毎日2:43に時刻合わせ
43 2 * * * (/usr/sbin/ntpdate ntp.ring.gr.jp) > /dev/nul...
# CMOS Time Writting 1週間に一度ハードウェアクロックを更新
15 1 * * 7 (/sbin/hwclock --systohc) >/dev/null 2>&1
----------------------------------------
-logrotate
# vi /etc/logrotate.conf
----
compress
----
-locateが使えるように。~
※/etc/cron.daily/mlocate.cron で毎日1回実行される。
# updatedb
-xで文字化けする場合は、日本語フォントをインストール
# yum install fonts-japanese
-rootでも色つき編集を
# vi .bashrc
----
alias vi='vim'
----
**不具合 [#r5aa6b29]
***マウスカーソルが出ない&画面がとぎれる [#wb3091c5]
-マウスをクリックすると、反応はあるがカーソルが表示されない
-画面がとぎれている。800x600までしか表示できない
--Driverを"i810"から標準の"vesa"に変更したら正しく表示さ...
--それでもマウスが出ない場合は、Option "HWCursor" "o...
--/etc/X11/xorg.conf
Section "Device"
Identifier "Videocard0"
Driver "vesa"
VendorName "Videocard vendor"
BoardName "Intel Corporation 82865G Integrated ...
# Option "HWCursor" "off"
EndSection
**Apache [#re92d66c]
-/etc/httpd/conf/httpd.conf
#AddDefaultCharset UTF-8
AddDefaultCharset Off
**関連リンク [#r253a6d7]
-[[Fedora JP Project>http://fedora.jp/]]
/////////////////////////////////////////////////////////...
ページ名: