Last active
August 29, 2015 14:03
-
-
Save jollyjoester/e6140e162f5d6a3f55c6 to your computer and use it in GitHub Desktop.
Simple setting CentOS6.5 on Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #yum更新 | |
| yum -y update | |
| #vim install | |
| yum -y install vim-enhanced | |
| #ssh install | |
| yum -y install openssh-server | |
| /etc/init.d/sshd start | |
| #httpd install | |
| yum -y install httpd | |
| #エイリアス適用 | |
| vim /etc/profile | |
| #最終行に下記追記 | |
| alias vi='vim' | |
| alias ll='ls -laG' | |
| #ユーザー作成 | |
| useradd hoge -G wheel | |
| passwd hoge | |
| #以下の様に怒られた | |
| #Changing password for user hoge. | |
| #New password: | |
| #/usr/share/cracklib/pw_dict.pwd: No such file or directory | |
| #PWOpen: No such file or directory | |
| #cracklib-dictsを入れ直す | |
| rpm -e cracklib-dicts --nodeps | |
| yum -y install cracklib-dicts | |
| #再度パスワード変更、ここではhoge1234と設定 | |
| passwd hoge | |
| #sudoが入ってないとき | |
| yum -y install sudo | |
| visudo | |
| #下記のコメント消す&ユーザー追加(もしくはユーザーをグループに加える?) | |
| ## Allows people in group wheel to run all commands | |
| %wheel ALL=(ALL) ALL | |
| su hoge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
update