lxde 的安装和卸载以及注意事项,lubuntu
安装:
$ sudo apt install lxde
$ sudo apt install lxde-common
安装完毕后,可能没法关机及logout,可以使用如下安装:
$ sudo apt install lxsession-logout
如果还是不能关机和logout,则用下面的试试:
$ sudo apt install lxde-logout
如果需要看是否要移除 clipit,它可能带有不安全因素。
如果由于ubuntu版本太老而无法用apt-get安装,可以先加入:
sudo add-apt-repository ppa:lxde/ppa
sudo apt-get update
lxde 下交换ctrl及caps lock的方法:
Open up (lx)terminal and type in the one you want:
# 1. Lubuntu Caps Lock -> Super :
$ setxkbmap -option caps:super
# 2. Left Control <-> Caps Lock :
setxkbmap -option ctrl:swapcaps
# 3. Caps Lock -> Control :
setxkbmap -option ctrl:nocaps
Of course this doesn't get saved persistantly on reboot, so you have to run this for every boot.
I've placed a script called "caps-killer.sh" in /usr/bin/caps-killer.sh and made it run on boot by running:
gksudo leafpad /etc/xdg/lxsession/Lubuntu/autostart
...and inserted this at the end:
@/usr/bin/caps-killer.sh
lxde 自动开启numlock的方法:
首先查看下当前使用的是哪种 Display Manager,命令如下:
cat /etc/X11/default-display-manager
输出大概率应该是 "/usr/sbin/lightdm", 如果不是,则在登录前无法打开numlock(需另寻其它方法)。
安装 numlock 包:
apt-get install numlockx
在登录前打开numlock,则修改 /etc/lightdm/lightdm.conf ,在该文件的 "[SeatDefaults]" 章节下添加如下行,如果你的 Display Manager 不是 lightDM,则需另寻方法:
greeter-setup-script=/usr/bin/numlockx on
此时,登录前已经打开了numlock,但登录后,numlock会启动熄灭,如需要保持numlock的打开状态,则需要:
在登录后开启,你需要在 /etc/xdg/lxsession/LXDE/autostart 文件添加如下行:
/usr/bin/numlockx on
注意,不要在行首添加 "@",它表示检查状态变化并不断执行该命令,也就是说如果你加上它,则numlockx会在numlock灯灭的时候自动重启,着牙你永远没法关闭numlock。
lxde 右下方的日期时间格式如下:
- %a - The abbreviated weekday name (Sun)
- %A - The full weekday name (Sunday)
- %b - The abbreviated month name (Jan)
- %B - The full month name (January)
- %d - Day of the month (01..31)
- %e - Day of the month (1..31)
- %H - Hour of the day, 24-hour clock (00..23)
- %I - Hour of the day, 12-hour clock (01..12)
- %l - Hour of the day ()
- %j - Day of the year (001..366)
- %m - Month of the year (01..12)
- %M - Minute of the hour (00..59)
- %p - Meridian indicator (AM or PM)
- %S - Second of the minute (00..60)
- %w - Day of the week (Sunday is 0, 0..6)
- %y - Year without a century (00..99)
- %Y - Year with century
- %Z - Time zone name
- %% - Literal % character
我一般这样使用:
%y年%b%d日 %R
lxde 的安装和卸载以及注意事项,lubuntu的更多相关文章
- Windows下Redis安装配置和使用注意事项
Windows下Redis安装配置和使用注意事项 一:下载 下载地址: https://github.com/microsoftarchive/redis/releases 文件介绍: 本文以3.2. ...
- Oracle9i的详细安装与卸载步骤(有图解)
Oracle9i的安装和卸载详解 本章将以Windows操作系统为例讲述Oracle9i数据库的安装 ...
- C#创建、安装、卸载、调试Windows Service(Windows 服务)的简单教程
前言:Microsoft Windows 服务能够创建在它们自己的 Windows 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面.这 ...
- 教你一招:解决win10/win8.1系统在安装、卸载软件时出现2502、2503错误代码的问题
经常遇到win10/win8.1系统在安装.卸载软件时出现2502.2503错误代码的问题. 解决办法: 1.打开任务管理器后,切换到“详细信息”选项卡,找到explore.exe这个进程,然后结束进 ...
- Android随笔之——静默安装、卸载
随笔之所以叫随笔,就是太随意了,说起来,之前的闹钟系列随笔还没写完,争取在十月结束之前找时间把它给写了吧.今天要讲的Android APK的静默安装.卸载.网上关于静默卸载的教程有很多,更有说要调用隐 ...
- Windows服务安装与卸载
Windows服务安装与卸载,使用到了InstallUtil.exe 安装: c: cd "C:\Windows\Microsoft.NET\Framework\v4.0.30319&quo ...
- Windows服务一:新建Windows服务、安装、卸载服务
Windows 服务(即,以前的 NT 服务)使您能够创建在它们自己的 Windows 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面 ...
- ubuntu下apache2 安装 配置 卸载 CGI设置 SSL设置
一.安装.卸载apache2 apache2可直接用命令安装 sudo apt-get install apache2 卸载比较麻烦,必须卸干净,否则会影响ap ...
- linux软件包的安装和卸载
这里分两种情况讨论:二进制包和源代码包. 一.linux二进制分发软件包的安装和卸载 Linux软件的二进制分发是指事先已编译好二进制形式的软件包的发布形式,其长处是安装使用容易,缺点则是缺乏灵活性, ...
随机推荐
- 教你如何开启/关闭ubuntu防火墙
目录 [隐藏] 1 安装方法 2 使用方法 3 推荐设置 4 详细使用说明 安装方法 sudo apt-get install ufw 当然,这是有图形界面的(比较简陋),在新立得里搜索gufw试 ...
- javascript面向对象精要第二章函数整理精要
- js数组作为参数用ajax向后台传参数
/*前台往后台传参数时,可以这样写*/ var chessId = "123"; var i=0; var data = []; /*添加单个参数*/ data.push({nam ...
- How the Bitcoin protocol actually works
sklearn实战-乳腺癌细胞数据挖掘(博客主亲自录制视频教程) https://study.163.com/course/introduction.htm?courseId=1005269003&a ...
- wkhtmltopdf 安装过程不包含php扩展部分
Qt Webkit HTML Converter Install wkhtmltopdf This page documents installation of wkhtmltopdf on Gent ...
- 学习windows编程 day5 之 区域裁剪
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { HDC hdc; PAINTSTRU ...
- Java POI 读取word文件
Apache POI是Apache软件基金会的开放源码函式库,POI提供API给Java程序对Microsoft Office格式档案读和写的功能. 1.读取word 2003及word 2007需要 ...
- Java编程思想 学习笔记9
九.接口 接口和内部类为我们提供了一种将接口与实现分离的更加结构化的方法. 1.抽象类和抽象方法 抽象类是普通的类与接口之间的一种中庸之道.创建抽象类是希望通过这个通用接口操纵一系列类. Java提 ...
- 使用bootstrap的相关配置
<html> <head> <title>java微辅导</title> <meta charset="UTF-8"/> ...
- 008、Docker 组件如何协作(2018-12-25 周二)
参考https://www.cnblogs.com/CloudMan6/p/6774519.html 以httpd为例,介绍Docker组件间如何协作 root@docker-lab:~# d ...