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软件的二进制分发是指事先已编译好二进制形式的软件包的发布形式,其长处是安装使用容易,缺点则是缺乏灵活性, ...
随机推荐
- 【Luogu4921】情侣?给我烧了!(组合计数)
[Luogu4921]情侣?给我烧了!(组合计数) 题面 洛谷 题解 很有意思的一道题目. 直接容斥?怎么样都要一个平方复杂度了. 既然是恰好\(k\)对,那么我们直接来做: 首先枚举\(k\)对人出 ...
- A1091. Acute Stroke
One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the re ...
- 使用WinDbg下的gflags工具导致程序无法执行
问题:the system cannot find file **.exe. 解决方法:开始-运行-输入regedit打开注册表编辑器,找到 HKEY_LOCAL_MACHINE/SOFTWARE/M ...
- (JAVA保留小数问题,基础)Probability hdu2131
Probability 链接:http://acm.hdu.edu.cn/showproblem.php?pid=2131 Time Limit: 3000/1000 MS (Java/Others) ...
- CalISBN.java
/****************************************************************************** * Compilation: javac ...
- Angular组件生命周期钩子
Angular会按以下顺序依次调用以下钩子(8个): ngOnChanges ngOnInit ngDoCheck ngAfterContentInit ngAfterContentChecked n ...
- RIP配置详解
RIP配置详解 一.RIP协议概述 1.RIP是Routing Information Protocol(路由信息协议)的简称: 2.RIP是一种基于距离矢量(Distance-Vector)算法的路 ...
- MYCAT分库分表
一.整体架构 1.192.168.189.130:mysql master服务,两个数据库db_store.db_user,db_store做了主从复制 db_user: 用户表users为分片表 数 ...
- jcaptcha和kaptcha验证码使用入门【转】
jcaptcha和kaptcha验证码使用入门 一.jcaptcha验证码使用 jcaptcha使用默认样式生成的验证码比较难以识别,所以需要自定义验证码的样式,包括,背景色.背景大小.字体.字体大小 ...
- ipython 编辑器 jupyter notebook如何将 ipynb 转成 py 并在 jupyter notebook 中继续引用
首先将 要被做成 module 的 ipython 代码 download as py 然后将 down 下来的 py 文件上传至 work 目录(也就是编写导入模块的py文件目录) 这部分 的 wo ...