LoginSignup
3
3

More than 5 years have passed since last update.

CentOS6.xに後からデスクトップ環境を構築

Posted at

経緯

JMeterでテストを行うことになり、適当に空いていたCentOS6.7があったのでJMeterをインストールしたのですが、GUIでテスト計画作成する必要があったので追加でインストールしました

手順

1. 必要なモジュールのインストール

  • 下記必要なモジュールをインストール
# yum -y groupinstall "Desktop" 
# yum -y groupinstall "X Window System" 
# yum -y groupinstall "General Purpose Desktop"
# yum -y groupinstall "Japanese Support"

2. 言語設定

  • /etc/sysconfig/i18nの設定は/etc/profile.d/lang.shでen_US.UTF-8に戻されてしまうため、シェル起動時スクリプトで環境変数を設定する
# vim ~/.bashrc
export LANG=ja_JP.UTF-8

3. 起動時のランレベルの変更

  • 起動時にデスクトップが起動するようにランレベルを変更する
# vim /etc/inittab
id:3:initdefault:
↓
id:5:initdefault:

以上!

雑記

/etc/sysconfig/network-scripts/ifcfg-ethxxNM_CONTROLLEDというパラメータとNetworkManagerのせいでresolv.confが勝手に書き換わってしまっている事に気づかず少しハマリました(^_^;)

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3