Graphical vi-vim Cheat Sheet and Tutorial

2008-06-09 | 2:18 pm分类:系统管理 | 77 views

Learning vi or vim is not easy. But it doesn’t have to be that difficult, either. It is, in any case, faster, more powerful, and more productive than editing with any other editor, so you would do very well in investing the time and effort to learn it.

Being a vi lover myself, I came up with the idea of providing a graphical cheat sheet for those learning vi or vim, and I also found out it was a very good way to structure a tutorial. Here are the results for your learning enjoyment (or your colleagues’).

By the way, I recently published the definitive article explaining why vi/vim editing is so much better than regular editing. It should prove useful if you want to read it yourself, or if you want to point your skeptical friends to a description of why it makes sense, apart from being an entertaining read: Why, oh why, do those #?@! nutheads use vi?.

Graphical cheat sheet

This is a single page describing the full vi/vim input model, the function of all keys, and all major features. You can see it as a compressed vi/vim manual. Click on the image below to access the full-size bitmap image, or download the vector-based, scalable SVG version (zip-compressed - and be sure to view & print the SVG with the open source application Inkscape or the Adobe plug-in for Internet Explorer, Firefox breaks the layout for some reason, apart from rendering it with no anti-alias!).

全文阅读 »

Linux操作系统下光盘刻录实战

2008-06-05 | 4:40 pm分类:系统管理 | 67 views

Linux下刻录光盘非常简单,只需在终端窗口输入以下命令即可:  cdrecord -v speed=2 dev=0,0,0 cd.iso

cdrecord软件在发行版中一般都有,如果安装系统时没有安装它,在你的安装盘里应该能找到,安装it。

speed是表明刻录速度的选项,可根据实际情况设置,但不要超过CD-R与刻录机的最大限速;dev是刻录设备的选项,可由

cdrecord -scanbus

命令获得,cd.iso是要刻录的影像文件,可根据实际情况加入路径。

怎么样?简单吧?

现在,还有几个问题值得说明:

1、影像文件如何做

Linux中有一个mkisofs命令,功能非常强大,可以做资料光盘、系统光盘等,还可以做可启动光盘。

mkisofs -r -o cd.iso -m temp burn/ 全文阅读 »

关于在RHEL5上安装crs的错误

2008-06-04 | 4:36 pm分类:工作日志, 数据库 | 86 views

关于在RHEL5上安装crs的错误
1、在RHEL5上配置安装oracle10g crs时运行到最后一步,需要启动配置vipca时系统抱错。WARNING: directory ‘/app/oracle/product/10.2.0′ is not owned by root
WARNING: directory ‘/app/oracle/product’ is not owned by root
WARNING: directory ‘/app/oracle’ is not owned by root
WARNING: directory ‘/app’ is not owned by root
/app/oracle/product/10.2.0/crs/bin/crsctl.bin: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
这个问题是新版的glibc和10g的java有不兼容的地方。按照官方文档要在运行root.sh之前修改vipca脚本。这样就可以安装了。即将该脚本中arch=‘’uname -m‘以下4行注释掉
arch=`uname -m`
#if [ "$arch" = "i686" -o "$arch" = "ia64" -o "$arch" = "x86_64" ]
#then
# LD_ASSUME_KERNEL=2.4.19
# export LD_ASSUME_KERNEL
#fi
#End workaround 全文阅读 »

迁移到 ext4

2008-06-03 | 6:22 pm分类:系统管理 | 65 views
Roderick W. Smith (rodsmith@rodsbooks.com), 顾问和作家

2008 年 6 月 02 日

Ext4 是众多 Linux® 文件系统中的最新版本,它将像以前的版本一样重要和流行。作为 Linux 系统管理员,您应该知道迁移到 ext4 的优缺点和基本步骤。本文将介绍何时应采用 ext4、如何在 ext4 中使用传统的文件系统维护工具以及如何充分利用该文件系统。

Ext4 的功能

Linux 支持几个不同的文件系统。这些文件系统中,一些是专用的网络文件系统或为其他操作系统开发的文件系统,但绝大部分还是用作 Linux 本地文件系统 — 您可以将 Linux 根(/)和系统目录放在这种文件系统里。目前,这一类文件系统包括 ext2、ext3、ReiserFS、XFS 和 Journaled File System (JFS)。但是文件系统一直在不断设计和开发中,新的文件系统也将陆续问世。

目前正在开发的最重要的 Linux 文件系统是 ext4 — 它是专门为 Linux 开发的原始的扩展文件系统(ext 或 extfs)的第四版。由于继承了以前版本,ext4 在不久的将来很可能会成为一个重要的 Linux 标准文件系统(可能 标准文件系统)。

Ext4 与 ext3 的对比 全文阅读 »

十大WordPress的SEO优化技巧

2008-06-03 | 2:16 pm分类:WEB | 48 views

WordPress系统本身,默认安装的情况下使用默认模板,实际上对搜索引擎并不友好,并没有针对搜索引擎进行很好的设计,下面我介绍一些技巧和方法可以使得WordPress能否对搜索引擎更为友好。  1、文章URL链接结构的优化

Permalink里面要包含postname.一般的服务器都支持mod_rewrite功能,使用这个功能可以优化Permalink(永久链 接),在Option-Permalink里的Common options里进行设置,我比较倾向于使用/%year%/%monthnum%/%postname%.html这种链接结构,一来链接目录只有两 级,利于索引,二来这种链接结构和Blogspot和Movable Type的链接结构一致,比较利于系统平滑迁移或切换。postname使用英文,如果是写英文Blog的话,系统会自动将标题的post slug做为postname.

2、文章Post Slug的优化

文章标题中最好包含文章最关键的关键字,不要使用一些没有意义的标题,对于英文Blog来讲,最好启用一个名叫SEO Slugs的插件,该插件能够自动将post slug中的the、in等“没用”的单词删除,有利于SEO. 全文阅读 »

[图]KDE 4.1 最新默认主题欣赏

2008-06-03 | 2:06 pm分类:业界新闻&评论, 系统管理 | 68 views

就目前发布的 Linux 桌面环境来看,最新版的 KDE 是众多 Linux 桌面环境中最华丽的一个桌面环境,而且功能也相当的强大。开发中的 KDE 4.1每次改变都能给我们带来不少的惊喜,其最终版将在2008年7月29日发布。KDE 4.1外表的巨大变化都是有目共睹的,带了 Linux 全新的用户视觉体验。相信它的发布必将是 Linux 桌面环境一次革命性的变化!下面就来欣赏一下 KDE 4.1 最新的默认主题吧。


点击这里查看原图

另附一段 KDE 4.1 的“show off” 视频 (71 MB) 看了视频后,我真的找不到对 KDE 4.1 说“NO”的理由!

查看英文原文:

http://www.notmart.org/index.php/Graphics/4.1_times_more_Prettyness

OwnLinux.cn —发布Linux/Ubuntu最新资讯,提供Linux/Ubuntu入门使用指南,帮助Linux新手快速提高.

VB100杀毒认证六月结果已出 ESET连续50次通过 卡巴失败

2008-06-03 | 2:03 pm分类:业界新闻&评论 | 55 views

最新一期VB100杀毒认证结果已经发布,此次测试环境是Ubuntu Linux 8.04LTS Server Edition.
值得注意的是,NOD32软件连续第50次通过VB100认证,趋势,Sophos,BitDefender,小红伞,Symantec,也得以通过,卡巴斯基在此次测试中败北.此次测试没有中国国产反病毒软件参与.
以下是详细结果:

Ubuntu Linux Server Edition - June 2008

Alwil

Status: FAIL
Failure reason: 2 false positives
Result history: Alwil
Product name: Alwil avast!

AVG (Grisoft)

Status: PASS
Result history: AVG (Grisoft)
Product name: AVG Anti-Virus

Avira

Status: PASS
Result history: Avira
Product name: Avira AntiVir

BitDefender (SOFTWIN)

Status: PASS
Result history: BitDefender (SOFTWIN)
Product name: BitDefender Security

Doctor Web

Status: FAIL
Failure reason: 16 wildlist misses, 3 false positives
Result history: Doctor Web
Product name: Doctor Web Dr.Web

Eset

Status: PASS
Result history: Eset
Product name: ESET Security

FRISK

Status: FAIL
Failure reason: 1 false positive
Result history: FRISK
Product name: Frisk F-PROT

F-Secure

Status: FAIL
Failure reason: 1 false positive
Result history: F-Secure
Product name: F-Secure Linux Security

Kaspersky

Status: FAIL
Failure reason: 1 false positive
Result history: Kaspersky
Product name: Kaspersky Anti-Virus

MicroWorld

Status: FAIL
Failure reason: 1 false positive
Result history: MicroWorld
Product name: MicroWorld eScan

Norman

Status: PASS
Result history: Norman
Product name: Norman Virus Control

Quick Heal

Status: FAIL
Failure reason: 2 false positives
Result history: Quick Heal
Product name: Quick Heal

Sophos

Status: PASS
Result history: Sophos
Product name: Sophos Anti-Virus

Symantec

Status: PASS
Result history: Symantec
Product name: Symantec AntiVirus

VirusBuster

Status: PASS
Result history: VirusBuster
Product name: VirusBuster SambaShield

o

[多图]1颗处理器 5颗心脏 NVIDIA超强MID解析

2008-06-03 | 2:00 pm分类:业界新闻&评论, 硬件 | 56 views

新闻来源:ZOL
2008年6月2日,Computex 2008台北电脑展开幕的前一天,在位于台北市中心的新光三越百货商场内,NVIDIA发布了被应用于MID移动产品的处理器,系列型号为Tegra,并 展示了采用这款处理器的MID工程样品。首先让我们来看一下NVIDIA首款处理器产品。NVIDIA Tegra系列处理器是一种集成度非常高的产品,它内部集成了多个处理单元,这其中包括一颗800MHz的ARM CPU、一颗HD video处理单元、一颗图像处理单元、一颗音频处理单元以及一颗低电压版本GeForce GPU,这一切的一切组成了性能强劲的Tegra处理器。

而从NVIDIA现场展示的数据来看,它能够播放720P高清视频是最大的亮点。另外,虽然具有如此之多的处理单元,但是其待机时间丝毫没有削减,在最耗费电量的web浏览使用上,Tegra处理器也能维持在20个小时以上。

NVIDIA 全文阅读 »

Heartbeat2 Xen cluster with drbd8 and OCFS2

2008-06-03 | 12:09 pm分类:系统管理 | 62 views

Posted by AtulAthavale on Tue 29 Jan 2008 at 13:04

Tags: , , ,

The idea behind the whole set-up is to get a High availability two node Cluster with redundant data. The two identical Servers are installed with Xen hypervisor and almost same configuration as Cluster nodes. The configuration and image files of Xen virtual machines are stored on drbd device for redundancy. Drbd8 and OCFS2 allows simultaneous mounting on both nodes, which is required for live migration of xen virtual machines.

This Article describes Heartbeat2 Xen cluster Using Ubuntu (7.10) OS, drbd8 and OCFS2 (Ver. 1.39) File system. Although here Ubuntu is used it can be done in almost same way with Debian

Setup

OS Installation

Install two Computers with standard minimal Ubuntu Server (7.10) OS. After standard installation is done, we go ahead installing required packets.

Disc Partition 全文阅读 »

叢集檔案系統 OCFS2 實戰應用

2008-06-03 | 12:04 pm分类:数据库, 系统管理 | 123 views

作者:徐秉義

在過往印象中,高可用度叢集系統(High-Availability cluster 又名 HA Cluster)應用,對於一般的中小企業來說,是多麼遙不可及的感覺。主因是 HA Cluster 在過去只出現在 IBM、HP、Sun 等等廠商的大型主機系統而並非存在於一般 x86 伺服器,由大型主機所建構成的叢集系統不僅建置成本高、維護的價格也是相當驚人,倘若應用系統所執行的任務並非極度重要,一般來說是沒有資金能夠供養這些 堅不可摧的大型主機叢集系統。

由於這幾年來軟硬體的進步,使得許多企業應用 PC 伺服器搭配 Linux 作業系統,漸漸地擔任企業重要的應用程式任務,像是 ERP、EIP、Web、Mail、DataBase 等等,若執行的任務越是重要,就會更需要高可用度叢集來執行7x24不間斷的服務。當我們建置高可用度叢集系統的伺服節點(Node)時,經常會做共享磁 碟(Shared Storage)架構(如下圖)必須使用到叢集檔案系統(Cluster File System),本文提到的 OCFS2 檔案系統就是知名的叢集檔案系統之一,而另一個知名 Linux 叢集檔案系統就是 RedHat 主推的 GFS(Global File System)。

快照自維基百科「高可用度叢集」示意圖(網址:http://upload.wikimedia.org/wikipedia/en/6/63 /2nodeHAcluster.png),我們這次的主題落在「OCFS2」叢集檔案系統建置,這個 OCFS2 是用於 SAN(Storage Area Network)內的 Disk(例如 Disk 1)由 Server 1 與 Server 2 所共享的叢集檔案系統。 全文阅读 »

Pages: Prev 1 2 3 4 5 6 7 8 ...24 25 26 Next