Sunday, November 26, 2023

Install Deepin Desktop Environment on Ubuntu Server 22.04.3

Following below is an attempt to reproduce Fedora's style of installation Deepin Desktop on Server's instance. Due to known issues with DDE on F39's server, this procedure has been done on Ubuntu 22.04 (LTS) Server .

Just for instance setup Ubuntu Server with btrfs root partion anf xfs home partion .  

boris@ubuntusrv:~$ df -Th

Filesystem                        Type   Size  Used Avail Use% Mounted on

tmpfs                             tmpfs  1.2G  3.0M  1.2G   1% /run

/dev/mapper/ubuntu--vg-ubuntu_lv1 btrfs   51G  7.6G   40G  16% /

tmpfs                             tmpfs  5.7G     0  5.7G   0% /dev/shm

tmpfs                             tmpfs  5.0M  4.0K  5.0M   1% /run/lock

/dev/vda2                         ext4   2.0G  136M  1.7G   8% /boot

/dev/vda1                         vfat   1.1G  6.1M  1.1G   1% /boot/efi

/dev/mapper/ubuntu--vg-ubuntu_lv2 xfs     12G  174M   12G   2% /home

tmpfs                             tmpfs  1.2G   40K  1.2G   1% /run/user/1000

tmpfs                             tmpfs  5.7G     0  5.7G   0% /run/qemu

The next step supposed to be 

$ sudo add-apt-repository ppa:ubuntudde-dev/stable
$ sudo apt update
$ sudo apt install ubuntudde-dde
$ sudo systemctl  set-default graphical.target
$ sudo reboot
$ sudo apt update
$ sudo apt install deepin-terminal
$ sudo apt install firefox

Configure Linux bridge br0

boris@ubuntusrv:~$ cat  /etc/netplan/01-netcfg.yaml
network:
 ethernets:
   enp1s0:
     dhcp4: false
     dhcp6: false
 # add configuration for bridge interface
 bridges:
   br0:
     interfaces: [enp1s0]
     dhcp4: false
     addresses: [192.168.0.73/24]
     macaddress: 52:54:00:da:0b:72
     routes:
       - to: default
         via: 192.168.0.1
         metric: 100
     nameservers:
       addresses: [8.8.8.8]
     parameters:
       stp: false
     dhcp6: false
 version: 2

boris@ubuntusrv:~$ sudo netplan apply

Official hint - to stabilize DDE in VENV is to hit Numlock.
Works for me (32 GB on Virtualization host F39 WKS, 12 GB Ubuntu 22.04.3 Sever KVM Guest )
A virtual test on a Ryzen 7 3700(X), 32 GB RAM, WD-500 NVMe for Ubuntu Server 22.04.3 KVM Guest 16 GB RAM (8 vcpus) with a single DM - DDE performed very well. In my opinion, the presence of Gnome on Ubuntu Desktop 22.04 is not something critical for the stability of DDE. But on machines with weaker processors and limited memory, you'll likely get disappointing results.










Monday, November 13, 2023

FreeBSD tar (also BSD tar) on Fedora 39 WKS

Setting up FreeBSD tar (also BSD tar)  on Fedora 39 WKS, Ubuntu 22.04, Debian BookWorm 

FreeBSD tar (also BSD tar) has become the default tar on most Berkeley Software Distribution-based operating systems including Mac OS X. The core functionality is available as libarchive for inclusion in other applications. This implementation automatically detects the format of the file and can extract from tar, pax, cpio, zip, rar, ar, xar, rpm and ISO 9660 cdrom images. It also comes with a functionally equivalent cpio command-line interface.

Bsdtar is availabe along with it's extended  functionality on recently released Fedora 39 and most probably on the previous Fedora releases

boris@fedora:~$ uname -a
Linux fedora 6.6.1-300.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 10 20:08:54 UTC 2023 x86_64 GNU/Linux
boris@fedora:~/SENDTO2$ sudo dnf install bsdtar
[sudo] password for boris: 
Last metadata expiration check: 1:40:05 ago on Mon 13 Nov 2023 12:36:56 PM MSK.
Dependencies resolved.
================================================
 Package            Architecture       Version                   Repository          Size
================================================
Installing:
 bsdtar             x86_64             3.7.1-1.fc39              fedora              65 k

Transaction Summary
================================================
Install  1 Package
Total download size: 65 k
Installed size: 134 k
Is this ok [y/N]: y
Downloading Packages:
bsdtar-3.7.1-1.fc39.x86_64.rpm                            457 kB/s |  65 kB     00:00    
-----------------------------------------------------------------------------------
Total                                                      86 kB/s |  65 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                  1/1 
  Installing       : bsdtar-3.7.1-1.fc39.x86_64                                       1/1 
  Running scriptlet: bsdtar-3.7.1-1.fc39.x86_64                                       1/1 
  Verifying        : bsdtar-3.7.1-1.fc39.x86_64                                       1/1 
Installed:
  bsdtar-3.7.1-1.fc39.x86_64                                                              
Complete!
boris@fedora:~/SENDTO$ bsdtar -xf virtio-win-0.1.240-1.noarch.rpm
boris@fedora:~/SENDTO$ ll
total 252216
drwxr-xr-x. 1 boris boris        10 Nov 13 14:17 usr
-rw-r--r--. 1 boris boris 258267861 Nov 11 19:24 virtio-win-0.1.240-1.noarch.rpm
boris@fedora:~/SENDTO$ cd usr/share/virt*
boris@fedora:~/SENDTO/usr/share/virtio-win$ ll
total 612816
drwxr-xr-x. 1 boris boris        46 Nov 13 14:17 drivers
drwxr-xr-x. 1 boris boris        68 Nov 13 14:17 guest-agent
drwxr-xr-x. 1 boris boris       136 Nov 13 14:17 installer
-rw-r--r--. 1 boris boris 627519488 Sep 19 09:18 virtio-win-0.1.240.iso
lrwxrwxrwx. 1 boris boris        22 Sep 19 09:18 virtio-win.iso -> virtio-win-0.1.240.iso





















boris@fedora:~$ sudo dnf install bsdcpio
[sudo] password for boris: 
Last metadata expiration check: 0:10:06 ago on Tue 14 Nov 2023 06:01:35 
Dependencies resolved.
=============================================
 Package             Architecture       Version            Repository          Size
=============================================
Installing:
bsdcpio             x86_64             3.7.1-1.fc39        fedora      47 k
Transaction Summary
=============================================
Install  1 Package

Total download size: 47 k
Installed size: 98 k
Is this ok [y/N]: y
Downloading Packages:
bsdcpio-3.7.1-1.fc39.x86_64.rpm               290 kB/s |  47 kB     00:00    
-------------------------------------------------------------------------
Total                                          23 kB/s |  47 kB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                  1/1 
  Installing       : bsdcpio-3.7.1-1.fc39.x86_64                                      1/1 
  Running scriptlet: bsdcpio-3.7.1-1.fc39.x86_64                                      1/1 
  Verifying        : bsdcpio-3.7.1-1.fc39.x86_64                                      1/1 
Installed:
  bsdcpio-3.7.1-1.fc39.x86_64                                                             
Complete!

===========================================
Install bsdtar on Ubuntu 22.04.3 && Debian BookWorm
===========================================
Here bsdtar is supposed to be installed via package libarchive-tools. Libarchive provides command-line utilities called bsdtar and bsdcpio. These are complete re-implementation based on libarchive. These are the default system tar and cpio on FreeBSD, NetBSD, macOS and Windows.There is also bsdcat, designed to decompress a file to the 
standard output like zcat.

boris@boris-ubuntu:~/Downloads/usr/share/virtio-win$ hostnamectl
 Static hostname: boris-ubuntu
       Icon name: computer-vm
         Chassis: vm
      Machine ID: 9e9d585b54484b63a758d1b0098cfebd
         Boot ID: 7fb70e669aad4d5398574c029585d5e6
  Virtualization: kvm
Operating System: Ubuntu 22.04.3 LTS              
          Kernel: Linux 6.2.0-36-generic
    Architecture: x86-64
 Hardware Vendor: QEMU
  Hardware Model: Standard PC _Q35 + ICH9, 2009
 
boris@boris-ubuntu:~$ sudo apt -y install libarchive-tools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  libarchive-tools
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 61,1 kB of archives.
After this operation, 209 kB of additional disk space will be used.
. . . . . . . . . . . .
Preparing to unpack .../libarchive-tools_3.6.0-1ubuntu1_amd64.deb ...
Unpacking libarchive-tools (3.6.0-1ubuntu1) ...
Setting up libarchive-tools (3.6.0-1ubuntu1) ...
Processing triggers for man-db (2.10.2-1) …
 
boris@boris-ubuntu:~$ which bsdtar
/usr/bin/bsdtar
 
boris@boris-ubuntu:~/Downloads$ ll
total 252228
drwxr-xr-x  2 boris boris      4096  nov  13 16:35 ./
drwxr-x--- 16 boris boris      4096  nov  13 16:28 ../
-rw-r--r--  1 boris boris 258267861 nov 13 virtio-win-0.1.240-1.noarch.rpm
boris@boris-ubuntu:~/Downloads$ bsdtar -xf virtio-win-0.1.240-1.noarch.rpm
 
boris@boris-ubuntu:~/Downloads$ ll
total 252232
drwxr-xr-x  3 boris boris      4096 nov 13 16:36 ./
drwxr-x--- 16 boris boris      4096 novf 13 16:28 ../
drwxrwxr-x  3 boris boris      4096 nov 13 16:36 usr/
-rw-r--r--  1 boris boris 258267861 nov 13 16:35 virtio-win-0.1.240-1.noarch.rpm
 
boris@boris-ubuntu:~/Downloads/usr/share/virtio-win$ ll
total 612836
drwxr-xr-x 5 boris boris      4096  sep 19 09:18 ./
drwxrwxr-x 4 boris boris      4096 nov 13 16:36 ../
drwxrwxr-x 6 boris boris      4096 nov 13 16:36 drivers/
drwxrwxr-x 2 boris boris      4096 nov 13 16:36 guest-agent/
drwxrwxr-x 2 boris boris      4096 nov  16:36 installer/
-rw-r--r-- 1 boris boris 627519488 sep 19 09:18 virtio-win-0.1.240.iso
lrwxrwxrwx 1 boris boris        22   sep  19 09:18 virtio-win.iso -> virtio-win-0.1.240.iso

Debian 12.1

boris@boris-ms7c37:~$ sudo apt install libarchive-tools
[sudo] password for boris:  
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
 libbotan-2-19 librnp0
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
 libarchive-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 73.6 kB of archives.
After this operation, 203 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 libarchive-tools amd64 3.6.2-1 [73.6 kB]
Fetched 73.6 kB in 0s (301 kB/s)       
Selecting previously unselected package libarchive-tools.
(Reading database ... 203703 files and directories currently installed.)
Preparing to unpack .../libarchive-tools_3.6.2-1_amd64.deb ...
Unpacking libarchive-tools (3.6.2-1) ...
Setting up libarchive-tools (3.6.2-1) ...
Processing triggers for man-db (2.11.2-2) ...
boris@boris-ms7c37:~$ which bsdtar
/usr/bin/bsdtar
boris@boris-ms7c37:~$ cd Downloads
boris@boris-ms7c37:~/Downloads$ ls -l
total 252216
-rw-r--r-- 1 boris boris 258267861 Nov 13 22:01 virtio-win-0.1.240-1.noarch.rpm
boris@boris-ms7c37:~/Downloads$ bsdtar -xf virtio-win-0.1.240-1.noarch.rpm
boris@boris-ms7c37:~/Downloads$ ls -l
total 252220
drwxr-xr-x 3 boris boris      4096 Nov 13 22:02 usr
-rw-r--r-- 1 boris boris 258267861 Nov 13 22:01 virtio-win-0.1.240-1.noarch.rpm

Friday, November 10, 2023

Install Win11 KVM on Manjaro Gnome 23.04

Please be advised, that in particular case extraction of rpms is supported  via CLI   $ bsdtar -xf *.rpm . The rest of deployment procedure keeps to be the same as on previous versions of Manjaro linux. So the commands which bring you to successful deployment of Windows 11 KVM Guest should be :

 ~/Downloads > bsdtar -xf  virtio-win-0.1.240-1.noarch.rpm

The most recent version of virtio-win-0.1.240-1.noarch.rpm has been downloaded and extracted via bsdtar , the last one appears to be installed on Manjaro Linux by default .

 ~/Downloads > sudo cp -r usr /      

 ~/Downloads > sudo pacman -S swtpm   

 ~/Downloads > hostnamectl                                                   ✔ 

 Static hostname: boris-manjaro

       Icon name: computer-desktop

         Chassis: desktop 🖥️

      Machine ID: 235d4418d2f24e8d9cf80d1967566422

         Boot ID: 34c09380dbf646f084dee4abb33b11e4

Operating System: Manjaro Linux                     

          Kernel: Linux 6.5.9-1-MANJARO

    Architecture: x86-64

 Hardware Vendor: Micro-Star International Co., Ltd.

  Hardware Model: MS-7C37

Firmware Version: H.60

   Firmware Date: Wed 2019-11-06

    Firmware Age: 4y 4d 

~/Downloads$> ls -l virtio-win-0.1.240-1.noarch.rpm

-rw-r--r--. 1 boris boris 258267861 Nov 10 21:35 virtio-win-0.1.240-1.noarch.rpm      

~/Downloads >  bsdtar -xf  virtio-win-0.1.240-1.noarch.rpm          

~/Downloads > ls  -l                                     ✔  10s  

total 5666096

drwxr-xr-x 3 boris boris         19 Nov 10 10:12 usr

~/Downloads > sudo cp -r usr /                                                        ~/Downloads > cd /usr/share/virtio-win*                                                               

/usr/share/virtio-win > ls -l                                                              
total 612816
drwxr-xr-x 1 root root        46 Nov 11 14:06 drivers
drwxr-xr-x 1 root root        68 Nov 11 14:06 guest-agent
drwxr-xr-x 1 root root       136 Nov 11 14:06 installer
-rw-r--r-- 1 root root 627519488 Nov 11 14:06 virtio-win-0.1.240.iso
lrwxrwxrwx 1 root root        22 Nov 11 14:06 virtio-win.iso -> virtio-win-0.1.240.iso

 /usr/share/virtio-win > sudo pacman -S swtpm                                  ✘  7s  

resolving dependencies...

looking for conflicting packages...

Packages (2) libtpms-0.9.6-1  swtpm-0.8.1-1

Total Download Size:   0.57 MiB

Total Installed Size:  1.48 MiB

:: Proceed with installation? [Y/n] Y

:: Retrieving packages...

 libtpms-0.9.6-1-x86_64        419.2 KiB   446 KiB/s 00:01 [###############################] 100%

 swtpm-0.8.1-1-x86_64          163.1 KiB   570 KiB/s 00:00 [###############################] 100%

 Total (2/2)                   582.4 KiB   401 KiB/s 00:01 [###############################] 100%

(2/2) checking keys in keyring                             [###############################] 100%

(2/2) checking package integrity                           [###############################] 100%

(2/2) loading package files                                [###############################] 100%

(2/2) checking for file conflicts                          [###############################] 100%

(2/2) checking available disk space                        [###############################] 100%

:: Processing package changes...

(1/2) installing libtpms                                   [###############################] 100%

(2/2) installing swtpm                                     [###############################] 100%

:: Running post-transaction hooks...

(1/3) Creating system user accounts...

(2/3) Creating temporary files...

(3/3) Arming ConditionNeedsUpdate...

/usr/share/virtio-win > sudo pacman -S edk2-ovmf                               ✔  8s  

warning: edk2-ovmf-202308-3 is up to date -- reinstalling

resolving dependencies...

looking for conflicting packages...

Packages (1) edk2-ovmf-202308-3

Total Installed Size:  51.52 MiB

Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] Y

(1/1) checking keys in keyring                             [###############################] 100%

(1/1) checking package integrity                           [###############################] 100%

(1/1) loading package files                                [###############################] 100%

(1/1) checking for file conflicts                          [###############################] 100%

(1/1) checking available disk space                        [###############################] 100%

:: Running pre-transaction hooks...

(1/1) Creating Timeshift snapshot before upgrade...

==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.

:: Processing package changes...

(1/1) reinstalling edk2-ovmf                               [###############################] 100%

:: Running post-transaction hooks...

(1/1) Arming ConditionNeedsUpdate...








































































































































































Anyway on remote Fedora 39 box just run with no issues

boris@fedora:~/SENDTO$ uname -a
Linux fedora 6.6.1-300.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 10 20:08:54 UTC 2023 x86_64 GNU/Linux
boris@fedora:~/SENDTO$ rpm2cpio virtio-win-0.1.240-1.noarch.rpm | cpio -idum
2448567 blocks
boris@fedora:~/SENDTO$ ll
total 252216
drwxr-xr-x. 1 boris boris        10 Nov 11 19:25 usr
-rw-r--r--. 1 boris boris 258267861 Nov 11 19:24 virtio-win-0.1.240-1.noarch.rpm
boris@fedora:~/SENDTO$  tar -zcvf usr.tar.gz usr
boris@fedora:~/SENDTO$ scp usr.tar.gz 192.168.0.27:/home/boris/target
boris@192.168.0.27's password: 
usr.tar.gz                                                     100%  385MB 480.2MB/s   00:00  
Where 192.168.0.27 - IP of remote Manjaro Instance running sshd daemon.
Actually, any RH's clone like Alma Linux, Rocky Linux or Fedora Linux itself having rpm2cpio and cpio installed allow to convert virtio-win-0.1.240-1.noarch.rpm into required tar ball - usr.tar.gz to be scp'ed to Manjaro Instance for extraction and deployment

UPDATE as of 11/12/23
Same schema works on ArcoLinux-v23.11-03-x86_64







































UPDATE as of 11/13/23 That is what causes limited experience ( regarding myself )

FreeBSD tar (also BSD tar) has become the default tar on most Berkeley Software Distribution-based operating systems including Mac OS X. The core functionality is available as libarchive for inclusion in other applications. This implementation automatically detects the format of the file and can extract from tar, pax, cpio, zip, rar, ar, xar, rpm and ISO 9660 cdrom images. It also comes with a functionally equivalent cpio command-line interface.

boris@fedora:~$ uname -a
Linux fedora 6.6.1-300.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 10 20:08:54 UTC 2023 x86_64 GNU/Linux
boris@fedora:~/SENDTO2$ sudo dnf install bsdtar
[sudo] password for boris: 
Last metadata expiration check: 1:40:05 ago on Mon 13 Nov 2023 12:36:56 PM MSK.
Dependencies resolved.
================================================
 Package            Architecture       Version                   Repository          Size
================================================
Installing:
 bsdtar             x86_64             3.7.1-1.fc39              fedora              65 k

Transaction Summary
================================================
Install  1 Package
Total download size: 65 k
Installed size: 134 k
Is this ok [y/N]: y
Downloading Packages:
bsdtar-3.7.1-1.fc39.x86_64.rpm                            457 kB/s |  65 kB     00:00    
-----------------------------------------------------------------------------------
Total                                                      86 kB/s |  65 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                  1/1 
  Installing       : bsdtar-3.7.1-1.fc39.x86_64                                       1/1 
  Running scriptlet: bsdtar-3.7.1-1.fc39.x86_64                                       1/1 
  Verifying        : bsdtar-3.7.1-1.fc39.x86_64                                       1/1 
Installed:
  bsdtar-3.7.1-1.fc39.x86_64                                                              
Complete!
boris@fedora:~/SENDTO$ bsdtar -xf virtio-win-0.1.240-1.noarch.rpm
boris@fedora:~/SENDTO$ ll
total 252216
drwxr-xr-x. 1 boris boris        10 Nov 13 14:17 usr
-rw-r--r--. 1 boris boris 258267861 Nov 11 19:24 virtio-win-0.1.240-1.noarch.rpm
boris@fedora:~/SENDTO$ cd usr/share/virt*
boris@fedora:~/SENDTO/usr/share/virtio-win$ ll
total 612816
drwxr-xr-x. 1 boris boris        46 Nov 13 14:17 drivers
drwxr-xr-x. 1 boris boris        68 Nov 13 14:17 guest-agent
drwxr-xr-x. 1 boris boris       136 Nov 13 14:17 installer
-rw-r--r--. 1 boris boris 627519488 Sep 19 09:18 virtio-win-0.1.240.iso
lrwxrwxrwx. 1 boris boris        22 Sep 19 09:18 virtio-win.iso -> virtio-win-0.1.240.iso

Tuesday, November 7, 2023

Install Win11 as KVM on Fedora 39 Server

 Mentioned procedure on Fedora 39 Server and AlmaLinux 9.3 requires only verification of presence packages edk2-ovmf swtpm swtpm-tools on the system. You are not supposed to experience any problems during deployment Win11 KVM in security mode (virt-manager's setup)

See also   http://lxer.com/module/newswire/view/330505/index.html



























Runtime snapshot




























References

1.  https://fedoraproject.org/wiki/Test_Results:Fedora_39_RC_1.5_Installation