Linux.com

Community Blogs



gparted - Move/Resize Lesson Learned

I have just learned a hard lesson about gparted, in the process of setting up a new netbook to multi-boot Windows Vista and Linux.  Perhaps by passing it along, I can help others avoid stumbling over this.

I loaded Vista from scratch, telling it to create two partitions on the disk.  It used 135 GB for the Vista partition, created a 100 GB Data partition, and according to gparted it left 1 MB of unused space at the beginning of the disk - although that space was not visible in the Vista partition manager.  I believe that unused space has something to do with the Vista boot loader, but I'm not sure and I don't particularly care.  That's a huge amount of space for Vista, which I am unlikely to ever use, so I wanted to reduce that partition, and use as much space as possible for the various Linux distributions I would be loading.  The Vista partition manager would only reduce that partition to about 58 GB, and I wanted to squeeze more than that out of it, so I decided to boot the Ubuntu LiveCD, and use gparted from there.

The first time I resized the partition using gparted it not only reduced the size, it also moved the partition to the left, to take up that free space.  Unfortunately, that rendered the Vista partition unbootable.  It took a couple more tries before the light finally came on - the "round to cylinders" flag was set in gparted, so even though I wasn't telling it to move the partition, it was doing so on its own in order to shift it back to the start of the cylinder.  All I had to do to get gparted to resize without moving the partition was clear that flag.

Two other things are worth mentioning.  First, after you have resized a Windows partition using gparted, the next time you boot Windows it will automatically check and clean the partition.  There's nothing wrong, it will only take a minute or so to run, just let it go.  Second, once you have started a Move/Resize in gparted, if you interrupt it you are almost certain to end up with a corrupted (proably irreparable)  partition.  Except in case of extreme emergency, don't ever abort a Move/Resize operation!

jw 30/7/2009

 

Open-Xchange Brings Sociability to Collaboration

Open-Xchange Server 6.10 breaks the silos of isolated social networks

 

NUREMBERG, Germany, July 29, 2009 – Open-Xchange, the leading provider of open source groupware, today announced the ability to consolidate social network communication in one central application with the availability of Open-Xchange Server 6.10.

 

Open-Xchange 6.10 introduces a new groupware concept called “Social OX,” which aggregates e-mail and contact information in one place -- whether personal or business -- avoiding time-consuming searching and giving users access to information anywhere, anytime and with any device.

 

“Social networks such as LinkedIn, Facebook, Plaxo and Xing are great tools for business networks. And, Googlemail and Yahoo free mail accounts have changed our way of communicating,” said Juergen Geck, CTO of Open-Xchange. “Before we end up in confusion with lots of e-mail accounts and address books, Open-Xchange overcomes the barriers between the variety of desktop and web applications, where we store and handle our multiple addresses, appointments, tasks and documents.”

 

People today use a number of different e-mail addresses and social network tools to store contact information generated from their personal and professional lives,” said Philbert Shih, senior analyst, Tier1 Research. “Social OX is designed to bring the contact information stored in e-mail and social networks closer together, allowing the user to control everything from a single platform. This is a very useful innovation that messaging vendors are only starting to catch on to.”

 

New features of Open-Xchange 6.10 include:

 

·         Integration of any kind of existing webmail accounts (from Google, Yahoo, etc.) into a folder in Open-Xchange, including merging of data.

 

·         Contact details from social networks such as Facebook, LinkedIn or Xing will be added automatically to the Open-Xchange address book – giving users easy access to the latest contact information within their personal network.

 

·         In addition, Open-Xchange users can share their data with other users in a controlled way -- without sending the information via e-mail. For example, with Social OX published data can be shared so there is no need to send large documents as an attachment via e-mail.

 

“Our customers depend on their email to run their business,” said Miguel Ramos, manager of Hosting Product Development at Network Solutions®. “Social OX will give them the ability to engage with their customers and vendors regardless of the social network their contacts are using.”

 

Anyone can try Social OX for free at this special preview website, http://ox.io.

 

Open-Xchange is installed by more than 3,500 companies and organizations worldwide. Furthermore, the Open-Xchange Hosting Edition is used by more than 10 million users worldwide as hosted business-class e-mail, along with personal information management (PIM), and full groupware.

 

About Open-Xchange

Open-Xchange is the innovator of scalable and integrated open source e-mail and collaboration solutions for enterprises, academic institutions, and government authorities. The company provides on-premise versions called Open-Xchange Server Edition and Open-Xchange Appliance Edition, along with Open-Xchange Hosting Edition, which enables web hosting companies to provide an easy-to-use and feature-rich application delivered as Software as a Service (SaaS). The Open-Xchange Hosting Edition is architected to integrate into a hosting provider’s existing infrastructure, such as authentication, provisioning, billing, and e-mail storage and does not require that these systems be replaced.

 

Open-Xchange AG is a privately-held company headquartered in Nuremberg, Germany with offices in Olpe, Germany and Tarrytown, N.Y. For more information, please visit www.open-xchange.com.

#  #  #

 

vim /.vimrc

l 宏录制与执行
normal模式下输入qa (q表示录制宏,a为宏的名称)
@a执行宏,执行N次则输入N@a (N为数字)

l 删除特定字符
normal模式下输入:%s/abc//g
    % : ÂåπÈÖçÊ雷∏™Êñቪ∂
    s : ÁΩÆÊç¢
    /abc : ÂåπÈÖçabc
    / :ÁΩÆÊç¢ÁªìÊûú,Ê≠§Â§ÑÂà†Èô§,Êâĉª•‰∏çËæìÂÖ•‰ªª‰ΩïÂ≠óÁ¨¶,
        ¶Ç˶ÅÂ∞ÜabcÁΩÆÊç¢ÊàêcbaÂàôËæìÂÖ•:%s/abc/cba/g
    /g : ÊØèË°å‰∏≠ÂåπÈÖçÂà∞ÁöÑÂÜÖÂÆπÈÉΩ˶ÅÁΩÆÊç¢

" 设置backup file后缀
set backupext=.bak
" 设置backup dir
set backupdir=E:/bak/vim
# 开启语法高亮
syntax on
# 开启自动缩进,即下一行和当前行的缩进一致
set autoindent
# ºÄÂê؉ª£Á†ÅÊô∫ËÉΩÁº©Ëøõ„Äljæã¶ÇÂú®ÂÜôC++Á®ãÂ∫èÊó∂Ôºå“{”Áöщ∏ã‰∏Ä˰剺öËá™Âä®Â¢ûÂä†Áº©Ëøõ
set cindent
# 设置智能缩进的增量,即每一级缩进的字符数
set shiftwidth=4
# 显示行号
set number
# 设置Tab宽度
set tabstop=4


:%s/[A-Z]/l&/g   ÂÖ®ÈÉ®ÊîπÂ∞èÂÜô

光标控制命令
ÂëΩ‰ª§                        ÂÖâʆáÁߪÂä®
hÊàñ^h                    ÂêëÂ∑¶Áߪ‰∏ĉ∏™Â≠óÁ¨¶
jÊàñ^jÊàñ^n                Âêë‰∏ãÁߪ‰∏ÄË°å
kÊàñ^p                    Âêë‰∏äÁߪ‰∏ÄË°å
lÊàñÁ©∫ʆº                     ÂêëÂè≥Áߪ‰∏ĉ∏™Â≠óÁ¨¶
G                        ÁߪÂà∞Êñቪ∂ÁöÑÊúÄÂêé‰∏ÄË°å
nG                       ÁߪÂà∞Êñቪ∂ÁöÑÁ¨¨nË°å
w                        ÁߪÂà∞‰∏ã‰∏ĉ∏™Â≠óÁöѺħ¥
W                        ÁߪÂà∞‰∏ã‰∏ĉ∏™Â≠óÁöѺħ¥ÔºåÂøΩÁï•Ê†áÁÇπÁ¨¶Âè∑
b                        ÁߪÂà∞Ââç‰∏ĉ∏™Â≠óÁöѺħ¥
B                        ÁߪÂà∞Ââç‰∏ĉ∏™Â≠óÁöѺħ¥ÔºåÂøΩÁï•Ê†áÁÇπÁ¨¶Âè∑
L                        ÁߪÂà∞±èÂπïÁöÑÊúÄÂêé‰∏ÄË°å
M                        ÁߪÂà∞±èÂπïÁöщ∏≠Èó¥‰∏ÄË°å
H                        ÁߪÂà∞±èÂπïÁöÑÁ¨¨‰∏ÄË°å
e                        ÁߪÂà∞‰∏ã‰∏ĉ∏™Â≠óÁöÑÁªìÂ∞æ
E                        ÁߪÂà∞‰∏ã‰∏ĉ∏™Â≠óÁöÑÁªìÂ∞æÔºåÂøΩÁï•Ê†áÁÇπÁ¨¶Âè∑
(                        ÁߪÂà∞Âè•Â≠êÁöѺħ¥
)                        ÁߪÂà∞Âè•Â≠êÁöÑÁªìÂ∞æ
{                        ÁߪÂà∞ÊƵËêΩÁöѺħ¥
}                        ÁߪÂà∞‰∏ã‰∏ĉ∏™ÊƵËêΩÁöѺħ¥
0Êàñ|                     ÁߪÂà∞ÂΩìÂâçË°åÁöÑÁ¨¨‰∏ÄÂàó
n|                       ÁߪÂà∞ÂΩìÂâçË°åÁöÑÁ¨¨nÂàó
^                        ÁߪÂà∞ÂΩìÂâçË°åÁöÑÁ¨¨‰∏ĉ∏™ÈùûÁ©∫Â≠óÁ¨¶
$                        ÁߪÂà∞ÂΩìÂâçË°åÁöÑÊúÄÂêé‰∏ĉ∏™Â≠óÁ¨¶
+Êàñreturn                ÁߪÂà∞‰∏ã‰∏ÄË°åÁöÑÁ¨¨‰∏ĉ∏™Â≠óÁ¨¶
-                        ÁߪÂà∞Ââç‰∏ÄË°åÁöÑÁ¨¨‰∏ĉ∏™ÈùûÁ©∫Â≠óÁ¨¶

在vi中添加文本

ÂëΩ‰ª§                         ÊèíÂÖ•Â䮉Ωú
a                        Âú®ÂÖâʆáÂêéÊèíÂÖ•ÊñáÊú¨
A                        Âú®ÂΩìÂâçË°åÊèíÂÖ•ÊñáÊú¨
i                        Âú®ÂÖâʆáÂâçÊèíÂÖ•ÊñáÊú¨
I                        Âú®ÂΩìÂâçË°åÂâçÊèíÂÖ•ÊñáÊú¨
o                        Âú®ÂΩìÂâçË°åÁöщ∏ãËæπÊèíÂÖ•Êñ∞Ë°å
O                        Âú®ÂΩìÂâçË°åÁöщ∏äËæπÊèíÂÖ•Êñ∞Ë°å
:r file                  ËتÂÖ•Êñቪ∂fileÂÜÖÂÆπÔºåÂπ∂ÊèíÂú®ÂΩìÂâçË°åÂêé
:nr file                 ËتÂÖ•Êñቪ∂fileÂÜÖÂÆπÔºåÂπ∂ÊèíÂú®Á¨¨nË°åÂêé
escape                   ÂõûÂà∞ÂëΩ‰ª§Ê®°Âºè
^v char                  ÊèíÂÖ•Êó∂ÂøΩÁï•charÁöÑÊåáÂÆöÊÑè‰πâÔºåËøôÊò؉∏∫‰∫ÜÊèíÂÖ•ÁâπÊÆäÂ≠óÁ¨¶

在vi中删除文本

ÂëΩ‰ª§                         Âà†Èô§Êìç‰Ωú
x                        Âà†Èô§ÂÖâʆá§ÑÁöÑÂ≠óÁ¨¶ÔºåÂè؉ª•Âú®xÂâçÂ䆉∏äÈúÄ˶ÅÂà†Èô§ÁöÑÂ≠óÁ¨¶Êï∞ÁõÆ
nx                       ‰ªéÂΩìÂâçÂÖâʆá§ÑÂæÄÂêéÂà†Èô§n‰∏™Â≠óÁ¨¶
X                        Âà†Èô§ÂÖâʆáÂâçÁöÑÂ≠óÁ¨¶ÔºåÂè؉ª•Âú®XÂâçÂ䆉∏äÈúÄ˶ÅÂà†Èô§ÁöÑÂ≠óÁ¨¶Êï∞ÁõÆ
nX                       ‰ªéÂΩìÂâçÂÖâʆá§ÑÂæÄÂâçÂà†Èô§n‰∏™Â≠óÁ¨¶
dw                       Âà†Ëá≥‰∏ã‰∏ĉ∏™Â≠óÁöѺħ¥
ndw                      ‰ªéÂΩìÂâçÂÖâʆá§ÑÂæÄÂêéÂà†Èô§n‰∏™Â≠ó
dG                       Âà†Èô§Ë°åÔºåÁõ¥Âà∞Êñቪ∂ÁªìÊùü
dd                       Âà†Èô§Êï¥Ë°å
ndd                      ‰ªéÂΩìÂâçË°åºÄÂßãÂæÄÂêéÂà†Èô§
db                       Âà†Èô§ÂÖâʆáÂâçÈù¢ÁöÑÂ≠ó
ndb                      ‰ªéÂΩìÂâçË°åºÄÂßãÂæÄÂâçÂà†Èô§nÂ≠ó
:n,md                    ‰ªéÁ¨¨mË°åºÄÂßãÂæÄÂâçÂà†Èô§nË°å
dÊàñd$                    ‰ªéÂÖâʆá§ÑÂà†Èô§Âà∞Ë°åÂ∞æ
dcursor_command          Âà†Èô§Ëá≥ÂÖâʆáÂëΩ‰ª§Â§ÑÔºå¶ÇdGÂ∞܉ªéÂΩì‰∫ßËÉÜË°åÂà†Èô§Ëá≥Êñቪ∂ÁöÑÊú´Â∞æ
^hÊàñbackspace            ÊèíÂÖ•Êó∂ÔºåÂà†Èô§ÂâçÈù¢ÁöÑÂ≠óÁ¨¶
^w                       ÊèíÂÖ•Êó∂ÔºåÂà†Èô§ÂâçÈù¢ÁöÑÂ≠ó

修改vi文本

每个命令前面的数字表示该命令重复的次数
ÂëΩ‰ª§                         ÊõøÊç¢Êìç‰Ωú
rchar                    Áî®charÊõøÊç¢ÂΩìÂâçÂ≠óÁ¨¶
R text escape            Áî®textÊõøÊç¢ÂΩìÂâçÂ≠óÁ¨¶Áõ¥Âà∞Ê碉∏ãEscÈîÆ
stext escape             Áî®text‰ª£ÊõøÂΩìÂâçÂ≠óÁ¨¶
SÊàñcctext escape         Áî®text‰ª£ÊõøÊï¥Ë°å
cwtext escape            Â∞ÜÂΩìÂâçÂ≠óÊîπ‰∏∫text
Ctext escape             Â∞ÜÂΩìÂâçË°å‰Ωô‰∏ãÁöÑÊîπ‰∏∫text
cG escape                ‰øÆÊîπËá≥Êñቪ∂ÁöÑÊú´Â∞æ
ccursor_cmd text escape  ‰ªéÂΩìÂâç‰ΩçÁΩƧÑÂà∞ÂÖâʆáÂëΩ‰ª§‰ΩçÁΩƧÑÈÉΩÊîπ‰∏∫text

在vi中查找与替换

ÂëΩ‰ª§                         Êü•Êâæ‰∏éÊõøÊç¢Êìç‰Ωú
/text                    Âú®Êñቪ∂‰∏≠ÂêëÂâçÊü•Êâætext
?text                    Âú®Êñቪ∂‰∏≠ÂêëÂêéÊü•Êâætext
n                        Âú®Âêå‰∏ÄÊñπÂêëÈáç§çÊü•Êâæ
N                        Âú®Áõ∏ÂèçÊñπÂêëÈáç§çÊü•Êâæ
ftext                    Âú®ÂΩìÂâçË°åÂêëÂâçÊü•Êâætext
Ftext                    Âú®ÂΩìÂâçË°åÂêëÂêéÊü•Êâætext
ttext                    Âú®ÂΩìÂâçË°åÂêëÂâçÊü•ÊâætextÔºåÂπ∂Â∞ÜÂÖâʆáÂÆö‰ΩçÂú®textÁöÑÁ¨¨‰∏ĉ∏™Â≠óÁ¨¶
Ttext                    Âú®ÂΩìÂâçË°åÂêëÂêéÊü•ÊâætextÔºåÂπ∂Â∞ÜÂÖâʆáÂÆö‰ΩçÂú®textÁöÑÁ¨¨‰∏ĉ∏™Â≠óÁ¨¶
:set ic                  Êü•ÊâæÊó∂ÂøΩÁï•Â§ßÂ∞èÂÜô
:set noic                Êü•ÊâæÊó∂ÂØπ§ßÂ∞èÂÜôÊïèÊÑü
:s/oldtext/newtext       Áî®newtextÊõøÊç¢oldtext
:m,ns/oldtext/newtext    Âú®mË°åÈÄöËøánÔºåÁî®newtextÊõøÊç¢oldtext
&                        Èáç§çÊúÄÂêéÁöÑ:sÂëΩ‰ª§
:g/text1/s/text2/text3   Êü•ÊâæÂåÖÂê´text1ÁöÑË°åÔºåÁî®text3ÊõøÊç¢text2
:g/text/command          Âú®ÊâÄÊúâÂåÖÂê´textÁöÑË°åËøêË°åcommandÊâÄË°®Á§∫ÁöÑÂëΩ‰ª§
:v/text/command          Âú®ÊâÄÊúâ‰∏çÂåÖÂê´textÁöÑË°åËøêË°åcommandÊâÄË°®Á§∫ÁöÑÂëΩ‰ª§

在vi中复制文本

ÂëΩ‰ª§                         §çÂà∂Êìç‰Ωú
yy                       Â∞ÜÂΩìÂâçË°åÁöÑÂÜÖÂÆπÊîæÂÖ•‰∏¥Êó∂ÁºìÂÜ≤Âå∫
nyy                      Â∞ÜnË°åÁöÑÂÜÖÂÆπÊîæÂÖ•‰∏¥Êó∂ÁºìÂÜ≤Âå∫
p                        Â∞܉∏¥Êó∂ÁºìÂÜ≤Âå∫‰∏≠ÁöÑÊñáÊú¨ÊîæÂÖ•ÂÖâʆáÂêé
P                        Â∞܉∏¥Êó∂ÁºìÂÜ≤Âå∫‰∏≠ÁöÑÊñáÊú¨ÊîæÂÖ•ÂÖâʆáÂâç
dsfsd "(a-z)nyy          §çÂà∂nË°åÊîæÂÖ•ÂêçÂ≠ó‰∏∫ÂúÜÊã¨Âè∑ÂÜÖÁöÑÂèØÂëΩÂêçÁºìÂÜ≤Âå∫ÔºåÁúÅÁï•nË°®Á§∫ÂΩìÂâçË°å
"(a-z)ndd                Âà†Èô§nË°åÊîæÂÖ•ÂêçÂ≠ó‰∏∫ÂúÜÊã¨Âè∑ÂÜÖÁöÑÂèØÂëΩÂêçÁºìÂÜ≤Âå∫ÔºåÁúÅÁï•nË°®Á§∫ÂΩìÂâçË°å
"(a-z)p                  Â∞ÜÂêçÂ≠ó‰∏∫ÂúÜÊã¨Âè∑ÁöÑÂèØÂëΩÂêçÁºìÂÜ≤Âå∫ÁöÑÂÜÖÂÆπÊîæÂÖ•ÂΩìÂâçË°åÂêé
"(a-z)P                  Â∞ÜÂêçÂ≠ó‰∏∫ÂúÜÊã¨Âè∑ÁöÑÂèØÂëΩÂêçÁºìÂÜ≤Âå∫ÁöÑÂÜÖÂÆπÊîæÂÖ•ÂΩìÂâçË°åÂâç

在vi中撤消与重复

ÂëΩ‰ª§                         Êí§Ê∂àÊìç‰Ωú
u                        Êí§Ê∂àÊúÄÂêé‰∏Äʨ°‰øÆÊîπ
U                        Êí§Ê∂àÂΩìÂâçË°åÁöÑÊâÄÊúâ‰øÆÊîπ
.                        Èáç§çÊúÄÂêé‰∏Äʨ°‰øÆÊîπ
,                        ‰ª•Áõ∏ÂèçÁöÑÊñπÂêëÈáç§çÂâçÈù¢ÁöÑf„ÄÅF„ÄÅtÊàñTÊü•ÊâæÂëΩ‰ª§
;                        Èáç§çÂâçÈù¢ÁöÑf„ÄÅF„ÄÅtÊàñTÊü•ÊâæÂëΩ‰ª§
"np                      ÂèñÂõûÊúÄÂêéÁ¨¨nʨ°ÁöÑÂà†Èô§(ÁºìÂÜ≤Âå∫‰∏≠Â≠òÊúâ‰∏ÄÂÆöʨ°Êï∞ÁöÑÂà†Èô§ÂÜÖÂÆπÔºå‰∏ÄËਉ∏∫9)
n                        Èáç§çÂâçÈù¢ÁöÑ/Êàñ?Êü•ÊâæÂëΩ‰ª§
N                        ‰ª•Áõ∏ÂèçÊñπÂêëÈáç§çÂâçÈù¢ÁöÑ/Êàñ?ÂëΩ‰ª§

保存文本和退出vi

ÂëΩ‰ª§                         ‰øùÂ≠òÂíå/ÊàñÈÄÄÂá∫Êìç‰Ωú
:w                       ‰øùÂ≠òÊñቪ∂‰Ω܉∏çÈÄÄÂá∫vi
:w file                  Â∞܉øÆÊîπ‰øùÂ≠òÂú®file‰∏≠‰Ω܉∏çÈÄÄÂá∫vi
:wqÊàñZZÊàñ:x              ‰øùÂ≠òÊñቪ∂Âπ∂ÈÄÄÂá∫vi
:q!                      ‰∏ç‰øùÂ≠òÊñቪ∂ÔºåÈÄÄÂá∫vi
:e!                      ÊîæºÉÊâÄÊúâ‰øÆÊîπԺ剪é‰∏äʨ°‰øùÂ≠òÊñቪ∂ºÄÂßãÂÜçÁºñËæë

vi中的选项

ÈÄâÈ°π                         ‰ΩúÁî®
:set all                 ÊâìÂç∞ÊâÄÊúâÈÄâÈ°π
:set nooption            ÂÖ≥Èó≠optionÈÄâÈ°π
:set nu                  ÊØèË°åÂâçÊâìÂç∞Ë°åÂè∑
:set showmode            ÊòæÁ§∫ÊòØËæìÂÖ•Ê®°ÂºèËøòÊòØÊõøÊç¢Ê®°Âºè
:set noic                Êü•ÊâæÊó∂ÂøΩÁï•Â§ßÂ∞èÂÜô
:set list                ÊòæÁ§∫Âà∂Ë°®Á¨¶(^I)ÂíåË°åÂ∞æÁ¨¶Âè∑
:set ts=8                ‰∏∫ÊñáÊú¨ËæìÂÖ•ËÆæÁΩÆtab stops
:set window=n            ËÆæÁΩÆÊñáÊú¨Á™óÂè£ÊòæÁ§∫nË°å

vi的状态

ÈÄâÈ°π                         ‰ΩúÁî®
:.=                      ÊâìÂç∞ÂΩìÂâçË°åÁöÑË°åÂè∑
:=                       ÊâìÂç∞Êñቪ∂‰∏≠ÁöÑË°åÊï∞
^g                       ÊòæÁ§∫Êñቪ∂Âêç„ÄÅÂΩìÂâçÁöÑË°åÂè∑„ÄÅÊñቪ∂ÁöÑÊĪ˰åÊï∞ÂíåÊñቪ∂‰ΩçÁΩÆÁöÑÁôæÂàÜÊØî
:l                       ‰ΩøÁî®Â≠óÊØç"l"Êù•ÊòæÁ§∫ËÆ∏§öÁöÑÁâπÊÆäÂ≠óÁ¨¶Ôºå¶ÇÂà∂Ë°®Á¨¶ÂíåÊç¢Ë°åÁ¨¶

在文本中定位段落和放置标记

ÈÄâÈ°π                         ‰ΩúÁî®
{                        Âú®Á¨¨‰∏ÄÂàóÊèíÂÖ•{Êù•ÂÆö‰πâ‰∏ĉ∏™ÊƵËêΩ
[[                       ÂõûÂà∞ÊƵËêΩÁöѺħ¥Â§Ñ
]]                       ÂêëÂâçÁߪÂà∞‰∏ã‰∏ĉ∏™ÊƵËêΩÁöѺħ¥Â§Ñ
m(a-z)                   Á∏ĉ∏™Â≠óÊØçÊù•Ê†áËÆ∞ÂΩìÂâç‰ΩçÁΩÆÔºå¶ÇÁî®mzË°®Á§∫ʆáËÆ∞z
'(a-z)                   Â∞ÜÂÖâʆáÁߪÂä®Âà∞ÊåáÂÆöÁöÑʆáËÆ∞Ôºå¶ÇÁî®'zË°®Á§∫ÁߪÂä®Âà∞z

在vi中连接行

ÈÄâÈ°π                         ‰ΩúÁî®
J                        Â∞܉∏ã‰∏ÄË°åËøûÊé•Âà∞ÂΩìÂâçË°åÁöÑÊú´Â∞æ
nJ                       ËøûÊé•ÂêéÈù¢nË°å

光标放置与屏幕调整

ÈÄâÈ°π                         ‰ΩúÁî®
H                        Â∞ÜÂÖâʆáÁߪÂä®Âà∞±èÂπïÁöÑÈ°∂Ë°å
nH                       Â∞ÜÂÖâʆáÁߪÂä®Âà∞±èÂπïÈ°∂Ë°å‰∏ãÁöÑÁ¨¨nË°å
M                        Â∞ÜÂÖâʆáÁߪÂä®Âà∞±èÂπïÁöщ∏≠Èó¥
L                        Â∞ÜÂÖâʆáÁߪÂä®Âà∞±èÂπïÁöÑÂ∫ïË°å
nL                       Â∞ÜÂÖâʆáÁߪÂä®Âà∞±èÂπïÂ∫ïË°å‰∏äÁöÑÁ¨¨nË°å
^e(ctrl+e)               Â∞ܱèÂπï‰∏äʪö‰∏ÄË°å
^y                       Â∞ܱèÂπï‰∏ãʪö‰∏ÄË°å
^u                       Â∞ܱèÂπï‰∏äʪöÂçäÈ°µ
^d                       Â∞ܱèÂπï‰∏ãʪöÂçäÈ°µ
^b                       Â∞ܱèÂπï‰∏äʪö‰∏ÄÈ°µ
^f                       Â∞ܱèÂπï‰∏ãʪö‰∏ÄÈ°µ
^l                       ÈáçÁªò±èÂπï
z-return                 Â∞ÜÂΩìÂâçË°åÁΩƉ∏∫±èÂπïÁöÑÈ°∂Ë°å
nz-return                Â∞ÜÂΩìÂâçË°å‰∏ãÁöÑÁ¨¨nË°åÁΩƉ∏∫±èÂπïÁöÑÈ°∂Ë°å
z.                       Â∞ÜÂΩìÂâçË°åÁΩƉ∏∫±èÂπïÁöщ∏≠§Æ
nz.                      Â∞ÜÂΩìÂâçË°å‰∏äÁöÑÁ¨¨nË°åÁΩƉ∏∫±èÂπïÁöщ∏≠§Æ
z-                       Â∞ÜÂΩìÂâçË°åÁΩƉ∏∫±èÂπïÁöÑÂ∫ïË°å
nz-                      Â∞ÜÂΩìÂâçË°å‰∏äÁöÑÁ¨¨nË°åÁΩƉ∏∫±èÂπïÁöÑÂ∫ïË°å

vi中的shell转义命令

ÈÄâÈ°π                         ‰ΩúÁî®
:!command                ÊâßË°åshellÁöÑcommandÂëΩ‰ª§Ôºå¶Ç:!ls
:!!                      ÊâßË°åÂâç‰∏ĉ∏™shellÂëΩ‰ª§
:r!command               ËتÂèñcommandÂëΩ‰ª§ÁöÑËæìÂÖ•Âπ∂ÊèíÂÖ•Ôºå¶Ç:r!ls‰ºöÂÖàÊâßË°ålsÔºåÁÑ∂ÂêéËتÂÖ•ÂÜÖÂÆπ
:w!command               Â∞ÜÂΩìÂâçÂ∑≤ÁºñËæëÊñቪ∂‰Ωú‰∏∫commandÂëΩ‰ª§ÁöÑʆáÂáÜËæìÂÖ•Âπ∂ÊâßË°åcommandÂëΩ‰ª§Ôºå¶Ç:w!grep all
:cd directory            Â∞ÜÂΩìÂâçÂ∑•‰ΩúÁõÆÂΩïÊõ¥Êîπ‰∏∫directoryÊâÄË°®Á§∫ÁöÑÁõÆÂΩï
:sh                      Â∞ÜÂêØÂ䮉∏ĉ∏™Â≠êshellÔºå‰ΩøÁî®^d(ctrl+d)ËøîÂõûvi
:so file                 Âú®shellÁ®ãÂ∫èfile‰∏≠ËتÂÖ•ÂíåÊâßË°åÂëΩ‰ª§

vi中的宏与缩写
(避免使用控制键和符号,不要使用字符K、V、g、q、v、*、=和功能键)

ÈÄâÈ°π                         ‰ΩúÁî®
:map key command_seq     ÂÆö‰πâ‰∏ĉ∏™ÈîÆÊù•ËøêË°åcommand_seqÔºå¶Ç:map e eaÔºåÊó†ËÆ∫‰ªÄ‰πàÊó∂ÂÄôÈÉΩÂè؉ª•eÁߪÂà∞‰∏ĉ∏™Â≠óÁöÑÊú´Â∞æÊù•ËøΩÂä†ÊñáÊú¨
:map                     Âú®Áä∂ÊÄÅË°åÊòæÁ§∫ÊâÄÊúâÂ∑≤ÂÆö‰πâÁöÑÂÆè
:umap key                Âà†Èô§ËØ•ÈîÆÁöÑÂÆè
:ab string1 string2      ÂÆö‰πâ‰∏ĉ∏™Áº©ÂÜôÔºå‰ΩøÂæóÂΩìÊèíÂÖ•string1Êó∂ÔºåÁî®string2ÊõøÊç¢string1„ÄÇÂΩì˶ÅÊèíÂÖ•ÊñáÊú¨Êó∂ÔºåÈîÆÂÖ•string1ÁÑ∂ÂêéÊåâEscÈîÆÔºåÁ≥ªÁªüÂ∞±ÊèíÂÖ•‰∫Üstring2
:ab                      ÊòæÁ§∫ÊâÄÊúâÁº©ÂÜô
:una string              ÂèñÊ∂àstringÁöÑÁº©ÂÜô

在vi中缩进文本

ÈÄâÈ°π                         ‰ΩúÁî®
^i(ctrl+i)Êàñtab          ÊèíÂÖ•ÊñáÊú¨Êó∂ÔºåÊèíÂÖ•ÁߪÂä®ÁöÑÂÆΩÂ∫¶ÔºåÁߪÂä®ÂÆΩÂ∫¶Êò؉∫ãÂÖàÂÆö‰πâ•ΩÁöÑ
:set ai                  ÊâìºÄËá™Âä®Áº©Ëøõ
:set sw=n                Â∞ÜÁߪÂä®ÂÆΩÂ∫¶ËÆæÁΩƉ∏∫n‰∏™Â≠óÁ¨¶
n<<                      ‰ΩønË°åÈÉΩÂêëÂ∑¶ÁߪÂ䮉∏ĉ∏™ÂÆΩÂ∫¶
n>>                      ‰ΩønË°åÈÉΩÂêëÂè≥ÁߪÂ䮉∏ĉ∏™ÂÆΩÂ∫¶Ôºå‰æã¶Ç3>>Â∞±Â∞ÜÊ镉∏ãÊù•Áöщ∏âË°åÊØèË°åÈÉΩÂêëÂè≥ÁߪÂ䮉∏ĉ∏™ÁߪÂä®ÂÆΩÂ∫¶

源文档 <http://hily.me/blog/2006/04/vi-shortcut/>
 

IBM, Virtual Bridges and Canonical Introduce latest version of its Linux-server based Virtual Desktop

Virtual Bridges’ new VERDE 2.0 now integrates client-side hypervisor for offline PC use

Austin , TX – July 29, 2009 -- Virtual Bridges, IBM and Canonical announced today the immediate availability of the newest version of a Linux-server based virtual desktop  with the release of Virtual Bridges’ VERDE 2.0 software.

The Open Virtual Client desktop is a combination of IBM’s Smart Client desktop software, Canonical’s Ubuntu Linux servers and  Linux desktop, and Virtual Bridges’ VERDE Virtual Desktop  Infrastructure (VDI )offering.

VERDE 2.0 delivers several industry firsts, including:

·         Addresses both private cloud and  public cloud requirements.

·          Meets both the needs of the connected user and the disconnected user.

·          Simultaneously and seamlessly manages both Windows and Linux desktop sessions.

With today's announcement, VERDE 2.0 goes beyond virtualizing the desktop to give users significant new functionality: providing  them software access when the users are disconnected from the Internet. VERDE 2.0 accomplishes this by integrating a lightweight, client-side hypervisor based on a new  Self-Managing Auto Replicating Technology (SMART) protocol.  The SMART protocol synchronizes a replicated cache running on the client-side hypervisor with the  managed image on the server, the same  image that is used to populate VDI sessions.

The Open Virtual Client desktop offers users of private or public clouds the ability to lower costs by deploying a Microsoft-alternative in either the whole organization or for particular user segments, and this can be done smoothly over time. Because VERDE supports both Linux and  Microsoft Windows  guest sessions, organizations can broadly realize the benefits of VDI , whether they move to Linux desktops or not. They can also gain additional cost savings that come from moving some user segments to Linux desktops. Introducing thin clients, where appropriate, can further increase cost saving opportunities.

 

The IBM Open Collaboration Client Solution (OCCS) includes open standards-based email, word processing, spreadsheets, unified communication, social networking and more, providing users with exceptional productivity application alternatives. IBM’s smart work client software is based on IBM Lotus Symphony, IBM Lotus Notes and Lotus applications. IBM Lotus Symphony supports the Open Document Format (ODF) standard, the basis for global document interoperability.

 

 With increasing scrutiny on costs in organizations of all sizes, Linux desktops are gaining more ground, and the advent of the netbook computer is accelerating that,” said Bob Sutor, vp of Linux and Open Source, IBM Software Group. The cost advantages of moving even a modest segment of users to Linux are very attractive, and virtualizing the desktop delivers even greater cost efficiencies and easier IT management. In today's economy, it's smart to investigate Linux on the desktop and Virtual Bridges’ VERDE is a great way to do it.”

“Virtual Bridges VERDE 2.0 is a great new release,” said Andi Mann, VP of Research with Enterprise Management Associates (EMA), a leading industry analyst.”  The Linux back-end means a low price point, the architecture is inherently scalable, and support for both online and offline users is extremely flexible. With partners like IBM and Canonical, Virtual Bridges is bringing out a very strong solution.”

"Ubuntu users can now confidently deploy best of breed Linux desktop solutions not only in traditional desktop scenarios, but now in a virtual desktop infrastructure -- or desktop cloud-based deployments," said Steve George, director of Corporate Services at Canonical. "VERDE 2.0 helps decrease cost by optimizing existing resources -- allowing businesses of any size to integrate Linux into their IT environment without disrupting operations."

“VERDE 2.0 will allow us to finally make the move to VDI with its ability to also manage our disconnected users”, said Yoshio Suga, President of Orizon, a Japanese technology firm. “We have been reluctant to deploy VDI due to cost issues of other solutions. VERDE 2.0 will be perfect for us.”

VERDE provides protection aginst viruses, malware and other damage while users are disconnected. If a session is corrupted by malware, the user can restart the session and the session is launched from the write-protected replicated cache of the managed image, on the local disk. This ability eliminates costly help desk intervention and makes the environment  malware-resistant.

Managed Service Providers like Midas Networks are finding tremendous advantages in the capabilities of VERDE 2.0.

“VERDE 2.0 automates for us several issues that typically drive up our costs – malware recovery, implementing patches and updates and provisioning new users”, said Ken Tooke, CEO of Midas Networks. “With the addition of a client-side hypervisor in VERDE 2.0 we can now offer our services to a wider population than with traditional VDI only. Running VERDE as part of OVC has also been attractive to our customers looking to lower their costs. The IBM Smart Client is an excellent alternative to expensive MS applications.”

“Adding the ability to manage disconnected users alongside VDI users is another “first” for Virtual Bridges and really changes the game in the VDI space” said Jim Curtin, president and CEO of Virtual Bridges. “It moves the state of the art beyond VDI to really becoming Desktop Management Infrastructure.”

 http://vbridges.com.

Licensing

VERDE 2.0 offers the simplest licensing in the industry with a complete offering available for one simple, paid-up, per seat price. All of the components are included in this hassle-free licensing model. VERDE 2.0 is available from partners as an Open Virtual Client bundle. The VERDE 2.0 solution is also available directly from Virtual Bridges and its partners. VERDE pricing is $50 per seat for 1000 seats or more.


About Canonical Ltd and Ubuntu

Canonical provides engineering, online and professional services to Ubuntu partners and customers worldwide. As the founder of the Ubuntu project, Canonical is committed to the production and support of Ubuntu – an ever-popular and fast-growing open-source operating system. It aims to ensure that Ubuntu is available to every organisation and individual on servers, desktops, laptops and netbooks.Canonical partners with computer hardware manufacturers to certify Ubuntu, provides migration, deployment, support and training services to businesses, and offers online services direct to end users. Canonical also builds and maintains collaborative, open-source development tools to ensure that organisations and individuals can participate fully in innovations within the open-source community. For more information, please visit www.canonical.com.

About Virtual Bridges

Virtual Bridges, Inc. develops SMB and enterprise virtualization solutions for businesses that use virtualization to create sustainable business advantage.

VERDE and Win4Lin are trademarks or registered trademarks of Virtual Bridges, Inc. All other trademarks are the property of their respective owners.

 

Introduction

I am a new member to Linux.com and wanted to introduce myself.  My name is Mike Faris.  I already have a Linux and Stuff Blog On Blogger.  I also occasionally write to a blog on IT humor, called Twisted Thoughts.

 Here are the Links to both...  Enjoy!

 http://mikefaris.blogspot.com/ <-- Linux and Stuff

 http://mikefaris.wordpress.com/  <--  Twisted Thoughts

 -Mike

 

Fun with VirtualBox

 Originally Published on Igneous Quill

For several months now my family and I have been off of Microsoft Windows. I installed Ubuntu 8.10 on the home desktop (click here to see why dual boot didn't work in this case) and the computer I use at work is an iMac. I now also have a laptop running Ubuntu 9.04. Our only contact with Windows has been at the homes of friends. Still, my 7 year old son has complained occasionally about wanting to download games that only run in Windows. Sure, they are probably laden with spyware and adware, but all he knows is that there are things he could be playing but can't. That's where my fun with VirtualBox began.

Someone will ask if I tried Wine, an application which enables users to run Windows programs on computers using other platforms. The answer is yes, of course I did, but it never worked correctly. Games especially froze up, generally before they even started. While Wine may be good for running Excel on a Linux computer (but then, why not just use OpenOffice.org?) and some other office software, from what I have seen Wine is not yet in a place where it really solves the problem for a majority of applications.

Not long ago I used VirtualBox OSE on my laptop to try out the Android Live CD, so it was fresh on my mind as I dug out the re-install disks for Windows XP that came with our desktop. The tag with the Windows product key is still on the case, so I knew I had everything I need on that end of things. I wasn't sure how well Windows would work in this environment, or how VirtualBox would handle it.
After inserting the CD (no reboot, of course) I went through the steps on VirtualBox to set up a new machine. If you don't have a copy of VirtualBox, you can download it here or from the Ubuntu repositories (check Synaptic Package Manager for it). Once everything was in place, I started the machine. It read the CD, just as though it were a computer booting up, and began the install process.It's funny how much the Windows XP install screen resembles the blue screen of death. Installing Windows takes far longer than Ubuntu. The former took me around an hour or so, not counting the half hour of frustration I spent calling Microsoft's automated product registration line the next day, while the latter takes all of 20 minutes, if that much.

When finally it was installed I still had to do some tweaking. Most importantly I had to install the "Guest Additions" so I could expand the screen out to full size and I also had to turn the sound on in both VirtualBox for that machine and verify it in Windows itself. Internet Explorer 6 is what came on the CD, so I upgraded that right away. My wife complained about the ugly Windows field in the desktop background, and since I figured my son would be the one using it the most, I found a cartoon penguin flying with a jet pack. The following is how it looks in full screen mode:

Sitting at the monitor you would have no idea that Windows isn't running fully installed on the computer. It is installed in VirtualBox and behaves so far as I can see just as it would if it were directly installed on the desktop.

Having done all that during some free time over a couple of days (remember, I had to make the registration call and do a little customizing) I realized I could do something similar on my Mac at work.

Although I'm glad my workstation is a Mac and not a Windows PC, I'm not a fan of Mac. I don't like how it looks or functions. A couple of my regular tasks at work requires it, though, so there I am. With VirtualBox I was able to get Linux Mint 7 set up in about 15 minutes during a break. Here's a screenshot of it full screen on the Mac:

This was taken after I had already changed the desktop background and icon style. The menu is open so you can see how that looks. Again, just like Windows XP in VirtualBox on my home computer, when Linux Mint is set to full screen you really would not know that it wasn't the primary OS on the system.

VirtualBox is great for running software that isn't compatible with your primary OS, and for trying out different distros as full installs rather than mere live CDs. I'm having fun with it and finding it to be very useful.

 

Make the most of large drives with GPT and Linux

The venerable master boot record (MBR) partitioning scheme can't fully handle disks larger than 2TB. With 1TB-hard disks now common and 2TB-disks becoming available, forward-looking individuals are thinking about alternatives to the MBR partitioning scheme. The heir apparent is the GUID Partition Table (GPT). Learn how to make sure your Linux system is fully prepared for the future of disk storage.
 

Moblin4Children: How-To autorun GCompris

Is it possible to auto-run GCompris at boot time? Obviously, yes!
How we can do it?

The Moblin live image use gdm as Desktop Manager (Moblin is based on Gnome Mobile).
GDM at start-time executes the script /etc/xdg/moblin/xinitrc.
If you look at these script you can also see that here the system starts also Moblin Panel Applications.
My ideas is to add to /etc/xdg/moblin/xinitrc the command to run GCompris.

Read more... Comment (0)
 

Limiting the CPU usage of applications on Linux (ubuntu, debian, fedora etc.)

Monitor the CPU usage of applications that we use, it is recommended if you need to maintain a good performance on your system, sometimes in our system we have applications that should not stop working and we need some free resources on your computer for them. Linux can prevent other applications to consume these resources and the applications work properly within a cpu limit.

 Use it
To use it, you will need to know the name of the application or PID, once you know it:
Examples of use

If we want to avoid that Firefox does not exceed 30% of CPU usage type
cpulimit firefox-e-l 30

In the case of wanting to limit the use of 40% CPU PID write 3675 on our console as follows:
cpulimit-p 3675-l 40
 

Read the complete post here

 

Stupid UNIX man tricks

UNIX has hundreds if not thousands of commands, and it's impossible to remember every option and nuance. But, happily, you don't have to: man, UNIX's built-in, online reference system, is man's best friend. Take a look at this shortcut guide to the UNIX man pages system.
 

HP 2133 Mini-Note Tips, Tricks and Warnings

I currently own two of these netbooks, one high resolution (1280x768) and one low resolution (1024x600), and they are both very good, very solid, and they run a variety of Linux distributions very well.  The following are a few comments based on my experience with them:

- The Ubuntu Netbook Remix does not work at all well on the 2133, because the openchrome driver doesn't have 3D support.  That makes the UNR desktop painfully slow.  So slow that you almost certainly don't want to use it.

- When installing Linux, start by simply booting the LiveCD or USB image.  If there is a direct "Install" boot option (as in Ubuntu and its derivatives, for example), don't use it.  The difference is that  when you boot directly to install, the installation window is automatically full screen, and can not be moved or resized.  This can be a problem, for example, with Ubuntu installation when you have a number of partitions on the disk, and it draws a graphic bar that exceeds the size of the display, and you can't drag the window to see it.

- I have tried the following distributions on the 2133: Ubuntu (up to and including 9.10 "Karmic Koala" Alpha releases), Mandriva, openSuSE (up to and including 11.2 Milestone 4), Debian, MEPIS and PCLinuxOS.  Although Fedora 10 installs, Fedora 11 does not.

- There are two drivers to choose from for the Broadcom 4312 Wireless controller, known as the "B43" driver and the "STA" (or sometimes "WL") driver.  Each of them have advantages and problems.  In general the problem is that when the 2133 is left idle for a while, the wireless adapter loses the connection (probably because of power management getting involved, but I haven't looked closely at that yet).  The "B43" driver at least notices that the connection is gone, and the Network Manager icon in the panel will show no connection.  The "STA" driver doesn't even seem to notice, so Network Manager continues to claim it is connected.  The second problem, generally less severe, is that the B43 driver doesn't detect 5 GHz networks, so if you are using a Dual-Band wireless router, it will only work with the 2.4 GHz band, which might well be defeating the very reason you got the dual-band.  The "STA" drivers sees both frequencies.

-  With most Linux distributions, CPU Frequency Scaling doesn't work by default.  You have to either add acpi_osi="!Windows 2006" to the boot command line (Debian and derivatives), or download, install and/or configure some additional packages (Mandriva and derivatives).

- The good news is, the latest Ubuntu 9.10 Alpha 3 release seems to have CPU Frequency Scaling working, without any additional configuration or installation.

- If you are interested in installing Ubuntu 9.10 from scratch, it might be useful to know that GRUB 2 (aka grub-pc) installs and works just fine on the 2133

If you are interested in netbooks, the HP 2133 can be a very good choice.  As it has already been phased out by HP, in favor of the more "conventional" 2140 (Intel Atom CPU rather than VIA C7-M) and subsequent models, it is possible to find new units being cleared out by some distributors at a very good price.  Although this may look like a significant list of "problems", none of them is terribly serious, and most are easy to get around (or ignore and just live with).  As I said, I really like the two that I own.

 

jw 28/7/2009

 
Page 112 of 163

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board

/** BC-056 Ameex changes to add tracking code - 2016-01-22 **/ ?>