Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
4

jwm/rox

4
Archived

jwm/rox

I've opted for a jwm and rox desktop theme for my 6.3 desktop setup

https://s31.postimg.org/vakc2nyrv/image.png

In addition to base ...

jwm rox-filer firefox-esr libreoffice mpv galculator leafpad osmo mtpaint yad

10 comments
75% Upvoted
This thread is archived
New comments cannot be posted and votes cannot be cast
Sort by
level 1
Original Poster2 points · 1 year ago · edited 1 year ago

Colour is just a yad colour chooser script

#!/bin/sh
yad --color --mouse --init-color=red --title="Colours" &

Music is a mpv playlist i.e. runs

mpv --playlist=$HOME/Music/playlist

where that playlist file is just a listing of all the .mp4 files and order of play that I like to listen to/view.

Alarm is another yad script I wrote

#!/bin/sh
TITLE="Alarm"
SOUND='/home/user/bin/YAD/alarm.mp3'
ICON=/home/user/.icons/alarmclock2-128.png
GEO="--geometry 345x247+558+324"
# Prompt for delay in minutes before alarm
# Fractional parts of minute supported i.e. 0.0833 is 5 seconds
DELAY=$(yad $GEO --entry --text "Enter number of minutes before alarm sounds ..." --title="$TITLE"" $VERSION" --window-icon=$ICON \
		--image=$ICON \
		--button="Abort!$HOME/.icons/quit.png":1 \
		--button="OK!$HOME/.icons/choice-yes.png:0" \
	   )
ret=$?
[[ $ret -eq 1 ]] && exit 0

if [ -z $DELAY ]; then
  exit
fi

# Convert to seconds
DELAY=`echo "$DELAY*60"|bc -l`

# Make a proportion of 1/100ths 
STEP=`echo "$DELAY/100"|bc -l`

# Show a progress/countdown meter
i=0
while [ "$i" -lt 101 ]
do
    echo $i
    echo "# Remaining wait time $((100-i))%"
    sleep $STEP
    i=`expr $i + 1`
done | yad $GEO --progress --center --title "$TITLE"" $VERSION" --text="Alarm Countdown progress ..." --button="Abort!$HOME/.twm/icons/quit.png":1 --auto-kill --auto-close
ret=$?
[[ $ret -eq 1 ]] && exit 0


# Use mpv to play the alarm sound put it into the background recording its PID
mpv --loop=inf "$SOUND" &
PID=$! 

# Show a stop alarm dialog
yad $GEO --title "$TITLE"" $VERSION" \
             --button="End Alarm!$HOME/.icons/quit.png":0 \
             --width 300 --image=$ICON \
             --window-icon=$ICON \
             --text="<b>Alarm time is up!</b>"
# kill mpv
kill -1 $PID

https://s31.postimg.org/4j4440n9n/image.png

level 1
Original Poster2 points · 1 year ago

RE : BTW, Zeroinstall must die, it has no future. I'd create a ROX DE metapackage for all the BSD's/Linux distros

Rox AppDirs are nice http://rox.sourceforge.net/desktop/AppDirs.html

Without curl installed for instance, I can grab the curl executable and its associated libs (using ldd to identify those) and drop them into a folder. Add a .DirIcon (image to use as the icon) and create a AppRun file in that folder ... and then its all contained and portable to any other OpenBSD box running the same version/architecture. Somewhat like portableapps.

This image shows how I use curl and the wttr.in web site to retrieve the local weather forecast ... but where curl isn't actually "installed"

https://s31.postimg.org/729k9yhe3/roxapp-curl.png

Having created that folder and its content, I can just drag/drop it wherever, onto the desktop for instance such that its a clickable icon.

I guess another step might be to make it more contained, perhaps a chroot (runs as user anyway, but chroot would lock things down even more). Or you can even just hold the source and compile (or store multiple versions of the binary/libs and just use the ones appropriate for whatever architecture is being used.

Under Linux I did have LibreOffice running that way for a while, all just contained in a rox appdir that could be copied in or not as desired. Nice to be able to just run the base system and add things on top of that (or not) as desired. With linux I was also using sfs's, so entire filesystems could be contained within the AppDir and just mounted/unmounted as desired/needed.

Not sure about ZeroInstall. Other than a cursory look I know very little about it/them.

level 2
Original Poster1 point · 1 year ago

wttr.in is a great little site/link. You can put pretty much anywhere in as the location including zip/postcodes

curl wttr.in/newyork 

for instance and you get a quick overview of the next few days and across the days

https://s31.postimg.org/fn7hefe8r/image.png

level 1
1 point · 1 year ago

what does the program LBC do?

level 2
Original Poster3 points · 1 year ago

Just runs mpv in a xterm that plays LBC radio station (used to be just a London station, but is now UK national), primarily a talk/news station that I have on in the mornings (disconnect the headphones and listen to it via speakers).

xterm -T "LBC" -e mpv http://media-ice.musicradio.com/LBCLondonMP3Low &
level 1
[deleted]
1 point · 1 year ago

I prefer PCmanFM. Rox' shorcuts are kinda alien, as I never used RiscOS ;)

level 2
Original Poster2 points · 1 year ago · edited 1 year ago

If you X forward rox i.e. have it on a headless server with just rox-filer installed on top of base OpenBSD and have in /etc/ssh/sshd_config have

X11Forwarding yes 

... and access that via your desktop using something like

ssh -XC user@123.1.2.3 rox

then generally you wont be able to drag/drop files between the servers rox (unless perhaps if you also forward dbus ...etc.) and your desktop's rox. With rox however you can create rox apps, basically a special folder into which you copy or link a icon (for the app) and rename it to .DirIcon, alongside two other files, AppInfo and AppRun. AppInfo is just a xml file that describes the 'application', something like

<?xml version="1.0"?>
<AppInfo>
   <Summary>leafpad text editor</Summary>
</AppInfo>

and AppRun (that should be executable) might contain something like

#!/bin/sh
exec leafpad "$@"

When the folder containing those files is dragged/dropped onto the desktop you can then drag/drop files onto that desktop icon and it will look and operate like how it was configured/designed. i.e. drag a .html file onto the leafpad desktop icon (rox app directory) and it will open in leafpad.

The AppRun content can be revised to account it being on a different system i.e. server, so perhaps run a scp $@ user@10.0.0.2:/home/user/. type command or ftp or whatever. Such that in your desktops X window of the servers rox window you can drag/drop to transfer files to your desktop or vice-versa.

rox is a highly drag-n-drop concentric type filemanager/desktop. Shame that its no longer being developed (AFAIK). I came to like it through my first transition away from XP (after MS withdrew support) and into Puppy Linux, that tends to use jwm and rox as defaults.

level 1

OMG ! Rox-filer, one of my first ports to OpenBSD :)

level 2
Original Poster1 point · 1 year ago

Loving the jwm/rox combination experience. Have set up multiple pinboards so can flip between them and have desktop icons (links) to whatever, nice way to group things. Could for instance have one pinboard for each client and all of their data/details etc. ready to be flipped to at any time. I've set up one as a web bookmarks type pinboard which avoids having to use firefox bookmarks.

I've also moved a number of programs into APPDIR's so now my OpenBSD base + others is relatively light, things like mpv, mtpaint, leafpad, osmo, curl etc. are all static APPDIR's, owned and run by USER so additional security also :)

https://s31.postimg.cc/e0uq07tuj/smart.png

Love the drag/drop from filemanager to rox-panel to open/execute files (left of screen in my case). I have jwm panel set to autohide and the date also serves as a showdesktop (if left mouse clicked) or it shows the menu if you middle or right mouse click the date.

More posts from the openbsd community
38
38
3 comments
18
Post image
18
17 comments
14
https://i.redd.it/eo4w27ajx3f41.jpg

I recently installed the latest snapshot of OpenBSD with full disk encryption and gnome 3.34 as desktop environment.


After running fw_update almost everything runs perfect :) Graphics are fluid, suspend and resume works and so does WiFi


But still there are two minor problems I experience:

- The key to control display brightness do not work, but wsconsctl display.brightness = 50 works for example

-If I do a reboot it gets stuck at the Prompt to enter the password for disk encryption, have to press the power button and start it again, this does not happen when i reboot out of bsd.rd

14
4 comments
14

Reading through Cullum Smith's blog post OpenBSD on a Laptop I'm wondering how he came up with these resource limits:

/etc/login.conf

staff:\
  :datasize-cur=1024M:\
  :datasize-max=8192M:\
  :maxproc-cur=512:\
  :maxproc-max=1024:\
  :openfiles-cur=4096:\
  :openfiles-max=8192:\
  :stacksize-cur=32M:\
  :ignorenologin:\
  :requirehome@:\
  :tc=default:

and

/etc/sysctl.conf

# shared memory limits (chrome needs a ton)
kern.shminfo.shmall=3145728
kern.shminfo.shmmax=2147483647
kern.shminfo.shmmni=1024

# semaphores
kern.shminfo.shmseg=1024
kern.seminfo.semmns=4096
kern.seminfo.semmni=1024

kern.maxproc=32768
kern.maxfiles=65535
kern.bufcachepercent=90
kern.maxvnodes=262144
kern.somaxconn=2048

Is there a way to calculate these values?

He only writes:

The shm variables are for my laptop, which has 16 GB of RAM. You should scale them accordingly for your machine.

My main laptop has 32 GB RAM, then we have older laptops / netbooks with 8 / 4 / 2 / 1 GB of RAM laying around, so to make any adaptions I would need to know how to scale any of these values based on what?

Are there recommendations for these values based on usage (laptop / firewall gateway / file server / web server)?

14
34 comments
10

Sometimes on a power outage, OpenBSD will prompt me for a manual filesystem check (I need to run fsck_ffs /dev/wd0a).

How can I set filesystem check to automatic mode?

10
8 comments
10
10
2 comments
7

Is it as simple as installing to the USB stick and editing fstab to send everything into memory file systems?

If the USB stick is using full disk encryption, will it still be possible to detach the drive with bioctl and unplug it after the system boots?

I'm curious if anybody here runs OpenBSD completely in RAM from a USB stick and what sort of problems I'm likely going to encounter.

7
10 comments
5

Hello,

I've installed OpenBSD 6.6 on my X1 Carbon 4h (2016) and it worked fine. I've not configured network yet because I have a onelink+ dock (which also contains a ethernet port cdce) and I'm not sure what I'd do between wireless and ethernet.

So basically, after installing at first boot, I've ran dhclient cdce0 and it acquired a lease. The next day, I rebooted and re-ran dhclient on the same interface but it failed to acquire IP address with error:

dhclient: .... no lease

And then gives up. The interface works well (I have a dual boot with Linux) and the ethernet cable is working too but no longer on OpenBSD

Not sure what do I miss here or if I misuse dhclient, but I remember to always have used it this way.

Edit: as u/satsugene pointed out, it works fine if my laptop boots undocked and I dock it afterwards.

5
12 comments
4

Hello all, I'm attempting to create a snapshot of my entire filesystem using dump. The manual page says that the files can be sent over a network

If the name of the file is of the form “host:file” or “user@host:file”, dump writes to the named file on the remote host using rmt(8).

This is the command I tried

dump -0u -s 1000000000 ninja@10.0.0.1:/home/ninja/backup/dumpfile-2-4-2020 /

The target machine is a Linux desktop with a static IP 10.0.0.1, my OpenBSD machine has the static ip 10.0.0.2 and both are connect via a crossover cable. The connection works, I am able to ssh into the machine, and use sftp.

But I get this error message

DUMP: Cannot lstat ninja@10.0.0.1:/home/ninja/backup/dumpfile-2-4-2020: No such file or directory

So am I doing this wrong or is the man page wrong? Any help or hints is appreciated, thank you!

4
23 comments
4

Hi, I have some questions about the kernel.

  1. I read that the lkm was been disabled, then if I want develop a kernel module for my own or change something in the kernel how should I do ?

  2. Where can I find documentation about the kernel ?

  3. how can I check the kernel integrity ? Thank you.

4
19 comments
4

Has anyone managed to compile GTK+3 without glib2 and dbus as hard dependencies? If I wanted those I would just use Linux.

4
30 comments
3

Hello everybody I have a thinkpad t480 and run v6.6 with xfce as my de. I have apmd enabled at auto and by running apm I only see one battery and not two as it should. I did a test and after the first battery ran out the machine shut down forcefully. Under gnu/linux distributions, when the first battery got close to empty, the second battery would be used. Any chance there is a patch for this or I can try and fix this somehow? Thank you

3
10 comments
3
3
2 comments
2

The title says it all. I'm toying again with OpenBSD (6.6), this time on a better supported hardware (I hope) and, during install, I have chosen a custom layout for OpenBSD's slice: a root partition and a swap partition, nothing more. I have read that this is bad but I'm curious why. I already have read various reasons for this but they're too technical, an ELI5 explanation would be very welcome. Anyway, I installed OpenBSD this way and it seems to work fine with no problems so I don't see any disadvantage.

2
9 comments
2

Hi All,

Sorry if this post doesn't belong here.

I've been using OpenBSD as a router for a few months and love it. I've recently had a requirement to use L2TP (thanks to Mikrotik's broken Openvpn implementation). I have IPv4 working on the client device without issue. For the life of me I can't find how I can add IPv6 to the mix, I've looked through the npppd documentation and the only mention of IPv6 is on the L2TP server binding. Is it possible to assign each L2TP client an IPv6 address from the L2TP server or am I missing a trick?

2
2 comments
2

I have successfully gotten MATE Desktop Environment working with OpenBSD 6.6. I have exec ck-launch-session mate-session in my .xsession file and I am running xenodm as my login manager. I have messagebus enabled and started. However, I am unable to shutdown my laptop or restart it without being prompted for the root password and authenticating. I am welcome to suggestions as to why this might be.

2
8 comments
2

This is my first time seriously tinkering with OpenBSD (I have experience mostly with GNU/Linux). I understand this post is halfway between r/openbsd and r/vintageApple.

First of all, I am impressed about the hardware support provided by OpenBSD for such an ancient laptop, most of the stuff works out of the box or with minimal work, in a very stable way.

My "problem" is that, while the touchpad is working out of the box, I am a bit lost configuring the right/secondary button (or Button 3). Keep in mind this is a single (physical) button touchpad. I think it does support tapping, at least on Mac OS X.

I have been checking the man pages for utpms driver, the one my machine is using for my Apple touchpad mouse. I have also checked the manpages for wsmouse, where I have read about the options that can be passed to wsconsctl to configure some aspects about tapping. I figured out that my best option was to configure the tap on the touchpad as right button click.

Specifically, I have tried several variations of the following:

wsconsctl mouse.tp.disable=0
wsconsctl mouse.tp.tapping=2

but when checking the status with:

wsconsctl -a | grep mouse

I only get a couple of entries, none of them referred to the "mouse.tp.*" entries.

At this point I have several questions:

  • Which is the "right" way to get "right click" for the iBook G4 touchpad?

  • Does the utpms driver provides any support for tapping for this model?

  • What am I missing? :-)

2
7 comments
2

Just got an HP OfficeJet 3836 Inkjet. I can see it in my browser by going to the IPnumber it attached itself wirelessly to on my LAN.

I can set up the email service that HP offers to email myself a document. That works. Oddly enough HP doesn't think it's insulting to suggest I should send my documents elsewhere just to print them here. I know privacy is dead, but do they have to throw in my face? If I want to send documents to my local server, when waltzing somewhere else on the planet, I'll just scp them, and then log in and print normally. If it that would only work back here at the farm. Up 'till now, using laser printers from HP that was fine. I heard that the InkJets were less accommodating. Why so, I can't imagine.

I'm using 6.6... Guess I'll have to learn cups. Always dreaded that moment....

So I did an pkg_add of cups. Then I did "man cups". Early on it says

====================== begin clip ===============================

WHERE DO I BEGIN?

The easiest way to start is by using the web interface to configure

your printer. Go to "http://localhost:631" and choose the

Administration tab at the top of the page.

====================== end clip ============================================

Well, when I do that, Firefox just says:

"Unable to connect. ...Firefox can’t establish a connection to the server at localhost:631."

And some more stuff. Well, I noticed that the latest versions of Firefox are more reluctant to just access places on the local computer. It wants to see documents ending in .html, and it's harder to use it just browse my local directories. Is it just Firefox being too security correct these days?

Another question: Why and how should anything just show up at localhost:631 anyway?

Well, I can get my $29 back from COSTCO, even if I made shambles of the packaging. Do their HP professional laser printers still just talk to the lpd, or is it getting too late in the "we own you" battle?

2
4 comments
2

Hi,

please be a little lenient, this is the first time I'm actively using OpenBSD.

TL;DR: I don't know what I have to do to get my Dell Latitude 7490's track point to work (I don't want to use the touch pad so I don't care that it doesn't work either.)

Back story: I decided to try the OS today on my new (well, refurbished) Dell Latitude 7490 and figured "well, you know how to use Linux, how hard can the switchover be?". Boy, was I in for a surprise...

Installation was quite easy, even with a full disk encryption. WiFi worked out of the box. Installation of i3wm was easy as well and after copying over my config it even looks (mostly) like my old machine. I'm still struggling with the concept of "RTFM, you don't get any help on the internet, man pages are enough" and therefore can't seem to figure out how to configure my X server properly. I'd really like to use my Dell D6000 docking station (wsudl, I already figured that out, but I don't know what to configure) and most of all I'd like to be able to use the mouse pointer without having to attach a USB mouse. USB mouses work well with the wsmouse driver, the internal track point, however, does not.

So, can you please help a OpenBSD-noob out and tell me what I have to do? It's been a while since I last had to touch xorg.conf under Linux so my knowledge of this is somewhat limited. Reading man xorg.conf and man Xorg unfortunately didn't improve my understanding by much.

I don't even know what kind of info you'd need to help me out.

dmesg: https://pastebin.com/SH37PTsD /etc/X11/xorg.conf: https://pastebin.com/aCgZ7gDx

Deleting /etc/X11/xorg.conf does not help, unfortunately.

Thank you for taking the time to read this.

2
4 comments
1

(Note: Radicale is a CalDAV/CardDAV Server)

Hello!

I apologize in advance, I am a beginner with web stuff and am just learning to host my own stuff. Since I am on OpenBSD, I thought it'd be best to use your native tools, namely httpd and relayd. httpd was pretty straightforward, but I am struggling with translating the Radicale configuration to relayd.

Here is what they say: (quoting https://radicale.org/proxy/)

When a reverse proxy is used, the path at which Radicale is available must be provided via the X-Script-Name header. The proxy must remove the location from the URL path that is forwarded to Radicale. Example nginx configuration:

location /radicale/ { # The trailing / is important!
    proxy_pass        http://localhost:5232/; # The / is important!
    proxy_set_header  X-Script-Name /radicale;
    proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass_header Authorization;
}

There is also an example Apache config at the link above. Since I have never worked with http headers, don't really understand the concepts behind it, which is why I struggle to understand the relayd.conf manpage on related topics. How would I go about translating this into a relayd config? Thank you a lot in advance!

Addition:

Besides Radicale, I am also running opensmtpd with dovecot, which is working great with the httpd.conf simply serving the acme challenge on port 80 and redirecting to https. Will I need to add configuration to my relayd.conf for that aswell?

1
7 comments
1

Trying to create a bootable USB to install OpenBSD from a linux machine. Not sure what I am doing wrong. Any help is appreciated.

fdisk -l gave me the USB as sdb1

From the directory where the file is located I used:

dd if=install66.fs of=/dev/sdb1 bs=1M
1
3 comments
1

Is there any rosetta stone for pkg against other package managers (especially those from other Linux distributions)?

1
4 comments
1
Posted byu/[deleted]6 days ago

https://cloudflare.cdn.openbsd.org/pub/OpenBSD/

this is the default installurl in miniroot.fs and its been broken for some time.

maybe someone needs to change that in the install?

1
5 comments
0

It is (was?) pretty common problem on OpenBSD, I'm trying to copy big file to USB flash drive and it is very slow (around 800kb/s). Any way I can make it faster? I'm on amd64 6.5, Intel chipset

0
9 comments
0

So I mostly use WordGrinder for writing my school essays, etc. I got bold fonts to work, but I cant find out how to get italic fonts in Xterm. Along with learning C, running a simple printf program prints the text in front of the PS1 prompt making it kind of hard to read.

0
2 comments
Continue browsing in r/openbsd
General OpenBSD community subreddit. For gaming-related discussion, visit /r/openbsd_gaming
9.3k

Members

30

Online


Created Oct 23, 2008