禁用新的ubuntu 18.04欢迎屏幕
我们在我们的环境中大规模部署Ubuntu桌面,我想杀死新的欢迎屏幕,因此在首次登录时它不会出现在所有新建的机器上。
谁有人想出怎么做呢?
我自己找到了解决方案,所以我在这里发布给所有想知道的人。
欢迎屏幕是gnome-initial-setup
软件包的一部分。 用户第一次登录新计算机时,运行命令/usr/lib/gnome-initial-setup/gnome-initial-setup --exisiting-user
。
对于我们来说,在kickstart期间简单地删除gnome-initial-setup
包是一个合适的修复,因为我们不需要任何gnome初始设置内容(我们不想创建本地用户帐户或设置系统时间等)。
如果您仍然需要登录前欢迎的东西,那么您将需要一个不同的解决方案。
我和Dean在同一条船上发现了这篇文章+另一篇。
这里 Rui Matos建议在/etc/gdm/custom.conf
添加InitialSetupEnable=false
(在Ubuntu /etc/gdm3/custom.conf
)。
所以编辑/etc/gdm3/custom.conf
并添加以下内容:
[daemon] InitialSetupEnable=false
希望这有助于其他人摆脱欢迎屏幕。
如果您不想卸载该软件包,则可以编辑该文件
sudo vi /etc/xdg/autostart/gnome-inital-setup-first-login.desktop
通过在执行行的开头添加“#”(不带引号),如下所示:
#Exec=/usr/lib/gnome-initial-setup/gnome-initial-setup --existing-user
按照@ sokunrotanak-srey的路线,我宁愿像这样使用dpkg-divert
:
首先 ,在所有.desktop
文件中用Exec=/bin/true
替换Exec=...
行,使它们成为虚拟
其次 ,使用dpkg-divert来保持本地更改,即使包具有更新版本的.desktop
文件:
# dpkg-divert --local --add /etc/xdg/autostart/gnome-initial-setup-copy-worker.desktop Adding 'local diversion of /etc/xdg/autostart/gnome-initial-setup-copy-worker.desktop to /etc/xdg/autostart/gnome-initial-setup-copy-worker.desktop.distrib' # dpkg-divert --local --add /etc/xdg/autostart/gnome-initial-setup-first-login.desktop Adding 'local diversion of /etc/xdg/autostart/gnome-initial-setup-first-login.desktop to /etc/xdg/autostart/gnome-initial-setup-first-login.desktop.distrib' # dpkg-divert --local --add /etc/xdg/autostart/gnome-welcome-tour.desktop Adding 'local diversion of /etc/xdg/autostart/gnome-welcome-tour.desktop to /etc/xdg/autostart/gnome-welcome-tour.desktop.distrib'
由于Ubuntu在各种计算机上运行,如果您更改任何计算机上的硬件配置硬件驱动器之间的硬盘驱动器甚至无关紧要,首次启动它并进行设置并且如果您想安装更多然后,在USB记忆棒上刻录一个clonezilla映像,在你安装的计算机上启动它,然后通过网络克隆硬盘