FuguItaGuide/4-Development
をテンプレートにして作成
Start:
#navi(FuguItaGuide)
This chapter provides information for understanding the i...
#contents
* FuguIta technical information [#s90159e2]
FuguIta is based on OpenBSD, so most of its components ar...
For the specific parts of FuguIta that are different from...
(Please note that some past materials may differ from the...
FuguIta source code can be found at https://github.com/yk...
* Make FuguIta a dedicated machine [#pbeaebe1]
FuguIta has all writable files in memory, so even if the ...
Unless you save files with usbfadm during operation, the ...
Using these characteristics, you can create a dedicated m...
To build such a system, we use a combination of the techn...
- First prepare the operational environment. ~
Start up with startup mode 0, perform various settings, i...
-[[Usbfadm saves the built environment to a USB memory et...
-[[Set the noasks file to start in mode 3 and start up in...
- Edit the [[/etc/ttys>man:ttys.5]] file to launch the ap...
These detailed procedures can be found on this site [[Cre...
#aname(build_fuguita)
*Build of FuguIta [#k4da0e7c]
Although the FuguIta is irregular, we publish the tools w...
In this section, we will explain the procedure for buildi...
-Release: OpenBSD 7.5
-Platform: amd64
In other cases, please read the explanation as appropriate.
>''[Memo]''~
''⇒'' This build tool can generate ISO images for FuguIta...
**Build procedure [#k69118a9]
All operations are performed with root privileges.
***Preparing the build environment [#a324287d]
-Please follow the OpenBSD online manual [[release(8)>man...
-Also, use [[ports(7)>man:ports.7]] to create a package f...
[[Download >FuguIta/Download]] the FuguIta build tool '''...
# tar xvzpf tools-7.5.tar.gz
Move to the top directory of the build tools.
# cd tools-7.5
For arm64 platform, please also download '''sysmedia-7.5-...
Execute the following command to initialize the build tool.
# make init
This will create the files and directories needed for the...
*** Build FuguIta [#ja0ec8b4]
Copy the installation set (*75.tgz) generated by building...
# cp RELDIR/*75.tgz install_sets
'''RELDIR''' is the directory where generated release set...
>''[Memo]''~
''⇒'' You can customize FuguIta by placing a file called ...
If '''install.site''' is included in site75.tgz, its cont...
Please note that if the file sysmedia/fuguita-7.5-amd64.f...
Copy rsync, rlwrap, and pv (and its dependent: gettext-ru...
I also install rsync and pv in the build environment itse...
# cp /usr/ports/packages/amd64/all/rsync-*.tgz install_p...
# cp /usr/ports/packages/amd64/all/rlwrap-*.tgz install_...
# cp /usr/ports/packages/amd64/all/pv-*.tgz install_pkgs
# cp /usr/ports/packages/amd64/all/gettext-runtime-*.tgz...
# cp /usr/ports/packages/amd64/all/libiconv-*.tgz instal...
# pkg_add -D unsigned /usr/ports/packages/amd64/all/rsyn...
# pkg_add -D unsigned /usr/ports/packages/amd64/all/pv-*...
>''[Memo]''~
''⇒''You can also download and use the installation set *...
However, in this case, FuguIta created will be based on O...
Also, even if you create FuguIta using this method, you n...
Next, run the following command to set up the build envir...
# make setup
Finally, build FuguIta LiveDVD.
# make
***Post-build adjustments [#o056da6d]
''Create mode0symlinks.cpio.gz''
This file is intended to save time when starting LiveDVD ...
To create mode0symlinks.cpio.gz, boot the completed LiveD...
Place this file in the build tool's lib directory with th...
''Adjust fuguita_sys_mb''
FuguIta has a file called '''/etc/fuguita/global.conf''',...
fuguita_sys_mb=1042 # size of sysmedia.img
newdrive_defswap=16M # default swap size at usbfadm newd...
memfstype=mfs # 'mfs' or 'tmpfs'
mfs_max_mb=30720 # mfs hard limit - 30GB
Among these, fuguita_sys_mb defines the size of the parti...
The setting value of fuguita_sys_mb corresponds to the si...
# echo $(( $(wc -c < livecd.iso)/1024/1024+10 ))
Write the values displayed by this command to the lib/glo...
#aname(livedvd_remaster)
///*LiveDVDのリマスタリング [#q529c858]
///[[USBメモリの容量に合わせてLiveUSBを作成する>fge3:live...
///>''【メモ】''~
///''⇒''この作業は大きなサイズのファイルを扱うので、mfsの...
///mfsでは足りない場合、他の記録デバイスをマウントしてそ...
///
///このmaster_dvd.shは、動作中のFuguIta LiveDVD、あるいは...
///以下にremaster_dvd.shの使用例を示します。
///
///まず、作業用ディレクトリを作成し、sysmedia以下にあるLi...
*LiveDVD remastering [#p3436b45]
[[Creating a LiveUSB according to the capacity of the USB...
>''[Memo]''~
''⇒''Since this operation deals with large size files, th...
If mfs isn't enough, mount another recording device and w...
This master_dvd.sh can be used with either a working Fugu...
Below is an example of using remaster_dvd.sh.
First, create a working directory and copy the contents o...
fugu-demo# mkdir work
fugu-demo# cd work
fugu-demo# cp -av /sysmedia .
/sysmedia -> ./sysmedia
/sysmedia/boot -> ./sysmedia/boot
/sysmedia/bsd-fi -> ./sysmedia/bsd-fi
/sysmedia/bsd-fi.mp -> ./sysmedia/bsd-fi.mp
/sysmedia/boot.catalog -> ./sysmedia/boot.catalog
/sysmedia/cdboot -> ./sysmedia/cdboot
/sysmedia/cdbr -> ./sysmedia/cdbr
/sysmedia/etc -> ./sysmedia/etc
/sysmedia/etc/boot.conf -> ./sysmedia/etc/boot.conf
/sysmedia/etc/random.seed -> ./sysmedia/etc/random.seed
/sysmedia/fuguita-6.9-amd64.ffsimg -> ./sysmedia/fuguita...
fugu-demo# ls -l
total 8
drwxr-xr-x 3 root wheel 432 May 11 09:21 sysmedia
Run remaster_dvd.sh inside the copied sysmedia directory.
Basically that's all.
fugu-demo# cd sysmedia
fugu-demo# ls -l
total 2008728
-rw-r--r-- 1 root wheel 90496 May 10 20:57 boot
-rwxr--r-- 1 root wheel 2048 May 9 12:31 boot.catalog
-rw-r--r-- 1 root wheel 10273019 May 10 21:04 bsd-fi
-rw-r--r-- 1 root wheel 10302063 May 10 21:04 bsd-f...
-rw-r--r-- 1 root bin 91668 May 10 01:31 cdboot
-rw-r--r-- 1 root bin 2048 May 10 01:31 cdbr
drwxr-xr-x 2 root wheel 96 Apr 17 2014 etc
-rw-r--r-- 1 root wheel 1007681536 May 10 21:08 fugui...
fugu-demo# remaster_dvd.sh
mkhybrid 1.12b5.1
Scanning .
Scanning ./etc
Size of boot image is 4 sectors -> No-emulation CD boot ...
Total translation table size: 0
Total rockridge attributes bytes: 1111
Total directory bytes: 2048
Path table size(bytes): 22
502200 extents written (980 Mb)
After executing remaster_dvd.sh, an ISO image file will b...
fugu-demo# ls -l ..
total 2008808
-rw-r--r-- 1 root wheel 1028505600 May 14 02:34 FuguI...
drwxr-xr-x 3 root wheel 384 May 14 02:34 sysmedia
fugu-demo# ls -l
total 2008720
-rw-r--r-- 1 root wheel 90496 May 10 20:57 boot
-rwxr--r-- 1 root wheel 2048 May 14 02:34 boot.catalog
-rw-r--r-- 1 root wheel 10273019 May 10 21:04 bsd-fi
-rw-r--r-- 1 root wheel 10302063 May 10 21:04 bsd-f...
-rw-r--r-- 1 root bin 91668 May 10 01:31 cdboot
-rw-r--r-- 1 root bin 2048 May 10 01:31 cdbr
drwxr-xr-x 2 root wheel 96 Apr 17 2014 etc
-rw-r--r-- 1 root wheel 1007681536 May 10 21:08 fugui...
///sysmedia中にfuguita-6.9-amd64.ffsimgというファイルがあ...
///このファイルツリー内のファイルを修正することで、LiveDV...
There is a file called fuguita-6.9-amd64.ffsimg in sysmed...
You can customize your LiveDVD by modifying the files in ...
fugu-demo# vnconfig vnd0 fuguita-6.9-amd64.ffsimg
fugu-demo# mount /dev/vnd0a /mnt
fugu-demo# ls -l /mnt
total 52
-rw-r--r-- 1 root wheel 578 May 7 17:43 .cshrc
-rw-r--r-- 1 root wheel 468 May 7 17:43 .profile
drwxr-xr-x 2 root wheel 512 May 7 17:43 altroot
drwxr-xr-x 2 root wheel 1024 May 7 17:46 bin
drwxr-xr-x 2 root wheel 512 May 8 04:16 dev
drwxr-xr-x 23 root wheel 1536 May 8 04:35 etc
drwxr-xr-x 2 root wheel 512 May 7 17:43 home
drwxr-xr-x 2 root wheel 512 May 7 17:43 mnt
drwx------ 3 root wheel 512 May 8 04:35 root
drwxr-xr-x 2 root wheel 1536 May 7 17:46 sbin
lrwxrwx--- 1 root wheel 11 May 7 17:43 sys -> usr...
drwxrwxrwt 2 root wheel 512 May 8 04:19 tmp
drwxr-xr-x 14 root wheel 512 May 8 04:09 usr
drwxr-xr-x 23 root wheel 512 May 7 17:43 var
.... (Customization work) ...
Once customization is complete, close the filesystem imag...
fugu-demo# umount /mnt
fugu-demo# vnconfig -u vnd0
fugu-demo# remaster_dvd.sh
mkhybrid 1.12b5.1
Scanning .
Scanning ./etc
:
:
* LiveUSB disk image remastering [#x2f9919d]
This section introduces how to create a LiveUSB disk imag...
Run usbfadm newdrive:
? : ? ->newdrive
Please make sure the device inserted.
Then press ENTER ->
==== disk(s) and vnode devices =========================...
sd0 at scsibus1 targ 0 lun 0: <ATA, Hitachi HTS72757, JF...
sd0: 715404MB, 512 bytes/sector, 1465149168 sectors
sd1 at scsibus2 targ 1 lun 0: <UFD 3.0, Silicon-Power32G...
sd1: 29624MB, 512 bytes/sector, 60669952 sectors
sd2 at scsibus5 targ 1 lun 0: <BUFFALO, USB Flash Disk, ...
sd2: 7788MB, 512 bytes/sector, 15950592 sectors
img: create FuguIta raw disk image on current directory
========================================================...
Enter the name of device which FuguIta will be installed...
Enter size of a vnode device file.
You can add suffix K, M, G or T (otherwise considered 'b...
->2g
2048+0 records in
2048+0 records out
2147483648 bytes transferred in 3.076 secs (698129518 by...
Disk: vnd0 geometry: 41943/1/100 [4194304 Sectors]
Offset: 0 Signature: 0x0
Starting Ending LBA Info:
#: id C H S - C H S [ start: s...
--------------------------------------------------------...
0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
Select partition type:
1: [MBR]
2: GPT
3: Hybrid (not recommended if you wish modify partiti...
->
~ 略 ~
** Phase 5 - Check Cyl groups
3 files, 3 used, 386996 free (20 frags, 48372 blocks, 0....
? : ? ->bye
Bye bye...
$
A disk image file is created in the current directory by ...
#navi(FuguItaGuide)
End:
#navi(FuguItaGuide)
This chapter provides information for understanding the i...
#contents
* FuguIta technical information [#s90159e2]
FuguIta is based on OpenBSD, so most of its components ar...
For the specific parts of FuguIta that are different from...
(Please note that some past materials may differ from the...
FuguIta source code can be found at https://github.com/yk...
* Make FuguIta a dedicated machine [#pbeaebe1]
FuguIta has all writable files in memory, so even if the ...
Unless you save files with usbfadm during operation, the ...
Using these characteristics, you can create a dedicated m...
To build such a system, we use a combination of the techn...
- First prepare the operational environment. ~
Start up with startup mode 0, perform various settings, i...
-[[Usbfadm saves the built environment to a USB memory et...
-[[Set the noasks file to start in mode 3 and start up in...
- Edit the [[/etc/ttys>man:ttys.5]] file to launch the ap...
These detailed procedures can be found on this site [[Cre...
#aname(build_fuguita)
*Build of FuguIta [#k4da0e7c]
Although the FuguIta is irregular, we publish the tools w...
In this section, we will explain the procedure for buildi...
-Release: OpenBSD 7.5
-Platform: amd64
In other cases, please read the explanation as appropriate.
>''[Memo]''~
''⇒'' This build tool can generate ISO images for FuguIta...
**Build procedure [#k69118a9]
All operations are performed with root privileges.
***Preparing the build environment [#a324287d]
-Please follow the OpenBSD online manual [[release(8)>man...
-Also, use [[ports(7)>man:ports.7]] to create a package f...
[[Download >FuguIta/Download]] the FuguIta build tool '''...
# tar xvzpf tools-7.5.tar.gz
Move to the top directory of the build tools.
# cd tools-7.5
For arm64 platform, please also download '''sysmedia-7.5-...
Execute the following command to initialize the build tool.
# make init
This will create the files and directories needed for the...
*** Build FuguIta [#ja0ec8b4]
Copy the installation set (*75.tgz) generated by building...
# cp RELDIR/*75.tgz install_sets
'''RELDIR''' is the directory where generated release set...
>''[Memo]''~
''⇒'' You can customize FuguIta by placing a file called ...
If '''install.site''' is included in site75.tgz, its cont...
Please note that if the file sysmedia/fuguita-7.5-amd64.f...
Copy rsync, rlwrap, and pv (and its dependent: gettext-ru...
I also install rsync and pv in the build environment itse...
# cp /usr/ports/packages/amd64/all/rsync-*.tgz install_p...
# cp /usr/ports/packages/amd64/all/rlwrap-*.tgz install_...
# cp /usr/ports/packages/amd64/all/pv-*.tgz install_pkgs
# cp /usr/ports/packages/amd64/all/gettext-runtime-*.tgz...
# cp /usr/ports/packages/amd64/all/libiconv-*.tgz instal...
# pkg_add -D unsigned /usr/ports/packages/amd64/all/rsyn...
# pkg_add -D unsigned /usr/ports/packages/amd64/all/pv-*...
>''[Memo]''~
''⇒''You can also download and use the installation set *...
However, in this case, FuguIta created will be based on O...
Also, even if you create FuguIta using this method, you n...
Next, run the following command to set up the build envir...
# make setup
Finally, build FuguIta LiveDVD.
# make
***Post-build adjustments [#o056da6d]
''Create mode0symlinks.cpio.gz''
This file is intended to save time when starting LiveDVD ...
To create mode0symlinks.cpio.gz, boot the completed LiveD...
Place this file in the build tool's lib directory with th...
''Adjust fuguita_sys_mb''
FuguIta has a file called '''/etc/fuguita/global.conf''',...
fuguita_sys_mb=1042 # size of sysmedia.img
newdrive_defswap=16M # default swap size at usbfadm newd...
memfstype=mfs # 'mfs' or 'tmpfs'
mfs_max_mb=30720 # mfs hard limit - 30GB
Among these, fuguita_sys_mb defines the size of the parti...
The setting value of fuguita_sys_mb corresponds to the si...
# echo $(( $(wc -c < livecd.iso)/1024/1024+10 ))
Write the values displayed by this command to the lib/glo...
#aname(livedvd_remaster)
///*LiveDVDのリマスタリング [#q529c858]
///[[USBメモリの容量に合わせてLiveUSBを作成する>fge3:live...
///>''【メモ】''~
///''⇒''この作業は大きなサイズのファイルを扱うので、mfsの...
///mfsでは足りない場合、他の記録デバイスをマウントしてそ...
///
///このmaster_dvd.shは、動作中のFuguIta LiveDVD、あるいは...
///以下にremaster_dvd.shの使用例を示します。
///
///まず、作業用ディレクトリを作成し、sysmedia以下にあるLi...
*LiveDVD remastering [#p3436b45]
[[Creating a LiveUSB according to the capacity of the USB...
>''[Memo]''~
''⇒''Since this operation deals with large size files, th...
If mfs isn't enough, mount another recording device and w...
This master_dvd.sh can be used with either a working Fugu...
Below is an example of using remaster_dvd.sh.
First, create a working directory and copy the contents o...
fugu-demo# mkdir work
fugu-demo# cd work
fugu-demo# cp -av /sysmedia .
/sysmedia -> ./sysmedia
/sysmedia/boot -> ./sysmedia/boot
/sysmedia/bsd-fi -> ./sysmedia/bsd-fi
/sysmedia/bsd-fi.mp -> ./sysmedia/bsd-fi.mp
/sysmedia/boot.catalog -> ./sysmedia/boot.catalog
/sysmedia/cdboot -> ./sysmedia/cdboot
/sysmedia/cdbr -> ./sysmedia/cdbr
/sysmedia/etc -> ./sysmedia/etc
/sysmedia/etc/boot.conf -> ./sysmedia/etc/boot.conf
/sysmedia/etc/random.seed -> ./sysmedia/etc/random.seed
/sysmedia/fuguita-6.9-amd64.ffsimg -> ./sysmedia/fuguita...
fugu-demo# ls -l
total 8
drwxr-xr-x 3 root wheel 432 May 11 09:21 sysmedia
Run remaster_dvd.sh inside the copied sysmedia directory.
Basically that's all.
fugu-demo# cd sysmedia
fugu-demo# ls -l
total 2008728
-rw-r--r-- 1 root wheel 90496 May 10 20:57 boot
-rwxr--r-- 1 root wheel 2048 May 9 12:31 boot.catalog
-rw-r--r-- 1 root wheel 10273019 May 10 21:04 bsd-fi
-rw-r--r-- 1 root wheel 10302063 May 10 21:04 bsd-f...
-rw-r--r-- 1 root bin 91668 May 10 01:31 cdboot
-rw-r--r-- 1 root bin 2048 May 10 01:31 cdbr
drwxr-xr-x 2 root wheel 96 Apr 17 2014 etc
-rw-r--r-- 1 root wheel 1007681536 May 10 21:08 fugui...
fugu-demo# remaster_dvd.sh
mkhybrid 1.12b5.1
Scanning .
Scanning ./etc
Size of boot image is 4 sectors -> No-emulation CD boot ...
Total translation table size: 0
Total rockridge attributes bytes: 1111
Total directory bytes: 2048
Path table size(bytes): 22
502200 extents written (980 Mb)
After executing remaster_dvd.sh, an ISO image file will b...
fugu-demo# ls -l ..
total 2008808
-rw-r--r-- 1 root wheel 1028505600 May 14 02:34 FuguI...
drwxr-xr-x 3 root wheel 384 May 14 02:34 sysmedia
fugu-demo# ls -l
total 2008720
-rw-r--r-- 1 root wheel 90496 May 10 20:57 boot
-rwxr--r-- 1 root wheel 2048 May 14 02:34 boot.catalog
-rw-r--r-- 1 root wheel 10273019 May 10 21:04 bsd-fi
-rw-r--r-- 1 root wheel 10302063 May 10 21:04 bsd-f...
-rw-r--r-- 1 root bin 91668 May 10 01:31 cdboot
-rw-r--r-- 1 root bin 2048 May 10 01:31 cdbr
drwxr-xr-x 2 root wheel 96 Apr 17 2014 etc
-rw-r--r-- 1 root wheel 1007681536 May 10 21:08 fugui...
///sysmedia中にfuguita-6.9-amd64.ffsimgというファイルがあ...
///このファイルツリー内のファイルを修正することで、LiveDV...
There is a file called fuguita-6.9-amd64.ffsimg in sysmed...
You can customize your LiveDVD by modifying the files in ...
fugu-demo# vnconfig vnd0 fuguita-6.9-amd64.ffsimg
fugu-demo# mount /dev/vnd0a /mnt
fugu-demo# ls -l /mnt
total 52
-rw-r--r-- 1 root wheel 578 May 7 17:43 .cshrc
-rw-r--r-- 1 root wheel 468 May 7 17:43 .profile
drwxr-xr-x 2 root wheel 512 May 7 17:43 altroot
drwxr-xr-x 2 root wheel 1024 May 7 17:46 bin
drwxr-xr-x 2 root wheel 512 May 8 04:16 dev
drwxr-xr-x 23 root wheel 1536 May 8 04:35 etc
drwxr-xr-x 2 root wheel 512 May 7 17:43 home
drwxr-xr-x 2 root wheel 512 May 7 17:43 mnt
drwx------ 3 root wheel 512 May 8 04:35 root
drwxr-xr-x 2 root wheel 1536 May 7 17:46 sbin
lrwxrwx--- 1 root wheel 11 May 7 17:43 sys -> usr...
drwxrwxrwt 2 root wheel 512 May 8 04:19 tmp
drwxr-xr-x 14 root wheel 512 May 8 04:09 usr
drwxr-xr-x 23 root wheel 512 May 7 17:43 var
.... (Customization work) ...
Once customization is complete, close the filesystem imag...
fugu-demo# umount /mnt
fugu-demo# vnconfig -u vnd0
fugu-demo# remaster_dvd.sh
mkhybrid 1.12b5.1
Scanning .
Scanning ./etc
:
:
* LiveUSB disk image remastering [#x2f9919d]
This section introduces how to create a LiveUSB disk imag...
Run usbfadm newdrive:
? : ? ->newdrive
Please make sure the device inserted.
Then press ENTER ->
==== disk(s) and vnode devices =========================...
sd0 at scsibus1 targ 0 lun 0: <ATA, Hitachi HTS72757, JF...
sd0: 715404MB, 512 bytes/sector, 1465149168 sectors
sd1 at scsibus2 targ 1 lun 0: <UFD 3.0, Silicon-Power32G...
sd1: 29624MB, 512 bytes/sector, 60669952 sectors
sd2 at scsibus5 targ 1 lun 0: <BUFFALO, USB Flash Disk, ...
sd2: 7788MB, 512 bytes/sector, 15950592 sectors
img: create FuguIta raw disk image on current directory
========================================================...
Enter the name of device which FuguIta will be installed...
Enter size of a vnode device file.
You can add suffix K, M, G or T (otherwise considered 'b...
->2g
2048+0 records in
2048+0 records out
2147483648 bytes transferred in 3.076 secs (698129518 by...
Disk: vnd0 geometry: 41943/1/100 [4194304 Sectors]
Offset: 0 Signature: 0x0
Starting Ending LBA Info:
#: id C H S - C H S [ start: s...
--------------------------------------------------------...
0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
Select partition type:
1: [MBR]
2: GPT
3: Hybrid (not recommended if you wish modify partiti...
->
~ 略 ~
** Phase 5 - Check Cyl groups
3 files, 3 used, 386996 free (20 frags, 48372 blocks, 0....
? : ? ->bye
Bye bye...
$
A disk image file is created in the current directory by ...
#navi(FuguItaGuide)
Page: