2022-09-01 00:08:25 +02:00
# Alpine XFCE4 desktop setup: FF version
2022-08-29 04:01:14 +02:00
===========================================================
2022-09-18 16:52:36 +02:00
Alpine must be previously installed. For a WAYLAND crap desktop check [alpine-tutorial-desktop-wayland-try.md ](alpine-tutorial-desktop-wayland-try.md ).
2022-09-09 16:35:04 +02:00
For more extended verson of this document check [../../newbie/alpine-newbie-xfce-desktop.md ](../../newbie/alpine-newbie-xfce-desktop.md )
2022-08-29 04:01:14 +02:00
2022-09-02 20:08:16 +02:00
* [How to use this guide ](#how-to-use-this-guide )
2022-09-01 00:08:25 +02:00
* [Preparation ](#preparation-xfce4-aline )
2022-08-30 23:29:52 +02:00
* [setup OS configuration ](#setup-os-configuration )
* [setup system users ](#setup-system-users )
2022-09-01 00:08:25 +02:00
* [setup hardware support ](#setup-hardware-support )
* [setup audio and video ](#setup-audio-and-video )
* [Instalacion XFCE4 Alpine ](#instalacion-xfce4-apine )
2022-09-01 19:32:24 +02:00
* [Desktop multimedia and media devices ](#desktop-multimedia-and-media-devices )
* [Development ](#development )
2022-09-01 00:08:25 +02:00
* [Licensing clarifications ](#licensing-clarifications )
* [See also ](#see-also )
2022-08-29 04:01:14 +02:00
## preparation Xfce4 Alpine
2022-09-01 19:32:24 +02:00
**YOU MUST HAVE DIRECT WIRED INTERNET, if not ask for an ISO from VenenuX:** [https://t.me/alpine_linux/762 ](https://t.me/s/alpine_linux/762 )
2022-08-29 04:01:14 +02:00
2022-08-30 23:29:52 +02:00
#### setup OS configuration
2022-08-29 04:01:14 +02:00
2022-09-02 20:08:16 +02:00
Feels lost here? check [How to use this guide ](#how-to-use-this-guide ) section of this document
2022-08-29 04:01:14 +02:00
```
sed -i -r 's|#PermitRootLogin.*|PermitRootLogin no|g' /etc/ssh/sshd_config
2022-09-01 00:08:25 +02:00
rc-service sshd restart;rc-update add sshd default
2022-08-29 04:01:14 +02:00
hostname venenux-desktop
echo 'hostname="venenux-desktop"' > /etc/conf.d/hostname
echo "venenux-desktop" > /etc/hostname
cat > /etc/hosts < < EOF
127.0.0.1 venenux-desktop localhost.localdomain localhost
::1 localhost localhost.localdomain
EOF
cat > /etc/network/interfaces < < EOF
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
iface eth0 inet6 dhcp
pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_ra
EOF
2022-09-01 00:08:25 +02:00
rc-service networking restart;rc-update add networking boot
2022-08-29 04:01:14 +02:00
cat > /root/.cshrc < < EOF
unsetenv DISPLAY || true
HISTCONTROL=ignoreboth
EOF
2022-09-01 19:32:24 +02:00
cp /root/.cshrc /root/.bashrc
2022-08-29 04:01:14 +02:00
echo "root:toor" | chpasswd
apk add tcsh
add-shell '/bin/csh'
adduser -D -g "" -u 998 -h /opt/daru -s /bin/csh daru
echo "daru:daru" | chpasswd
rm -f /opt/daru/*
mkdir /opt/daru
cat > /opt/daru/.cshrc < < EOF
unsetenv DISPLAY
2022-09-01 19:32:24 +02:00
export PAGER=less
2022-08-29 04:01:14 +02:00
set autologout = 6
set prompt = "$ "
set history = 0
set ignoreeof
EOF
cp /opt/daru/.cshrc /opt/daru/.bashrc
2022-09-01 00:08:25 +02:00
chown -R daru:daru /opt/daru
2022-08-29 04:01:14 +02:00
cat > /etc/apk/repositories < < EOF
http://dl-4.alpinelinux.org/alpine/v$(cat /etc/alpine-release | cut -d'.' -f1,2)/main
http://dl-4.alpinelinux.org/alpine/v$(cat /etc/alpine-release | cut -d'.' -f1,2)/community
EOF
apk update
2022-09-01 00:08:25 +02:00
apk add man-db man-pages nano binutils coreutils readline \
sed attr dialog lsof less groff wget curl terminus-font \
2022-09-01 21:20:12 +02:00
zip p7zip xz tar cabextract cpio binutils lha acpi musl-locales musl-locales-lang \
e2fsprogs e2fsprogs-doc btrfs-progs btrfs-progs-doc exfat-utils exfat-utils-doc \
f2fs-tools f2fs-tools-doc dosfstools dosfstools-doc xfsprogs xfsprogs-doc jfsutils jfsutils-doc \
testdisk testdisk-doc partimage partimage-doc parted parted-doc util-linux zram-init
2022-08-29 04:01:14 +02:00
2022-09-01 19:41:16 +02:00
sed -i "s#.*consolefont.*=.*#consolefont="ter-132n.psf.gz"#g" /etc/conf.d/consolefont
setfont /usr/share/consolefonts/ter-132n.psf.gz
rc-update add consolefont boot
2022-08-29 04:01:14 +02:00
```
2022-09-01 19:32:24 +02:00
For more extended info check [../../newbie/alpine-newbie-xfce-desktop.md ](../../newbie/alpine-newbie-xfce-desktop.md#setup-os-configuration )
2022-08-29 04:01:14 +02:00
#### setup system users
```
2022-09-01 00:08:25 +02:00
apk add shadow shadow-uidmap doas musl-locales musl-locales-lang
2022-08-29 04:01:14 +02:00
2022-09-01 19:32:24 +02:00
cat > /tmp/tmp.tmp < < EOF
2022-08-29 04:01:14 +02:00
set history = 10000
2022-09-01 00:08:25 +02:00
set prompt = "$ "
2022-08-29 04:01:14 +02:00
EOF
mkdir /etc/skel
2022-09-01 19:32:24 +02:00
cat /tmp/tmp.tmp > /etc/skel/.cshrc
cat /tmp/tmp.tmp > /etc/skel/.bashrc
2022-08-29 04:01:14 +02:00
2022-08-30 00:01:01 +02:00
cat > /etc/skel/.Xresources < < EOF
Xft.antialias: 0
Xft.rgba: rgb
Xft.autohint: 0
Xft.hinting: 1
Xft.hintstyle: hintslight
EOF
2022-08-29 04:01:14 +02:00
cat > /etc/default/useradd < < EOF
# useradd defaults file
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=yes
EOF
cat > /etc/login.defs < < EOF
USERGROUPS_ENAB yes
SYSLOG_SU_ENAB yes
SYSLOG_SG_ENAB yes
SULOG_FILE /var/log/sulog
SU_NAME su
EOF
2022-09-01 00:08:25 +02:00
useradd -m -U -c "" -G wheel,input,disk,floppy,cdrom,dialout,audio,video,lp,netdev,games,users,ping general
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
for u in $(ls /home); do for g in disk lp floppy audio cdrom dialout video lp netdev games users ping; do addgroup $u $g; done;done
2022-08-29 04:01:14 +02:00
```
2023-05-07 21:28:52 +02:00
> **Warning** your user name must be `general`, you can put a "human name" as you wish, later.
2022-09-01 00:08:25 +02:00
For more details check [../../newbie/alpine-newbie-xfce-desktop.md ](../../newbie/alpine-newbie-xfce-desktop.md#setup-system-users )
#### setup hardware support
2022-08-29 04:01:14 +02:00
```
2022-09-01 21:20:12 +02:00
apk add acpi eudev eudev-doc eudev-rule-generator eudev-openrc pciutils util-linux zram-init \
2022-09-01 00:08:25 +02:00
fuse fuse-exfat-utils fuse-exfat avfs pcre2 cpufreqd bluez bluez-openrc \
2022-09-01 21:20:12 +02:00
wpa_supplicant dhcpcd chrony macchanger wireless-tools iputils linux-firmware \
2022-09-01 00:08:25 +02:00
networkmanager networkmanager-lang networkmanager-openvpn networkmanager-openvpn-lang
2022-08-29 04:01:14 +02:00
rc-update add udev
rc-update add acpid
2022-09-01 00:08:25 +02:00
rc-update add cpufreqd
rc-update add fuse
rc-update add bluetooth
rc-update add chrony
rc-update add wpa_supplicant
rc-update add networkmanager
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service networking restart
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service wpa_supplicant restart
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service bluetooth restart
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service udev restart
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service fuse restart
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service cpufreqd restart
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
```
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
For more details check [../../newbie/alpine-newbie-xfce-desktop.md ](../../newbie/alpine-newbie-xfce-desktop.md#setup-software-graphical-fonts-and-languajes )
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
#### setup audio and video
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
```
2022-09-09 15:54:10 +02:00
apk add xorg-server xorg-server-xnest xorg-server-xnest xorg-server-doc xf86-input-evdev libxinerama xrandr kbd setxkbmap \
2022-09-01 19:41:16 +02:00
mesa xinit mesa-dri-gallium xf86-video-dummy xf86-video-modesetting xf86-video-vesa xf86-input-libinput
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
apk add libxinerama xrandr kbd setxkbmap bluez bluez-openrc \
dbus dbus-x11 elogind elogind-openrc lightdm lightdm-lang lightdm-gtk-greeter \
polkit polkit-openrc polkit-elogind udisks2 udisks2-lang \
gvfs gvfs-fuse gvfs-archive gvfs-dav gvfs-nfs gvfs-lang \
2022-09-09 15:54:10 +02:00
networkmanager-elogind
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
dbus-uuidgen > /var/lib/dbus/machine-id
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-update add dbus
rc-update add elogind
rc-update add polkit
rc-update add lightdm
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
apk add font-noto-all ttf-dejavu ttf-linux-libertine ttf-liberation \
font-bitstream-type1 font-bitstream-100dpi font-bitstream-75dpi \
font-adobe-utopia-type1 font-adobe-utopia-75dpi font-adobe-utopia-100dpi \
font-isas-misc
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
apk add alsa-utils alsa-plugins alsa-tools alsaconf \
pipewire pipewire-pulse pipewire-alsa pipewire-spa-bluez
2022-08-29 04:01:14 +02:00
cat > /etc/security/limits.d/audio-limits.conf < < EOF
@audio - memlock 256
@audio - nice -11
@audio - rtprio 88
EOF
2022-09-01 00:08:25 +02:00
rc-service dbus restart
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service elogind restart
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service polkit restart
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service lightdm restart
2022-08-29 04:01:14 +02:00
```
2023-05-07 21:28:52 +02:00
> **Warning** your user name must be `general`, you can put a "human name" as you wish, later.
> **Note** check for some xf86-video packages like `xf86-video-intel`, `xf86-video-amdgpu`, `xf86-video-noveau`, `xf86-video-ati` or `xf86-video-nv`
2022-09-01 00:08:25 +02:00
2022-08-29 04:01:14 +02:00
## instalacion Xfce4 Alpine
2022-09-01 00:08:25 +02:00
Since Alpine 3.13 the XFCE4 desktop its GTK3 for 32bit devices its better to use alpine 3.10
or 3.12 that uses GTK2 for almost all the programs.
2022-08-29 04:01:14 +02:00
```
2022-09-01 00:08:25 +02:00
apk add gtk-update-icon-cache hicolor-icon-theme paper-gtk-theme adwaita-icon-theme
2022-08-29 04:01:14 +02:00
2022-09-09 15:54:10 +02:00
apk add numix-icon-theme numix-themes numix-themes-gtk2 numix-themes-gtk3 numix-themes-metacity numix-themes-openbox numix-themes-xfce4-notifyd numix-themes-xfwm4
2022-09-01 00:08:25 +02:00
apk add xfce4 xfce4-session xfce4-panel xfce4-terminal xarchiver mousepad \
xfwm4-themes xfce-polkit xfce4-skel xfce4-power-manager xfce4-settings \
xfce4-clipman-plugin xfce4-xkb-plugin xfce4-screensaver xfce4-screenshooter xfce4-taskmanager \
xfce4-panel-lang xfce4-clipman-plugin-lang xfce4-xkb-plugin-lang xfce4-screenshooter-lang \
xfce4-taskmanager-lang xfce4-battery-plugin-lang xfce4-power-manager-lang xfce4-settings-lang \
gvfs gvfs-fuse gvfs-archive gvfs-afp gvfs-afp gvfs-afc gvfs-cdda gvfs-gphoto2 gvfs-mtp \
network-manager-applet network-manager-applet-lang vte3 \
libreoffice libreoffice-gnome evince evince-lang evince-doc
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service networking restart
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service wpa_supplicant restart
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
rc-service networkmanager restart
2022-08-29 04:01:14 +02:00
2022-08-30 23:29:52 +02:00
rc-service lightdm restart
2022-08-29 04:01:14 +02:00
```
2022-09-09 15:54:10 +02:00
#### desktop integration and device media
```
apk add xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-lang xdg-desktop-portal-gtk xdg-desktop-portal-gtk-lang
```
2022-09-01 19:32:24 +02:00
#### Desktop multimedia and media devices
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
```
apk add gst-plugins-base gst-plugins-bad gst-plugins-ugly gst-plugins-good gst-plugins-good-gtk \
libcanberra-gtk2 libcanberra-gtk3 libcanberra-gstreamer wxgtk-media wxgtk3-media wxgtk-lang \
mediainfo ffmpeg ffmpeg-doc ffmpeg-libs lame lame-doc rtkit rtkit-doc \
mpv mpv-doc deadbeef deadbeef-lang libxinerama xrandr
2022-08-29 04:01:14 +02:00
2022-09-01 00:08:25 +02:00
for u in $(ls /home); do for g in plugdev audio cdrom dialout video netdev; do addgroup $u $g; done;done
2022-08-29 04:01:14 +02:00
2022-08-30 00:01:01 +02:00
cat > /etc/network/interfaces < < EOF
auto lo
iface lo inet loopback
EOF
2022-09-01 19:41:16 +02:00
service networking restart
service wpa_supplicant restart
service networkmanager restart
2022-08-29 04:01:14 +02:00
```
2022-08-30 23:29:52 +02:00
2022-09-01 19:32:24 +02:00
#### development
2022-08-30 23:29:52 +02:00
```
2022-09-01 00:08:25 +02:00
apk add pkgconf make cmake gcc gcc-gdc gcc-go g++ gcc-objc gcc-doc \
patch patch-doc patchutils patchutils-doc diffutils diffutils-doc \
git git-cvs git-svn github-cli git-diff-highlight git-doc \
subversion subversion-doc mercurial mercurial-doc \
geany geany-plugins-lang geany-plugins-addons geany-plugins-geanyextrasel \
geany-plugins-overview geany-plugins-geanyvc geany-plugins-treebrowser \
geany-plugins-tableconvert geany-plugins-spellcheck geany-plugins-shiftcolumn \
geany-plugins-utils geany-lang \
terminator terminator-lang tmux screen meld meld-lang
2022-08-30 23:29:52 +02:00
```
2022-09-01 00:08:25 +02:00
## How to use this guide
2022-08-30 23:29:52 +02:00
2022-09-02 20:08:16 +02:00
This guide **structure all the commands in blocks, each block its separated by a line spaced** ,
so you must **type each line as is.. and hit enter** , so you noted that then you
typed each separated clocks of commands, copy/type only blocks separated by an empty line,
all new(next) lines are made by just enter. the terminal will detect if must execute or not.
**If you have another computer or gui**, try to use SSH client like putty or just in terminal (MAC or Linux) do:
2022-08-30 23:29:52 +02:00
2022-09-01 00:08:25 +02:00
1. at the Alpine installation: `sed -i 's|.*PermitRootLogin.*|PermitRootLogin yes|g' /etc/ssh/sshd_config;service sshd restart`
2. at the other OS just connect: `ssh -l root <ip>` change "`< ip > `" with the address of your device.
3. copy each separated by empty line, block of command, copy only blocks separate by empty line
4. and paste each separated by empty line block in the remnote (ssh), do not paste all the blocks at same time!
2022-08-30 23:29:52 +02:00
2023-05-07 21:28:52 +02:00
> **Warning** Some Linux or/and Mac terminals have security cut/paste locks, so
2022-09-01 00:08:25 +02:00
if you paste, the first line will be preceded by garbage, check always the first char of your paste.
2022-08-30 23:29:52 +02:00
2023-05-07 21:28:52 +02:00
> **Warning** after finish, rerun: `sed -i -r 's|.*PermitRootLogin.*|PermitRootLogin no|g' /etc/ssh/sshd_config`
2022-09-01 00:08:25 +02:00
and restart ssh `service sshd restart` becouse security implications.
2022-08-30 23:29:52 +02:00
2022-09-02 20:08:16 +02:00
#### hardware used
| item | minimal feature | Extra recommendations |
| ---------------- | ----------------- | ---------------------------------- |
| RAM MB | 1Gb DDR1 | 6Gb DDR3, web browsers consumes so much |
| CPU | intel Dual Core | Not necesary |
| RAM CPU | 2Mb (L2) 4kb/L1 | |
| GPU | intel G41 | Radeon X1200 For web browsers and modern apps will be need |
| RAM GPU | 256Mb | 1Gb For web browsers and modern apps will be need |
| Storage | 120Gb HDD WD | 256Gb SSD are mandatory for speed |
| ARCH | 32bits (i386/arm6)| 64bits (amd64) mandatory for most modern apps unfortunatelly |
| Audio | AC 97 | HD audio and HDMI audio are a mess |
#### usernames
| item | name | password |
| --------- | ------------------- | -------- |
| remote | daru | daru |
| admin | root | toor |
| user | general | general |
2022-09-01 00:08:25 +02:00
## Licensing clarifications
2022-08-30 23:29:52 +02:00
2022-09-01 00:08:25 +02:00
**CC BY-NC-SA**: the project allows reusers to distribute, remix, adapt, and build upon the material
in any medium or format for noncommercial purposes only, and only so long as attribution is given
to the creators involved. If you remix, adapt, or build upon the material, you must license the modified
material under identical terms, includes the following elements:
2022-08-30 23:29:52 +02:00
2022-09-01 00:08:25 +02:00
* **BY** – Credit must be given to the creator of each content respectivelly, starting at the first contributor.
* **NC** – Only noncommercial uses of the work are permitted, with exceptions if you fill an issue here!
* **SA** – Adaptations must be shared under the same terms, you must obey this terms and do not change it.
2022-08-30 23:29:52 +02:00
2022-09-02 20:08:16 +02:00
https://codeberg.org/alpine/alpine-wiki/src/branch/main#license
2022-09-01 00:08:25 +02:00
## See also
2022-08-30 23:29:52 +02:00
2022-09-01 00:08:25 +02:00
* [README.md ](README.md )
2022-09-09 16:35:04 +02:00
* [alpine-newbie-install.md ](../../newbie/alpine-newbie-install.md )
* [alpine-tutorial-desktop-wayland-try.md ](alpine-tutorial-desktop-wayland-try.md )