当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 3ddesktopHowto
帖子发表于 : 2005-08-02 10:58 
论坛管理员

注册: 2005-03-27 0:06
帖子: 10111
系统: Ubuntu 12.04
送出感谢: 7
接收感谢: 127
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:

myshell:~ $ sudo apt-get install 3ddesktop

The Problem

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

myshell:~ $ 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 I ran 3ddesk, it zoomed out and showed me a single desktop.
The Solution

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

myshell:~ $ 3ddesk --stop
Stopping 3ddesktop daemon...
myshell:~ $

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

myshell:~ $ sudo nano /etc/3ddesktop/3ddesktop.conf

And I uncommented 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 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, I started the daemon with "3ddesk --acquire" and it cycled through my desktops.

I could 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. I'll copy it here so you don't have to go find it.

Run "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 to launch 3ddesk.
Making 3ddesktop not run multiple instances

This is a problem I noticed after a while using 3ddesk. Sometimes, the key would repeat, and launch multiple instances of 3ddesk. This made me have to choose my desktop twice or even three times before it would finally exit. I wrote a simple shell script to fix this.

Open a root terminal (or type "sudo -s" at a regular terminal).

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.

Run this command to set the permissions for that file correctly:

myshell:~ $ 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".

http://www.ubuntu.org.cn/support/docume ... sktopHowto


_________________
当净其意如虚空,远离妄想及诸取,令心所向皆无碍


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2005-08-04 21:55 

注册: 2005-07-21 17:48
帖子: 17
送出感谢: 0 次
接收感谢: 0 次
Getting 3ddesktop working
让3ddesktop工作

Installing
安装

This is trivial. Make sure you have universe enabled, and install the package "3ddesktop" with Synaptic or run this in a terminal:
非常简单。确认你已经连接网络,然后用Synapic(新立得)或终端运行下列命令安装"3ddesktop"软件包:

代码:
myshell:~ $ sudo apt-get install 3ddesktop


The Problem
问题

After installing 3ddesktop, I read the README, and it said I was supposed to get the original pictures of the workspaces. I got a few errors:
安装3ddedktop后,我阅读README,它告诉我应该已经取得工作空间的贴图。但我却得到一些错误:
代码:
myshell:~ $ 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 I ran 3ddesk, it zoomed out and showed me a single desktop.
当我运行3ddesk,它只缩小并显示了单个桌面。

The Solution
解决办法

First off, I stopped the daemon. (You'll need to do this if you've already aquired the desktops.)
很快,我停止它的进程。(如果你已经折起了(aquired)一些桌面,你必须这样做) 译者注:<====这句有点问题
代码:
myshell:~ $ 3ddesk --stop
Stopping 3ddesktop daemon...
myshell:~ $


Then I had to edit it's configuration file (you can use any editor you like instead of nano, but it must be run as superuser through sudo):
然后需要编辑它的配置文件(你可以使用任何一款你喜欢的编辑器来代替nano,但必须通过sudo以使用超级用户运行它。

代码:
myshell:~ $ sudo nano /etc/3ddesktop/3ddesktop.conf


And I uncommented 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 in nano, press Ctrl-o, enter, Ctrl-x)
(在nano中保存该文件,按Ctrl-o,回车,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.
你所用的视频卡可能不需要取消texturesize(贴图材质大小)的注释,但我在使用缺省的1024x1024的情况下无法操作4个桌面。
After that, I started the daemon with "3ddesk --acquire" and it cycled through my desktops.
之后,你用3ddesk --qcquire启动后台进程,可以循环转动我的桌面了。
I could now run 3ddesk to go into the cool 3d workspace switcher.
现在运行3ddesk就可以进入酷3d桌面开关器了。

Setting a Key Shortcut
设置快捷键

This is farily straightfoward, and it's explained in the README. I'll copy it here so you don't have to go find it.
这比较简单,在README里有解释。我把它复制到这里,你无须另外找它了。这里有点问题
Run "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".
运行"gconf-editor",打开apps-->metacity-->global_keybindings.找到"run_command_1",修改它为你想要的快捷键,如"F12"或<Control><Alt>S"。然后进入app-->metacity-->keybinding_commands,找到"command_1",设置它为"/usr/bin/3ddesk".
After that, just press that key to launch 3ddesk.
之后,只要按下你所设置的快捷键,就会运行3ddesk。

Making 3ddesktop not run multiple instances
保证3ddesktop不会启动多个实例


This is a problem I noticed after a while using 3ddesk. Sometimes, the key would repeat, and launch multiple instances of 3ddesk. This made me have to choose my desktop twice or even three times before it would finally exit. I wrote a simple shell script to fix this.
在使用3ddesk一段时间后,我注意到了这个问题,有时,重复按快捷键,会导致运行3ddesk的多个实例。这在它最终退出前,我需要选择两次甚至三次我的桌面才行。我写了一个简单的shell脚本来修复这个错误。
Open a root terminal (or type "sudo -s" at a regular terminal).
打开root用户终端(或在普通终端输入"sudo -s")
Type "nano -w /usr/bin/3ddesk-once", and copy this into that file:
输入"nano -w /usr/bin/3ddesk-once",并复制下面的内容至该文件:
引用:
#!/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.
按ctrl-o,回车,ctrl-x保存和退出nano。
Run this command to set the permissions for that file correctly:
运行这个命令以设置该文件适当的权限许可:
myshell:~ $ 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".
最后,重新设置你的快捷键(如果你已经设置过)来运行比"/usr/bin/3ddesk"更好的"/usr/bin/3ddesk-once"吧。


_________________
图片


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2005-08-22 21:23 
论坛管理员

注册: 2005-03-27 0:06
帖子: 10111
系统: Ubuntu 12.04
送出感谢: 7
接收感谢: 127
http://www.ubuntu.org.cn/support/docume ... howto_view


_________________
当净其意如虚空,远离妄想及诸取,令心所向皆无碍


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2006-07-30 22:52 
头像

注册: 2005-07-02 14:41
帖子: 4133
系统: Ubuntu 14.04 (Kylin)
送出感谢: 53
接收感谢: 11
过时了
现在都是xgl了
官方也没有这个了


_________________
https://weakish.github.io


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译