Putting Gnome on Atkins
Quick what do thin clients and thin people have in common? Typically a lack of sugar (and if that's not true for you, I hate you and just wait). In the real world sugar has many names, almost always ending in "ose". In the thin client world the sugar comes in the form of eye candy and Gnome is full of it.
Now your typical *nix desktop application coders are probably the most overcaffinated, sugar consuming, pizza loving people on earth. Couple this with some insanely fast PC hardware and what do you get?
Something that's wrong for thin client, that's what! So let's cut some carbs out of Gnome and make it lean, mean, better for Sun Ray machine.
Most of these tips will work for any 2.4 + flavor of Gnome. Some however are Solaris 10 specific which I will note. These are the command line versions that an administrator can put into a script which can be ran by users by choice or automatically at login. If you're more GUI driven, just fire up gconf-editor and follow the path of each item.
Get rid of the new Solaris 10 login screen (obviously Solaris 10 only)
Note: System wide change done by root
Why: The default Solaris 10 login screen with the s-curve graphic takes at least 5-20 seconds to draw depending on your network speed. Reverting back to the older dtlogin based greeter reduces this to less than 1 second.
touch /etc/dt/config/C/styleModern
Get rid of the Gnome splash screen
Why: This is just a bandwidth waster. But on the other hand it's something to look at while Gnome starts. <insert snoring sound here>
gconftool-2 --type bool --set \
/apps/gnome-session/options/show_splash_screen false
Get rid of Network Status applet
Why: The Network status icon is useless for a normal user and redundant in a Sun Ray environment (no net, no Sun Ray). The fact that it blinks (creating more traffic) is even more reason to remove it.
gconftool-2 --type list --list-type string --set \
/apps/panel/global/disabled_applets \
[OAFIID:GNOME_NetstatusApplet]
Note: Depending on when this is set, a logout may be required to take effect
Don't show the JDS About screen (Solaris 10)
Why: A bandwidth waster. All the props in the world to the Gnome and JDS folks out there, but was the scrolling (and sometimes starfield simulations) really necessary?
gconftool-2 --type bool --set \
/apps/gnome-session/options/sun_extensions/viewed_about_jds_three true
Tip: You can also just find and rename gnome-about to gnome-about.old for much quicker fix that applies to all Gnome versions.
Get rid of the logout effect
Why: Outside of watching fullscreen Spiderman trailers, this is about the dumbest thing to do on a thin client. Hey, let's redraw the screen 4 or 5 times, each at a different color level. If you have wall paper, this can take up to 30 seconds under low bandwidth scenarios until you actually get to the point you can log out.
gconftool-2 --type string --set \
/apps/gnome-session/options/logout_effect black
Turn on WireFrame windows (Gnome 2.6+ & Solaris 2.0.x Gnome)
Why: No reason to show the contents of windows while dragging. In fact, unless you are dragging it real slow, it's impossible for a human to read what's in the window while dragging.
gconftool-2 --type bool --set \
/apps/metacity/general/reduced_resources true
Solaris 8/9:
gconftool-2 -s /apps/metacity/sun_extensions/wireframe_move_resize -t bool true
Turn off wall paper
Why: Initial screens take longer to draw, each time a window is moved or closed, the wallpaper must be redrawn. Huge bandwidth waster. A solid black background works best.
gconftool-2 --type string --set \
/desktop/gnome/background/picture_options none
gconftool-2 --type string --set \
/desktop/gnome/background/primary_color 000000
gconftool-2 --type string --set \
/desktop/gnome/background/color_shading_type solid
Use dtterm instead of gnome terminal (verisons of *nix that have a terminal that does not use AA fonts)
Why: Gnome Terminal uses AA fonts which are basically graphics to a thin client. Compare the speed of dtterm (or xterm) with gnome-terminal on a ls -altr e* from /.
gconftool-2 --type string --set \
/desktop/gnome/applications/terminal/exec /usr/dt/bin/dtterm
gconftool-2 --type string --set \
/desktop/gnome/applications/terminal/exec_arg -- -e
Use a simpler theme
Why: The default BluePrint theme on JDS is fairly complex. Requires more CPU and more bandwidth to be displayed.
gconftool-2 --type string --set \
/apps/metacity/general/theme Simple
Turn off tool tips
Why: Extra text popping up creates extra traffic. If your users are somewhat proficient, disable these
gconftool-2 --type bool --set \
/apps/panel/global/tooltips_enabled false
Use a smaller font
Why: The base font dpi of 96 is pretty large, with AA fonts treated basically as bitmaps, the smaller the better.
gconftool-2 --type float --set \
/desktop/gnome/font_rendering/dpi 86
Note: You can turn off the rendering of AA fonts, but it is just too horrible looking to mention.
Those are my favorites. Leave yours in the comments and I will add them to the list.
Turn off the Desktop (submitted by Glynn Foster)
Why: If you want a really clean desktop with no icons or context menu, follow Glynn's tip.
gconftool-2 --type bool --set \
/apps/nautilus/preferences/show_desktop false

Posted by Jim Gottlieb on July 27, 2005 at 09:25 PM PDT #
<code> gconftool-2 --type string --set \ /desktop/gnome/font_rendering/antialiasing none </code> Please test it out first.
Posted by ThinGuy on July 27, 2005 at 09:33 PM PDT #
Posted by Janos on July 28, 2005 at 08:23 AM PDT #
Posted by ftempel on July 28, 2005 at 02:22 PM PDT #
Posted by Glynn Foster on July 28, 2005 at 02:31 PM PDT #
Yes there are other desktop packages out there that are far lighter and perform better in a thin client environment.
However from a service standpoint we only support CDE and Gnome.
I guess we could call these "tweaks that will allow you to keep your support contract".
Posted by ThinGuy on July 28, 2005 at 02:32 PM PDT #
I'll check those out over my remote sun ray and see what effects it has. I probably should rate each one as far as it's impact.
Like 1 through 5 little Sun Rays or Gnome feet. ;)
Posted by ThinGuy on July 28, 2005 at 02:40 PM PDT #
In fact it's perfect for it. I was doing it the hard way and changing individual keys to not show home, not show trash, etc.
Thanks!
Posted by ThinGuy on July 28, 2005 at 02:56 PM PDT #
(Not being overly familiar with GNOME, it took me a LONG time to disable some of these a while back when I felt I HAD to take action.)
The "spiderman one" you mentioned has been a pet-pieve for a while, and I'm glad to know how to turn it off...
--
May I suggest perhaps 2 other diets... "South Beach" and "Hollywood"... The idea being that GNOME could loose a few pounds in the MEMORY and CPU department.
A similar list to this with some tips for us in those areas would be quite helpful.
- perhaps a recommended way of disabling certain particularly bandwidth/cpu/memory intensive screen-savers at the system-level?
- I'm seeing the stinkin' ESD sound daemon (at times) take 15%+ cpu cycles (in prstat -a) eventhough not a sound is being played by anyone.. (any thoughts on that?)
Thanks for being so active in both blog and mailing list... it makes a difference!
Posted by MikeE on July 28, 2005 at 05:13 PM PDT #
There is a new patch for solaris10 that was released the other day...
119107_03 (Sun UpdateConnection patch....)
While the patch is fairly interesting in that it installs some software that helps you patch your system, it has an interesting side-effect, in that it puts a lovely little "patch me" icon on EVERYONE's desktop....
(I remember it changing color every once in a while, but I don't think it flashes....)
Anyway, I think this is OK for stand-alone servers, but didn't think it had any business being presented to our (non-root) SunRAY users...
Turns out there is a little start-up-time notification utility that fires for everyone that logs in...
doing a "chmod 700" on the root-owned /usr/dt/config/Xsession.d/1001.swupnot startup-file
basically insures that it will only be run if ROOT logs into a SunRAY session....
May not be the best way to deal with it, but its worked for me... (although I'm open to other suggestions.)
keep up the good work,
-- MikeE
Posted by MikeE on July 28, 2005 at 05:24 PM PDT #
Posted by Glynn Foster on July 28, 2005 at 05:47 PM PDT #
Thanks for the comments and kind words.
Since S10 is not officially supported yet, a lot of these issues have not gotten enough attention. I agree with you on the sun update. That one kills me.
I'll look around tomorrow to see if a bug is filed, it should not run for anyone but root.
In S9, though not as configurable as Gnome 2.6, there was a flag to make sure that ESD did not start. It did not effect sound on SR, so I'll play around and see if that's still the case with S10. I'm excited to see what the performance folks come up with.
GO DTRACE!
Posted by ThinGuy on July 28, 2005 at 09:04 PM PDT #
Posted by Paul on October 06, 2005 at 02:10 PM PDT #
Posted by ThinGuy on October 06, 2005 at 03:40 PM PDT #
Posted by Paul on October 07, 2005 at 08:13 AM PDT #
Posted by Paul on October 07, 2005 at 09:56 AM PDT #
Posted by BobD on October 21, 2005 at 10:55 AM PDT #
You can turn off the "Update Manager Notification Icon and Menu" on the Notification tab of the prefrences dialog.
Posted by Anthony Worrall on November 11, 2005 at 02:07 AM PST #
Can i add a right click context menu using gconftool-2
Posted by hemanth on June 20, 2009 at 12:15 PM PDT #
Don't turn /apps/nautilus/preferences/show_desktop to false if you have GNOME 2.26 or above. With that, you are going to get a spins of nautilus tries to restart itself. bug http://bugzilla.gnome.org/show_bug.cgi?id=571417
Posted by Ghee Teo on July 20, 2009 at 09:08 AM PDT #