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软件的二进制分发是指事先已编译好二进制形式的软件包的发布形式,其长处是安装使用容易,缺点则是缺乏灵活性, ...
随机推荐
- 【BZOJ4259】残缺的字符串(FFT)
[BZOJ4259]残缺的字符串(FFT) 题面 给定两个字符串\(|S|,|T|\),两个字符串中都带有通配符. 回答\(T\)在\(S\)中出现的次数. \(|T|,|S|<=300000\ ...
- 【ARC065E】??
Description 链接 Solution 问题其实就是从一个点出发,每次可以走与其曼哈顿距离恰好为一个常数\(d\)的点 显然不可能一一走完所有的边,这样复杂度下界至少是\(O(ans)\) 我 ...
- android + eclipse + 后台静默安装(一看就会)
首先要说到三个类. import android.content.pm.IPackageInstallObserver; import android.content.pm.IPackageIns ...
- (转)Java transient关键字使用小记
背景:最近在看java底层的源码实现,看到一个关键字,不是很熟悉,专门做个记录. 原文出处:http://www.importnew.com/21517.html#comment-637072 哎,虽 ...
- Java: 在不同windows主题下,JFrame窗口设置最佳高度的解决方案
//设置窗口的大小,无论使用怎样的windows主题,都能灵活的应对,显示合适的窗口大小,一定要在JFrame.setVisible(true)之前调用, //替代传统的frame.setSize(w ...
- javascript 字符串的连接和截取
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- 013、Dockerfile构建镜像(2019-01-02 周三)
参考https://www.cnblogs.com/CloudMan6/p/6830067.html Dockerfile构建镜像过程分析 root@docker-lab:~/111# ls ...
- ubuntu上zip格式解压乱码解决
在windows上压缩的文件,是以系统默认编码中文来压缩文件.由于zip文件中没有声明其编码,所以linux上的unzip一般以默认编码解压,中文文件名会出现乱码. 虽然2005年就有人把这报告为bu ...
- CSS cursor 属性改变鼠标的样式
可能的值 值 描述 url 需使用的自定义光标的 URL. 注释:请在此列表的末端始终定义一种普通的光标,以防没有由 URL 定义的可用光标. default 默认光标(通常是一个箭头) auto 默 ...
- luogu 1631 序列合并
priority_queue的使用,注意 a[1]+b[1],a[1]+b[2],a[1]+b[3],a[1]+b[4].......a[1]+b[n] a[2]+b[1]......... .. a ...