Self/PC/BW/Arch/1stConfig
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
*1stConfig for Arch / NotePC実機 [#q7ad445b]
**無線LANの設定を覚えさせる [#vb361395]
[[iwdの資料:https://wiki.archlinux.jp/index.php/Iwd]] を参考にしつつ...
# loadkeys jp106
(日本語キーボードにする)
# systemctl enable NetworkManager
# systemctl start NetworkManager
# systemctl enable iwd
# systemctl start iwd
# iwctl
[iwd]# device list
[iwd]# station wlan0 get-networks
[iwd]# station wlan0 connect SSID
[iwd]# quit
# ping www.google.co.jp
(ping 確認)
# ip addr
(IPアドレス確認)
IP アドレスが拾えていない場合
# nano /etc/iwd/main.conf
[General]
EnableNetworkConfiguration=True
# nano /etc/systemd/network/all.network
[Match]
Name=*
[Network]
DHCP=ipv4
$ sudo systemctl disable systemd-resolved.service
$ sudo systemctl stop systemd-resolved.service
$ sudo mv /etc/resolv.conf /etc/resolv.conf.org
$ sudo nano /etc/resolv.conf
nameserver 8.8.8.8
$ sudo chmod u-w /etc/resolv.conf
$ ping www.google.co.jp
$ sudo systemctl enable systemd-resolved.service
$ sudo systemctl start systemd-resolved.service
# iwctl
[iwd]# station wlan0 connect SSID
[iwd]# quit
**ユーザーをつくり、sudo できるようにする [#pc8adbf8]
# useradd -m -g users -s /bin/bash arqtan
# passwd arqtan
# groupadd sudo
# usermod -G sudo arqtan
# visudo
( %sudo ALL=(ALL) ALL が # でコメントアウトされてるので有効にする)
**SSHd 立ち上げ [#g11f5afc]
# systemctl enable sshd
# systemctl start sshd
**yay 環境投入 [#i7cb5d8d]
$ cd ~/
$ sudo pacman -S base-devel linux-headers git
(開発ツール類とgitを投入)
$ git clone https://aur.archlinux.org/yay.git
$ cd yay
$ makepkg -si
$ cd ../
$ rm -r yay
**X.org 環境投入 [#f40b5239]
$ sudo pacman -S xorg-xinit xorg-server xorg-apps xorg-twm xterm
$ nano ~/.xinitrc
なかみは次の一行だけ :
exec twm
$ startx
***グラフィックドライバなどをいれる [#ca26ccc7]
$ lspci | grep VGA
AMD/ATi とでてくる
$ sudo pacman -S xf86-video-amdgpu xf86-video-ati
グラフィックドライバ投入
$ sudo pacman -S xf86-input-evdev
タッチスクリーンのドライバ投入
***フォント、GNOME、ログインスクリーンの投入 [#a30e26ba]
$ sudo pacman -S noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra ttf-dejavu gnome pulseaudio pavucontrol gvfs network-manager-applet gnome-keyring
必要なのをまとめていれる
$ sudo pacman -S lightdm lightdm-gtk-greeter
lightdm もいれる
$ sudo systemctl enable lightdm
有効化
$ sudo nano /etc/X11/xorg.conf.d/10-keyboard.conf
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "on"
Option "XkbLayout" "jp"
Option "XkbModel" "pc104"
EndSection
(日本語キー設定)
$
***日本語入力がうまくいかない場合 [#x235ec80]
-https://wiki.archlinux.jp/index.php/Fcitx5
--/etc/environment を編集したり
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
--「fcitx5-configtool を実行して、Addons → XCB → Allow Overriding System XKB Settings のチェックを外して」みたりしたらうまくいくかも。
***ホスト名の設定 [#r416e00a]
# hostnamectl set-hostname myhostname
myhostname のところを任意のホスト名にする。
終了行:
*1stConfig for Arch / NotePC実機 [#q7ad445b]
**無線LANの設定を覚えさせる [#vb361395]
[[iwdの資料:https://wiki.archlinux.jp/index.php/Iwd]] を参考にしつつ...
# loadkeys jp106
(日本語キーボードにする)
# systemctl enable NetworkManager
# systemctl start NetworkManager
# systemctl enable iwd
# systemctl start iwd
# iwctl
[iwd]# device list
[iwd]# station wlan0 get-networks
[iwd]# station wlan0 connect SSID
[iwd]# quit
# ping www.google.co.jp
(ping 確認)
# ip addr
(IPアドレス確認)
IP アドレスが拾えていない場合
# nano /etc/iwd/main.conf
[General]
EnableNetworkConfiguration=True
# nano /etc/systemd/network/all.network
[Match]
Name=*
[Network]
DHCP=ipv4
$ sudo systemctl disable systemd-resolved.service
$ sudo systemctl stop systemd-resolved.service
$ sudo mv /etc/resolv.conf /etc/resolv.conf.org
$ sudo nano /etc/resolv.conf
nameserver 8.8.8.8
$ sudo chmod u-w /etc/resolv.conf
$ ping www.google.co.jp
$ sudo systemctl enable systemd-resolved.service
$ sudo systemctl start systemd-resolved.service
# iwctl
[iwd]# station wlan0 connect SSID
[iwd]# quit
**ユーザーをつくり、sudo できるようにする [#pc8adbf8]
# useradd -m -g users -s /bin/bash arqtan
# passwd arqtan
# groupadd sudo
# usermod -G sudo arqtan
# visudo
( %sudo ALL=(ALL) ALL が # でコメントアウトされてるので有効にする)
**SSHd 立ち上げ [#g11f5afc]
# systemctl enable sshd
# systemctl start sshd
**yay 環境投入 [#i7cb5d8d]
$ cd ~/
$ sudo pacman -S base-devel linux-headers git
(開発ツール類とgitを投入)
$ git clone https://aur.archlinux.org/yay.git
$ cd yay
$ makepkg -si
$ cd ../
$ rm -r yay
**X.org 環境投入 [#f40b5239]
$ sudo pacman -S xorg-xinit xorg-server xorg-apps xorg-twm xterm
$ nano ~/.xinitrc
なかみは次の一行だけ :
exec twm
$ startx
***グラフィックドライバなどをいれる [#ca26ccc7]
$ lspci | grep VGA
AMD/ATi とでてくる
$ sudo pacman -S xf86-video-amdgpu xf86-video-ati
グラフィックドライバ投入
$ sudo pacman -S xf86-input-evdev
タッチスクリーンのドライバ投入
***フォント、GNOME、ログインスクリーンの投入 [#a30e26ba]
$ sudo pacman -S noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra ttf-dejavu gnome pulseaudio pavucontrol gvfs network-manager-applet gnome-keyring
必要なのをまとめていれる
$ sudo pacman -S lightdm lightdm-gtk-greeter
lightdm もいれる
$ sudo systemctl enable lightdm
有効化
$ sudo nano /etc/X11/xorg.conf.d/10-keyboard.conf
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "on"
Option "XkbLayout" "jp"
Option "XkbModel" "pc104"
EndSection
(日本語キー設定)
$
***日本語入力がうまくいかない場合 [#x235ec80]
-https://wiki.archlinux.jp/index.php/Fcitx5
--/etc/environment を編集したり
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
--「fcitx5-configtool を実行して、Addons → XCB → Allow Overriding System XKB Settings のチェックを外して」みたりしたらうまくいくかも。
***ホスト名の設定 [#r416e00a]
# hostnamectl set-hostname myhostname
myhostname のところを任意のホスト名にする。
ページ名: