qemunet:install:alpine
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| qemunet:install:alpine [2018/02/01 11:38] – orel | qemunet:install:alpine [2024/03/18 15:06] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| - | Then, you can configure | + | Then, you can add Alpine |
| <code bash qemunet.cfg> | <code bash qemunet.cfg> | ||
| Line 28: | Line 28: | ||
| FS[alpine]=" | FS[alpine]=" | ||
| QEMUOPT[alpine]=" | QEMUOPT[alpine]=" | ||
| - | # URL[alpine]=" | ||
| </ | </ | ||
| ==== Install Alpine Packages ==== | ==== Install Alpine Packages ==== | ||
| - | | + | |
| Once Alpine image is started with Qemu... It will by default launch DHCP client as defined in "/ | Once Alpine image is started with Qemu... It will by default launch DHCP client as defined in "/ | ||
| + | |||
| + | In order to use the [[https:// | ||
| + | |||
| + | <code / | ||
| + | #/ | ||
| + | http:// | ||
| + | http:// | ||
| + | http:// | ||
| + | </ | ||
| + | |||
| + | |||
| + | Then: | ||
| + | |||
| + | $ apk upgrade --update-cache --available | ||
| + | $ sync | ||
| + | $ reboot | ||
| <code bash> | <code bash> | ||
| Line 40: | Line 55: | ||
| $ apk upgrade | $ apk upgrade | ||
| $ apk add bash bash-doc bash-completion | $ apk add bash bash-doc bash-completion | ||
| - | $ apk add nano | + | $ apk add nano emacs-nox |
| $ apk add iputils iptables iproute2 | $ apk add iputils iptables iproute2 | ||
| $ ... | $ ... | ||
| Line 51: | Line 66: | ||
| - edit ''/ | - edit ''/ | ||
| - disable DHCP... edit / | - disable DHCP... edit / | ||
| - | - enable startup script: '' | + | - enable startup script: '' |
| Line 61: | Line 76: | ||
| </ | </ | ||
| - | In order to use the [https:// | + | ==== Install Alpine Desktop ==== |
| - | | + | Let's create a new QemuNet image called " |
| - | $ sync | + | |
| - | $ reboot | + | $ cp --sparse=auto alpine.img alpinex.img |
| + | |||
| + | Then, add these lines in qemunet.cfg: | ||
| + | |||
| + | <code bash qemunet.cfg> | ||
| + | # linux alpinex | ||
| + | SYS[alpinex]=" | ||
| + | FS[alpinex]=" | ||
| + | QEMUOPT[alpinex]=" | ||
| + | </ | ||
| + | |||
| + | Then run this image in raw mode: | ||
| + | |||
| + | $ ./ | ||
| + | |||
| + | First enable DHCP in / | ||
| + | |||
| + | To enable french keyboard: | ||
| + | |||
| + | | ||
| + | $ setxkbmap fr # for french keyboards | ||
| + | |||
| + | Then install Xorg and XFCE desktop environment: | ||
| + | |||
| + | $ setup-xorg-base | ||
| + | $ apk add alpine-desktop | ||
| + | $ apk add faenza-icon-theme | ||
| + | $ apk add xf86-input-mouse xf86-input-keyboard # useful? | ||
| + | $ apk add xf86-video-modesetting # recommended for Qemu guests? | ||
| + | $ apk add dbus lxdm sudo | ||
| + | $ rc-update | ||
| + | $ rc-update add udev ; rc-service udev start | ||
| + | |||
| + | Add a desktop user (as sudoer): | ||
| + | |||
| + | $ adduser toto # password toto | ||
| + | $ addgroup sudo | ||
| + | $ addgroup toto sudo | ||
| + | $ emacs / | ||
| + | |||
| + | Launch the XFCE4 desktop with LXDM: | ||
| + | |||
| + | $ rc-service lxdm start # don't forget to select xfce session, before to log in! | ||
| + | |||
| + | If it works... quit XFCE | ||
| + | |||
| + | $ rc-update add lxdm | ||
| + | $ reboot | ||
| + | |||
| + | To enable " | ||
| + | |||
| + | <code text / | ||
| + | Section " | ||
| + | Identifier " | ||
| + | MatchIsKeyboard " | ||
| + | Option " | ||
| + | EndSection | ||
| + | </ | ||
| + | |||
| + | Try to get lightweight system by replacing " | ||
| + | |||
| + | |||
| + | __More details:__ http:// | ||
| ==== Biblio ==== | ==== Biblio ==== | ||
qemunet/install/alpine.1517485111.txt.gz · Last modified: 2024/03/18 15:05 (external edit)
