Chinaunix首页 | 论坛 | 博客
  • 博客访问: 599507
  • 博文数量: 95
  • 博客积分: 1573
  • 博客等级: 上尉
  • 技术积分: 1030
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-23 10:46
个人简介

hello world!

文章分类

全部博文(95)

文章存档

2014年(1)

2013年(44)

2012年(50)

分类: LINUX

2012-12-28 09:42:04



Login screen
Tango-two-arrows.pngThis article or section is a candidate for merging with GDM.
Notes: please use the second argument of the template to provide more detailed indications. (Discuss)
Tango-two-arrows.png
To modify characteristics of the login screen (GDM, the GNOME display manager) the following lines can be executed. The first command allows all users, including "gdm", to access X settings (albeit temporarily). This command creates a temporary vulnerability, so be advised. The second command opens a bash session with the credentials of user "gdm".
Note: For exposition, user gdm's terminal prompt is shown as $. In actuality, it shows something like -bash-4.2$.
# xhost + # su - gdm -s /bin/bash $ dbus-launch

The third command prints DBUS_SESSION_BUS_ADDRESS and DBUS_SESSION_BUS_PID. We must export these variables. Either manually export the below two variables shown in the output of dbus-launch like this:

$ export DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Jb433gMQHS,guid=fc14d4bf3d000e38276a5a2200000d38 $ export DBUS_SESSION_BUS_PID=4283

Or use the follow command:

$ `dbus-launch | sed "s/^/export /"`

Check to see if dconf-service is running and if not, start it like this

$ /usr/lib/dconf/dconf-service & Login background image

Once session variables have been exported as explained above, you may issue commands to retrieve or set items used by GDM.

The easiest way to changes all the settings is by launching the Configuration Editor gui with the command

$ dconf-editor

The location of each setting is the same as in the command line style of configuration shown below:

The following is the command-line approach to retrieve or set the file name used for GDM's wallpaper.

$ GSETTINGS_BACKEND=dconf gsettings get org.gnome.desktop.background picture-uri $ GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/gnome/SundownDunes.jpg' $ GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-options 'zoom' ## Possible values: centered, none, scaled, spanned, stretched, wallpaper, zoom
Note: You must specify a file which user "gdm" has permission to read. GDM cannot read files in your home directory.

An alternative graphical interface to changing themes (gtk3, icons and cursor), the wallpaper and minor other settings of the GDM login screen, you can install gdm3setup from AUR.


如果出现此类错误:

* (process:2313): CRITICAL *unable to create '/run/user/mayank/dconf'; dconf will not work properly. 

则:

with "env XDG_RUNTIME_DIR=/run/user/gdm" instead of "GSETTINGS_BACKEND=dconf"

eg.

# su - gdm -s /bin/bash
-bash-4.2$ `dbus-launch | sed "s/^/export /"`
-bash-4.2$ env XDG_RUNTIME_DIR=/run/user/gdm gsettings list-recursively org.gnome.desktop.background

Take a look at these two links :

3#Loginbackground_image

to-change-gdm3-wallpaper.html


阅读(1432) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~