LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-16-2022, 04:00 AM   #16
YesItsMe
Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 812

Rep: Reputation: 284Reputation: 284Reputation: 284

Oh, patch day (for all architectures):

003: The kernel could crash due to a race in kqueue.
004: libcrypto would incorrectly decode certain ASN.1 objects.
005: Malicious PPPoE packets could corrupt kernel memory.
 
Old 05-16-2022, 06:40 AM   #17
rufwoof
Member
 
Registered: Nov 2017
Distribution: Linux kernel, busybox, fbvnc
Posts: 120

Rep: Reputation: Disabled
Installed and running well in a kvm/qemu session

jwm window manager, rox desktop, firefox-esr, libreoffice ... etc.
Attached Thumbnails
Click image for larger version

Name:	i.jpg
Views:	23
Size:	125.4 KB
ID:	38922  
 
1 members found this post helpful.
Old 05-16-2022, 07:31 AM   #18
YesItsMe
Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 812

Rep: Reputation: 284Reputation: 284Reputation: 284
Looks nice.
 
Old 05-16-2022, 02:39 PM   #19
rufwoof
Member
 
Registered: Nov 2017
Distribution: Linux kernel, busybox, fbvnc
Posts: 120

Rep: Reputation: Disabled
Quote:
Originally Posted by YesItsMe View Post
Looks nice.
Thanks.

For my acer laptop OpenBSD doesn't support the wifi - and tethering via a USB cable to my phone for net connection doesn't always work as/when desired. So using Linux as a host (wifi net connect etc) and OpenBSD in a kvm/qemu does the job for me.

Once configured in qemu rw mode thereafter I use ro mode - boot using a snapshot, where the changes are thrown away at the end of the session, so re-boots into the exact same 'clean' session every time. Periodically boot the rw session to apply patches etc. That does mean storing data/bookmarks 'outside' - on HDD or usb. To accommodate bookmarks I have WIN+spacebar to show the main menu, as in that image, and alt+spacebar shows another similar menu - but for my bookmarks/url's. jwm can be configured to be very much like cwm, but has the added benefit of window decorations, so windows can be moved/resized ...etc. using either keys or mouse/touchpad. With rox in addition to that, rox handles file manager and desktop (pinboard) functionality, and is very good for drag/drop type actions (drag a file from a rox-filer window to a appropriate desktop icon to have that file opened, i.e. drag a .png file to mtpaint icon and mtpaint opens that file).

jwm does require manual editing of its ~/.jwmrc (or /etc/system.jwmrc) file, but the OpenBSD man page for jwm is pretty extensive/great.

Booting a clean session within qemu each time means that I'm less concerned about security, so I 'de-secure' OpenBSD and it runs much quicker that way. Kernel relinking, libs reording etc are less relevant and I also de-pledge/unveil firefox - which avoids the Opps! crashes. For secure connections I just reboot into a clean session and go direct to the site. If during a general session the system were compromised - then its a throw-away session anyway - contained within a qemu session.

Works well for me. Each to their own. Not ideal, but if I ran a desktop in the more 'usual' manner more likely I wouldn't bother (too slow, periodic Opps crashes ..etc.). Different for the server side however, where the standard security is great/simple.
 
1 members found this post helpful.
Old 05-16-2022, 03:13 PM   #20
YesItsMe
Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 812

Rep: Reputation: 284Reputation: 284Reputation: 284
Quote:
Originally Posted by rufwoof View Post
the OpenBSD man page for jwm is pretty extensive/great.
Which is only one of the merits of OpenBSD. It's hard to find a man page on OpenBSD which is not awesome.

I, personally, prefer Window Maker over JWM which reminds me too much of Windows 95. But of course, to each their own. All desktops are great on OpenBSD.
 
Old 05-16-2022, 06:58 PM   #21
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 270

Original Poster
Rep: Reputation: 140Reputation: 140
The jwm(1) man page comes from the upstream project (https://joewing.net/projects/jwm/), and is not OpenBSD-specific. Kudos should be attributed, in this case, upstream.
 
1 members found this post helpful.
Old 05-16-2022, 07:19 PM   #22
YesItsMe
Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 812

Rep: Reputation: 284Reputation: 284Reputation: 284
Oh. Kudos, Joe!
 
Old 05-17-2022, 07:46 AM   #23
rufwoof
Member
 
Registered: Nov 2017
Distribution: Linux kernel, busybox, fbvnc
Posts: 120

Rep: Reputation: Disabled
Quote:
Kudos, Joe!
+1

Just created a qcow2 qemu virtual disk and booted the OpenBSD install iso image to install OpenBSD to that disk, but opted to drop all of the games, man, X, comp sets ... so a basic install only. The sets are just tar files anyway so missing sets are easily installed later.

Made a sfs of that base virtual disk using xz high compression and that yielded a 299MB sfs filesize.

Copying that to /root, which for me is ram (Fatdog, Puppy Linux like), mounting the sfs and then running qemu in snapshot mode, has it all running in ram, and boots/runs very quickly.

With qemu you can layer snapshots, incrementally, so might equally layer sfs copies I guess. Providing Puppy like qualities of running in ram and being able to save, or not, sessions. With the added benefit of when running under kvm/qemu has all of the Linux 'host' layers drivers available to that qemu (wifn etc.).

In /etc/rc I commented out both kernel and libs re-linking, and for firefox-esr I disabled both pledge and unveil ... for further speed enhancements.

Very much Puppy like, but with the consistency of a full OS (OpenBSD) and great documentation supporting that, rather than the Linux distros 101 (or rather 1001+) all-sorts of different ways of configuring/doing things (where without good associated documentation it can be a can or worms of which/whatever way to configure/run things - that in itself becomes a major security risk).
__________________
Отсталая Россия

Last edited by rufwoof; 05-17-2022 at 07:53 AM.
 
1 members found this post helpful.
Old 05-19-2022, 02:33 PM   #24
rufwoof
Member
 
Registered: Nov 2017
Distribution: Linux kernel, busybox, fbvnc
Posts: 120

Rep: Reputation: Disabled
On HDD I dual boot systems, for my OpenBSD boot I originally freed up some HDD space, and used gparted to create a partition for OpenBSD, and then used fdisk to set that partition type to a6. Then as I use grub4dos as a boot loader I added to menu.lst entries of
Code:
title OpenBSD INSTALL iso with iso copied to root of sda1
find --set-root /install71.iso
map /install71.iso (0xff) || map --mem /install71.iso (0xff)
map --hook
chainloader (0xff) 

title OpenBSD run - when on sda partition 4
root (hd0,3)
makeactive
chainloader +1
boot
where the first boots a downloaded copy of the 7.1 installation iso (downloaded using Linux), that enables that to be installed to the OpenBSD assigned partition, and the second boots that once installed.

Another way I've booted 7.1 is to use kvm/qemu, where after installing qemu ...
Code:
modprobe kvm-amd

qemu-img create -f qcow2 default.qcow2 50G

#Run installer:

qemu-system-x86_64 -m 2048 \
  -cpu qemu64 \
  -vga std \
  -cdrom install71.iso \
  -drive if=virtio,file=default.qcow2,format=qcow2 \
  -enable-kvm \
  -netdev user,id=mynet0,hostfwd=tcp:127.0.0.1:2222-:22 \
  -device virtio-net,netdev=mynet0 \
  -smp 2
and once installed booting that in snapshot mode
Code:
qemu-img create -f qcow2 -b default.qcow2 snapshotdefault.img

qemu-system-x86_64 -m 2048 \
-no-fd-bootchk -monitor stdio \
  -k en-gb -usbdevice tablet \
  -drive if=virtio,file=snapshotdefault.img,format=qcow2 \
  -device virtio-net,netdev=mynet0 \
  -vga std \
  -netdev user,id=mynet0,hostfwd=tcp:127.0.0.1:2222-:22 \
  -cpu host -enable-kvm -smp 2
In both of those cases port 2222 in linux is associated to port 22 (ssh) within OpenBSD - so I can ssh -p 2222 user@localhost or scp -P 2222 .Xdefaults user@localhost:/home/user/. or suchlike.

Just in the process of now upgrading my 6.8 server (old PC connected to main TV for its display) to 7.1, and with tigervnc installed on that I can vnc into that using my laptop and have sndiod forwarding sound from that server to the laptop. Watching youtubes and video/sound are near as good quality as if I were directly connected via my laptop, but where the server in being hard wired (ethernet) downloads considerably quicker.

My basic packages that I install are relatively few, jwm, rox-filer, galculator, mtpaint, libreoffice, firefox-esr, tigervnc. Yielding a desktop that once I've configured things as I like serves most of my needs.

Posting in the hope that it might provide some guidance/templates for others to try out OpenBSD for themselves.
 
1 members found this post helpful.
Old 05-19-2022, 05:41 PM   #25
rufwoof
Member
 
Registered: Nov 2017
Distribution: Linux kernel, busybox, fbvnc
Posts: 120

Rep: Reputation: Disabled
OpenBSD doesn't support my Acer laptops wifi ... so a USB connection to my Android phone, with its wifi and tethering option turned on and ...

dhclient urndis0

... has net connection via that usb/phone interface

Out and about and its the same, just turn the phones Data on instead (unless of course you have a wifi hotspot connection available).
 
Old 05-20-2022, 08:04 AM   #26
YesItsMe
Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 812

Rep: Reputation: 284Reputation: 284Reputation: 284
Quote:
Originally Posted by rufwoof View Post
OpenBSD doesn't support my Acer laptops wifi ...
Let me guess: ath10k? Because even FreeBSD doesn't have that (yet?).
It was the only reason to run a Linux on one of my laptops again - I just happened to buy a cheap Aspire for conferences.
 
Old 05-21-2022, 10:07 AM   #27
hitest
Guru
 
Registered: Mar 2004
Location: Northern Canada
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 7,070

Rep: Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437Reputation: 3437
Smile

Quote:
Originally Posted by rufwoof View Post
On HDD I dual boot systems, for my OpenBSD boot I originally freed up some HDD space, and used gparted to create a partition for OpenBSD, and then used fdisk to set that partition type to a6.
Nice! I'm dual booting Slackware64-current and OpenBSD on this system. When I first installed Slackware I created an OpenBSD partition on my hard drive and set the partition to type A6. After Slackware was up and running I installed OpenBSD to the A6 partition then rebooted the unit into Slackware. I used Vi to edit /etc/lilo.conf on my Slackware system. I added this snippet to the bottom of /etc/lilo.conf.

Code:
other = /dev/sda4
label = OpenBSD
table = /dev/sda
*Note: sda1 is my swap partition, sda2 is /, sda3 is /home.

Then I ran this command to add OpenBSD to start-up with LILO.

Code:
# lilo -P fix
OpenBSD is running well on this unit. LILO plays very nicely with OpenBSD.
 
2 members found this post helpful.
Old 05-22-2022, 06:57 PM   #28
rufwoof
Member
 
Registered: Nov 2017
Distribution: Linux kernel, busybox, fbvnc
Posts: 120

Rep: Reputation: Disabled
I've long term used grub4dos and once you've freed up some space using gparted, create a FAT32 partition for OpenBSD, and then use fdisk to set the partition type to a6. Then download the OpenBSD installation iso to perhaps the root of the first partition (linux) and boot it using a menu.lst entry of ...
Code:
title OpenBSD INSTALL iso
find --set-root /install71.iso
map /install71.iso (0xff) || map --mem /install71.iso (0xff)
map --hook
chainloader (0xff)
run through the installation process and then to then boot the installed version ...
Code:
title OpenBSD run - when on sda partition 4
root (hd0,3)
makeactive
chainloader +1
boot
I've just finished building a liveusb version as well. In Linux I created a vHDD img file, qemu booted the OpenBSD 7.1 installation iso and installed to that img, and then dd'd that img to a usb. I used a 13GB vHDD size as I dd'd to a 14GB stick (aired on the side of caution sizing wise). Booted surprisingly quickly (I did disable kernel and libs reordering). Once booted I just installed tigervnc and vnc'd into my desktop OpenBSD 'server', opened firefox with sndiod forwarded to my (usb booted) laptop and that looked/sounded great.

Basically ran ...

qemu-img create LiveUSB.img 13000m
qemu-system-x86_64 -hda LiveUSB.img -cdrom install71.iso
dd if=LiveUSB.img of=/dev/sdb bs=8192

But where immediately after the sets had finished being installed (I omitted comp and games sets), I ctrl-z out, grep'd /install for kernel to identify where kernel.tgz was, and removed that file before fg .. to resume the installation process. After the first boot I edited /etc/rc to comment out the calls to reorder libs and reorder kernel (otherwise that would be quite slow/intense on a usb stick).

A slow process, took perhaps a couple of hours, left it for around a hour to do the installation, and another hour to do the dd, both were quite slow but I didn't actually sit/watch the processing.
 
1 members found this post helpful.
Old 06-04-2022, 02:21 PM   #29
rufwoof
Member
 
Registered: Nov 2017
Distribution: Linux kernel, busybox, fbvnc
Posts: 120

Rep: Reputation: Disabled
OpenBSD 7.1 bare metal install to Acer Laptop 4GB ram, 2 core. Part of a multi-boot (installed to gparted sda4 partition). Just base, plus a couple of firmware packages installed after fw-update was run, and pkg add jpeg for turbo lib version.

Playing a youtube in chrome via X forwarding, Fatdog linux server, where that Fatdog box (a old acer 4 core desktop) htop is in the top right of screen. OpenBSD top shown at bottom right of screen. Fatdog bmon shown in bottom left of screen.

Screenshot taken using xwd, where I scp'd that file over to the Fatdog box to use gimp to convert (export) it to a jeg.

Sound is forwarded to the laptop using sndio.

Usable, but a better experience IMO is if you install tigervnc and use vncserver/vncviewer instead of X forwarding. Feels more like a normal desktop that way whilst X forwarding does tend to feel more like a remote system. tigervnc is a bit bloatish however, adds (installs) something like 30+ packages.
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	22
Size:	139.6 KB
ID:	39014  
 
Old 07-24-2022, 04:06 PM   #30
YesItsMe
Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 812

Rep: Reputation: 284Reputation: 284Reputation: 284
-CURRENT is on 7.2-beta already, but errata for 7.1 are still a thing ...

006 (all architectures): Input validation failures in the X server request parsing code can lead to out of bounds memory accesses for authorized clients.
007 (all architectures): cron(8) aborted due to strange poll timevals.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My LG Stylo 4 Has Been Hijacked by Remote Administrator and OS as Well as Kernel Have Been Modified LongDuckDong_69 Linux - Newbie 3 11-17-2019 03:41 PM
LXer: OBS Studio 20.0 Has Been Released Released | It Brings a Modular User Interface & Stinger Transitions LXer Syndicated Linux News 0 08-11-2017 09:00 AM
My web server has been hacked. SU password has been disabled rcrosoer Linux - Security 11 06-27-2008 02:18 PM
OpenBSD - Where can i get OpenBSD 3.7 ISO CD -- Please help me b:z Linux - Software 5 04-08-2005 07:09 AM
OpenBSD - Where can i get OpenBSD 3.7 ISO CD -- Please help me b:z Linux - Software 1 04-07-2005 08:46 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration