0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ProxmoxでCT(Linuxコンテナ)を作った後の作業(自分用メモ)

Posted at

CT作成

全般

image.png

  • ホスト名付ける
  • パスワード付ける

テンプレート

image.png

  • テンプレート選ぶ(今回はUbuntu-2410)

ディスク

image.png

  • 適宜サイズを調整する(今回は20G)

CPU

image.png

  • 適当に(今回はテスト用なので1コア)

メモリ

image.png

  • 適当に(今回はテスト用なので512M)

ネットワーク

image.png

  • 適宜選ぶ(今回はテスト用なのでBBルータDHCPで)

DNS

image.png

  • 適宜選ぶ(今回はテスト用なのでたぶんDHCPからとってくれるはず)

確認

image.png

  • 問題なければ「完了」し、Linuxコンテナ作る

TASKOK

image.png

ログイン

image.png

  • データセンター→ノード→サマリ画面から「開始」

image.png

  • コンソールでログインプロンプト
  • ユーザー名:root、CT作成時のパスワードでログインする
    image.png

グループ作成

# groupadd -g 10000 user
  • 適当に10000ぐらいのgidでuserグループを作成

ユーザー作成

# useradd -u 10000 -g 10000 testuser

image.png

  • 確認

パスワード設定

# passw testuser

各パッケージのアップデート

# apt update
# apt upgrade

エディタ変更

# apt install vim emacs
  • とりあえず、vim、emacs入れておく
# update-alternatives --config editor
  • デフォルトエディタ変更(これやっておかないとnanoが起動するが、使い方がわからない)
    image.png
  • viでもEmacsでも好きな物を

sudoできるようにする

# usermod -aG sudo testuser
  • 正しいやり方はよくわからないが、sudoグループに入れた人に権限付けるがよさそう
# visudo
  • visudoでsudoできるユーザー管理ファイル編集
    image.png
  • sudoグループに属している人はパスワードなし設定
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?