#author("2020-04-13T07:44:40+09:00","default:egashira","egashira")
#author("2020-04-13T07:47:48+09:00","default:egashira","egashira")
[[FrontPage]]

*Manjaro [#pb3cb872]
**ミラーサイトを更新 [#m3dea56a]
|BGCOLOR(black):COLOR(white):|c
|[manjaro ~]# pacman-mirrors --fasttrack && pacman -Syy|

**リポジトリ同期 [#z4c77043]
|BGCOLOR(black):COLOR(white):|c
|[manjaro ~]# pacman -Syy|

**システムアップデート [#s1d009f0]
|BGCOLOR(black):COLOR(white):|c
|[manjaro ~]# pacman -Syu|

**ssh起動・有効化 [#gd95fe72]
|BGCOLOR(black):COLOR(white):|c
|[manjaro ~]# systemctl start sshd.service|
|[manjaro ~]# systemctl enable sshd.service|

**ユーザー追加 [#p52febf0]
|BGCOLOR(black):COLOR(white):|c
|[manjaro ~]# useradd manko|
|[manjaro ~]# passwd manko|

**root ユーザーにスイッチ可能なユーザーを制限する [#k9da3e9c]
|BGCOLOR(black):COLOR(white):|c
|[manjaro ~]# usermod -G adm manko|
|[manjaro ~]# vi /etc/pam.d/su|
|auth       required   pam_wheel.so group=adm|

**コマンドエイリアスの設定 [#q724928f]
|BGCOLOR(black):COLOR(white):|c
|[manjaro ~]# vi /etc/profile.d/command_alias.sh|
 alias ll='ls $LS_OPTIONS -l'
 alias l='ls $LS_OPTIONS -lA'
 alias rm='rm -i'
 alias cp='cp -i'
 alias mv='mv -i'
|BGCOLOR(black):COLOR(white):|c
|[manjaro ~]# source /etc/profile.d/command_alias.sh|

**IPv6無効化 [#k9901e92]
|BGCOLOR(black):COLOR(white):|c
|[manjaro ~]# echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf|
|[manjaro ~]# sysctl -p|
|[manjaro ~]# ip addr|

**Vim のインストールと設定 [#o67a452f]
|BGCOLOR(black):COLOR(white):|c
|[manjaro ~]# pacman -S vim|
|[manjaro ~]# mkdir /etc/vim|
|[manjaro ~]# vi /etc/vim/vimrc|
 set nocompatible
 set encoding=euc-jp
 set fileencodings=UTF-8,iso-2022-jp,sjis
 set fileformats=unix,dos
 set nobackup
 set history=50
 set ignorecase
 set smartcase
 set hlsearch
 set incsearch
 set number
 set showmatch
 set binary noeol
 set noautoindent
 syntax on
 highlight Comment ctermfg=LightCyan
 set wrap

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS