Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors on ubuntu 20.10 #21

Open
Itai-Nelken opened this issue Nov 28, 2020 · 47 comments
Open

errors on ubuntu 20.10 #21

Itai-Nelken opened this issue Nov 28, 2020 · 47 comments

Comments

@Itai-Nelken
Copy link
Contributor

here is the log when running first time:
log.txt
Ubuntu told me to run sudo apt install -f that fixed the dependencies

here is what happend 2nd time I ran:
itai@UbuntuPi4-ultra-4gb:~$ sudo ~/vdesktop/vdesktop /dev/sdb gui
Current config:
VDESKTOP_BOOT_MODE: gui
VDESKTOP_UMOUNT_ON_EXIT: yes
VDESKTOP_USERNAME: pi
VDESKTOP_PASSWORD: raspberry
VDESKTOP_AUTO_LOGIN: yes
VDESKTOP_MOUNTPOINT: /media/pi/vdesktop
VDESKTOP_ENABLE_ROOTMOUNT: yes
VDESKTOP_ENABLE_VIRGL: yes
VDESKTOP_LOCAL_BINARIES: yes
VDESKTOP_NSPAWN_FLAGS:

Message from Botspot: Comments >/dev/null. Just kidding! Questions or suggestions? https://www.raspberrypi.org/forums/viewtopic.php?&t=251757
Given /dev/sdb, running in external storage device mode.
Partiton 2 exists.
Mounting /dev/sdb2 to /media/pi/vdesktop, and mounting /dev/sdb1 to /media/pi/vdesktop/boot.

Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Virgilrenderer server not found, but it's enabled in the config file.
Compiling virglrenderer in 10 seconds. To cancel, press Ctrl+C before then..........
Compiling virglrenderer now.
--2020-11-28 09:35:22-- http://ftp.br.debian.org/debian/pool/main/libe/libepoxy/libepoxy0_1.5.4-1_armhf.deb
Resolving ftp.br.debian.org (ftp.br.debian.org)... 200.236.31.3, 2801:82:80ff:8000::4
Connecting to ftp.br.debian.org (ftp.br.debian.org)|200.236.31.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 171604 (168K) [application/x-debian-package]
Saving to: ‘libepoxy0_1.5.4-1_armhf.deb.1’

libepoxy0_1.5.4-1_a 100%[===================>] 167.58K 166KB/s in 1.0s

2020-11-28 09:35:24 (166 KB/s) - ‘libepoxy0_1.5.4-1_armhf.deb.1’ saved [171604/171604]

--2020-11-28 09:35:24-- http://ftp.br.debian.org/debian/pool/main/libe/libepoxy/libepoxy-dev_1.5.4-1_armhf.deb
Resolving ftp.br.debian.org (ftp.br.debian.org)... 200.236.31.3, 2801:82:80ff:8000::4
Connecting to ftp.br.debian.org (ftp.br.debian.org)|200.236.31.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 127384 (124K) [application/x-debian-package]
Saving to: ‘libepoxy-dev_1.5.4-1_armhf.deb.1’

libepoxy-dev_1.5.4- 100%[===================>] 124.40K 117KB/s in 1.1s

2020-11-28 09:35:25 (117 KB/s) - ‘libepoxy-dev_1.5.4-1_armhf.deb.1’ saved [127384/127384]

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libepoxy-dev:armhf' instead of '/root/libepoxy-dev_1.5.4-1_armhf.deb'
Note, selecting 'libepoxy0:armhf' instead of '/root/libepoxy0_1.5.4-1_armhf.deb'
The following packages will be DOWNGRADED:
libepoxy-dev:armhf libepoxy0:armhf
0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.
Failed to install local dependencies!
Hold on...
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Cleaning up...
Almost done...
Done!

itai@UbuntuPi4-ultra-4gb:$ sudo apt install -y --allow-downgrades
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
itai@UbuntuPi4-ultra-4gb:
$ sudo ~/vdesktop/vdesktop /dev/sdb gui
Current config:
VDESKTOP_BOOT_MODE: gui
VDESKTOP_UMOUNT_ON_EXIT: yes
VDESKTOP_USERNAME: pi
VDESKTOP_PASSWORD: raspberry
VDESKTOP_AUTO_LOGIN: yes
VDESKTOP_MOUNTPOINT: /media/pi/vdesktop
VDESKTOP_ENABLE_ROOTMOUNT: yes
VDESKTOP_ENABLE_VIRGL: yes
VDESKTOP_LOCAL_BINARIES: yes
VDESKTOP_NSPAWN_FLAGS:

Message from Botspot: Comments >/dev/null. Just kidding! Questions or suggestions? https://www.raspberrypi.org/forums/viewtopic.php?&t=251757
Given /dev/sdb, running in external storage device mode.
Partiton 2 exists.
Mounting /dev/sdb2 to /media/pi/vdesktop, and mounting /dev/sdb1 to /media/pi/vdesktop/boot.

Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Virgilrenderer server not found, but it's enabled in the config file.
Compiling virglrenderer in 10 seconds. To cancel, press Ctrl+C before then..........
Compiling virglrenderer now.
--2020-11-28 09:38:12-- http://ftp.br.debian.org/debian/pool/main/libe/libepoxy/libepoxy0_1.5.4-1_armhf.deb
Resolving ftp.br.debian.org (ftp.br.debian.org)... 200.236.31.3, 2801:82:80ff:8000::4
Connecting to ftp.br.debian.org (ftp.br.debian.org)|200.236.31.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 171604 (168K) [application/x-debian-package]
Saving to: ‘libepoxy0_1.5.4-1_armhf.deb.2’

libepoxy0_1.5.4-1_a 100%[===================>] 167.58K 121KB/s in 1.4s

2020-11-28 09:38:14 (121 KB/s) - ‘libepoxy0_1.5.4-1_armhf.deb.2’ saved [171604/171604]

--2020-11-28 09:38:14-- http://ftp.br.debian.org/debian/pool/main/libe/libepoxy/libepoxy-dev_1.5.4-1_armhf.deb
Resolving ftp.br.debian.org (ftp.br.debian.org)... 200.236.31.3, 2801:82:80ff:8000::4
Connecting to ftp.br.debian.org (ftp.br.debian.org)|200.236.31.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 127384 (124K) [application/x-debian-package]
Saving to: ‘libepoxy-dev_1.5.4-1_armhf.deb.2’

libepoxy-dev_1.5.4- 100%[===================>] 124.40K 91.8KB/s in 1.4s

2020-11-28 09:38:16 (91.8 KB/s) - ‘libepoxy-dev_1.5.4-1_armhf.deb.2’ saved [127384/127384]

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libepoxy-dev:armhf' instead of '/root/libepoxy-dev_1.5.4-1_armhf.deb'
Note, selecting 'libepoxy0:armhf' instead of '/root/libepoxy0_1.5.4-1_armhf.deb'
The following packages will be DOWNGRADED:
libepoxy-dev:armhf libepoxy0:armhf
0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.
Failed to install local dependencies!
Hold on...
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Cleaning up...
Almost done...
Done!

itai@UbuntuPi4-ultra-4gb:~$ sudo ~/vdesktop/vdesktop /dev/sdb gui
Current config:
VDESKTOP_BOOT_MODE: gui
VDESKTOP_UMOUNT_ON_EXIT: yes
VDESKTOP_USERNAME: pi
VDESKTOP_PASSWORD: raspberry
VDESKTOP_AUTO_LOGIN: yes
VDESKTOP_MOUNTPOINT: /media/pi/vdesktop
VDESKTOP_ENABLE_ROOTMOUNT: yes
VDESKTOP_ENABLE_VIRGL: yes
VDESKTOP_LOCAL_BINARIES: yes
VDESKTOP_NSPAWN_FLAGS:

Message from Botspot: Comments >/dev/null. Just kidding! Questions or suggestions? https://www.raspberrypi.org/forums/viewtopic.php?&t=251757
Given /dev/sdb, running in external storage device mode.
Partiton 2 exists.
Mounting /dev/sdb2 to /media/pi/vdesktop, and mounting /dev/sdb1 to /media/pi/vdesktop/boot.

Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Virgilrenderer server not found, but it's enabled in the config file.
Compiling virglrenderer in 10 seconds. To cancel, press Ctrl+C before then..........
Compiling virglrenderer now.
--2020-11-28 09:39:49-- http://ftp.br.debian.org/debian/pool/main/libe/libepoxy/libepoxy0_1.5.4-1_armhf.deb
Resolving ftp.br.debian.org (ftp.br.debian.org)... 200.236.31.3, 2801:82:80ff:8000::4
Connecting to ftp.br.debian.org (ftp.br.debian.org)|200.236.31.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 171604 (168K) [application/x-debian-package]
Saving to: ‘libepoxy0_1.5.4-1_armhf.deb’

libepoxy0_1.5.4-1_a 100%[===================>] 167.58K 180KB/s in 0.9s

2020-11-28 09:39:51 (180 KB/s) - ‘libepoxy0_1.5.4-1_armhf.deb’ saved [171604/171604]

--2020-11-28 09:39:51-- http://ftp.br.debian.org/debian/pool/main/libe/libepoxy/libepoxy-dev_1.5.4-1_armhf.deb
Resolving ftp.br.debian.org (ftp.br.debian.org)... 200.236.31.3, 2801:82:80ff:8000::4
Connecting to ftp.br.debian.org (ftp.br.debian.org)|200.236.31.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 127384 (124K) [application/x-debian-package]
Saving to: ‘libepoxy-dev_1.5.4-1_armhf.deb’

libepoxy-dev_1.5.4- 100%[===================>] 124.40K 134KB/s in 0.9s

2020-11-28 09:39:52 (134 KB/s) - ‘libepoxy-dev_1.5.4-1_armhf.deb’ saved [127384/127384]

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libepoxy-dev:armhf' instead of '/root/libepoxy-dev_1.5.4-1_armhf.deb'
Note, selecting 'libepoxy0:armhf' instead of '/root/libepoxy0_1.5.4-1_armhf.deb'
The following packages will be DOWNGRADED:
libepoxy-dev:armhf libepoxy0:armhf
0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.
Failed to install local dependencies!
Hold on...
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Cleaning up...
Almost done...
Done!

@Itai-Nelken
Copy link
Contributor Author

Itai-Nelken commented Nov 28, 2020

I have multiarch set up, so armhf software should run fine

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

@Itai-Nelken Try adding the --allow-downgrades flag to line 487 of the vdesktop script.

Like this:
sudo apt-get install --allow-downgrades --fix-broken -y ~/libepoxy-dev_1.5.4-1_armhf.deb ~/libepoxy0_1.5.4-1_armhf.deb || error "Failed to install local dependencies!"

@Itai-Nelken
Copy link
Contributor Author

still doesn't work:

itai@UbuntuPi4-ultra-4gb:~$ sudo ~/vdesktop/vdesktop /dev/sdb gui
Current config:
VDESKTOP_BOOT_MODE: gui
VDESKTOP_UMOUNT_ON_EXIT: yes
VDESKTOP_USERNAME: pi
VDESKTOP_PASSWORD: raspberry
VDESKTOP_AUTO_LOGIN: yes
VDESKTOP_MOUNTPOINT: /media/pi/vdesktop
VDESKTOP_ENABLE_ROOTMOUNT: yes
VDESKTOP_ENABLE_VIRGL: yes
VDESKTOP_LOCAL_BINARIES: yes
VDESKTOP_NSPAWN_FLAGS:

Message from Botspot: Comments >/dev/null. Just kidding! Questions or suggestions? https://www.raspberrypi.org/forums/viewtopic.php?&t=251757
Given /dev/sdb, running in external storage device mode.
Partiton 2 exists.
Mounting /dev/sdb2 to /media/pi/vdesktop, and mounting /dev/sdb1 to /media/pi/vdesktop/boot.

Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Virgilrenderer server not found, but it's enabled in the config file.
Compiling virglrenderer in 10 seconds. To cancel, press Ctrl+C before then..........
Compiling virglrenderer now.
--2020-11-28 18:04:34-- http://ftp.br.debian.org/debian/pool/main/libe/libepoxy/libepoxy0_1.5.4-1_armhf.deb
Resolving ftp.br.debian.org (ftp.br.debian.org)... 200.236.31.3, 2801:82:80ff:8000::4
Connecting to ftp.br.debian.org (ftp.br.debian.org)|200.236.31.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 171604 (168K) [application/x-debian-package]
Saving to: ‘libepoxy0_1.5.4-1_armhf.deb’

libepoxy0_1.5.4-1_a 100%[===================>] 167.58K 173KB/s in 1.0s

2020-11-28 18:04:36 (173 KB/s) - ‘libepoxy0_1.5.4-1_armhf.deb’ saved [171604/171604]

--2020-11-28 18:04:36-- http://ftp.br.debian.org/debian/pool/main/libe/libepoxy/libepoxy-dev_1.5.4-1_armhf.deb
Resolving ftp.br.debian.org (ftp.br.debian.org)... 200.236.31.3, 2801:82:80ff:8000::4
Connecting to ftp.br.debian.org (ftp.br.debian.org)|200.236.31.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 127384 (124K) [application/x-debian-package]
Saving to: ‘libepoxy-dev_1.5.4-1_armhf.deb’

libepoxy-dev_1.5.4- 100%[===================>] 124.40K 136KB/s in 0.9s

2020-11-28 18:04:37 (136 KB/s) - ‘libepoxy-dev_1.5.4-1_armhf.deb’ saved [127384/127384]

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libepoxy-dev:armhf' instead of '/root/libepoxy-dev_1.5.4-1_armhf.deb'
Note, selecting 'libepoxy0:armhf' instead of '/root/libepoxy0_1.5.4-1_armhf.deb'
The following packages will be DOWNGRADED:
libepoxy-dev:armhf libepoxy0:armhf
0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
Need to get 0 B/299 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /root/libepoxy0_1.5.4-1_armhf.deb libepoxy0 armhf 1.5.4-1 [172 kB]
Get:2 /root/libepoxy-dev_1.5.4-1_armhf.deb libepoxy-dev armhf 1.5.4-1 [127 kB]
(Reading database ... 226297 files and directories currently installed.)
Preparing to unpack .../libepoxy0_1.5.4-1_armhf.deb ...
Unpacking libepoxy0:armhf (1.5.4-1) over (1.5.4-1) ...
dpkg: error processing archive /root/libepoxy0_1.5.4-1_armhf.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libepoxy0/changelog.Debian.gz', which is different from other instances of package libepoxy0:armhf
Preparing to unpack .../libepoxy-dev_1.5.4-1_armhf.deb ...
Unpacking libepoxy-dev:armhf (1.5.4-1) over (1.5.4-1) ...
Errors were encountered while processing:
/root/libepoxy0_1.5.4-1_armhf.deb
N: Download is performed unsandboxed as root as file '/root/libepoxy0_1.5.4-1_armhf.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to install local dependencies!
Hold on...
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Cleaning up...
Almost done...
Done!

itai@UbuntuPi4-ultra-4gb:~$

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

It really shouldn't be saving anything to /root. Try running sudo -E ~/vdesktop/vdesktop ....

@Itai-Nelken
Copy link
Contributor Author

same error I think:

itai@UbuntuPi4-ultra-4gb:~$ sudo -E ~/vdesktop/vdesktop /dev/sdb gui
Current config:
VDESKTOP_BOOT_MODE: gui
VDESKTOP_UMOUNT_ON_EXIT: yes
VDESKTOP_USERNAME: itai
VDESKTOP_PASSWORD: raspberry
VDESKTOP_AUTO_LOGIN: yes
VDESKTOP_MOUNTPOINT: /media/pi/vdesktop
VDESKTOP_ENABLE_ROOTMOUNT: yes
VDESKTOP_ENABLE_VIRGL: yes
VDESKTOP_LOCAL_BINARIES: yes
VDESKTOP_NSPAWN_FLAGS:

Message from Botspot: Comments >/dev/null. Just kidding! Questions or suggestions? https://www.raspberrypi.org/forums/viewtopic.php?&t=251757
Given /dev/sdb, running in external storage device mode.
Partiton 2 exists.
Mounting /dev/sdb2 to /media/pi/vdesktop, and mounting /dev/sdb1 to /media/pi/vdesktop/boot.

Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Virgilrenderer server not found, but it's enabled in the config file.
Compiling virglrenderer in 10 seconds. To cancel, press Ctrl+C before then..........
Compiling virglrenderer now.
--2020-11-28 18:18:27-- http://ftp.br.debian.org/debian/pool/main/libe/libepoxy/libepoxy0_1.5.4-1_armhf.deb
Resolving ftp.br.debian.org (ftp.br.debian.org)... 200.236.31.3, 2801:82:80ff:8000::4
Connecting to ftp.br.debian.org (ftp.br.debian.org)|200.236.31.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 171604 (168K) [application/x-debian-package]
Saving to: ‘libepoxy0_1.5.4-1_armhf.deb.1’

libepoxy0_1.5.4-1_a 100%[===================>] 167.58K 130KB/s in 1.3s

2020-11-28 18:18:29 (130 KB/s) - ‘libepoxy0_1.5.4-1_armhf.deb.1’ saved [171604/171604]

--2020-11-28 18:18:29-- http://ftp.br.debian.org/debian/pool/main/libe/libepoxy/libepoxy-dev_1.5.4-1_armhf.deb
Resolving ftp.br.debian.org (ftp.br.debian.org)... 200.236.31.3, 2801:82:80ff:8000::4
Connecting to ftp.br.debian.org (ftp.br.debian.org)|200.236.31.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 127384 (124K) [application/x-debian-package]
Saving to: ‘libepoxy-dev_1.5.4-1_armhf.deb.1’

libepoxy-dev_1.5.4- 100%[===================>] 124.40K 130KB/s in 1.0s

2020-11-28 18:18:31 (130 KB/s) - ‘libepoxy-dev_1.5.4-1_armhf.deb.1’ saved [127384/127384]

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libepoxy-dev:armhf' instead of '/home/itai/libepoxy-dev_1.5.4-1_armhf.deb'
Note, selecting 'libepoxy0:armhf' instead of '/home/itai/libepoxy0_1.5.4-1_armhf.deb'
The following additional packages will be installed:
libegl1-mesa-dev:armhf
The following NEW packages will be installed:
libegl1-mesa-dev:armhf libepoxy-dev:armhf libepoxy0:armhf
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,508 B/306 kB of archives.
After this operation, 2,671 kB of additional disk space will be used.
Get:1 /home/itai/libepoxy0_1.5.4-1_armhf.deb libepoxy0 armhf 1.5.4-1 [172 kB]
Get:2 /home/itai/libepoxy-dev_1.5.4-1_armhf.deb libepoxy-dev armhf 1.5.4-1 [127 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports groovy/main armhf libegl1-mesa-dev armhf 20.2.1-1 [7,508 B]
Fetched 7,508 B in 2s (3,368 B/s)
Selecting previously unselected package libegl1-mesa-dev:armhf.
(Reading database ... 226272 files and directories currently installed.)
Preparing to unpack .../libegl1-mesa-dev_20.2.1-1_armhf.deb ...
Unpacking libegl1-mesa-dev:armhf (20.2.1-1) ...
Selecting previously unselected package libepoxy0:armhf.
Preparing to unpack .../libepoxy0_1.5.4-1_armhf.deb ...
Unpacking libepoxy0:armhf (1.5.4-1) ...
dpkg: error processing archive /home/itai/libepoxy0_1.5.4-1_armhf.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libepoxy0/changelog.Debian.gz', which is different from other instances of package libepoxy0:armhf
Selecting previously unselected package libepoxy-dev:armhf.
Preparing to unpack .../libepoxy-dev_1.5.4-1_armhf.deb ...
Unpacking libepoxy-dev:armhf (1.5.4-1) ...
Errors were encountered while processing:
/home/itai/libepoxy0_1.5.4-1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to install local dependencies!
Hold on...
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Cleaning up...
Almost done...
Done!

itai@UbuntuPi4-ultra-4gb:~$

@Itai-Nelken
Copy link
Contributor Author

I think the problem is that the .deb's are 32bit, Is there a way to install them from apt?

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

Maybe libepoxy-dev and libepoxy0 are available on the arm64 repositories. Try installing them with apt.

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

I can add a logic switch to skip downloading these packages if those 2 packages are already installed.

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

Or, if you wanted to, you can disable virgl. and use vdesktop without it.

ENABLE_VIRGL=no vdesktop /dev/sdb gui

@Itai-Nelken
Copy link
Contributor Author

Itai-Nelken commented Nov 28, 2020

Or, if you wanted to, you can disable virgl. and use vdesktop without it.

ENABLE_VIRGL=no vdesktop /dev/sdb gui

works, thanks. btw what is virgl?

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

works, thanks. btw what is virgil?

VirGL is a virtual GPU that connects with the guest. It provides OpenGL hardware acceleration to supported applications.

@Itai-Nelken
Copy link
Contributor Author

thanks.

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

@Itai-Nelken I'm still curious: On your system, does this command work okay?

sudo apt install libepoxy-dev libepoxy0

If it does work, I can make changes to vdesktop to make virgl work on 64 bit systems like yours.

@Itai-Nelken
Copy link
Contributor Author

libepoxy0 installs allright, but libepoxy-dev fails with the same error: dpkg: error processing archive /tmp/apt-dpkg-install-lFng30/10-libepoxy-dev_1.5.
4-1_arm64.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libepoxy-dev/changelog.Debian.gz', w
hich is different from other instances of package libepoxy-dev:arm64
Errors were encountered while processing:
/tmp/apt-dpkg-install-lFng30/10-libepoxy-dev_1.5.4-1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

@Itai-Nelken
Copy link
Contributor Author

but I think it's something with my system

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

Maybe try sudo apt-get clean

@Itai-Nelken
Copy link
Contributor Author

still same error when installing libepoxy-dev

@Itai-Nelken
Copy link
Contributor Author

running sudo apt install libepoxy-dev:armhf works

@Itai-Nelken
Copy link
Contributor Author

I removed the lines that download and install libepoxy-dev and libepoxy0, and I got this error:

itai@UbuntuPi4-ultra-4gb:~/vdesktop$ vdesktop /dev/sdb gui
Current config:
VDESKTOP_BOOT_MODE: gui
VDESKTOP_UMOUNT_ON_EXIT: yes
VDESKTOP_USERNAME: itai
VDESKTOP_PASSWORD: raspberry
VDESKTOP_AUTO_LOGIN: yes
VDESKTOP_MOUNTPOINT: /media/pi/vdesktop
VDESKTOP_ENABLE_ROOTMOUNT: yes
VDESKTOP_ENABLE_VIRGL: yes
VDESKTOP_LOCAL_BINARIES: yes
VDESKTOP_NSPAWN_FLAGS:

Message from Botspot: Comments >/dev/null. Just kidding! Questions or suggestions? https://www.raspberrypi.org/forums/viewtopic.php?&t=251757
Given /dev/sdb, running in external storage device mode.
Partiton 2 exists.
Mounting /dev/sdb2 to /media/pi/vdesktop, and mounting /dev/sdb1 to /media/pi/vdesktop/boot.

Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Virgilrenderer server not found, but it's enabled in the config file.
Compiling virglrenderer in 10 seconds. To cancel, press Ctrl+C before then..........
Compiling virglrenderer now.
Reading package lists... Done
Building dependency tree
Reading state information... Done
cmake is already the newest version (3.16.3-3ubuntu2).
The following packages were automatically installed and are no longer required:
libegl-dev libegl1-mesa-dev libgl-dev libgl1-mesa-dev libgles-dev libgles1
libglvnd-dev libglx-dev libopengl-dev libopengl0
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libdrm-etnaviv1 libdrm-freedreno1 libdrm-tegra0 ninja-build
The following NEW packages will be installed:
libdrm-dev libdrm-etnaviv1 libdrm-freedreno1 libdrm-tegra0 libgbm-dev meson
ninja-build
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 689 kB of archives.
After this operation, 3,949 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports groovy/main arm64 libdrm-freedreno1 arm64 2.4.102-1ubuntu1 [18.2 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports groovy/main arm64 libdrm-tegra0 arm64 2.4.102-1ubuntu1 [6,308 B]
Get:3 http://ports.ubuntu.com/ubuntu-ports groovy/main arm64 libdrm-etnaviv1 arm64 2.4.102-1ubuntu1 [11.4 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports groovy/main arm64 libdrm-dev arm64 2.4.102-1ubuntu1 [130 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports groovy/main arm64 libgbm-dev arm64 20.2.1-1 [8,984 B]
Get:6 http://ports.ubuntu.com/ubuntu-ports groovy/universe arm64 ninja-build arm64 1.10.0-2 [102 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports groovy/universe arm64 meson all 0.55.3-1 [413 kB]
Fetched 689 kB in 2s (429 kB/s)
Selecting previously unselected package libdrm-freedreno1:arm64.
(Reading database ... 226315 files and directories currently installed.)
Preparing to unpack .../0-libdrm-freedreno1_2.4.102-1ubuntu1_arm64.deb ...
Unpacking libdrm-freedreno1:arm64 (2.4.102-1ubuntu1) ...
Selecting previously unselected package libdrm-tegra0:arm64.
Preparing to unpack .../1-libdrm-tegra0_2.4.102-1ubuntu1_arm64.deb ...
Unpacking libdrm-tegra0:arm64 (2.4.102-1ubuntu1) ...
Selecting previously unselected package libdrm-etnaviv1:arm64.
Preparing to unpack .../2-libdrm-etnaviv1_2.4.102-1ubuntu1_arm64.deb ...
Unpacking libdrm-etnaviv1:arm64 (2.4.102-1ubuntu1) ...
Selecting previously unselected package libdrm-dev:arm64.
Preparing to unpack .../3-libdrm-dev_2.4.102-1ubuntu1_arm64.deb ...
Unpacking libdrm-dev:arm64 (2.4.102-1ubuntu1) ...
Selecting previously unselected package libgbm-dev:arm64.
Preparing to unpack .../4-libgbm-dev_20.2.1-1_arm64.deb ...
Unpacking libgbm-dev:arm64 (20.2.1-1) ...
Selecting previously unselected package ninja-build.
Preparing to unpack .../5-ninja-build_1.10.0-2_arm64.deb ...
Unpacking ninja-build (1.10.0-2) ...
Selecting previously unselected package meson.
Preparing to unpack .../6-meson_0.55.3-1_all.deb ...
Unpacking meson (0.55.3-1) ...
Setting up libdrm-etnaviv1:arm64 (2.4.102-1ubuntu1) ...
Setting up libgbm-dev:arm64 (20.2.1-1) ...
Setting up ninja-build (1.10.0-2) ...
Setting up libdrm-freedreno1:arm64 (2.4.102-1ubuntu1) ...
Setting up libdrm-tegra0:arm64 (2.4.102-1ubuntu1) ...
Setting up libdrm-dev:arm64 (2.4.102-1ubuntu1) ...
Setting up meson (0.55.3-1) ...
Processing triggers for libc-bin (2.32-0ubuntu3) ...
Processing triggers for man-db (2.9.3-2) ...
Cloning into 'virglrenderer'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 9627 (delta 0), reused 0 (delta 0), pack-reused 9623
Receiving objects: 100% (9627/9627), 4.75 MiB | 499.00 KiB/s, done.
Resolving deltas: 100% (7358/7358), done.
The Meson build system
Version: 0.55.3
Source dir: /home/itai/virglrenderer
Build dir: /home/itai/virglrenderer/build
Build type: native build
Project name: virglrenderer
Project version: 0.8.2
C compiler for the host machine: cc (gcc 10.2.0 "cc (Ubuntu 10.2.0-13ubuntu1) 10.2.0")
C linker for the host machine: cc ld.bfd 2.35.1
Host machine cpu family: aarch64
Host machine cpu: aarch64
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Werror=int-to-pointer-cast: YES
Compiler for C supports arguments -Wno-overlength-strings -Woverlength-strings: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Program python3 found: YES (/usr/bin/python3)
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency libdrm found: YES 2.4.102
Run-time dependency threads found: YES
Found CMake: /usr/bin/cmake (3.16.3)
Run-time dependency epoxy found: NO (tried pkgconfig and cmake)

meson.build:79:0: ERROR: Dependency "epoxy" not found, tried pkgconfig and cmake

A full log can be found at /home/itai/virglrenderer/build/meson-logs/meson-log.txt
Failed to build!
Hold on...
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Cleaning up...
Almost done...
Done!

itai@UbuntuPi4-ultra-4gb:~/vdesktop$

@Itai-Nelken
Copy link
Contributor Author

Itai-Nelken commented Nov 28, 2020

I tried compiling virgilrender using the commands from the vdesktop script and I got this error:

Run-time dependency epoxy found: NO (tried pkgconfig and cmake)

meson.build:79:0: ERROR: Dependency "epoxy" not found, tried pkgconfig and cmake

A full log can be found at /home/itai/virglrenderer/build/meson-logs/meson-log.txt

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

Maybe try apt search epoxy --names-only

@Itai-Nelken
Copy link
Contributor Author

itai@UbuntuPi4-ultra-4gb:~$ apt search epoxy --names-only
Sorting... Done
Full Text Search... Done
libepoxy-dev/groovy 1.5.4-1 arm64
OpenGL function pointer management library- development

libepoxy0/groovy,now 1.5.4-1 arm64 [installed]
OpenGL function pointer management library

itai@UbuntuPi4-ultra-4gb:~$

@Itai-Nelken
Copy link
Contributor Author

Itai-Nelken commented Nov 28, 2020

works! here are the steps I did:

  1. sudo apt purge libepoxy0:armhf and sudo apt purge libepoxy-dev:armhf *optional
  2. sudo apt install libepoxy0 and sudo apt install libepoxy-dev
  3. sudo apt install -y meson libdrm-dev cmake libgbm-dev
  4. git clone https://gitlab.freedesktop.org/virgl/virglrenderer.git
  5. cd virglrenderer
  6. meson --prefix=/usr/local -Dbuildtype=release build
  7. cd build
  8. ninja install
  9. cd ~ && sudo -E ldconfig

@Itai-Nelken
Copy link
Contributor Author

but now vdesktop doesn't work..

itai@UbuntuPi4-ultra-4gb:~/vdesktop$ vdesktop /dev/sdb gui
Current config:
VDESKTOP_BOOT_MODE: gui
VDESKTOP_UMOUNT_ON_EXIT: yes
VDESKTOP_USERNAME: itai
VDESKTOP_PASSWORD: raspberry
VDESKTOP_AUTO_LOGIN: yes
VDESKTOP_MOUNTPOINT: /media/pi/vdesktop
VDESKTOP_ENABLE_ROOTMOUNT: yes
VDESKTOP_ENABLE_VIRGL: yes
VDESKTOP_LOCAL_BINARIES: yes
VDESKTOP_NSPAWN_FLAGS:

Message from Botspot: Comments >/dev/null. Just kidding! Questions or suggestions? https://www.raspberrypi.org/forums/viewtopic.php?&t=251757
Given /dev/sdb, running in external storage device mode.
Partiton 2 exists.
Mounting /dev/sdb2 to /media/pi/vdesktop, and mounting /dev/sdb1 to /media/pi/vdesktop/boot.

Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Launching virgl test server...
The virgl pid is 57258
Booting in 5 seconds
1▏▎▍▌▋▊▉██▉▊▋▌▍▎▏sudo: unknown user: pi
sudo: error initializing audit plugin sudoers_audit

spawn /home/itai/vdesktop/nspawn /home/itai/vdesktop/systemd-nspawn-64 /media/pi/vdesktop --bind=/tmp/.virgl_test
Spawning container vdesktop on /media/pi/vdesktop.
Press ^] three times within 1s to kill container.
Failed to stat /tmp/.virgl_test: No such file or directory
send: spawn id exp4 not open
while executing
"send -- itai\r"

Hold on...
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Cleaning up...
Almost done...
Done!

itai@UbuntuPi4-ultra-4gb:~/vdesktop$

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

Oh I know what happened.

I need to change any instances of sudo -u pi to sudo -u $USER.

@Itai-Nelken
Copy link
Contributor Author

Itai-Nelken commented Nov 28, 2020

I did that, but it still doesn't work, same error

but now vdesktop doesn't work..

itai@UbuntuPi4-ultra-4gb:~/vdesktop$ vdesktop /dev/sdb gui
Current config:
VDESKTOP_BOOT_MODE: gui
VDESKTOP_UMOUNT_ON_EXIT: yes
VDESKTOP_USERNAME: itai
VDESKTOP_PASSWORD: raspberry
VDESKTOP_AUTO_LOGIN: yes
VDESKTOP_MOUNTPOINT: /media/pi/vdesktop
VDESKTOP_ENABLE_ROOTMOUNT: yes
VDESKTOP_ENABLE_VIRGL: yes
VDESKTOP_LOCAL_BINARIES: yes
VDESKTOP_NSPAWN_FLAGS:

Message from Botspot: Comments >/dev/null. Just kidding! Questions or suggestions? https://www.raspberrypi.org/forums/viewtopic.php?&t=251757
Given /dev/sdb, running in external storage device mode.
Partiton 2 exists.
Mounting /dev/sdb2 to /media/pi/vdesktop, and mounting /dev/sdb1 to /media/pi/vdesktop/boot.

Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Launching virgl test server...
The virgl pid is 57258
Booting in 5 seconds
1▏▎▍▌▋▊▉██▉▊▋▌▍▎▏sudo: unknown user: pi
sudo: error initializing audit plugin sudoers_audit

spawn /home/itai/vdesktop/nspawn /home/itai/vdesktop/systemd-nspawn-64 /media/pi/vdesktop --bind=/tmp/.virgl_test
Spawning container vdesktop on /media/pi/vdesktop.
Press ^] three times within 1s to kill container.
Failed to stat /tmp/.virgl_test: No such file or directory
send: spawn id exp4 not open
while executing
"send -- itai\r"

Hold on...
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Cleaning up...
Almost done...
Done!

itai@UbuntuPi4-ultra-4gb:~/vdesktop$

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

Right there. sudo: unknown user: pi

@Itai-Nelken
Copy link
Contributor Author

how do I fix it?

@Itai-Nelken
Copy link
Contributor Author

Itai-Nelken commented Nov 28, 2020

Oh I know what happened.

I need to change any instances of sudo -u pi to sudo -u $USER.

I did that with the 'find and replace' function of the text editor

@Itai-Nelken
Copy link
Contributor Author

fixed it with sudo -E ldconfig

might be a good idea to add it to the vdesktop script instead of ldconfig as long as it works on rpiOS

@Itai-Nelken
Copy link
Contributor Author

now the panels in the OS running inside vdesktop (TwisterOS 1.9.1) are malfunctioning with items failing and being removed

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

Could you send a screenshot?

@Botspot
Copy link
Owner

Botspot commented Nov 28, 2020

Sometimes the pulseaudio plugin fails to load the first time IIRC.

@Itai-Nelken
Copy link
Contributor Author

Itai-Nelken commented Nov 28, 2020

Sometimes the pulseaudio plugin fails to load the first time IIRC.

I rebooted 3 times.

Could you send a screenshot?

tomorrow.

@Itai-Nelken
Copy link
Contributor Author

Itai-Nelken commented Nov 29, 2020

vdesktop-twisterOS-xfce-panel-applet-problem

itai@UbuntuPi4-ultra-4gb:~/vdesktop$ vdesktop /dev/sdb gui
[sudo] password for itai: 
Current config:
VDESKTOP_BOOT_MODE: gui
VDESKTOP_UMOUNT_ON_EXIT: yes
VDESKTOP_USERNAME: itai
VDESKTOP_PASSWORD: raspberry
VDESKTOP_AUTO_LOGIN: yes
VDESKTOP_MOUNTPOINT: /media/pi/vdesktop
VDESKTOP_ENABLE_ROOTMOUNT: yes
VDESKTOP_ENABLE_VIRGL: yes
VDESKTOP_LOCAL_BINARIES: yes
VDESKTOP_NSPAWN_FLAGS: 

Message from Botspot: Comments >/dev/null. Just kidding! Questions or suggestions? https://www.raspberrypi.org/forums/viewtopic.php?&t=251757
Given /dev/sdb, running in external storage device mode.
Partiton 2 exists.
Mounting /dev/sdb2 to /media/pi/vdesktop, and mounting /dev/sdb1 to /media/pi/vdesktop/boot.

Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Launching virgl test server...
The virgl pid is 11093
Booting in 5 seconds
                  
spawn /home/itai/vdesktop/nspawn /home/itai/vdesktop/systemd-nspawn-64 /media/pi/vdesktop  --bind=/tmp/.virgl_test
Spawning container vdesktop on /media/pi/vdesktop.
Press ^] three times within 1s to kill container.
systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
Detected virtualization systemd-nspawn.
Detected architecture arm64.

Welcome to Raspbian GNU/Linux 10 (buster)!

Set hostname to <twisterpi4>.
/lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid → /run/samba/smbd.pid; please update the unit file accordingly.
/lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid → /run/samba/nmbd.pid; please update the unit file accordingly.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Reached target User and Group Name Lookups.
[  OK  ] Reached target Swap.
[UNSUPP] Starting of /dev/serial1 not supported.
[DEPEND] Dependency failed for Conf…ooth Modems connected by UART.
hciuart.service: Job hciuart.service/start failed with result 'dependency'.
[  OK  ] Listening on Journal Socket.
         Starting Remount Root and Kernel File Systems...
         Starting Set the console keyboard layout...
         Starting Restore / save the current clock...
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
systemd-journald.service: Attaching egress BPF program to cgroup /sys/fs/cgroup/unified/system.slice/systemd-journald.service failed: Invalid argument
         Starting Journal Service...
         Mounting FUSE Control File System...
         Mounting RPC Pipe File System...
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started Helper to synchronize boot up for ifupdown.
[  OK  ] Started Journal Service.
[  OK  ] Mounted RPC Pipe File System.
[  OK  ] Started Restore / save the current clock.
[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
         Starting Flush Journal to Persistent Storage...
         Starting Create System Users...
[  OK  ] Started Set the console keyboard layout.
[  OK  ] Started Create System Users.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Preprocess NFS configuration...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Load AppArmor profiles...
         Starting Enable support fo…l executable binary formats...
         Starting Set console font and keymap...
[  OK  ] Started Preprocess NFS configuration.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Load AppArmor profiles.
         Starting Raise network interfaces...
         Starting Create Volatile Files and Directories...
[  OK  ] Reached target NFS client services.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
[  OK  ] Started Set console font and keymap.
[  OK  ] Started Enable support for…nal executable binary formats.
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Reached target System Time Synchronized.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Reached target Paths.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on triggerhappy.socket.
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Listening on CUPS Scheduler.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Disk Manager...
         Starting Check for v3d driver...
         Starting Modem Manager...
         Starting rng-tools.service...
         Starting LSB: Switch to on…nless shift key is pressed)...
[  OK  ] Started OSS Proxy Daemon.
         Starting Initialize hardware monitoring sensors...
         Starting System Logging Service...
         Starting dphys-swapfile - …unt, and delete a swap file...
[  OK  ] Started D-Bus System Message Bus.
         Starting WPA supplicant...
         Starting Check for Raspberry Pi EEPROM updates...
         Starting Restore /etc/reso… the ppp link was shut down...
         Starting Login Service...
         Starting Accounts Service...
         Starting triggerhappy global hotkey daemon...
[  OK  ] Started Regular background program processing daemon.
         Starting Network Manager...
[  OK  ] Started CUPS Scheduler.
[  OK  ] Started Raise network interfaces.
[  OK  ] Started Check for v3d driver.
[FAILED] Failed to start rng-tools.service.
See 'systemctl status rng-tools.service' for details.
[  OK  ] Started Restore /etc/resol…re the ppp link was shut down.
[  OK  ] Started triggerhappy global hotkey daemon.
[  OK  ] Started Initialize hardware monitoring sensors.
         Starting Daily man-db regeneration...
         Starting Rotate log files...
[  OK  ] Started Login Service.
[  OK  ] Started System Logging Service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started dphys-swapfile - s…mount, and delete a swap file.
[  OK  ] Started WPA supplicant.
[  OK  ] Started LSB: Switch to ond…(unless shift key is pressed).
         Starting Authorization Manager...
[  OK  ] Started Make remote CUPS printers available locally.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
         Starting Network Manager Wait Online...
[  OK  ] Started Check for Raspberry Pi EEPROM updates.
         Starting Hostname Service...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Authorization Manager.
         Starting Light Display Manager...
[  OK  ] Started Accounts Service.
[  OK  ] Started Modem Manager.
         Stopping CUPS Scheduler...
[  OK  ] Stopped CUPS Scheduler.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Started Hostname Service.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Light Display Manager.
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Disk Manager.
[  OK  ] Stopped Light Display Manager.
         Starting Light Display Manager...
[  OK  ] Started Light Display Manager.
[  OK  ] Started Rotate log files.
[  OK  ] Started Network Manager Wait Online.
[  OK  ] Reached target Network is Online.
         Starting /etc/rc.local Compatibility...
         Starting Samba NMB Daemon...
My IP address is 192.168.1.22 
         Starting LSB: disk temperature monitoring daemon...
         Starting Daily apt upgrade and clean activities...
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Stopped Light Display Manager.
         Starting Light Display Manager...
         Starting Hold until boot process finishes up...
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started Console Getty.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started LSB: disk temperature monitoring daemon.
[  OK  ] Started Light Display Manager.
[  OK  ] Stopped Light Display Manager.
         Starting Light Display Manager...
[  OK  ] Started Light Display Manager.
[  OK  ] Started Samba NMB Daemon.
         Starting Samba SMB Daemon...
[  OK  ] Stopped Light Display Manager.
         Starting Light Display Manager...
[  OK  ] Started Light Display Manager.
[  OK  ] Stopped Light Display Manager.
[FAILED] Failed to start Light Display Manager.
See 'systemctl status lightdm.service' for details.
         Starting Terminate Plymouth Boot Screen...
[  OK  ] Started Terminate Plymouth Boot Screen.
[  OK  ] Started Samba SMB Daemon.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.
[  OK  ] Started Daily man-db regeneration.

Raspbian GNU/Linux 10 twisterpi4 console

twisterpi4 login: itai
Password: 

Login incorrect
twisterpi4 login: pi
Password: 
Last login: Sat Nov 28 20:19:54 IST 2020 on tty1
Linux twisterpi4 5.8.0-1007-raspi #10-Ubuntu SMP PREEMPT Thu Nov 5 17:52:40 UTC 2020 aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Guest X server started. Running...
                                  [1]   Done                    eval "for n in {1..5}; do
      #if startxfce4 fails the first time, try again up to 5 times
      (/usr/bin/startxfce4 &>/dev/null 2>&1) &>/dev/null &
      sleep 2
    done" &> /dev/null
pi@twisterpi4:~ $ sudo shutdown now
         Stopping Manage, Install and Generate Color Profiles...
[  OK  ] Stopped target Timers.
         Unmounting RPC Pipe File System...
[  OK  ] Stopped Daily rotation of log files.
         Stopping Authorization Manager...
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Stopped target Graphical Interface.
[  OK  ] Stopped target Multi-User System.
         Stopping triggerhappy global hotkey daemon...
         Stopping Modem Manager...
         Stopping Make remote CUPS printers available locally...
         Stopping Samba SMB Daemon...
         Stopping Regular background program processing daemon...
[  OK  ] Stopped Initialize hardware monitoring sensors.
[  OK  ] Stopped Check for Raspberry Pi EEPROM updates.
         Stopping LSB: Switch to on…nless shift key is pressed)...
[  OK  ] Stopped Check for v3d driver.
         Stopping Daemon for power management...
         Stopping dphys-swapfile - …unt, and delete a swap file...
         Stopping System Logging Service...
[  OK  ] Stopped Daily man-db regeneration.
         Stopping LSB: disk temperature monitoring daemon...
         Stopping Disk Manager...
[  OK  ] Stopped target Login Prompts.
         Stopping Console Getty...
         Stopping Accounts Service...
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped Daily apt download activities.
[  OK  ] Stopped target System Time Synchronized.
         Stopping Session 4 of user pi.
[  OK  ] Stopped Disk Manager.
[  OK  ] Stopped Modem Manager.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Accounts Service.
[  OK  ] Stopped triggerhappy global hotkey daemon.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped Authorization Manager.
[  OK  ] Stopped Console Getty.
[  OK  ] Stopped Samba SMB Daemon.
[  OK  ] Stopped Manage, Install and Generate Color Profiles.
[  OK  ] Stopped Daemon for power management.
[  OK  ] Unmounted RPC Pipe File System.
[  OK  ] Stopped dphys-swapfile - s…mount, and delete a swap file.
[  OK  ] Stopped Session 4 of user pi.
[  OK  ] Stopped Make remote CUPS printers available locally.
[  OK  ] Stopped LSB: Switch to ond…(unless shift key is pressed).
[  OK  ] Stopped LSB: disk temperature monitoring daemon.
         Stopping Avahi mDNS/DNS-SD Stack...
         Stopping CUPS Scheduler...
         Stopping User Manager for UID 1000...
         Stopping Login Service...
         Stopping Samba NMB Daemon...
[  OK  ] Stopped /etc/rc.local Compatibility.
[  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
[  OK  ] Stopped Login Service.
[  OK  ] Stopped CUPS Scheduler.
[  OK  ] Stopped Samba NMB Daemon.
[  OK  ] Stopped target Network is Online.
[  OK  ] Stopped Network Manager Wait Online.
[  OK  ] Stopped User Manager for UID 1000.
         Stopping User Runtime Directory /run/user/1000...
[  OK  ] Unmounted /run/user/1000.
[  OK  ] Stopped User Runtime Directory /run/user/1000.
[  OK  ] Removed slice User Slice of UID 1000.
         Stopping Permit User Sessions...
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Network.
         Stopping Network Manager...
         Stopping Raise network interfaces...
         Stopping WPA supplicant...
[  OK  ] Stopped target User and Group Name Lookups.
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target Remote File Systems (Pre).
[  OK  ] Stopped target NFS client services.
[  OK  ] Stopped Network Manager.
[  OK  ] Stopped Raise network interfaces.
[  OK  ] Stopped WPA supplicant.
         Stopping D-Bus System Message Bus...
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed CUPS Scheduler.
[  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Closed triggerhappy.socket.
[  OK  ] Closed Syslog Socket.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped CUPS Scheduler.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Stopped target System Initialization.
         Stopping Update UTMP about System Boot/Shutdown...
         Stopping Restore / save the current clock...
[  OK  ] Stopped target Local Encrypted Volumes.
[  OK  ] Stopped Forward Password R…uests to Wall Directory Watch.
[  OK  ] Stopped Dispatch Password …ts to Console Directory Watch.
[  OK  ] Stopped Restore / save the current clock.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped target Local File Systems.
         Unmounting /boot...
         Unmounting /etc/profile...
         Unmounting /etc/chromium-b…/customizations/disable-gpu...
         Unmounting /etc/chromium-browser/customizations/noxshm...
         Unmounting /run/host/incoming...
         Unmounting /tmp/.virgl_test...
         Unmounting /run/host/os-release...
[  OK  ] Unmounted /boot.
[  OK  ] Unmounted /etc/profile.
[  OK  ] Unmounted /etc/chromium-br…er/customizations/disable-gpu.
[  OK  ] Unmounted /etc/chromium-browser/customizations/noxshm.
[  OK  ] Unmounted /run/host/incoming.
[  OK  ] Unmounted /tmp/.virgl_test.
[  OK  ] Unmounted /run/host/os-release.
         Unmounting /tmp...
         Unmounting /run/host...
[  OK  ] Unmounted /tmp.
[  OK  ] Unmounted /run/host.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped target Local File Systems (Pre).
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Stopped Create System Users.
[  OK  ] Stopped target Swap.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
[  OK  ] Started Power-Off.
[  OK  ] Reached target Power-Off.
Container vdesktop has been shut down.
expect: spawn id exp4 not open
    while executing
"expect eof"

Hold on...
xsel: Can't open display: :1
: Connection reset by peer
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Unmounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Cleaning up...
Almost done...
Done!

itai@UbuntuPi4-ultra-4gb:~/vdesktop$ 

@Itai-Nelken
Copy link
Contributor Author

Itai-Nelken commented Nov 29, 2020

I'm writing how I installed all the apps I use on Ubuntu that aren't available in the repositories here if you would like to take a look.
(first app is pi-apps, and I added the way I installed vdesktop there)

@Itai-Nelken
Copy link
Contributor Author

could you change all sudo -u pi to sudo -u $USER please?

@Botspot
Copy link
Owner

Botspot commented Dec 5, 2020

could you change all sudo -u pi to sudo -u $USER please?

Ah yes, thank you for reminding me.

@Itai-Nelken
Copy link
Contributor Author

I think desktop generally doesn't work that well on Ubuntu, a few days ago I tried to boot a fresh install of rpiOS, and the rpiOS sort of became a "live wallpaper", the Gnome shell became white and crashed after a while. the system was really unstable until I rebooted.
I also had the problem with the XFCE panel applets in TwisterOS.
so maybe add a note about Ubuntu to the readme until enough issues are resolved to make it work ok at least on Ubuntu? maybe something like this:

NOTE:
currently vdesktop doesn't work well in GUI mode on Ubuntu.

and maybe add a link to the part where I wrote how to install desktop on Ubuntu in my Ubuntu-on-rpi-fixes.

CLI mode works perfectly well, you don't even have to do anything. just use desktop the regular way. it's the GUI mode that doesn't work well (on Ubuntu).

@Botspot
Copy link
Owner

Botspot commented Dec 6, 2020

@Itai-Nelken I could add a statement to vdesktop's page, or I could fix vdesktop on Ubuntu.

Now, I've not used Ubuntu much. An I've heard that there are several flavors. Which one are you using?

@Itai-Nelken
Copy link
Contributor Author

I'm using stock Ubuntu 20.10 https://ubuntu.com/download/raspberry-pi

I meant to put the statement until it's fixed, just so people know. it could be maybe something like "vdesktop has some bugs on Ubuntu when using GUI mode, a fix is being worked on"

@Itai-Nelken
Copy link
Contributor Author

Itai-Nelken commented Dec 6, 2020

if you flash Ubuntu, could you try my scripts here please? https://github.com/Itai-Nelken/Ubuntu-on-rpi-fixes

I need someone with a fresh Ubuntu install on the pi to test it, to download and run:
1)git clone https://github.com/Itai-Nelken/Ubuntu-on-rpi-fixes.git
2)cd Ubuntu-on-rpi-fixes/scripts
3)sudo chmod +x main.sh
4)./main.sh

@Botspot
Copy link
Owner

Botspot commented Dec 6, 2020

Which Ubuntu release would you prefer I try?

  • Ubuntu Server 20.04.1 LTS
  • Ubuntu Desktop 20.10
  • Ubuntu Server 20.10

@Botspot
Copy link
Owner

Botspot commented Dec 7, 2020

There, I added the instability warning to the readme. 5e70caa

@Itai-Nelken
Copy link
Contributor Author

Which Ubuntu release would you prefer I try?

  • Ubuntu Server 20.04.1 LTS
  • Ubuntu Desktop 20.10
  • Ubuntu Server 20.10

for what? use Ubuntu Desktop 20.10 in my opinion (it's the only version with an actual desktop), but you can also use Ubuntu server and use Desktopify to add a Desktop.
personally I would recommend Ubuntu 20.10 Desktop.

just keep in mind it uses about 1.8gb idle, so at least 4gb pi4 if you want to actually use it and test stuff on it.

I also have a bug that makes it use 100% cpu when starting up, so what I did is install bleachbit (sudo apt install bleachbit) and select almost everything, and clean, than open bleachbit as root and do the same, it seems to fix the issue.
you can also try to kill evolution-calendar-factory-notify or something like that, it consumes a lot of resources. if you plan to use Ubuntu Software (snap-store) don't, use Gnome software instead using the instructions here.

Use the fixes here: https://github.com/Itai-Nelken/Ubuntu-on-rpi-fixes

I think that after installing zoom (that install pulse audio armhf) sound became choppy, I have a fix there.

Hope this helps.

@Botspot
Copy link
Owner

Botspot commented Dec 7, 2020

The 100% CPU may be caused by the compositor. Just a thought.

@Itai-Nelken
Copy link
Contributor Author

maybe, anyway it settles after some time. I actually think it's because it is running startup tasks because it settles down later, but one CPU core stays at 100% all the time. so maybe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants