Openbox: Difference between revisions

From Alpine Linux
(10 intermediate revisions by 4 users not shown)
Line 3: Line 3:


= Enable Community Repository =
= Enable Community Repository =
We need the Community Repository available for access to the OpenBox packages. Instructions are available on the [[Enable_Community_Repository|Enable Community Repository]] page.
We need the Community Repository available for access to the OpenBox packages. Instructions are available on the [[Repositories#Enabling_the_community_repository|Repositories]] page.


= Install packages =
= Install packages =
Line 10: Line 10:
{{Cmd|# apk add openbox xterm terminus-font}}
{{Cmd|# apk add openbox xterm terminus-font}}


 
xterm is needed so you have a way to access the terminal in X. There are alternatives but this is the classic.
Depending on your network speed, it might take a few minutes.
Terminus is needed because without any fonts, you will not be able to see any text in OpenBox.


= Configure xorg-server =
= Configure xorg-server =
On most systems, xorg should be able to autodetect all devices. However, you can still configure xorg-server manually by launching:
On most systems, xorg should be able to autodetect all devices. However, you can still configure xorg-server manually by launching:
{{Cmd|# setup-xorg-base}}
{{Cmd|# setup-xorg-base}}
= Configure user =
To make Xorg work as normal user you need to add user to these groups: video, input.
{{Cmd|# addgroup <username> input}}
{{Cmd|# addgroup <username> video}}


== acpid ==
== acpid ==
Line 22: Line 27:


= Set openbox as the default WM =
= Set openbox as the default WM =
{{Cmd|$ echo 'openbox-session' >> /home/<newuser>/.xinitrc}}
{{Cmd|$ echo 'exec openbox-session' >> ~/.xinitrc}}


= Copy the config files to your home folder =  
= Copy the config files to your home folder =  
{{Cmd|$ mkdir /home/<newuser>/.config}}
{{Cmd|$ mkdir /home/<newuser>/.config}}
{{Cmd|$ cp -r /etc/xdg/openbox ~/.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].


= Edit openbox settings =
= Edit openbox settings =
Line 32: Line 39:
{{Cmd|~/.config/openbox}}
{{Cmd|~/.config/openbox}}


The OpenBox configuration details can he studied on the [http://openbox.org/wiki/Help:Contents#Configuration OpenBox wiki].  
The OpenBox configuration details can be studied on the [http://openbox.org/wiki/Help:Contents#Configuration OpenBox wiki].


= Start your X! =
= Start your X! =
{{Cmd|$ startx}}
{{Cmd|$ startx}}
'''Note:''' The default OpenBox menu (right click on desktop) will have a lot of options that won't work because we didnt install anything else! Luckily XTerm will work if you added the package in the first step, and you can use that to add additional packages.
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].

Revision as of 06:56, 17 September 2022

Initial setup

Start by booting Alpine (see these instructions on how to do that)

Enable Community Repository

We need the Community Repository available for access to the OpenBox packages. Instructions are available on the Repositories page.

Install packages

Install openbox, xterm, and terminus font.

# apk add openbox xterm terminus-font

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

Configure xorg-server

On most systems, xorg should be able to autodetect all devices. However, you can still configure xorg-server manually by launching:

# setup-xorg-base

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 /home/<newuser>/.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 your X!

$ startx

Note: The default OpenBox menu (right click on desktop) will have a lot of options that won't work because we didnt install anything else! Luckily XTerm will work if you added the package in the first step, and you can use that to add additional packages.

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.