Openbox: Difference between revisions

From Alpine Linux
(working xorg and openbox starting)
 
(added heading Prerequisites)
 
(26 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<code>
[https://openbox.org/ Openbox] is a minimalistic, highly configurable, next generation window manager with extensive standards support.  
<nowiki>
== Prerequisites ==
cat > /etc/apk/repositories << EOF; $(echo)
{{:Include:Desktop prerequisites}}
http://dl-cdn.alpinelinux.org/alpine/v$(cat /etc/alpine-release | cut -d'.' -f1,2)/main
* [[Alpine_setup_scripts#setup-xorg-base|Install Xorg]]
http://dl-cdn.alpinelinux.org/alpine/v$(cat /etc/alpine-release | cut -d'.' -f1,2)/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing
EOF


apk update
== Installation ==


setup-xorg-base openbox terminator slim dbus-x11 xf86-video-intel
Install the basic packages for a minimal installation:{{Cmd|# apk add openbox xterm font-terminus}}
xf86-video-ati xf86-video-amdgpu xf86-input-mouse xf86-input-keyboard setxkbmap


rc-update add dbus
{{Pkg|xterm}} is needed so you have a way to access the terminal in X. There are alternatives but this is the classic.
{{Pkg|font-terminus}} is needed because without any fonts, you will not be able to see any text in Openbox.


rc-service dbus start
=== Configure user ===


apk add fuse gvfs gvfs-mtp gvfs-lang gvfs-archive gvfs-fuse gvfs-gphoto2
To make Xorg work as normal user you need to add user to these groups: video, input.


rc-update add fuse
{{Cmd|# addgroup <username> input}}


apk add faenza-icon-theme
{{Cmd|# addgroup <username> video}}
</nowiki>
</code>


this will install lot of packages as gtk, cairo, python, perl, and some xorg modules for device user interaction.
=== acpid ===


<code>
If you installed your Alpine Linux as a VirtualBox or VMWare guest, you might find it handy to be able execute an ACPI shutdown.
<nowiki>
setup-xorg-base xf86-video-intel  xf86-video-ati xf86-video-amdgpu xf86-video-modesetting-0.9.0-r6
xf86-video-intel-2.99.917_git20170325-r0
xf86-video-amdgpu-doc-1.3.0-r0
xf86-video-sunleo-doc-1.2.2-r0
xf86-video-nouveau-doc-1.0.15-r0
xf86-video-vmware-doc-13.2.1-r0
xf86-video-dummy-0.3.8-r0
xf86-video-vesa-doc-2.3.4-r2
xf86-video-nv-doc-2.1.21-r0
xf86-video-nouveau-1.0.15-r0
xf86-video-siliconmotion-doc-1.7.9-r0
xf86-video-i740-1.3.6-r0
xf86-video-apm-doc-1.2.5-r8
xf86-video-savage-doc-2.3.9-r0
xf86-video-amdgpu-1.3.0-r0
xf86-video-s3virge-1.10.7-r1
xf86-video-openchrome-doc-0.6.0-r1
xf86-video-s3-doc-0.6.5-r8
xf86-video-ast-1.1.5-r1
xf86-video-apm-1.2.5-r8
xf86-video-s3-0.6.5-r8
xf86-video-fbdev-doc-0.4.4-r5
xf86-video-siliconmotion-1.7.9-r0
xf86-video-vmware-13.2.1-r0
xf86-video-r128-doc-6.10.2-r0
xf86-video-ati-doc-7.9.0-r0
xf86-video-sunleo-1.2.2-r0
xf86-video-fbdev-0.4.4-r5
xf86-video-dummy-doc-0.3.8-r0
xf86-video-rendition-doc-4.2.6-r1
xf86-video-ati-7.9.0-r0
xf86-video-rendition-4.2.6-r1
xf86-video-i128-1.3.6-r8
xf86-video-tdfx-doc-1.4.7-r0
xf86-video-glint-doc-1.2.9-r0
xf86-video-i740-doc-1.3.6-r0
xf86-video-tdfx-1.4.7-r0
xf86-video-chips-1.2.7-r0
xf86-video-chips-doc-1.2.7-r0
xf86-video-sis-0.10.9-r0
xf86-video-qxl-0.1.5-r0
xf86-video-intel-doc-2.99.917_git20170325-r0
xf86-video-vesa-2.3.4-r2
xf86-video-xgixp-1.8.1-r8
xf86-video-glint-1.2.9-r0
xf86-video-ast-doc-1.1.5-r1
xf86-video-ark-doc-0.7.5-r7
xf86-video-r128-6.10.2-r0
xf86-video-xgixp-doc-1.8.1-r8
xf86-video-sis-doc-0.10.9-r0
xf86-video-nv-2.1.21-r0
xf86-video-s3virge-doc-1.10.7-r1
xf86-video-openchrome-0.6.0-r1
xf86-video-ark-0.7.5-r7
xf86-video-savage-2.3.9-r0
xf86-video-i128-doc-1.3.6-r8


apk add xf86-input-mouse xf86-input-keyboard
{{Cmd|# rc-update add acpid}}
</nowiki>
 
</code>
=== Set Openbox as the default WM ===
 
{{Cmd|$ echo 'exec openbox-session' >> ~/.xinitrc}}
 
=== Copy the config files to your home folder ===
{{Cmd|$ mkdir ~/.config}}
 
{{Cmd|$ cp -r /etc/xdg/openbox ~/.config}}
 
{{Note|The default configuration is minimal and most menu options won't work unless you customize and/or install additional packages. More information is available in the [http://openbox.org/wiki/Help:Configuration Openbox configuration documentation].{{insecure url|This server could not prove that it is openbox.org; its security certificate is from 2007.cccg.ca}}}}
 
=== Edit Openbox settings ===
 
You can now edit the Openbox settings for your user by editing the files located in <code>~/.config/openbox</code>
 
The Openbox configuration details can be studied on the [http://openbox.org/wiki/Help:Contents#Configuration Openbox wiki].
 
== Start X ==
 
{{Cmd|$ startx}}
 
{{Note|The default Openbox menu (right-click on desktop) will have a lot of options that won't work because the required packages haven't been installed. XTerm will work if you added the package in the first step, and you can use that to add additional packages.}}
 
== Troubleshooting ==
 
== See also ==
* [https://wiki.archlinux.org/title/Openbox Openbox - Archwiki]
 
[[Category:Desktop]]
[[category: Window Managers]]

Latest revision as of 10:07, 17 March 2025

Openbox is a minimalistic, highly configurable, next generation window manager with extensive standards support.

Prerequisites

Installation

Install the basic packages for a minimal installation:

# apk add openbox xterm font-terminus

xterm is needed so you have a way to access the terminal in X. There are alternatives but this is the classic. font-terminus is needed because without any fonts, you will not be able to see any text in Openbox.

Configure user

To make Xorg work as normal user you need to add user to these groups: video, input.

# addgroup <username> input

# addgroup <username> video

acpid

If you installed your Alpine Linux as a VirtualBox or VMWare guest, you might find it handy to be able execute an ACPI shutdown.

# rc-update add acpid

Set Openbox as the default WM

$ echo 'exec openbox-session' >> ~/.xinitrc

Copy the config files to your home folder

$ mkdir ~/.config

$ cp -r /etc/xdg/openbox ~/.config

Note: The default configuration is minimal and most menu options won't work unless you customize and/or install additional packages. More information is available in the Openbox configuration documentation. 🔓

Edit Openbox settings

You can now edit the Openbox settings for your user by editing the files located in ~/.config/openbox

The Openbox configuration details can be studied on the Openbox wiki.

Start X

$ startx

Note: The default Openbox menu (right-click on desktop) will have a lot of options that won't work because the required packages haven't been installed. XTerm will work if you added the package in the first step, and you can use that to add additional packages.

Troubleshooting

See also