Friday, 27 December 2013

在ubuntu 12.04LTS下安装 Clearlooks主题

这个是上一篇的翻译版
-首先查看GTK的版本,我的是3.4.2
~$ dpkg -s libgtk-3-0 | grep '^Version'
Version: 3.4.2-0ubuntu0.5

对应版本下载安装包

(GTK 3.0 and 3.2)

(GTK 3.4)

( GTK 3.6 and newer)

解压
~$ unzip projets-divers-clearlooks-phenix-4d2a946df42129a279fbef41ffe60b6ef543d46b.zip
- Extract the archive.

- 把解压后的文件夹重命名为 `Clearlooks-Phenix`.
~$ mv projets-divers-clearlooks-phenix Clearlooks-Phenix

- 拷贝文件夹`Clearlooks-Phenix` 到系统指定目录:
~$ sudo cp -r Clearlooks-Phenix /usr/share/themes/
   
- 我们需要安装软件 gonme-tweak-tool 来切换主题
~$ sudo apt-get install gnome-tweak-tool

- 打开tweak-tool,用他来选择主题
选择 *Theme  > GTK+ theme* > Clearlooks-Phenix

看下图,还是很喜欢蓝色



参考:
http://gnome-look.org/content/show.php/Clearlooks-Phenix?content=145210



How to install clearlooks theme on Ubuntu 12.04LTS


-Check GTK version
~$ dpkg -s libgtk-3-0 | grep '^Version'
Version: 3.4.2-0ubuntu0.5

Download the packet for different GTK version

(Clearlooks-Phenix 1 for GTK 3.0 and 3.2)

(Clearlooks-Phenix 2 for GTK 3.4)

(Clearlooks-Phenix 3 for GTK 3.6 and newer)

~$ unzip projets-divers-clearlooks-phenix-4d2a946df42129a279fbef41ffe60b6ef543d46b.zip
- Extract the archive.

- Rename the extracted folder to `Clearlooks-Phenix`.
~$ mv projets-divers-clearlooks-phenix Clearlooks-Phenix

- Copy the folder `Clearlooks-Phenix` in the location:
~$ sudo cp -r Clearlooks-Phenix /usr/share/themes/
     
- Install gonme-tweak-tool
~$ sudo apt-get install gnome-tweak-tool

- Then, choose Clearlooks-Phenix theme with tweak-tool:
by setting *Theme  > GTK+ theme* > Clearlooks-Phenix

See the picture below(looks much better):



More details see here:
http://gnome-look.org/content/show.php/Clearlooks-Phenix?content=145210



Thursday, 26 December 2013

How to read keyboard symbols

How to read keyboard symbols

~tilde (sounds like til-da); be prepared to explain to computer-illiterate people saying "you know, the wave-shaped thingy"
!exclamation; commonly read as bang in case of #!/bin/sh
@at
#pound; but commonly read as shee in case of #!/bin/sh, not sure why
$dollar
%percent
^caret; not many people know this word so be prepared to say "no, not carrot; it's the character above 6, an arrow pointing up"
&ampersand
*star; some read asterisk
(opening parenthesis (some may shorten it saying paren)
)closing parenthesis
_underscore; once I heard people say underbar
+plus
-minus, hyphen; as symbol before arguments in commands, some people including me read dash, easier to say one syllable
=equals
`backtick or backquote
{opening brace
}closing brace
[opening bracket
]closing bracket
|pipe or vertical bar
\backslash; be prepared to explain to some computer-illiterate people
:colon
;semicolon
"double quote
'single quote
<less than; some may read left angle bracket
>greater than
,comma
.dot; period if in English text
?question mark
/slash or forward slash; some computer-illiterate people may be confused about / and \
space
(), [] and {}may also be called brackets in general. In that case, they specifically call [] square brackets and {} curly brackets. I never like this. Open and Closing may also be called left and right.

can't install vim to my new Ubuntu 12.04 安装不了vim

新装了一个ubuntu 12.04,缺发现安装不了VIM

Code:

sudo apt-get install vim

错误信息:

E: Package 'vim' has no installation candidate


使用以下方案解决问题:
先运行下 
Code:
sudo apt-get update
应该是更新源信息,然后再运行

Code:

sudo apt-get install vim

成功!

-------------------------------------------------------------------------------------
I could not install vim to my new ubuntu 12.04

Code:

sudo apt-get install vim

can't install vim, got the error message:

E: Package 'vim' has no installation candidate


If you have only just installed Ubuntu, you need to run the following first:
Code:
sudo apt-get update
Then try installing vim again

Code:

sudo apt-get install vim

succeed!