Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samwhelp committed Nov 26, 2024
1 parent 77df4b1 commit ddfe635
Showing 1 changed file with 79 additions and 2 deletions.
81 changes: 79 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

# 首頁

> [Lingmo Live Build Config 探索筆記](https://github.com/samwhelp/note-about-lingmo-live-build-config)
> Lingmo Live Build Config 探索筆記
> [Lingmo OS 探索筆記](https://samwhelp.github.io/note-about-lingmo/)
| Link | GitHub |
| ---- | ------ |
| [Lingmo Live Build Config 探索筆記](https://samwhelp.github.io/note-about-lingmo-live-build-config/) | [GitHub](https://github.com/samwhelp/note-about-lingmo-live-build-config) |
| [Lingmo OS 探索筆記](https://samwhelp.github.io/note-about-lingmo/) | [GitHub](https://github.com/samwhelp/note-about-lingmo) |



Expand All @@ -13,7 +16,10 @@

* [相關討論](#相關討論)
* [專案](#專案)
* [Boot ISO By GRUB](#boot-iso-by-grub)
* [Lingmo OS / Live System](#lingmo-os--live-system)
* [連結](#連結)
* [相關筆記](#相關筆記)



Expand Down Expand Up @@ -65,9 +71,80 @@



## Lingmo OS / Live System

| Account | Value |
| -------- | ------ |
| Username | `lingmo` |
| Password | `live` |

若想要移除目前帳號的密碼,可以執行下面指令

``` sh
sudo passwd -d $(whoami)
```




## Boot ISO By GRUB

> 將產出的「iso檔案」放置到「`/opt/iso/lingmo/latest/lingmo.iso`」這個路徑
> 產生一個檔案「`/boot/grub/custom.cfg`」,內容如下
``` sh
menuentry "Lingmo OS" --class Debian {
set iso_file="/opt/iso/lingmo/latest/lingmo.iso"
search --set=iso_partition --no-floppy --file $iso_file
probe --set=iso_partition_uuid --fs-uuid $iso_partition
set img_dev="/dev/disk/by-uuid/$iso_partition_uuid"
loopback loop ($iso_partition)$iso_file

set extra_option=""
#set extra_option="components quiet splash"

set locale_option=""
#set locale_option="locales=en_US.UTF-8"
#set locale_option="locales=zh_TW.UTF-8"
#set locale_option="locales=zh_CN.UTF-8"
#set locale_option="locales=zh_HK.UTF-8"
#set locale_option="locales=ja_JP.UTF-8"
#set locale_option="locales=ko_KR.UTF-8"

set boot_option="${locale_option} ${extra_option}"
linux (loop)/live/vmlinuz boot=live buuid=${iso_partition_uuid} findiso=${iso_file} ${boot_option}
initrd (loop)/live/initrd.img
}
```

> 重新開機後,就會在「GRUB」的開機選單,看到「`Lingmo OS`」這個選項。



## 連結

| 連結 | GitHub |
| ---- | ------ |
| [Debian Live Manual](https://live-team.pages.debian.net/live-manual/html/live-manual/index.en.html) | |
| [Lingmo OS Adjustment](https://samwhelp.github.io/lingmo-adjustment/) | [GitHub](https://github.com/samwhelp/lingmo-adjustment) |





## 相關筆記

| Link | GitHub |
| ---- | ------ |
| [Debian 探索筆記](https://samwhelp.github.io/note-about-debian/) | [GitHub](https://github.com/samwhelp/note-about-debian) |
| [EznixOS 探索筆記](https://samwhelp.github.io/note-about-eznixos/) | [GitHub](https://github.com/samwhelp/note-about-eznixos) |
| [Lika OS 探索筆記](https://samwhelp.github.io/note-about-lika/) | [GitHub](https://github.com/samwhelp/note-about-lika) |




## Samwhelp

* [個人筆記](https://samwhelp.github.io/book/)

0 comments on commit ddfe635

Please sign in to comment.