0%

手动给Debian安装xfce桌面记录

安装桌面

  • sudo apt install xfce4-session
  • 然后执行,报错exec :xinit :not found
  • 然后执行sudo apt install xinit xserver-xorg
  • 报错Failed to execute child process "dbus-launch"(图形界面报错)
  • 执行sudo apt install dbus-x11
  • 但是此时再执行startxfce4出现黑屏,无响应,无光标
  • 假如无法通过键盘切换回tty,可以用ssh远程控制命令行关闭桌面
  • 关闭桌面的命令是killall xfce4-session
  • 查找进程:ps -ef
  • 意外可以使用的方法sudo apt-get install xorg slim xfce4,但是缺失了一些功能

    一些shell技巧

  • |:输入了如下指令:command0 | command1,则command0的输出流入到command1中
  • ||:与&&的作用正好相反,是在执行到成功的指令时停止后续指令的执行command0 || command1,如果command0执行成功,则command1不再执行。如果command0执行失败,则继续执行command1
  • &:输入了如下指令:command0 &,则执行command0并使其进入后台
  • &&:输入了如下指令:command0 && command1,则先从command0开始执行。如果command0执行失败,则不再继续执行command1。如果执行command0执行成功,则继续执行command1。
    所以,&&的作用是在执行到失败的指令时停止后续指令的执行