分类 ‘Ubuntu’ 的归档

解决Ubuntu 9.04无线网络的不稳定问题

六月 10, 2009

还是一位论坛上的朋友告诉我可能是MTU的设置问题。如果MTU设置太大,就容易出现丢包的情况。要知道,我使用8.10版本的时候也是在同一个网络,同一台机器上,环境是完全相同的,出现MTU的设置问题实在是意料之外啊!

那么,在Ubuntu环境下如何查看和设置MTU呢?其实只要使用ifconfig这个命令就可以解决。

要查看MTU的值,输入:ifconfig,然后回车。在输出里面你可以看到每个网卡的MTU。

要设置MTU的值,输入:sudo ifconfig wlan0 mtu 1000。我的这个命令是把无线网络的MTU设置为1000了,你可以根据自己的实际情况选择适合自己的值。

现在我的无线网络还是使用XP的无线驱动,很稳定。希望你也成功!

ubuntu中退出Compiz

五月 23, 2009

metacity –replace  or  ‘kwin –replace &;’

Shifting the order of the titlebar buttons
The installation script will move the “traffic lights”, the minimize, maximize
and close buttons, on the left hand side of the titlebar in Metacity
(instructions for using the Emerald/Compiz Fusion theme appear in Section
3). If you want to make the change manually, press Alt+F2 and type in gconf-editor.
Press Enter or click Run and a new window should appear. In the sidebar, go to / →
apps → metacity → general. Back on the right hand side, double click on
button_layout. Delete the value that’s there and type in
menu:minimize,maximize,close. Then Click OK and close the application
Configuration Editor. The buttons will now be on the left side of titlebar. To restore
the buttons to the original layout, just replace the string with
close,minimize,maximize:menu.

ubuntu 中flash中文乱码的解决

五月 17, 2009

ubuntu/linux flash中文乱码 的解决
打开配置文件:
cd /etc/fonts/conf.d/
sudo gedit 49-sansserif.conf

修改edit节点,将<string>sans-serif</string>
改为 <string>sans</string>

<match target=”pattern”>
<test qual=”all” name=”family” compare=”not_eq”>
<string>sans-serif</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>serif</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>monospace</string>
</test>
<edit name=”family” mode=”append_last”>
<string>sans-serif</string> 这里改为<— <string>sans</string>
</edit>
</match>
ubuntu装好之后, 为浏览器firefox安装flash插件, 后来发现中文会变成方框。

如何解决?

输入:
cd /etc/fonts/conf.d/

为了安全,备份一下:

sudo cp 49-sansserif.conf 49-sansserif.conf_backup

输入如下指令:

sudo gedit ./49-sansserif.conf

此时文件显示内容。

将其中的第1、2、4个后面的sans-serif或者serif用你自己系统中支持中文的字体的名字代替,注意字体名字的大小写

比如:我的系统中安装了微软雅黑,我则用微软雅黑代替上述所说的字段,结果如下:

<match target=”pattern”>
<test qual=”all” name=”family” compare=”not_eq”>
<string>微软雅黑</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>微软雅黑</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>monospace</string>
</test>
<edit name=”family” mode=”append_last”>
<string>微软雅黑</string>
</edit>
</match>

ubuntu evolution 于 Google calendar 同步

五月 10, 2009

http://www.scheduleworld.com/sw2/index.html

SyncEvolution 0.8.1 Released

0.8.1 fixes issues which affected some (three?) users, details below. If 0.8 works for you, there’s no reason to upgrade. New binaries would also have been needed for Evolution 2.24, which was released two weeks ago and will be in major distributions soon. 0.8.1 supports all Evolution releases from 2.6.3 to 2.24 in the same binary. 2.6.1 in Ubuntu 6.06 LTS might also work now – in contrast to the other Evolution releases this has not been tested, though.

Available Packages

The following packages are available:

  • for Evolution (x86 and AMD64), both as .tar.gz and .deb
  • for Mac OS X (a fat binary for PPC and x86)
  • for Maemo (ITOS 2008, should work on Chinook and Diablo)
  • source code

The Evolution packages were renamed from syncevolution-evolution-2.6/8/12 to just syncevolution-evolution. When upgrading via apt, then you’ll notice that your old syncevolution-evolution-2.xx is “on hold”. Simply tell apt to install the new package and let it remove the old one:

# aptitude install syncevolution-evolution
Reading package lists... Done
...
Building tag database... Done
The following packages are BROKEN:
  syncevolution-evolution
The following packages have been kept back:
  syncevolution-evolution-2.12
0 packages upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/380kB of archives. After unpacking 1102kB will be used.
The following packages have unmet dependencies:
  syncevolution-evolution: Conflicts: syncevolution which is a virtual package.
                           Conflicts: syncevolution-evolution-2.12 (< 1:0.8.1-2) but 1:0.8-2 is installed and it is kept back.
Resolving dependencies...
The following actions will resolve these dependencies:

Remove the following packages:
syncevolution-evolution-2.12

Score is 121

Accept this solution? [Y/n/q/?] Y
...

New installations can simply use “aptitude install syncevolution“.

For more installation instructions see the www.estamos.de installation page.

Changes

  • Evolution calendar: regression in 0.8: one-way sync of virtual birthday calendar (#2095433).“refresh-from-client” works again for the birthday calendar. Other modes are not supported. In contrast to previous releases SyncEvolution now does some sanity checks that the sync mode is right.
  • Mac OS X: removing old logdirs failed (#2087389). Fixed.
  • SyncML client library: “Expect: 100-continue” header resulted in 417 error with certain proxies (#2101015).Now this header is always disabled; it doesn’t make much sense with SyncML anyway.
  • The development of the Funambol C++ client library is now tracked in a git repository on github.com. Modifications and tags for SyncEvolution are checked in there. The configure script checks out the right sources from there automatically; can be controlled via --with-funambol-src parameter.
  • Evolution desktop: the version of the used Evolution libraries is included in the “--version” output and log files.
  • Cleaned up README. Kudos to Martin Wetterstedt for pointing out mistakes in the README and the web site.

ubuntu 打电话

五月 10, 2009

Ekiga 设置姓名:Voipstunt
注册商:sip.voipstunt.com
用户:随便
已验证用户:VoipStunt号

sip.voipzoom.com

Open a port on ubuntu

五月 10, 2009
netstat -an | grep "LISTEN "

this command is used for check the ports opened in ubuntu.介绍:
这篇文章是本人原创,向读者展示了如何一步一步建立静态防火墙来保护您的计算机,同时在每一步中,我力图向读者讲述清楚原理。在这篇教程之后,你将能理解到防火墙内在过滤机制,同时也能自己动手创建符合自己要求的防火墙。

版权所有,转载请注明来自www.linuxsir.org 并写明作者

1、iptables介绍

iptables是复杂的,它集成到linux内核中。用户通过iptables,可以对进出你的计算机的数据包进行过滤。通过iptables 命令设置你的规则,来把守你的计算机网络──哪些数据允许通过,哪些不能通过,哪些通过的数据进行记录(log)。接下来,我将告诉你如何设置自己的规 则,从现在就开始吧。

2、初始化工作

在shell提示符 # 下打入

iptables -F

iptables -X

iptables -t nat -F

iptables -t nat -X

以上每一个命令都有它确切的含义。一般设置你的iptables之前,首先要清除所有以前设置的规则,我们就把它叫做初始化好了。虽然很多情况下它什么也不做,但是保险起见,不妨小心一点吧! 如果你用的是redhat 或fedora,那么你有更简单的办法

service iptables stop

3、开始设置规则:

接下下开始设置你的规则了

iptables -P INPUT DROP

这一条命令将会为你构建一个非常“安全”的防火墙,我很难想象有哪个hacker能攻破这样的机器,因为它将所有从网络进入你机器的数据丢弃 (drop) 了。这当然是安全过头了,此时你的机器将相当于没有网络。如果你ping localhost,你就会发现屏幕一直停在那里,因为ping收不到任何回应。

4 、添加规则

接着上文继续输入命令:

iptables -A INPUT -i ! ppp0 -j ACCEPT

这条规则的意思是:接受所有的,来源不是网络接口ppp0的数据。

我们假设你有两个网络接口,eth0连接局域网,loop是回环网(localhost)。ppp0是一般的adsl上网的internet网络接口,如果你不是这种上网方式,那则有可能是eth1。在此我假设你是adsl上网,你的internet接口是ppp0

此时你即允许了局域网的访问,你也可以访问localhost

此时再输入命令 ping localhost,结果还会和刚才一样吗?

到此我们还不能访问www,也不能mail,接着看吧。

5、我想访问www

iptables -A INPUT -i ppp0 -p tcp -sport 80 -j ACCEPT

允许来自网络接口ppp0(internet接口),并且来源端口是80的数据进入你的计算机。
80端口正是www服务所使用的端口。

好了,现在可以看网页了。但是,你能看到吗?

如果你在浏览器的地址中输入www.baidu.com,能看到网页吗?

你得到的结果一定是:找不到主机www.baidu.com

但是,如果你再输入220.181.27.5,你仍然能够访问baidu的网页。

为什么?如果你了解dns的话就一定知道原因了。

因为如果你打入www.baidu.com,你的电脑无法取得www.baidu.com这个名称所能应的ip地址220.181.27.5。如 果你确实记得这个ip,那么你仍然能够访问www,你当然可以只用ip来访问www,如果你想挑战你的记忆的话^ _ ^,当然,我们要打开DNS。

6、打开dns端口

打开你的dns端口,输入如下命令:

iptables -A INPUT -i ppp0 -p udp -sport 53 -j ACCEPT

这条命令的含义是,接受所有来自网络接口ppp0,upd协议的53端口的数据。53也就是著名的dns端口。

此时测试一下,你能通过主机名称访问www吗?你能通过ip访问www吗?

当然,都可以!

7、查看防火墙

此时可以查看你的防火墙了

iptables -L

如果你只想访问www,那么就可以到此为止,你将只能访问www了。 不过先别急,将上面讲的内容总结一下,写成一个脚本。

#!/bin/bash

# This is a script

# Edit by liwei

# establish static firewall

iptables -F

iptables -X

iptables -t nat -F

iptables -t nat -X

iptables -P INPUT DROP

iptables -A INPUT -i ! ppp0 -j ACCEPT

iptables -A INPUT -i ppp0 -p tcp –sport 80 -j ACCEPT

iptables -A INPUT -i ppp0 -p udp –sport 53 -j ACCEPT

8、复杂吗?到此iptables可以按你的要求进行包过滤了。你可以再设定一些端口,允许你的机器访问这些端口。这样有可能,你不能访问QQ, 也可能不能打网络游戏,是好是坏,还是要看你自己而定了。顺便说一下,QQ这个东西还真是不好控制,用户与服务器连接使用的好像是8888端口,而QQ上 好友互发消息使用的又是udp的4444端口(具体是不是4444还不太清楚)。而且QQ还可以使用www的80端口进行登录并发消息,看来学无止境,你 真的想把这个家伙控制住还不容易呢?还是进入我们的正题吧。

如果你的机器是服务器,怎么办?

9、如果不巧你的机器是服务器,并且要提供www服务。显然,以上的脚本就不能符合我们的要求了。但只要你撑握了规则,稍作修改同样也能很好的工作。在最后面加上一句

iptables -A INPUT -i ppp0 -p tcp –dport 80 -j ACCEPT

这一句也就是将自己机器上的80端口对外开放了,这样internet上的其他人就能访问你的www了。当然,你的www服务器得工作才行。如果 你的机器同时是smtp和pop3服务器,同样的再加上两条语句,将–dport后面的80改成25和110就行了。如果你还有一个ftp服务器,呵 呵,如果你要打开100个端口呢……

我们的工作好像是重复性的打入类似的语句,你可能自己也想到了,我可以用一个循环语句来完成,对,此处可以有效的利用shell脚本的功能,也让你体验到了shell脚本语言的威力。看下文:

10、用脚本简化你的工作,阅读下面的脚本

#!/bin/bash

# This is a script

# Edit by liwei

# establish a static firewall

# define const here

Open_ports=”80 25 110 10″ # 自己机器对外开放的端口

Allow_ports=”53 80 20 21″ # internet的数据可以进入自己机器的端口

#init

iptables -F

iptables -X

iptables -t nat -F

iptables -t nat -X

iptables -P INPUT DROP #we can use another method to instead it

iptables -A INPUT -i ! ppp0 -j ACCEPT

# define ruler so that some data can come in.

for Port in “$Allow_ports” ; do

iptables -A INPUT -i ppp0 -p tcp -sport $Port -j ACCEPT

iptables -A INPUT -i ppp0 -p udp -sport $Port -j ACCEPT

done

for Port in “$Open_ports” ; do

iptables -A INPUT -i ppp0 -p tcp -dport $Port -j ACCEPT

iptables -A INPUT -i ppp0 -p udp -dport $Port -j ACCEPT

done

这个脚本有三个部分(最前面的一段是注释,不算在这三部分中)

第一部分是定义一些端口:访问你的机器”Open_ports”端口的数据,允许进入;来源是”Allow_ports”端口的数据,也能够进入。

第二部分是iptables的初始化,第三部分是对定义的端口具体的操作。

如果以后我们的要求发生了一些变化,比如,你给自己的机器加上了一个ftp服务器,那么只要在第一部分”Open_ports”的定义中,将ftp对应的20与21端口加上去就行了。呵呵,到此你也一定体会到了脚本功能的强大的伸缩性,但脚本的能力还远不止这些呢!

11、使你的防火墙更加完善

看上面的脚本init部分的倒数第二句

iptables -P INPUT DROP

这是给防火墙设置默认规则。当进入我们计算机的数据,不匹配我们的任何一个条件时,那么就由默认规则来处理这个数据—-drop掉,不给发送方任何应答。

也就是说,如果你从internet另外的一台计算机上ping你的主机的话,ping会一直停在那里,没有回应。

如果黑客用namp工具对你的电脑进行端口扫描,那么它会提示黑客,你的计算机处于防火墙的保护之中。我可不想让黑客对我的计算机了解太多,怎么办,如果我们把drop改成其他的动作,或许能够骗过这位刚出道的黑客呢。

怎么改呢?将刚才的那一句( iptables -P INPUT DROP )去掉,在脚本的最后面加上

iptables -A INPUT -i ppp0 -p tcp -j REJECT –reject-with tcp-reset

iptables -A INPUT -i ppp0 -p udp -j REJECT –reject-with icmp-port-unreachable

这样就好多了,黑客虽然能扫描出我们所开放的端口,但是他却很难知道,我们的机器处在防火墙的保护之中。如果你只运行了ftp并且仅仅对局域网内 部访问, 他很难知道你是否运行了ftp。在此我们给不应该进入我们机器的数据,一个欺骗性的回答,而不是丢弃(drop)后就不再理会。这一个功能,在我们设计有 状态的防火墙中(我这里讲的是静态的防火墙)特别有用。

你可以亲自操作一下,看一看修改前后用namp扫描得到的结果会有什么不同?

12、这个教程我想到此就结束了,其中有很多东西在这里没有提到,如ip伪装,端口转发,对数据包的记录功能。还有一个很重要的东西就是: iptables处理数据包的流程.在这里我想告诉你,你设置的过滤规则的顺序很重要,在此不宜详细介绍,因为这样一来,这个教程就会拘泥于细节。

iptables是复杂的,我在linuxsir上看过很多教程,它们往往多而全,反而让人望而生畏,希望我的这个教程,能够指导你入门。加油!

最后,我把完整的脚本写出来如下,你只要修改常量定义部分,就能表现出较大的伸缩性^_^

#!/bin/bash

# This is a script

# Edit by liwei

# establish a static firewall

# define const here

Open_ports=”80 25 110 10″ # 自己机器对外开放的端口

Allow_ports=”53 80 20 21″ # internet的数据可以进入自己机器的端口

#init

iptables -F

iptables -X

iptables -t nat -F

iptables -t nat -X

# The follow is comment , for make it better
# iptables -P INPUT DROP

iptables -A INPUT -i ! ppp0 -j ACCEPT

# define ruler so that some data can come in.

for Port in “$Allow_ports” ; do
ptables -A INPUT -i ppp0 -p tcp -sport $Port -j ACCEPT
iptables -A INPUT -i ppp0 -p udp -sport $Port -j ACCEPT
done

for Port in “$Open_ports” ; do
iptables -A INPUT -i ppp0 -p tcp -dport $Port -j ACCEPT
iptables -A INPUT -i ppp0 -p udp -dport $Port -j ACCEPT
done

# This is the last ruler , it can make you firewall better
iptables -A INPUT -i ppp0 -p tcp -j REJECT –reject-with tcp-reset
iptables -A INPUT -i ppp0 -p udp -j REJECT –reject-with icmp-port-unreachable

The Linux kernel in Ubuntu provides a packet filtering system called netfilter, and the traditional interface for manipulating netfilter are the iptables suite of commands. iptables provide a complete firewall solution that is both highly configurable and highly flexible.

Becoming proficient in iptables takes time, and getting started with netfilter firewalling using only iptables can be a daunting task. As a result, many frontends for iptables have been created over the years, each trying to achieve a different result and targeting a different audience.

The Uncomplicated Firewall (ufw) is a frontend for iptables and is particularly well-suited for host-based firewalls. ufw provides a framework for managing netfilter, as well as a command-line interface for manipulating the firewall. ufw aims to provide an easy to use interface for people unfamiliar with firewall concepts, while at the same time simplifies complicated iptables commands to help an adminstrator who knows what he or she is doing. ufw is an upstream for other distributions and graphical frontends.

Firestarter linux firewall

Compiz fusion 0.6版最新消息:

五月 9, 2009
前 几天Compiz 0.6发布了,当然这仅仅是Compiz Core这个核心而已,Compiz Fusion还没有任何消息。不过随着最重要的核心的完成,再联系今天这个有关Compiz Fusion最新的消息,相信Compiz Fusion 0.6的发布也快了。毕竟Ubuntu 7.10已将Compiz Fusion作为默认的窗口管理器,再不发布稳定版Ubuntu也要跳票了。呵呵

这次Compiz Fusion修正了一大堆Bug,甚至重写了3D窗口的那个插件。现在使用3D插件和旋转立方体不再有任何问题了。

如果你有多个显示器,现在也有非常棒的输入效果了。
图片

图片

另外,增加了Simple-Settings和Medium-Settings,如果你对

Compizconfig里面复杂的设置感到头晕,用上面两个工具就好了。可以非常简单、方便地设置成你想要的效果!

图片

还有一个新玩意,叫Fusion-Trouble

图片

这个工具的用途是来检测你的Compiz Fusion是否安装正确或正常工作,往后有了什么问题,先用这个Fusion-Trouble看看有没有问题吧。

—————————————————————————————————————————–
7.10的用户不用按此方法进行安装,因为7.10默认安装Compiz Fusion,7.04的用户可能用官方源直接安装Compiz fusion,且Compiz fusion的官方主页已开通,大家可以访问Compiz fusion的官方网站,网址为:http://www.compiz-fusion.org
——————————————————————————————————————————

关于使用之前的源安装Compiz fusion出现问题的客户,可以用如下的源试试,具体操作如下:先把本贴中提供的那两个源删了,在新立得里把compiz有关的全删了在加这个源重新安 装就行了,这个源是在compiz fusion管方找的,网址是:http://forlong.blogage.de/article/2007/8/26/The-best-way- to-install-Compiz-Fusion-on-Ubuntu-Feisty

新加源:deb http://ppa.launchpad.net/amaranth/ubuntu feisty main

希望以上的信息能对安装Compiz fusion出现问题的朋友有所帮助,如果以上能使用解决问题,那么请转告给其它的朋友。

谢谢大家对此帖的支持!如在使用Compiz fusion出现问题,请在此帖中提出,我将尽力给予解答!

—————————————————————————————————————————–

俗话说:“合久必分,分久必合”,当初beryl从compiz中分离出来,现在compiz 又与beryl合并,从此就诞生了compiz fusion,即compiz 与 beryl的合并后的一个溶合体。Compiz Fusion在综合了Compiz及Beryl特效的基础上,还提供更多的功能,同时与beryl相比,所需的系统资源更少,效果更为出色。

下面,我们就来安装compiz fusion:
1、得到密匙

代码:
sudo wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add -

2、添加源:

代码:
deb http://download.tuxfamily.org/3v1deb feisty eyecandy
deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy

3、更新:

代码:
sudo apt-get update
sudo apt-get dist-upgrade

4、安装Compiz及Compiz fusion

代码:
sudo apt-get install compiz compiz-gnome
sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-fusion-*

5、运行Compiz Fusion
现在你就可以享受Fusion带来的惊喜啦,同时你也可以关闭Compiz及Beryl啦,在“系统-首选项-会话”新建一个新的会话如下:

代码:
compiz –replace

6、Compiz 使用emerald 主题:

代码:
emerald –replace

这样,系统就可以在开机后自动加载Compiz Fusion啦。

新增Fusion-ico,在右上角上将会出现一个图标,可以象Beryl一样对Compiz-Fusion进行设置管理 (此处是引用Codecody的文章 http://forum.ubuntu.org.cn/viewtopic.ph … highlight=

让你像Beryl一样来管理你的compiz fusion桌面。
在终端中执行以下命令: 引用:
sudo apt-get install git git-core compiz-dev

引用:
git-clone git://anongit.opencompositing.org/users … usion-icon

引用:
这里如果网站连不上可能需要设置代理,命令是 引用:
export http_proxy=”http://*.*.*.*:*”

引用:
cd fusion-icon

引用:
make

引用:
sudo make install

然后,Alt+F2 fusion-icon
或者“应用程序→系统工具→Compiz Fusion Icon”
当然,你可以在原来的“会话”中去掉“compiz –replace”和“emerald –replace”(如果你用的是emerald主题的话),建立新的会话“fusion-icon”,这样登录之后在通知区域就可以看到fusion-icon的图标了。

在“系统-首选项”里有Compiz Fusion的设置程序Compizconfig Settings Manager,运行Compizconfig settings Manager,可以看到非常多的选项,不过目前都是英文的,大家可以试试各个特效所产生的效果。

在youtube上,有一段非常精彩的Fusion功能演示视频,非常值得一看,地址为:http://www.youtube.com/watch?v=E4Fbk52Mk1w&v3

—————————————————————————————————————————–
关于运行Compiz fusion后,窗口无边框,即无最大化、最小化按钮的解决方案:—2007-8-5更新

1、安装Compiz fusion icon

2、下载emerald主题,我用的是Leopard OSX的主题。

3、运行Compiz fusion icon

4、右键点击Compiz fusion icon,选中Emerald theme Manager

5、在Emerald theme manager中,点击import,选中emerald主题包。

6、刷新一下,应该可以看到边框,至此,完成。

—————————————————————————————————————————-
在Fusion里配置Flip和Cover特效 2007-08-11

1、首先安装好Compiz Fusion。
2、通过新立德安装compiz-fusion-plugins-unofficial和compiz-fusion-plugins-unsupported这两个软件包。
3、系统-首选项-CompizConfig Setting Manager,在Window Management中,选中Shift Switcher。
4、对Shift Switcher进行设置:
4.1、在Swicher mode中有Cover及Flip两个选择,Cover及Flip的效果见附图。根据你自己的喜好,进行选择。
5、激活Cover及Flip:通过Super+Tab键激活。

附件:
文件注释: Leopard Cover效果 -2007-8-11
compiz-fusion-new-1.jpg
compiz-fusion-new-1.jpg [ 185.3 KiB | 被浏览 83400 次 ]
文件注释: Vista Flip效果
compiz-fusion-new-2.jpg
compiz-fusion-new-2.jpg [ 192.29 KiB | 被浏览 27563 次 ]
文件注释: Gnome主题 Leopard
leopard.tar.gz [81.23 KiB]
被下载 4718 次
文件注释: 2007-8-5更新
fusion-icon_0.1.deb [101.54 KiB]
被下载 3656 次
文件注释: emerald 主题:Apple Leopard —–2007-8-5更新
请把文件名60442-Leopard OSX.zip 改为60442-Leopard OSX.emerald

60442-Leopard OSX.zip [65.38 KiB]
被下载 5019 次
文件注释: Compizconfig Settings Manager的设置选项
Screenshot-1.png
Screenshot-1.png [ 244.13 KiB | 被浏览 34153 次 ]
文件注释: 鼠标移到左上角,就会出现这个桌面选择器,是不是非常的酷,仔细看,会发现有倒影。
Screenshot.png
Screenshot.png [ 227.34 KiB | 被浏览 31929 次 ]

最后由 coffer 编辑于 2007-10-06 21:51,总共编辑了 13 次

一般 还行 不错 很好 非常好
页首
用户资料
2 楼 
文章标题 :
帖子发表于 : 2007-06-24 9:39
头像


注册: 2007-01-15 17:15
帖子: 3755

so cool

最后由 iblicf 编辑于 2007-09-25 14:42,总共编辑了 1 次

一般 还行 不错 很好 非常好
页首
用户资料
3 楼 
文章标题 :
帖子发表于 : 2007-06-24 10:06
头像


注册: 2007-03-18 16:17
帖子: 531
地址: 广州

我的情况是:compiz-fusion装好了`效果也有了~可是在Compizconfig settings Manager里对它效果的设置不起作用啊,不管设置什么都不起作用~奇怪

_________________
感受Ubuntu!

一般 还行 不错 很好 非常好
页首
用户资料
4 楼 
文章标题 :
帖子发表于 : 2007-06-24 10:33
头像


注册: 2006-05-13 4:02
帖子: 10524
地址: Montréal, Québec, Canada

cheno 写道:
我的情况是:compiz-fusion装好了`效果也有了~可是在Compizconfig settings Manager里对它效果的设置不起作用啊,不管设置什么都不起作用~奇怪

这位同学,你应该是在beryl下选择的compiz吧?他其实调用了自带的那个compiz,所以设置是靠gl desktop的。你把系统的桌面效果关闭,然后输入compiz –replace 一切ok。

附件:
Screenshot.png
Screenshot.png [ 609.14 KiB | 被浏览 14906 次 ]

_________________
Archlinux, kernel 2.6.29.2, gcc 4.4.0, glibc 2.9, gnome 2.26.1, xorg 7.4/xserver 1.6.1

一般 还行 不错 很好 非常好
页首
用户资料
5 楼 
文章标题 :
帖子发表于 : 2007-06-24 10:37
头像


注册: 2006-12-22 21:05
帖子: 639
地址: 上海

cheno 写道:

引用:
我的情况是:compiz-fusion装好了`效果也有了~可是在Compizconfig settings Manager里对它效果的设置不起作用啊,不管设置什么都不起作用~奇怪

你在终端运行一下:compiz –replace

或者你把“compiz –replace”直接加入到会话里,这样,系统启动,就会自动运行Compiz Fusion啦。

一般 还行 不错 很好 非常好
页首
用户资料
6 楼 
文章标题 :
帖子发表于 : 2007-06-24 10:39
头像


注册: 2006-12-22 21:05
帖子: 639
地址: 上海

zhuqin_83写道:

引用:
cheno 写道:
我的情况是:compiz-fusion装好了`效果也有了~可是在Compizconfig settings Manager里对它效果的设置不起作用啊,不管设置什么都不起作用~奇怪
这位同学,你应该是在beryl下选择的compiz吧?他其实调用了自带的那个compiz,所以设置是靠gl desktop的。你把系统的桌面效果关闭,然后输入compiz –replace 一切ok。

不一定需要在Beryl下选择Compiz,你关闭Compiz,不运行Beryl,只运行Compiz –replace即可。

一般 还行 不错 很好 非常好
页首
用户资料
7 楼 
文章标题 :
帖子发表于 : 2007-06-24 10:40
头像


注册: 2007-05-27 20:29
帖子: 626

火焰效果的快捷键是什么啊?效果都用上了,可是不会激活啊。
一般 还行 不错 很好 非常好
页首
用户资料
8 楼 
文章标题 :
帖子发表于 : 2007-06-24 10:55
头像


注册: 2006-05-13 4:02
帖子: 10524
地址: Montréal, Québec, Canada

还有,如果需要emerlad作为window decorator 的话,输入emerald –replace。

_________________
Archlinux, kernel 2.6.29.2, gcc 4.4.0, glibc 2.9, gnome 2.26.1, xorg 7.4/xserver 1.6.1

一般 还行 不错 很好 非常好
页首
用户资料
9 楼 
文章标题 :
帖子发表于 : 2007-06-24 11:13
头像


注册: 2007-05-27 20:29
帖子: 626

会了,呵呵,发现有快捷键的。
不过桌面立方体还是不会用,不知道为什么,快捷键不起作用。
一般 还行 不错 很好 非常好
页首
用户资料
10 楼 
文章标题 :
帖子发表于 : 2007-06-24 11:16
头像


注册: 2006-11-11 17:14
帖子: 833
地址: 浙江宁波

慢慢研究吧
http://www.imkeke.cn/?p=133

_________________
Arch可真是个好东西!!爱上它了!!
keke’s blog: http://www.imkeke.net
LDCN: http://www.linuxdesktop.cn/

一般 还行 不错 很好 非常好
页首
用户资料
11 楼 
文章标题 :
帖子发表于 : 2007-06-24 11:20
头像


注册: 2007-01-15 17:15
帖子: 3755

kqueenc 写道:
火焰效果的快捷键是什么啊?效果都用上了,可是不会激活啊。

选种 paint fire on the screen ,设置里边有actions —>自定义快捷,

我这里mplayer放电影也透明,不想要,又找不到哪里设置的,其他的gui倒是不透明。。。emeral 窗口装饰器很漂亮阿,,不知道有没有gnome主题配套的????

一般 还行 不错 很好 非常好
页首
用户资料
12 楼 
文章标题 :
帖子发表于 : 2007-06-24 11:40
头像


注册: 2007-05-27 20:29
帖子: 626

iblicf 写道:
kqueenc 写道:
火焰效果的快捷键是什么啊?效果都用上了,可是不会激活啊。

选种 paint fire on the screen ,设置里边有actions —>自定义快捷,

我这里mplayer放电影也透明,不想要,又找不到哪里设置的,其他的gui倒是不透明。。。emeral 窗口装饰器很漂亮阿,,不知道有没有gnome主题配套的????

trailfocus关闭就可以了。

大多数效果都是绣花枕头,没太大的实用性。但我觉得窗口预览确实非常实用,WINDOWS PLAN也不错。
立方体还是不会用。是不是桌面设置的不够,一定要6个桌面吗?

一般 还行 不错 很好 非常好
页首
用户资料
13 楼 
文章标题 :
帖子发表于 : 2007-06-24 11:49
头像


注册: 2007-05-27 20:29
帖子: 626

那个环状任务切换也蛮酷的。那种雪花和水波纹看一次就够了,而且用了以后,CPU占用率也超高。
一般 还行 不错 很好 非常好
页首
用户资料
14 楼 
文章标题 :
帖子发表于 : 2007-06-24 11:51

注册: 2007-04-18 23:34
帖子: 27
无法获取公钥阿,楼主检查下
一般 还行 不错 很好 非常好
页首
用户资料
15 楼 
文章标题 :
帖子发表于 : 2007-06-24 12:00
头像


注册: 2007-01-15 17:15
帖子: 3755

我没选trail focus ,,立方体,你是指什么?切换桌面?(crl+alt+右箭头), (crl+alt+鼠标左键拖)

ubuntu VPN installation

五月 6, 2009

在 Ubuntu 8.10 (Intrepid) 中使用 vpn

上周把我的 T60 上的 升级到了最新版本 ,对比上个版本的升级过程,相对顺利了很多。新版本中最大的改版之一,就是网络管理器的更换。新的管理器使用起来更加简单,不过在使用公司的 的时候却碰到了一些麻烦,在网上搜索了一下,大部分人都有类似的问题,不过还没有找到好的解决办法。

趁着周末的时间,找了一些国外的相关资料,终于把 给搞定了,我下面描述下我的方法,不一定对所有人有效,大家权当参考。

1.需要安装的软件包

很多人反馈 添加的按钮是灰色不可用的,是因为你的相应的软件包没安装完整,使用新立得安装 network-manager-,或者使用以下命令行:

sudo apt-get install network-manager-

也有些同学是像我这样从低版本升级上来的,可能也会有一些杂七杂八的问题,有碰到问题找不到头绪的时候,建议把以下软件包重新安装:

network-manager、network-manager-gnome

2.新建 连接

按下面截图的步骤开始,新连接类型要选择 

3.设置 属性

按下图所示,“Getway”  是你的网关地址,“User name” 也不能为空,注意密码这里先暂时保持为空,连接的时候会提示你填写,这里填写的话可能会导致连接失败。

然后点击 “Advanced”,打开高级选项,选中 “Use Point-to-Point encryption(MPPE)”,如下图所示,其它选项不用改动:

到这里就配置结束了,不出意外的话,连接应该是正常的。

4.路由问题

正常情况下,拔上  后,本地的网络会不正常,这是因为本地网络默认会走 的路由的关系,我们需要设置只有远程地址才需要走远程的网关。

在设置对话框中选择 “IPV4 Setting”,然后点击 “Route”,参考下面的截图:

我这里是设置了 172.20.1.x 和 172.20.2.x 的网段才通过远程网关,你需要根据你的情况来做相应的修改:

到这里如果你还有问题,还可以通过查看系统日志(dmesg 或 cat /var/log/syslog)来进一步判断问题所在。

ubuntu8.04下解决wine乱码

五月 5, 2009
打开.wine/system.reg
进行编辑

(一定要使用 gedit 或其他支持 gb2312/utf8 编码的编辑器修改这些文件,否则文件中的中文可能变乱码)

搜索: LogPixels
找到的行应该是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
将其中的:
“LogPixels”=dword:00000060

改为:
“LogPixels”=dword:00000070

搜索: FontSubstitutes
找到的行应该是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
将其中的:
“MS Shell Dlg”=”Tahoma”
“MS Shell Dlg 2″=”Tahoma”

改为:
“MS Shell Dlg”=”SimSun”
“MS Shell Dlg 2″=”SimSun”

Linux学习网收集整理 ,转贴请标明原始链接。

Connect to Windows VPN server (PPTP) with Ubuntu Gutsy

五月 5, 2009

Ubuntu makes it simple to connect to a Microsoft Windows VPN server at your workplace with NetworkManager and the pptp plugin. Luckily for us Ubuntu users, the right tools are just a couple of clicks or commands away. The first step is to install the network-manager-pptp package. I’ve broken this down into two sections: GUI and CLI installation methods, and Configuration.

Install PPTP with GUI (requires reboot)

Go to the Applications menu, then select Add/Remove… and enter pptp in the search bar.

Add/Remove Programs - pptp plugin

There it is! Add a checkmark, and hit apply changes. Once the install has completed, reboot your machine and move on to the configuration portion of this guide.

Install PPTP CLI (no reboot required)>

Execute the following commands to:

  • install network-manager-pptp
  • restart NetworkManager daemon
  • restart nm-applet and begin configuring


sudo apt-get install network-manager-pptp
killall nm-applet
sudo /etc/init.d/dbus restart
nm-applet --sm-disable &

Configure Your VPN

After rebooting or restarting NetworkManager and nm-applet, a single click on the nm-applet should reveal a new option, VPN Connections.

New VPN Connections Option

Follow the menu, and select Configure VPN then Add a new connection.

Click Forward to begin the configuration. Go ahead and name your connection, then enter the IP address or DNS hostname of the VPN gateway under the Connection tab.

Next, move to the Authentication tab and activate Refuse CHAP.

At this point, the basic configuration is complete. I like to add one more step, however, to ensure that not all of my traffic is routed over the VPN. This can be detrimental for performance. If you’d rather limit your VPN traffic to a specific subnet, go ahead and execute the following:

Under the Routing tab, disable Peer DNS through tunnel (if desired) and enable the option to only use VPN connection for these addresses and enter your network subnet. If the machines on your network use addresses like 192.168.100.X, use something like the following:

Subnetting

192.168.100.0/24

That’s it! You’re done. To connect to the VPN, click the NetworkManager applet, and follow the menus to your newly configured connection. Enter your username, password, and domain, and you should be in business.

Leave comments below if the procedure was any different for you. I’ve tested this on Ubuntu Gutsy 7.10 32 bit and 64 bit.