{ yeah : 必须哒 } No place to place should record our youth?

11Dec/100

How to use SCP without password

Posted by ofeng

1) run this command to generate public key

    shell>ssh-keygen -t rsa

In response you'll see:

"Generating public/private rsa key pair"

"Enter file in which to save the key ... "

Just hit enter to accept this.

In response you'll see:

"Enter passphrase (empty for no passphrase):"

You don't need a passphrase, so just hit enter twice.

In response you'll see:

"Your  identification has been saved in ... "

"Your public key has been saved in ... "

Note the name and location of the public key just generated (it will always end in .pub).
2) Copy the public key just generated to any server:

/root/.ssh/authorized_keys
3) now you run

shell>sudo scp filename user@serverName:/path/

Wow !!!

It copied with no password!!

Tagged as: , , No Comments
11Dec/100

远程桌面连接登陆,显示由于账户限制,您无法登陆

Posted by ofeng

在WINDOWS XP下,不管是从网络上访问其他机器,还是使用远程桌面功能登录系统,常常遇到类似“由于帐户限制你无法登录”的提示

问题解决的说法有很多, 但是很多都不正确.

有的说, Guest被禁用了, 所以无法登陆, 也有的说, 局域网文件共享功能被禁用了, 或者没有安装NWLink NetBios, 所以无法使用.

其实正确的解答是, 管理员账户密码为空, 且启用了"使用空白密码的本地帐户只允许进行控制台登录", 所以无法进行远程登录.

解决的办法, 1给管理员账户设密码, 2关闭该功能.

方法1: 的操作不做太多的解释, 最傻瓜的操作, "我的电脑->控制面板->用户账户", 找到管理员账户, 更改一个密码即可

方法2: "开始"菜单->运行->输入"Gpedit.msc"->计算机配置->Windows设置->安全设置->安全选项, 然后在右侧找到"账户: 使用空白密码的本地帐户只允许进行控制台登录", 将该功能停用即可.

10Dec/100

开源分布式文件系统&文件系统

Posted by ofeng

GFS(Google File System): http://www.codechina.org/doc/google/gfs-paper/
MogileFS: http://www.danga.com/mogilefs
Hadoop/HDFS: http://hadoop.apache.org/core
KFS(Kosmos Distributed File System): http://kosmosfs.sourceforge.net
NDFS(Nutch Distributed File System): http://lucene.apache.org/nutch/,http://wiki.apache.org/nutch/NutchDistributedFileSystem
Gluster(Gluster File System): http://www.gluster.org
Coda(Coda File System): http://www.coda.cs.cmu.edu/
Global(Red Hat Global File System Redhat并购): http://www.redhat.com/gfs
Lustre(Lustre File System Sun并购): http://www.lustre.org
PVFS(Parallel Virtual File System,非开源): http://www.parl.clemson.edu/pvfs
GPFS(IBM General Parallel File System, 非开源): http://www-03.ibm.com/systems/clusters/software/gpfs
OpenAFS(Open Andrew File System IBM): http://www.openafs.org
XFS(SGI, 不算分布式文件系统): http://oss.sgi.com/projects/xfs
MOSIX: http://www.mosix.org

还有一个国内牛人写的
FastDFS一个高效的分布式文件系统 http://fastdfs.zhan.cn.yahoo.com/

参考:
http://www.bitscn.com/linux/network_manage/200710/116850.html
http://lxhzju.blog.163.com/blog/static/45008200682773039623/

 

 

mogileFS:Key-Value型元文件系统,不支持FUSE,应用程序访问它时需要API,主要用在web领域处理海量小图片,效率相比mooseFS高很多。

fastDFS:国人在mogileFS的基础上进行改进的key-value型文件系统,同样不支持FUSE,提供比mogileFS更好的性能。

mooseFS:支持FUSE,相对比较轻量级,对master服务器有单点依赖,它的master非常占内存,用perl编写,性能相对较差,国内用的人比较多。

glusterFS:支持FUSE,比mooseFS庞大,比较适合大型应用,口碑相对较差,因此也不考虑。

ceph:支持FUSE,客户端已经进入了linux-2.6.34内核,也就是说可以像ext3/rasierFS一样,选择ceph为文件系统。彻底的分布式,没有单点依赖,用C编写,性能较好。基于不成熟的btrfs,其本身也非常不成熟。

lustre:Oracle公司的企业级产品,非常庞大,对内核和ext3深度依赖

NFS:老牌网络文件系统,具体不了解,反正NFS最近几年没发展,肯定不能用。

10Dec/100

解决Nginx编译出错:cc1: warnings being treated as errors

Posted by ofeng

这个就是说如果有警告,也认为是错误,解决办法就是去掉objs/makefile中 -Werror这样一段,重新make就ok了,特记之。

Tagged as: , , , No Comments