編集の要約なし |
|||
(同じ利用者による、間の138版が非表示) | |||
1行目: | 1行目: | ||
インストールするOSは最低限の機能を含んだもの「Minimal」を選択する。必要なソフトは必要になったら適宜インストールする。必要なのはサーバ環境なのでGUI環境はインストールしない。 | |||
===Ctrlキーを有効化(設定ファイル)=== | ===Ctrlキーを有効化(設定ファイル)=== | ||
# vi /etc/default/keyboard | # vi /etc/default/keyboard | ||
18行目: | 8行目: | ||
# systemctl restart console-setup | # systemctl restart console-setup | ||
Ctrlキーを有効化(コマンドライン) | |||
$ gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:swapcaps']" | $ gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:swapcaps']" | ||
$ gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']" | $ gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']" | ||
=== | ===必要パッケージの追加=== | ||
$ apt install terminator | |||
$ dpkg -i /tmp/moz0/google-chrome-stable.deb | |||
== | ==ファイアウォール== | ||
===Debian系=== | ===Debian系=== | ||
# systemctl status ufw | # systemctl status ufw | ||
56行目: | 23行目: | ||
# ufw status numbered | # ufw status numbered | ||
# ufw allow http | # ufw allow http | ||
# ufw limit 23098/tcp comment 'SSH port' ← ポートを許可(マニュアル) | |||
# ufw allow from 192.168.0.2/24 to any port 23098 | # ufw allow from 192.168.0.2/24 to any port 23098 | ||
# ufw status numbered | # ufw status numbered | ||
67行目: | 35行目: | ||
# setenforce 1 | # setenforce 1 | ||
# vi /etc/selinux/config | # vi /etc/selinux/config | ||
==その他の設定== | |||
===Kali の場合=== | |||
ブルートゥースを稼働させる。 | |||
# systemctl enable bluetooth | |||
# systemctl start bluetooth | |||
===Raspberry Pi の場合=== | |||
以下のコマンドでキーボードレイアウトやタイムゾーン、Wi-Fi の設定などができる。 | |||
$ sudo raspi-config | |||
===RH系=== | |||
# yum update | |||
# yum install yum-cron | |||
# timedatectl status | |||
# timedatectl set-timezone Asia/Tokyo | |||
# date | |||
===ソフト (機能) の追加=== | |||
* [[Webサーバ機能の追加]] | |||
* [[DNSサーバ機能の追加]] | |||
==デスクトップ環境== | |||
===conky=== | |||
# apt install -y conky | |||
# vi ~/.conkyrc ← 既存のものを参照 | |||
# cat <<EOF > ~/.config/autostart/conky.desktop | |||
[Desktop Entry] | |||
Type=Application | |||
Exec=/usr/bin/conky | |||
Hidden=false | |||
NoDisplay=false | |||
X-GNOME-Autostart-enabled=true | |||
Name=conky | |||
Comment= | |||
EOF |
2023年3月29日 (水) 13:07時点における最新版
インストールするOSは最低限の機能を含んだもの「Minimal」を選択する。必要なソフトは必要になったら適宜インストールする。必要なのはサーバ環境なのでGUI環境はインストールしない。
Ctrlキーを有効化(設定ファイル)
# vi /etc/default/keyboard XKBOPTIONS="ctrl:swapcaps" XKBOPTIONS="ctrl:nocaps" # systemctl restart console-setup
Ctrlキーを有効化(コマンドライン)
$ gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:swapcaps']" $ gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"
必要パッケージの追加
$ apt install terminator $ dpkg -i /tmp/moz0/google-chrome-stable.deb
ファイアウォール
Debian系
# systemctl status ufw # ufw enable # ufw status verbose # ufw status numbered # ufw allow http # ufw limit 23098/tcp comment 'SSH port' ← ポートを許可(マニュアル) # ufw allow from 192.168.0.2/24 to any port 23098 # ufw status numbered # ufw delete 2 ← specify a port number
RH系
# firewall-cmd --get-default # firewall-cmd --list-services # firewall-cmd --list-all # getenforce # setenforce 1 # vi /etc/selinux/config
その他の設定
Kali の場合
ブルートゥースを稼働させる。
# systemctl enable bluetooth # systemctl start bluetooth
Raspberry Pi の場合
以下のコマンドでキーボードレイアウトやタイムゾーン、Wi-Fi の設定などができる。
$ sudo raspi-config
RH系
# yum update # yum install yum-cron # timedatectl status # timedatectl set-timezone Asia/Tokyo # date
ソフト (機能) の追加
デスクトップ環境
conky
# apt install -y conky # vi ~/.conkyrc ← 既存のものを参照 # cat <<EOF > ~/.config/autostart/conky.desktop [Desktop Entry] Type=Application Exec=/usr/bin/conky Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name=conky Comment= EOF