灌溉梦想,记录脚步

50部世界名著中最经典的一句话

  1.神要是公然去跟人作对,那是任何人都难以对付的。 (《荷马史诗》)
  2.生存还是毁灭,这是一个值得思考的问题。 (《哈姆霄特》)
  3.善良人在追求中纵然迷惘,却终将意识到有一条正途。(《浮士德》)
  4.认识自己的无知是认识世界的最可靠的方法。 (《随笔集》)
  5.你以为我贫穷、相貌平平就没有感情吗?我向你发誓,如果上帝赋予我财富和美貌,我会让你无法离开我,就像我现在无法离开你一样。虽然上帝没有这么做,可我们在精神上依然是平等的。(《简·爱》)
  6.大人都学坏了,上帝正考验他们呢,你还没有受考验,你应当照着孩子的想法生活。 (《童年》)
  7,你越没有心肝,就越高升得快,你毫不留情地打击人家,人家就怕你。只能把男男女女当作驿马,把它们骑得筋疲力尽,到了站上丢下来,这样你就能达到欲望的最高峰。 (《高老头》)
  8.我只想证明一件事,就是,那时魔鬼引诱我,后来又告诉我,说我没有权利走那条路,因为我不过是个虱子,和所有其余的人一样。 (《罪与罚》)
  9.你瞧,桑丘·潘沙朋友,那边出现了三十多个大得出奇的巨人。 (《堂·吉诃德》)
  10.我并不愿意你受的苦比我受的还大,希斯克利夫。我只愿我们永远不分离:如果我有一句话使你今后难过,想想我在地下也感到一样的难过,看在我自己的份上,饶恕我吧! (《呼啸山庄》)
  11.幸福的家庭是相同的,不幸的家庭各有各的不同。 (《安娜·卡列尼娜》)
  12.唉,奴隶般的意大利,你哀痛之逆旅,你这暴风雨中没有舵手的孤舟,你不再是各省的主妇,而是妓院! (《神曲》)
  13.将感情埋藏得太深有时是件坏事。如果一个女人掩饰了对自己所爱的男子的感情,她也许就失去了得到他的机会。 (《傲慢与偏见》)
  14.钟声又鸣响了……一声又一声,静谧而安详,即使在女人做新娘的那个好月份里,钟声里也总带有秋天的味道。 (《喧嚣与骚动》)
  15.一个人并不是生来要被打败的,你尽可以把他消灭掉,可就是打不败他。 (《老人与海》)
  16.当然,行是行的,这固然很好,可是千万别闹出什么乱子来啊。 (《套中人》)
  17.面包!面包!我们要面包! (《萌芽》)
  18.我从没有爱过这世界,它对我也一样。 (《拜伦诗选》)
  19.爱情应该给人一种自由感,而不是囚禁感。 (《儿子与情人》)
  20.暴风雨将要在那一天,甚至把一些槲树吹倒,一些教堂的高塔要倒塌,一些宫殿也将要动摇! (《海涅诗选》)
  21.自己的行为最惹人耻笑的人,却永远是最先去说别人坏话的人。 (《伪君子》)
  22.这时一种精神上的感慨油然而生,认为人生是由啜泣、抽噎和微笑组成的,而抽噎占了其中绝大部分。(《欧·亨利短篇小说选》)
  23.历史喜爱英勇豪迈的事迹,同时也谴责这种事迹所造成的后果。 (《神秘岛》)
  24.整个下半天,人都听凭羊脂球去思索。不过本来一直称呼她作”夫人”,现在却简单地称呼她作”小姐”了,谁也不很知道这是为着什么,仿佛她从前在评价当中爬到了某种地位,现在呢,人都想把她从那种地位拉下一级似的,使她明白自己的地位是可羞的。 (《莫泊桑短篇小说选》)
  25.如果冬天来了,春天还会远吗? (《雪莱诗选》)
  26.我明白了,我已经找到了存在的答案,我恶心的答案,我整个生命的答案。其实,我所理解的一切事物都可以归结为荒诞这个根本的东西。(《恶心》)
  27.世界上有这样一些幸福的人,他们把自己的痛苦化作他人的幸福,他们挥泪埋葬了自己在尘世间的希望,它却变成了种子,长出鲜花和香膏,为孤苦伶仃的苦命人医治创伤。(《汤姆叔叔的小屋》)
  28.当格里高·萨姆莎从烦躁不安的梦中醒来时,发现他在床上变成了一个巨大的跳蚤。(《变形记》)
  29.当现实折过来严丝合缝地贴在我们长期的梦想上时,它盖住了梦想,与它混为一体,如同两个同样的图形重叠起来合而为一一样。(《追忆似水年华》)
  30.人与人之间,最可痛心的事莫过于在你认为理应获得善意和友谊的地方,却遭受了烦扰和损害。(《巨人传》)
  31.现在我说的您要特别注意听:在别人心中存在的人,就是这个人的灵魂。这才是您本身,才是您的意识在一生当中赖以呼吸、营养以至陶醉的东西,这也就是您的灵魂、您的不朽和存在于别人身上的您的生命。(《日瓦戈医生》)
  32.美德犹如名香,经燃烧或压榨而其香愈烈,盖幸运最能显露恶德而厄运最能显露美德。(《培根论说文集》)
  33.亲爱的艾妮斯,我出国,为了爱你,我留在国外,为了爱你,我回国,也是为了爱你!(《大卫·科波菲尔》)
  34.强迫经常使热恋的人更加铁心,而从来不能叫他们回心转意。(《阴谋与爱情》)
  35.在各种事物的常理中,爱情是无法改变和阻挡的,因为就本性而言,爱只会自行消亡,任何计谋都难以使它逆转。(《十日谈》) 36、只要你是天鹅蛋就是生在养鸡场也没什么关系。《安徒生童话》
  37、就投机钻营来说,世故的价值永远是无法比拟的。《死魂灵》
  38、誰都可能出个错儿,你在一件事上越琢磨得多就越容易出错。《好兵帅克历险记》
  39、我们经历着生活中突然降临的一切,毫无防备,就像演员进入初排。如果生活中的第一次彩排便是生活的本身 ,那生活有什么价值呢?《生命中不能承受之轻》
  40、他发现了人类行为的一大法则,自己还不知道——那就是,为了要使一个大人或小孩极想干某样事情,只需要设法把那件事情弄得不易到手就行了。《汤姆.索亚历险记》
  41、对于有信仰的人,死是永生之门。《失乐园》
  42、有一个传说,说的是有那么一只鸟儿,它一生只唱一次,那歌声比世上一切生灵的歌声都更加优美动听。《荆棘鸟》
  43、离开一辈子后,他又回到了自己出生的那片土地上,从小到大,他一直是那个地方的目击者。《尤利西斯》
  44、同上帝保持联系是一码事,他们都赞同这一点,但让上帝一天二十四小时都待在身边就是另一码事了。《第二十二条军规》
  45、在甜蜜的梦乡里,人人都是平等的,但是当太阳升起,生存的斗争重新开始时,人与人之间又是多么的不平等。《总统先生》
  46、开发人类智力的矿藏是少不了要由患难来促成的。《基度山伯爵》
  47、离你越近的地方,路途越远;最简单的音调,需要最艰苦的练习。《泰戈尔诗选》
  48、悲伤使人格外敏锐。《约翰.克里斯朵夫》
  49、我在女人跟前经常失败,就是由于我太爱她们了。《忏悔录》
  50、她睁大一双绝望的眼睛,观看她生活的寂寞。她像沉了船的水手一样,在雾蒙蒙的天边,遥遥寻找白帆的踪影。《包法利夫人》 51.我听见美洲在歌唱,我听见各种不同的颂歌。(《草叶集》)

DoS攻击威胁移动网络安全

  贝尔实验室高级电信安全研究人员Krishan Sabnani警告,现有的移动IP协议有固有的弱点可被黑客利用,并且很难发现和修复.
  黑客可以用某种类型的攻击例如SYN来迅速耗尽无线互联网上的资源,并可以攻击终端设备,防止移动设备进入睡眠,导致电池使用寿命减短,这是他在纽约市立学院举行的《网络世界》网络基础设施保护会议上报告的.
  更糟糕的是,发动袭击的成本和所造成的后果完全不对等,一个电缆调制解调器用户,500kbps的上传就可以同时攻击超过100万台手机.
  黑客可以挤爆无线网络控制器,伪造合法用户,发送数据包防止移动设备进入睡眠,制造虚假流量和过度扫描端口.
  贝尔实验室宣称他们已经开发出流量特征算法和统计模型以抵御这种攻击,减少不必要的数据传送和终端用户设备电源消耗.

无盘linux配置

Some networks require multiple systems with the same configuration. They also require that these systems be easy to reboot, upgrade, and manage. One solution is to use a diskless environment in which most of the operating system, which can be read-only, is shared from a central server between the clients. The individual clients have their own directories on the central server for the rest of the operating system, which must be read/write. Each time the client boots, it mounts most of the OS from the NFS server as read-only and another directory as read-write. Each client has its own read-write directory so that one client can not affect the others.

The following steps are necessary to configure Red Hat Enterprise Linux to run on a diskless client:

 

  1. Install Red Hat Enterprise Linux on a system so that the files can be copied to the NFS server. (Refer to the Red Hat Enterprise Linux Installation Guide for details.) Any software to be used on the clients must be installed on this system and the busybox-anaconda package must be installed.

  2. Create a directory on the NFS server to contain the diskless environment such as /diskless/i386/RHEL4-AS/. For example:

    mkdir -p /diskless/i386/RHEL4-AS/
    

    This directory is referred to as the diskless directory.

  3. Create a subdirectory of this directory named root/:

    mkdir -p /diskless/i386/RHEL4-AS/root/
    
  4. Copy Red Hat Enterprise Linux from the client system to the server using rsync. For example:

    rsync -a -e ssh installed-system.example.com:/ /diskless/i386/RHEL4-AS/root/
    

    The length of this operation depends on the network connection speed as well as the size of the file system on the installed system. Depending on these factors, this operation may take a while.

  5. Start the tftp server as discussed in Section 4.1 Start the tftp Server.

  6. Configure the DHCP server as discussed in Section 4.2 Configuring the DHCP Server.

  7. Finish creating the diskless environment as discussed in Section 4.4 Finish Configuring the Diskless Environment.

  8. Configure the diskless clients as discussed in Section 4.5 Adding Hosts.

  9. Configure each diskless client to boot via PXE and boot them.

1. Start the tftp Server

On the DHCP server, verify that the tftp-server package is installed with the command rpm -q tftp-server. If it is not installed, install it via Red Hat Network or the Red Hat Enterprise Linux CD-ROMs. For more information on installing RPM packages, refer to Part III Package Management.

tftp is an xinetd-based service; start it with the following commands:

/sbin/chkconfig --level 345 xinetd on
/sbin/chkconfig --level 345 tftp on

These commands configure the tftp and xinetd services to immediately turn on and also configure them to start at boot time in runlevels 3, 4, and 5.

2. Configuring the DHCP Server

If a DHCP server does not already exist on the network, configure one. Refer to Chapter 24 Dynamic Host Configuration Protocol (DHCP) for details. Make sure the configuration file contains the following so that PXE booting is enabled for systems which support it:

allow booting;
allow bootp;
class "pxeclients" {
   match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
   next-server <server-ip>;
   filename "linux-install/pxelinux.0";
}

where <next-server> option should be replaced with the IP address of the tftp server.

3. Configuring the NFS Server

The shared read-only part of the operating system is shared via NFS.

Configure NFS to export the root/ and snapshot/ directories by adding them to /etc/exports. For example:

 

/diskless/i386/RHEL4-AS/root/     *(ro,sync,no_root_squash)
/diskless/i386/RHEL4-AS/snapshot/ *(rw,sync,no_root_squash)

Replace * with one of the hostname formats discussed in Section 22.3.2 Hostname Formats. Make the hostname declaration as specific as possible, so unwanted systems can not access the NFS mount.

If the NFS service is not running, start it:

 

service nfs start

If the NFS service is already running, reload the configuration file:

 

service nfs reload

4. Finish Configuring the Diskless Environment

To use the graphical version of the Network Booting Tool, you must be running the X Window System, have root privileges, and have the system-config-netboot RPM package installed. To start the Network Booting Tool from the desktop, go to Applications (the main menu on the panel) => System Settings => Server Settings => Network Booting Service. or, type the command system-config-netboot at a shell prompt (for example, in an XTerm or a GNOME terminal).

If starting the Network Booting Tool for the first time, select Diskless from the First Time Druid. Otherwise, select Configure => Diskless from the pull-down menu, and then click Add.

A wizard appears to step you through the process:

 

  1. Click Forward on the first page.

  2. On the Diskless Identifier page, enter a Name and Description for the diskless environment. Click Forward.

  3. Enter the IP address or domain name of the NFS server configured in Section 4.3 Configuring the NFS Server as well as the directory exported as the diskless environment. Click Forward.

  4. The kernel versions installed in the diskless environment are listed. Select the kernel version to boot on the diskless system.

  5. Click Apply to finish the configuration.

After clicking Apply, the diskless kernel and image file are created based on the kernel selected. They are copied to the PXE boot directory /tftpboot/linux-install/<os-identifier>/. The directory snapshot/ is created in the same directory as the root/ directory (for example, /diskless/i386/RHEL4-AS/snapshot/) with a file called files in it. This file contains a list of files and directories that must be read/write for each diskless system. Do not modify this file. If additional entries must be added to the list, create a files.custom file in the same directory as the files file, and add each additional file or directory on a separate line.

5. Adding Hosts

Each diskless client must have its own snapshot directory on the NFS server that is used as its read/write file system. The Network Booting Tool can be used to create these snapshot directories.

After completing the steps in Section 4.4 Finish Configuring the Diskless Environment, a window appears to allow hosts to be added for the diskless environment. Click the New button. In the dialog shown in Figure 4-1, provide the following information:

 

  • Hostname or IP Address/Subnet – Specify the hostname or IP address of a system to add it as a host for the diskless environment. Enter a subnet to specify a group of systems.

  • Operating System – Select the diskless environment for the host or subnet of hosts.

  • Serial Console – Select this checkbox to perform a serial installation.

  • Snapshot name – Provide a subdirectory name to be used to store all of the read/write content for the host.

  • Ethernet – Select the Ethernet device on the host to use to mount the diskless environment. If the host only has one Ethernet card, select eth0.

Ignore the Kickstart File option. It is only used for PXE installations.

Figure 4-1. Add Diskless Host

In the existing snapshot/ directory in the diskless directory, a subdirectory is created with the Snapshot name specified as the file name. Then, all of the files listed in snapshot/files and snapshot/files.custom are copied copy from the root/ directory to this new directory.

6. Booting the Hosts

Consult the documentation for your PXE card to configure the host to boot via PXE.

When the diskless client boots, it mounts the remote root/ directory in the diskless directory as read-only. It also mounts its individual snapshot directory as read/write. Then it mounts all the files and directories in the files and files.custom files using the mount -o bind over the read-only diskless directory to allow applications to write to the root directory of the diskless environment if they need to.

Error:Starting NFS quotas: Cannot register service: RPC

  环境:
  client: 主机rac2,ip 192.168.0.6
  server: 主机rac1,ip 192.168.0.5
  1) 在客户端启动portmap和nfs服务,单起nfs进程是无法启动的。
  [root@rac2 init.d]# ./nfs start
  Starting NFS services: [ OK ]
  Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
  rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
  [FAILED]
  Starting NFS daemon:
  [FAILED]
  Starting NFS mountd: Cannot register service: RPC: Unable to receive; errno = Connection refused
  mountd: unable to register (mountd, 1, udp).
  [FAILED]
  Starting RPC idmapd: [ OK ]
  [root@rac2 init.d]# ps -ef|grep nfs
  证明nfs没有启动。
  [root@rac2 init.d]# /etc/init.d/portmap start
  Starting portmap: [ OK ]
  [root@rac2 init.d]# ps -ef|grep portmap
  rpc 3198 1 0 02:39 ? 00:00:00 portmap
  root 3202 2998 0 02:39 pts/0 00:00:00 grep portmap
  [root@rac2 init.d]# /etc/init.d/nfs start
  Starting NFS services: [ OK ]
  Starting NFS quotas: [ OK ]
  Starting NFS daemon: [ OK ]
  Starting NFS mountd: [ OK ]
  启动正常,检查一下nfs进程是否在。
  [root@rac2 init.d]# ps -ef|grep nfs
  root 3222 1 0 02:39 ? 00:00:00 [nfsd]
  root 3223 1 0 02:39 ? 00:00:00 [nfsd]
  root 3224 1 0 02:39 ? 00:00:00 [nfsd]
  root 3225 1 0 02:39 ? 00:00:00 [nfsd]
  root 3226 1 0 02:39 ? 00:00:00 [nfsd]
  root 3227 1 0 02:39 ? 00:00:00 [nfsd]
  root 3228 1 0 02:39 ? 00:00:00 [nfsd]
  root 3231 1 0 02:39 ? 00:00:00 [nfsd]
  root 3260 2998 0 02:45 pts/0 00:00:00 grep nfs
  rac1上有一个/disk0分区,看从rac2能否直接连接上rac1
  [root@rac1 ~]# df -h
  Filesystem Size Used Avail Use% Mounted on
  /dev/sda5 2.9G 2.3G 503M 83% /
  /dev/sda1 99M 12M 83M 12% /boot
  none 125M 0 125M 0% /dev/shm
  /dev/sda2 7.7G 2.3G 5.1G 32% /home
  /dev/sda3 3.9G 2.3G 1.4G 62% /usr
  /dev/sda7 2.8G 1.1G 1.6G 40% /var
  /dev/sdb5 1004M 1.3M 952M 1% /disk0
  [root@rac2 init.d]# mount 192.168.0.5:/disk0 /wyl (/wyl目录必须已存在)
  mount: mount to NFS server ‘192.168.0.5’ failed: System Error: Connection refused.
  报错信息指的是server端(Rac1)的nfs进程没起来!
  在服务端启动nfs进程(实际上是要启动portmap和nfs进程)
  [root@rac1 ~]# /etc/init.d/portmap start
  Starting portmap: [ OK ]
  [root@rac1 ~]# /etc/init.d/nfs start
  Starting NFS services: [ OK ]
  Starting NFS quotas: [ OK ]
  Starting NFS daemon: [ OK ]
  Starting NFS mountd: [ OK ]
  Starting RPC idmapd: [ OK ]

linux下挂载详解

  linux是一个优秀的开放源码的操作系统,可以运行在大到巨型小到掌上型各类计算机系统上,随着linux系统的日渐成熟和稳定以及它开放源代码特有的优越性,linux在全世界得到了越来越广泛的应用。现在许多企业的计算机系统都是由UNIX系统、Linux系统和Windows系统组成的混合系统,不同系统之间经常需要进行数据交换。下面我根据自己的实际工作经验介绍一下如何在linux系统下挂接(mount)光盘镜像文件、移动硬盘、U盘以及Windows网络共享和UNIX NFS网络共享。
  挂接命令(mount)
  首先,介绍一下挂接(mount)命令的使用方法,mount命令参数非常多,这里主要讲一下今天我们要用到的。
  命令格式:
  mount [-t vfstype] [-o options] device dir
  其中:
  1.-t vfstype 指定文件系统的类型,通常不必指定。mount 会自动选择正确的类型。常用类型有:
  光盘或光盘镜像:iso9660
  DOS fat16文件系统:msdos
  Windows 9x fat32文件系统:vfat
  Windows NT ntfs文件系统:ntfs
  Mount Windows文件网络共享:smbfs
  UNIX(LINUX) 文件网络共享:nfs
  2.-o options 主要用来描述设备或档案的挂接方式。常用的参数有:
  loop:用来把一个文件当成硬盘分区挂接上系统
  ro:采用只读方式挂接设备
  rw:采用读写方式挂接设备
  iocharset:指定访问文件系统所用字符集
  3.device 要挂接(mount)的设备。
  4.dir设备在系统上的挂接点(mount point)。
  挂接光盘镜像文件
  由于近年来磁盘技术的巨大进步,新的电脑系统都配备了大容量的磁盘系统,在Windows下许多人都习惯把软件和资料做成光盘镜像文件通过虚拟光驱来使用。这样做有许多好处:一、减轻了光驱的磨损;二、现在硬盘容量巨大存放几十个光盘镜像文件不成问题,随用随调十分方便;三、硬盘的读取速度要远远高于光盘的读取速度,CPU占用率大大降低。其实linux系统下制作和使用光盘镜像比Windows系统更方便,不必借用任何第三方软件包。
  1、从光盘制作光盘镜像文件。将光盘放入光驱,执行下面的命令。
  #cp /dev/cdrom /home/sunky/mydisk.iso 或
  #dd if=/dev/cdrom of=/home/sunky/mydisk.iso
  注:执行上面的任何一条命令都可将当前光驱里的光盘制作成光盘镜像文件/home/sunky/mydisk.iso
  2、将文件和目录制作成光盘镜像文件,执行下面的命令。
  #mkisofs -r -J -V mydisk -o /home/sunky/mydisk.iso /home/sunky/ mydir
  注:这条命令将/home/sunky/mydir目录下所有的目录和文件制作成光盘镜像文件/home/sunky/mydisk.iso,光盘卷标为:mydisk
  3、光盘镜像文件的挂接(mount)
  #mkdir /mnt/vcdrom
  注:建立一个目录用来作挂接点(mount point)
  #mount -o loop -t iso9660 /home/sunky/mydisk.iso /mnt/vcdrom
  注:使用/mnt/vcdrom就可以访问盘镜像文件mydisk.iso里的所有文件了。
  挂接移动硬盘
  对linux系统而言,USB接口的移动硬盘是当作SCSI设备对待的。插入移动硬盘之前,应先用fdisk -l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况。
  [root at pldyrouter /]# fdisk -l
  Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
  255 heads, 63 sectors/track, 8924 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot Start End Blocks Id System
  /dev/sda1 1 4 32098+ de Dell Utility
  /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
  /dev/sda3 2555 7904 42973875 83 Linux
  /dev/sda4 7905 8924 8193150 f Win95 Ext’d (LBA)
  /dev/sda5 7905 8924 8193118+ 82 Linux swap
  在这里可以清楚地看到系统有一块SCSI硬盘/dev/sda和它的四个磁盘分区/dev/sda1 — /dev/sda4, /dev/sda5是分区/dev/sda4的逻辑分区。接好移动硬盘后,再用fdisk -l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况
  [root at pldyrouter /]# fdisk -l
  Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
  255 heads, 63 sectors/track, 8924 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot Start End Blocks Id System
  /dev/sda1 1 4 32098+ de Dell Utility
  /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
  /dev/sda3 2555 7904 42973875 83 Linux
  /dev/sda4 7905 8924 8193150 f Win95 Ext’d (LBA)
  /dev/sda5 7905 8924 8193118+ 82 Linux swap
  Disk /dev/sdc: 40.0 GB, 40007761920 bytes
  255 heads, 63 sectors/track, 4864 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot Start End Blocks Id System
  /dev/sdc1 1 510 4096543+ 7 HPFS/NTFS
  /dev/sdc2 511 4864 34973505 f Win95 Ext’d (LBA)
  /dev/sdc5 511 4864 34973473+ b Win95 FAT32
  大家应该可以发现多了一个SCSI硬盘/dev/sdc和它的两个磁盘分区/dev/sdc1?、/dev/sdc2,其中/dev/sdc5是/dev/sdc2分区的逻辑分区。我们可以使用下面的命令挂接/dev/sdc1和/dev/sdc5。
  #mkdir -p /mnt/usbhd1
  #mkdir -p /mnt/usbhd2
  注:建立目录用来作挂接点(mount point)
  #mount -t ntfs /dev/sdc1 /mnt/usbhd1
  #mount -t vfat /dev/sdc5 /mnt/usbhd2
  注:对ntfs格式的磁盘分区应使用-t ntfs 参数,对fat32格式的磁盘分区应使用-t vfat参数。若汉字文件名显示为乱码或不显示,可以使用下面的命令格式。
  #mount -t ntfs -o iocharset=cp936 /dev/sdc1 /mnt/usbhd1
  #mount -t vfat -o iocharset=cp936 /dev/sdc5 /mnt/usbhd2
  linux系统下使用fdisk分区命令和mkfs文件系统创建命令可以将移动硬盘的分区制作成linux系统所特有的ext2、ext3格式。这样,在linux下使用就更方便了。使用下面的命令直接挂接即可。
  #mount /dev/sdc1 /mnt/usbhd1
  挂接U盘
  和USB接口的移动硬盘一样对linux系统而言U盘也是当作SCSI设备对待的。使用方法和移动硬盘完全一样。插入U盘之前,应先用fdisk -l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况。
  [root at pldyrouter root]# fdisk -l
  Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
  255 heads, 63 sectors/track, 8924 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot Start End Blocks Id System
  /dev/sda1 1 4 32098+ de Dell Utility
  /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
  /dev/sda3 2555 7904 42973875 83 Linux
  /dev/sda4 7905 8924 8193150 f Win95 Ext’d (LBA)
  /dev/sda5 7905 8924 8193118+ 82 Linux swap
  插入U盘后,再用fdisk -l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况。
  [root at pldyrouter root]# fdisk -l
  Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
  255 heads, 63 sectors/track, 8924 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot Start End Blocks Id System
  /dev/sda1 1 4 32098+ de Dell Utility
  /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
  /dev/sda3 2555 7904 42973875 83 Linux
  /dev/sda4 7905 8924 8193150 f Win95 Ext’d (LBA)
  /dev/sda5 7905 8924 8193118+ 82 Linux swap
  Disk /dev/sdd: 131 MB, 131072000 bytes
  9 heads, 32 sectors/track, 888 cylinders
  Units = cylinders of 288 * 512 = 147456 bytes
  Device Boot Start End Blocks Id System
  /dev/sdd1 * 1 889 127983+ b Win95 FAT32
  Partition 1 has different physical/logical endings:
  phys=(1000, 8, 32) logical=(888, 7, 31)
  系统多了一个SCSI硬盘/dev/sdd和一个磁盘分区/dev/sdd1,/dev/sdd1就是我们要挂接的U盘。
  #mkdir -p /mnt/usb
  注:建立一个目录用来作挂接点(mount point)
  #mount -t vfat /dev/sdd1 /mnt/usb
  注:现在可以通过/mnt/usb来访问U盘了, 若汉字文件名显示为乱码或不显示,可以使用下面的命令。
  #mount -t vfat -o iocharset=cp936 /dev/sdd1 /mnt/usb
  挂接Windows文件共享
  Windows网络共享的核心是SMB/CIFS,在linux下要挂接(mount)windows的磁盘共享,就必须安装和使用samba软件包。现在流行的linux发行版绝大多数已经包含了samba软件包,如果安装linux系统时未安装samba请首先安装samba。当然也可以到

摩尔:小型芯片公司会消失 摩尔定律还将延续

  作为仙童半导体和英特尔公司的创始人之一,同时也是英特尔前首席执行官兼董事长,戈登?摩尔在过去的半个多世纪亲眼见证了计算机芯片行业的演进史。
  他在预测技术发展趋势方面的眼光也相当敏锐,他所提出的”摩尔定律”为他赢得了世界性的声誉。1965年,摩尔定律首次问世,它预测每一个计算机芯片上的晶体管数量将以每年翻一番的速度增长–后来摩尔将增长率修正为”每两年翻一番”。
  Mercury News十分想了解摩尔对自己亲手创建的公司目前的运营状况有何看法。以下就是我们根据最近一次电话采访所编辑整理的文字。
  问:现在似乎是芯片行业有史以来最低迷的时期。您如何看待目前的经济情况?您有什么感受?
  答:显然,现在的情况很混乱。我认为汽车行业所处的艰难境地确实很糟。我真的不愿意看到那三个公司就这样破产了。这应该是我印象中最为严峻的经济衰退。
  问:在领导英特尔的那段日子里,哪一段是你经历过的经济上最为严峻的时期?
  答:我想,一次是在1974年的石油危机时期。那次,英特尔不得不裁员三分之一并且关闭了几家工厂。还有一次是1985年前后,我们整个行业都遭到重创。我记得1986年英特尔确实亏损了。但是那次危机只影响到半导体行业,确实很特殊,属于特定行业危机。
  问:您预测经济何时会好转?
  答:我可没有预测未来的水晶球。不过就目前情况来看好像还在继续恶化。可能2010年左右经济会复苏。我认为我们还不至于到了世界末日的边缘,但是它对整个世界经济系统来说,的确是一个强烈的打击。
  问:您预测在此期间一些半导体公司会消失或者合并吗?
  答:可能性很大。我们难以预料接下来将会发生什么。我想一些小型芯片公司可能会消失。
  问:您预计经济最终好转时,英特尔会是幸存者之一吗?
  答:当然。英特尔现在就有一个出色的产品线。虽然曾经有一度英特尔在开发新产品上有些乱糟糟,给了AMD机会。但是,现在他们全都意识到了,并且重新走上了正轨。
  问:硅谷最近几年有哪些变化?
  答:当我们开始创建公司的时候–我是说仙童时代,还没有真正意义上的风险投资。因此,也没有多少创业公司。当时有惠普和瓦里安(Varian),但是没有太多其它知名公司。后来,风险投资渐渐形成气候,许多公司纷纷拔地而起。再后来,风险投资变得越来越职业化,你知道,许多斯坦福的MBA毕业生立志成为风险资本家。于是,形势发生了戏剧性的变化,出现了越来越多的可用资金。
  问:这带来了什么样的影响?
  答:创业公司在开发新技术方面比新公司要高效得多。而大公司要想做新东西则会经历一段艰难的时期。这些正是风险投资集团所真正看好的。这是一个将技术带入市场的好办法。
  问:您怎样看待近年来计算机芯片发展的速度?
  答:我对芯片发展的速度感到十分惊讶。拿英特尔来说,我们曾经认为在技术领域每三年开发出新一代产品就是相当快的发展速度。但是,现在他们已经将更新换代的速度缩短至两年。尽管开发新技术日益昂贵而且日趋复杂,但是他们却还是实现了技术的加速发展。
  问:摩尔定律被证明非常具有预见性。但是会不会存在这样一种现象:一些公司因为单纯追求更小的芯片设计而陷入困境?
  答:在这个过程中,他们会发现所付出的代价越来越昂贵。在技术领域保持竞争力是非常困难的。只有为数不多的几家公司真正处于领先前沿。你知道,全世界不过几家而已,像英特尔、IBM和三星等。
  问:您曾经说过计算机芯片元件已经缩小至原子规模,因此很难将它们再缩小更多。我们能不能推出这样一个观点:今后将不再有可能实现每两年将芯片上的晶体管数量翻一番?
  答:这个问题看上去很严峻。用原子做材质是一件很困难的事情,这是事实。但是别忘了,我们过去所取得的每一项突破性进展看上去都像是不可完成的严峻任务。
  戈登?摩尔
  生日:1929年1月3日
  出生地:旧金山
  住址:Woodside,但大部分时间都待在夏威夷的一个岛上
  职业经历:英特尔公司创始人之一、英特尔前首席执行官兼董事长。在此之前,他参与创建了仙童半导体公司。
  教育情况:加州大学伯克利分校化学学士,加州理工大学化学与物理学博士学位。
  家庭成员:妻子Betty;两个儿子Kenneth和Steven
  关于戈登?摩尔你不得不知道的五件事:
  1、2000年,他估计自己的个人资产约为260亿美元。但是由于最近几年为慈善事业慷慨解囊捐出大量资金,再加上英特尔股票下跌,现在他认为自己的资产约为2-3亿美元。
  2、他周游世界去钓鱼–只要是水里游的动物都是他感兴趣的对象,但是主要还是钓鳟鱼。
  3、大部分时间他都把手机关机,因为”我只是不想被打扰。”
  4、1990年,他被授予美国国家科技奖章;2002年被授予美国最高市民荣誉–自由勋章。这两个奖章都由美国总统亲自颁发。
  5、作为一个共和党人,他在2008年11月的总统选举中投票支持约翰?麦凯恩。摩尔:小型芯片公司会消失 摩尔定律还将延续

MySQL configure 文件参数

–prefix=/program/mysql 安装路径

–localstatedir=/var/lib/mysql 数据库文件存放路径

–with-comment=Source

–with-server-suffix=-Community

–with-mysqld-user=mysql

–without-debug

–with-big-tables

–with-charset=gbk utf8

–with-collation=gbk_chinese_ci utf8_unicode_ci

–with-extra-charsets=all

–with-pthread

–enable-static

–enable-thread-safe-client

–with-client-ldflags=-all-static

–with-mysqld-ldflags=-all-static

–enable-assembler

–without-innodb

–without-isam

–without-ndb-debug

–with-unix-socket-path=/home/mysql/tmp/mysql.sock