alpine linux 真是不错。小巧、迅捷!
官方的各个版本的alpine镜像内没有带图形环境的。那我们如何构建自己的桌面图形环境呢?
其实:这个问题,在起官网的wiki内有指南,我们根据那些相关文档就可以自己搭建!
-------------------------------------------------------------------------------------------------------------------------------
http://wiki.alpinelinux.org/wiki/Tutorials_and_Howtos 之第5章 : 5 Desktop Environment
里面详细描述了以下桌面环境的安装配置,我们参照执行即可:
Desktop Environment
Awesome(wm) Setup
EyeOS (Cloud Computing Desktop)
Gnome Setup
MATE Setup
Oneye (Cloud Computing Desktop - Dropbox Alternative)
Owncloud (Cloud Computing Desktop - Dropbox Alternative)
(to be merged with OwnCloud (Your personal Cloud for storing and sharing your data on-line))
Remote Desktop Server
Suspend on LID close
XFCE Setup and Desktop Ideas
Installing Adobe flash player for Firefox
Sound Setup
Printer Setup
Default applications
-------------------------------------------------------------------------------------------------------------------------------
我成功搭建了 mate、xfce4、remote desktop server (隐含 vino VNC 环境)环境。
提示:
1: 安装xfce4桌面环境,特别要注意需要安装 xfce4-notifyd 组件,否则应用的弹出信息看不到! 比如后续安装xrdp就一致无法成功,原因在此。
2:必须安装一个linux的x登录shell环境:如 lxdm,否则只能手工startx。todo:alpine内容如何直接执行startx代替默认的openrc 文本登录界面,待解决。
3:lxdm安装后,需要通过rc-update add lxdm服务,否则如同2,不能自动打开lxdm的登录界面
4:lxdm 如何让root或其他用户登录,并自动运行某些服务或程序?
修改:/etc/lxdm/lxdm.conf 文件实现自动用户登录
1 [base]
2 ## uncomment and set autologin username to enable autologin3 autologin=root4
5 ## uncomment and set timeout to enable timeout autologin,
6 ## the value should >=5
7 # timeout=10
8
9 ## default session or desktop used when no systemwide config10 # session=/usr/bin/startlxde11
12 ## uncomment and set to set numlock on your keyboard13 # numlock=0
14
15 ## set this if you don't want to put xauth file at ~/.Xauthority16 # xauth_path=/tmp17
18 # not ask password for users who have empty password19 # skip_password=1
20
修改:/etc/lxdm/PostLogin 文件实现登录用户后,自动运行服务或程序。我自动开启xrdp服务的配置如下
#!/bin/sh
#
# Note: this is a sample and will not be run as is.
rc-service xrdp restart
rc-service xrdp-sesman restart
rc-service vino restart
ok。到此结束!
本文介绍了如何在Alpine Linux上搭建图形桌面环境,包括Mate和Xfce4等,强调了安装xfce4时需注意的xfce4-notifyd组件,以及设置自动登录和启动服务的方法。通过修改配置文件实现LXDМ自动登录和启动xrdp、vino服务。
2424

被折叠的 条评论
为什么被折叠?



