特殊:Badtitle/NS100:3ddesktopHowto:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
{{From|https://help.ubuntu.com/community/3ddesktopHowto}}
{{From|https://help.ubuntu.com/community/3ddesktopHowto}}
{{Languages|UbuntuHelp:3ddesktopHowto}}
{{Languages|UbuntuHelp:3ddesktopHowto}}
It appears that 3ddesktop is no longer provided in / as of Ubuntu 7.10.
<<Include(Tag/Unsupported)>>
{|border="1" cellspacing="0"
|'''Note that 3ddesktop is currently only available in Ubuntu 6.06LTS (Dapper) and 7.04 (Feisty)'''
|}
== Getting 3ddesktop working ==
== Getting 3ddesktop working ==
=== Installing ===
=== Installing ===
第88行: 第91行:
Message-ID: <20050312225009+0000@https://www.ubuntulinux.org>
Message-ID: <20050312225009+0000@https://www.ubuntulinux.org>
"ewmh on" should definitely be the default.
"ewmh on" should definitely be the default.
----


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2010年5月19日 (三) 17:13的最新版本

{{#ifexist: :3ddesktopHowto/zh | | {{#ifexist: 3ddesktopHowto/zh | | {{#ifeq: {{#titleparts:3ddesktopHowto|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:3ddesktopHowto|1|-1|}} | zh | | }}

<<Include(Tag/Unsupported)>>

Note that 3ddesktop is currently only available in Ubuntu 6.06LTS (Dapper) and 7.04 (Feisty)

Getting 3ddesktop working

Installing

This is trivial. Make sure you have universe enabled, and install the package "3ddesktop" with Synaptic or run this in a terminal:

sudo apt-get install 3ddesktop

A possible problem

After installing 3ddesktop it said I was supposed to get the original pictures of the workspaces. I got a few errors:

3ddesk --acquire
Attempting to start 3ddesktop server.
get property WIN_WORKSPACE failed - setting one
get property WIN_WORKSPACE_COUNT failed - setting one
Daemon started.  Run 3ddesk to activate.
myshell:~ $ 

When running 3ddesk, it zoomed out and showed me a single desktop. If you get this, then here is a solution.

The solution

First off, stop the daemon. (You'll need to do this if you've already aquired the desktops.)

3ddesk --stop

Then edit the configuration file (you can use any editor you like instead of nano, but it must be run as superuser through sudo):

sudo nano /etc/3ddesktop/3ddesktop.conf

And uncomment these lines in the file:

...
#
# Examples (uncomment to use)
#
texturesize 512
workspace   on
#kde2        on
ewmh        on  ## For GNOME 2, KDE 3, etc  (NET protocol standard)

#
# Indicate "view" to use on command line with --view=<viewname>.
...

(To save the file and exit in nano, press Ctrl-o, enter, Ctrl-x) You may not need to uncomment texturesize depending on your videocard, but mine couldn't handle the 4 workspaces of the default 1024x1024. After that, start the daemon with 3ddesk --acquire and it should cycle through your desktops. Now run 3ddesk to go into the cool 3d workspace switcher.

Setting a Key Shortcut

This is farily straightfoward, and it's explained in the README file. I'll copy it here so you don't have to go find it. Run from terminal:

gconf-editor
  • Drill down to apps --> metacity --> global_keybindings.
  • Find "run_command_1" and change it to your key such as "F12" or "<Control><Alt>S".
  • Then in apps --> metacity --> keybinding_commands find "command_1" and set it to /usr/bin/3ddesk

After that, just press that key (key combination) to launch 3ddesk.

Prevent 3ddesktop from running multiple instances

This is a problem that was noticed after a while of using 3ddesk. Sometimes, the key would repeat, and launch multiple instances of 3ddesk. This will make you have to choose the desktop twice or even three times before it will exit. Here is a simple shell script to fix this. Open a root terminal (or type "sudo -s" at a regular terminal) and type:

nano -w /usr/bin/3ddesk-once 

and copy this into that file:

#!/bin/sh
# This is a script that runs 3ddesk only once, and exits if there is already one running.
if [ -e /tmp/3ddesktop-lock ]; then {
    echo "3ddesk cannot have more than one instance running at one time."
}; else {
    echo "">/tmp/3ddesktop-lock &
    3ddesk
    rm /tmp/3ddesktop-lock
}; fi

Press ctrl-o, enter, ctrl-x to save and exit nano. Then run this command to set the permissions for that file correctly:

chmod 755 /usr/bin/3ddesk-once

Finally, re-set your key program (if you've set a key) to run "/usr/bin/3ddesk-once" rather than "/usr/bin/3ddesk". From Qerub Sat Mar 12 22:50:09 +0000 2005 From: Qerub Date: Sat, 12 Mar 2005 22:50:09 +0000 Subject: ewmh on Message-ID: <20050312225009+0000@https://www.ubuntulinux.org> "ewmh on" should definitely be the default.