Openbox: Difference between revisions

From Alpine Linux
No edit summary
(Updated and simplified)
Line 3: Line 3:


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


Uncomment {{codeline|http://<url>/alpine/<version>/community}} in {{path|/etc/apk/repositories}}. For example:
= Install packages =
{{cat|/etc/apk/repositories|<nowiki># /etc/apk/repositories
Install openbox, xterm, and terminus font.<BR>


Depending on your network speed, it might take a few minutes.


The following commands will add the main and community repositories for the version you're using to APK, as well as the edge/testing repository.
= Configure xorg-server =
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}}


You can manually add them to the '''/etc/apk/repositories''' file if you prefer.
== 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.<BR>
{{Cmd|# rc-update add acpid}}


The command '''apk update''' should be run after updating the file in either method.
= Set openbox as the default WM =
{{Cmd|$ echo 'openbox-session' >> /home/<newuser>/.xinitrc}}


{{cmd|cat > /etc/apk/repositories << EOF; $(echo)
= Copy the config files to your home folder =
<nowiki>
{{Cmd|$ mkdir /home/<newuser>/.config}}
http://dl-cdn.alpinelinux.org/alpine/v$(cat /etc/alpine-release | cut -d'.' -f1,2)/main
{{Cmd|$ cp -r /etc/xdg/openbox ~/.config}}
http://dl-cdn.alpinelinux.org/alpine/v$(cat /etc/alpine-release | cut -d'.' -f1,2)/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing
</nowiki>
EOF


apk update}}
= Edit openbox settings =
You can now edit the openbox settings for your user by editing the files located in
{{Cmd|~/.config/openbox}}


These following commands should set up Xorg with Openbox and some necessary packages.
The OpenBox configuration details can he studied on the [http://openbox.org/wiki/Help:Contents#Configuration OpenBox wiki].  


{{cmd|setup-xorg-base openbox terminator slim dbus-x11 xf86-video-intel
= Start your X! =
xf86-video-ati xf86-video-amdgpu xf86-input-mouse xf86-input-keyboard setxkbmap
{{Cmd|$ startx}}
 
rc-update add dbus
 
rc-service dbus start
 
apk add fuse gvfs gvfs-mtp gvfs-lang gvfs-archive gvfs-fuse gvfs-gphoto2
 
rc-update add fuse
 
apk add faenza-icon-theme
}}
 
This will install lot of packages as gtk, cairo, python, perl, and some xorg modules for device user interaction.
 
{{cmd|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
}}

Revision as of 01:30, 18 November 2021

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 Enable Community Repository page.

Install packages

Install openbox, xterm, and terminus font.

Depending on your network speed, it might take a few minutes.

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

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 'openbox-session' >> /home/<newuser>/.xinitrc

Copy the config files to your home folder

$ mkdir /home/<newuser>/.config

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

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 he studied on the OpenBox wiki.

Start your X!

$ startx