10月 04

LINUX-グラフィカルモードからCUI起動の設定

By ststyle Linux, TIPS コメントは受け付けていません。

—————————————-
■グラフィカルモードからCUI起動の設定
—————————————-
本設定はXをインストールのときに
必要に応じて設定する.


$ su -
# vi /etc/inittab

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

3がCUI
5がGUI

Tagged with:
10月 04

■Linuxのホスト名を変更する

設定箇所は2箇所

hostsファイルとnetworkファイル

::hosts::


#vi /etc/hosts
127.0.0.1 xxxx localhost.localdomain localhost

::network::


#vi etc/sysconfig/network

NETWORKING=yes
HOSTNAME=xxxx
GATEWAY=192.168.0.1

設定後はリブートし確認


hostname

hostname -s
Tagged with:
preload preload preload