You should rebuild using libgmp >= 5 to avoid timing attack vulnerability
python dev_appserver.py demos/
/usr/lib/python2.7/site-packages/pycrypto-2.4.1-py2.7-linux-i686.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
#emerge dev-libs/gmp
公告版位
目前分類:Gentoo (107)
- Aug 12 Sun 2012 16:00
[Gentoo][GAE]You should rebuild using libgmp >= 5 to avoid timing attack vulnerability
- Aug 10 Fri 2012 19:48
[gentoo]linux tar: Removing leading '/' from member names
[gentoo]linux tar: Removing leading '/' from member names
使用tar backup的時候,
因為安全性問題,他會幫你去除到 /
也就是會解壓到 當前目錄下 ./
有時候我們是想壓縮開來的檔案是在當前目錄的,
只能先切換到那個目錄,再使用tar了
假設檔案在 workspace
cd workspace ;tar -czvf 檔案名稱 要壓縮檔案
- Aug 10 Fri 2012 19:45
[gentoo] linux tar 使用 xz 壓縮
[gentoo]tar 使用 xz 壓縮
目前來說xz的壓縮比率最高,且解壓縮時間快。
純文字大概可以相差十倍。
壓縮
tar -cJvf filename.tar.xz file(想壓縮的檔案)
主要是加上 J
- Aug 07 Tue 2012 00:25
[gentoo]synaptics double click trap to click
[gentoo]synaptics double click trap to click
touchpad若是不能trap to click
可使用
$ synclient tapbutton1=1
Synaptics Touchpad/Xorg 7.3 - Gentoo Linux Wiki
http://en.gentoo-wiki.com/wiki/Synaptics_Touchpad/Xorg_7.3
- Jun 18 Mon 2012 01:54
[gentoo]mount usb
- Apr 28 Sat 2012 13:24
[gentoo]Speed up your firefox in linux 加速你的firefox sqlite
Speed up your firefox in linux by VACUUM sqlite file
已經把cache放ramdisk了,
可能開久了還是覺得很慢。
在windows下就有speedfox 他是做你的 firefox的設定擋sqlite的調整
想說在linux下應該可以如法炮製。
peicheng@PCsNB ~ $ for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f 'VACUUM;'; done
- Mar 08 Thu 2012 20:52
[survey]支援 linux 數位電視棒
在Linux看HiHD的第一步-找一張有支援的電視卡 - 黑族 - 傑比數位設計、電腦維修(Jaby Group) :: Heyxu 黑族
http://jaby.heyxu.com/PT00D0300/zhcnqfdl
我抄故我在: 在LMDE下用數位電視棒看TV
http://duh2004.blogspot.com/2012/01/lmdetv.html
★ISunfar 愛順發購物網:大通 ED-725 HDTV高畫質雙天線數位棒
http://www.isunfar.com.tw/product/product.aspx?prodSeq=295052
Maxsolar's Linux Blog: 在Linux上看數位電視
http://maxubuntu.blogspot.com/2010/10/linux.html
AVerMedia - LinuxTVWiki
http://linuxtv.org/wiki/index.php/AVerMedia
- Feb 24 Fri 2012 00:49
ASUS w7s lspci
PCsNB todolist # lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
- Dec 24 Sat 2011 23:52
[Perl]install String/CRC32.pm
Can't locate String/CRC32.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.12.2/i686-linux /usr/lib/perl5/site_perl/5.12.2 /usr/lib/perl5/vendor_perl/5.12.2/i686-linux /usr/lib/perl5/vendor_perl/5.12.2 /usr/lib/perl5/5.12.2/i686-linux /usr/lib/perl5/5.12.2 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/local/lib/site_perl .) at mod.pl line 3.
BEGIN failed--compilation aborted at mod.pl line 3.
#cpan
cpan# install CRC32
Fetching with LWP:
ftp://cpan.cs.pu.edu.tw/pub/CPAN/modules/03modlist.data.gz
Going to read '/root/.cpan/sources/modules/03modlist.data.gz'
............................................................................DONE
- Dec 18 Sun 2011 14:21
[gentoo]glxinfo 測試顯示卡
根據
Gentoo Linux Documentation -- Gentoo Linux nVidia Guide
http://www.gentoo.org/doc/en/nvidia-guide.xml
Testing your Card
To test your nVidia card, fire up X and run glxinfo, which is part of the mesa-progs package. It should say that direct rendering is activated:
Code Listing 3.15: Checking the direct rendering status
- Dec 03 Sat 2011 21:34
[Gentoo]autounmask - Unmasking packages the easy way
PCsNB peicheng # emerge --autounmask-write pypy
Calculating dependencies... done!
[ebuild N *] dev-python/pypy-1.7 USE="bzip2 jit ncurses ssl -doc -examples -sandbox -stackless -test -xml"
The following keyword changes are necessary to proceed:
#required by pypy (argument)
=dev-python/pypy-1.7 **
NOTE: The --autounmask-keep-masks option will prevent emerge
- Oct 31 Mon 2011 00:03
[Gentoo]Google chrome bin
從chrome 14.0升到 15.
藉由官方版的binary升級的,
可以參考blog內,的google-chrome-bin官方版,
可以把
ebuild 加到 /urs/local/portage/www-client 下面
在/etc/make.conf
加入
PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-taiwan /usr/local/portage"
這樣以後eix-sync就不會蓋掉ebuild了。
- Oct 07 Fri 2011 15:46
[Gentoo]rdesktop Fullscreen toggle
[Gentoo]rdesktop Fullscreen toggle
當開了rdesktop full screen mode的時候都會有個問題,怎麼切回去呢?
ctrl + alt +enter
就可以 toggle fullscren mode了
- Aug 14 Sun 2011 12:20
[Gentoo]Linux 錄音
ffmpeg -f oss -i /dev/dsp outzzz.avi
smplayer outzzz.avi
- Aug 06 Sat 2011 02:27
[Gentoo]crontab
cannot chdir(/var/spool/cron), bailing out.
代碼:
# chmod o+rx /var/spool/cron
- Jul 14 Thu 2011 17:42
[Gentoo]增加在進入系統執行的指令 rc-update add .xprofile
在Gentoo下有幾個方法比較不一樣的是
rc-update add
在/etc/init.d 裡面加
或者
vim ~/.xprofile
像是要把google chrome的cache資料夾加到 /dev/shm
除了
- Jul 13 Wed 2011 23:40
imagemagick covert mogrify 縮圖
因為facebook 縮的圖是720
想說相機拍完檔案很大,直接轉成720的傳上去比較快。
mogrify -path thumbs -thumbnail 720 *.JPG
Thumbnails -- IM v6 Examples
http://www.imagemagick.org/Usage/thumbnails/#storage
- Jun 11 Sat 2011 02:11
HTTP header
Making HTTP requests via telnet -
http://tonycode.com/wiki/index.php?title=Making_HTTP_requests_via_telnet
peicheng@PCsNB ~/project/c $ telnet tw.yahoo.com 80
Trying 119.160.246.241...
Connected to tw-tpe-fo.fyap.b.yahoo.com.
Escape character is '^]'.
HEAD / HTTP/1.0
- Jun 09 Thu 2011 14:34
Google note
Google note 雖然已經停止開發(轉上google docs),
但是功能其實已經非常的足夠了。
無奈他的extension,只有IE與firefox。
所以,Google Chrome使用 小書籤的方式去實踐,plugin的功能。
我大概是從三上開始使用,
然後,之後去北京 ( 2009 ) 密集的使用他來做一些note。
直到4年級。
- Jun 04 Sat 2011 15:47
[Gentoo] Web cam Chicony Electronics Co., Ltd 1.3 MPixel UVC Webcam
coldnew's blog: 安裝Gentoo linux on ASUS F6V (webcam)
http://coldnew.blogspot.com/2009/02/gentoo-linux-on-asus-f6v-webcam.html
Device Drivers --->
Multimedia Devices --->
Video For Linux
[ ] Enable Video For Linux API 1 (DEPRECATED)
[ ] Enable Video For Linux API 1 compatible Layer
[*] Video capture adapters --->