Alpine Linux:如何配置GUI的图形桌面环境:x Desktop Environment

alpine linux 真是不错。小巧、迅捷!

官方的各个版本的alpine镜像内没有带图形环境的。那我们如何构建自己的桌面图形环境呢?

其实:这个问题,在起官网的wiki内有指南,我们根据那些相关文档就可以自己搭建!

-------------------------------------------------------------------------------------------------------------------------------

http://wiki.alpinelinux.org/wiki/Tutorials_and_Howtos   之第5章 :  Desktop Environment

里面详细描述了以下桌面环境的安装配置,我们参照执行即可:

Desktop Environment

-------------------------------------------------------------------------------------------------------------------------------

 我成功搭建了 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 autologin                                                     
 3 autologin=root                                                                                                  
 4                                                                                                                 
 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 config                                                    
10 # session=/usr/bin/startlxde                                                                                    
11                                                                                                                 
12 ## uncomment and set to set numlock on your keyboard                                                            
13 # numlock=0                                                                                                     
14                                                                                                                 
15 ## set this if you don't want to put xauth file at ~/.Xauthority                                                
16 # xauth_path=/tmp                                                                                               
17                                                                                                                 
18 # not ask password for users who have empty password                                                            
19 # 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。到此结束!

 

 

 

转载于:https://www.cnblogs.com/jinzhenshui/p/8418281.html

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值