■接続
ssh root@hostname
■アップデートするyum update
■日本語化
cd /etc/sysconfig/
バックアップ
cp i18n i18n.org
編集
vi i18n
差分
diff i18n i18n.org
1c1
LANG="jp_JP.UTF-8"
---
LANG="C"
エラーが出た
su -
-bash: warning: setlocale: LC_CTYPE: cannot change locale (jp_JP.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (jp_JP.UTF-8): No such file or directory
-bash: warning: setlocale: LC_MESSAGES: cannot change locale (jp_JP.UTF-8): No such file or directory
-bash: warning: setlocale: LC_NUMERIC: cannot change locale (jp_JP.UTF-8): No such file or directory
-bash: warning: setlocale: LC_TIME: cannot change locale (jp_JP.UTF-8): No such file or directory
原因 localeが設定できない
locale -a | grep ja
locale -a | grep ja
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
ja_JP
ja_JP.eucjp
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc
ja_JP.utf8を使う
vi /etc/sysconfig/i18n
LANG="ja_JP.utf8"
OK
■ユーザー作成
useradd user
passwd user
■sudoの設定
usermod -G wheel user
vi sudo
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL ⬅コメントアウトを外す
0 件のコメント:
コメントを投稿