安装:

$ 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的更多相关文章

  1. Windows下Redis安装配置和使用注意事项

    Windows下Redis安装配置和使用注意事项 一:下载 下载地址: https://github.com/microsoftarchive/redis/releases 文件介绍: 本文以3.2. ...

  2. Oracle9i的详细安装与卸载步骤(有图解)

       Oracle9i的安装和卸载详解      本章将以Windows操作系统为例讲述Oracle9i数据库的安装                                           ...

  3. C#创建、安装、卸载、调试Windows Service(Windows 服务)的简单教程

    前言:Microsoft Windows 服务能够创建在它们自己的 Windows 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面.这 ...

  4. 教你一招:解决win10/win8.1系统在安装、卸载软件时出现2502、2503错误代码的问题

    经常遇到win10/win8.1系统在安装.卸载软件时出现2502.2503错误代码的问题. 解决办法: 1.打开任务管理器后,切换到“详细信息”选项卡,找到explore.exe这个进程,然后结束进 ...

  5. Android随笔之——静默安装、卸载

    随笔之所以叫随笔,就是太随意了,说起来,之前的闹钟系列随笔还没写完,争取在十月结束之前找时间把它给写了吧.今天要讲的Android APK的静默安装.卸载.网上关于静默卸载的教程有很多,更有说要调用隐 ...

  6. Windows服务安装与卸载

    Windows服务安装与卸载,使用到了InstallUtil.exe 安装: c: cd "C:\Windows\Microsoft.NET\Framework\v4.0.30319&quo ...

  7. Windows服务一:新建Windows服务、安装、卸载服务

    Windows 服务(即,以前的 NT 服务)使您能够创建在它们自己的 Windows 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面 ...

  8. ubuntu下apache2 安装 配置 卸载 CGI设置 SSL设置

    一.安装.卸载apache2      apache2可直接用命令安装           sudo apt-get install apache2      卸载比较麻烦,必须卸干净,否则会影响ap ...

  9. linux软件包的安装和卸载

    这里分两种情况讨论:二进制包和源代码包. 一.linux二进制分发软件包的安装和卸载 Linux软件的二进制分发是指事先已编译好二进制形式的软件包的发布形式,其长处是安装使用容易,缺点则是缺乏灵活性, ...

随机推荐

  1. 导入Spreadsheet到sharepoint2013报错

    当导入Spreadsheet到sharepoint2013会报下面的错: an unexpected error has occurred -2147467259 The specified file ...

  2. 「THUSCH 2017」大魔法师 解题报告

    「THUSCH 2017」大魔法师 狗体面太长,帖链接了 思路,维护一个\(1\times 4\)的答案向量表示\(A,B,C,len\),最后一个表示线段树上区间长度,然后每次的操作都有一个转移矩阵 ...

  3. 二分查找、two points、排序

    二分查找 1.查找某元素.循环条件 low <= high,最终结果位mid, 如果查询失败则返回-1. int binSearch(int num[], int low, int high, ...

  4. 【洛谷P1273】有线电视网

    题目大意:给定一棵 N 个节点的有根树,1 号节点为根节点,叶子节点有点权,每条边有边权,每经过一条边都减去该边权,每经过一个节点都加上该点权,求在保证权值和为非负数的前提下最多能经过多少个叶子节点. ...

  5. Eclipse编辑jsp、js文件时卡死现象的解决办法汇总

    使用Eclipse编辑jsp.js文件时,经常出现卡死现象,在网上百度了N次,经过N次优化调整后,卡死现象逐步好转,具体那个方法起到作用,不太好讲.将所有用过的方法罗列如下: 1.取消验证 windo ...

  6. Educational Codeforces Round 42 (Rated for Div. 2) D. Merge Equals

    http://codeforces.com/contest/962/problem/D D. Merge Equals time limit per test 2 seconds memory lim ...

  7. Ruler.java

    /****************************************************************************** * Compilation: javac ...

  8. dubbo序列化

    序列化:把对象转换为字节序列的过程称为对象的序列化. 反序列化:把字节序列恢复为对象的过程称为对象的反序列化. dubbo 支持多种序列化方式并且序列化是和协议相对应的.比如:dubbo协议的 dub ...

  9. 解决audio和video在手机端无法自动播放问题

    各大浏览器都为了节省流量,做出了优化,在用户没有行为动作时(交互)不予许自动播放 <audio src="music/bg.mp3" autoplay loop contro ...

  10. Linux 开机启动图形界面,shell界面

    查看当前启动模式 # systemctl get-default 更改模式命令: systemctl set-default graphical.target由命令行模式更改为图形界面模式 syste ...