How to properly reset the VBoxClient clipboard (copy-paste from guest to host) on Devuan Linux and probably Debian too

There is an elusive bug in the VirtualBox client software, which on rare occasions causes the clipboard to stop working. I've seen the issue with both Windows and Linux guests, and I've developed workarounds by writing tiny scripts that reset the client software. However, my standard Devuan client has not been easy to do this with. Over years of experimenting and often just manually restarting the client, I've finally found out what makes this work reliably:

  • On Devuan, and possibly other Debian derivatives, when the client gets restarted, it creates 2 processes instead of one. You have to delete the 2nd process (but not the 1st) and then everything works as expected.
  • Also there needs to be a pause while the original failed client is being killed, otherwise the new client doesn't always work.

So here is a lil script I wrote to solve the problem. I call it "byeclipboard.sh" and I put the following lines in a bash script, made it executable. When the issue occurs, it's only a couple seconds to run the script and have my copy-paste clipboard working again:

echo 'ending VBoxClient process...'
pkill -9 VBoxClient
echo 
echo 'sleeping...'
sleep 1
echo 
echo 'starting new VBoxClient...'
VBoxClient --clipboard
echo 
echo 'show process says this:'
ps -aux|grep VBoxClient
echo 
echo 'ending duplicate...'
kill $(ps -aux|grep VBoxClient|grep ' S '| awk '{print $2}')
echo 
echo 'show process now says this:'
ps aux | grep -v grep | grep 'VBoxClient --clipboard'
echo 
echo 'all done.'

And for those who are curious, here's what it looks like when it runs:

./byeclipboard.sh 
ending VBoxClient process...

sleeping...

starting new VBoxClient...
12:44:27.701746 main     VBoxClient 7.2.2 r170484 (verbosity: 0) linux.amd64 (Sep 10 2025 18:43:28) release log
12:44:27.701747 main     Log opened 2025-12-04T12:44:27.701741000Z
12:44:27.701763 main     OS Product: Linux
12:44:27.701765 main     OS Release: 5.10.0-35-amd64
12:44:27.701766 main     OS Version: #1 SMP Debian 5.10.237-1 (2025-05-19)
12:44:27.701769 main     Executable: /opt/VBoxGuestAdditions-7.2.2/bin/VBoxClient
12:44:27.701769 main     Process ID: 7434
12:44:27.701769 main     Package type: LINUX_64BITS_GENERIC
12:44:27.701773 main      VBoxClient 7.2.2 r170484 started. Verbose level = 0
12:44:27.702449 main      Session type is: VBGHDISPLAYSERVERTYPE_X11
12:44:27.702459 main      Service: Shared Clipboard
12:44:27.702488 main      Daemonizing service ...

show process says this:
clearhat     7437  0.0  0.0  18736   360 ?        S    06:44   0:00 VBoxClient --clipboard
clearhat     7439  0.0  0.0   6240   648 pts/0    S+   06:44   0:00 grep VBoxClient
clearhat     7440  0.0  0.0 217516  4168 ?        Sl   06:44   0:00 VBoxClient --clipboard

ending duplicate...

show process now says this:
clearhat     7440  0.0  0.0 217548  4216 ?        Sl   06:44   0:00 VBoxClient --clipboard

all done.

Have fun!

 

 

Get filename and path after a file is uploaded using Laravel Filament afterStateUpdated

It should not be so difficult to find something so trivial. So in hopes of helping someone else find the answer more quickly than the several days it took me, here is a conversation I had recently in a Discord chat for Laravel Filament. Scroll to the very end for the TL;DR one-liner answer.  […]

Continue reading

How to become a saviour of the world

In a dream from which I awakened as my alarm went off at 5 this morning, I was on a comfortable tour bus with friends. The bus stopped and I saw that there was a large crowd of people gathered around, like a state fair or something. I was contemplating whether to stay on the bus or get out for  […]

Continue reading

How to run a VirtualBox Linux nested inside a VirtualBox Windows running on Linux so you can ShareX a Linux desktop

Yes, you could use Wine, but for diehards, here's this. I used Linux Mint and Windows Ameliorated, but the same basic steps should work for other flavors. You're going to want a good amount of RAM, disk space, and a fast CPU. I used 12Gb RAM for the outer VirtualBox and 8Gb RAM for the innermost,  […]

Continue reading

How to fix security issue in Dradis where Ruby Rails Mini Profiler "Rack Environment" is enabled and visible when using pp=env

I'm not familiar with Ruby, Rails, Puma, or anything else in the Ruby environment, although I'm well familiar with other programming environments which are similar. Still, it took me longer to install Dradis than it should have, and I finally gave up on the Docker version entirely. I had to cobble  […]

Continue reading

'The reward of wisdom comes in silence,' saith the fool, and then he spoke no more

To listen the gift of listening, one must first listen What a way to begin the year. This morning I awakened in the dark before the alarm went off, which is always a good way to start a day. Quiet thoughts ambled through my mind for a while. At the conclusion of a chain of thoughts which have now  […]

Continue reading

Eramba System Health Check fails immediately after installation due to cron error but really it's an .env file issue

System Health Warning: This installation of eramba has a few issues in order to work properly. Check on the settings page under health monitor what could be the issues or click here

The .env file for an eramba installation cannot have #comments. If you have comments, it will silently fail, and you'll see this error message: "System Health Warning: This installation of eramba has a few issues in order to work properly. Check on the settings page under health monitor what  […]

Continue reading

How to open files in vscodium using link in a browser to vscode: add a registry key

To open up a file within a browser having a vscode://file/ URL like this: vscode://file/C:\xampp\htdocs\mycoolapp\app\Models\Membership.php So it looks like this:   Then save the following as a registry file named vscode.reg: Windows Registry Editor Version 5.00  […]

Continue reading

How to fix the multiple monitor resize after lock screen issue in Ubuntu Linux (and Mint, PopOS, etc) with GNOME

TL;DR Quick Fix is at the END for people who want to get to the deets w/o prolegomenon. I put as many keywords as I could into the headline so this post is easy for others to find. Although I'm not a gamer, I have a super duper Lenovo Legion gamer laptop with all kinds of nVidia power for my daily  […]

Continue reading

Euclid's clever solution to the problems of the void and the infinitesimal

Euclid's Definition 1 Now it's time to unravel something even more fundamental than the 5th postulate: the 1st definition. We normally think of a geometrical point as being smaller than anything, because of where Euclid placed it in the hierarchy of geometry. Building up from simple to more complex,  […]

Continue reading

A way of understanding true trinary logic which includes the continuum and reveals the importance of the word AND

Introducing true trinary Trinary logic is introduced at Wikipedia like this: In logic, a three-valued logic (also trinary logic, trivalent, ternary, or trilean, sometimes abbreviated 3VL) is any of several many-valued logic systems in which there are three truth values indicating true, false, and  […]

Continue reading

An intriguing argument that one plus one is equal to three

No, one times one does not equal two. But here is an intriguing argument that one plus one is equal to three. It sounds absurd, so let's start small and carefully establish the logical elements which comprise this argument. Each element will be seen to be logically sound in themselves. Then we'll  […]

Continue reading

Thinking about a rare opposite of Schadenfreude which is neither Freudefreude nor Mudita but Schadenmitgefühl

Schadenfreude: it's not just for humans

The wild headline is intentional because the audience for this article will most likely arrive here by search engines, as people are trying to find "the opposite of schadenfreude," but not the obvious opposite. Of these visitors only a few will appreciate this little word adventure here,  […]

Continue reading

Allow the Deep to Speak

This article is going to be stored in a database with a record ID of 281, which is a prime number, as soon as I click "Save." At the moment that I write these introductory words, it exists in an aether of nowhere. Neither here nor there. It has no record ID. It is thus a virtual weblog  […]

Continue reading

What to do when Roundcube says: Decryption failed: Key password required, and: Could not decrypt this message

Roundcube error: Decryption failed: Key password required.

Roundcube is great. Easy to get up and running, but it surprises me that I couldn't find the following solution online, so I'm making a post here. When you receive an email (say, from a public key generator) that is encrypted by your own PRIVATE key and you haven't fully configured encryption, it  […]

Continue reading

Page top