FuguIta/BBS/8
をテンプレートにして作成
Start:
This page is archived. ~
Current active BBS is [[FuguIta/BBS]].
----
#contents
**Another new function of usbfadm
>[[kaw]] (2019-01-12 (Sat) 22:43:42)~
~
New usbfadm can create a raw disk image of FuguIta by spe...
Here's an example:~
# usbfadm
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 6.4/amd64 (FuguIta-6.4-amd64-201901122)
Boot mode: manual
Data stored in: not set
Data Saved as: not set
Type ? for help.
? : ? ->newdrive
Please make sure the device inserted.
Then press ENTER ->
==== disk(s) and vnode devices ========================...
wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 1024MB, 2097152 sectors
wd1 at pciide0 channel 0 drive 1: <QEMU HARDDISK>
wd1: 16-sector PIO, LBA48, 2048MB, 4194304 sectors
vnd0: not in use
vnd1: not in use
vnd2: not in use
vnd3: not in use
vnd4: not in use
vnd5: covering /sysmedia/fuguita-6.4-amd64.ffsimg on wd0...
========================================================...
Enter the name of device which FuguIta will be installed...
Enter size of a vnode device file.
You can add suffix K, M, G or T (otherwise considered 'b...
->1g
1024+0 records in
1024+0 records out
1073741824 bytes transferred in 95.420 secs (11252729 by...
Disk: vnd0 geometry: 20971/1/100 [2097152 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 partition type:
1: [MBR]
2: GPT
3: Hybrid (not recommended if you wish modify partiti...
->1
Select boot method:
1: [Legacy BIOS]
2: none (only for save data)
3: UEFI
->1
Enter size for saving User Data.
You can add suffix K, M, G or T (otherwise considered 'b...
323MB (663488sectors) free
'*' implies 'all'->*
target disk: vnd0
partition type=MBR
boot type=Legacy
-------------------- : ------
partition : size
-------------------- : ------
whole disk : 1GB
disk metadata : 32KB
UEFI system : 0B
FuguIta system : 700MB
FuguIta user data : 323MB
MSDOS FAT : 0B
-------------------- : ------
***THIS IS THE LAST CHANCE***
If you type 'Y' now, all the data on vnd0 will be lost.
Are you sure to initialize vnd0? [y/N] -> y
========================================
= Clearing MBR, GPT and BSD disklabel
=
> ------8<------snip------8<------
? : ? ->bye
Bye bye...
# ls -l
total 2097712
-rw-r--r-- 1 root wheel 1073741824 Jan 12 13:17 FuguI...
//
**FuguIta for UEFI/GPT
>[[kaw]] (2018-12-21 (Fri) 15:15:14)~
~
I'm working on FuguIta for UEFI/GPT functionality.~
This is being planned as additional feature of USB flash ...
//
- The coding is almost done. Next I will debug and refine...
- See this tweet - https://twitter.com/yoshi_kaw/status/1...
- [[Images for test have been uploaded.>http://mirror.gin...
**FuguIta as virtualization guest
>[[kaw]] (2018-12-05 (Wed) 14:27:32)~
~
I'm working on FuguIta as a vmm(4)/vmd(8) virtualization ...
~
Try this test version as follows:~
vmhost# ftp http://mirror.ginzado.ne.jp/pub/FuguIta/Fugu...
vmhost# gzip -d FuguIta-6.4-amd64-201812052.iso.gz
vmhost# rcctl enable vmd
vmhost# rcctl start vmd
vmd(ok)
vmhost# vmctl start testfi -r FuguIta-6.4-amd64-20181205...
vmctl: starting without disks
vmctl: starting without network interfaces
vmctl: started vm 1 successfully, tty /dev/ttyp1
Connected to /dev/ttyp1 (speed 115200)
SeaBIOS (version 1.11.0p0-OpenBSD-vmm)
CD-ROM: E0
Loading /CDBOOT
probing: pc0 com0 mem[638K 510M a20=on]
disk: cd0
>> OpenBSD/amd64 CDBOOT 3.40
\
>> bsd-fi.mp is for
>> multiprocessor kernel (default).
>> Enter 'bsd-fi' for Uniprocessor.
boot>
booting cd0a:/bsd-fi.mp: 10548999+2552840+2215968+0+6758...
entry point at 0x1000158
[ using 2153512 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. Al...
Copyright (c) 1995-2018 OpenBSD. All rights reserved. h...
OpenBSD 6.4-stable (RDROOT.MP) #2: Sun Dec 2 23:13:01 J...
root@nimbus9.localnet:/opt/fi/6.4/sys/arch/amd64/com...
real mem = 520085504 (495MB)
avail mem = 493146112 (470MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf1950 (10 entries)
bios0: vendor SeaBIOS version "1.11.0p0-OpenBSD-vmm" dat...
bios0: OpenBSD VMM
acpi at bios0 not configured
:
:
starting local daemons: cron.
KARL: disabled
Wed Dec 5 05:18:36 UTC 2018
OpenBSD/amd64 (vmguest) (tty00)
login: root
Password:
OpenBSD 6.4-stable (RDROOT.MP) #2: Sun Dec 2 23:13:01 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.
You have new mail.
vmguest# cat /usr/fuguita/version ...
6.4-amd64-201812052
vmguest# /sbin/shutdown -hp now ...
Shutdown NOW!
shutdown: [pid 18229]
...
*** FINAL System shutdown message from root@vmguest *** ...
System going down IMMEDIATELY ...
...
...
vmguest#
System shutdown time has arrived
vmguest# syncing disks... done
vmmci0: powerdown
The operating system has halted.
Please press any key to reboot.
# (just press ENTER here)
[EOT]
vmhost#
At this version, FuguIta enables a getty on /dev/tty00 if...
//
- Note that the baud rate of getty on /dev/tty00 is fixed...
- We solved above issue at [[FuguIta-6.4-*-201812121>Fugu...
**read only
>[[kaw]] (2018-10-31 (Wed) 07:58:52)~
~
To avoid spam posts, being this host read only temporaril...
//
- became RW again -- [[kaw]] &new{2018-11-01 (Thu) 23:05:...
**OpenBSD 6.4 released
>[[kaw]] (2018-10-19 (Fri) 10:51:02)~
~
I am working for FuguIta 6.4 now.~
//
-i386/amd64: built 6.4 release -- [[kaw]] &new{2018-10-19...
--created new partitions and cloned 6.3 to there.
--updated source tree from 6.3 to 6.4 by CVS with tag OPE...
--succeeded to make release files from source tree.
--updated whole system to 6.4
- i386: setup build tools -- [[kaw]] &new{2018-10-19 (Fri...
-- compile under TOOLDIR/lib/special for bootbin
-- build crunched binary /boottmp/bootbin under TOOLDIR/l...
-- compile TOOLDIR/rdsetroot
-- rename TOOLDIR/media/fuguita-6.3-i386.ffsimg to 6.4's
-- remove all files under TOOLDIR/fuguita
-- build kernels
--- create RDROOT and RDROOT.MP kernel config files, then...
-- add two new vnode devices under TOOLDIR/rdroot/dev
- i386: create FuguIta's contents in TOOLDIR/fuguita -- [...
--for /usr
---fix dandling symlinks in bin dirs
---delete /usr/lib/lib*_p.a /usr/share/relink/kernel.tgz
---crete dirs/files under /usr/fuguita~
add fuguita bin dirs to PATH to /root/.profile and /etc/s...
--under TOOLDIR chrooted
---pkg_addr rsync and rlwrapper
---ldconfig -m
---MAKEDEV std
--for /etc
---create /etc/hosts for locahost
---create /etc/localtime : timezone to UTC
---create /etc/rc.firsttime
---fix /etc/man.conf and makewhatis
---fix /etc/mtree/special
---fix /etc/sysctl.conf
---disable KARL in /etc/rc
--for /var
---create /var/db/host.ramdom
--for X
---mkfontdir, mkfontscale and fc-cache
--final setup
---remove /root/.ksh_history
---make /usr/fuguita/etc/mode0symlinks.cpio.gz
---copy boot stuffs into TOOLDIR/lib
--create an ISO image
---make contall
- amd64 as well -- [[kaw]] &new{2018-10-24 (Wed) 16:19:49};
- Now working for RC. Please wait. -- [[kaw]] &new{2018-1...
- FuguIta 6.4 is out. -- [[kaw]] &new{2018-10-30 (Tue) 12...
- going to work publishing build tools -- [[kaw]] &new{20...
- Build tools for 6.4-{i386,amd64} are out. See 'tools' d...
**dual boot
>[[Rufwoof]] (2018-10-11 (Thu) 22:26:48)~
~
I have grub4dos bootloader installed and in menu.lst I ha...
~
title FuguIta
root (hd0,3)
makeactive
chainloader +1
boot
~
First partition is ext3 with grub4dos/menu.lst installed....
Second partition is linux swap~
Third partition is ext3~
Fourth partition is OpenBSD (type a6, label OpenBSD).~
~
After having created that 4th partition using Linux/gpart...
~
On the third (sda3) partition I've created a 10GB swap fi...
~
On slice n I have /livecd-config and /noasks~
~
In /etc/rc.local I~
~
mkdir /swapfile
mount /dev/sd0k /swapfile
swapctl -a /swapfile/swap
~
My noasks file content contains ...~
~
noask_rdev='sd0i'
noask_umem='0'
noask_setup_rw_mode='3'
noask_confdir='fuguita'
noask_confdev='sd0n'
~
I've activated xenodm and set it to autologin user (that ...
~
DisplayManager.*.autoLogin: user
~
into /etc/X11/xenodm/xenodm-config~
~
Now when I reboot the PC it auto boots and auto loads the...
~
In grub4dos menu.lst I have other boot choices (dual boot...
~
I like booting FuguIta as it offers the choice of whether...
//
- PS, I copied the standard openbsd /bsd to bsd.6.2 and c...
**boot FuguIta iso using grub4dos (BIOS)
>[[Rufwoof]] (2018-10-07 (Sun) 22:49:05)~
~
If you have grub4dos installed as your bootloader on a BI...
~
Download the ISO version of FuguIta and uncompress it.~
~
Newly create and format one partition as FAT32 (which has...
~
Mount and create a iso folder/directory in the newly crea...
~
Add a entry to grub4dos menu.lst bootloader menu that loo...
~
title Fuguita ISO
partnew (hd0,1) 0x00 (hd0,3)/iso/FuguIta-6.3-amd64-20...
map (hd0,3)/iso/FuguIta-6.3-amd64-201809211.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)
~
In this case my sda2 second partition (hd0,1) is free/unu...
~
Reboot and select/boot the FuguIta menu option and FuguIt...
//
- I wonder whether ISO image on Windows filesystem can be...
**Co-existence of FuguIta and standard OpenBSD
>[[Rufwoof]] (2018-09-25 (Tue) 08:14:01)~
~
With a fully installed OpenBSD on HDD (whole disk) and wi...
~
Create a /ISO folder and download the latest fuguita (xxx...
~
gzip -d xxx.iso.gz # uncompress it
vnconfig vnd0 /ISO/xxx.iso # mount it
mount /dev/vnd0c /mnt
cp /mnt/bsd-fi.mp /. # copy the bsd-fi.mp and ...
cp /mnt/bsd-fi /.
umount /mnt # unmount the iso
vnconfig -u vnd0
mkdir /home/livecd-config # prepare a save folder o...
~
... and its ready to be booted. ~
~
Enter bsd-fi.mp at the boot prompt and select type 0 boot...
~
After configured etc. run /boottmp/usbfadm and set target...
~
Ideally need lots of ram and swap as it all runs in 'memo...
~
To automate bootup, create a /noasks file alongside the /...
folder containing something like ...~
~
noask_rdev='sd0a'
noask_umem='0'
noask_setup_rw_mode='3'
noask_confdir='fuguita'
noask_confdev='sd0k'
~
(adjust values accordingly to what HDD name and values yo...
~
Not as secure as booting from a read only CD and saving/r...
~
mtree -CK sha256digest -p /home/livecd-config >mtree-...
~
to generate a checksum (store that safely, owned by root ...
~
mtree -p /home/livecd-config <mtree-livecd-config
~
So assuming you don't usually save after having configure...
~
Nice in that you don't have to burn a CD for each new rel...
//
- Correction. That should be a little c i.e. mtree -cK sh...
- Also for clarity, noasks should be stored in /home/noas...
- Don't forget that if you do install a new iso version t...
- Remarks:
--ISO directory and/or noasks file also can be made on bo...
--A swap file seems to be able to put on any RW-able part...
--Unless new FuguIta version is based on different OpenBS...
--As a non English speaker, I thank you for your posts. T...
- Re: "swap file on any RW-able partition which is not FF...
**no subject
>[[swap on ext3 partition]] (2018-09-16 (Sun) 00:28:48)~
~
LiveCD (DVD) booted FuguIta, loading/saving changes to a ...
~
With LibreOffice and firefox-esr installed, it runs OK (a...
~
Screenshot ...~
~
&ref(fi-cwm-ffesr-lo-swap.png,,50%);
//https://s15.postimg.cc/5tp9gucsb/fi-cwm-ffesr-lo-swap.p...
//
- And a swap partition extends the size of tmpfs, because...
$ swapctl -lk
Device 1K-blocks Used Avail Capacity Priority
/dev/wd0b 8391600 0 8391600 0% 0
$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/rd0a 1.6M 715K 847K 46% /
/dev/wd0a 7.9G 1.4G 6.5G 18% /sysmedia-...
/dev/vnd4a 700M 700M 0B 100% /sysmedia
/dev/vnd5a 676M 562M 114M 83% /fuguita
tmpfs 632M 47.8M 584M 8% /ram
/dev/wd0e 5.2G 1.8G 3.1G 38% /ram/opt
$ ls -lf /opt /usr/local /ram/home
lrwxr-xr-x 1 root wheel 7 Sep 17 07:49 /opt -> ram/opt
lrwxr-xr-x 1 root wheel 30 Aug 30 07:54 /usr/local ->...
lrwxr-xr-x 1 root wheel 25 Aug 30 07:53 /ram/home -> ...
$ cat /etc/rc.local
if ! mount -o softdep /dev/wd0e /opt
then
fsck -fy /dev/rwd0e
mount -o softdep /dev/wd0e /opt
fi
if mount | grep -q '/dev/wd0e on /ram/opt'
then
ldconfig -m /usr/local/lib
fi
$ cat /etc/rc.shutdown
PATH=$PATH:/usr/local/bin /usr/fuguita/sbin/usbfadm -r
$ pkg_info -t
audacious-plugins-3.9p0 input and output plugins for Aud...
audacity-1.3.9p9 free audio editor
emacs-25.3p0-gtk3 GNU editor: extensible, customizable...
firefox-i18n-ja-59.0.2 ja language pack for Firefox
intel-firmware-20180312v0 firmware binary images for int...
ja-kterm-6.2.0p9 Japanese-capable xterm
ja-sazanami-ttf-20040629p3 japanese true type fonts
mixfont-mplus-ipa-20060520p6 high quality Japanese truet...
morseplayer-1.4p0 morse player
mplayer-20161008p7 movie player supporting many formats
normalize-0.7.7p2 audio file volume normalizer
php-5.6.34 server-side HTML-embedded scripting ...
qiv-2.3.1p0 very small and pretty fast gdk/Imlib...
quirks-2.414 exceptions to pkg_add rules
radeondrm-firmware-20170119 firmware binary images for r...
rlwrap-0.43 generic readline wrapper for various...
rox-filer-2.11p1 GTK+-2 file manager with desktop fea...
rsync-3.1.3 mirroring/synchronization over low b...
sshfs-fuse-2.5p1 mount remote directories over ssh
timidity-2.13.2p6-xaw MIDI to WAV renderer and player
uim-gtk-1.8.6p5 uim for GTK+2
wget-1.19.4 retrieve files from the web via HTTP...
xfig-3.2.6 CAD drawing program for X11
Window manager is cwm, and file manager is ROX-Filer. -- ...
- CD to boot, USB stick as the changes store area, with H...
**Save to ext2/3/4
>[[Rufwoof]] (2018-09-15 (Sat) 12:42:29)~
~
Hi kaw~
~
Thinking along the lines that you can create a ffs file f...
~
Mount a ext2 partition and then cd to that partition and ...
~
dd if=/dev/zero of=diskimage bs=1M count=100
vnconfig vnd0 diskimage
newfs vnd0c
mkdir /home/user/mountpoint
mount /dev/vnd0c /home/user/mountpoint
~
... and then use that filesystem ...~
echo hello >/home/user/mountpoint/myfile.txt
~
... and when done~
~
umount /home/user/mountpoint
vnconfig -u vnd0
~
We have a ffs file filesystem residing on a ext2 partitio...
~
mkdir /home/user/mountpoint
vnconfig vnd0 diskimage
mount /dev/vnd0c /home/user/mountpoint
~
and ls /home/user/mountpoint will show the myfile.txt fil...
~
Fundamentally I'm thinking that FuguIta's saves (livecd-c...
~
A pre-prepared ffs filesystem file could be provided/down...
~
Another thought - not sure - but it might be possible to ...
~
dd if=/dev/zero of=/usr/swap0 bs=1024k count=1024
chmod 0600 /usr/swap0
swapctl -a /usr/swap0
~
That would help reduce the chances of FuguIta locking up ...
//
- The FuguIta option you explained is particularly useful...
- A problem can be if ext2/3/4 isn't shutdown correctly t...
**Opps!
>[[rufwoof]] (2018-09-08 (Sat) 21:00:06)~
~
I didn't correctly format the commands/code section in my...
//
- No problem. I fixed it. Thanks for the post. -- [[kaw]]...
**reverse sshfs from FuguIta
>[[rufwoof]] (2018-09-08 (Sat) 20:58:05)~
~
Linux liveCD desktop system (Fatdog). Fuguita liveCD boot...
~
#!/bin/sh
fifo=/tmp/rsshfs-$$
rm -f "$fifo"
mkfifo -m600 "$fifo" &&
< "$fifo" /usr/libexec/sftp-server |
ssh root@192.168.1.4 sshfs -o slave :/root /data '' > ...
rm "$fifo"
~
Reverse sshfs mounts the Fuguita's /root folder as a (pre...
~
If on the Fuguita box you mount a HDD and share a folder ...
~
For some ssh throughput optimisation, add -o compression=...
//
- Thanks for useful information. I haven't been used sshf...
**Test, just a test
>[[Patrickgoame]] (2018-09-01 (Sat) 21:18:23)~
~
Hello~
//
- Hello -- [[kaw]] &new{2018-09-02 (Sun) 08:36:34};
**network reconriguring by gennetconfs
>[[kaw]] (2018-08-07 (Tue) 18:18:25)~
~
At FuguIta-6.3-201808061, a new tool called ''gennetconfs...
This tool generates configuration files for networking, s...
:synopsis|gennetconfs '''[dir]'''
>'''dir''' is the directory which configuration files wil...
If '''dir''' not specified, current directory will be tak...
So,~
gennetconfs /etc
will overwrite directly existing files under /etc .~
~
Because of gennetconfs was derived from FuguIta's boot se...
the interaction with gennetconfs is the same as one at bo...
//
**Various Operations of FuguIta
>[[kaw]] (2018-06-04 (Mon) 15:23:16)~
>FuguIta originally started as a LiveCD, but now we can u...
In addition, there are several types in operation.~
So, I tried to make a table of combinations of how these ...
Note that If there are multiple available devices, you ca...
~
|CENTER:|CENTER:|CENTER:|CENTER:|CENTER:|CENTER:|CENTER:|...
|>|Device|CD&br;(distrib. ISO)|USB&br;(distrib. img)|USB&...
|LEFT:BGCOLOR(#ffffc0):|LEFT:BGCOLOR(#ffff80):|CENTER:|CE...
|>|BGCOLOR(#ffffc0):boot from |BGCOLOR(#c0ffc0):O|BGCO...
|>|BGCOLOR(#ffffc0):run on |BGCOLOR(#c0ffc0):O|BGCO...
|with&br;boot mode|0, 1, 2 |BGCOLOR(#c0ffc0):O|BGCO...
|~|3 |BGCOLOR(#c0c0c0):X|BGCO...
|set&br;parameters&br;with|manual|BGCOLOR(#c0ffc0):O|BGCO...
|~|auto |BGCOLOR(#c0c0c0):X|BGCO...
|>|BGCOLOR(#ffffc0):save data to |BGCOLOR(#c0c0c0):X|BGCO...
*** Explanation of the table
>In the table above, each column indicates a device that ...
:CD (distrib. ISO) | CD, CD-R, CD-RW etc burned ISO image...
You can burn it to DVD but you can use it, the size is 70...
:USB (distrib. img)| This is a USB flashdrive into which ...
Regardless of the USB flashdrive size used, the capacity ...
: USB (usbfadm) | This is a USB flashdrive created using ...
When executing the usbfadm command, you can set the size ...
You can also create FAT in free space not used by FuguIta...
:OpenBSD | OpenBSD system already installed. To use this ...
-- a : Copy FuguIta's kernel - /sysmedia/bsd-fi and /sysm...
-- b : By creating a directory called "ISO" on any partit...
-- c : You can save and restore data here by creating a d...
However, you can not do b and c at the same time on the s...
: SD (usbfadm) | This is an SD card created using FuguIta...
: ExtFS/NTFS/FAT | Linux ext2fs ... ext4fs and Windows NT...
By creating a directory called "ISO" on these partitions ...
: tmpfs | File system created in memory. It is created au...
>Each line of the table is an operation form which can be...
:boot from | FuguIta is a bootable device that loads the ...
:run on | This is the device where the system file of Fug...
If there are multiple available devices, specify the devi...
:with boot mode | This is how to layout memory and operat...
-- mode 0 : This is standard operation as LiveCD / LiveUSB.
-- mode 1 : It is almost the same as mode 0, but it is co...
-- mode 2 : It operates using only tmpfs. Although it tak...
-- mode 3 : Read data saved by usbfadm at boot time.
:set parameters with | Usually, when starting FuguIta, it...
:save data to | As described in boot mode 3, you can save...
//
**FuguIta 6.3 for Raspberry Pi 3
>[[kaw]] (2018-05-31 (Thu) 16:42:17)~
~
Although it is still a test version, it is working well o...
Even without a serial cable, you can install and use it b...
~
[[README>http://mirror.ginzado.ne.jp/pub/FuguIta/test/0_R...
//
----
Former articles are at [[FuguIta/BBS/7]].
----
Return to [[FrontPage]]
End:
This page is archived. ~
Current active BBS is [[FuguIta/BBS]].
----
#contents
**Another new function of usbfadm
>[[kaw]] (2019-01-12 (Sat) 22:43:42)~
~
New usbfadm can create a raw disk image of FuguIta by spe...
Here's an example:~
# usbfadm
Welcome to usbfadm.
USB flash drive administration tool for FuguIta
Version/Arch: 6.4/amd64 (FuguIta-6.4-amd64-201901122)
Boot mode: manual
Data stored in: not set
Data Saved as: not set
Type ? for help.
? : ? ->newdrive
Please make sure the device inserted.
Then press ENTER ->
==== disk(s) and vnode devices ========================...
wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 1024MB, 2097152 sectors
wd1 at pciide0 channel 0 drive 1: <QEMU HARDDISK>
wd1: 16-sector PIO, LBA48, 2048MB, 4194304 sectors
vnd0: not in use
vnd1: not in use
vnd2: not in use
vnd3: not in use
vnd4: not in use
vnd5: covering /sysmedia/fuguita-6.4-amd64.ffsimg on wd0...
========================================================...
Enter the name of device which FuguIta will be installed...
Enter size of a vnode device file.
You can add suffix K, M, G or T (otherwise considered 'b...
->1g
1024+0 records in
1024+0 records out
1073741824 bytes transferred in 95.420 secs (11252729 by...
Disk: vnd0 geometry: 20971/1/100 [2097152 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 partition type:
1: [MBR]
2: GPT
3: Hybrid (not recommended if you wish modify partiti...
->1
Select boot method:
1: [Legacy BIOS]
2: none (only for save data)
3: UEFI
->1
Enter size for saving User Data.
You can add suffix K, M, G or T (otherwise considered 'b...
323MB (663488sectors) free
'*' implies 'all'->*
target disk: vnd0
partition type=MBR
boot type=Legacy
-------------------- : ------
partition : size
-------------------- : ------
whole disk : 1GB
disk metadata : 32KB
UEFI system : 0B
FuguIta system : 700MB
FuguIta user data : 323MB
MSDOS FAT : 0B
-------------------- : ------
***THIS IS THE LAST CHANCE***
If you type 'Y' now, all the data on vnd0 will be lost.
Are you sure to initialize vnd0? [y/N] -> y
========================================
= Clearing MBR, GPT and BSD disklabel
=
> ------8<------snip------8<------
? : ? ->bye
Bye bye...
# ls -l
total 2097712
-rw-r--r-- 1 root wheel 1073741824 Jan 12 13:17 FuguI...
//
**FuguIta for UEFI/GPT
>[[kaw]] (2018-12-21 (Fri) 15:15:14)~
~
I'm working on FuguIta for UEFI/GPT functionality.~
This is being planned as additional feature of USB flash ...
//
- The coding is almost done. Next I will debug and refine...
- See this tweet - https://twitter.com/yoshi_kaw/status/1...
- [[Images for test have been uploaded.>http://mirror.gin...
**FuguIta as virtualization guest
>[[kaw]] (2018-12-05 (Wed) 14:27:32)~
~
I'm working on FuguIta as a vmm(4)/vmd(8) virtualization ...
~
Try this test version as follows:~
vmhost# ftp http://mirror.ginzado.ne.jp/pub/FuguIta/Fugu...
vmhost# gzip -d FuguIta-6.4-amd64-201812052.iso.gz
vmhost# rcctl enable vmd
vmhost# rcctl start vmd
vmd(ok)
vmhost# vmctl start testfi -r FuguIta-6.4-amd64-20181205...
vmctl: starting without disks
vmctl: starting without network interfaces
vmctl: started vm 1 successfully, tty /dev/ttyp1
Connected to /dev/ttyp1 (speed 115200)
SeaBIOS (version 1.11.0p0-OpenBSD-vmm)
CD-ROM: E0
Loading /CDBOOT
probing: pc0 com0 mem[638K 510M a20=on]
disk: cd0
>> OpenBSD/amd64 CDBOOT 3.40
\
>> bsd-fi.mp is for
>> multiprocessor kernel (default).
>> Enter 'bsd-fi' for Uniprocessor.
boot>
booting cd0a:/bsd-fi.mp: 10548999+2552840+2215968+0+6758...
entry point at 0x1000158
[ using 2153512 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. Al...
Copyright (c) 1995-2018 OpenBSD. All rights reserved. h...
OpenBSD 6.4-stable (RDROOT.MP) #2: Sun Dec 2 23:13:01 J...
root@nimbus9.localnet:/opt/fi/6.4/sys/arch/amd64/com...
real mem = 520085504 (495MB)
avail mem = 493146112 (470MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf1950 (10 entries)
bios0: vendor SeaBIOS version "1.11.0p0-OpenBSD-vmm" dat...
bios0: OpenBSD VMM
acpi at bios0 not configured
:
:
starting local daemons: cron.
KARL: disabled
Wed Dec 5 05:18:36 UTC 2018
OpenBSD/amd64 (vmguest) (tty00)
login: root
Password:
OpenBSD 6.4-stable (RDROOT.MP) #2: Sun Dec 2 23:13:01 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.
You have new mail.
vmguest# cat /usr/fuguita/version ...
6.4-amd64-201812052
vmguest# /sbin/shutdown -hp now ...
Shutdown NOW!
shutdown: [pid 18229]
...
*** FINAL System shutdown message from root@vmguest *** ...
System going down IMMEDIATELY ...
...
...
vmguest#
System shutdown time has arrived
vmguest# syncing disks... done
vmmci0: powerdown
The operating system has halted.
Please press any key to reboot.
# (just press ENTER here)
[EOT]
vmhost#
At this version, FuguIta enables a getty on /dev/tty00 if...
//
- Note that the baud rate of getty on /dev/tty00 is fixed...
- We solved above issue at [[FuguIta-6.4-*-201812121>Fugu...
**read only
>[[kaw]] (2018-10-31 (Wed) 07:58:52)~
~
To avoid spam posts, being this host read only temporaril...
//
- became RW again -- [[kaw]] &new{2018-11-01 (Thu) 23:05:...
**OpenBSD 6.4 released
>[[kaw]] (2018-10-19 (Fri) 10:51:02)~
~
I am working for FuguIta 6.4 now.~
//
-i386/amd64: built 6.4 release -- [[kaw]] &new{2018-10-19...
--created new partitions and cloned 6.3 to there.
--updated source tree from 6.3 to 6.4 by CVS with tag OPE...
--succeeded to make release files from source tree.
--updated whole system to 6.4
- i386: setup build tools -- [[kaw]] &new{2018-10-19 (Fri...
-- compile under TOOLDIR/lib/special for bootbin
-- build crunched binary /boottmp/bootbin under TOOLDIR/l...
-- compile TOOLDIR/rdsetroot
-- rename TOOLDIR/media/fuguita-6.3-i386.ffsimg to 6.4's
-- remove all files under TOOLDIR/fuguita
-- build kernels
--- create RDROOT and RDROOT.MP kernel config files, then...
-- add two new vnode devices under TOOLDIR/rdroot/dev
- i386: create FuguIta's contents in TOOLDIR/fuguita -- [...
--for /usr
---fix dandling symlinks in bin dirs
---delete /usr/lib/lib*_p.a /usr/share/relink/kernel.tgz
---crete dirs/files under /usr/fuguita~
add fuguita bin dirs to PATH to /root/.profile and /etc/s...
--under TOOLDIR chrooted
---pkg_addr rsync and rlwrapper
---ldconfig -m
---MAKEDEV std
--for /etc
---create /etc/hosts for locahost
---create /etc/localtime : timezone to UTC
---create /etc/rc.firsttime
---fix /etc/man.conf and makewhatis
---fix /etc/mtree/special
---fix /etc/sysctl.conf
---disable KARL in /etc/rc
--for /var
---create /var/db/host.ramdom
--for X
---mkfontdir, mkfontscale and fc-cache
--final setup
---remove /root/.ksh_history
---make /usr/fuguita/etc/mode0symlinks.cpio.gz
---copy boot stuffs into TOOLDIR/lib
--create an ISO image
---make contall
- amd64 as well -- [[kaw]] &new{2018-10-24 (Wed) 16:19:49};
- Now working for RC. Please wait. -- [[kaw]] &new{2018-1...
- FuguIta 6.4 is out. -- [[kaw]] &new{2018-10-30 (Tue) 12...
- going to work publishing build tools -- [[kaw]] &new{20...
- Build tools for 6.4-{i386,amd64} are out. See 'tools' d...
**dual boot
>[[Rufwoof]] (2018-10-11 (Thu) 22:26:48)~
~
I have grub4dos bootloader installed and in menu.lst I ha...
~
title FuguIta
root (hd0,3)
makeactive
chainloader +1
boot
~
First partition is ext3 with grub4dos/menu.lst installed....
Second partition is linux swap~
Third partition is ext3~
Fourth partition is OpenBSD (type a6, label OpenBSD).~
~
After having created that 4th partition using Linux/gpart...
~
On the third (sda3) partition I've created a 10GB swap fi...
~
On slice n I have /livecd-config and /noasks~
~
In /etc/rc.local I~
~
mkdir /swapfile
mount /dev/sd0k /swapfile
swapctl -a /swapfile/swap
~
My noasks file content contains ...~
~
noask_rdev='sd0i'
noask_umem='0'
noask_setup_rw_mode='3'
noask_confdir='fuguita'
noask_confdev='sd0n'
~
I've activated xenodm and set it to autologin user (that ...
~
DisplayManager.*.autoLogin: user
~
into /etc/X11/xenodm/xenodm-config~
~
Now when I reboot the PC it auto boots and auto loads the...
~
In grub4dos menu.lst I have other boot choices (dual boot...
~
I like booting FuguIta as it offers the choice of whether...
//
- PS, I copied the standard openbsd /bsd to bsd.6.2 and c...
**boot FuguIta iso using grub4dos (BIOS)
>[[Rufwoof]] (2018-10-07 (Sun) 22:49:05)~
~
If you have grub4dos installed as your bootloader on a BI...
~
Download the ISO version of FuguIta and uncompress it.~
~
Newly create and format one partition as FAT32 (which has...
~
Mount and create a iso folder/directory in the newly crea...
~
Add a entry to grub4dos menu.lst bootloader menu that loo...
~
title Fuguita ISO
partnew (hd0,1) 0x00 (hd0,3)/iso/FuguIta-6.3-amd64-20...
map (hd0,3)/iso/FuguIta-6.3-amd64-201809211.iso (0xff)
map --hook
root (0xff)
chainloader (0xff)
~
In this case my sda2 second partition (hd0,1) is free/unu...
~
Reboot and select/boot the FuguIta menu option and FuguIt...
//
- I wonder whether ISO image on Windows filesystem can be...
**Co-existence of FuguIta and standard OpenBSD
>[[Rufwoof]] (2018-09-25 (Tue) 08:14:01)~
~
With a fully installed OpenBSD on HDD (whole disk) and wi...
~
Create a /ISO folder and download the latest fuguita (xxx...
~
gzip -d xxx.iso.gz # uncompress it
vnconfig vnd0 /ISO/xxx.iso # mount it
mount /dev/vnd0c /mnt
cp /mnt/bsd-fi.mp /. # copy the bsd-fi.mp and ...
cp /mnt/bsd-fi /.
umount /mnt # unmount the iso
vnconfig -u vnd0
mkdir /home/livecd-config # prepare a save folder o...
~
... and its ready to be booted. ~
~
Enter bsd-fi.mp at the boot prompt and select type 0 boot...
~
After configured etc. run /boottmp/usbfadm and set target...
~
Ideally need lots of ram and swap as it all runs in 'memo...
~
To automate bootup, create a /noasks file alongside the /...
folder containing something like ...~
~
noask_rdev='sd0a'
noask_umem='0'
noask_setup_rw_mode='3'
noask_confdir='fuguita'
noask_confdev='sd0k'
~
(adjust values accordingly to what HDD name and values yo...
~
Not as secure as booting from a read only CD and saving/r...
~
mtree -CK sha256digest -p /home/livecd-config >mtree-...
~
to generate a checksum (store that safely, owned by root ...
~
mtree -p /home/livecd-config <mtree-livecd-config
~
So assuming you don't usually save after having configure...
~
Nice in that you don't have to burn a CD for each new rel...
//
- Correction. That should be a little c i.e. mtree -cK sh...
- Also for clarity, noasks should be stored in /home/noas...
- Don't forget that if you do install a new iso version t...
- Remarks:
--ISO directory and/or noasks file also can be made on bo...
--A swap file seems to be able to put on any RW-able part...
--Unless new FuguIta version is based on different OpenBS...
--As a non English speaker, I thank you for your posts. T...
- Re: "swap file on any RW-able partition which is not FF...
**no subject
>[[swap on ext3 partition]] (2018-09-16 (Sun) 00:28:48)~
~
LiveCD (DVD) booted FuguIta, loading/saving changes to a ...
~
With LibreOffice and firefox-esr installed, it runs OK (a...
~
Screenshot ...~
~
&ref(fi-cwm-ffesr-lo-swap.png,,50%);
//https://s15.postimg.cc/5tp9gucsb/fi-cwm-ffesr-lo-swap.p...
//
- And a swap partition extends the size of tmpfs, because...
$ swapctl -lk
Device 1K-blocks Used Avail Capacity Priority
/dev/wd0b 8391600 0 8391600 0% 0
$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/rd0a 1.6M 715K 847K 46% /
/dev/wd0a 7.9G 1.4G 6.5G 18% /sysmedia-...
/dev/vnd4a 700M 700M 0B 100% /sysmedia
/dev/vnd5a 676M 562M 114M 83% /fuguita
tmpfs 632M 47.8M 584M 8% /ram
/dev/wd0e 5.2G 1.8G 3.1G 38% /ram/opt
$ ls -lf /opt /usr/local /ram/home
lrwxr-xr-x 1 root wheel 7 Sep 17 07:49 /opt -> ram/opt
lrwxr-xr-x 1 root wheel 30 Aug 30 07:54 /usr/local ->...
lrwxr-xr-x 1 root wheel 25 Aug 30 07:53 /ram/home -> ...
$ cat /etc/rc.local
if ! mount -o softdep /dev/wd0e /opt
then
fsck -fy /dev/rwd0e
mount -o softdep /dev/wd0e /opt
fi
if mount | grep -q '/dev/wd0e on /ram/opt'
then
ldconfig -m /usr/local/lib
fi
$ cat /etc/rc.shutdown
PATH=$PATH:/usr/local/bin /usr/fuguita/sbin/usbfadm -r
$ pkg_info -t
audacious-plugins-3.9p0 input and output plugins for Aud...
audacity-1.3.9p9 free audio editor
emacs-25.3p0-gtk3 GNU editor: extensible, customizable...
firefox-i18n-ja-59.0.2 ja language pack for Firefox
intel-firmware-20180312v0 firmware binary images for int...
ja-kterm-6.2.0p9 Japanese-capable xterm
ja-sazanami-ttf-20040629p3 japanese true type fonts
mixfont-mplus-ipa-20060520p6 high quality Japanese truet...
morseplayer-1.4p0 morse player
mplayer-20161008p7 movie player supporting many formats
normalize-0.7.7p2 audio file volume normalizer
php-5.6.34 server-side HTML-embedded scripting ...
qiv-2.3.1p0 very small and pretty fast gdk/Imlib...
quirks-2.414 exceptions to pkg_add rules
radeondrm-firmware-20170119 firmware binary images for r...
rlwrap-0.43 generic readline wrapper for various...
rox-filer-2.11p1 GTK+-2 file manager with desktop fea...
rsync-3.1.3 mirroring/synchronization over low b...
sshfs-fuse-2.5p1 mount remote directories over ssh
timidity-2.13.2p6-xaw MIDI to WAV renderer and player
uim-gtk-1.8.6p5 uim for GTK+2
wget-1.19.4 retrieve files from the web via HTTP...
xfig-3.2.6 CAD drawing program for X11
Window manager is cwm, and file manager is ROX-Filer. -- ...
- CD to boot, USB stick as the changes store area, with H...
**Save to ext2/3/4
>[[Rufwoof]] (2018-09-15 (Sat) 12:42:29)~
~
Hi kaw~
~
Thinking along the lines that you can create a ffs file f...
~
Mount a ext2 partition and then cd to that partition and ...
~
dd if=/dev/zero of=diskimage bs=1M count=100
vnconfig vnd0 diskimage
newfs vnd0c
mkdir /home/user/mountpoint
mount /dev/vnd0c /home/user/mountpoint
~
... and then use that filesystem ...~
echo hello >/home/user/mountpoint/myfile.txt
~
... and when done~
~
umount /home/user/mountpoint
vnconfig -u vnd0
~
We have a ffs file filesystem residing on a ext2 partitio...
~
mkdir /home/user/mountpoint
vnconfig vnd0 diskimage
mount /dev/vnd0c /home/user/mountpoint
~
and ls /home/user/mountpoint will show the myfile.txt fil...
~
Fundamentally I'm thinking that FuguIta's saves (livecd-c...
~
A pre-prepared ffs filesystem file could be provided/down...
~
Another thought - not sure - but it might be possible to ...
~
dd if=/dev/zero of=/usr/swap0 bs=1024k count=1024
chmod 0600 /usr/swap0
swapctl -a /usr/swap0
~
That would help reduce the chances of FuguIta locking up ...
//
- The FuguIta option you explained is particularly useful...
- A problem can be if ext2/3/4 isn't shutdown correctly t...
**Opps!
>[[rufwoof]] (2018-09-08 (Sat) 21:00:06)~
~
I didn't correctly format the commands/code section in my...
//
- No problem. I fixed it. Thanks for the post. -- [[kaw]]...
**reverse sshfs from FuguIta
>[[rufwoof]] (2018-09-08 (Sat) 20:58:05)~
~
Linux liveCD desktop system (Fatdog). Fuguita liveCD boot...
~
#!/bin/sh
fifo=/tmp/rsshfs-$$
rm -f "$fifo"
mkfifo -m600 "$fifo" &&
< "$fifo" /usr/libexec/sftp-server |
ssh root@192.168.1.4 sshfs -o slave :/root /data '' > ...
rm "$fifo"
~
Reverse sshfs mounts the Fuguita's /root folder as a (pre...
~
If on the Fuguita box you mount a HDD and share a folder ...
~
For some ssh throughput optimisation, add -o compression=...
//
- Thanks for useful information. I haven't been used sshf...
**Test, just a test
>[[Patrickgoame]] (2018-09-01 (Sat) 21:18:23)~
~
Hello~
//
- Hello -- [[kaw]] &new{2018-09-02 (Sun) 08:36:34};
**network reconriguring by gennetconfs
>[[kaw]] (2018-08-07 (Tue) 18:18:25)~
~
At FuguIta-6.3-201808061, a new tool called ''gennetconfs...
This tool generates configuration files for networking, s...
:synopsis|gennetconfs '''[dir]'''
>'''dir''' is the directory which configuration files wil...
If '''dir''' not specified, current directory will be tak...
So,~
gennetconfs /etc
will overwrite directly existing files under /etc .~
~
Because of gennetconfs was derived from FuguIta's boot se...
the interaction with gennetconfs is the same as one at bo...
//
**Various Operations of FuguIta
>[[kaw]] (2018-06-04 (Mon) 15:23:16)~
>FuguIta originally started as a LiveCD, but now we can u...
In addition, there are several types in operation.~
So, I tried to make a table of combinations of how these ...
Note that If there are multiple available devices, you ca...
~
|CENTER:|CENTER:|CENTER:|CENTER:|CENTER:|CENTER:|CENTER:|...
|>|Device|CD&br;(distrib. ISO)|USB&br;(distrib. img)|USB&...
|LEFT:BGCOLOR(#ffffc0):|LEFT:BGCOLOR(#ffff80):|CENTER:|CE...
|>|BGCOLOR(#ffffc0):boot from |BGCOLOR(#c0ffc0):O|BGCO...
|>|BGCOLOR(#ffffc0):run on |BGCOLOR(#c0ffc0):O|BGCO...
|with&br;boot mode|0, 1, 2 |BGCOLOR(#c0ffc0):O|BGCO...
|~|3 |BGCOLOR(#c0c0c0):X|BGCO...
|set&br;parameters&br;with|manual|BGCOLOR(#c0ffc0):O|BGCO...
|~|auto |BGCOLOR(#c0c0c0):X|BGCO...
|>|BGCOLOR(#ffffc0):save data to |BGCOLOR(#c0c0c0):X|BGCO...
*** Explanation of the table
>In the table above, each column indicates a device that ...
:CD (distrib. ISO) | CD, CD-R, CD-RW etc burned ISO image...
You can burn it to DVD but you can use it, the size is 70...
:USB (distrib. img)| This is a USB flashdrive into which ...
Regardless of the USB flashdrive size used, the capacity ...
: USB (usbfadm) | This is a USB flashdrive created using ...
When executing the usbfadm command, you can set the size ...
You can also create FAT in free space not used by FuguIta...
:OpenBSD | OpenBSD system already installed. To use this ...
-- a : Copy FuguIta's kernel - /sysmedia/bsd-fi and /sysm...
-- b : By creating a directory called "ISO" on any partit...
-- c : You can save and restore data here by creating a d...
However, you can not do b and c at the same time on the s...
: SD (usbfadm) | This is an SD card created using FuguIta...
: ExtFS/NTFS/FAT | Linux ext2fs ... ext4fs and Windows NT...
By creating a directory called "ISO" on these partitions ...
: tmpfs | File system created in memory. It is created au...
>Each line of the table is an operation form which can be...
:boot from | FuguIta is a bootable device that loads the ...
:run on | This is the device where the system file of Fug...
If there are multiple available devices, specify the devi...
:with boot mode | This is how to layout memory and operat...
-- mode 0 : This is standard operation as LiveCD / LiveUSB.
-- mode 1 : It is almost the same as mode 0, but it is co...
-- mode 2 : It operates using only tmpfs. Although it tak...
-- mode 3 : Read data saved by usbfadm at boot time.
:set parameters with | Usually, when starting FuguIta, it...
:save data to | As described in boot mode 3, you can save...
//
**FuguIta 6.3 for Raspberry Pi 3
>[[kaw]] (2018-05-31 (Thu) 16:42:17)~
~
Although it is still a test version, it is working well o...
Even without a serial cable, you can install and use it b...
~
[[README>http://mirror.ginzado.ne.jp/pub/FuguIta/test/0_R...
//
----
Former articles are at [[FuguIta/BBS/7]].
----
Return to [[FrontPage]]
Page: