随笔分类 - Linux/Unix
摘要:对于保存这个keys,真是不知道怎么办,有人说是每台机器给一个keys 。如果你家里的门有100把钥匙都可以开,然后放到全世界的各个地方,当丢了一把的时候99把还是可以用。如果能确保第一把的钥匙的安全,那不是就不用99把了吧。所以我知道吧自己的key放在一个安全的地方就可以。
阅读全文
摘要:很早就说要搬到github上。这个是一个必然的趋势。所以这个星期一定要搬走。然后开始研究vim-plungin首先使用jekyll 的octopress的框架,感觉这个写的不是很好,接口有点别扭。特别是分支的问题上。不过问题不大准备工作:ruby --->sudo apt-get install ruby1.9.3github上的创建一个帐号username.github.com (github pages 有两种方式,第一中相对来说域名上简单过程不清晰,第二中github pages project 过程清晰域名麻烦点)git clone git://github.com/imathi
阅读全文
摘要:ln如果使用相对路径确实容易出现问题。比如:cd Desktop/dart/ln -s ./DartEditor ../lee 这样子创建的链接是broken的所以比较好的方案是使用绝对的路径ln -s ~/Desktop/dart/DartEditor ~/Desktop/leeorln -s /home/username/Desktop/dart/DartEditor /home/Desktop/lee也可以使用相对的路径啦cd Desktopln -s ./dart/DartEditor lee这样子也是可以的。先进入你要存放链接的目录,然后找到目标来源,链接.ok
阅读全文
摘要:gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8','GB18030','GB2312','GBK','BIG5','CURRENT','UTF-16']"orgconf-editor/apps/gedit-2/preferences/encodings
阅读全文
摘要:debian package manager
阅读全文
摘要:sudo add-apt-repository --remove ppa:whatever/ppasudo add-apt-repository ppa:chris-lea/node.jsremove thesudo add-apt-repository --remove ppa:whatever/pparm files at /etc/apt/sources.list.d/
阅读全文
摘要:remove thesudo add-apt-repository --remove ppa:whatever/ppa /etc/apt/sources.list.d/
阅读全文
摘要:ls *asp*|while read file;do real=$file; file=${file/./};file=${file/\?/};file=${file/=/};file=${file/&/};file=$file".html";find ./ -name "*.asp*" -exec sed -i "s/$real/$file/g" {} \;;find ./ -name "*.html" -exec sed -i "s/$real/$file/g" {} \;; mv
阅读全文
摘要:findhttp://www.baidu.com/cnc=${a//\//\\/}echo $chttp:\/\/www.baidu.com\/cncontent='f'echo 'fefew $f'--->sorry you need to echo "fefe $f"read -p "Content:" content content=${content//\//\\/} echo $content read -p "Replace:" replace find ./ -name "
阅读全文
摘要:wget -mk --restrict-file-names=ascii www.baidu.com--restrict-file-names 处理乱码使用wget -P --->specify the dirctory
阅读全文
摘要:cat fileName | \while read CMD;do echo $CMDdonels >1 while read line;do wget "http://www.baidu.com/"+linedoneFILE=testwhile read CMD;do echo "$CMD"done<"$FILE"
阅读全文
摘要:这个绝对是授人以渔之法。今天礼拜6真好整理整理一下我的东西。感觉linux中的每个命令就像dota的英雄一样都有他的生命。基本的跑位技能大家都会。但是还是有很多小细节需要努力。LINUX里面内置了很多的武功秘籍,里面有很多的招式,可是要有耐心的修炼。才能用好这个操作系统。一开始我就学习错误,过多的使用了google,所以容易忘记。应该先从man入手,不是说别人的不好,而是使用了man你就经过了自己的思考。这个是最可贵的。 1.首先我们碰到一个命令,举个栗子,来一个陌生的把hydra----->man hydra NAME hydra - a very fast network l...
阅读全文
摘要:scp ./filaname root@ipaddress:/root/directory/filenameor change the orderscp root@ipaddress:/root/directory/filename./filaname
阅读全文
摘要:动不动就是.net我们可以做,你说你们还能干嘛,动不动就是多线程,到底你懂不懂多线程。大哥,你写过代码,专有名词这门这么多,只是一个名词而已,你有何必一直提。这样是高端吗?动不动就是.net,我看你们只是一群被束缚的小丑,当那天不能满足你的功能的时候就是这个框架不行,满世界找框架。 还是那句话把。windows不够用。不是你不够好~ 也许我要表达的意思是:http://www.aqee.net/dear-project-manager-i-hate-you/
阅读全文
摘要:first-step: ssh-keygen --->password file-->enter passphrase-->enter passphrase againsecond-step ssh-copy-id -i ~/.ssh/id_rsa.pub root@ip_addressthird-step ssh root@ip_address
阅读全文
摘要:sudo add-apt-repository ppa:tualatrix/ppa -y&&sudo add-apt-repository ppa:teejee2008/ppa -y&&sudo add-apt-repository ppa:chris-lea/node.js -y&&sudo apt-get update&&sudo apt-get install conky-manager&&sudo apt-get install git gitk xchat vim-gnome w3m htop freem
阅读全文
摘要:这个比较容易出错,好像也是不好设置1.点击Network-->wifi-->scan 然后加入到你已知的路由其上 (在Advance 配置中选择400Hz这个不知道要不要,反正我配置了)2.点击Network-->wifi-->add 创建一个AP,lan钩上,密码自己可以配置。这样子应该没我问题了可惜我手机可以上,电脑只能上国外的网站,很奇怪的问题!花了2个小时研究这个。openwrt还是有很多好玩的,也许就跟git一样是一个一辈子的工具需要不断的学习。
阅读全文
摘要:有时候呢?设置出错什么的会导致无法链接到路由器这个时候就要采取一些措施:1.将ip地址调整为192.168.1.10 mask:255.255.255.0 gateway:192.168.1.1Debian 可以通过手动该vim /etc/network/interfaces注销eth0部分的语句加入iface eth0 inet static address 192.168.1.10 netmask 255.255.255.0 gateway 192.168.1.1然后执行su #switch to rootifdown eth0&&ifup eth02.插上电源同时按下re
阅读全文
摘要:windows下putty竟然不会掉线,而linux 的ssh反而掉线,不能忍呀。故如下:1.使用SCREEN,但是一般用不到,如果需要多个Terminal 操作可以使用2.sudo vim /etc/ssh_config末尾加入Host * ServerAliveInterval 30 ServerAliveCountMax 2[1]http://patrickmylund.com/blog/how-to-keep-alive-ssh-sessions/
阅读全文

浙公网安备 33010602011771号