个人工具

“UbuntuHelp:3ddesktopHowto”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/3ddesktopHowto}} {{Languages|UbuntuHelp:3ddesktopHowto}} == Getting 3ddesktop working == === Installing === This is trivial. Make sure you hav...)
 
 
(未显示同一用户的9个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/3ddesktopHowto}}
 
{{From|https://help.ubuntu.com/community/3ddesktopHowto}}
 
{{Languages|UbuntuHelp:3ddesktopHowto}}
 
{{Languages|UbuntuHelp:3ddesktopHowto}}
 
+
<<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 ===
 
 
This is trivial. Make sure you have universe enabled, and install the package "3ddesktop" with Synaptic or run this in a terminal:
 
This is trivial. Make sure you have universe enabled, and install the package "3ddesktop" with Synaptic or run this in a terminal:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install 3ddesktop
 
sudo apt-get install 3ddesktop
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== A possible problem ===
 
=== A possible problem ===
 
 
After installing 3ddesktop it said I was supposed to get the original pictures of the workspaces. I got a few errors:
 
After installing 3ddesktop it said I was supposed to get the original pictures of the workspaces. I got a few errors:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
3ddesk --acquire
 
3ddesk --acquire
第25行: 第21行:
 
myshell:~ $  
 
myshell:~ $  
 
</nowiki></pre>
 
</nowiki></pre>
 
 
When running 3ddesk, it zoomed out and showed me a single desktop. If you get this, then here is a solution.
 
When running 3ddesk, it zoomed out and showed me a single desktop. If you get this, then here is a solution.
 
 
=== The solution ===
 
=== The solution ===
 
 
First off, stop the daemon. (You'll need to do this if you've already aquired the desktops.)
 
First off, stop the daemon. (You'll need to do this if you've already aquired the desktops.)
 
 
<pre><nowiki>
 
<pre><nowiki>
 
3ddesk --stop
 
3ddesk --stop
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Then edit the configuration file (you can use any editor you like instead of nano, but it must be run as superuser through sudo):
 
Then edit the configuration file (you can use any editor you like instead of nano, but it must be run as superuser through sudo):
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo nano /etc/3ddesktop/3ddesktop.conf
 
sudo nano /etc/3ddesktop/3ddesktop.conf
 
</nowiki></pre>
 
</nowiki></pre>
 
 
And uncomment these lines in the file:
 
And uncomment these lines in the file:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
...
 
...
第58行: 第46行:
 
...
 
...
 
</nowiki></pre>
 
</nowiki></pre>
 
 
(To save the file and exit in nano, press Ctrl-o, enter, Ctrl-x)
 
(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.
 
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 <code><nowiki>3ddesk --acquire</nowiki></code> and it should cycle through your desktops.
 
After that, start the daemon with <code><nowiki>3ddesk --acquire</nowiki></code> and it should cycle through your desktops.
 
 
Now run 3ddesk to go into the cool 3d workspace switcher.
 
Now run 3ddesk to go into the cool 3d workspace switcher.
 
 
=== Setting a Key Shortcut ===
 
=== 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.
 
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:
 
Run from terminal:
 
<pre><nowiki>
 
<pre><nowiki>
第79行: 第59行:
 
* Find "run_command_1" and change it to your key such as "F12" or "<Control><Alt>S".   
 
* 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 <code><nowiki>/usr/bin/3ddesk</nowiki></code>
 
* Then in apps --> metacity --> keybinding_commands find "command_1" and set it to <code><nowiki>/usr/bin/3ddesk</nowiki></code>
 
 
 
After that, just press that key (key combination) to launch 3ddesk.
 
After that, just press that key (key combination) to launch 3ddesk.
 
 
=== Prevent 3ddesktop from running multiple instances ===
 
=== 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.
 
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:
 
Open a root terminal (or type "sudo -s" at a regular terminal) and type:
 
<pre><nowiki>
 
<pre><nowiki>
第96行: 第71行:
 
# This is a script that runs 3ddesk only once, and exits if there is already one running.
 
# This is a script that runs 3ddesk only once, and exits if there is already one running.
 
if [ -e /tmp/3ddesktop-lock ]; then {
 
if [ -e /tmp/3ddesktop-lock ]; then {
echo "3ddesk cannot have more than one instance running at one time."
+
    echo "3ddesk cannot have more than one instance running at one time."
 
}; else {
 
}; else {
echo "">/tmp/3ddesktop-lock &
+
    echo "">/tmp/3ddesktop-lock &
3ddesk
+
    3ddesk
rm /tmp/3ddesktop-lock
+
    rm /tmp/3ddesktop-lock
 
}; fi
 
}; fi
  
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Press ctrl-o, enter, ctrl-x to save and exit nano.
 
Press ctrl-o, enter, ctrl-x to save and exit nano.
 
 
Then run this command to set the permissions for that file correctly:
 
Then run this command to set the permissions for that file correctly:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
chmod 755 /usr/bin/3ddesk-once
 
chmod 755 /usr/bin/3ddesk-once
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Finally, re-set your key program (if you've set a key) to run "/usr/bin/3ddesk-once" rather than "/usr/bin/3ddesk".
 
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 Sat Mar 12 22:50:09 +0000 2005
 
From: Qerub
 
From: Qerub
第120行: 第90行:
 
Subject: ewmh on
 
Subject: ewmh on
 
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的最新版本

<<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.