FuguItaGuide/3-Operation
をテンプレートにして作成
Start:
#navi(FuguItaGuide)
[[Introduction>fge2:pagetop]] explained the basic usage p...
In this chapter, we will introduce more advanced usage th...
>''[Memo]''~
''⇒''This chapter assumes that you continue to use the en...
- Assuming fugu-demo.localnet as hostname
- ready to access internet
- General user yoshi is created. Since yoshi also belongs...
#contents
* Manage OpenBSD [#wfc42427]
#aname(pkg_add)
** Add application software [#o79d8c5f]
FuguIta can add various software in addition to the softw...
The easiest way to add software is to use OpenBSD's ports...
To add software for packages, run the command [[pkg_add>m...
Firefox, a web browser.
fugu-demo$ su -
Password:
fugu-demo# pkg_add firefox
quirks-4.53 signed on 2021-12-19T13:27:04Z
quirks-4.53:(ok)
firefox-95.0.1:libiconv-1.16p0:(ok)
firefox-95.0.1:gettext-runtime-0.21p1:(ok)
:
略
:
firefox-95.0.1:dconf-0.40.0:(ok)
firefox-95.0.1:gtk+3-3.24.30:(ok)
firefox-95.0.1:(ok)
Running tags:ok
The following new rcscripts were installed: /etc/rc.d/me...
See rcctl for details.
New and changed readme(s):
/usr/local/share/doc/pkg-readmes/dbus
/usr/local/share/doc/pkg-readmes/firefox
/usr/local/share/doc/pkg-readmes/glib2
/usr/local/share/doc/pkg-readmes/gtk+3
fugu-demo# exit
fugu-demo$
In the above example, we temporarily became root using th...
Executing pkg_add will also add other software required t...
It is displayed that there is a document about the instal...
Applications can be added in a manner similar to the exam...
See https://ftp.jaist.ac.jp/pub/OpenBSD/7.2/packages/amd6...
>''[Memo]'' ~
''⇒''The ports/packages system is explained in detail at ...
''⇒''It is also possible to directly compile and install ...
On FuguIta, the software added by pkg_add is also subject...
#aname(configntp)
** Server setting example - change the NTP server that re...
NTP (Network Time Protocol) is a protocol (communication ...
OpenBSD has a function to synchronize its own time with t...
OpenBSD configures whether to use NTP during installation...
The NTP function is implemented by the program [[ntpd>man...
>''[Memo]''~
''⇒''The NTP
software used by OpenBSD is called ``[[OpenNTPD>http://ww...
Linux and FreeBSD use different implementations of the sa...
fugu-demo$ ntpctl -s status
4/4 peers valid, constraint offset 0s, clock synced, str...
If "clock synced" is displayed as in the above example, n...
fugu-demo$ ntpctl -s status
0/1 peers valid, clock unsynced
If it is "clock unsynced" like this, the time has not bee...
On OpenBSD, if the NTP function is enabled during install...
On corporate LANs, etc., communication with external NTP ...
Here is how to configure the NTP server;
ntpd is configured by the file [[/etc/ntpd.conf>man:ntpd....
fugu-demo$ doas -s
Password:
fugu-demo# vi /etc/ntpd.conf
ntpd.conf内のこの3行を
↓
servers pool.ntp.org
sensor *
constraints from "https://www.google.com"
↓
以下の一行に変更
↓
server ntp.localnet
In the above example, the settings are changed to refer t...
After editing the configuration file, restart ntpd to ref...
A program like ntpd that runs in the background and provi...
fugu-demo# rcctl restart ntpd
ntpd(ok)
ntpd(ok)
fugu-demo#
Since the setting change work is completed above, return ...
fugu-demo# exit
fugu-demo$ ntpctl -s status
1/1 peers valid, clock unsynced
If it looks like the above, it is not synchronized (yet),...
fugu-demo$ ntpctl -s status
1/1 peers valid, clock synced, stratum 3
After a while, it was confirmed that the time was synchro...
ntpctl can also display the state of ntpd in more detail.
Inaddition, ntpd itself leaves operation records in log f...
For details, refer to the manual page of each command and...
>''[Memo]'' ~
''⇒''ntpd corrects the time drift very slowly. This is be...
affect the operation of the system. Therefore, if the tim...
#aname(osconfig)
** Change OS settings [#u31180aa]
In the previous section, [[How to change the NTP server s...
This section describes the configuration of services runn...
Because it's not realistic to give a detailed description...
***kernel parameters [#k4e6e3b9]
Functions of the OpenBSD kernel
can be controlled in a number of ways, one of which is us...
fugu-demo$ sysctl -a | less
kern.ostype=OpenBSD
kern.osrelease=5.8
kern.osrevision=201510
kern.version=OpenBSD 5.8-stable (RDROOT.MP) #2: Wed Nov ...
root@nimbus5.localnet:/opt/fi/5.8/sys/arch/i386/comp...
kern.maxvnodes=44152
kern.maxproc=1310
~以下略~
The example above shows all kernel parameters. ~
Since the display content does not fit on one screen, the...
If you know in advance which parameter you want to displa...
The example below shows the maximum amount of memory to a...
fugu-demo$ sysctl kern.bufcachepercent
kern.bufcachepercent=20
$
From this display, you can see that the buffer is set to ...
To change this value: Root privileges are required to cha...
fugu-demo$ doas sysctl kern.bufcachepercent=50
Password:
kern.bufcachepercent: 20 -> 50
$
You can also set it automatically at system startup inste...
>''[Memo]'' ~
''⇒''In addition to changing kernel settings Rewrite kern...
-config command
-Change at boot time with UKC (User Kernel Config)
-kernel recompile
>There are methods such as, but the contents that can be ...
#aname(netconfig)
***Network Basic Settings [#g5485916]
As explained above, network-related settings are made whe...
If you operate FuguIta as a server or network gateway, yo...
:Interface Settings | Settings related to network interfa...
>''[Memo]'' ~
''⇒''What kind of network interfaces your PC has is displ...
:route control|default route is described in [[/etc/mygat...
:Name resolution|[[/etc/resolv.conf>man:resolv.conf.5]]
:Packet filtering|[[PF>man:pf]] is a packet filter develo...
*** Daemon start/stop and setting [#j3b1b712]
OpenBSD comes with various daemons installed, including s...
[[Change the NTP server that refers to the time>#confignt...
On OpenBSD, [[/etc/rc.conf.local>man:rc.conf.local.8]] co...
>''[Memo]'' ~
''⇒''Actually, all daemons are specified in [[/etc/rc.con...
rc.conf works to override the settings of
To control the behavior of various daemons, the contents ...
Like ntpd is configured via ntpd.conf, other daemons also...
In addition, the directory /etc/examples contains sample ...
*** Other settings [#b1cb73a2]
[[/etc/rc.local>man:rc.local]] is a shell script executed...
Please refer to [[rc(8)>man:rc.8]] for how OpenBSD starts...
* FuguIta boot mode [#q98d81f4]
** Boot Mode 1 - Faster boot time / Saves memory usage [#...
If you specify mode 1 when starting FuguIta, the time req...
will be shortened. ~
Various setting items are the same as mode 0.
Select boot mode;
0: fresh boot (normal)
1: fresh boot (lower memory, faster boot than mode 0)
2: fresh boot (works only on mfs)
3: retrieve user data from USB flash memory
4: retrieve user data from floppy disk
5: interactive shell for debugging
->1
Memory usage (mfs size) after startup is also less than m...
As a guideline, it will be possible to operate from a mac...
File usage (mode 0)
fugu-demo$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/rd0a 1.6M 729K 833K 47% /
/dev/cd0a 697M 697M 0B 100% /sysmedia
/dev/vnd5a 676M 664M 11.9M 98% /fuguita
mfs 698M 25.5M 673M 4% /ram
File usage (mode 1)
fugu-demo$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/rd0a 1.6M 730K 832K 47% /
/dev/cd0a 697M 697M 0B 100% /sysmedia
/dev/vnd5a 676M 664M 11.9M 98% /fuguita
mfs 713M 6.8M 706M 1% /ram
However, boot mode 1 has the advantage of requiring fewer...
Start mode 1 can be used when operation is possible only ...
The above situation will be inherited even if you restart...
** Boot Mode 2 - Operation in memory [#a816b1ef]
Boot mode 2 is a mode in which all files are transferred ...
Select boot mode;
0: fresh boot (normal)
1: fresh boot (lower memory, faster boot than mode 0)
2: fresh boot (works only on mfs)
3: retrieve user data from USB flash memory
4: retrieve user data from floppy disk
5: interactive shell for debugging
->2
In mode 2, DVD and USB memory are unmounted when the syst...
fugu-demo$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/rd0a 1.6M 730K 832K 47% /
mfs 813M 736M 76.7M 91% /ram
However, as explained at the beginning, in this mode 2, a...
Even in mode 2, if the file is saved with usbfadm and the...
>''[Memo]'' ~
''⇒''Please note that the device cannot be removed in the...
- if virtual memory usage is greater than real memory and...
- If you are using [[encrypted partition>#encrypt]] (you ...
- If you [[additionally mount >#fstab_tail]] partitions i...
** boot mode and file system [#x19e8b61]
What is the difference in file system structure between b...
The differences are explained below.
#ref(FuguIta/BBS/11/fi-filesys-mode0.png,wrap,around,righ...
The diagram on the right shows the file layout in startup...
Example path for /bin/ed, /usr/bin/vi, pkg_added /usr/loc...
Root filesystem is RAM DISK, [[rd>man:rd.4]]. This device...
The FuguIta device is actually a DVD or USB memory that s...
The file system image on /sysmedia is mapped to /dev/vnd4...
/ram is a memory file system called [[mfs>man:mfs.4]] (me...
equivalent files in /fuguita. This will reduce the memory...
#clear
#ref(FuguIta/BBS/11/fi-filesys-mode1.png,wrap,around,righ...
Next is boot mode 1. In boot mode 1, /usr is symbolically...
#clear
#ref(FuguIta/BBS/11/fi-filesys-mode2.png,wrap,around,righ...
The file layout for boot mode 2 is shown on the right. Th...
#clear
* Management of FuguIta [#d77afde7]
#aname(dtjsetup)
** Install the Japanese desktop environment [#l12f579b]
On Fuguita, you can install the Japanese desktop environm...
Below is an example of running dtjsetup.
fugu-demo# dtjsetup ← Start dtj...
(Both roo...
#==========================================
# Welcome to dtjsetup
# Desktop (and Japanese) setup utility
#
# for FuguIta-6.6-amd64-202001171
#==========================================
Which desktop software will you install? ← Choosing ...
1: no desktop (wm only)
2: [rox-filer]
3: xfce
4: mate
5: lumina
6: lxqt
-> ← If you en...
the You ...
Which window manager will you install? ← Select a ...
1: cwm 1 or 2 i...
2: fvwm
3: twm
4: [icewm]
5: fluxbox
6: jwm
->
Will you setup Japanese language environment? [y/N] -> y
Which input method will you install?
1: [scim-anthy]
2: uim-gtk
3: fcitx-anthy
4: ibus-skk
->
*** You selected icewm as desktop software.
*** Installing Japanese environment is YES.
*** Japanese input method is scim-anthy.
*** Checking your root authorization...
*** OK.
*** Checking network accessibility...
*** OK.
*** Installing packages: rox-filer icewm ja-kterm ja-saz...
Will you continue? [y/N] -> y
quirks-3.183 signed on 2020-01-31T18:21:51Z
rox-filer-2.11p3:libiconv-1.16p0:ok
rox-filer-2.11p3:xz-5.2.4:ok
:
icewm-1.6.1:libsndfile-1.0.28:ok
icewm-1.6.1:ok
Ambiguous: choose package for ja-kterm
a 0: <None>
1: ja-kterm-6.2.0p9
2: ja-kterm-6.2.0p9-xaw3d
Your choice: 1
ja-kterm-6.2.0p9:ok
:
scim-anthy-1.2.7p11:ok
Running tags:
New and changed readme(s):
/usr/local/share/doc/pkg-readmes/glib2
/usr/local/share/doc/pkg-readmes/gtk+2
/usr/local/share/doc/pkg-readmes/scim
--- +ja-sazanami-ttf-20040629p3 -------------------
You may wish to update your font path for /usr/local/sha...
--- +mixfont-mplus-ipa-20060520p7 -------------------
You may wish to update your font path for /usr/local/sha...
--- +mplus-fonts-063 -------------------
You may wish to update your font path for /usr/local/sha...
*** /root/.xsession already exists.
*** This will be replaced with a new file.
*** and the old one will be renamed to /root/.xsession_2...
*** Rewrite .xsession configuration file.
Will you continue? [y/N] -> y
Copy this .xsession file to /etc/skel ? [y/N] -> y ← ...
...
...
*** Japanese environment and related software have been ...
*** However, the time zone has not yet been set to JST.
Set timezone to JST? [Y/n] -> y
*** When you use this machine both running OpenBSD and W...
*** You may set the hardware clock to JST instead UTC.
Set hardware clock to JST? [Y/n] -> n
*** all installation and configuration completed.
*** Check your /root/.xsession and login to X if OK.
*** Note: You can save this configuration and addtionall...
*** by using usbfadm utility.
*** And can reload them at next boot time by selecting...
#ref(河豚板ガイド/DeskTop.jpg,wrap,around,right,33%)
After the above settings have been made, log out and log ...
In the desktop environment, various applications can be a...
>''[Memo]''~
''⇒''Detailed explanation from installing FuguIta to inst...
#clear
***Enable login screen for X [#t5056563]
As described in [[Login method selection>fge1:loginmethod...
Even if you choose to log in from the console screen, you...
To do this, modify the contents of the /etc/rc.conf.local...
The following example uses the rcctl command to enable xe...
fugu-demo$ doas rcctl enable xenodm
fugu-demo$ doas rcctl ls on
check_quotas
cron
library_aslr
ntpd
pf
pflogd
slaacd
smtpd
sndiod
sshd
syslogd
xenodm
#
If you enable xdm with the rcctl command, you can see tha...
fugu-demo$ cat /etc/rc.conf.local
xenodm_flags=
$
After changing the settings, save with usbfadm, and then ...
>''[Memo]''~
''⇒''When xdm is displayed, press ''<Control>''+''<Alt>''...
This virtual console has 12 faces in total,
''<Control>''+''<Alt>''+''<F1>'' to ''<Control>''+''<Alt>...
The X display is bound to the 5th virtual console, so pre...
#aname(update)
** Update FuguIta [#oa558bdd]
OpenBSD has a major release every six months, and at that...
And in half a year, fixes related to security and stabili...
FuguIta also follows this modified information, and the c...
In addition, to check the version of the OS currently in ...
fugu-demo$ uname -a ...
OpenBSD fugu-demo.localnet 5.8 RDROOT.MP#2 i386
fugu-demo$ sysctl kern.version ...
kern.version=OpenBSD 5.8-stable (RDROOT.MP) #2: Wed Nov ...
root@nimbus5.localnet:/opt/fi/5.8/sys/arch/i386/comp...
fugu-demo$ cat /usr/fuguita/version ...
5.8-201512272
This section explains how to update your current version ...
***When a major release of OpenBSD is upgraded [#z301780e]
This is when a major release of OpenBSD, on which FuguIta...
Fuguita-5.8-amd64-201504161
↓
Fuguita-5.9-amd64-201510255
However, the OS that FuguIta is based on has changed from...
It is difficult to update the system if OpenBSD major rel...
The reason is that when OpenBSD is upgraded, system call ...
To migrate across OpenBSD major releases, the following m...
+Create a new LiveDVD or LiveUSB.
+Start the new version of FuguIta and migrate various set...
#aname(fiupdate)
***Unchanged OpenBSD major release [#t9677dff]
this is,
Fuguita-6.0-amd64-201511297
↓
Fuguita-6.0-amd64-201512051
You can check that the "6.0" part, which indicates the Op...
In this case, the system changes are only partial, so the...
To migrate the system, follow the steps below.
''LiveDVD migration procedure''~
In the case of LiveDVD, partial rewriting of the media is...
The data saved in the USB memory can be read and used as ...
#aname(fiupdate)
''LiveUSB migration procedure''~
For LiveUSB, you can update the active LiveUSB by using t...
update).
To use fiupdate, boot the LiveUSB to be updated in mode 0...
Then download the ISO image and SHA256 file of the new ve...
>''[Memo]''~
''⇒''Use LiveUSB for update is ISO image file. Please not...
''⇒''The SHA256 file is used by fiupdate to check that th...
fugu-demo# ls -l
total 606752
-rw-r--r-- 1 root wheel 310651490 Oct 7 01:12 FuguIt...
-rw-r--r-- 1 root wheel 562 Oct 8 06:25 SHA256
fugu-demo# cat /usr/fuguita/version
6.7-amd64-20209041
fugu-demo# fiupdate 202010071
fiupdate - Live Updater for FuguIta LiveUSB
Version/Arch: 6.7/amd64 (FuguIta-6.7-amd64-20209041)
Checking...
environment: ok
Note: This software is currently in beta testing.
Use this at YOUR OWN RISK.
We recommend that you run this command in fresh bo...
0, 1, or 2).
Alternatively, you must quit all application softw...
all your data before updating this FuguIta device.
All daemons, including xenodm, will be stopped bef...
Please note that all X sessions will be aborted.
Do you proceed? [y/N] -> y
Checking...
checksum: (SHA256) FuguIta-6.7-amd64-202010071.iso.gz: OK
file layout: liveusb
existing files: ok
decompressing FuguIta-6.7-amd64-202010071.iso.gz...
9296MiB 0:00:31 [9.51MiB/s] [===========================...
Now ready to update FuguIta-6.7-amd64-20209041 to FuguIt...
This machine will reboot immediately after update comple...
Do you proceed? [y/N] -> y
stopping all daemons...
cron(ok)
ntpd(ok)
pflogd(ok)
slaacd(ok)
smtpd(ok)
sndiod(ok)
sshd(ok)
syslogd(ok)
overwriting uniprocessor kernel...
8.66MiB 0:00:06 [1.37MiB/s] [===========================...
overwriting multiprocessor kernel...
8.69MiB 0:00:04 [1.84MiB/s] [===========================...
overwriting filesystem image...
9864MiB 0:05:30 [3.05MiB/s] [===========================...
update completed.
now rebooting...
syncing disks... done
After the update is complete, the PC will restart automat...
Operation after the LiveUSB update is the same as before,...
>''[Memo]''~
''⇒''When fiupdate is run over the network or on the X Wi...
It seems you are running this script on X Window System,
via network or something like this.
In this situation, during update, corresponding processes
will be killed and then update may fail.
Running this on direct console device is highly recommen...
Continue anyway? [y/N] ->
fiupdate stops all daemons before updating system files. ...
So fiupdate should be run directly on the console device.
**Using FuguIta in a mobile environment [#g9078caa]
In order to use FuguIta as a terminal in a mobile environ...
However, considering the unique circumstances of the mobi...
In this section, we will explain the power supply related...
*** Power related settings [#xac12294]
Current PCs, especially laptops, have mechanisms called A...
Interface) and APM (Advanced Power Management), which can...
In OpenBSD, these mechanisms are implemented as [[acpi(4)...
acpi and apm are managed by a daemon called [[apmd>man:ap...
Check status and configure apmd:
fugu-demo$ doas -s
Password:
fugu-demo# rcctl get apmd
apmd_class=daemon
apmd_flags=NO ← apmd is disabled
apmd_timeout=30
apmd_user=root
Enable apmd:
fugu-demo# rcctl enable apmd
fugu-demo# rcctl set apmd flags -A ← Automatically chan...
fugu-demo# rcctl start apmd according to the ...
fugu-demo# rcctl get apmd
apmd_class=daemon
apmd_flags=
apmd_timeout=30
apmd_user=root
fugu-demo#
After completing the settings, [[usbfadm command to save ...
When apmd is running, you can monitor and control its sta...
fugu-demo$ apm
Battery state: high, 89% remaining, 57 minutes life esti...
A/C adapter state: not connected
Performance adjustment mode: auto (1000 MHz)
In the example below, I gave the apm command the -L flag ...
fugu-demo$ apm -L
fugu-demo$ apm
Battery state: high, 88% remaining, 42 minutes life esti...
A/C adapter state: not connected
Performance adjustment mode: manual (1000 MHz)
The status of hardware such as the battery can also be mo...
fugu-demo$ sysctl hw.sensors
hw.sensors.acpitz0.temp0=55.50 degC (zone temperature)
hw.sensors.acpiac0.indicator0=Off (power supply)
hw.sensors.acpibat0.volt0=14.80 VDC (voltage)
hw.sensors.acpibat0.volt1=15.30 VDC (current voltage)
hw.sensors.acpibat0.current0=1.19 A (rate)
hw.sensors.acpibat0.amphour0=1.12 Ah (last full capacity)
hw.sensors.acpibat0.amphour1=0.21 Ah (warning capacity)
hw.sensors.acpibat0.amphour2=0.07 Ah (low capacity)
hw.sensors.acpibat0.amphour3=0.92 Ah (remaining capacity...
hw.sensors.acpibat0.amphour4=2.15 Ah (design capacity)
hw.sensors.acpibat0.raw0=1 (battery discharging), OK
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpidock0.indicator0=Off (not docked), UNKNOWN
hw.sensors.cpu0.temp0=55.00 degC
fugu-demo$ systat sensors
3 users Load 0.40 0.42 0.37 W...
SENSOR VALUE STATUS DE...
acpitz0.temp0 56.50 degC zo...
acpiac0.indicator0 Off po...
acpibat0.volt0 14.80 V DC vo...
acpibat0.volt1 15.26 V DC cu...
acpibat0.current0 1.08 A rate
acpibat0.amphour0 1.12 Ah la...
acpibat0.amphour1 0.21 Ah wa...
acpibat0.amphour2 0.07 Ah lo...
acpibat0.amphour3 0.90 Ah OK re...
acpibat0.amphour4 2.15 Ah de...
acpibat0.raw0 1 raw OK ba...
acpibtn0.indicator0 On li...
acpidock0.indicator0 Off unknown no...
cpu0.temp0 56.00 degC
By default, the systat command updates the status every 5...
The apm command can also hibernate your PC. ~
In addition to the apm command, commands such as [[zzz>ma...
The method of resuming from hibernation differs depending...
>&color(red){''[Caution]''&br;''!!''Hibernation actions s...
When using X, you can control the display with the xset c...
xset s on ← enable screensaver
xset s 180 ← Screen saver operation start time (seconds)
xset +dpms ← Switch display to power saving mode
With this example setting, the display will go into power...
#aname(netconf)
*** Switch between multiple network settings [#h0480456]
As explained in [[Basic network settings>#netconfig]], ne...
In addition, you can have multiple network settings, and ...
In Fuguita, network-related configuration files are store...
the network is is set. ~
Settings made at initial boot are in /etc/fuguita/netconf...
As an example, let's add two settings, "home" for home an...
First, from the office. It is intended for use with Ether...
fugu-demo# gennetconfs office
===================================================
= gennetconfs: generate network configuration files
===================================================
Hostname with domain part (FQDN):
only host name without domain part is also OK.
-> fuguita.office.local
IP protocol version(s) to be enabled: 4, 6, 46, 64 or "n...
4: enable only IPv4
6: enable only IPv6
46: give priority to IPv4 name resolution
64: give priority to IPv6 name resolution
none: operate as standalone
[64] -> 4
Network Interfaces: Choose one
NIC type Name
-------- ----- ------------
bge0 ether Broadcom BCM57765
urtwn0 wifi GW-USValue-EZ GW-USValue-EZ
[bge0] -> bge0
IPv4 - address and routing:
Enter "auto" or "IPv4_address[/mask] [default_gateway]"
"auto" is an automatic setting by DHCP.
The "/mask" part can be specified in either format, su...
If there is no default gateway, set the second field t...
[auto] -> 192.168.20.115/24 192.168.20.254
DNS servers: up to 3 IP addresses, separated by spaces
-> 192.168.20.254
writing configured values to:
/etc/fuguita/netconfs/office/myname
/etc/fuguita/netconfs/office/mygate
/etc/fuguita/netconfs/office/hosts
/etc/fuguita/netconfs/office/hostname.bge0
/etc/fuguita/netconfs/office/resolv.conf
======================================================
= end of gennetconfs:
= Use chnetconf utility to activate this configuration
======================================================
When setting with gennetconfs is completed, a setting fil...
fugu-demo# cd /etc/fuguita/netconfs/
fugu-demo# ls -l
total 24
drwxr-xr-x 2 root wheel 144 Nov 25 05:46 default
drwxr-xr-x 2 root wheel 240 Nov 25 07:00 office
drwxr-xr-x 2 root wheel 96 Nov 18 05:49 templ.head
drwxr-xr-x 2 root wheel 0 Nov 18 05:49 templ.tail
fugu-demo# ls -l office
total 40
-rw-r----- 1 root wheel 23 Nov 25 07:00 hostname.bge0
-rw-r--r-- 1 root wheel 36 Nov 25 07:00 hosts
-rw-r--r-- 1 root wheel 15 Nov 25 07:00 mygate
-rw-r--r-- 1 root wheel 21 Nov 25 07:00 myname
-rw-r--r-- 1 root wheel 56 Nov 25 07:00 resolv.conf
fugu-demo# ls -l /etc/ | grep netconfs
lrwxr-xr-x 1 root wheel 28 Nov 25 06:56 myname -> /e...
drwxr-xr-x 6 root wheel 192 Nov 25 06:59 netconfs
Use the chnetconf utility to actually apply these setting...
After executing chnetconf, after copying the specified co...
>''[Memo]'' ~
''⇒'' Of the configuration files, only the myname file wi...
fugu-demo# chnetconf -l ← Show all settings
*default ← This settng is active.
office
fugu-demo# chnetconf office
fuguita# chnetconf -l
default
*office ← This configuration is active now.
fuguita# ifconfig ← Check interface settings
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>...
lladdr 10:9a:dd:6c:11:0c
index 1 priority 0 llprio 3
groups: egress
media: Ethernet autoselect (100baseTX full-duplex,rxpau...
status: active
inet 192.168.20.115 netmask 0xffffff00 broadcast 192.16...
urtwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:22:cf:46:6d:e6
index 4 priority 4 llprio 3
groups: wlan
media: IEEE802.11 autoselect (OFDM54 mode 11g)
status: no network
ieee80211: nwid ""
fugu-demo# ping www.google.com ← 疎通を確認
PING www.google.com (172.217.175.68): 56 data bytes
64 bytes from 172.217.175.68: icmp_seq=0 ttl=115 time=28...
64 bytes from 172.217.175.68: icmp_seq=1 ttl=115 time=25...
64 bytes from 172.217.175.68: icmp_seq=2 ttl=115 time=26...
^C
--- www.google.com ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet l...
round-trip min/avg/max/std-dev = 25.842/26.765/28.318/1....
Continue to create the setting "home" in the same way. Th...
fuguita# gennetconfs home
===================================================
= gennetconfs: generate network configuration files
===================================================
Hostname with domain part (FQDN):
only host name without domain part is also OK.
-> fuguita.home.local
IP protocol version(s) to be enabled: 4, 6, 46, 64 or "n...
4: enable only IPv4
6: enable only IPv6
46: give priority to IPv4 name resolution
64: give priority to IPv6 name resolution
none: operate as standalone
[64] ->
Network Interfaces: Choose one
NIC type Name
-------- ----- ------------
bge0 ether Broadcom BCM57765
urtwn0 wifi GW-USValue-EZ GW-USValue-EZ
[bge0] -> urtwn0
Wi-Fi settings:
SSID -> my-wifinet
WPA Key -> my-wpa-secret-key
IPv6 - address and routing:
Enter "auto" or "IPv6_address[/prefixlen] [default_gat...
"auto" is an automatic setting by SLAAC.
The "/prefixlen" part can be an integer between 0 and ...
If there is no default gateway, set the second field t...
[auto] ->
IPv4 - address and routing:
Enter "auto" or "IPv4_address[/mask] [default_gateway]"
"auto" is an automatic setting by DHCP.
The "/mask" part can be specified in either format, su...
If there is no default gateway, set the second field t...
[auto] ->
writing configured values to:
/etc/fuguita/netconfs/home/myname
/etc/fuguita/netconfs/home/hostname.urtwn0
/etc/fuguita/netconfs/home/resolv.conf
======================================================
= end of gennetconfs:
= Use chnetconf utility to activate this configuration
======================================================
fuguita# chnetconf -l
default
home
*office
fuguita# chnetconf home
fuguita# chnetconf -l
default
*home
office
fuguita# ifconfig
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
lladdr 10:9a:dd:6c:11:0c
index 1 priority 0 llprio 3
media: Ethernet autoselect (100baseTX full-duplex,rxpau...
status: active
urtwn0: flags=a48843<UP,BROADCAST,RUNNING,SIMPLEX,MULTIC...
lladdr 00:22:cf:46:6d:e6
index 4 priority 4 llprio 3
groups: wlan egress
media: IEEE802.11 autoselect (OFDM54 mode 11g)
status: active
ieee80211: nwid my-wpa-secret-key chan 10 bssid 1c:b1:7...
wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
inet6 fe80::222:cfff:fe46:6de6%urtwn0 prefixlen 64 scop...
inet 192.168.10.113 netmask 0xffffff00 broadcast 192.16...
inet6 2409:........:8d47 prefixlen 64 autoconf pltime 6...
inet6 2409:........:1974 prefixlen 64 autoconf temporar...
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
index 5 priority 0 llprio 3
groups: pflog
Now, 3 network settings are created, including the tradit...
These settings can be toggled at any time using the chnet...
#aname(fwupdate_wifi)
***Use a Wi-Fi device that requires a firmware download [...
This section describes how to deploy Wi-Fi devices as an ...
OpenBSD supports a variety of Wi-Fi devices, some of whic...
>''[Memo]''~
''⇒''The OpenBSD site has the
following description about the reasons why you need to d...
firmware;~
~
OpenBSD FAQ - Wireless Networking ~
https://www.openbsd.org/faq/faq6.html#Wireless ~
~
In order to use some wireless cards, you will need to acq...
Such Wi-Fi devices
- first set up on a firmware-free device and connect to t...
- download firmware and install
- change the network settings for the desired Wi-Fi device
can be used. Here are the specific steps:
''1. Set up a firmware-free device and connect to the int...
At startup, configure the device to connect to the Intern...
Most wired LAN (Ethernet) devices and some WiFi devices d...
Network Interfaces: Choose one
NIC type Name
-------- ----- ------------
bge0 ether Broadcom BCM57766
urtwn0 wifi GW-USValue-EZ GW-USValue-EZ
[bge0] -> bge0
''2. Download and install the firmware''~
Log in as root and execute the [[fw_update>man:fw_update]...
fugu-demo# fw_update -v
Path to firmware: http://firmware.openbsd.org/firmware/7...
Installing: inteldrm-firmware intel-firmware urtwn-firmw...
inteldrm-firmware-20201218:100%|OK
intel-firmware-20210608v0:100%|OK
urtwn-firmware-20180103p0:100%|OK
fugu-demo#
>''[Memo]'' ~
''⇒''fw_update is automatically executed at startup, but ...
''3. Change the connection settings to the Wi-Fi device y...
Once the firmware is installed, change the connection set...
fugu-demo# gennetconfs wifi ← generate configuration file
===================================================
= gennetconfs: generate network configuration files
===================================================
~ omitted ~
Network Interfaces: Choose one
NIC type Name
-------- ----- ------------
bge0 ether Broadcom BCM57766
urtwn0 wifi GW-USValue-EZ GW-USValue-EZ
[bge0] -> urtwn0 ← select Wi-Fi device
Wi-Fi settings:
SSID -> my-wifinet ← enter Wi-Fi SSID
WPA Key -> my-wpa-secret-key ← and password
~ omitted ~
======================================================
= end of gennetconfs:
= Use chnetconf utility to activate this configuration
======================================================
fugu-demo# chnetconf wifi ← change the network to ...
you just made
fugu-demo# ping www.google.com ← check connection
PING www.google.com (216.58.220.100): 56 data bytes
64 bytes from 216.58.220.100: icmp_seq=0 ttl=114 time=33...
64 bytes from 216.58.220.100: icmp_seq=1 ttl=114 time=28...
64 bytes from 216.58.220.100: icmp_seq=2 ttl=114 time=26...
64 bytes from 216.58.220.100: icmp_seq=3 ttl=114 time=21...
^C
--- www.google.com ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet l...
round-trip min/avg/max/std-dev = 21.949/27.683/33.656/4....
This completes the Wi-Fi firmware installation.
[[Save using the usbfadm command >fge2:usbfadm_sync]] the...
fugu-demo# usbfadm -r
========================================
= Sync current mfs as fugu-demo into /dev/sd1d
=
:
:
* Manage LiveUSB [#n37d4d33]
#aname(liveusb_remaster)
** LiveUSB remastering [#la40e41f]
This section describes how to create a new FuguItaLiveUSB...
is already running. ~
With this method, you can allocate a swap partition, a da...
You can also specify data storage encryption. ~
The example below assumes that you are installing to a US...
First, start FuguIta in mode 0 or mode 1. You can use eit...
Once booting is complete, run the usbfadm command with ro...
fugu-demo$ doas usbfadm
doas (yoshi@fugu-demo.localnet) password:
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 7.2/amd64 (FuguIta-7.2-amd64-202302081)
Boot mode: usbflash
Target device: /dev/sd1d
Data saved as: fugu-demo
readline capability available
TAB to complete the reserved words
Type ? for help.
sd1d : fugu-demo ->newdrive ← Instruct LiveUSB creation
Please make sure the device inserted.
Then press ENTER -> ← After confirming that the USB m...
press <Enter>.
A list of recognized disk devices is displayed in ...
↓
==== disk(s) and vnode devices =========================...
sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, >
sd0: 65536MB, 512 bytes/sector, 134217728 sectors
sd1 at scsibus2 targ 0 lun 0: <VirtIO, Block Device, >
sd1: 4096MB, 512 bytes/sector, 8388608 sectors
img: create FuguIta raw disk image on current directory
========================================================...
Enter the name of device which FuguIta will be installed...
swapctl: no swap devices configured
Disk: sd1 geometry: 522/255/63 [8388608 Sectors]
Offset: 0 Signature: 0x0
Starting Ending LBA Info:
#: id C H S - C H S [ start: ...
--------------------------------------------------------...
0: 00 0 0 0 - 0 0 0 [ 0: ...
1: 00 0 0 0 - 0 0 0 [ 0: ...
2: 00 0 0 0 - 0 0 0 [ 0: ...
3: 00 0 0 0 - 0 0 0 [ 0: ...
Select boot method:
1: Legacy BIOS
2: [UEFI]
3: none (only for save data)
4: Hybrid
->
Select partition type:
1: [MBR]
2: GPT
->
Type of /ram:
1: [MFS]
2: TMPFS
->
Enter sizes for swap, user data and extra FAT.
You can add suffix K, M, G or T (otherwise considered ...
'*' implies 'all'
'0' doesn't make this partition.
3GB (3085MB) (6319040sectors) free
swap->16M ← Create swap with 16MB by default
3GB (3085MB) (6319040sectors) free
user data->2g ← Allocate 3 gigabytes with "2g"
Type "*" to assign all the rest.
user data encryption? [y/N] -> ← See another section ...
Create an extra FAT partition? [y/n] -> y
target disk: sd1
partition type=MBR
boot type=UEFI
-------------------- : ------
partition : size
-------------------- : ------
whole disk : 4GB
partition tables : 32KB
UEFI system : 512KB
FuguIta system : 1010MB
FuguIta swap : 0B
FuguIta user data : 2GB
MSDOS FAT : 1GB
-------------------- : ------
***THIS IS THE LAST CHANCE***
If you type 'Y' now, all the data on sd1 will be lost.
Are you sure to modify disk sd1? [y/N] -> y
========================================
= Clearing MBR, GPT and BSD disklabel
=
1+0 records in
1+0 records out
1048576 bytes transferred in 0.009 secs (110136197 bytes...
========================================
= Setting up fdisk partitions
=
~ omitted ~
** /dev/rsd1d
** File system is already clean
** Last Mounted on /mnt
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
5 files, 5 used, 1012714 free (18 frags, 126587 blocks, ...
sd1d : fugu-demo ->quit
Bye bye...
fugu-demo$
The above will write the Fugu board system to the specifi...
>&color(red){''[Caution]''&br;''!!''Please check the devi...
#ref(河豚板ガイド/fuguita-usb-uefi.png,around,right);
If you make a diagram of what you have explained so far, ...
The i partition at the beginning of the media is created ...
In the a partition at the beginning of the media, the sys...
Next, a d partition with the size you entered in "Enter s...
If there is still unused space after allocating space for...
If you answer ''y'' to this, the ''j'' partition will be ...
#clear
>''[Memo]''~
''⇒''The remastering of FuguIta described in this section...
>''[Memo]''~
''⇒''Currently, there are two types of boot methods for P...
If you specify "Legacy BIOS" as the boot method and "MBR"...
#ref(河豚板ガイド/fuguita-usb.png,around,left);
The partition configuration in this case is as shown in t...
The UEFI boot partition is not created, and the FAT area ...
#clear
>''[Memo]''~
''⇒'' Even if you specify the boot method "Hybrid", you c...
that can boot with either BIOS or UEFI. ~
However, "Hybrid" is a non-standard creation method. In a...
#aname(autorun)
** Automate setting input at startup [#l299f679]
FuguIta requires the following settings during startup:
-Which is FuguIta's operating device?
-Enter mfs size in MB.
-Boot modes
-Which is FuguIta's storage device?
-config name
There is a function to automate the input for the above 5...
For that, write the settings to a file called noasks in t...
fugu-demo$ doas -s
doas (yoshi@fugu-demo.localnet) password:
fugu-demo# mount /dev/sd0d /mnt
fugu-demo# cd /mnt
fugu-demo# ls -l
total 4
drwxr-xr-x 5 root wheel 512 Oct 23 19:29 livecd-config
fugu-demo# cd livecd-config/7.0/amd64 ...
fugu-demo# ls -l
drwxr-xr-x 11 root wheel 512 Nov 10 17:08 fugu-demo
-rw-r--r-- 1 root wheel 422 Nov 9 22:19 noasks
>''[Memo]''~
''⇒'' Directory livecd-config is a directory for saving d...
In noasks, the setting value template is written in the f...
fugu-demo# vi noasks
#
# noasks - parameter settings for non-interactive boot
#
# Make statements uncommented
# Then assign real values
#
#
# FuguIta system device
# - Use one of two lines ← FuguIta'...
#noask_rdev=sd2a # device name format Uncom...
#noask_rdev=f24c0ae78bb7e0e4.a # DUID format a reg...
#
# mfs size in MB
#noask_umem=75% ← Specifies the amount of memory to all...
memory. (Only numbers are in megabyt...
percentage of installed memory + swap)
#
# boot mode
#noask_setup_rw_mode=3 ← boot mode for auto start
#
# storage device
# - Use one of two lines
#noask_confdev=sd2d # device name format
#noask_confdev=f24c0ae78bb7e0e4.d # DUID format
#
# data set name in USB flash drive
#noask_confdir=fugu-demo
>''[Memo]''~
''⇒''Please do not put spaces before and after "=" in the...
After editing, unmount the ''d'' partition and reboot the...
fugu-demo# cd
fugu-demo# umount /mnt
fugu-demo# /sbin/shutdown -r now
#aname(noasks-intr)
If the value is set by the noasks file, you will see the ...
============================================
= ______ __ _
= / ____/ | |_| |__
= / /____ ______ __ _| /_ _/_____
= / ___/ / / / __ \/ / / | | | | / _ |
= / / / /_/ / /_/ / /_/ /| | | |_| (_) |__
=/_/ \____/\__ /\____/ |__| \___/____/__/
= __/ /
= /___/
=
= Welcome to FuguIta! - OpenBSD Live System
= http://fuguita.org/?FuguIta
=============================================
scanning partitions: wd0i wd0j sd0a sd0d
FuguIta's operating device(s): sd0a.
Press ^C to cancel non-interactive boot
Wait 5 seconds after this "Press ^C to cancel non-interac...
If you enter ``<Control>-C'' within 5 seconds, the automa...
>''[Memo]''~
''⇒''If there is an unconfigured item in the noasks file,...
>''[Memo]''~
''⇒'' Among the setting items, noask_rdev and noask_confd...
The DUID can be found from the output of the disklabel co...
fugu-demo# disklabel sd0
# /dev/rsd0c:
type: ESDI
disk: ESDI/IDE disk
label: QEMU HARDDISK
duid: eac6323f6d34c465 ←DUID
flags:
~ omitted ~
For example, when specifying the FuguIta boot device in t...
file, instead of writing
noask_confdev=sd0d
you can specify "DUID.partition" like
noask_confdev=eac6323f6d34c465.d
With normal device name specification, if the connection ...
#aname(autosave)
**Automatically save data on exit [#l574cf8b]
In the previous section [[Make it possible to omit the se...
OpenBSD runs a script called /etc/rc.shutdown when the sy...
FuguIta describes the process of saving data in /etc/rc.s...
force_umount=No # set Yes for forced umount /ram at shu...
force_resync=No # set Yes to re-sync at shutdown
~ omitted ~
By changing the setting value of force_resync on the seco...
>''[Memo]''~
''⇒'' In this process, if the save process fails repeated...
>&color(red){''[Caution]''&br;''! ! ''If important proces...
#aname(encrypt)
** Encrypt data storage [#i23536ae]
As explained in [[Save settings and files>fge2:usbfadm_sy...
By using the function to encrypt the storage area, the in...
[Creating a LiveUSB with the usbfadm command >#liveusb_re...
fugu-demo# usbfadm
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 6.7/amd64 (FuguIta-6.7-amd64-202006142)
Boot mode: manual
Data stored in: not set
Data Saved as: not set
Type ? for help.
? : ? ->newdrive
~ omitted ~
Enter sizes for swap, user data and extra FAT.
You can add suffix K, M, G or T (otherwise considered ...
'*' implies 'all'
'0' doesn't make this partition.
589MB (604128KB) (1208256sectors) free
swap->64m
525MB (538592KB) (1077184sectors) free
userrdata->*
user data encryption? [y/N] -> y ← Specify data st...
Enter passphrase twice. They'll be not echoed.
//// CAUTION ////////////////////////////
//// If you lost this passphrase,
//// you'll never access sd0d.
/////////////////////////////////////////
Passphrase: ← Your input will not be displayed
Passphrase: ← again for confirmation
~ omitted ~
To store data in an encrypted partition, there are two st...
+Specify the encrypted partition with the target function...
~
+If the passphrase is entered correctly, a new disk will ...
- Execute data saving with the sync function of usbfadm.
? : ? ->target
Searching storage device
Please make sure the device inserted.
Then press ENTER ->
sd0a ?sd0d ← The one with "?...
is the encrypt...
target device->sd0d ← Specify this pa...
Passphrase: ← and enter the p...
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
sd1: 525MB, 512 bytes/sector, 1076656 sectors
softraid0: CRYPTO volume attached as sd1
sd0a ?sd0d +sd1d ← A new disk sd1d...
target device->sd1d ← Specify sd1d as...
and then save ...
sd1d : ? ->saveas
Name of avedd ata->fugu-demo
Your data will be saved as ``fugu-demo''.
sd1d : fugu-demo ->sync
Sync current mfs as ``fugu-demo'' , OK? [y/N] -> y
copying /ram to /mnt/livecd-config/6.7/amd64/fugu-demo (...
25.0MiB 0:00:38 [9673KiB/s][[===========================...
waiting for pax to finish ... syncing ... done.
sd1d : fugu-demo ->bye
Loading saved data on subsequent launches is a two-step p...
+Specify boot mode 3, specify an encrypted partition, and...
~
+If the passphrase input is correct, a new disk will appe...
============================================
= ______ __ _
= / ____/ | |_| |__
= / /____ ______ __ _| /_ _/_____
= / ___/ / / / __ \/ / / | | | | / _ |
= / / / /_/ / /_/ / /_/ /| | | |_| (_) |__
=/_/ \____/\__ /\____/ |__| \___/____/__/
= __/ /
= /___/
=
= Welcome to FuguIta - OpenBSD Live System
= http://fuguita.org/
=============================================
scanning partitions: sd0a sd0b sd0d cd0a
FuguIta's operating device(s): sd0a cd0a.
Which is FuguIta's operating device? -> sd0a
activating swap partition: /dev/sd0b
user memory: 239 MB
Enter mfs size in MB. (0MB is auto)
[default: 0MB] ->
mfs size will be automatically allocated
Boot modes:
0: fresh boot - standard mode as a live system
1: fresh boot - less memory, faster boot (/usr is non-...
2: fresh boot - works using only RAM (about 1GB or mor...
3: boot with retrieving saved files from storage device
or enter passphrase for an encrypted volume
4: boot with retrieving saved files from floppy disk
5: interactive shell for debugging
->3 ← select boot mod...
scanning partitions: sd0a sd0b sd0d cd0a
Device(s) found:
encrypted: sd0d
Which is FuguIta's storage device? -> sd0d
Passphrase:
↓ If the passphrase is correct, a new disk will appear.
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
sd1: 525MB, 512 bytes/sector, 1076656 sectors
softraid0: CRYPTO volume attached as sd1
Passphrase successful: Select boot mode again...
Boot modes:
0: fresh boot - standard mode as a live system
1: fresh boot - less memory, faster boot (/usr is non-...
2: fresh boot - works using only RAM (about 1GB or mor...
3: boot with retrieving saved files from storage device
or enter passphrase for an encrypted volume
4: boot with retrieving saved files from floppy disk
5: interactive shell for debugging
->3 ← Specify boot mo...
scanning partitions: sd0a sd0b sd0d cd0a sd1d
Device(s) found:
loadable from: sd1d ← You can read fr...
encrypted: sd0d
Which is FuguIta's storage device? [default: sd1d] -> sd1d
/dev/sd1d : available data;
fugu-demo
config name -> fugu-demo
Copying files from flash to ram ...
done
~ omitted ~
This disk will be visible after boot completes, so you do...
** Enable swap partition [#fb5282c1]
Usually, FuguIta does not use swap and runs only in main ...
Which is FuguIta's operating device? -> wd0a
activating swap partition: /dev/wd0b
activating swap partition: /dev/wd1b
In this example, we found two swap partitions /dev/wd0b a...
Swap partitions are enabled upon detection. There is no s...
>''[Memo]''~
''⇒''If you don't want to use swap for some reason (e.g. ...
After selection, execute the [[swapctl>man:swapctl.8]] co...
After exiting the shell, the boot mode will be selected a...
#aname(fstab_tail)
** Add partition to mount [#e241d5b0]
Usually in Unix OS, the partition to be mounted is specif...
So if a user wants to add or change which partitions are ...
However, in FuguIta, even if you change the contents of t...
During startup initialization, FuguIta probes all disk de...
Finally, the resulting fstab is automatically generated, ...
Therefore, even if the user changes and saves fstab, the ...
If you want to add a partition to mount, write it in the ...
As an example, if you want to additionally mount the e pa...
- Create /etc/fuguita/fstab.tail. The format of this file...
/dev/sd2e /ram/opt ffs rw 0 1
- If the /ram/opt directory does not exist, create it in ...
fugu-demo# mkdir /ram/opt
- Save the file using the sync function of the usbfadm co...
- Reboot the system into boot mode 3 and make sure the sp...
The content of the /etc/fuguita/fstab.tail file is added ...
>''[Memo]''~
''⇒''The mount point must be created inside mfs (under th...
''⇒''/ram The directories and files directly under the /r...
*Other [#d14857c1]
#aname(multidevice)
**Using multiple Fuguita [#b4686050]
Until now, most of the explanations have been based on th...
FuguIta is designed to work well in such cases.
I will explain the case where both LiveDVD and LiveUSB ar...
First, whether the DVD or USB boot immediately after turn...
Next is the operational device (the device mounted in the...
scanning partitions: wd0i wd0j cd0a sd0a sd0d
FuguIta's operating device(s): cd0a sd0a.
Which is FuguIta's operating device? ->
enumerates the available devices like and asks the user ...
>''[Memo]''~
''⇒'' In the above example, wd0i and wd0j are assumed to ...
When reading the saved data, if there are multiple candid...
Boot modes:
0: fresh boot - standard mode as a live system
1: fresh boot - less memory, faster boot (/usr is non-...
2: fresh boot - works using only RAM (about 1GB or mor...
3: boot with retrieving saved files from storage device
or enter passphrase for an encrypted volume
4: boot with retrieving saved files from floppy disk
5: interactive shell for debugging
->3
scanning partitions: wd0i wd0j sd0a sd0d sd1a sd1d
Device(s) found:
loadable from: sd0d sd1d
Which is FuguIta's storage device? ->
When saving data with the usbfadm command, you can specif...
By applying the above, the following operations are possi...
:Operation with the SD card version of FuguIta|[[Create a...
There are almost no PCs that support booting from an SD c...
:Start the LiveDVD version of FuguIta in mode 3|Data cann...
>''[Memo]''~
''⇒''The USB memory is mounted only when saving/restoring...
This feature of FuguIta that "startup and operation can b...
>''[Memo]''~
''⇒'' Note that the automation of setting input described...
#aname(coexist_obsd)
** Let OpenBSD and FuguIta coexist [#a5e14952]
If OpenBSD is already installed on the PC on which you ar...
The principle is to put the FuguIta kernel and ISO image ...
Here's how to install and start. ~
First start your existing OpenBSD and login as root.
Next, create a directory called "ISO" directly under the ...
Download the ISO image from the FuguIta site to this /IS...
fugu-demo# mkdir /ISO
fugu-demo# cd /ISO
fugu-demo# ftp http://mirror.ginzado.ne.jp/pub/FuguIta/F...
Trying 110.92.1.251...
Requesting http://mirror.ginzado.ne.jp/pub/FuguIta/FuguI...
100% |**************************************************...
338634465 bytes received in 468.48 seconds (705.90 KB/s)
fugu-demo# ls -l
total 661632
-rw-r--r-- 1 root wheel 338634465 Dec 29 00:55 FuguIt...
fugu-demo# gunzip FuguIta-6.0-amd64-201612251.iso.gz
fugu-demo# ls -l
total 1427648
-rw-r--r-- 1 root wheel 730744832 Dec 29 00:55 FuguIt...
Copy the FuguIta kernel included in the ISO image directl...
[[vnconfig>man:vnconfig.8]] is a command that allows you ...
fugu-demo# vnconfig vnd0 FuguIta-6.0-amd64-201612251.iso
fugu-demo# vnconfig -l
vnd0: covering FuguIta-6.0-amd64-201612251.iso on wd0a, ...
vnd1: not in use
vnd2: not in use
vnd3: not in use
fugu-demo# mount -r /dev/vnd0a /mnt
fugu-demo# ls -l /mnt
total 1427119
-r-xr-xr-x 1 root bin 71452 Apr 4 2015 boot
-rwxr--r-- 1 root wheel 2048 Dec 27 11:59 boot.c...
-rw-r--r-- 1 root wheel 5569179 Dec 27 19:19 bsd-fi
-rw-r--r-- 1 root wheel 5577796 Dec 27 19:19 bsd-fi...
-r-xr-xr-x 1 root wheel 72328 Dec 27 19:19 cdboot
-r-xr-xr-x 1 root wheel 2048 Dec 27 19:19 cdbr
drwxr-xr-x 2 root wheel 2048 Apr 18 2014 etc
-rw-r--r-- 1 root wheel 719388672 Dec 27 19:19 fuguit...
fugu-demo# cp -p /mnt/bsd-fi /mnt/bsd-fi.mp /
fugu-demo# umount /mnt
fugu-demo# vnconfig -u vnd0
fugu-demo# vnconfig -l
vnd0: not in use
vnd1: not in use
vnd2: not in use
vnd3: not in use
fugu-demo#
The installation is now complete.
>''[Memo]''~
''⇒''If you want to save and restore data, create a direc...
Next is the boot method, the PC boots and the "boot>" pro...
If you do nothing here, the existing OpenBSD system will ...
boot> bsd-fi.mp
This "bsd-fi.mp" is the FuguIta kernel for multiprocessors.
Enter "bsd-fi" if you want to launch the FuguIta kernel f...
>''[Memo]''~
''⇒''In the above explanation, the ISO directory and live...
#aname(coexist_other)
** Let FuguIta coexist with Windows or Linux [#m5d76f26]
FuguIta can also use partitions formatted with Windows NT...
This method is almost the same as the procedure explained...
- boot the OS used as the operational device,
- Create a folder called ISO directly under the file syst...
- Place the ISO image of FuguIta inside that folder.
However, when using FuguIta from a Windows or Linux file ...
- Currently it is not possible to boot an OpenBSD kernel ...
booting.
- Windows and Linux file systems do not support saving an...
#aname(use_tmpfs)
**Change /ram file system to TMPFS [#e78a60b2]
On FuguIta, [[MFS>man:mount_mfs]] is created as a file sy...
Both MFS and TMPFS hold files in memory, but there are di...
| |MFS |TMPFS|h
|file holding|user process|kernel space|
|Memory usage |Once acquired, it is not released even if ...
|Capacity upper limit|There is a maximum value for each a...
| Works | Stable | May be unstable (see below) |
FuguIta adopts MFS because it emphasizes the stability of...
To generate an ISO image of the LiveDVD, use a tool calle...
fugu-demo# cp -pR /sysmedia .
fugu-demo# cd sysmedia
fugu-demo# remaster_dvd.sh -h
/usr/fuguita/sbin/remaster_dvd.sh: -h: unknown option
Usage: remaster_dvd.sh [-m mfs|tmpfs]
fugu-demo# remaster_dvd.sh -m tmpfs
Changing file system of /ram: from mfs to tmpfs
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: 1028
Total directory bytes: 2048
Path table size(bytes): 22
512760 extents written (1001 Mb)
fugu-demo# cd ..
fugu-demo# ls -l
total 2053057
-rw-r--r-- 1 root wheel 1050132480 Mar 14 03:57 FuguI...
drwxr-xr-x 3 root wheel 512 Oct 22 17:09 sysmedia
fugu-demo#
When remastering LiveUSB, specify the newdrive subcommand...
fugu-demo$ doas usbfadm
doas (yoshi@fugu-demo.localnet) password:
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 7.2/amd64 (FuguIta-7.2-amd64-202302081)
Boot mode: usbflash
Target device: /dev/sd1d
Data saved as: fugu-demo
readline capability available
TAB to complete the reserved words
Type ? for help.
sd1d : fugu-demo ->newdrive
~ abbreviated ~
Type of /ram:
1: [MFS]
2: TMPFS
->2
~ abbreviated ~
In FuguIta media with TMPFS enabled, the file system capa...
Enter tmpfs size (0 is auto).
You can add suffix K, M, or G.
% is a percentage of memory size.
and %% is a percentage of the total memory and swap.
otherwise considered "megabytes"
[default: 0M] ->
In this way, the default setting value is "0", and if thi...
>''[Memo]''~
''⇒''Switching between MFS and TMPFS does not affect syst...
>''[Memo]''~
''⇒'' Note that TMPFS is not completely stable as [[docum...
#navi(FuguItaGuide)
End:
#navi(FuguItaGuide)
[[Introduction>fge2:pagetop]] explained the basic usage p...
In this chapter, we will introduce more advanced usage th...
>''[Memo]''~
''⇒''This chapter assumes that you continue to use the en...
- Assuming fugu-demo.localnet as hostname
- ready to access internet
- General user yoshi is created. Since yoshi also belongs...
#contents
* Manage OpenBSD [#wfc42427]
#aname(pkg_add)
** Add application software [#o79d8c5f]
FuguIta can add various software in addition to the softw...
The easiest way to add software is to use OpenBSD's ports...
To add software for packages, run the command [[pkg_add>m...
Firefox, a web browser.
fugu-demo$ su -
Password:
fugu-demo# pkg_add firefox
quirks-4.53 signed on 2021-12-19T13:27:04Z
quirks-4.53:(ok)
firefox-95.0.1:libiconv-1.16p0:(ok)
firefox-95.0.1:gettext-runtime-0.21p1:(ok)
:
略
:
firefox-95.0.1:dconf-0.40.0:(ok)
firefox-95.0.1:gtk+3-3.24.30:(ok)
firefox-95.0.1:(ok)
Running tags:ok
The following new rcscripts were installed: /etc/rc.d/me...
See rcctl for details.
New and changed readme(s):
/usr/local/share/doc/pkg-readmes/dbus
/usr/local/share/doc/pkg-readmes/firefox
/usr/local/share/doc/pkg-readmes/glib2
/usr/local/share/doc/pkg-readmes/gtk+3
fugu-demo# exit
fugu-demo$
In the above example, we temporarily became root using th...
Executing pkg_add will also add other software required t...
It is displayed that there is a document about the instal...
Applications can be added in a manner similar to the exam...
See https://ftp.jaist.ac.jp/pub/OpenBSD/7.2/packages/amd6...
>''[Memo]'' ~
''⇒''The ports/packages system is explained in detail at ...
''⇒''It is also possible to directly compile and install ...
On FuguIta, the software added by pkg_add is also subject...
#aname(configntp)
** Server setting example - change the NTP server that re...
NTP (Network Time Protocol) is a protocol (communication ...
OpenBSD has a function to synchronize its own time with t...
OpenBSD configures whether to use NTP during installation...
The NTP function is implemented by the program [[ntpd>man...
>''[Memo]''~
''⇒''The NTP
software used by OpenBSD is called ``[[OpenNTPD>http://ww...
Linux and FreeBSD use different implementations of the sa...
fugu-demo$ ntpctl -s status
4/4 peers valid, constraint offset 0s, clock synced, str...
If "clock synced" is displayed as in the above example, n...
fugu-demo$ ntpctl -s status
0/1 peers valid, clock unsynced
If it is "clock unsynced" like this, the time has not bee...
On OpenBSD, if the NTP function is enabled during install...
On corporate LANs, etc., communication with external NTP ...
Here is how to configure the NTP server;
ntpd is configured by the file [[/etc/ntpd.conf>man:ntpd....
fugu-demo$ doas -s
Password:
fugu-demo# vi /etc/ntpd.conf
ntpd.conf内のこの3行を
↓
servers pool.ntp.org
sensor *
constraints from "https://www.google.com"
↓
以下の一行に変更
↓
server ntp.localnet
In the above example, the settings are changed to refer t...
After editing the configuration file, restart ntpd to ref...
A program like ntpd that runs in the background and provi...
fugu-demo# rcctl restart ntpd
ntpd(ok)
ntpd(ok)
fugu-demo#
Since the setting change work is completed above, return ...
fugu-demo# exit
fugu-demo$ ntpctl -s status
1/1 peers valid, clock unsynced
If it looks like the above, it is not synchronized (yet),...
fugu-demo$ ntpctl -s status
1/1 peers valid, clock synced, stratum 3
After a while, it was confirmed that the time was synchro...
ntpctl can also display the state of ntpd in more detail.
Inaddition, ntpd itself leaves operation records in log f...
For details, refer to the manual page of each command and...
>''[Memo]'' ~
''⇒''ntpd corrects the time drift very slowly. This is be...
affect the operation of the system. Therefore, if the tim...
#aname(osconfig)
** Change OS settings [#u31180aa]
In the previous section, [[How to change the NTP server s...
This section describes the configuration of services runn...
Because it's not realistic to give a detailed description...
***kernel parameters [#k4e6e3b9]
Functions of the OpenBSD kernel
can be controlled in a number of ways, one of which is us...
fugu-demo$ sysctl -a | less
kern.ostype=OpenBSD
kern.osrelease=5.8
kern.osrevision=201510
kern.version=OpenBSD 5.8-stable (RDROOT.MP) #2: Wed Nov ...
root@nimbus5.localnet:/opt/fi/5.8/sys/arch/i386/comp...
kern.maxvnodes=44152
kern.maxproc=1310
~以下略~
The example above shows all kernel parameters. ~
Since the display content does not fit on one screen, the...
If you know in advance which parameter you want to displa...
The example below shows the maximum amount of memory to a...
fugu-demo$ sysctl kern.bufcachepercent
kern.bufcachepercent=20
$
From this display, you can see that the buffer is set to ...
To change this value: Root privileges are required to cha...
fugu-demo$ doas sysctl kern.bufcachepercent=50
Password:
kern.bufcachepercent: 20 -> 50
$
You can also set it automatically at system startup inste...
>''[Memo]'' ~
''⇒''In addition to changing kernel settings Rewrite kern...
-config command
-Change at boot time with UKC (User Kernel Config)
-kernel recompile
>There are methods such as, but the contents that can be ...
#aname(netconfig)
***Network Basic Settings [#g5485916]
As explained above, network-related settings are made whe...
If you operate FuguIta as a server or network gateway, yo...
:Interface Settings | Settings related to network interfa...
>''[Memo]'' ~
''⇒''What kind of network interfaces your PC has is displ...
:route control|default route is described in [[/etc/mygat...
:Name resolution|[[/etc/resolv.conf>man:resolv.conf.5]]
:Packet filtering|[[PF>man:pf]] is a packet filter develo...
*** Daemon start/stop and setting [#j3b1b712]
OpenBSD comes with various daemons installed, including s...
[[Change the NTP server that refers to the time>#confignt...
On OpenBSD, [[/etc/rc.conf.local>man:rc.conf.local.8]] co...
>''[Memo]'' ~
''⇒''Actually, all daemons are specified in [[/etc/rc.con...
rc.conf works to override the settings of
To control the behavior of various daemons, the contents ...
Like ntpd is configured via ntpd.conf, other daemons also...
In addition, the directory /etc/examples contains sample ...
*** Other settings [#b1cb73a2]
[[/etc/rc.local>man:rc.local]] is a shell script executed...
Please refer to [[rc(8)>man:rc.8]] for how OpenBSD starts...
* FuguIta boot mode [#q98d81f4]
** Boot Mode 1 - Faster boot time / Saves memory usage [#...
If you specify mode 1 when starting FuguIta, the time req...
will be shortened. ~
Various setting items are the same as mode 0.
Select boot mode;
0: fresh boot (normal)
1: fresh boot (lower memory, faster boot than mode 0)
2: fresh boot (works only on mfs)
3: retrieve user data from USB flash memory
4: retrieve user data from floppy disk
5: interactive shell for debugging
->1
Memory usage (mfs size) after startup is also less than m...
As a guideline, it will be possible to operate from a mac...
File usage (mode 0)
fugu-demo$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/rd0a 1.6M 729K 833K 47% /
/dev/cd0a 697M 697M 0B 100% /sysmedia
/dev/vnd5a 676M 664M 11.9M 98% /fuguita
mfs 698M 25.5M 673M 4% /ram
File usage (mode 1)
fugu-demo$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/rd0a 1.6M 730K 832K 47% /
/dev/cd0a 697M 697M 0B 100% /sysmedia
/dev/vnd5a 676M 664M 11.9M 98% /fuguita
mfs 713M 6.8M 706M 1% /ram
However, boot mode 1 has the advantage of requiring fewer...
Start mode 1 can be used when operation is possible only ...
The above situation will be inherited even if you restart...
** Boot Mode 2 - Operation in memory [#a816b1ef]
Boot mode 2 is a mode in which all files are transferred ...
Select boot mode;
0: fresh boot (normal)
1: fresh boot (lower memory, faster boot than mode 0)
2: fresh boot (works only on mfs)
3: retrieve user data from USB flash memory
4: retrieve user data from floppy disk
5: interactive shell for debugging
->2
In mode 2, DVD and USB memory are unmounted when the syst...
fugu-demo$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/rd0a 1.6M 730K 832K 47% /
mfs 813M 736M 76.7M 91% /ram
However, as explained at the beginning, in this mode 2, a...
Even in mode 2, if the file is saved with usbfadm and the...
>''[Memo]'' ~
''⇒''Please note that the device cannot be removed in the...
- if virtual memory usage is greater than real memory and...
- If you are using [[encrypted partition>#encrypt]] (you ...
- If you [[additionally mount >#fstab_tail]] partitions i...
** boot mode and file system [#x19e8b61]
What is the difference in file system structure between b...
The differences are explained below.
#ref(FuguIta/BBS/11/fi-filesys-mode0.png,wrap,around,righ...
The diagram on the right shows the file layout in startup...
Example path for /bin/ed, /usr/bin/vi, pkg_added /usr/loc...
Root filesystem is RAM DISK, [[rd>man:rd.4]]. This device...
The FuguIta device is actually a DVD or USB memory that s...
The file system image on /sysmedia is mapped to /dev/vnd4...
/ram is a memory file system called [[mfs>man:mfs.4]] (me...
equivalent files in /fuguita. This will reduce the memory...
#clear
#ref(FuguIta/BBS/11/fi-filesys-mode1.png,wrap,around,righ...
Next is boot mode 1. In boot mode 1, /usr is symbolically...
#clear
#ref(FuguIta/BBS/11/fi-filesys-mode2.png,wrap,around,righ...
The file layout for boot mode 2 is shown on the right. Th...
#clear
* Management of FuguIta [#d77afde7]
#aname(dtjsetup)
** Install the Japanese desktop environment [#l12f579b]
On Fuguita, you can install the Japanese desktop environm...
Below is an example of running dtjsetup.
fugu-demo# dtjsetup ← Start dtj...
(Both roo...
#==========================================
# Welcome to dtjsetup
# Desktop (and Japanese) setup utility
#
# for FuguIta-6.6-amd64-202001171
#==========================================
Which desktop software will you install? ← Choosing ...
1: no desktop (wm only)
2: [rox-filer]
3: xfce
4: mate
5: lumina
6: lxqt
-> ← If you en...
the You ...
Which window manager will you install? ← Select a ...
1: cwm 1 or 2 i...
2: fvwm
3: twm
4: [icewm]
5: fluxbox
6: jwm
->
Will you setup Japanese language environment? [y/N] -> y
Which input method will you install?
1: [scim-anthy]
2: uim-gtk
3: fcitx-anthy
4: ibus-skk
->
*** You selected icewm as desktop software.
*** Installing Japanese environment is YES.
*** Japanese input method is scim-anthy.
*** Checking your root authorization...
*** OK.
*** Checking network accessibility...
*** OK.
*** Installing packages: rox-filer icewm ja-kterm ja-saz...
Will you continue? [y/N] -> y
quirks-3.183 signed on 2020-01-31T18:21:51Z
rox-filer-2.11p3:libiconv-1.16p0:ok
rox-filer-2.11p3:xz-5.2.4:ok
:
icewm-1.6.1:libsndfile-1.0.28:ok
icewm-1.6.1:ok
Ambiguous: choose package for ja-kterm
a 0: <None>
1: ja-kterm-6.2.0p9
2: ja-kterm-6.2.0p9-xaw3d
Your choice: 1
ja-kterm-6.2.0p9:ok
:
scim-anthy-1.2.7p11:ok
Running tags:
New and changed readme(s):
/usr/local/share/doc/pkg-readmes/glib2
/usr/local/share/doc/pkg-readmes/gtk+2
/usr/local/share/doc/pkg-readmes/scim
--- +ja-sazanami-ttf-20040629p3 -------------------
You may wish to update your font path for /usr/local/sha...
--- +mixfont-mplus-ipa-20060520p7 -------------------
You may wish to update your font path for /usr/local/sha...
--- +mplus-fonts-063 -------------------
You may wish to update your font path for /usr/local/sha...
*** /root/.xsession already exists.
*** This will be replaced with a new file.
*** and the old one will be renamed to /root/.xsession_2...
*** Rewrite .xsession configuration file.
Will you continue? [y/N] -> y
Copy this .xsession file to /etc/skel ? [y/N] -> y ← ...
...
...
*** Japanese environment and related software have been ...
*** However, the time zone has not yet been set to JST.
Set timezone to JST? [Y/n] -> y
*** When you use this machine both running OpenBSD and W...
*** You may set the hardware clock to JST instead UTC.
Set hardware clock to JST? [Y/n] -> n
*** all installation and configuration completed.
*** Check your /root/.xsession and login to X if OK.
*** Note: You can save this configuration and addtionall...
*** by using usbfadm utility.
*** And can reload them at next boot time by selecting...
#ref(河豚板ガイド/DeskTop.jpg,wrap,around,right,33%)
After the above settings have been made, log out and log ...
In the desktop environment, various applications can be a...
>''[Memo]''~
''⇒''Detailed explanation from installing FuguIta to inst...
#clear
***Enable login screen for X [#t5056563]
As described in [[Login method selection>fge1:loginmethod...
Even if you choose to log in from the console screen, you...
To do this, modify the contents of the /etc/rc.conf.local...
The following example uses the rcctl command to enable xe...
fugu-demo$ doas rcctl enable xenodm
fugu-demo$ doas rcctl ls on
check_quotas
cron
library_aslr
ntpd
pf
pflogd
slaacd
smtpd
sndiod
sshd
syslogd
xenodm
#
If you enable xdm with the rcctl command, you can see tha...
fugu-demo$ cat /etc/rc.conf.local
xenodm_flags=
$
After changing the settings, save with usbfadm, and then ...
>''[Memo]''~
''⇒''When xdm is displayed, press ''<Control>''+''<Alt>''...
This virtual console has 12 faces in total,
''<Control>''+''<Alt>''+''<F1>'' to ''<Control>''+''<Alt>...
The X display is bound to the 5th virtual console, so pre...
#aname(update)
** Update FuguIta [#oa558bdd]
OpenBSD has a major release every six months, and at that...
And in half a year, fixes related to security and stabili...
FuguIta also follows this modified information, and the c...
In addition, to check the version of the OS currently in ...
fugu-demo$ uname -a ...
OpenBSD fugu-demo.localnet 5.8 RDROOT.MP#2 i386
fugu-demo$ sysctl kern.version ...
kern.version=OpenBSD 5.8-stable (RDROOT.MP) #2: Wed Nov ...
root@nimbus5.localnet:/opt/fi/5.8/sys/arch/i386/comp...
fugu-demo$ cat /usr/fuguita/version ...
5.8-201512272
This section explains how to update your current version ...
***When a major release of OpenBSD is upgraded [#z301780e]
This is when a major release of OpenBSD, on which FuguIta...
Fuguita-5.8-amd64-201504161
↓
Fuguita-5.9-amd64-201510255
However, the OS that FuguIta is based on has changed from...
It is difficult to update the system if OpenBSD major rel...
The reason is that when OpenBSD is upgraded, system call ...
To migrate across OpenBSD major releases, the following m...
+Create a new LiveDVD or LiveUSB.
+Start the new version of FuguIta and migrate various set...
#aname(fiupdate)
***Unchanged OpenBSD major release [#t9677dff]
this is,
Fuguita-6.0-amd64-201511297
↓
Fuguita-6.0-amd64-201512051
You can check that the "6.0" part, which indicates the Op...
In this case, the system changes are only partial, so the...
To migrate the system, follow the steps below.
''LiveDVD migration procedure''~
In the case of LiveDVD, partial rewriting of the media is...
The data saved in the USB memory can be read and used as ...
#aname(fiupdate)
''LiveUSB migration procedure''~
For LiveUSB, you can update the active LiveUSB by using t...
update).
To use fiupdate, boot the LiveUSB to be updated in mode 0...
Then download the ISO image and SHA256 file of the new ve...
>''[Memo]''~
''⇒''Use LiveUSB for update is ISO image file. Please not...
''⇒''The SHA256 file is used by fiupdate to check that th...
fugu-demo# ls -l
total 606752
-rw-r--r-- 1 root wheel 310651490 Oct 7 01:12 FuguIt...
-rw-r--r-- 1 root wheel 562 Oct 8 06:25 SHA256
fugu-demo# cat /usr/fuguita/version
6.7-amd64-20209041
fugu-demo# fiupdate 202010071
fiupdate - Live Updater for FuguIta LiveUSB
Version/Arch: 6.7/amd64 (FuguIta-6.7-amd64-20209041)
Checking...
environment: ok
Note: This software is currently in beta testing.
Use this at YOUR OWN RISK.
We recommend that you run this command in fresh bo...
0, 1, or 2).
Alternatively, you must quit all application softw...
all your data before updating this FuguIta device.
All daemons, including xenodm, will be stopped bef...
Please note that all X sessions will be aborted.
Do you proceed? [y/N] -> y
Checking...
checksum: (SHA256) FuguIta-6.7-amd64-202010071.iso.gz: OK
file layout: liveusb
existing files: ok
decompressing FuguIta-6.7-amd64-202010071.iso.gz...
9296MiB 0:00:31 [9.51MiB/s] [===========================...
Now ready to update FuguIta-6.7-amd64-20209041 to FuguIt...
This machine will reboot immediately after update comple...
Do you proceed? [y/N] -> y
stopping all daemons...
cron(ok)
ntpd(ok)
pflogd(ok)
slaacd(ok)
smtpd(ok)
sndiod(ok)
sshd(ok)
syslogd(ok)
overwriting uniprocessor kernel...
8.66MiB 0:00:06 [1.37MiB/s] [===========================...
overwriting multiprocessor kernel...
8.69MiB 0:00:04 [1.84MiB/s] [===========================...
overwriting filesystem image...
9864MiB 0:05:30 [3.05MiB/s] [===========================...
update completed.
now rebooting...
syncing disks... done
After the update is complete, the PC will restart automat...
Operation after the LiveUSB update is the same as before,...
>''[Memo]''~
''⇒''When fiupdate is run over the network or on the X Wi...
It seems you are running this script on X Window System,
via network or something like this.
In this situation, during update, corresponding processes
will be killed and then update may fail.
Running this on direct console device is highly recommen...
Continue anyway? [y/N] ->
fiupdate stops all daemons before updating system files. ...
So fiupdate should be run directly on the console device.
**Using FuguIta in a mobile environment [#g9078caa]
In order to use FuguIta as a terminal in a mobile environ...
However, considering the unique circumstances of the mobi...
In this section, we will explain the power supply related...
*** Power related settings [#xac12294]
Current PCs, especially laptops, have mechanisms called A...
Interface) and APM (Advanced Power Management), which can...
In OpenBSD, these mechanisms are implemented as [[acpi(4)...
acpi and apm are managed by a daemon called [[apmd>man:ap...
Check status and configure apmd:
fugu-demo$ doas -s
Password:
fugu-demo# rcctl get apmd
apmd_class=daemon
apmd_flags=NO ← apmd is disabled
apmd_timeout=30
apmd_user=root
Enable apmd:
fugu-demo# rcctl enable apmd
fugu-demo# rcctl set apmd flags -A ← Automatically chan...
fugu-demo# rcctl start apmd according to the ...
fugu-demo# rcctl get apmd
apmd_class=daemon
apmd_flags=
apmd_timeout=30
apmd_user=root
fugu-demo#
After completing the settings, [[usbfadm command to save ...
When apmd is running, you can monitor and control its sta...
fugu-demo$ apm
Battery state: high, 89% remaining, 57 minutes life esti...
A/C adapter state: not connected
Performance adjustment mode: auto (1000 MHz)
In the example below, I gave the apm command the -L flag ...
fugu-demo$ apm -L
fugu-demo$ apm
Battery state: high, 88% remaining, 42 minutes life esti...
A/C adapter state: not connected
Performance adjustment mode: manual (1000 MHz)
The status of hardware such as the battery can also be mo...
fugu-demo$ sysctl hw.sensors
hw.sensors.acpitz0.temp0=55.50 degC (zone temperature)
hw.sensors.acpiac0.indicator0=Off (power supply)
hw.sensors.acpibat0.volt0=14.80 VDC (voltage)
hw.sensors.acpibat0.volt1=15.30 VDC (current voltage)
hw.sensors.acpibat0.current0=1.19 A (rate)
hw.sensors.acpibat0.amphour0=1.12 Ah (last full capacity)
hw.sensors.acpibat0.amphour1=0.21 Ah (warning capacity)
hw.sensors.acpibat0.amphour2=0.07 Ah (low capacity)
hw.sensors.acpibat0.amphour3=0.92 Ah (remaining capacity...
hw.sensors.acpibat0.amphour4=2.15 Ah (design capacity)
hw.sensors.acpibat0.raw0=1 (battery discharging), OK
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpidock0.indicator0=Off (not docked), UNKNOWN
hw.sensors.cpu0.temp0=55.00 degC
fugu-demo$ systat sensors
3 users Load 0.40 0.42 0.37 W...
SENSOR VALUE STATUS DE...
acpitz0.temp0 56.50 degC zo...
acpiac0.indicator0 Off po...
acpibat0.volt0 14.80 V DC vo...
acpibat0.volt1 15.26 V DC cu...
acpibat0.current0 1.08 A rate
acpibat0.amphour0 1.12 Ah la...
acpibat0.amphour1 0.21 Ah wa...
acpibat0.amphour2 0.07 Ah lo...
acpibat0.amphour3 0.90 Ah OK re...
acpibat0.amphour4 2.15 Ah de...
acpibat0.raw0 1 raw OK ba...
acpibtn0.indicator0 On li...
acpidock0.indicator0 Off unknown no...
cpu0.temp0 56.00 degC
By default, the systat command updates the status every 5...
The apm command can also hibernate your PC. ~
In addition to the apm command, commands such as [[zzz>ma...
The method of resuming from hibernation differs depending...
>&color(red){''[Caution]''&br;''!!''Hibernation actions s...
When using X, you can control the display with the xset c...
xset s on ← enable screensaver
xset s 180 ← Screen saver operation start time (seconds)
xset +dpms ← Switch display to power saving mode
With this example setting, the display will go into power...
#aname(netconf)
*** Switch between multiple network settings [#h0480456]
As explained in [[Basic network settings>#netconfig]], ne...
In addition, you can have multiple network settings, and ...
In Fuguita, network-related configuration files are store...
the network is is set. ~
Settings made at initial boot are in /etc/fuguita/netconf...
As an example, let's add two settings, "home" for home an...
First, from the office. It is intended for use with Ether...
fugu-demo# gennetconfs office
===================================================
= gennetconfs: generate network configuration files
===================================================
Hostname with domain part (FQDN):
only host name without domain part is also OK.
-> fuguita.office.local
IP protocol version(s) to be enabled: 4, 6, 46, 64 or "n...
4: enable only IPv4
6: enable only IPv6
46: give priority to IPv4 name resolution
64: give priority to IPv6 name resolution
none: operate as standalone
[64] -> 4
Network Interfaces: Choose one
NIC type Name
-------- ----- ------------
bge0 ether Broadcom BCM57765
urtwn0 wifi GW-USValue-EZ GW-USValue-EZ
[bge0] -> bge0
IPv4 - address and routing:
Enter "auto" or "IPv4_address[/mask] [default_gateway]"
"auto" is an automatic setting by DHCP.
The "/mask" part can be specified in either format, su...
If there is no default gateway, set the second field t...
[auto] -> 192.168.20.115/24 192.168.20.254
DNS servers: up to 3 IP addresses, separated by spaces
-> 192.168.20.254
writing configured values to:
/etc/fuguita/netconfs/office/myname
/etc/fuguita/netconfs/office/mygate
/etc/fuguita/netconfs/office/hosts
/etc/fuguita/netconfs/office/hostname.bge0
/etc/fuguita/netconfs/office/resolv.conf
======================================================
= end of gennetconfs:
= Use chnetconf utility to activate this configuration
======================================================
When setting with gennetconfs is completed, a setting fil...
fugu-demo# cd /etc/fuguita/netconfs/
fugu-demo# ls -l
total 24
drwxr-xr-x 2 root wheel 144 Nov 25 05:46 default
drwxr-xr-x 2 root wheel 240 Nov 25 07:00 office
drwxr-xr-x 2 root wheel 96 Nov 18 05:49 templ.head
drwxr-xr-x 2 root wheel 0 Nov 18 05:49 templ.tail
fugu-demo# ls -l office
total 40
-rw-r----- 1 root wheel 23 Nov 25 07:00 hostname.bge0
-rw-r--r-- 1 root wheel 36 Nov 25 07:00 hosts
-rw-r--r-- 1 root wheel 15 Nov 25 07:00 mygate
-rw-r--r-- 1 root wheel 21 Nov 25 07:00 myname
-rw-r--r-- 1 root wheel 56 Nov 25 07:00 resolv.conf
fugu-demo# ls -l /etc/ | grep netconfs
lrwxr-xr-x 1 root wheel 28 Nov 25 06:56 myname -> /e...
drwxr-xr-x 6 root wheel 192 Nov 25 06:59 netconfs
Use the chnetconf utility to actually apply these setting...
After executing chnetconf, after copying the specified co...
>''[Memo]'' ~
''⇒'' Of the configuration files, only the myname file wi...
fugu-demo# chnetconf -l ← Show all settings
*default ← This settng is active.
office
fugu-demo# chnetconf office
fuguita# chnetconf -l
default
*office ← This configuration is active now.
fuguita# ifconfig ← Check interface settings
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>...
lladdr 10:9a:dd:6c:11:0c
index 1 priority 0 llprio 3
groups: egress
media: Ethernet autoselect (100baseTX full-duplex,rxpau...
status: active
inet 192.168.20.115 netmask 0xffffff00 broadcast 192.16...
urtwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:22:cf:46:6d:e6
index 4 priority 4 llprio 3
groups: wlan
media: IEEE802.11 autoselect (OFDM54 mode 11g)
status: no network
ieee80211: nwid ""
fugu-demo# ping www.google.com ← 疎通を確認
PING www.google.com (172.217.175.68): 56 data bytes
64 bytes from 172.217.175.68: icmp_seq=0 ttl=115 time=28...
64 bytes from 172.217.175.68: icmp_seq=1 ttl=115 time=25...
64 bytes from 172.217.175.68: icmp_seq=2 ttl=115 time=26...
^C
--- www.google.com ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet l...
round-trip min/avg/max/std-dev = 25.842/26.765/28.318/1....
Continue to create the setting "home" in the same way. Th...
fuguita# gennetconfs home
===================================================
= gennetconfs: generate network configuration files
===================================================
Hostname with domain part (FQDN):
only host name without domain part is also OK.
-> fuguita.home.local
IP protocol version(s) to be enabled: 4, 6, 46, 64 or "n...
4: enable only IPv4
6: enable only IPv6
46: give priority to IPv4 name resolution
64: give priority to IPv6 name resolution
none: operate as standalone
[64] ->
Network Interfaces: Choose one
NIC type Name
-------- ----- ------------
bge0 ether Broadcom BCM57765
urtwn0 wifi GW-USValue-EZ GW-USValue-EZ
[bge0] -> urtwn0
Wi-Fi settings:
SSID -> my-wifinet
WPA Key -> my-wpa-secret-key
IPv6 - address and routing:
Enter "auto" or "IPv6_address[/prefixlen] [default_gat...
"auto" is an automatic setting by SLAAC.
The "/prefixlen" part can be an integer between 0 and ...
If there is no default gateway, set the second field t...
[auto] ->
IPv4 - address and routing:
Enter "auto" or "IPv4_address[/mask] [default_gateway]"
"auto" is an automatic setting by DHCP.
The "/mask" part can be specified in either format, su...
If there is no default gateway, set the second field t...
[auto] ->
writing configured values to:
/etc/fuguita/netconfs/home/myname
/etc/fuguita/netconfs/home/hostname.urtwn0
/etc/fuguita/netconfs/home/resolv.conf
======================================================
= end of gennetconfs:
= Use chnetconf utility to activate this configuration
======================================================
fuguita# chnetconf -l
default
home
*office
fuguita# chnetconf home
fuguita# chnetconf -l
default
*home
office
fuguita# ifconfig
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
lladdr 10:9a:dd:6c:11:0c
index 1 priority 0 llprio 3
media: Ethernet autoselect (100baseTX full-duplex,rxpau...
status: active
urtwn0: flags=a48843<UP,BROADCAST,RUNNING,SIMPLEX,MULTIC...
lladdr 00:22:cf:46:6d:e6
index 4 priority 4 llprio 3
groups: wlan egress
media: IEEE802.11 autoselect (OFDM54 mode 11g)
status: active
ieee80211: nwid my-wpa-secret-key chan 10 bssid 1c:b1:7...
wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
inet6 fe80::222:cfff:fe46:6de6%urtwn0 prefixlen 64 scop...
inet 192.168.10.113 netmask 0xffffff00 broadcast 192.16...
inet6 2409:........:8d47 prefixlen 64 autoconf pltime 6...
inet6 2409:........:1974 prefixlen 64 autoconf temporar...
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
index 5 priority 0 llprio 3
groups: pflog
Now, 3 network settings are created, including the tradit...
These settings can be toggled at any time using the chnet...
#aname(fwupdate_wifi)
***Use a Wi-Fi device that requires a firmware download [...
This section describes how to deploy Wi-Fi devices as an ...
OpenBSD supports a variety of Wi-Fi devices, some of whic...
>''[Memo]''~
''⇒''The OpenBSD site has the
following description about the reasons why you need to d...
firmware;~
~
OpenBSD FAQ - Wireless Networking ~
https://www.openbsd.org/faq/faq6.html#Wireless ~
~
In order to use some wireless cards, you will need to acq...
Such Wi-Fi devices
- first set up on a firmware-free device and connect to t...
- download firmware and install
- change the network settings for the desired Wi-Fi device
can be used. Here are the specific steps:
''1. Set up a firmware-free device and connect to the int...
At startup, configure the device to connect to the Intern...
Most wired LAN (Ethernet) devices and some WiFi devices d...
Network Interfaces: Choose one
NIC type Name
-------- ----- ------------
bge0 ether Broadcom BCM57766
urtwn0 wifi GW-USValue-EZ GW-USValue-EZ
[bge0] -> bge0
''2. Download and install the firmware''~
Log in as root and execute the [[fw_update>man:fw_update]...
fugu-demo# fw_update -v
Path to firmware: http://firmware.openbsd.org/firmware/7...
Installing: inteldrm-firmware intel-firmware urtwn-firmw...
inteldrm-firmware-20201218:100%|OK
intel-firmware-20210608v0:100%|OK
urtwn-firmware-20180103p0:100%|OK
fugu-demo#
>''[Memo]'' ~
''⇒''fw_update is automatically executed at startup, but ...
''3. Change the connection settings to the Wi-Fi device y...
Once the firmware is installed, change the connection set...
fugu-demo# gennetconfs wifi ← generate configuration file
===================================================
= gennetconfs: generate network configuration files
===================================================
~ omitted ~
Network Interfaces: Choose one
NIC type Name
-------- ----- ------------
bge0 ether Broadcom BCM57766
urtwn0 wifi GW-USValue-EZ GW-USValue-EZ
[bge0] -> urtwn0 ← select Wi-Fi device
Wi-Fi settings:
SSID -> my-wifinet ← enter Wi-Fi SSID
WPA Key -> my-wpa-secret-key ← and password
~ omitted ~
======================================================
= end of gennetconfs:
= Use chnetconf utility to activate this configuration
======================================================
fugu-demo# chnetconf wifi ← change the network to ...
you just made
fugu-demo# ping www.google.com ← check connection
PING www.google.com (216.58.220.100): 56 data bytes
64 bytes from 216.58.220.100: icmp_seq=0 ttl=114 time=33...
64 bytes from 216.58.220.100: icmp_seq=1 ttl=114 time=28...
64 bytes from 216.58.220.100: icmp_seq=2 ttl=114 time=26...
64 bytes from 216.58.220.100: icmp_seq=3 ttl=114 time=21...
^C
--- www.google.com ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet l...
round-trip min/avg/max/std-dev = 21.949/27.683/33.656/4....
This completes the Wi-Fi firmware installation.
[[Save using the usbfadm command >fge2:usbfadm_sync]] the...
fugu-demo# usbfadm -r
========================================
= Sync current mfs as fugu-demo into /dev/sd1d
=
:
:
* Manage LiveUSB [#n37d4d33]
#aname(liveusb_remaster)
** LiveUSB remastering [#la40e41f]
This section describes how to create a new FuguItaLiveUSB...
is already running. ~
With this method, you can allocate a swap partition, a da...
You can also specify data storage encryption. ~
The example below assumes that you are installing to a US...
First, start FuguIta in mode 0 or mode 1. You can use eit...
Once booting is complete, run the usbfadm command with ro...
fugu-demo$ doas usbfadm
doas (yoshi@fugu-demo.localnet) password:
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 7.2/amd64 (FuguIta-7.2-amd64-202302081)
Boot mode: usbflash
Target device: /dev/sd1d
Data saved as: fugu-demo
readline capability available
TAB to complete the reserved words
Type ? for help.
sd1d : fugu-demo ->newdrive ← Instruct LiveUSB creation
Please make sure the device inserted.
Then press ENTER -> ← After confirming that the USB m...
press <Enter>.
A list of recognized disk devices is displayed in ...
↓
==== disk(s) and vnode devices =========================...
sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, >
sd0: 65536MB, 512 bytes/sector, 134217728 sectors
sd1 at scsibus2 targ 0 lun 0: <VirtIO, Block Device, >
sd1: 4096MB, 512 bytes/sector, 8388608 sectors
img: create FuguIta raw disk image on current directory
========================================================...
Enter the name of device which FuguIta will be installed...
swapctl: no swap devices configured
Disk: sd1 geometry: 522/255/63 [8388608 Sectors]
Offset: 0 Signature: 0x0
Starting Ending LBA Info:
#: id C H S - C H S [ start: ...
--------------------------------------------------------...
0: 00 0 0 0 - 0 0 0 [ 0: ...
1: 00 0 0 0 - 0 0 0 [ 0: ...
2: 00 0 0 0 - 0 0 0 [ 0: ...
3: 00 0 0 0 - 0 0 0 [ 0: ...
Select boot method:
1: Legacy BIOS
2: [UEFI]
3: none (only for save data)
4: Hybrid
->
Select partition type:
1: [MBR]
2: GPT
->
Type of /ram:
1: [MFS]
2: TMPFS
->
Enter sizes for swap, user data and extra FAT.
You can add suffix K, M, G or T (otherwise considered ...
'*' implies 'all'
'0' doesn't make this partition.
3GB (3085MB) (6319040sectors) free
swap->16M ← Create swap with 16MB by default
3GB (3085MB) (6319040sectors) free
user data->2g ← Allocate 3 gigabytes with "2g"
Type "*" to assign all the rest.
user data encryption? [y/N] -> ← See another section ...
Create an extra FAT partition? [y/n] -> y
target disk: sd1
partition type=MBR
boot type=UEFI
-------------------- : ------
partition : size
-------------------- : ------
whole disk : 4GB
partition tables : 32KB
UEFI system : 512KB
FuguIta system : 1010MB
FuguIta swap : 0B
FuguIta user data : 2GB
MSDOS FAT : 1GB
-------------------- : ------
***THIS IS THE LAST CHANCE***
If you type 'Y' now, all the data on sd1 will be lost.
Are you sure to modify disk sd1? [y/N] -> y
========================================
= Clearing MBR, GPT and BSD disklabel
=
1+0 records in
1+0 records out
1048576 bytes transferred in 0.009 secs (110136197 bytes...
========================================
= Setting up fdisk partitions
=
~ omitted ~
** /dev/rsd1d
** File system is already clean
** Last Mounted on /mnt
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
5 files, 5 used, 1012714 free (18 frags, 126587 blocks, ...
sd1d : fugu-demo ->quit
Bye bye...
fugu-demo$
The above will write the Fugu board system to the specifi...
>&color(red){''[Caution]''&br;''!!''Please check the devi...
#ref(河豚板ガイド/fuguita-usb-uefi.png,around,right);
If you make a diagram of what you have explained so far, ...
The i partition at the beginning of the media is created ...
In the a partition at the beginning of the media, the sys...
Next, a d partition with the size you entered in "Enter s...
If there is still unused space after allocating space for...
If you answer ''y'' to this, the ''j'' partition will be ...
#clear
>''[Memo]''~
''⇒''The remastering of FuguIta described in this section...
>''[Memo]''~
''⇒''Currently, there are two types of boot methods for P...
If you specify "Legacy BIOS" as the boot method and "MBR"...
#ref(河豚板ガイド/fuguita-usb.png,around,left);
The partition configuration in this case is as shown in t...
The UEFI boot partition is not created, and the FAT area ...
#clear
>''[Memo]''~
''⇒'' Even if you specify the boot method "Hybrid", you c...
that can boot with either BIOS or UEFI. ~
However, "Hybrid" is a non-standard creation method. In a...
#aname(autorun)
** Automate setting input at startup [#l299f679]
FuguIta requires the following settings during startup:
-Which is FuguIta's operating device?
-Enter mfs size in MB.
-Boot modes
-Which is FuguIta's storage device?
-config name
There is a function to automate the input for the above 5...
For that, write the settings to a file called noasks in t...
fugu-demo$ doas -s
doas (yoshi@fugu-demo.localnet) password:
fugu-demo# mount /dev/sd0d /mnt
fugu-demo# cd /mnt
fugu-demo# ls -l
total 4
drwxr-xr-x 5 root wheel 512 Oct 23 19:29 livecd-config
fugu-demo# cd livecd-config/7.0/amd64 ...
fugu-demo# ls -l
drwxr-xr-x 11 root wheel 512 Nov 10 17:08 fugu-demo
-rw-r--r-- 1 root wheel 422 Nov 9 22:19 noasks
>''[Memo]''~
''⇒'' Directory livecd-config is a directory for saving d...
In noasks, the setting value template is written in the f...
fugu-demo# vi noasks
#
# noasks - parameter settings for non-interactive boot
#
# Make statements uncommented
# Then assign real values
#
#
# FuguIta system device
# - Use one of two lines ← FuguIta'...
#noask_rdev=sd2a # device name format Uncom...
#noask_rdev=f24c0ae78bb7e0e4.a # DUID format a reg...
#
# mfs size in MB
#noask_umem=75% ← Specifies the amount of memory to all...
memory. (Only numbers are in megabyt...
percentage of installed memory + swap)
#
# boot mode
#noask_setup_rw_mode=3 ← boot mode for auto start
#
# storage device
# - Use one of two lines
#noask_confdev=sd2d # device name format
#noask_confdev=f24c0ae78bb7e0e4.d # DUID format
#
# data set name in USB flash drive
#noask_confdir=fugu-demo
>''[Memo]''~
''⇒''Please do not put spaces before and after "=" in the...
After editing, unmount the ''d'' partition and reboot the...
fugu-demo# cd
fugu-demo# umount /mnt
fugu-demo# /sbin/shutdown -r now
#aname(noasks-intr)
If the value is set by the noasks file, you will see the ...
============================================
= ______ __ _
= / ____/ | |_| |__
= / /____ ______ __ _| /_ _/_____
= / ___/ / / / __ \/ / / | | | | / _ |
= / / / /_/ / /_/ / /_/ /| | | |_| (_) |__
=/_/ \____/\__ /\____/ |__| \___/____/__/
= __/ /
= /___/
=
= Welcome to FuguIta! - OpenBSD Live System
= http://fuguita.org/?FuguIta
=============================================
scanning partitions: wd0i wd0j sd0a sd0d
FuguIta's operating device(s): sd0a.
Press ^C to cancel non-interactive boot
Wait 5 seconds after this "Press ^C to cancel non-interac...
If you enter ``<Control>-C'' within 5 seconds, the automa...
>''[Memo]''~
''⇒''If there is an unconfigured item in the noasks file,...
>''[Memo]''~
''⇒'' Among the setting items, noask_rdev and noask_confd...
The DUID can be found from the output of the disklabel co...
fugu-demo# disklabel sd0
# /dev/rsd0c:
type: ESDI
disk: ESDI/IDE disk
label: QEMU HARDDISK
duid: eac6323f6d34c465 ←DUID
flags:
~ omitted ~
For example, when specifying the FuguIta boot device in t...
file, instead of writing
noask_confdev=sd0d
you can specify "DUID.partition" like
noask_confdev=eac6323f6d34c465.d
With normal device name specification, if the connection ...
#aname(autosave)
**Automatically save data on exit [#l574cf8b]
In the previous section [[Make it possible to omit the se...
OpenBSD runs a script called /etc/rc.shutdown when the sy...
FuguIta describes the process of saving data in /etc/rc.s...
force_umount=No # set Yes for forced umount /ram at shu...
force_resync=No # set Yes to re-sync at shutdown
~ omitted ~
By changing the setting value of force_resync on the seco...
>''[Memo]''~
''⇒'' In this process, if the save process fails repeated...
>&color(red){''[Caution]''&br;''! ! ''If important proces...
#aname(encrypt)
** Encrypt data storage [#i23536ae]
As explained in [[Save settings and files>fge2:usbfadm_sy...
By using the function to encrypt the storage area, the in...
[Creating a LiveUSB with the usbfadm command >#liveusb_re...
fugu-demo# usbfadm
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 6.7/amd64 (FuguIta-6.7-amd64-202006142)
Boot mode: manual
Data stored in: not set
Data Saved as: not set
Type ? for help.
? : ? ->newdrive
~ omitted ~
Enter sizes for swap, user data and extra FAT.
You can add suffix K, M, G or T (otherwise considered ...
'*' implies 'all'
'0' doesn't make this partition.
589MB (604128KB) (1208256sectors) free
swap->64m
525MB (538592KB) (1077184sectors) free
userrdata->*
user data encryption? [y/N] -> y ← Specify data st...
Enter passphrase twice. They'll be not echoed.
//// CAUTION ////////////////////////////
//// If you lost this passphrase,
//// you'll never access sd0d.
/////////////////////////////////////////
Passphrase: ← Your input will not be displayed
Passphrase: ← again for confirmation
~ omitted ~
To store data in an encrypted partition, there are two st...
+Specify the encrypted partition with the target function...
~
+If the passphrase is entered correctly, a new disk will ...
- Execute data saving with the sync function of usbfadm.
? : ? ->target
Searching storage device
Please make sure the device inserted.
Then press ENTER ->
sd0a ?sd0d ← The one with "?...
is the encrypt...
target device->sd0d ← Specify this pa...
Passphrase: ← and enter the p...
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
sd1: 525MB, 512 bytes/sector, 1076656 sectors
softraid0: CRYPTO volume attached as sd1
sd0a ?sd0d +sd1d ← A new disk sd1d...
target device->sd1d ← Specify sd1d as...
and then save ...
sd1d : ? ->saveas
Name of avedd ata->fugu-demo
Your data will be saved as ``fugu-demo''.
sd1d : fugu-demo ->sync
Sync current mfs as ``fugu-demo'' , OK? [y/N] -> y
copying /ram to /mnt/livecd-config/6.7/amd64/fugu-demo (...
25.0MiB 0:00:38 [9673KiB/s][[===========================...
waiting for pax to finish ... syncing ... done.
sd1d : fugu-demo ->bye
Loading saved data on subsequent launches is a two-step p...
+Specify boot mode 3, specify an encrypted partition, and...
~
+If the passphrase input is correct, a new disk will appe...
============================================
= ______ __ _
= / ____/ | |_| |__
= / /____ ______ __ _| /_ _/_____
= / ___/ / / / __ \/ / / | | | | / _ |
= / / / /_/ / /_/ / /_/ /| | | |_| (_) |__
=/_/ \____/\__ /\____/ |__| \___/____/__/
= __/ /
= /___/
=
= Welcome to FuguIta - OpenBSD Live System
= http://fuguita.org/
=============================================
scanning partitions: sd0a sd0b sd0d cd0a
FuguIta's operating device(s): sd0a cd0a.
Which is FuguIta's operating device? -> sd0a
activating swap partition: /dev/sd0b
user memory: 239 MB
Enter mfs size in MB. (0MB is auto)
[default: 0MB] ->
mfs size will be automatically allocated
Boot modes:
0: fresh boot - standard mode as a live system
1: fresh boot - less memory, faster boot (/usr is non-...
2: fresh boot - works using only RAM (about 1GB or mor...
3: boot with retrieving saved files from storage device
or enter passphrase for an encrypted volume
4: boot with retrieving saved files from floppy disk
5: interactive shell for debugging
->3 ← select boot mod...
scanning partitions: sd0a sd0b sd0d cd0a
Device(s) found:
encrypted: sd0d
Which is FuguIta's storage device? -> sd0d
Passphrase:
↓ If the passphrase is correct, a new disk will appear.
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
sd1: 525MB, 512 bytes/sector, 1076656 sectors
softraid0: CRYPTO volume attached as sd1
Passphrase successful: Select boot mode again...
Boot modes:
0: fresh boot - standard mode as a live system
1: fresh boot - less memory, faster boot (/usr is non-...
2: fresh boot - works using only RAM (about 1GB or mor...
3: boot with retrieving saved files from storage device
or enter passphrase for an encrypted volume
4: boot with retrieving saved files from floppy disk
5: interactive shell for debugging
->3 ← Specify boot mo...
scanning partitions: sd0a sd0b sd0d cd0a sd1d
Device(s) found:
loadable from: sd1d ← You can read fr...
encrypted: sd0d
Which is FuguIta's storage device? [default: sd1d] -> sd1d
/dev/sd1d : available data;
fugu-demo
config name -> fugu-demo
Copying files from flash to ram ...
done
~ omitted ~
This disk will be visible after boot completes, so you do...
** Enable swap partition [#fb5282c1]
Usually, FuguIta does not use swap and runs only in main ...
Which is FuguIta's operating device? -> wd0a
activating swap partition: /dev/wd0b
activating swap partition: /dev/wd1b
In this example, we found two swap partitions /dev/wd0b a...
Swap partitions are enabled upon detection. There is no s...
>''[Memo]''~
''⇒''If you don't want to use swap for some reason (e.g. ...
After selection, execute the [[swapctl>man:swapctl.8]] co...
After exiting the shell, the boot mode will be selected a...
#aname(fstab_tail)
** Add partition to mount [#e241d5b0]
Usually in Unix OS, the partition to be mounted is specif...
So if a user wants to add or change which partitions are ...
However, in FuguIta, even if you change the contents of t...
During startup initialization, FuguIta probes all disk de...
Finally, the resulting fstab is automatically generated, ...
Therefore, even if the user changes and saves fstab, the ...
If you want to add a partition to mount, write it in the ...
As an example, if you want to additionally mount the e pa...
- Create /etc/fuguita/fstab.tail. The format of this file...
/dev/sd2e /ram/opt ffs rw 0 1
- If the /ram/opt directory does not exist, create it in ...
fugu-demo# mkdir /ram/opt
- Save the file using the sync function of the usbfadm co...
- Reboot the system into boot mode 3 and make sure the sp...
The content of the /etc/fuguita/fstab.tail file is added ...
>''[Memo]''~
''⇒''The mount point must be created inside mfs (under th...
''⇒''/ram The directories and files directly under the /r...
*Other [#d14857c1]
#aname(multidevice)
**Using multiple Fuguita [#b4686050]
Until now, most of the explanations have been based on th...
FuguIta is designed to work well in such cases.
I will explain the case where both LiveDVD and LiveUSB ar...
First, whether the DVD or USB boot immediately after turn...
Next is the operational device (the device mounted in the...
scanning partitions: wd0i wd0j cd0a sd0a sd0d
FuguIta's operating device(s): cd0a sd0a.
Which is FuguIta's operating device? ->
enumerates the available devices like and asks the user ...
>''[Memo]''~
''⇒'' In the above example, wd0i and wd0j are assumed to ...
When reading the saved data, if there are multiple candid...
Boot modes:
0: fresh boot - standard mode as a live system
1: fresh boot - less memory, faster boot (/usr is non-...
2: fresh boot - works using only RAM (about 1GB or mor...
3: boot with retrieving saved files from storage device
or enter passphrase for an encrypted volume
4: boot with retrieving saved files from floppy disk
5: interactive shell for debugging
->3
scanning partitions: wd0i wd0j sd0a sd0d sd1a sd1d
Device(s) found:
loadable from: sd0d sd1d
Which is FuguIta's storage device? ->
When saving data with the usbfadm command, you can specif...
By applying the above, the following operations are possi...
:Operation with the SD card version of FuguIta|[[Create a...
There are almost no PCs that support booting from an SD c...
:Start the LiveDVD version of FuguIta in mode 3|Data cann...
>''[Memo]''~
''⇒''The USB memory is mounted only when saving/restoring...
This feature of FuguIta that "startup and operation can b...
>''[Memo]''~
''⇒'' Note that the automation of setting input described...
#aname(coexist_obsd)
** Let OpenBSD and FuguIta coexist [#a5e14952]
If OpenBSD is already installed on the PC on which you ar...
The principle is to put the FuguIta kernel and ISO image ...
Here's how to install and start. ~
First start your existing OpenBSD and login as root.
Next, create a directory called "ISO" directly under the ...
Download the ISO image from the FuguIta site to this /IS...
fugu-demo# mkdir /ISO
fugu-demo# cd /ISO
fugu-demo# ftp http://mirror.ginzado.ne.jp/pub/FuguIta/F...
Trying 110.92.1.251...
Requesting http://mirror.ginzado.ne.jp/pub/FuguIta/FuguI...
100% |**************************************************...
338634465 bytes received in 468.48 seconds (705.90 KB/s)
fugu-demo# ls -l
total 661632
-rw-r--r-- 1 root wheel 338634465 Dec 29 00:55 FuguIt...
fugu-demo# gunzip FuguIta-6.0-amd64-201612251.iso.gz
fugu-demo# ls -l
total 1427648
-rw-r--r-- 1 root wheel 730744832 Dec 29 00:55 FuguIt...
Copy the FuguIta kernel included in the ISO image directl...
[[vnconfig>man:vnconfig.8]] is a command that allows you ...
fugu-demo# vnconfig vnd0 FuguIta-6.0-amd64-201612251.iso
fugu-demo# vnconfig -l
vnd0: covering FuguIta-6.0-amd64-201612251.iso on wd0a, ...
vnd1: not in use
vnd2: not in use
vnd3: not in use
fugu-demo# mount -r /dev/vnd0a /mnt
fugu-demo# ls -l /mnt
total 1427119
-r-xr-xr-x 1 root bin 71452 Apr 4 2015 boot
-rwxr--r-- 1 root wheel 2048 Dec 27 11:59 boot.c...
-rw-r--r-- 1 root wheel 5569179 Dec 27 19:19 bsd-fi
-rw-r--r-- 1 root wheel 5577796 Dec 27 19:19 bsd-fi...
-r-xr-xr-x 1 root wheel 72328 Dec 27 19:19 cdboot
-r-xr-xr-x 1 root wheel 2048 Dec 27 19:19 cdbr
drwxr-xr-x 2 root wheel 2048 Apr 18 2014 etc
-rw-r--r-- 1 root wheel 719388672 Dec 27 19:19 fuguit...
fugu-demo# cp -p /mnt/bsd-fi /mnt/bsd-fi.mp /
fugu-demo# umount /mnt
fugu-demo# vnconfig -u vnd0
fugu-demo# vnconfig -l
vnd0: not in use
vnd1: not in use
vnd2: not in use
vnd3: not in use
fugu-demo#
The installation is now complete.
>''[Memo]''~
''⇒''If you want to save and restore data, create a direc...
Next is the boot method, the PC boots and the "boot>" pro...
If you do nothing here, the existing OpenBSD system will ...
boot> bsd-fi.mp
This "bsd-fi.mp" is the FuguIta kernel for multiprocessors.
Enter "bsd-fi" if you want to launch the FuguIta kernel f...
>''[Memo]''~
''⇒''In the above explanation, the ISO directory and live...
#aname(coexist_other)
** Let FuguIta coexist with Windows or Linux [#m5d76f26]
FuguIta can also use partitions formatted with Windows NT...
This method is almost the same as the procedure explained...
- boot the OS used as the operational device,
- Create a folder called ISO directly under the file syst...
- Place the ISO image of FuguIta inside that folder.
However, when using FuguIta from a Windows or Linux file ...
- Currently it is not possible to boot an OpenBSD kernel ...
booting.
- Windows and Linux file systems do not support saving an...
#aname(use_tmpfs)
**Change /ram file system to TMPFS [#e78a60b2]
On FuguIta, [[MFS>man:mount_mfs]] is created as a file sy...
Both MFS and TMPFS hold files in memory, but there are di...
| |MFS |TMPFS|h
|file holding|user process|kernel space|
|Memory usage |Once acquired, it is not released even if ...
|Capacity upper limit|There is a maximum value for each a...
| Works | Stable | May be unstable (see below) |
FuguIta adopts MFS because it emphasizes the stability of...
To generate an ISO image of the LiveDVD, use a tool calle...
fugu-demo# cp -pR /sysmedia .
fugu-demo# cd sysmedia
fugu-demo# remaster_dvd.sh -h
/usr/fuguita/sbin/remaster_dvd.sh: -h: unknown option
Usage: remaster_dvd.sh [-m mfs|tmpfs]
fugu-demo# remaster_dvd.sh -m tmpfs
Changing file system of /ram: from mfs to tmpfs
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: 1028
Total directory bytes: 2048
Path table size(bytes): 22
512760 extents written (1001 Mb)
fugu-demo# cd ..
fugu-demo# ls -l
total 2053057
-rw-r--r-- 1 root wheel 1050132480 Mar 14 03:57 FuguI...
drwxr-xr-x 3 root wheel 512 Oct 22 17:09 sysmedia
fugu-demo#
When remastering LiveUSB, specify the newdrive subcommand...
fugu-demo$ doas usbfadm
doas (yoshi@fugu-demo.localnet) password:
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 7.2/amd64 (FuguIta-7.2-amd64-202302081)
Boot mode: usbflash
Target device: /dev/sd1d
Data saved as: fugu-demo
readline capability available
TAB to complete the reserved words
Type ? for help.
sd1d : fugu-demo ->newdrive
~ abbreviated ~
Type of /ram:
1: [MFS]
2: TMPFS
->2
~ abbreviated ~
In FuguIta media with TMPFS enabled, the file system capa...
Enter tmpfs size (0 is auto).
You can add suffix K, M, or G.
% is a percentage of memory size.
and %% is a percentage of the total memory and swap.
otherwise considered "megabytes"
[default: 0M] ->
In this way, the default setting value is "0", and if thi...
>''[Memo]''~
''⇒''Switching between MFS and TMPFS does not affect syst...
>''[Memo]''~
''⇒'' Note that TMPFS is not completely stable as [[docum...
#navi(FuguItaGuide)
Page: