FuguIta/StartGuide
をテンプレートにして作成
Start:
*Getting Started with FuguIta [#e4fee5f3]
In this page, we will explain the simple usage of FuguIta.
----
#contents
*Download FuguIta file [#d914019c]
FuguIta provides ISO images for LiveDVD and raw disk imag...
To obtain the FuguIta file, select the appropriate mirror...
# ftp http://MIRROR.dl.fuguita.org/MEDIA/FuguIta-X.X-ARC...
# ftp http://MIRROR.dl.fuguita.org/MEDIA/SHA256
In the example above, note that the part of MIRROR, MEDIA...
-'''MIRROR''': the name of the appropriate download site
-'''MEDIA''': type of media to burn FuguIta: ''LiveDVD'',...
-'''X.X''': the version of FuguIta
-'''ARCH''': either ''i386'', ''amd64'', or ''arm64''.
-'''TYPE''': either ''iso'' or ''img''~
''iso'' is for LiveDVD and ''img'' is for other devices.
>''Note:'' Unlike many Linux distributions and others, IS...
To create a LiveUSB, use the raw disk image (*.img.gz fil...
SHA256 is a checksum file to check the integrity of the d...
After the download is complete, please make sure that the...
sha256 -C SHA256 FuguIta-X.X-ARCH-YYYYMMDDN.TYPE.gz
*Creating FuguIta Media (on OpenBSD) [#ha83a180]
**Creating LiveDVD [#uf4ff993]
OpenBSD itself does not include software for burning DVDs...
>
-Install DVD writing tool
# pkg_add dvd+rw-tools
-Decompress the ISO file, then burn that image into DVD-R...
# gzip -d FuguIta-X.X-ARCH-YYYYMMDDN.iso.gz
# dvd-format /dev/rcd0c (format media, if you will be...
# growisofs --dvd-compat -Z /dev/rcd0c=FuguIta-X.X-ARCH-...
**Creating LiveUSB [#s64f9d48]
To make a LiveUSB version of FuguIta, prepare a USB memor...
The following is an example of writing using OpenBSD.
>
-Decompress that image, and write it into USB storage dev...
# gzip -dc FuguIta-X.X-ARCH-YYYYMMDDN.img.gz | dd of=/de...
The ''/dev/rsd?c'' part in the above example is the desig...
~
If you are not sure what device to write, run the followi...
# tail -f /var/log/messages # Insert USB flashdrive a...
Jun 12 09:59:30 fugu-demo /bsd: inteldrm0: 1280x800, 32bpp
Jun 12 09:59:30 fugu-demo /bsd: wsdisplay0 at inteldrm0 ...
00 emulation), using wskbd0
Jun 12 09:59:30 fugu-demo /bsd: wskbd1: connecting to ws...
Jun 12 09:59:30 fugu-demo /bsd: wsdisplay0: screen 1-5 a...
on)
Jun 12 09:59:30 fugu-demo slaacd[37947]: sendmsg: Can't ...
Jun 12 09:59:30 fugu-demo ntpd[67052]: creating new /var...
Jun 12 09:59:31 fugu-demo savecore: can't find device 17/1
Jun 12 10:00:02 fugu-demo syslogd[50034]: restart
Jun 12 10:00:50 fugu-demo /bsd: umass1 at uhub4 port 3 c...
0 "UFD 3.0 Silicon-Power32G" rev 2.10/0.0c addr 9 ...
Jun 12 10:00:50 fugu-demo /bsd: umass1: using SCSI over ...
Jun 12 10:00:51 fugu-demo /bsd: scsibus5 at umass1: 2 ta...
Jun 12 10:00:51 fugu-demo /bsd: sd2 at scsibus5 targ 1 l...
Power32G, 1.00> removable serial.1f750916IP0001003248
Jun 12 10:00:51 fugu-demo /bsd: sd2: 29624MB, 512 bytes/...
^C # type Control+C to quit tail command
#
In the above example, the detected device is sd2, so you ...
The "r" in the device name means "raw device" and the "c"...
**Creating LiveSD for Raspberry Pi 3/4 [#g316e54d]
This is the same as [[Creating LiveUSB>#vaab2e8e]]. ~
Write FuguIta's raw disk file to micro SD device in a sam...
*Booting FuguIta [#cb3bad43]
After displaying FuguIta's logo, selection of FuguIta's o...
Unless you attached multiple FuguIta devices, simply pres...
============================================
= ______ __ _
= / ____/ | |_| |__
= / /____ ______ __ _| /_ _/_____
= / ___/ / / / __ \/ / / | | | | / _ |
= / / / /_/ / /_/ / /_/ /| | | |_| (_) |__
=/_/ \____/\__ /\____/ |__| \___/____/__/
= __/ /
= /___/
=
= Welcome to FuguIta - OpenBSD Live System
= http://fuguita.org/
=============================================
scanning partitions: wd0i wd0j cd0a
FuguIta's operating device(s): cd0a.
Which is FuguIta's operating device? [default: cd0a] ->
The next step is to configure settings related to memory.
In the example below, it is first reported that 1007 mega...
The user then enters how many megabytes of that 1007MB of...
The default value is shown as "default: 755M" in the entr...
activating swap partition: /dev/sd0b
available memory: 1007M
total swap size: 16M
Enter mfs size.
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: 755M] -> <== Press only <Enter> here
set mfs size to 755MB
Select boot mode. ~
At first boot, we recommend mode 0.
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
->0
Set keyboard layout, then set root password
Enter keyboard type.
pc-xt/pc-at keyboard:
us de de.nodead fr fr.dvorak dk dk.nodead it uk jp sv sv...
us.dvorak us.colemak us.swapctrlcaps us.iopener uk.swapc...
fr.swapctrlcaps fr.swapctrlcaps.dvorak be.swapctrlcaps u...
us.swapctrlcaps.colemak us.swapctrlcaps.iopener es be ru...
pt lt la br tr tr.nodead pl hu si cf cf.nodead lv nl nl....
keyboard type -> us
kbd: keyboard mapping set to us
Changing password for root.
New password:
Retype new password:
/////////////////////////////////////////////////////////...
Entering the Host Name~
Enter the host name with domain (FQDN: Fully Qualified Do...
Hostname with domain part (FQDN):
only host name without domain part is also OK.
-> fugu-demo.localnet
which IP protocol version to enable~
The default is "64" (enable both IPv6 and IPv4, but give ...
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] ->
If "none" is specified, the device will operate as a stan...
Specifying the network interface~
Next, a list of network devices will be displayed, and yo...
Network Interfaces: Choose one
NIC type Name
-------- ----- ------------
bge1 ether Broadcom BCM57766
ure0 ether Realtek USB 10/100/1000 LAN
run0 wifi Ralink 802.11 n WLAN
[bge1] ->
The device that appears at the top of the list will be th...
[bge1] -> run0
Wi-Fi settings:
SSID -> OUR-WIFI-NETWORK
WPA Key -> OUR-WIFI-SECRET
If you press only ENTER with the WPA key, you will be pro...
WPA Key ->
WEP Key -> OUR-WEP-SECRET
If you press only ENTER with the WEP key, it means that y...
IPv6 Settings~
If you have enabled IPv6, the following configuration inp...
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] ->
5. IPv4 Settings~
If you have enabled IPv4, you will be prompted to enter t...
If you omit "/mask", a netmask that seems appropriate wil...
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.1.147/24 192.168.1.254
6. DNS Server Settings~
If you have configured IPv4 or IPv6 addresses manually, y...
DNS servers: up to 3 IP addresses, separated by spaces
-> 192.168.1.253
Finally, configuration files reflecting the configuration...
writing configured values to:
/etc/fuguita/netconfs/default/myname
/etc/fuguita/netconfs/default/mygate
/etc/fuguita/netconfs/default/hosts
/etc/fuguita/netconfs/default/hostname.bge1
/etc/fuguita/netconfs/default/resolv.conf
If you wish to use X Window System, type X.
Do you login with C)onsole or X) Window System?
[default: C] ->
____________________________________________...
/ Setup for FuguIta ends. /
/ OpenBSD's boot sequence will follow. /
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Automatic boot in progress: starting file system checks.
kbd: keyboard mapping set to us
... snip ...
starting local daemons: cron.
fuguita: disabled KARL because of read-only media
Wed Aug 19 05:28:08 UTC 2020
OpenBSD/amd64 (fugu-demo.localnet) (tty00)
login:
* Initial settings after first root login [#cbc1b818]
FuguIta will make the minimum settings necessary for the ...
In addition, you should configure the environment for run...
** expand a partition for data storage (LiveUSB only) [#v...
As explained in [["Creating LiveUSB">#vaab2e8e]], you can...
However, regardless of the size of the USB flash drive, t...
Of this, the FuguIta system occupies about 1GB, so the us...
The usbfadm utility that comes with the FuguIta has a fun...
An example of using expand is shown below.
fugu-demo# usbfadm
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 7.0/i386 (FuguIta-7.0-i386-202112291)
Boot mode: manual
Target device: not set
Data saved as: not set
readline capability available
TAB to complete the reserved words
Type ? for help.
? : ? ->target
Searching storage device
Please make sure the device inserted.
Then press ENTER ->
sd0i sd0j sd0k sd1a +sd1d vnd5a <=
target device ->sd1d
sd1d : ? ->info
Filesystem Size Used Avail Capacity iused ifr...
/dev/sd1d 1.1G 2.5K 1.1G 0% 5 1287065 0%...
scanning...
512B 7.0/i386/noasks
sd1d : ? ->expand
Select the expansion method for sd1d:
1: growfs - expands the partition while retaining its...
2: newfs - expand and format the partition
3: [exit without expansion]
->2
There are two ways to expand a partition: "growfs" and "n...
With growfs, the area is expanded while retaining the dat...
With newfs, the partition is extended and then reformatted.
So, all files and directories stored on the partition wil...
Since there is no data stored on it now, we will choose n...
This makes sd1d as large as possible.
Note that all contents in sd1d will be removed
Do you proceed? [y/N] -> y
/dev/rsd1d: 3136.5MB in 6423488 sectors of 512 bytes
257 cylinder groups of 12.24MB, 3134 blocks, 6272 inodes...
super-block backups (for fsck -b #) at:
144, 25216, 50288, 75360, 100432, 125504, 150576, 17564...
:
6368432, 6393504, 6418576,
** /dev/rsd1d
** File system is already clean
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1 files, 1 used, 5611214 free (14 frags, 701400 blocks, ...
sd1d : ? ->info <=
Filesystem Size Used Avail Capacity iused ifr...
/dev/sd1d 2.7G 2.5K 2.7G 0% 5 1611897 0%...
scanning...
512B 7.0/i386/noasks
sd1d : ? ->quit
Bye bye...
fugu-demo#
>''Note:'' The parameters of the file system (format form...
#aname(dtjsetup)
** desktop environment setup [#y699e366]
FuguIta provides an utility command dtjsetup that allows ...
# dtjsetup
#==========================================
# Welcome to dtjsetup
# Desktop (and Japanese) setup utility
#
# for FuguIta-6.7-amd64-202008261
#==========================================
Which desktop software will you install?
1: no desktop (wm only)
2: [rox-filer]
3: xfce
4: mate
5: lumina
6: lxqt
-> <== Pressing just ENTER means selecting an i...
enclosed in braces ("rox-filer" in this ...
Which window manager will you install?
1: cwm
2: fvwm
3: twm
4: [icewm]
5: fluxbox
6: jwm
->
Will you setup Japanese language environment? [y/N] ->
*** You selected icewm as desktop software.
*** Installing Japanese environment is NO.
*** No Japanese input method choosen.
*** Checking your root authorization...
*** OK.
*** Checking network accessibility...
*** OK.
*** Installing packages: rox-filer icewm
Will you continue? [y/N] -> y
https://ftp.jaist.ac.jp/pub/OpenBSD/6.7/packages-stable/...
quirks-3.325 signed on 2020-08-11T12:56:29Z
https://ftp.jaist.ac.jp/pub/OpenBSD/6.7/packages-stable/...
... snip ...
https://ftp.jaist.ac.jp/pub/OpenBSD/6.7/packages/amd64/i...
*** Rewrite .xsession configuration file.
Will you continue? [y/N] -> y
Copy this .xsession file to /etc/skel ? [y/N] -> y
*** 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...
#
If you want to install a WM not listed, set the environme...
DTJ_WMS='dwm enlightenment' dtjsetup
On the other hand, you can add a WM which has been alread...
'''~/.xsession''' file:
#!/bin/sh
. $HOME/.profile
if [ -x /usr/local/bin/dbus-launch -a -z "${DBUS_SESSION...
eval `dbus-launch --sh-syntax --exit-with-x11`
fi
dt="no"
wm="fvwm" <== replace this with your WM
case "$dt" in
no)
xsetroot -solid gray12
xclock -geometry 115x115-0+0 -analog -update 1 -...
xterm -geometry +0+0 -rv &
$wm
;;
rox-filer)
** set clock to time zone [#y4887e14]
To set the OS clock to your timezone, link from /etc/loca...
# cd /etc
# ln -sf /usr/share/zoneinfo/Asia/Tokyo localtime
If you said YES at setup of Japanese Environment of dtjse...
** doas utility configuration [#c5b96109]
In OpenBSD, the command doas is used to temporarily perfo...
By setting the contents of the doas configuration file /e...
# echo permit persist :wheel > /etc/doas.conf
** adding software packages [#a93fa56c]
If you wish add application softwares more, ports/package...
Please refer [[OpenBSD's FAQ>https://www.openbsd.org/faq/...
** adding an normal user [#jd2b57bc]
To create an normal user, use adduser utility as follows:
# adduser
Couldn't find /etc/adduser.conf: creating a new adduser ...
Reading /etc/shells
Enter your default shell: csh ksh nologin sh [ksh]:
Your default shell is: ksh -> /bin/ksh
Default login class: authpf bgpd daemon default pbuild s...
[default]:
Enter your default HOME partition: [/home]:
Copy dotfiles from: /etc/skel no [/etc/skel]:
Send welcome message?: /path/file default no [no]:
Do not send message(s)
Prompt for passwords by default (y/n) [y]:
Default encryption method for passwords: auto blowfish [...
Use option ``-silent'' if you don't want to see all warn...
Reading /etc/shells
Check /etc/master.passwd
Check /etc/group
Ok, let's go.
Don't worry about mistakes. There will be a chance later...
Enter username []: yoshi
Enter full name []: Yoshihiro Kawamata
Enter shell csh ksh nologin sh [ksh]:
Uid [1000]:
Login group yoshi [yoshi]:
Login group is ``yoshi''. Invite yoshi into other groups...
[no]: wheel <== add wheel group to enable ...
Login class authpf bgpd daemon default pbuild staff unbo...
[default]:
Enter password []:
Enter password again []:
Name: yoshi
Password: ****
Fullname: Yoshihiro Kawamata
Uid: 1000
Gid: 1000 (yoshi)
Groups: yoshi wheel
Login Class: default
HOME: /home/yoshi
Shell: /bin/ksh
OK? (y/n) [y]: y
Added user ``yoshi''
Copy files from /etc/skel to /home/yoshi
Add another user? (y/n) [y]: n
Goodbye!
#
Next, login as an ordnary user "yoshi" to check such acco...
# exit
OpenBSD/amd64 (fugu-demo.local) (tty00)
login: yoshi
Password:
OpenBSD 6.7-stable (RDROOT.MP) #5: Wed Jul 22 12:57:54 J...
Welcome to OpenBSD: The proactively secure Unix-like ope...
Please use the sendbug(1) utility to report bugs in the ...
Before reporting a bug, please try to reproduce it with ...
version of the code. With bug reports, please try to en...
enough information to reproduce the problem is enclosed,...
known fix for it exists, include that as well.
fugu-demo$ pwd
/ram/home/yoshi
fugu-demo$ exit
* save and load your data (LiveUSB only) [#t8581479]
All the settings you have made up to this point exist on ...
FuguIta can save the settings you have made and the data ...
#aname(usbfadm_sync)
** saving files and directories when FuguIta is running [...
A utility called usbfadm is used to save settings and data.
# usbfadm
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 6.7/amd64 (FuguIta-6.7-amd64-202008261)
Boot mode: manual
Data stored in: not set
Data Saved as: not set
Type ? for help.
? : ? ->target <== Use "target" to specify th...
Searching storage device
Please make sure the device inserted.
Then press ENTER ->
sd0a +sd0d <== the partition for saving d...
target device->sd0d
sd0d : ? ->saveas <== Use "saveas" to name the s...
Name of saved data->fugu-demo
Your data will be saved as ``fugu-demo''.
sd0d : fugu-demo ->sync <== "sync" saves data actually
Sync current mfs as ``fugu-demo'' , OK? [y/N] -> y
copying /ram to /mnt/livecd-config/6.7/amd64/fugu-demo (...
pax: ./tmp/sndio/sock0 skipped. Sockets cannot be copied...
pax: ./var/run/ntpd.sock skipped. Sockets cannot be copi...
pax: ./var/run/smtpd.sock skipped. Sockets cannot be cop...
pax: ./var/run/cron.sock skipped. Sockets cannot be copi...
25.0MiB 0:00:02 [10.6MiB/s] [===========================...
waiting for pax to finish ... syncing ... done.
sd0d : fugu-demo ->info <== confirm the status of the ...
Filesystem Size Used Avail Capacity iused ifr...
/dev/sd0d 961M 22.8M 939M 2% 20423 1116663 ...
scanning...
22.8M 6.7/amd64/fugu-demo
sd0d : fugu-demo ->quit
Bye bye...
#
Since the second and subsequent syncs perform differentia...
>''Note:'' You can do usbfadm's sync on a command line of...
# usbfadm -r
The option '-r' will redo usbfadm's sync on a command lin...
And also you can do it background by cron:
# crontab file
#minute hour mday month wday command
...snip...
# save session periodically
0 */4 * * * PATH=$PATH:/usr/...
This will do usbfadm's sync every 4 hours. ''-q'' is the ...
#aname(boot_mode3)
** loading files and directories at subsequent boot [#o86...
To restore the data saved by usbfadm at startup, specify ...
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: sd0a sd0d sd0i cd0a
Device(s) found:
loadable from: sd0d
Which is FuguIta's storage device? [default: sd0d] ->
/dev/sd0d : available data;
fugu-demo
config name -> fugu-demo
Copying files from flash to ram ...
... snip ...
starting local daemons: cron.
fuguita: disabled KARL because of read-only media
Thu Sep 3 15:13:36 JST 2020
OpenBSD/amd64 (fugu-demo.localnet) (tty00)
login:
>''Note:'' Even if you are using FuguIta Live DVD, it is ...
#aname(autorun)
** automate load/save operation [#d54ca578]
*** automated load [#ic917a09]
FuguIta prompts the user to enter the following 5 items a...
-Name of FuguIta's system partition
-Maximum capacity of MFS (RAM file system)
-Boot mode
-Name of data storage device
-Name of data you saved as
You can automate those inputs by editing the noasks files...
# mount /dev/sd0d /mnt ...
# vi /mnt/livecd-config/7.0/amd64/noasks
Edit noasks file to fill item values and to uncomment them
#
# noasks - parameter settings for non-interactive boot
#
# Make statements uncommented
# to activate settings
#
#
# FuguIta system device
noask_rdev=sd0a
#
# mfs size in MB
noask_umem=0
#
# boot mode
noask_setup_rw_mode=3
#
# storage device
noask_confdev=sd0d
#
# data set name in USB flash drive
noask_confdir=fugu-demo
# umount /mnt
Since noasks edited, following line will appear at boot t...
# reboot
...snip...
============================================
= ______ __ _
= / ____/ | |_| |__
= / /____ ______ __ _| /_ _/_____
= / ___/ / / / __ \/ / / | | | | / _ |
= / / / /_/ / /_/ / /_/ /| | | |_| (_) |__
=/_/ \____/\__ /\____/ |__| \___/____/__/
= __/ /
= /___/
=
= Welcome to FuguIta! - OpenBSD Live System
= http://fuguita.org/?FuguIta
=============================================
scanning partitions: wd0i wd0j sd0a sd0d sd0i
FuguIta's operating device(s): sd0a.
Press ^C to cancel non-interactive boot
Wait 5 seconds after this message is displayed, and the b...
If you enter <Control>-C within 5 seconds, the automatic ...
*** automated save [#db841f2f]
In the previous section, making it possible to omit enter...
OpenBSD runs a script called /etc/rc.shutdown when the sy...
On FuguIta, the data saving process is described in /etc/...
force_umount=No # set Yes for forced umount /ram at shu...
force_resync=No # set Yes to re-sync at shutdown
...snip...
If force_resync is set to Yes, data will be saved at shut...
>''Note:'' Although this process provides error recovery ...
*More further informations [#j11efb48]
FuguIta can be used in various ways by combining boot mod...
See the [[FuguIta Guide>FuguItaGuide]] for such applicati...
End:
*Getting Started with FuguIta [#e4fee5f3]
In this page, we will explain the simple usage of FuguIta.
----
#contents
*Download FuguIta file [#d914019c]
FuguIta provides ISO images for LiveDVD and raw disk imag...
To obtain the FuguIta file, select the appropriate mirror...
# ftp http://MIRROR.dl.fuguita.org/MEDIA/FuguIta-X.X-ARC...
# ftp http://MIRROR.dl.fuguita.org/MEDIA/SHA256
In the example above, note that the part of MIRROR, MEDIA...
-'''MIRROR''': the name of the appropriate download site
-'''MEDIA''': type of media to burn FuguIta: ''LiveDVD'',...
-'''X.X''': the version of FuguIta
-'''ARCH''': either ''i386'', ''amd64'', or ''arm64''.
-'''TYPE''': either ''iso'' or ''img''~
''iso'' is for LiveDVD and ''img'' is for other devices.
>''Note:'' Unlike many Linux distributions and others, IS...
To create a LiveUSB, use the raw disk image (*.img.gz fil...
SHA256 is a checksum file to check the integrity of the d...
After the download is complete, please make sure that the...
sha256 -C SHA256 FuguIta-X.X-ARCH-YYYYMMDDN.TYPE.gz
*Creating FuguIta Media (on OpenBSD) [#ha83a180]
**Creating LiveDVD [#uf4ff993]
OpenBSD itself does not include software for burning DVDs...
>
-Install DVD writing tool
# pkg_add dvd+rw-tools
-Decompress the ISO file, then burn that image into DVD-R...
# gzip -d FuguIta-X.X-ARCH-YYYYMMDDN.iso.gz
# dvd-format /dev/rcd0c (format media, if you will be...
# growisofs --dvd-compat -Z /dev/rcd0c=FuguIta-X.X-ARCH-...
**Creating LiveUSB [#s64f9d48]
To make a LiveUSB version of FuguIta, prepare a USB memor...
The following is an example of writing using OpenBSD.
>
-Decompress that image, and write it into USB storage dev...
# gzip -dc FuguIta-X.X-ARCH-YYYYMMDDN.img.gz | dd of=/de...
The ''/dev/rsd?c'' part in the above example is the desig...
~
If you are not sure what device to write, run the followi...
# tail -f /var/log/messages # Insert USB flashdrive a...
Jun 12 09:59:30 fugu-demo /bsd: inteldrm0: 1280x800, 32bpp
Jun 12 09:59:30 fugu-demo /bsd: wsdisplay0 at inteldrm0 ...
00 emulation), using wskbd0
Jun 12 09:59:30 fugu-demo /bsd: wskbd1: connecting to ws...
Jun 12 09:59:30 fugu-demo /bsd: wsdisplay0: screen 1-5 a...
on)
Jun 12 09:59:30 fugu-demo slaacd[37947]: sendmsg: Can't ...
Jun 12 09:59:30 fugu-demo ntpd[67052]: creating new /var...
Jun 12 09:59:31 fugu-demo savecore: can't find device 17/1
Jun 12 10:00:02 fugu-demo syslogd[50034]: restart
Jun 12 10:00:50 fugu-demo /bsd: umass1 at uhub4 port 3 c...
0 "UFD 3.0 Silicon-Power32G" rev 2.10/0.0c addr 9 ...
Jun 12 10:00:50 fugu-demo /bsd: umass1: using SCSI over ...
Jun 12 10:00:51 fugu-demo /bsd: scsibus5 at umass1: 2 ta...
Jun 12 10:00:51 fugu-demo /bsd: sd2 at scsibus5 targ 1 l...
Power32G, 1.00> removable serial.1f750916IP0001003248
Jun 12 10:00:51 fugu-demo /bsd: sd2: 29624MB, 512 bytes/...
^C # type Control+C to quit tail command
#
In the above example, the detected device is sd2, so you ...
The "r" in the device name means "raw device" and the "c"...
**Creating LiveSD for Raspberry Pi 3/4 [#g316e54d]
This is the same as [[Creating LiveUSB>#vaab2e8e]]. ~
Write FuguIta's raw disk file to micro SD device in a sam...
*Booting FuguIta [#cb3bad43]
After displaying FuguIta's logo, selection of FuguIta's o...
Unless you attached multiple FuguIta devices, simply pres...
============================================
= ______ __ _
= / ____/ | |_| |__
= / /____ ______ __ _| /_ _/_____
= / ___/ / / / __ \/ / / | | | | / _ |
= / / / /_/ / /_/ / /_/ /| | | |_| (_) |__
=/_/ \____/\__ /\____/ |__| \___/____/__/
= __/ /
= /___/
=
= Welcome to FuguIta - OpenBSD Live System
= http://fuguita.org/
=============================================
scanning partitions: wd0i wd0j cd0a
FuguIta's operating device(s): cd0a.
Which is FuguIta's operating device? [default: cd0a] ->
The next step is to configure settings related to memory.
In the example below, it is first reported that 1007 mega...
The user then enters how many megabytes of that 1007MB of...
The default value is shown as "default: 755M" in the entr...
activating swap partition: /dev/sd0b
available memory: 1007M
total swap size: 16M
Enter mfs size.
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: 755M] -> <== Press only <Enter> here
set mfs size to 755MB
Select boot mode. ~
At first boot, we recommend mode 0.
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
->0
Set keyboard layout, then set root password
Enter keyboard type.
pc-xt/pc-at keyboard:
us de de.nodead fr fr.dvorak dk dk.nodead it uk jp sv sv...
us.dvorak us.colemak us.swapctrlcaps us.iopener uk.swapc...
fr.swapctrlcaps fr.swapctrlcaps.dvorak be.swapctrlcaps u...
us.swapctrlcaps.colemak us.swapctrlcaps.iopener es be ru...
pt lt la br tr tr.nodead pl hu si cf cf.nodead lv nl nl....
keyboard type -> us
kbd: keyboard mapping set to us
Changing password for root.
New password:
Retype new password:
/////////////////////////////////////////////////////////...
Entering the Host Name~
Enter the host name with domain (FQDN: Fully Qualified Do...
Hostname with domain part (FQDN):
only host name without domain part is also OK.
-> fugu-demo.localnet
which IP protocol version to enable~
The default is "64" (enable both IPv6 and IPv4, but give ...
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] ->
If "none" is specified, the device will operate as a stan...
Specifying the network interface~
Next, a list of network devices will be displayed, and yo...
Network Interfaces: Choose one
NIC type Name
-------- ----- ------------
bge1 ether Broadcom BCM57766
ure0 ether Realtek USB 10/100/1000 LAN
run0 wifi Ralink 802.11 n WLAN
[bge1] ->
The device that appears at the top of the list will be th...
[bge1] -> run0
Wi-Fi settings:
SSID -> OUR-WIFI-NETWORK
WPA Key -> OUR-WIFI-SECRET
If you press only ENTER with the WPA key, you will be pro...
WPA Key ->
WEP Key -> OUR-WEP-SECRET
If you press only ENTER with the WEP key, it means that y...
IPv6 Settings~
If you have enabled IPv6, the following configuration inp...
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] ->
5. IPv4 Settings~
If you have enabled IPv4, you will be prompted to enter t...
If you omit "/mask", a netmask that seems appropriate wil...
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.1.147/24 192.168.1.254
6. DNS Server Settings~
If you have configured IPv4 or IPv6 addresses manually, y...
DNS servers: up to 3 IP addresses, separated by spaces
-> 192.168.1.253
Finally, configuration files reflecting the configuration...
writing configured values to:
/etc/fuguita/netconfs/default/myname
/etc/fuguita/netconfs/default/mygate
/etc/fuguita/netconfs/default/hosts
/etc/fuguita/netconfs/default/hostname.bge1
/etc/fuguita/netconfs/default/resolv.conf
If you wish to use X Window System, type X.
Do you login with C)onsole or X) Window System?
[default: C] ->
____________________________________________...
/ Setup for FuguIta ends. /
/ OpenBSD's boot sequence will follow. /
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Automatic boot in progress: starting file system checks.
kbd: keyboard mapping set to us
... snip ...
starting local daemons: cron.
fuguita: disabled KARL because of read-only media
Wed Aug 19 05:28:08 UTC 2020
OpenBSD/amd64 (fugu-demo.localnet) (tty00)
login:
* Initial settings after first root login [#cbc1b818]
FuguIta will make the minimum settings necessary for the ...
In addition, you should configure the environment for run...
** expand a partition for data storage (LiveUSB only) [#v...
As explained in [["Creating LiveUSB">#vaab2e8e]], you can...
However, regardless of the size of the USB flash drive, t...
Of this, the FuguIta system occupies about 1GB, so the us...
The usbfadm utility that comes with the FuguIta has a fun...
An example of using expand is shown below.
fugu-demo# usbfadm
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 7.0/i386 (FuguIta-7.0-i386-202112291)
Boot mode: manual
Target device: not set
Data saved as: not set
readline capability available
TAB to complete the reserved words
Type ? for help.
? : ? ->target
Searching storage device
Please make sure the device inserted.
Then press ENTER ->
sd0i sd0j sd0k sd1a +sd1d vnd5a <=
target device ->sd1d
sd1d : ? ->info
Filesystem Size Used Avail Capacity iused ifr...
/dev/sd1d 1.1G 2.5K 1.1G 0% 5 1287065 0%...
scanning...
512B 7.0/i386/noasks
sd1d : ? ->expand
Select the expansion method for sd1d:
1: growfs - expands the partition while retaining its...
2: newfs - expand and format the partition
3: [exit without expansion]
->2
There are two ways to expand a partition: "growfs" and "n...
With growfs, the area is expanded while retaining the dat...
With newfs, the partition is extended and then reformatted.
So, all files and directories stored on the partition wil...
Since there is no data stored on it now, we will choose n...
This makes sd1d as large as possible.
Note that all contents in sd1d will be removed
Do you proceed? [y/N] -> y
/dev/rsd1d: 3136.5MB in 6423488 sectors of 512 bytes
257 cylinder groups of 12.24MB, 3134 blocks, 6272 inodes...
super-block backups (for fsck -b #) at:
144, 25216, 50288, 75360, 100432, 125504, 150576, 17564...
:
6368432, 6393504, 6418576,
** /dev/rsd1d
** File system is already clean
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1 files, 1 used, 5611214 free (14 frags, 701400 blocks, ...
sd1d : ? ->info <=
Filesystem Size Used Avail Capacity iused ifr...
/dev/sd1d 2.7G 2.5K 2.7G 0% 5 1611897 0%...
scanning...
512B 7.0/i386/noasks
sd1d : ? ->quit
Bye bye...
fugu-demo#
>''Note:'' The parameters of the file system (format form...
#aname(dtjsetup)
** desktop environment setup [#y699e366]
FuguIta provides an utility command dtjsetup that allows ...
# dtjsetup
#==========================================
# Welcome to dtjsetup
# Desktop (and Japanese) setup utility
#
# for FuguIta-6.7-amd64-202008261
#==========================================
Which desktop software will you install?
1: no desktop (wm only)
2: [rox-filer]
3: xfce
4: mate
5: lumina
6: lxqt
-> <== Pressing just ENTER means selecting an i...
enclosed in braces ("rox-filer" in this ...
Which window manager will you install?
1: cwm
2: fvwm
3: twm
4: [icewm]
5: fluxbox
6: jwm
->
Will you setup Japanese language environment? [y/N] ->
*** You selected icewm as desktop software.
*** Installing Japanese environment is NO.
*** No Japanese input method choosen.
*** Checking your root authorization...
*** OK.
*** Checking network accessibility...
*** OK.
*** Installing packages: rox-filer icewm
Will you continue? [y/N] -> y
https://ftp.jaist.ac.jp/pub/OpenBSD/6.7/packages-stable/...
quirks-3.325 signed on 2020-08-11T12:56:29Z
https://ftp.jaist.ac.jp/pub/OpenBSD/6.7/packages-stable/...
... snip ...
https://ftp.jaist.ac.jp/pub/OpenBSD/6.7/packages/amd64/i...
*** Rewrite .xsession configuration file.
Will you continue? [y/N] -> y
Copy this .xsession file to /etc/skel ? [y/N] -> y
*** 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...
#
If you want to install a WM not listed, set the environme...
DTJ_WMS='dwm enlightenment' dtjsetup
On the other hand, you can add a WM which has been alread...
'''~/.xsession''' file:
#!/bin/sh
. $HOME/.profile
if [ -x /usr/local/bin/dbus-launch -a -z "${DBUS_SESSION...
eval `dbus-launch --sh-syntax --exit-with-x11`
fi
dt="no"
wm="fvwm" <== replace this with your WM
case "$dt" in
no)
xsetroot -solid gray12
xclock -geometry 115x115-0+0 -analog -update 1 -...
xterm -geometry +0+0 -rv &
$wm
;;
rox-filer)
** set clock to time zone [#y4887e14]
To set the OS clock to your timezone, link from /etc/loca...
# cd /etc
# ln -sf /usr/share/zoneinfo/Asia/Tokyo localtime
If you said YES at setup of Japanese Environment of dtjse...
** doas utility configuration [#c5b96109]
In OpenBSD, the command doas is used to temporarily perfo...
By setting the contents of the doas configuration file /e...
# echo permit persist :wheel > /etc/doas.conf
** adding software packages [#a93fa56c]
If you wish add application softwares more, ports/package...
Please refer [[OpenBSD's FAQ>https://www.openbsd.org/faq/...
** adding an normal user [#jd2b57bc]
To create an normal user, use adduser utility as follows:
# adduser
Couldn't find /etc/adduser.conf: creating a new adduser ...
Reading /etc/shells
Enter your default shell: csh ksh nologin sh [ksh]:
Your default shell is: ksh -> /bin/ksh
Default login class: authpf bgpd daemon default pbuild s...
[default]:
Enter your default HOME partition: [/home]:
Copy dotfiles from: /etc/skel no [/etc/skel]:
Send welcome message?: /path/file default no [no]:
Do not send message(s)
Prompt for passwords by default (y/n) [y]:
Default encryption method for passwords: auto blowfish [...
Use option ``-silent'' if you don't want to see all warn...
Reading /etc/shells
Check /etc/master.passwd
Check /etc/group
Ok, let's go.
Don't worry about mistakes. There will be a chance later...
Enter username []: yoshi
Enter full name []: Yoshihiro Kawamata
Enter shell csh ksh nologin sh [ksh]:
Uid [1000]:
Login group yoshi [yoshi]:
Login group is ``yoshi''. Invite yoshi into other groups...
[no]: wheel <== add wheel group to enable ...
Login class authpf bgpd daemon default pbuild staff unbo...
[default]:
Enter password []:
Enter password again []:
Name: yoshi
Password: ****
Fullname: Yoshihiro Kawamata
Uid: 1000
Gid: 1000 (yoshi)
Groups: yoshi wheel
Login Class: default
HOME: /home/yoshi
Shell: /bin/ksh
OK? (y/n) [y]: y
Added user ``yoshi''
Copy files from /etc/skel to /home/yoshi
Add another user? (y/n) [y]: n
Goodbye!
#
Next, login as an ordnary user "yoshi" to check such acco...
# exit
OpenBSD/amd64 (fugu-demo.local) (tty00)
login: yoshi
Password:
OpenBSD 6.7-stable (RDROOT.MP) #5: Wed Jul 22 12:57:54 J...
Welcome to OpenBSD: The proactively secure Unix-like ope...
Please use the sendbug(1) utility to report bugs in the ...
Before reporting a bug, please try to reproduce it with ...
version of the code. With bug reports, please try to en...
enough information to reproduce the problem is enclosed,...
known fix for it exists, include that as well.
fugu-demo$ pwd
/ram/home/yoshi
fugu-demo$ exit
* save and load your data (LiveUSB only) [#t8581479]
All the settings you have made up to this point exist on ...
FuguIta can save the settings you have made and the data ...
#aname(usbfadm_sync)
** saving files and directories when FuguIta is running [...
A utility called usbfadm is used to save settings and data.
# usbfadm
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 6.7/amd64 (FuguIta-6.7-amd64-202008261)
Boot mode: manual
Data stored in: not set
Data Saved as: not set
Type ? for help.
? : ? ->target <== Use "target" to specify th...
Searching storage device
Please make sure the device inserted.
Then press ENTER ->
sd0a +sd0d <== the partition for saving d...
target device->sd0d
sd0d : ? ->saveas <== Use "saveas" to name the s...
Name of saved data->fugu-demo
Your data will be saved as ``fugu-demo''.
sd0d : fugu-demo ->sync <== "sync" saves data actually
Sync current mfs as ``fugu-demo'' , OK? [y/N] -> y
copying /ram to /mnt/livecd-config/6.7/amd64/fugu-demo (...
pax: ./tmp/sndio/sock0 skipped. Sockets cannot be copied...
pax: ./var/run/ntpd.sock skipped. Sockets cannot be copi...
pax: ./var/run/smtpd.sock skipped. Sockets cannot be cop...
pax: ./var/run/cron.sock skipped. Sockets cannot be copi...
25.0MiB 0:00:02 [10.6MiB/s] [===========================...
waiting for pax to finish ... syncing ... done.
sd0d : fugu-demo ->info <== confirm the status of the ...
Filesystem Size Used Avail Capacity iused ifr...
/dev/sd0d 961M 22.8M 939M 2% 20423 1116663 ...
scanning...
22.8M 6.7/amd64/fugu-demo
sd0d : fugu-demo ->quit
Bye bye...
#
Since the second and subsequent syncs perform differentia...
>''Note:'' You can do usbfadm's sync on a command line of...
# usbfadm -r
The option '-r' will redo usbfadm's sync on a command lin...
And also you can do it background by cron:
# crontab file
#minute hour mday month wday command
...snip...
# save session periodically
0 */4 * * * PATH=$PATH:/usr/...
This will do usbfadm's sync every 4 hours. ''-q'' is the ...
#aname(boot_mode3)
** loading files and directories at subsequent boot [#o86...
To restore the data saved by usbfadm at startup, specify ...
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: sd0a sd0d sd0i cd0a
Device(s) found:
loadable from: sd0d
Which is FuguIta's storage device? [default: sd0d] ->
/dev/sd0d : available data;
fugu-demo
config name -> fugu-demo
Copying files from flash to ram ...
... snip ...
starting local daemons: cron.
fuguita: disabled KARL because of read-only media
Thu Sep 3 15:13:36 JST 2020
OpenBSD/amd64 (fugu-demo.localnet) (tty00)
login:
>''Note:'' Even if you are using FuguIta Live DVD, it is ...
#aname(autorun)
** automate load/save operation [#d54ca578]
*** automated load [#ic917a09]
FuguIta prompts the user to enter the following 5 items a...
-Name of FuguIta's system partition
-Maximum capacity of MFS (RAM file system)
-Boot mode
-Name of data storage device
-Name of data you saved as
You can automate those inputs by editing the noasks files...
# mount /dev/sd0d /mnt ...
# vi /mnt/livecd-config/7.0/amd64/noasks
Edit noasks file to fill item values and to uncomment them
#
# noasks - parameter settings for non-interactive boot
#
# Make statements uncommented
# to activate settings
#
#
# FuguIta system device
noask_rdev=sd0a
#
# mfs size in MB
noask_umem=0
#
# boot mode
noask_setup_rw_mode=3
#
# storage device
noask_confdev=sd0d
#
# data set name in USB flash drive
noask_confdir=fugu-demo
# umount /mnt
Since noasks edited, following line will appear at boot t...
# reboot
...snip...
============================================
= ______ __ _
= / ____/ | |_| |__
= / /____ ______ __ _| /_ _/_____
= / ___/ / / / __ \/ / / | | | | / _ |
= / / / /_/ / /_/ / /_/ /| | | |_| (_) |__
=/_/ \____/\__ /\____/ |__| \___/____/__/
= __/ /
= /___/
=
= Welcome to FuguIta! - OpenBSD Live System
= http://fuguita.org/?FuguIta
=============================================
scanning partitions: wd0i wd0j sd0a sd0d sd0i
FuguIta's operating device(s): sd0a.
Press ^C to cancel non-interactive boot
Wait 5 seconds after this message is displayed, and the b...
If you enter <Control>-C within 5 seconds, the automatic ...
*** automated save [#db841f2f]
In the previous section, making it possible to omit enter...
OpenBSD runs a script called /etc/rc.shutdown when the sy...
On FuguIta, the data saving process is described in /etc/...
force_umount=No # set Yes for forced umount /ram at shu...
force_resync=No # set Yes to re-sync at shutdown
...snip...
If force_resync is set to Yes, data will be saved at shut...
>''Note:'' Although this process provides error recovery ...
*More further informations [#j11efb48]
FuguIta can be used in various ways by combining boot mod...
See the [[FuguIta Guide>FuguItaGuide]] for such applicati...
Page: