*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Already upgraded here. It all went fine, as (almost) always. This time, no additional steps were required (not even deleting any old configuration files).
Code:
# sysupgrade
(reboot did sysmerge without any problem)
# pkg_add -u
You should still view the post-installation log (you'll get it in your mailbox) and/or watch the reboot. Just in case something (fw_update? sysmerge?) went wrong.
I did a new install on my desktop system where OpenBSD boots on the second HDD (SDD first drive used as a grub4dos boot of Linux). Took all of a 5 minutes or so to install, setup user ...etc. Then
pkg_add chromium x11vnc
.. another few minutes
Configured it for user to use cwm
echo cwm >/home/user/.xsession
Logged in as user and
Xephyr :1 -dpi 141 -screen 1366x768 &
DISPLAY=:1 cwm &
DISPLAY=:1 x11vnc -forever &
and from my laptop connect to that
vncviewer 192.168.1.1 # servers IP address
and use F8 menu option to switch to toggle to fullscreen (I have tigervnc installed on that), so that the keys work as intended i.e. ctrl-? (ctrl shift /) and enter/run chrome
The above dpi value of 141 just best fits with my preferred size, as is the 1366x768 my laptops screen size (desktop/server runs at 1920x1080).
So my laptop, running Linux (Fatdog) can vnc into the desktop OpenBSD and browse/whatever as just another 'window'. My desktop is hard wired (ethernet) whilst my laptop is wifi, so I can lounge around with the laptop as a form of remote control (of the OpenBSD box). You can also forward sound using sndiod, but I have a long extension lead from the desktop headphone output that easily stretches to the couch Playing youtube videos are OK, not great, good enough.
If chrome menu fonts are too large/small I find that using the ...
chrome --force-device-scale-factor=1.6
... does the job for me, my setup however and I don't need to do that.
Already upgraded here. It all went fine, as (almost) always. This time, no additional steps were required (not even deleting any old configuration files).
Just a heads-up about changes to OpenBSD 7.4. Shutdown and reboots now require membership in the new _shutdown group. Edit /etc/group to make that change.
I did a new install on my desktop system where OpenBSD boots on the second HDD (SDD first drive used as a grub4dos boot of Linux). Took all of a 5 minutes or so to install, setup user ...etc. Then
pkg_add chromium x11vnc
.. another few minutes
Configured it for user to use cwm
echo cwm >/home/user/.xsession
Logged in as user and
Xephyr :1 -dpi 141 -screen 1366x768 &
DISPLAY=:1 cwm &
DISPLAY=:1 x11vnc -forever &
and from my laptop connect to that
vncviewer 192.168.1.1 # servers IP address
and use F8 menu option to switch to toggle to fullscreen (I have tigervnc installed on that), so that the keys work as intended i.e. ctrl-? (ctrl shift /) and enter/run chrome
The above dpi value of 141 just best fits with my preferred size, as is the 1366x768 my laptops screen size (desktop/server runs at 1920x1080).
So my laptop, running Linux (Fatdog) can vnc into the desktop OpenBSD and browse/whatever as just another 'window'. My desktop is hard wired (ethernet) whilst my laptop is wifi, so I can lounge around with the laptop as a form of remote control (of the OpenBSD box). You can also forward sound using sndiod, but I have a long extension lead from the desktop headphone output that easily stretches to the couch Playing youtube videos are OK, not great, good enough.
If chrome menu fonts are too large/small I find that using the ...
chrome --force-device-scale-factor=1.6
... does the job for me, my setup however and I don't need to do that.
For sound from the server (desktop system where x11vnc is running) to be played on your laptop, sndiod can be used. Chrome however doesn't seem to support that, so you have to resort to firefox instead
pkg_add firefox-esr
Then in OpenBSD as root
rcctl set sndiod flags -L-
then you can pipe sound to the remote system
AUDIODEVICE=snd@<ip of laptop>/0 firefox-esr
for me for instance
AUDIODEVICE=snd@192.168.1.5/0 firefox-esr
as my laptop IP is assigned that IP (ifconfig)
As that's running a Linux system (Fatdog) I have to download and compile sndiod, but that was a simple .configure;make;make install process that only takes a few minutes. And it also has to be set to listen for that sound stream. You have to create a user for that snd daemon (useradd ....)
useradd -r -g audio -s /sbin/nologin -d /var/run/sndiod sndiod
and then to have it listen
sndiod -dddd -a on -f rsnd/1 -L-
You may have to play around with what sound card to use, mines card 1 but it may be card 0 (rsnd/0 -L-)
So with the earlier vnc setup you have a screen that can be matched to your actual laptop devices screen size, and where both the screen and sound appear on the laptop, and where you can disconnect from a session and reconnect again later.
From there, install some security around that, have vnc for instance require a password, or pipe the vnc through a ssh tunnel, or via a virtual private network. n2n is good for that. So you might have your desktop serving vnc out through your home hubs firewall and from a remote location connect into the same vpn network again outbound through a firewall, and have your OpenBSD session and sound available remotely without having to open up any firewall ports. https://github.com/ntop/n2n
I pkg_add mtpaint to grab a screen shot using
sleep 5;mtpaint -s ... in a terminal window and then minimised that out of the way (alt return in cwm) that shows the firefox picture in picture look https://i.postimg.cc/4yknQw5c/snapshot.png
Mostly its played/sounded OK for the half hour or so that youtube has been playing (searched and 'watch here' using duckduckgo to avoid the ads) but has jittered/stuttered a couple of times during that half hour.
to have aucat capture that recording stream and forward it to the laptop
On the laptop/remote the same
sndiod -d -a on -f rsnd/1 -L-
to set it to listen/output that sound.
The IP and card numbers may vary according to your hardware setup
Along with vnc'ing in as I outlined in earlier posts and local usage wise you see/hear videos/played-youtubes on both the server and laptop, but where the laptop image and sound lag the servers, and where the laptops video/sound does drift a little, so out of lip-sync for instance. But usable. The lag of video and sound are much the same on my setup, so the lip sync isn't annoyingly bad, rather just a noticeable difference when its a someone talking to the camera scene/video.
I had some crashing issues with Firefox running out of memory so I added my regular user to the staff class and changed some memory settings in /etc/login.conf
Many thanks to jggimi for the kind assistance in this area. That did the trick.
Here's a snippet of my /etc/login.conf. I increased the amount of RAM used. Adjust your settings dependent on how much RAM you have.
Code:
# Staff have fewer restrictions and can login even when nologins are set.
#
staff:\
:datasize-cur=30200M:\
:datasize-max=infinity:\
:maxproc-max=512:\
:maxproc-cur=256:\
:ignorenologin:\
:requirehome@:\
:tc=default:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.