Sunday, February 6, 2022

Suyimazu, Gaming with Steam on GhostBSD / FreeBSD Final FOSDEM2022 Feb6 ...


https://codeberg.org/Alexander88207/Suyimazu   Here is the code and place to share bugs.  Thank Alexander Vereeken for scratching his own itch to play Windows Games on FreeBSD.  Suyimazu uses WINE and WineTricks to accomplish this task.

ghostbsd.com/download  Look for "Latest"  version of GhostBSD  22.02.05  as of 22.02.06
http://download.us.ghostbsd.org/development/amd64/latest/  USA Mirror, Norway, France, South Africa, Canada
Use  Administration --> Software Station  search "Suyimazu"  Install  software
Try out your Windows Game software on GhostBSD / FreeBSD 

Raspberry Pi 4B with 8 gigs,   Vilros.com     
Fred.Suyimazu@theGalacticZoo.com  GhostBSD, Suyimazu installed onto a Sandisc Extreme SSD 1TB, 1050 MB per second transfer speed.  Shipped to you.

Please comment below, on how Suyimazu works on your games.

Suyimazu, Gaming with Steam on GhostBSD / FreeBSD Final FOSDEM2022 Feb6 ...




Saturday, January 29, 2022

GhostBSD, Glabel an external 240GB SSD USB 3.0 drive paritions installed with ghostbsd

Glabel, gpart, geom, or How to label GPT, GPTID partitions with out a /dev/da1p3 drive name. 


First, can you read between the lines from a manual pages that INFER a similar naming/numbering scheme exists that you can try out, yet there is not ONE example to guide you.  EXAMPLE:

mount -t zfs    /dev/da1p2  /mnt/bsd 

gpart show
=>       34  468877245  ada0  GPT  (224G)
         34       4062        - free -  (2.0M)
       4096     614400     1  efi  (300M)
     618496  449799648     2  linux-data  (214G)
  450418144          7        - free -  (3.5K)
  450418151   18454920     3  freebsd-swap  (8.8G)
  468873071       4208        - free -  (2.1M)

=>       40  468862048  diskid/DISK-333457EBD0F2  GPT  (224G)
         40     532480                         1  efi  (260M)
     532520  459218944                         2  freebsd-zfs  (219G)
  459751464    9099264                         3  freebsd-swap  (4.3G)
  468850728      11360       


gpart status
                      Name  Status  Components
                    ada0p1      OK  ada0
                    ada0p2      OK  ada0
                    ada0p3      OK  ada0
diskid/DISK-333457EBD0F2p1      OK  diskid/DISK-333457EBD0F2
diskid/DISK-333457EBD0F2p2      OK  diskid/DISK-333457EBD0F2
diskid/DISK-333457EBD0F2p3      OK  diskid/DISK-333457EBD0F2

gpart show -l
=>       34  468877245  ada0  GPT  (224G)
         34       4062        - free -  (2.0M)
       4096     614400     1  (null)  (300M)
     618496  449799648     2  (null)  (214G)
  450418144          7        - free -  (3.5K)
  450418151   18454920     3  swap-internal-disk  (8.8G)
  468873071       4208        - free -  (2.1M)

=>       40  468862048  diskid/DISK-333457EBD0F2  GPT  (224G)
         40     532480                         1  (null)  (260M)
     532520  459218944                         2  (null)  (219G)
  459751464    9099264                         3  (null)  (4.3G)
  468850728      11360                            - free -  (5.5M)

Some of these  label names are carried over from the 'file label' name and not the given 'glabel' name in the listings above.




Use a GPT /dev/diskid  name to select the "drive"  not /dev/da1p2

sudo glabel  label -v  swap_unirex_244g /dev/diskid/DISK-333457EBD0F2p3
Metadata value stored on /dev/diskid/DISK-333457EBD0F2p3.
Done.
sudo swapctl -A
swapctl: adding /dev/gpt/swap-unirex-224 as swap device
whoami
fred
# use sudo to execute privileged root commands 


glabel  label  -v swap_unirex_244g   /dev/diskid/DISK-333457EBD0F2p3

glabel  label  -v bootfs_unirex_244g   /dev/diskid/DISK-333457EBD0F2p1

##  The next one only works when the filesystem unmounted! and NOT in USE
umount /dev/diskid/DISK-333457EBD0F2p2
mkdir  /mnt/bsdp2
glabel  label  -v rootfs_unirex_244g   /dev/diskid/DISK-333457EBD0F2p2

mount -t zfs  /dev/diskid/DISK-333457EBD0F2p2  /mnt/DISK-333457EBD0F2p2


/etc/fstab

fred@fred-pc ~> cat /etc/fstab
# Device Mountpoint FStype OptionsDump Pass
# diskid/DISK-333457EBD0F2p3  801fd8c2-7926-11ec-b6e6-0021ccd45dec
# /dev/gptid/801fd8c2-7926-11ec-b6e6-0021ccd45dec
# /dev/label/swap0 none swap sw 0 0

# /dev/label/swap-unirex-224 none    swap sw 0
/dev/gpt/swap-unirex-224     none    swap sw 0

procfs /proc procfs rw 00
linprocfs /compat/linux/proc linprocfs rw 00
tmpfs /compat/linux/dev/shm tmpfs rw,mode=1777 0 0
linsysfs /compat/linux/sys linsysfs rw 0 0
fdesc /dev/fd fdescfs rw 0 0
fred@fred-pc ~> 

I get confused about which label goes with which partition.  So here are commands to use for finding information.

gpart status
gpart show
gpart show -l
gpart list
glabel list

# use the following command to see what labels are used with which devices.
ls -l  /dev/gpt /dev/gptid  /dev/diskid /dev/label  

# URL links to more information about glabel  and gpart commands


glabel  label -v rootfs_unirex_244g   /dev/diskid/DISK-333457EBD0F2p2

So the answer is to  Glabel your GPT UUID external USB 3.0 SSD drive,   Next use that as the first or 2nd line in the /etc/fstab file to name your SWAP Partition
/dev/label/swap-unirex-224  none    swap  sw 0   0
/dev/gpt/swap-unirex-224     none    swap  sw 0   0


swapon -aL   to  turn the swap on for all swap partitions listed in the file /etc/fstab

swapinfo  -m    will tell you how much of your swap space is used in megabytes.
swapinfo -m
Device          1M-blocks     Used    Avail Capacity
/dev/gpt/swap-unirex-224      4443      578     3864    13%

swapinfo -h in Human readable sizes
swapinfo -h
Device              Size     Used    Avail Capacity
/dev/gpt/swap-unirex-224     4.3G     578M     3.8G    13%



Tools to check Free Memory available and How much SWAP memory is used



freecolor  -t   Is another useful tool that prints on the command line in colors red,grey, and green, a fuel gauge style  examples:  freecolor -o  ; freecolor -om;  freecolor -mt
swapctl  -l   Is another method to display your swap space memory usage 

free
freebsd-memory.sh

whereis free
free: /usr/local/bin/free
ls -l /usr/local/bin/fr*
-rwxr-xr-x  1 fred  fred    6756 Jan 21 22:00 /usr/local/bin/free
-rwxr-xr-x  1 fred  fred    5461 Jan 21 22:01 /usr/local/bin/freebsd-memory.sh
-rwxr-xr-x  1 root  wheel  11008 Apr 29 06:21 /usr/local/bin/freecolor
-rwxr-xr-x  1 root  wheel  22280 Apr 28 11:33 /usr/local/bin/fribidi
-r-xr-xr-x  1 root  wheel    269 Apr 28 11:33 /usr/local/bin/fribidi-config

 whereis freecolor
freecolor: /usr/local/bin/freecolor /usr/local/man/man1/freecolor.1.gz /usr/ports/sysutils/freecolor
 



fred@fred-pc ~> ls -l  /dev/gpt /dev/gptid  /dev/diskid /dev/label
ls: /dev/label: No such file or directory
/dev/diskid:
total 0
crw-r-----  1 root  operator  0xa2 Jan 29 14:36 DISK-333457EBD0F2
crw-r-----  1 root  operator  0xa8 Jan 29 14:36 DISK-333457EBD0F2p1
crw-r-----  1 root  operator  0xa9 Jan 29 14:36 DISK-333457EBD0F2p2
crw-r-----  1 root  operator  0xae Jan 29 14:36 DISK-333457EBD0F2p3

/dev/gpt:
total 0
crw-r-----  1 root  operator  0x95 Jan 29 14:36 swap-internal-disk

/dev/gptid:
total 0
crw-r-----  1 root  operator  0x97 Jan 29 14:36 873d142e-6117-de4f-bd8c-3075b666793f
crw-r-----  1 root  operator  0x91 Jan 29 14:36 d53c24c9-8a7e-7b44-97f0-97311087d9fa



 glabel list
Geom name: ada0p1
Providers:
1. Name: gptid/d53c24c9-8a7e-7b44-97f0-97311087d9fa
   Mediasize: 314572800 (300M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2097152
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 614400
   length: 314572800
   index: 0
Consumers:
1. Name: ada0p1
   Mediasize: 314572800 (300M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2097152
   Mode: r0w0e0

Geom name: ada0p3
Providers:
1. Name: gpt/swap-internal-disk
   Mediasize: 9448919040 (8.8G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 230614093312
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 18454920
   length: 9448919040
   index: 0
Consumers:
1. Name: ada0p3
   Mediasize: 9448919040 (8.8G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 230614093312
   Mode: r0w0e0

Geom name: ada0p3
Providers:
1. Name: gptid/873d142e-6117-de4f-bd8c-3075b666793f
   Mediasize: 9448919040 (8.8G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 230614093312
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 18454920
   length: 9448919040
   index: 0
Consumers:
1. Name: ada0p3
   Mediasize: 9448919040 (8.8G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 230614093312
   Mode: r0w0e0

Geom name: da0
Providers:
1. Name: diskid/DISK-333457EBD0F2
   Mediasize: 240057409536 (224G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2
   secoffset: 0
   offset: 0
   seclength: 468862128
   length: 240057409536
   index: 0
Consumers:
1. Name: da0
   Mediasize: 240057409536 (224G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e3

Geom name: cd0
Providers:
1. Name: iso9660/PC_GHS
   Mediasize: 100734976 (96M)
   Sectorsize: 2048
   Mode: r0w0e0
   secoffset: 0
   offset: 0
   seclength: 196748
   length: 100734976
   index: 0
Consumers:
1. Name: cd0
   Mediasize: 100734976 (96M)
   Sectorsize: 2048
   Mode: r0w0e0


glabel label  -v swap-unirex-224G  /dev/diskid/DISK-333457EBD0F2p3
glabel: Can't store metadata on /dev/diskid/DISK-333457EBD0F2p3: Permission denied.
fred@fred-pc ~ [1]> sudo glabel label  -v swap-unirex-224G  /dev/diskid/DISK-333457EBD0F2p3
Password:
Metadata value stored on /dev/diskid/DISK-333457EBD0F2p3.
Done.

sudo glabel label  -v bootfs-unirex-224G  /dev/diskid/DISK-333457EBD0F2p1
Metadata value stored on /dev/diskid/DISK-333457EBD0F2p1.
Done.

gpart show -l
=>       34  468877245  ada0  GPT  (224G)
         34       4062        - free -  (2.0M)
       4096     614400     1  (null)  (300M)
     618496  449799648     2  (null)  (214G)
  450418144          7        - free -  (3.5K)
  450418151   18454920     3  swap-internal-disk  (8.8G)
  468873071       4208        - free -  (2.1M)

=>       40  468862048  diskid/DISK-333457EBD0F2  GPT  (224G)
         40     532480                         1  (null)  (260M)
     532520  459218944                         2  (null)  (219G)
  459751464    9099264                         3  (null)  (4.3G)
  468850728      11360                            - free -  (5.5M)


fred@fred-pc ~ [1]> sudo mount -t fat32 /dev/diskid/DISK-333457EBD0F2p1  /mnt/bsd_fat32
mount: /dev/diskid/DISK-333457EBD0F2p1: Operation not supported by device
fred@fred-pc ~ [1]> ls /dev/glabel
ls: /dev/glabel: No such file or directory
fred@fred-pc ~ [1]> ls /dev/label
bootfs-unirex-2 swap-unirex-224
fred@fred-pc ~> ls -l /dev/label
total 0
crw-r-----  1 root  operator  0x1ff Jan 30 00:21 bootfs-unirex-2
crw-r-----  1 root  operator  0x1fc Jan 30 00:21 swap-unirex-224
fred@fred-pc ~> sudo mount -t fat32 /dev/label/bootfs-unirex-2  /mnt/bsd_fat32
mount: /dev/label/bootfs-unirex-2: Operation not supported by device
fred@fred-pc ~ [1]> sudo mount -t fat32 /dev/label/bootfs-unirex-2224g  /mnt/bsd_fat32
mount: /dev/label/bootfs-unirex-2224g: Operation not supported by device
fred@fred-pc ~ [1]> su root
Password:
root@fred-pc:/home/fred # mount -t fat32 /dev/label/bootfs-unirex-2 /mnt/bsd_fat32
mount: /dev/label/bootfs-unirex-2: Operation not supported by device
root@fred-pc:/home/fred # 

root@fred-pc:/home/fred # ls /mnt  /dev/label /dev/gpt /dev/gptid /dev/diskid 
/dev/diskid:
DISK-333457EBD0F2 DISK-333457EBD0F2p2
DISK-333457EBD0F2p1 DISK-333457EBD0F2p3

/dev/gpt:
swap-internal-disk

/dev/gptid:
7d0e6dcf-7926-11ec-b6e6-0021ccd45dec
801fd8c2-7926-11ec-b6e6-0021ccd45dec
873d142e-6117-de4f-bd8c-3075b666793f
d53c24c9-8a7e-7b44-97f0-97311087d9fa

/dev/label:
bootfs-unirex-2 swap-unirex-224

/mnt:
bsd_fat32 swap_space
root@fred-pc:/home/fred # 




GhostBSD 22.01.26 minor problems I encountered. A little post to remember before I forget. How I fixed MY PROBLEMS.

GhostBSD 22.01.26 Networking, USB Audio Headset

Don't  Tell your  /etc/wpa_supplicant.conf   file  One Thing  ( Open Network, No WPA security needed) and tell your /etc/rc.conf  file that you need WPA & WPA2  security.   These two files must be on the same page, and only you can verify that YOU BIG NETWORK DUDE GUY have written them to match YOUR intention!! 

/etc/wpa_supplicant.conf

network={
 ssid="Swinomish Lodge Guest"
 key_mgmt=NONE
}



/etc/rc.conf
zfs_enable="YES"
kld_list="linux linux64 cuse fusefs /boot/modules/i915kms.ko"
linux_enable="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
devfs_enable="YES"
devfs_system_ruleset="devfsrules_common"
dbus_enable="YES"
lightdm_enable="YES"
webcamd_enable="YES"
webcamd_0_flags="-d ugen1.3"
cupsd_enable="YES"
avahi_daemon_enable="YES"
avahi_dnsconfd_enable="YES"
moused_enable="YES"
ipfw_enable="YES"
firewall_enable="YES"
ifconfig_em0="DHCP"
wlans_iwn0="wlan0"
# ifconfig_wlan0="inet 172.22.223.251 netmask 255.255.252.0 media OFDM/36Mbps mode 11g"
# ifconfig_wlan0="WPA DHCP channel 6 ssid 'Swinomish Lodge Guest' "
ifconfig_wlan0="DHCP channel 6 ssid 'Swinomish Lodge Guest' "
keymap="us.kbd"
hostname="fred-pc"
dsbmd_enable="YES"
#defaultrouter="172.22.220.1"


NONE for wpa_supplicant.conf and WPA removed   should match for the Open Network (no encryption)  DHCP Dynamic Host Control Protocol  ifconfig_wlan0 statement  to issue the correct sequence of networking commands to the wifi interface to connect with an OPEN network that does NOT need WPA passkey or password!   It took awhile to figure out that "WPA DHCP" was not correct and "DHCP"  is correct, because you see all the time the  "WPA DHCP"  when you are trying to connect with a passkey encoded  WPA WiFi networks.


service netif restart
service routing restart 
bsdconfig networking     Is quite a helpful tool to set your default gateway, your hostname, 


Saturday, January 22, 2022

Gaming with Steam on FreeBSD / GhostBSD

 Gaming with Steam on FreeBSD / GhostBSD

Suyimazu, automates the playing of Steam Games on FreeBSD/ GhostBSD eliminates all the manual setup to make a game playable on FreeBSD/ GhostBSD makes use of WINE.


Playing Steam games on FreeBSD / GhostBSD requires many manual steps for setting up an environment to play games. Suyimazu automates these manual steps for FreeBSD, making it easier and quicker to play a Steam game.

Back when Alexander88207 started using FreeBSD, there was no useful utility to setup games or launcher in wine, so he created one. Suyimazu was developed from pure fun, so please do not take it too seriously. Suyimazu was created with some inspiration from lutris, but is not meant to be a substitute.

Suyimazu is a launcher that makes it easy to run Windows games/launcher easily on FreeBSD by providing/applying the required fixes and workarounds.

Suyimazu Symbol


The Windows emulation is provided by Wine.
The launcher menus are provided by Zenity
The most fixes that gets applied are provided by Winetricks

Special thanks go to the above mentioned projects :)

URL Links: https://codeberg.org/Alexander88207/Suyimazu      Project site description https://codeberg.org/Alexander88207/Suyimazu/src/branch/main/Docs/Handbook.md Suyimazu Handbook

https://wiki.freebsd.org/Graphics#drm-kmod Intel graphics card and AMD graphics card setup. https://forums.freebsd.org/threads/howto-setup-xorg-with-nvidias-driver.52311/

URL Video Links: Preview of Homura: https://www.youtube.com/watch?v=6B1h0F4rIs4 

Review by RoboNuggie: https://www.youtube.com/watch?v=0lLs3JxezBM

Speakers

Photo of Fred FinsterFred Finster






The D.bsd Developers room.  This is the chart for event times


This is the Matrix Chat room.  So create your Matrix signin /login account.




Here is full printed out URL link to event.

Suyimazu, automates the playing of Steam Games on FreeBSD/ GhostBSD eliminates all the manual setup to make a game playable on FreeBSD/ GhostBSD makes use of WINE.


Mobile Schedule Applications  You pick and download one, so you don't waste paper.

FOSDEM 2022  Schedule webpage

GhostBSD 22.01.22 How to install new Version, History of BSD.

GhostBSD 22.01.22 is here

You can test drive from a 4GB usb flash drive.


My reply to a comment on a spanish youtube channel that was reviewing GhostBSD 22.01.12

Spanish Youtube Channel, Manos Y Máquinas Entre Vídeos

BELOW, you can read the deepl translated spanish version of this text.

Oliver E. Miñano Florián

4 days ago

I've heard that it's very good, but it's different, that's why it's not very "used".


Different must mean STABILITY from 40+ years of history! Not very "used" on a desktop is possibly true.  GhostBSD is making a difference on the Desktop useage of FreeBSD 13.0 Operating System.

 Netflix uses FreeBSD for its video distribution, so networking is very fast and stable.  GhostBSD uses the MATE desktop GUI as you can see from the video above.   GhostBSD produces a stable, easy to use, graphical desktop that should change the "not very used" Myth.  You should test drive on your present PC hardware.  4Gbytes dram, 1.5Ghz CPU, a good external USB 3.0 SATA  SSD 120GB or larger makes a perfect method to run GhostBSD O/S on your present PC hardware.   You make the decision, is GhostBSD great to use as a stable desktop on your PC.  Many new users comment how easy, about 10 minutes to install on their PC.  You can test drive GhostBSD MATE 1.26 from a single USB 4GB flash drive.  GhostBSD loads from the USB flash drive into your ram memory.  You can remove the USB flash drive from the usb slot and continue to run and test operations. To install click the GBI icon, choose the use the full disk to write into that blank SSD you installed inside the PC or added externally with a USB 3.0 Sata Drive (hard disk or solid state disk )


Download the file  https://ghostbsd.org/download select latest version.   Burn/Write to a USB 4GB flash drive. Boot it up the live image, and try GhostBSD MATE for yourself.  GhostBSD is based on FreeBSD 13.0 Stable.  FreeBSD started in October 1993 all code rewritten with a 'Free' version of the AT&T Unix BSD version Code.  Look at the History graph.

https://en.wikipedia.org/wiki/Berkeley_Software_Distribution

https://en.wikipedia.org/wiki/Berkeley_Software_Distribution#/media/File:Unix_history-simple.svg  Mire el gráfico de la historia.  Look at this graphic svg of BSD History.

https://www.wikiwand.com/en/History_of_the_Berkeley_Software_Distribution

https://opensource.fandom.com/wiki/Berkeley_Software_Distribution



https://www.youtube.com/results?search_query=GhostBSD+22.01.12

https://ghostbsd.org      GhostBSD website

https://t.me/ghostbsd    Telegram Group   join us and ask questions here or IRC ghostbsd