Showing posts with label UBUNTU. Show all posts
Showing posts with label UBUNTU. Show all posts

Known Lucid Lynx issues/bugs with workarounds

Disclaimer : The purpose of this thread is to list known Lucid Lynx issues and bugs, and give the corresponding workarounds and launchpad entries.Feel free to propose other known Lucid Lynx bugs to be listed here but please provide a link to the workaround and a link to the corresponding launchpad entry.-------------------------------------------------Warning: Before upgrading or attempting a reinstall make sure you backup essential files.Please read the Release Notes and Overview:-http://www.ubuntu.com/getubuntu/releasenotes/1004http://www.ubuntu.com/getubuntu/releasenotes/1004overviewUpgrade 8.04 -> 10.04 can break apt-get.The package flashplugin-nonfree has been problematic when upgrading 8.04 -> 10.04 and breaks apt-get;Bug ReportFor those not wanting to read the bug report in detail, the fix is :
Code:sudo rm /var/lib/dpkg/info/flashplugin-nonfree.prerm
sudo dpkg --remove --force-remove-reinstreq flashplugin-nonfree
sudo dpkg --purge --force-remove-reinstreq flashplugin-nonfreeNautilus location bar, bread crumbs vs text based.Breadcrumbs is now the default. The button to switch between the two has been removed. Users can switch with ctrl+l and then esc to revert to breadcrumbs. To permanently switch to text users have to use gconf-editor from a terminal. Note: gconf-editor has been removed from the menus. The key is.apps>nautilus> preferences> always_use_location_entryMinimize, Maximize and Close button placement.A decision has been taken to move the placement to the left. Mark Shuttleworth explained that this was because "something" is going to be placed in the right hand area in the next release. Moving the buttons now would help enable this change.[[Update ]http://www.markshuttleworth.com/archives/333The buttons are in the old location on all default themes apart from Ambiance,Radiance and Dust, If you still want the Ambiance ,Radiance or Dust theme but with buttons on the right, choose one of those other themes and use the Customize button to achieve what you want. e.g.1. System > Preferences > Appearance2. Select the theme icon "New Wave"3. Click the button "Customize.."4. Select tab "Controls" and select "Ambiance"5. Select tab "Window border" and select "Ambiance"6. Select tab "Icons" and scroll down and select "Ubuntu-mono-dark"7. Select "Save Theme" to your choice.Using gconf-editor is not the right approach as this could bork future themes. This change makes it easier for themes to do interesting things with window borders. Unfortunately, if the wrong approach spreads, they won't be able to do that.Problem with Huawei usb mobile broadband dongles. Please see this bug report and click the affects me button if you have this bug. A fix is committed. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/446146.Also fix/workaround here. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/509547 See post #32Bootup/Plymouth. Users should experience a much faster boot however some users may experience problems with Plymouth after the nVidia graphics driver has been enabled. Users may experience plymouth using lower graphics resolution. https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/551013Graphical solution : http://news.softpedia.com/news/How-to-Fix-the-Big-and-Ugly-Plymouth-Logo-in-Ubuntu-10-04-140810.shtmlCommand line :(Some of the fixes put forward dont work for everyone.)One that works for nVidia and to try is this.
Code:gksu gedit /etc/default/gruband add the line in BOLD.# The resolution used on graphical terminal# note that you can use only modes which your graphic card supports via VBE# you can see them in real GRUB with the command `vbeinfo'#GRUB_GFXMODE=640x480GRUB_GFXPAYLOAD_LINUX=1680x1050 Save the file and run
Code:sudo update-grubThe resolution chosen should be your monitors native resolution.Other graphics card users may get a black screen with flashing cursor and then a very short duration plymouth. https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/540801One fix for this is to create this file.
Code:gksu gedit /etc/initramfs-tools/conf.d/splashand add this option FRAMEBUFFER=y, save the file.Then
Code:sudo update-initramfs -uPlymouth now has a hard dependency on mountall thus trying to remove Plymouth would remove half the OS. The advice is, if you don't want a graphical boot then uninstall any plymouth themes.If the problem is a slow boot, and you have no floppy drive, disable the floppy in the bios. This has been reported as a fix to this. https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/551712If the problem is plymouth not displaying, and a black screen from grub to gdm, this could be due to graphics drivers needing to be loaded quicker. This is bugged.https://bugs.launchpad.net/ubuntu/+source/linux/+bug/539787Plymouth is installed with 2 themes by default you can install more via synaptic.To change themes this code is used.
Code:sudo update-alternatives --config default.plymouthJava. Sun java has been deprecated. Openjdk is now the default, i.e installing ubuntu-restricted-extras with recommends will install openjdk and the icedtea plugin. Openjdk has been certified by Java SE Test Compatibility Kit (TCK) and is compatible with the Java(TM) SE 6 platform on the amd64 (x86_64) and i386 (ix86) architectures. However sun-java is in the partner repo.There's a bug regarding the icedtea plugin and certain applets.https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/551328.Not fixed yet. Workaround may be to create a new Firefox profile.Boot options hidden by default on Desktop and Netbook LIVECDsThe Ubuntu 10.04 LTS Desktop and Netbook CDs feature a new boot interface that is non interactive by default. To configure advanced boot options, press any key at the first boot screen.
__________________

How to Fix the Big and Ugly Plymouth Logo in Ubuntu 10.04

As everyone already knows, the highly anticipated Ubuntu 10.04 LTS (Lucid Lynx) operating system was released on April 29th, after 6 months of work. The new features of this release can be seen by clicking the link above, however... it appears that Canonical refused to fix a bug. And we are talking about the Ubuntu logo shown during boot. (Please read the Plymouth README file located under the /usr/share/doc/plymouth/ directory, for more details).

Long story short, the logo looks fine when you install Ubuntu, but, after you install the proprietary Nvidia and ATI video drivers, the logo gets bigger and ugly! Below, we provide two fixes for this issue: the first one will fix the resolution of the Ubuntu logo, pretty much like it was when you installed Ubuntu; and the second one will remove the logo, showing only a dark screen until the login manager appears.

Without any further ado, follow the instructions below to fix your boot splash in Ubuntu 10.04 LTS (Lucid Lynx).

Editor's note: The instructions provided here are created for beginners in Linux. No terminal hassle! The first fix was developed by Hoa Nguyen from the Ubuntu community. All credits go to him! All I did was to find a second fix and compile them both in a very easy and user-friendly tutorial.

Alternative One - Fixing Plymouth's resolution

Step 1: Hit the ALT+F2 key combination, paste the following command and check the "Run in terminal" option:

sudo apt-get install v86d

...a terminal window will appear. Enter your password when asked, hit the Enter key and wait for the package to be installed. The terminal window will automatically close!



Step 2: Hit the ALT+F2 key combination, paste the following command and check the "Run in terminal" option:

gksu gedit /etc/default/grub

...enter your password when asked and hit the Enter key.

- Replace the following line (line number 9):

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

with this one:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1280x1024-24,mtrr=3,scroll=ywrap"

- Replace the following line (line number 18):

#GRUB_GFXMODE=640x480

with this one:

GRUB_GFXMODE=1280x1024

The file should look like this:



Save the file and close it!

Step 3: Hit the ALT+F2 key combination, paste the following command and check the "Run in terminal" option:

gksu gedit /etc/initramfs-tools/modules

When the text window appears, add the following line at the end of the file:

uvesafb mode_option=1280x1024-24 mtrr=3 scroll=ywrap

It should look like this:



Save the file and close it!

Step 4: Hit the ALT+F2 key combination, paste the following command and check the "Run in terminal" option:

echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash

...a terminal window will appear for a second or two. The terminal window will automatically close!



Step 5: Hit the ALT+F2 key combination, paste the following command and check the "Run in terminal" option:

sudo update-grub2

...a terminal window will appear. Enter your password when asked, hit the Enter key and wait for the command to finish. The terminal window will automatically close!



Step 6: Hit the ALT+F2 key combination, paste the following command and check the "Run in terminal" option:

sudo update-initramfs -u

...a terminal window will appear. Enter your password when asked, hit the Enter key and wait for the command to finish. The terminal window will automatically close!



Step 7: Reboot your computer. When the system starts, you should see a better looking Ubuntu logo!



Alternative Two - No logo at boot

Click the link below to install the Startup Manager application.

Install Startup Manager

If you use Firefox, choose "apturl" when asked and install the package. Wait for the installation to finish and go to System -> Administration -> StartUp-Manager.

Wait a few seconds for the program to start, and then choose 1280x1024 and 24 bits in the "Resolution" and "Color depth" drop-down menus. Also, check the "Show boot splash" option, and you can reduce the "Timeout in seconds" option to 0 (zero)! It should look something like this:



Close the application and wait a few seconds to apply the changes. Reboot your computer!

From our tests, this will make the Ubuntu logo disappear. All you will see is a dark screen, until GDM (GNOME Diplay Manager) appears.

Editor's note: You can play a little with the resolution of the first fix, as 1280x1024 may not work for everyone! Just make sure that you change it in all three locations as indicated above.

Nvidia drivers & Ubuntu 10.04 Lucid Lynx

***If your looking for the Nvidia Driver Installation guide, check http://www.sucka.net/2010/04/how-to-install-nvidia-video-driver-in-10-04-lucid-lynx/

Reading the Ubuntu Lucid development forum, I noticed most people can’t get the new Plymouth to work with Nvidia proprietary drivers. Some get just some errors, some see just some blue progress bar, etc.

But here is a very easy solution for getting Plymouth working with proprietary Nvidia drivers (and it works in VirtualBox too). Being so easy, I don’t understand why they haven’t included this tweak in Ubuntu Lucid yet, but I suppose there is a reason behind this so be aware of this before proceeding.

WARNING: Only follow this how-to if you know what you are doing. If you make any mistakes, Ubuntu might not start!

Here is what you have to do to get Plymouth working with proprietary Nvidia drivers:

Step 1: we must edit the /etc/default/grub file.

Open a terminal and type or paste this (if you are using the Run menu within Gnome use gksudo instead of plain old sudo):

$ sudo nano /etc/default/grub
On line #18, uncomment (uncomment = remove the “#” in front of the line “#GRUB_GFXMODE=640×480” and change the resolution to whatever you want. Here is how it should look:

GRUB_GFXMODE=1024x768
Step 2: edit the /etc/grub.d/00_header file.

$ sudo nano /etc/grub.d/00_header
And find the following line: “gfxmode=${GRUB_GFXMODE}” (it’s line 103 on my computer) and under it, paste this:

set gfxpayload=keep
Step 3: update Grub 2:

To update the GRUB, simply run the following command:

$ sudo update-grub
Once you complete the above steps, restart the computer and you should see the nice Plymouth screen like in the screenshot in the beginning of the post.

opera 字体终极解决方案

很多朋友对于opera的字体设置感到非常头疼。虽然也有各种各样的解决方法,但总是不彻底,不是有这个问题就是有那个不满意。我这里有个方法可以帮你比
较好的解决opera字体问题,你想用什么字体就用什么字体,非常方便。

1、


码:


cd

gedit ~/.opera/styles/user/user.css


2、加入如下内容


码:
@charset "utf-8";

/*   Name: 雅黑 */

html,body,*{

font-family:"lihei Pro"!important;

font-size: 13px !important;

word-spacing: 0.4mm !important;

letter-spacing: 0.2mm !important;}


注意:lihei Pro这个地方的字体随便换成你喜欢的

我选择的是苹果字体

3、打开opera浏览器,然后view---->style----->manage
modes---->display,然后在my style sheet那一栏选择刚才编辑的黧黑文件即可。

中文菜单位置为:查看──样式──雅黑

重启opera



缺陷:由于采用css强制指定网页文字,浏览某些强制指定某一字体为该网站默认字体的网站页面时,会发生cpu占用过高的现象,(也即二者产生冲突)但这
并不影响正常浏览

用Alternate CD或iso文件升级Ubuntu==第二种方法

1、下载Alternate CD的iso文件。(DVD也可以。)

2、把iso文件刻录到光盘,把光盘放进光驱。

或者:

直接挂载iso文件。参考下面的命令:

sudo mount -o loop ~/Desktop/ubuntu-9.04-alternate-i386.iso
/media/cdrom0

# 把ubuntu-9.04-alternate-i386.iso文件放在桌面文件夹里。

或者:

用Gmount-iso这个软件(源里有)来在图形界面挂载。



3、按提示操作。



注:如果没有出现升级提示的话,可以按“Alt+F2”组合键,然后执行下面的命令行:

gksu "sh /cdrom/cdromupgrade"



注2:这种方法不适用于升级到测试版,只能使用正式版光盘镜像来升级。如果要升级到一个测试版的话,比如从Ubuntu9.04桌面版升级到
9.10beta版,可以按“Alt+F2”,然后在弹出的文本框中输入“update-manager
-d”(不包含引号),更新管理器将会启动并提示:“新发行版 ‘9.10’ 可用”。点击“更新”并按照屏幕上的指导操作即可。

本文地
址:http://ubuntuabc.com/123/?p=86
来自:UbuntuABC

Ubuntu 光盘ISO镜像 升级方法

1、下载Ubuntu alternate ISO
像,看清楚一定要是alternate版


2、挂载光盘镜像,要使用-o loop参数,镜像文件及挂载位置可自行修改


sudo mount -t iso9660 -o loop
/media/disk/ubuntu-9.04-alternate-i386.iso /media/cdrom0


3、开始升级,如果之前改了挂载位置,这里也要对应修改


sudo gksu "sh
/cdrom/cdromupgrade"

转载自 http://www.slyar.com/blog/ubuntu-alternate-iso-upgrade.html

Ubuntu 8.04字体美化之安装苹果丽黑字体教程(图)

1、准备好苹果丽黑字体,推荐LiHei Pro字体,为方便,已上传到Linux公社。

点击本地下载LiHei Pro字体

2、将字体放入字体文件夹,这里有个问题,必须要拥有系统管理权限才能在字体文件夹内进行文件复制等操作,下面进行详细说明。

(1)字体文件夹位于/usr/share/fonts

使用命令进入该文件夹:sudo gnome-open /usr/share/fonts/,建立一个新文件夹,命名为apple

(2)将Apple LiHei Pro字体放入上述文件夹内。

(3)修改字体权限,确保root以外的普通用户也可以正常使用该字体

3、建立字体缓存,命令:

cd /usr/share/fonts/apple/

sudo mkfontscale

sudo mkfontdir

sudo fc-cache -fv

4、重启电脑,设置系统字体。

系统字体设置:桌面右键“更改桌面背景”──“字体”选项,将字体都改为“LiHei Pro”
Ubuntu 8.04字体美化之安装苹果丽黑字体教程(图)
 

Firefox字体设置:编辑──首选项──内容──字体──配置

按以上步骤设置完成即可!

5、在我安装过程中,并不需要象Ubuntu安装雅黑字体一样,修改字体配置文件!当然,每个人在安装过程中可能会遇到乱码的问题,本人没碰到这种情况!

Ubuntu 9.10 使用 Snow Lepoard 中英文字体美化方案

1.先下载雪豹里的中文字体,也就是华文黑体。

http://www.brsbox.com/filebox/down/fc/0
... a841c82104


2.再下载苹果默认的英文字体也就是Lucida Grande字体

http://www.box.net/shared/jllu26e3pc


意:这个字体是经过修正的,修正了冒号乱码的问题,具体请参看Nicky's Blog中的相关说明。
http://www.osxcn.com/ubuntu/lucida-grande-50d8e1.html

3.
字体解压出来以后,双击直接打开字体文件stshei.ttf,点击右边的安装字体即可。

同样方法再安装英文字体 Lucida
Grande.

4.字体安装完以后编辑字体定义文件,终端中执行:

sudo gedit
/etc/fonts/conf.d/69-language-selector-zh-cn.conf

在<string>AR
PL UMing CN</string>上面添加一行<string>STHeiti SC</string>


有<string>Bitstream Vera
Sans</string>上面也添加<string>STHeiti SC</string>


面还有一组定义就不要添加了,因为终端里的字体还是用monospace比较好,用Lucida的话会有重叠。

5.最后是调整字体的显示
效果,桌面右键,选择更改桌面背景,然后字体定义选项中,除等宽字体以外,全部定义为Lucida Grande,样式选Regular。


合LCD的设置是在细节中选择“次像素”,微调选线选择“关闭”。

到此就结束了,中文字体是华文黑体,英文是Lucida.


我的液晶显示器上,效果和苹果一模一样。喜欢的朋友可以试试。

老鸟可以忽视了 :em11

USING ADIUM MESSAGE STYLES IN PIDGIN


OPERATING SYSTEMS Linux Mint, Ubuntu Jaunty/Karmic

PLUGIN
pidgin-webkit

APPLICATION Pidgin Instant Messenger 2.6.2



Note

I've
found that the pidgin-webkit plugin works better than empathy's support
for webkit message styles. Even CSS transforms are possible, which
means that fancy transitions are possible in pidgin-webkit (eg in the
Noteboard theme).



Sources

Thanks to [link]
and to [link]
I finally figured out how to use Adium message styles in Pidgin. The
following steps, which are based on the previously-mentioned
instructions, are what worked for me.



Pre-installation

  1. Add
    the PPA for Webkit to your repository by either:

    • add
      the line deb [link]
      jaunty main to /etc/sources.list 

    • use Synaptic Package
      Manager to add the ppa line visually

  2. Open Terminal.
    Update your repository: sudo apt-get update

  3. Install
    the following packages: sudo apt-get install libnotify-bin pidgin-dev
    libpurple-dev libwebkit-dev bzr




Installing
Pidgin-Webkit Plugin


  1. In Terminal use the
    following command to fetch the pidgin-webkit plugin source: bzr
    branch lp:~spoidar/pidgin-webkit/karmic-fixes

  2. Change to
    the karmic-fixes directory (probably under your home folder): cd
    ~/karmic-fixes

  3. Compile the package: make

  4. Install
    the package: make install




Using the
Pidgin-Webkit Plugin

Enable the plugin


  1. Open
    Pidgin Instant Messenger. Under Tools &gt; Plugins, look for WebKit
    Message Styles
    and make sure this is checked.



Installing
and Using Themes


  1. You can find Adium message
    style themes at [link]

  2. Extract theme files to ~/.purple/message-styles.
    The folder of the style, when extracted, should look something like NameofStyle.AdiumMessageStyle.

  3. Open
    Tools &gt; Plugins, select WebKit message styles and click
    on Configure Plugin. You will see a list of message style themes
    in this window. Select one, close the plugin window, and voila.

Evolution与google通讯录同步

我把原来存放在outlook的通讯录导出csv文件上传到存在google上了,ubuntu下的Evolution也需要与google通讯录同步。

想同步的步骤非常简单。
进入“联系人”页>“文件”>“新建”>“地址簿”,在弹出的窗口“类型”中选择google,接下来输入google帐
号,然后提示输入密码就OK了。

将Compiz Fusion最小化窗口神灯效果水蛇状改成MAC OSX神奇特效

这个也有版权问题,Ubuntu人现在怎么这样了啊Compiz update disabled the ability for
"Magic Lamp" minimization effect to mimic the infamously "Genie Effect
from Mac OSX" by limiting the "Magic Lamp Max Waves" from 0 to 3. Let's
hack it!

当初Win7刚要出来时,Felix对其“DirectAccess”功能感到十分向往,从网上找到资料,发现这只是 Teredo
的一个应用。在其他平台上,也一样可以轻易开启 Teredo 从而访问 IPv6 资源。

×××希望各位公网用户不要再使用高校的isatap通道打开ipv6了,教育网的ipv6带宽很有限,而教育网的ipv4却不
能出国,因此教育网ipv6是高校学生们获取我朝以外资源最实惠的途径了!×××

Windows
XP(SP1+):

1
2
netsh
interface ipv6 install
netsh interface ipv6 set teredo client

Windows Vista/7:

不用特别设
置,默认开启

Debian/Ubuntu Linux:


1
sudo apt-get install miredo

Redhat/Fedora Linux:

1
2

su -c 'yum install miredo'
su -c
'service miredo-client start'



Windows
下经过上述设置如果无法连接,可以尝试换用debian的Teredo服务器:


1
netsh interface ipv6 set teredo client teredo-debian.remlab.net.

若想用微软的服务器,可以用下面的命令:


1
netsh interface ipv6 set teredo client teredo.ipv6.microsoft.com.

Linux下经过上述设置如果无法连接,可以尝试换用微软的Teredo服务器:

Debian/Ubuntu:

1
sudo gedit
/etc/miredo.conf

Redhat/Fedora:

1
su -c
'dbus-launch gedit miredo.conf'

1
2

修改为

1
2

然后重启miredo服务

1
2
su -c
'service miredo-client restart'  #Redhat/Fedora
sudo service miredo
restart            #Debian/Ubuntu

打开浏览器,输入网址: ipv6.google.com 并回车,你看到了什么?


UBUNTU解决文件名mp3标签和文本文件内容的乱码问题

从windows转移到ubuntu的用户,常常会发现自己在windows在创建/下载/保存的文件经常性出现乱码问题(kubuntu出现问题的可能 性更高一些)。而使用默认播放器打开以往的音乐文件(mp3等)时,出现乱码的机会更是接近100%。出现这个问题是因为文件或是文件标签编码并不是系统 默认的UTF8,而windows系统默认使用的是GBK。只要将文件编码做一下转换就解决乱码的问题

 sudo apt-get install python-mutagen

find . -iname "*.mp3" -execdir mid3iconv -e GBK {} \;



Configure Evolution for Gmail IMAP

Currently, there is no configuration guide for using Gmail's IMAP under Evolution in Gmail's help page. However, this doesn't mean that Evolution cannot use Gmail's IMAP service. This step-by-step guide is aiming at users who are not familiar with Evolution or Gmail's IMAP settings. It's easy for experienced users to figure out how to configure Evolution to use Gmail's IMAP by Gmail's official help pages for other mail clients. For those users, this guide may still save them some time.


First, you should enable IMAP in Gmail's setting.



Go to Gmail's setting. In the Forwarding and POP/IMAP tab, go down to the IMAP access section, and select "Enable IMAP".



Then you should open Evolution's preferences window.



Open Evolution, and go to the menu Edit, then the sub menu Preferences.



We need to add a new account.



In the Evolution preferences window, click the Add button.



A wizard will appear.




You'll see a welcome window. Just click the forward button.



Type in your name and email address.



Fill the Full name and Email address fields, and select "Make this my default account". Click the forward button.



Then fill in Gmail's IMAP server's information. Note that there is not a port field in Evolution. You should specify the server port use this form imap.gmail.com:993. Also, username should be your full gmail address. And for security, you should use SSL connection.



Select "IMAP" in server type. Fill the Configuration section with imap.gmail.com:993 and yourname@gmail.com. Select SSL encryption in Security and Password in Authentication Type. Select "Remember password". Click the forward button.



Next, we'll set some receiving options. Typically you can check first two items. And I recommend that you leave other items unselected.



Select "Automatically check for new mails" and "Check for new messages in all folds". And leave other options unselected. Click the forward button.



Now we've finished the IMAP settings, we'll configure sending settings. We'll use the smtp.gmail.com:587 server via TLS. Again, you should note that the username is your full gmail address.



Select the server type: SMTP. Fill smtp.gmail.com:587 in the server field. Select "Server requires authentication". Select "TLS encryption" in Security and choose "Login" in Authentication Type. Fill "yourname@gmail.com" as Username. Select "Remember password". Click the forward button.



We're almost finished. Just pick a name for your account, for example, gmail.



Fill in "gmail" in the Name field. Click the forward button.




Congratulations! Just click the apply button to save all.




Now you've set up all. You can receive your gmails via IMAP now. Try it. (A window will pop up asking for your password. Fill in your Gamil password.)


There is still something left, which are not must-haves. However, I recommend you to read on.


Again, open Evolution's preferences window.



Open Evolution, and go to the menu Edit, then the sub menu Preferences.



Highlight the account we've created and edit it.



Click the "Edit" button.



We need to configure the draft and sent folder in the Defaults tab.



Click the Defaults tab in the Account Editor window.




Click the "Draft folder", in the pop up window, open "gmail", then "[Gmail]", and select "Drafts".




Note the location of Draft folder. It's inside [Gmail], which itself is inside "gmail". We do this configuration to save our drafts in Gmail's server.



Click the "Sent folder", in the pop up window, select "sent" in "On This Computer".



You can make other choices here. But don't save it inside Gmail's sent folder, as this will be done by Gmail itself whenever you use Gmail's smtp.
From:http://weakish.int.eu.org.sixxs.org/tutorial/configure-evolution-for-gmail.xhtml



Finally it's the Gnu PGP settings (if you use PGP keys).



Go to the "Security" tab in Account Edit window.



Click "OK" button, and enjoy Evolution with Gmail!

how to add KEY for Ubuntu PAA

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com FA3A1271(the key u need)


how to - slove the problem of pubkey for ppa.launchpad.net

如何解决关于ppa.launchpad.net的关于找不到公钥的问题


Those who like to use the ppa resource alway meet the problem that :

I have some extra repositories on my list and when I update tells me
they are missing keys. The address is the same for them so I cant tell
which is which to look and and the keys. anyone know of a way around?

msg like below:
W: GPG error: http://ppa.launchpad.net
intrepid Release: The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY 3B81A3FBA47394CE

W: GPG error: http://ppa.launchpad.net
intrepid Release: The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY 778978B00F7992B0

W: GPG error: http://ppa.launchpad.net
intrepid Release: The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY 4874D3686E80C6B7

W: GPG error: http://ppa.launchpad.net
intrepid Release: The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY 60D11217247D1CFF

W: GPG error: http://ppa.launchpad.net
intrepid Release: The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY 632D16BB0C713DA6

W: GPG error: http://ppa.launchpad.net
intrepid Release: The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY 665F9AEFE1098513

W: Failed to fetch http://ddebs.ubuntu.com/dists/intrepid/Release Unable to find expected entry updates/

binary-i386/Packages in Meta-indexfile (malformed Release file?)



Here is the how-to


Open the terminal

1. gpg --keyserver keyserver.ubuntu.com --recv 7889D725DA6DEEAA(this is the key which u missed)


2.gpg --export --armor 7889D725DA6DEEAA | sudo apt-key add -


then ,pls enjoy your ubuntu.debian

在GNOME中实现所有视频文件预览

naulitus中的文件预览功能非常不错(致少个人是非常喜欢!)

图片基本上没有什么可说的 直接就可以了

而视频因为万恶编码的不同而很不方便(记得多年前用Windows时都是安装很多播放器的!比如WMP Realone,Apple的Quicktime,后来出现豪杰2000算是不错的 可以播放RMVB DVD VCD,那时还没有不流行MPC)

naulitus中的AVI只要用默认的Totem-gst 就可以了!但RMVB但不行了

而用totem-xine则可以预览RMVB

方法:

1 改用totem-xine 在新立得里面安装

2 安装xine的文件 libxine1-ffmpeg(直接安装这个就行 会自动安装一些解码器的包!)

3 删除 ~/.thumbnail 下的内容! rm -rf ~/.thumbnail

4 Ctrl+Alt+Backspace重启X



PS:不知道用不用W32Codes 不过我是安装了的!

sudo apt-get install totem-xine libxine1-ffmpeg | rm -rf ~/.thumbnail/*


Ubuntu 8.04 中的字体美化配置,修正前辈介绍

此方法在最新的 Ubuntu 8.04 上测试通过,是对nicky的 “Ubuntu的黑体解决方案”的更新和完善。

这里我以华文黑体 (STHeiti) 作为例子。

如果你不喜欢华文黑体,也可以使用其他黑体来代替,修改方法不变。


使用华文黑体 (STHeiti) 替换 Ubuntu 中文字体方法:


1、下载 STHeiti 字体(暂时短缺,如果有朋友需要可以email我)


下载 stheiti.rar 字体包,解压后复制到 /usr/share/fonts/truetype 下面。一般需要你使用root账号进行操作,普通用户组会遇到命令行错误的问题。


附:root账号启用方法:


其实我个人认为这没有多大必要,因为当你需要 root 的权限时,使用 sudo 便可以了。如果你实在需要在 Ubuntu 中启用 root 帐号的话,那么不妨执行下面的操作:

在终端执行 sudo passwd root 指令后,系统将会提示你设置一个新的 root 帐号密码。

点击 系统 -> 系统设置 -> 登录窗口 菜单,并切换到 Security 选项页,然后选中其下的“允许本地系统管理员登陆”选项。

执行上述两步后,你便可以使用 root 帐号登录 Ubuntu 系统了。


如果要再次禁用 root 帐号,那么可以执行 sudo passwd -l root。


设置 STHeiti.ttf 可读权限:(如果你使用root进行操作可以省略这一步)

sudo chmod a+r /usr/share/fonts/truetype/stheiti.ttf


2、设置 STHeiti 为首选中文字体


7.10中的终端命令:sudo gedit /etc/fonts/language-selector.conf


8.04中的终端命令:sudo gedit /etc/fonts/conf.d/69-language-selector-zh-cn.conf


这个区分非常重要!


找到(多处):


<family>AR PL UMing CN</family> (视排在首位的中文字体为准)


在它的上面一行添加:


7.10中添加:<family>STHeiti</family>


8.04中添加:<string>STHeiti</string>


这个区分非常重要!


然后刷新字体缓存:

sudo fc-cache -f -v


3、设置英文字体和渲染方式


打开 “系统-首选项-外观-字体” 面板:


在字体选项里选择一款英文字体,如:Lucida Grande 或者 Bitstream Vera Sans。


在 “字体渲染” 选项中选择 “次象素平滑” 或者 “最佳形状” 。


所有设置完成,重启X界面(ctrl+alt+backspace),些修改完成!


希望对不了解的朋友和初学者有所帮助。


gtk主题指南

一、gtk主题指南
    1.Widgets
    2.Styles
    3.Engines
    4.gtkrc文件
        1)修改构件的属性
        2)每一构件的分为五种状态
        3)风格绑定
            1.将一种风格绑定到组件类
            2.组件嵌套的方式widget_class
                如widget_class "*.GtkButton.*" style "button-content"
            3.应用指定风格
            4.风格绑定的优先次序
        4)组件指定风格
        5)高级指定风格(依据gtk2正式文档)
    5.widget设置示例
    
      
一、gtk主题指南
    1.Widgets
        GTK拥有一套大量的widget集合,如按钮,滚动条,编辑框等,每一种组件的属性都可以单独进行配置。
所有的widget由GtkWidget派生出来的。也就是说,更改GtkWidget的属性所有的widgets会受到影响。幸运的是,大多数widget有其父类,如GtkButton的属性同样使GtkCheckButton生效,除非你对其进行单独的配制。

    2.Styles    
  
     用户自定义GtkWidget形成
自己的风格,定义的方式有两种形式,一种是以使用Gtk中的style,但style定义方式中只给出了几种有限风格属性,如设置滚动条的宽度。另一种就
是通过使用engine这种机制来实现,其中定义很多的属性可供使用时选择。
        通过定义不同的styles合并在一起成为一个最终的Gtk主题,所以通常可以定义出一个基本的风格,其包含一此通用的选项配置,对于定义组件专有的属性可以在引用它的基础上做设置,如颜色的修改.

    3.Engines
        与styles组合实现出更有吸引力的风格,gtk内部实现很多可供选择的风格。
        
    4.gtkrc文件
        一个rc文件被称为gtkrc,存放的地方取决于系统的配置,通常放在/usr/share/themes/themename目录下,存在gtk-2.0/gtkrc文件,此文件可以是一个rc文件,里面定义了gtk中各种组件的配置。

        1)修改构件的属性:
        fg:设置一个构件的前景色
        bg:设置一个构件的背景色
        text:可编辑文本构件的前景色
        base:可编辑文本构件的背景色
        bg_pixmap:显示像素图的构件的背景色
        font_name:设置字体风格
        xthickness:设置左右边界的宽度
        ythickness:设置上下边界宽度

        2)每一构件的分为五种状态:
        NORMAL:鼠标没有覆盖,点击的状态
        PRELIGHT:鼠标在组件之上
        ACTIVE:鼠标被按下或点击的状态,
        INSENSITIVE:不能被激活,或点击的状态
        SELECTED:被选对象可以带好多属性

        3)风格绑定:
            1.将一种风格绑定到组件类
                格式:class "GtkButton" style "my-button"     将“my-button"风格绑定到GtkButton的所有实例
                widget_class "*Text*" style "bright_yellow"
                将"bright_yellow"风格绑定到名字中含有“Text“的组件
            2.组件嵌套的方式widget_class
                如widget_class "*.GtkButton.*" style "button-content"
            3.应用指定风格
                如果一个应用开发者已经明确陈列一种元素,在gtkrc文件中指明元素名,来将它风格化。
                eg: widget “funky bar“ style “mystyle“
            4.风格绑定的优先次序
  
             对widget的rc风格绑定 > 对widget_class风格的绑定 > class
同一种组件的多种声明是,后一种优于前一种。指定优先的highest,rc,theme,application,gtk,lowest将覆盖上述的风
格绑定,
            
        4)组件指定风格:
            gtk api文档列表中,列出的style properties,对某种widget类型,是明确的,eg。GtkWiget::focus-line-width = 2

        5)高级指定风格(依据gtk2正式文档):
            界定符#,注释所在行的内容,在解析gtkrc文件时,将此行被忽略掉。
            1.binding name {...} 声明绑定设置
            2.calss pattern [ style | binding [ : priority ]] name       对继承层的一个具体的分支,指定风格或绑定设置
            3.include finename: 在此处引入文件,如果不是包含绝对路径的文件名,将会在当前打开rc文件的文件夹下,搜索此文件
            4.module_path path: 设置搜索rc文件中涉及的主题引擎路径。
            5.pixmap_path path: 设置搜索像素图的路径。
            6.widget pattern [ style | binding [ : priority ]] name 给路径名上相配匹配的一组具体的组件设置风格或绑定。
            7.widget_class pattern [ style | binding [ : priority ]] nane  给路径名上相匹配的一组具体的组件设置风格或绑定。
 
    5.widget设置示例:
        * Buttons:
            buttons不存在背景的设置,只能通过对其所处的widget上添加背景的处理。
            bevelling (relief): 对button进行三种状态的设置: GTK_RELIEF_NORMAL, GTK_RELIEF_HALF, GTK_RELIEF_NONE.
        * Labels:
            不存在背景色,估计可以通过text[]这一属性设置其前景色
        * Text Boxes:
            背景: base[NORMAL]
            文本颜色: text[NORMAL]
            应用自定义的风格: widget_class "*TextView*" style "my_style"
            改变编辑时光标的颜色eg: GtkWidget::cursor-color "red"
        * Scrollbars and Scales:
            使用 widget_class "*Scrollbar*" 来指定scrollbars.
            arrow button and main draggable rectangle colour is controlled by bg[NORMAL]
            槽和边框设置背景色 bg[ACTIVE]
            鼠标光标移动scrollbar(滚动条)上时的颜色使用bg[PRELIGHT]设置
            光标箭头的颜色fg[NORMAL]
        * Combobox: http://live.gnome.org/GnomeArt/Tutorials/GtkThemes/GtkComboBox
            combobox是一个按钮包含:label, separator, and arrow
        * Icons:
            设置自定义的图标
            stock["my-stock-item"] =
            {
                { "itemmenusize.png", *, *, "gtk-menu" },
                { "itemtoolbarsize.png", *, *, "gtk-large-toolbar" }
                { "itemgeneric.png" } /* implicit *, *, * as a fallback */
            }
        * Menus:
            菜单是一个组合控件,包括menubar和menuitems.
        * Lists:
            与Treeview组合为一个整体.
        * Treeview:        
            Treeview开为两部分:head_window,bin_window,该组件可以按元素列表和树的形式显示
            Treeview 背景色是通过base[]控制,如果处于非关注状态则按base[ACTIVE]的着色显示.
            设置Treeview的列的顶部的颜色,使用bg控制.
  
         Treeview列的顶部为一个按钮. 指定widget_class "*TreeView.GtkButton*".
指定顶部文本的颜色The text colour in the heads is controlled with fg, and not
text.
            The default line spacing of TreeView lists is
quite large. It is not possible to reduce it in the rc file. This is a
known issue.
            Treeview 风格自属性有: allow-rules,
even-row-color, expander-size, horizontal-separator, indent-expanders,
odd-row-color, vertical-separator.
        * Tabs:
            文本内容在非选中的tab上使用的是fg[ACTIVE],背景色设置bg[ACTIVE].
            定义tabs文本设置 widget_class "*GtkNotebook*GtkLabel".
        * engine    
            gtk engines 给开发者提供大量不同的显示风格选项。通过使用不同的engine来设置不同风格的组件。
            style "some-style" {
                engine "clearlooks" {
                        # engine specific settings go here
                    }
            }

VNP in Ubuntu

在 Ubuntu 下,我们可以轻松使用 www.linkideo.com 提供的 VPN 服务,利用UbuntuVPN 连接到法国。

下面介绍一下方法:

1. 自行到 www.linkideo.com 注册一个免费的帐号,注册后您将可以使用 邮件地址+密码进行VPN连接。

2. 下载并自动安装软件:
sudo apt-get install pptp-linux
sudo apt-get install network-manager-pptp
sudo apt-get install network-manager-vpnc

3. 开始连接:

a) 配置 VPN



b) 新建VPN连接



c) 开始连接



连接时需要输入帐号和密码,那就是在 www.linkideo.com 注册时的电邮和密码,到此,您已经成功通过 VPN 连接到了法国。

Copyright © 2008 - All man's Pet - is proudly powered by Blogger
Smashing Magazine - Design Disease - Blog and Web - Dilectio Blogger Template