{"id":3884,"date":"2026-03-10T09:41:21","date_gmt":"2026-03-10T00:41:21","guid":{"rendered":"https:\/\/oohito.com\/nqthm\/?p=3884"},"modified":"2026-03-10T09:41:21","modified_gmt":"2026-03-10T00:41:21","slug":"liva%e3%81%abubuntu-24-04%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/oohito.com\/nqthm\/archives\/3884","title":{"rendered":"Liva\u306bubuntu 24.04\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"\n<p>\u9577\u3089\u304f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u4f7f\u3063\u3066\u3044\u305fLiva\u306e\u8abf\u5b50\u304c\u60aa\u304f\u306a\u308a\u3001ubuntu server 24.04 \u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u30a8\u30e9\u30fc\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u5185\u8535\u306eemmc\u304c\u5bff\u547d\u304b\u3082\u3057\u308c\u306a\u3044\u3068\u601d\u3044\u3001\u30b9\u30c6\u30a3\u30c3\u30af\u578bSSD\u3092\u4ed8\u3051\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u8a66\u307f\u3066\u3082\u3084\u306f\u308a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u6700\u7d42\u6bb5\u968e\u3067\u5931\u6557\u3057\u3066\u3057\u307e\u3046\u3002\u3068\u308a\u3042\u3048\u305a\u8d77\u52d5\u306f\u3067\u304d\u308b\u3082\u306e\u306e\u3001\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u306a\u3069\u304c\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u30ed\u30b0\u30a4\u30f3\u3059\u3089\u3067\u304d\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u305d\u3093\u306a\u3068\u304d\u306e\u5099\u5fd8\u9332\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">LVM\u3092\u4f7f\u308f\u305a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067LVM\u304c\u6709\u52b9\u306b\u306a\u308b\u304c\u3001\u5f8c\u306egrub\u3067\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u898b\u3064\u304b\u3089\u306a\u304f\u306a\u308b\u306e\u3067\u3001LVM\u306f\u7121\u52b9\u306b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u7279\u306b\u8a2d\u5b9a\u306f\u30a4\u30b8\u3089\u306a\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30ec\u30b9\u30ad\u30e5\u30fc\u30e2\u30fc\u30c9\u3067\u8d77\u52d5\u3059\u308b<\/h2>\n\n\n\n<p>Liva\u3092\u518d\u8d77\u52d5\u3057\u3001\u521d\u671f\u753b\u9762\u3067ESC\u3092\u9023\u6253\u3057\u3066 grub \u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u79fb\u308a\u3001\u4ee5\u4e0b\u3092\u5165\u529b\u3059\u308b\u3002(hd1,gpt2)\u3084\u30ab\u30fc\u30cd\u30eb\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u3068\u3053\u308d\u306f\u9069\u5b9c\u4fee\u6b63\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grub> set root=(hd1,gpt2)\ngrub> linux \/boot\/vmlinuz-x.y.z-w-generic root=\/dev\/nvme0n1p5 systemd.unit=rescue.target\ngrub> initrd \/boot\/initrd.img-x.y.z-w-generic\ngrub> boot<\/code><\/pre>\n\n\n\n<p>linux\u884c\u306e\u6700\u5f8c\u306bsystemd.unit=rescue.target\u3092\u4ed8\u3051\u308b\u3002\u518d\u8d77\u52d5\u3059\u308b\u3068root\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u306a\u308c\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3059\u308b<\/h2>\n\n\n\n<p>\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u3001sudo \u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002hoge\u306f\u9069\u5b9c\u4fee\u6b63\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># adduser hoge\n# gpasswd -a hoge sudo<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30db\u30b9\u30c8\u540d\u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n\n\n\n<p>\u3053\u306e\u3042\u305f\u308a\u3082\u968f\u5206\u5909\u308f\u3063\u305f\u3082\u3093\u3060\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># hostnamectl set-hostname liva<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n\n\n\n<p>\/etc\/netplan\/01-netcfg.yaml\u3092\u4f5c\u6210\u3057\u3066\u4ee5\u4e0b\u3092\u5165\u529b\u3059\u308b\u3002\u56fa\u5b9aIP\u3068\u304b\u306f\u5f8c\u3067\u3084\u308c\u3070\u3044\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>network:\n  version: 2\n  renderer: networkd\n  ethernets:\n    enp3s0:\n      dhcp4: true\n      dhcp6: true<\/code><\/pre>\n\n\n\n<p>netplan apply \u3092\u5b9f\u884c\u3002\u30cd\u30c3\u30c8\u304c\u4f7f\u3048\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># netplan apply<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">apt update \u3068 upgrade<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># apt update\n# apt upgrade<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u3082\u308d\u3082\u308d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># apt install openssh-server syncthing tmux avahi-daemon<\/code><\/pre>\n\n\n\n<p>\u3042\u3068\u306f\u3082\u308d\u3082\u308d\u8a2d\u5b9a\u3002<\/p>\n\n\n\n<p>SSD\u306b\u30b9\u30ef\u30c3\u30d7\u30a4\u30e1\u30fc\u30b8\u4f5c\u308b\u306e\u306f\u3042\u3068\u3042\u3068\u4e0d\u5b89\u306a\u306e\u3067\u3001\u9069\u5f53\u306aUSB\u30e1\u30e2\u30ea\u3092\u523a\u3057\u3066\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9577\u3089\u304f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u4f7f\u3063\u3066\u3044\u305fLiva\u306e\u8abf\u5b50\u304c\u60aa\u304f\u306a\u308a\u3001ubuntu server 24.04 \u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u30a8\u30e9\u30fc\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002 \u5185\u8535\u306eemmc\u304c\u5bff\u547d\u304b\u3082\u3057\u308c\u306a\u3044\u3068\u601d\u3044\u3001&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-3884","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/3884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/comments?post=3884"}],"version-history":[{"count":3,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/3884\/revisions"}],"predecessor-version":[{"id":3887,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/3884\/revisions\/3887"}],"wp:attachment":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/media?parent=3884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/categories?post=3884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/tags?post=3884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}