🗒️Ubuntu 24.04 LTS配置开发环境
2025-1-5
| 2025-1-5
Words 459Read Time 2 min
type
status
date
slug
summary
tags
category
icon
password
URL

初始配置

  1. 免密sudo
  1. 删除office 包
  1. 将默认启动目标设置为多用户模式(不启动图形界面)。下次重启时,系统会进入命令行模式。
  1. 安装GNOME Desktop Minimal
  1. 关闭合盖挂起
  1. 安装
  1. 查看可用桌面session
  1. 设置vnc config
 
 
  1. 生产systemd文件
  1. 配置xstartup
 

使用xrdp

  1. Install xrdp and gnome-session:
  1. Allow log in after xrdp setup:
  1. Specify Gnome for your remote session:
  1. Then set your ~/.xsessionrc file using:
Here the XAUTHORITY line solves the Display error when opening Firefox and other apps that rely on root privileges.
Optionally, if you want the regular Gnome desktop with vertical menu on the side rather than Activities menu, do this:
  1. Finally do this:
  1. Then log out and connect with a Remote Desktop client.
Note that things are not quite as seamless as Windows remote desktop. In particular:
  • You must always be logged out locally in order to connect in remotely.
  • It asks for your password to authenticate a color managed device few times at first login, which is annoying. To fix that, follow this helpful blog post.
  • If you want to create additional users from a remote session, you'll need to enable this, see this post.
 
 
Linux raid 重启丢失Fail2ban 配置
Loading...