#author("2025-04-13T17:39:06+09:00","default:pengwei-admin","pengwei-admin")
#author("2025-07-27T07:23:29+09:00","default:pengwei","pengwei")
*[[ubuntu/22.04]] [#haa5f16d]
ソースコード:https://launchpad.net/ubuntu
組み込み用はUbuntu Core:https://ubuntu.com/core

#contents
**初期設定 [#r95375e6]
 blog : https://zenn.dev/uchidaryo/books/ubuntu-2204-server-book/viewer/ubuntu
 金子研究室:https://www.kkaneko.jp/tools/ubuntu/ubuntu_setup.html#S7
 sudo usermod -G sudo [sudo使えなかったユーザのユーザ名]   #sudoを使えるようにする

**サーバー設定 [#ea605c65]
 blog : https://zenn.dev/uchidaryo/books/ubuntu-2204-server-book/viewer/introduction

**root有効化[#d12e1c7a]
 su sudo -
 passwd

**add xxuser in sudo [#y63dcbd6]
 usermod -aG sudo xxuser

**location [#o143e328]
 localectl status
 System Locale: LANG=en_US.UTF-8  #英語
 sudo localctl set-locale LANG=ja_JP.UTF-8
 System Locale: LANG=ja_JP.UTF-8 #日本語
 reboot

**ユーザーのホームディレクトリ配下を日本語ディレクトリ名にする [#v477aaec]
 ls -lrt  #Japan dir
 LANG=C xdg-user-dirs-gtk-update   #click UPDATE
 ls -lrt  #English dir
-if truble
https://wiki.weihuasoftware.com/img/ubuntu-22-04_1728089173610.png
 echo $DISPLAY #nothing NG
 export DISPLAY=:0.0
 echo $DISPLAY    #:0.0  OK


**SELINUXとは? [#kae16407]
 SELinux は Security Enhanced Linux の略で、
 Linux システム用に構築されたセキュリティ制御の追加レイヤーです

 sudo apt install policycoreutils selinux-utils selinux-basics
 sudo selinux-activate
 sudo selinux-config-enforcing
 reboot
 sestatus
https://wiki.weihuasoftware.com/img/ubuntu-22-04_1727854088722.png
 SELinux を無効にするには、/etc/selinux/config
 FROM:
 SELINUX=enforcing
 TO:
 SELINUX=disabled

トップ   差分 履歴 リロード   一覧 検索 最終更新   ヘルプ   最終更新のRSS