A little gdm 2.26 & 2.28 theme How To.

ericbsd

Developer
This how to change gdm 2.26 and 2.28 default theme.

For this tutorial you need to have:

Gnome install by default.
Sudo install.
gnome_enable="yes" in your/etc/rc.conf file.
proc /proc procfs rw 0 0 setup in your /etc/fstabfile.
Be in root or root privilege

This for using gconftool-2 in gdm mode.
Code:
# chpass -s /bin/csh gdm
To close it.
Code:
# chpass -s /sbin/nologin gdm

Now you have 4 ways to configure your gdm theme.


-1 with gconftool-2 . (If you are familiar with gconftool-2)

To change wallpaper.
Code:
# su - gdm
%cd ~
%gconftool-2 --set --type string --set /desktop/gnome/background/picture_filename /path/to/your/preferred/background
%exit

To change theme.
Code:
# su - gdm
%cd ~
%gconftool-2 --set --type string --set /desktop/gnome/interface/gtk_theme yourtheme(Darklooks clearlooks...)
%exit

If you wont a custom them you need to put it in this directory
/usr/local/etc/gdm/home/.themes



-2 With xml file (If you are familiar with xml)

To change wallpaper.

Go to /usr/local/etc/gdm/home/.gconf/desktop/gnome/background/%gconf.xml file.

should look like that
Code:
<?xml version="1.0"?>
<gconf>
	<entry name="secondary_color" mtime="1263787763" type="string">
		<stringvalue>#6666baba0000</stringvalue>
	</entry>
	<entry name="color_shading_type" mtime="1263787763" type="string">
		<stringvalue>solid</stringvalue>
	</entry>
	<entry name="picture_options" mtime="1263787763" type="string">
		<stringvalue>zoom</stringvalue>
	</entry>
	<entry name="primary_color" mtime="1263787763" type="string">
		<stringvalue>#000000000000</stringvalue>
	</entry>
	<entry name="picture_filename" mtime="1263787763" type="string">
		<stringvalue>/root/jesus_rocks_1400x1050.jpg</stringvalue>
	</entry>
</gconf>


To change theme.

Go to /usr/local/etc/gdm/home/.gconf/desktop/gnome/interface/%gconf.xml
should look like that
Code:
<?xml version="1.0"?>
<gconf>
	<entry name="icon_theme" mtime="1263784298" type="string">
		<stringvalue>Neu</stringvalue>
	</entry>
	<entry name="gtk_theme" mtime="1263784298" type="string">
		<stringvalue>Darklooks</stringvalue>
	</entry>
	<entry name="gtk_color_scheme" mtime="1263784298" type="string">
		<stringvalue>fg_color:#ffff00000000
bg_color:#1ce71ce71ce7
text_color:#ffff00001513
base_color:#2f7c2f7c2f7c
selected_fg_color:#ffff00000c36
selected_bg_color:#1ef81ef81ef8
tooltip_fg_color:#ffff00000000
tooltip_bg_color:#2a2e2a2e2a2e</stringvalue>
	</entry>
</gconf>




-3 Whit gconf-editor (if you are familiar with gconf-editor)
Code:
sudo -u gdm dbus-launch gconf-editor

To change wallpaper.

go to desktop->gnome->background->picture_filename
and change your path for your wallpaper path.

To change theme.

Go to desktop->gnome->interface->gtk_theme
chage your theme name.

If you wont a custom them you need to put it in this directory
/usr/local/etc/gdm/home/.themes




-4 with gnome-appearance-properties. (the most easy way)

Code:
sudo -u gdm dbus-launch gnome-appearance-properties

If you wont a custom them you need to put it in this directory
/usr/local/etc/gdm/home/.themes
 
Back
Top