-
Notifications
You must be signed in to change notification settings - Fork 0
/
2022-01-29-openbsd-7-xfce-desktop.html
125 lines (123 loc) · 5.65 KB
/
2022-01-29-openbsd-7-xfce-desktop.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="Steps to install Xfce desktop on OpenBSD">
<link rel="alternate"
type="application/rss+xml"
href="https://www.birkey.co/rss.xml"
title="RSS feed for https://www.birkey.co/">
<title>OpenBSD 7 Xfce Desktop</title>
<link href="static/style.css" rel="stylesheet" type="text/css" />
<link rel="apple-touch-icon" sizes="180x180" href="static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="static/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="alternate" type="application/rss+xml" title="RSS Feed for birkey.co" href="/rss.xml">
<meta name="author" content="Kasim Tuman">
<meta name="referrer" content="no-referrer">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
<meta name="viewport" content="initial-scale=1,width=device-width,minimum-scale=1">
</head>
<body>
<div id="preamble" class="status"><br><center>
<div style="display: inline-block; vertical-align:middle;">
<a href="https://www.birkey.co/index.html" style="text-decoration: none;"><b>BIRKEY CONSULTING</b><br>
</a><hr/><div style="text-align: justify;display: inline-block; width: 100%;">
<a class="title" href="https://github.com/oneness">ABOUT</a> <a class="title" href="https://www.birkey.co/rss.xml">RSS</a> <a class="title" href="https://www.birkey.co/archive.html">ARCHIVE</a></div></div>
</center><br><br>
<div style="margin-bottom: 3ch;text-transform: none;"></div></div>
<div id="content">
<div class="post-date">29 Jan 2022</div><h1 class="post-title"><a href="https://www.birkey.co/2022-01-29-openbsd-7-xfce-desktop.html">OpenBSD 7 Xfce Desktop</a></h1>
<p>
I blogged previously about why one should use OpenBSD and this time I
would like to document steps to have a fully working Xfce Desktop with
default installation. My goal is to keep the changes minimal only to
absolutely required steps, nothing more nothing less. If you find
steps missing (or did not work as expected) or not necessary, please
drop me a line via k tuman at acm dot org so I can address and update
this blog if needed.
</p>
<ol class="org-ol">
<li><p>
Download the img and make USB boot disk:
</p>
<div class="org-src-container">
<pre class="src src-shell">curl -O https://cdn.openbsd.org/pub/OpenBSD/7.0/amd64/install70.img
sudo dd if=~/Downloads/install70.img of=/path/to/usb
</pre>
</div></li>
<li>Boot from USB disk. Press <b>I</b> and hit enter when you see the
`Welcome to the OpenBSD/amd64 7.0 installation program.` and follow
the prompt. It is pretty straightforward. Once it is done, just
reboot, which will automatically downloads and installs needed
firmwares for your laptop.
--<b>NOTE:</b>– You can select whole disk and auto layout if you are not
sure. Using wired connection for network interface is highly recommended.</li>
<li><p>
Once you login, switch to root account, add needed packages and
needed configs like this:
</p>
<div class="org-src-container">
<pre class="src src-shell">su ## prompts for root password
pkg_add xfce xfce-extras ## install xfce desktop
sed -i 's/xconsole/#xconsole/' /etc/X11/xenodm/Xsetup_0 # no xconcole
usermod -G operator <user name> # so you can use xfce to log out, reboot etc
usermod -G wheel <user name> # so you can use doas
echo "permit persist :wheel" >> /etc/doas.conf # doas = sudo
rcctl enable messagebus ## enable dbus
rcctl start messagebus ## start dbus
rcctl enable apmd ## enable power daemon
rcctl start apmd ## start power daemon
exit # switch to your user account
echo "exec startxfce4" > ~/.xsession ## auto launchs xfce4 desktop
doas reboot ## restart to have a xfce default desktop
</pre>
</div></li>
</ol>
<p>
<b>Bonus Tips and Tricks</b>
</p>
<ul class="org-ul">
<li><p>
Your wifi most likely will just work. In case if you get unlucky,
here is how you can get it working:
</p>
<div class="org-src-container">
<pre class="src src-shell">doas ifconfig # lists all supported interfaces
doas fw_update # to install missing driver for your card
dmesg | grep pci | grep <wifi card model> # report if not supported
doas ifconfig # again to check if your card listed
doas ifconfig join <Wifi name> wpakey <password> # to join your wifi
# Run following 2 lines if you want to auto join your wifi:
doas echo "join wifiname wpakey password" >> /etc/hostname.<wificardname>
doas echo "dhcp" >> /etc/hostname.<wificardname>
doas sh /etc/netstart # to restart the network
ping openbsd.org # to test your network
</pre>
</div></li>
<li><p>
While default Xfce4 desktop is fully functional out of the box, I
recommend following packages:
</p>
<div class="org-src-container">
<pre class="src src-shell">doas pkg_add xfce4-power-manager xfce4-whiskermenu
ln -s -f yourloginpics ~/.face # profile in whiskermenu and in lock screen
</pre>
</div>
<p>
Add them to the panel and tweak them to your liking. One setting I
highly recommend enabling following in `Window Manager Tweaks`:
</p>
<ul class="org-ul">
<li>[✓] <b>Hide title of windows when maximized</b></li>
</ul></li>
</ul>
<div class="taglist"><a href="https://www.birkey.co/tags.html">Tags</a>: <a href="https://www.birkey.co/tag-openbsd.html">openbsd</a> </div></div>
<div id="postamble" class="status"><br><center>
<div style="display: inline-block; vertical-align:middle;"></div></div>
</body>
</html>