2012年10月18日
1. vi /etc/default/grub
2. modify the value of GRUB_CMDLINE_LINUX parameter , Ex : GRUB_CMDLINE_LINUX="vga=0x317".
Before changing it, backup orginal value is recommended.
3. there are some values for reference .
| 640x480 800x600 1024x768 1280x1024
---- | --------------------------------------
256 | 0x301 0x303 0x305 0x307
32k | 0x310 0x313 0x316 0x319
64k | 0x311 0x314 0x317 0x31A
16M | 0x312 0x315 0x318 0x31B
4. $sudo update-grub
5. $sudo reboot
Good luck to you!
Reference: http://blog.csdn.net/weilanxing/article/details/7664324
First step : sudo apt-get install vsftpd
Second step :
sudo vi /etc/vsftpd.conf
when you open the vsftpd.conf, make the following changes:
1. uncomment :
local_enable=YES
2. uncomment :
chroot_local_user=YES
3. uncomment :
write_enable=YES
After above steps, please restart vsfptd service as follows: sudo /etc/init.d/vsftpd restart
Q&A:
Q1. 500 OOPS: vsftpd: refusing to run with writable root inside chroot()A1: 1. edit the file /etc/vsftpd.conf , 2. uncomment chroot_local_user=YES 、 chroot_list_enable=YES 、 chroot_list_file=/etc/vsfptd.chroot_list 3. edit /etc/vsfptd.chroot_list file, then input the ftp login account like ftpuser, save and exit. 4. restart your vsftpd service.
Hope it will be helpful to you !
In Linux, you always wanna to use command: sudo apt-get update to update source list. But if one of terminal doesn't finish updating, and then you execute another same command : sudo apt-get update,it will has the error message like the following :Error output: alicus@ubuntu:~$ sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the list directory
The solution is :
Open a new terminal console, execute command like this : sudo rm /var/cache/apt/archives/lock ( it is that has been locked ).
After that, you are allowed to execute sudo apt-get update again.
Good luck to you !
1. Download the DB2V9.5 Software from URL: http://www14.software.ibm.com/webapp/download/search.jsp?pn=DB2+9
2. Install Prepared Packages:
shell cmd : sudo apt-get install alien
shell cmd : sudo apt-get install libstdc++5 ( need update System Sources List — > sudo gedit /etc/apt/sources.list )
if it still has problem like this : libaio.so.1 is not found, try this command: sudo apt-get install libaio-dev
You can see the source list in here : http://forum.ubuntu.org.cn/viewtopic.php?t=268843
or add the following URLs immediately :
deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
3. change a root account's password as the default root's password is random :
shell cmd : sudo passwd root
please input the root password
shell cmd : su root (change current account to root)
4. access to db2 install folder,input the command: ./db2setup to install
5. When the install page popped, choose the options you want.
6. use db2 account to login :
shell cmd : su –login db2inst1
password : db2inst1
QA:
1. when you use cmd: su — login db2inst1 to login, then you input db2cc ,it will have errors like following:
#db2cc
No protocol specified
Error: Can not open display
A: use root account and then input cmd: xhost local:db2inst1
Hope it will be helpful to you !
Open the eclipse folder and access the eclipse.ini file:
Before changing it ,you will find it don’t have the -vm parameter,so add it.
vm
C:\Program Files\Java\jdk1.6.0_10\bin\javaw.exe
Note: It should be add before the -vmargs parameter.
See my eclipse.ini, just like this:
1 -startup
2 plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
3 –launcher.library
4 plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
5 -product
6 org.eclipse.epp.package.jee.product
7 –launcher.defaultAction
8 openFile
9 –launcher.XXMaxPermSize
10 256M
11 -showsplash
12 org.eclipse.platform
13 –launcher.XXMaxPermSize
14 256m
15 –launcher.defaultAction
16 openFile
17 -vm
18 C:\Program Files (x86)\Java\jdk1.6.0_17\bin\javaw.exe
19 -vmargs
20 -Dosgi.requiredJavaVersion=1.5
21 -Dhelp.lucene.tokenizer=standard
22 -Xms40m
23 -Xmx512m
Wish to be helpful to you!
Enjoy it!
●說吧,你是想死呢還是不想活了?
●好久沒有人把牛皮吹的這么清新脫俗了!
●你給我滾,馬不停蹄的滾……
●人人都說我丑,其實我只是美得不明顯。
●無理取鬧,必有所圖!
_________________________________________________
●天被熬亮了。
●不是路不平,而是你不行。
●惡心媽媽抱著惡心哭得很傷心,為什么呢?因為惡心死了……
●要不是打不過你,我早就和你翻臉了。
●我這心碎得,捧出來跟餃子餡似的。
_________________________________________________
●沒人牽手,我就揣兜。
●我的興趣愛好可分為靜態和動態兩種,靜態就是睡覺,動態就是翻身…
●唉~這人要一沒正形,連頭痛都是偏的。
●我這人不太懂音樂,所以時而不靠譜,時而不著調。
●怎么會突然想哭?難道我也有些逆流成河的小憂傷?
_______________________________________
●好漂亮的美女叔叔啊!
●我不跟豬摔跤有兩個原因:首先這讓我自己變得很臟,其次這讓豬很高興。
●沒事偷著樂是不太可能了,偷著胖還是有點兒希望.
●放下屠刀立地成佛的意思是,你放下屠刀的那一刻對方把你砍成兩瓣兒了。
●沒事可做時,覺得最累。
_________________________________________________
●李碧華說過: 什么叫多余?夏天的棉襖,冬天的蒲扇,還有等我已經心冷后你的殷勤。
●永遠年輕,永遠裝嫩,永遠不知好歹,永遠熱淚盈眶。
●我爸面對我發胖一事發表了看法:沒有韓紅的命,還得了韓紅的病。
●你來我信你不會走,你走我當你沒來過。——我們該這樣對待緣分與愛。
●曾以為我是那崖畔的一枝花,后來才知道,不過是人海一粒渣。
_________________________________________________
●蕩氣回腸,消化不良。
●女人喜歡長的壞壞的男人,并不是喜歡長壞了的男人..
●麻子不叫麻子,坑人。
●江湖險惡,不行就撤!
●不敲幾下,你不可能知道一個人或一個西瓜的好壞。
_________________________________________________
●孤獨的人常表現得很堅強;寂寞的人則多半溫和。
●大笑是綻放的微笑。
●我的意中人是個絕色大美女,終于有一天她會騎著噴火的恐龍來嫁給我
的,可是我看見了她的坐騎,卻沒有看見她的主人。
●孤單是一個人的狂歡,狂歡是一群人的孤單。
●雖不安分,也該守己。
________________________________________
●人不犯我,我不犯人。人若犯我,我就生氣!
●別逼我,否則我偉大起來,一發不可收拾。
●我們是平凡的人,我們也是特別的人,所以我們是特別平凡的人。
●那個人敢說自己純凈?瞧你那眼神就透著渾濁。
●沒有什么比弱者對強者的鄙視更無力了。
_________________________________________________
●如有雷同,純屬你抄我 ●笨鳥先飛,笨豬先肥。
●當你的眼淚忍不住要流出來的時候,睜大眼睛,千萬別眨眼,你會看到世
界由清晰到模糊的全過程。
●告訴你別逼我,你要是再逼我,我就裝死給你看。
●年輕算什么,誰沒年輕過?你老過嗎?真是的
__________________________________________
●別用世故的樣子來武裝自己,它會水土不服。 ●解釋就是掩飾,掩飾就是編故事。
●所謂門檻,過去了便是門,過不去就成了檻。
●陌生阻止你認識陌生的事物,熟悉妨礙你理解熟悉的事物。
●人生的悲哀就在于,當你想兩肋插刀的時候,卻只有一把刀。
____________________________________________
● 如果全是老姜,將是一個何等辛辣的社會。
● 獅子不會因為聽到狗吠而回頭。
● 水越深,水流越平穩。
●在你不當回事的時候,一切就好了起來。
● 無論是國王還是農夫,只要能在自己家里找到安寧,他就是最幸福的人。
____________________________________________
● 一分錢一分貨,稀飯吃了不經餓.
● 水壺啊,你為什么哭泣,是因為屁股太燙了嗎?
● 如果命運抓住了伱的喉嚨,伱就撓命運嘚胳肢窩。
● 攔著成長的不是幼稚,而是自以為成熟。
● 如果命運折斷了你的腿,他會教你如何跛行
__________________________________________
● 打死你我也不說
●左腦全是水,右腦全是面粉,不動便罷了,一動全是漿糊
●掙錢就像用針掘地,花錢就像水滲進土里。
●我也有要去的地方,只是我要去的地方,沒道路通向那里。
●你浪費的糧食都會堵在你去往天堂的路上。
______________________________________________
●生活是豐富多彩的,但我也有自己的顏色。 ●如果有一天我失蹤了,只有兩種可能:身體在旅行,或者靈魂在旅行。
●讓人格與腦門一同閃亮。
●你的丑和你的臉沒有關系。
●我從來沒有欺騙過你,因為我從來沒有欺騙你的必要。
__________________________________________________
●我可以選擇放棄,但我不能放棄選擇。
●天沒降大任于我,照樣苦我心志,勞我筋骨。
●也許似乎大概是,然而未必不見得。
●再過一百年,就長成了參天大蔥。
●幸福就是當你照鏡子的時候,喜歡你看到的那個人。
I wish you will be happy every day!
由于IBM推廣DB2新版本的原因,導致舊的版本的鏈接被隱藏起來了。所以本人從網絡上收集了一些鏈接,以方便有需要的朋友。 DB2 8.2 Windows 32位: ftp://public.dhe.ibm.com/ps/products/db2/fixes2/english-us/db2winIA32v8/fixpak/FP18_WR21443/FP18_WR21443_ESE.exe DB2 9.1 Windows 32位:http://delivery04.dhe.ibm.com/sar/CMA/IMA/00vcl/0/v9fp9_win_ese.exe Windows 64位:http://delivery04.dhe.ibm.com/sar/CMA/IMA/00vcw/0/v9fp9_winx64_ese.exe Windows 64位 Itanium: http://delivery04.dhe.ibm.com/sar/CMA/IMA/00vj9/0/v9fp9_win64_ese.exe Linux 32位 :http://delivery04.dhe.ibm.com/sar/CMA/IMA/00vem/0/v9fp9_linux_ese.tar.gz Linux 64位:http://delivery04.dhe.ibm.com/sar/CMA/IMA/00vft/0/v9fp9_linuxx64_universal_fixpack.tar.gz HP unix 64位:http://delivery04.dhe.ibm.com/sar/CMA/IMA/00ve6/0/v9fp9_hppa_universal_fixpack.tar.gz DB2 9.5 Windows 32位:http://delivery04.dhe.ibm.com/sar/CMA/IMA/02bok/1/v9.5fp7_nt32_server.exe Windows 64位:http://delivery04.dhe.ibm.com/sar/CMA/IMA/02box/1/v9.5fp7_ntx64_server.exe Linux 32位:http://delivery04.dhe.ibm.com/sar/CMA/IMA/02bnv/0/v9.5fp7_linuxia32_universal_fixpack.tar.gz linux 64 位:http://delivery04.dhe.ibm.com/sar/CMA/IMA/02bni/0/v9.5fp7_linuxx64_universal_fixpack.tar.gz Aix 64位:http://delivery04.dhe.ibm.com/sar/CMA/IMA/02bmd/0/v9.5fp7_aix64_universal_fixpack.tar.gz HP unix 64位:http://delivery04.dhe.ibm.com/sar/CMA/IMA/02bmr/0/v9.5fp7_hpipf64_universal_fixpack.tar.gz DB2 9.7 Windows 32位: http://delivery04.dhe.ibm.com/sar/CMA/IMA/0152u/1/v9.7fp3a_nt32_universal_fixpack.exe Windows 64位: http://delivery04.dhe.ibm.com/sar/CMA/IMA/01534/1/v9.7fp3a_ntx64_universal_fixpack.exe Linux 32位: http://delivery04.dhe.ibm.com/sar/CMA/IMA/0152j/1/v9.7fp3a_linuxia32_universal_fixpack.tar.gz linux 64 位: http://delivery04.dhe.ibm.com/sar/CMA/IMA/01523/1/v9.7fp3a_linuxx64_universal_fixpack.tar.gz Aix 64位: http://delivery04.dhe.ibm.com/sar/CMA/IMA/0150o/1/v9.7fp3a_aix64_universal_fixpack.tar.gz HP unix 64位:http://delivery04.dhe.ibm.com/sar/CMA/IMA/01512/1/v9.7fp3a_hpipf64_universal_fixpack.tar.gz 如以上沒用,試試此鏈接: http://www14.software.ibm.com/webapp/download/search.jsp?pn=DB2+9
今天在玩EditPlus的時候,由于自己想上傳文件至SVN,本機已經安裝了TSVN,聽說近期EditPlus支持了SVN操作,
于是自己便帶著好奇的心試試了。
已有的環境:
EditPlus 3.3
TSVN 1.5
VisualSVN Server 2.1.3
目的:能夠在EditPlus里使用SVN編輯、更新文件。
第一步: 先下載http://www.sliksvn.com/pub/Slik-Subversion-1.5.2-win32.msi 安裝上。
PS: 一開始本人也認為不需要下載這個文件,自己本地已經有了TSVN了,只要修改SVN路徑就行了,
不過試了后,無法實現提交、更新。
第二步:新建配置文件:tool.ini
貼進以下內容:
[Tools\0]
Count=2
Text=Group 1
[Tools\0\0]
Text=SVN commit
Command=C:\Program Files\SlikSvn\bin\svn.exe
Argument=commit -m "" $(FilePath) --non-interactive
InitDir=$(FileDir)
RedirOut=1
Stdin=0
Plugin=0
Save=1
Pattern=0
Pattern Regex=
Close=0
Help=0
[Tools\1]
Count=0
Text=Group 2
[Tools\2]
Count=0
Text=Group 3
[Tools\3]
Count=0
Text=Group 4
[Tools\4]
Count=0
Text=Group 5
[Tools\5]
Count=0
Text=Group 6
[Tools\6]
Count=0
Text=Group 7
[Tools\7]
Count=0
Text=Group 8
[Tools\8]
Count=0
Text=Group 9
[Tools\9]
Count=0
Text=Group 10
[Tools\0\1]
Text=SVN update
Command=C:\Program Files\SlikSvn\bin\svn.exe
Argument=update $(FilePath)
InitDir=$(FileDir)
RedirOut=1
Stdin=0
Plugin=0
Save=1
Pattern=0
Pattern Regex=
Close=0
Help=0
將新建的tool.ini 放到EditPlus 的安裝目錄下。重新啟動EditPlus.
PS: C:\Program Files\SlikSvn\bin\svn.exe 這個是你下載的文件的安裝路徑,
恩,通過以上步驟,基本上是可以的了。
不過還有幾個需要注意的是:
1,貌似EditPlus里,這個不能直接將新建的文件Add到服務上,所以要確保進行Update、Commit操作之前,確保你更新的文件
已經納入SVN版本控制中。
2,文件名不可以存在空格,Example: 文件名為 PowerDesigner 使用初步.txt 如果commit這個文件的話,會報
XX路徑\PowerDesigner 未納入版本的控制,把空格去掉就行了。
大家用的時候注意了哦。
通過以上步驟和注意點,您就可以用Ctrl+1 進行提交,用Ctrl+2進行更新操作。
參考:http://www.cnblogs.com/baogg/archive/2011/08/14/2137653.html
歡迎一起交流。
今天早上刷牙的時候突然想起了俞敏洪的一句話:“男生看女生叫審美,女生看男生叫好色”。
說到這,我感覺很奇怪,這句話不知道可不可以這樣理解:前面一句:男生看女生叫審美。理解如下:審美的主語是男生,賓語是女生,審美—可以看成是“我”審美,很明顯這里省略了“我”這個主語。看—我們可以理解為審的間接意思,那么可以推斷出那個美是指女生了!間接地理解整句:女生是美女。
后面一句:女生看男生叫好色。同理可推:女生—我(被省略的主語),看—好的間接理解,那么男生對應的就是色了。間接的理解整句:男生是色狼。
俞敏洪啊就是俞敏洪,即夸了女同胞,同時也道出了男同胞!
哈哈。。。個人之言,僅供娛樂!!
1. Copy the following bat code in a new txt file.
2. save it as bat file extension type, run it as administrator role.
———————————————————— Content Start ———————————————————-
reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons” /v 29 /d “%systemroot%\system32\imageres.dll,196″ /t reg_sz /f
taskkill /f /im explorer.exe
attrib -s -r -h “%userprofile%\AppData\Local\iconcache.db”
del “%userprofile%\AppData\Local\iconcache.db” /f /q
start explorer
———————————————————-Content End ———————————————————-
Enjoy it, my friend !
You know,If you want to develop java applications ,you’d better install jdk.
Today,I will introduce you how to intall jdk1.6 on Ubuntu.Just follow me step by step.
First step
you should download jdk file from sun offcial website,
URL: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u29-download-513648.html (fixed)
fileName : jdk-6u29-linux-i586.bin
Tips: 1)Before you will download this file ,you should accept license agreement.
2)If your system is Ubuntu10.4 or other 32-bit system,you can’t download the jdk-6u29-linux-x64.bin.When you use sudo sh jdk-6u29-linux-x64.bin,it will create a file that file’s name is invalid encoding.
Second step
after file is donwloaded,we also can use command
shell代碼:
ls
to scan the file list.
Third step
OK,now we can install jdk,write command :
shell代碼:
sudo sh jdk-6u29-linux-i586.bin
A few miniutes later,you will be asked to press Enter key,Just do, You will see ‘Done’.
Ok,Now jdk has been instaled by us,next step we will config environment variables for java
Fourth step
enter the command :
Shell 代碼:
sudo gedit /etc/environment
if you are similar with vim,you can use the command :
Shell 代碼:
sudo vi /etc/environment
Add the following lines in the end of file.
Shell 代碼:
export JAVA_HOME=/home/alicus/Downloads/jdk1.6.0_29
export JRE_Home=>/home/alicus/Downloads/jdk1.6.0_29/jre
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/lib
then enter command :
Shell 代碼:
source ~/.bashrc
it makes the changes effective
Fifth Step
You should know Ubuntu10.4 make the openjdk as its default jdk ,so we should make sun jdk to be
the default one,just use following commands :
Shell 代碼:
sudo update-alternatives –install /usr/bin/java java /home/alicus/Downloads/jdk1.6.0_29/bin/java 300
sudo update-alternatives –install /usr/bin/java java /home/alicus/Downloads/jdk1.6.0_29/bin/javac 300
use following command to scan the jdk priority:
Shell 代碼:
sudo update-alternatives –config java
Tips: sudo update-alternatives — install is used to change the priority.
OK!Now you can enter
Shell 代碼:
java -version
to test if jdk is ok.
If you can see java version “1.6.0_29″,Congratulations!!
If you have any questions,just contact me.
Email:alicus890824@gmail.com
最近使用Mockups 進行頁面原型設計,發現是未注冊的,于是網上查詢了下注冊碼,居然有效,在此記錄下。
有需要的朋友也可以試試。
Name:Rick Dong
Key:eNrzzU/OLi0odswsqgnKTM5WcMnPS1eoMTQyMjexMDQyAIEa5xpDAA8pDD8= 本人使用上面這個激活的,激活日期: 2012-10-18 。 如不行,試試這個:
Name: helloWorld
Key: eJzzzU/OLi0odswsqslIzcnJD88vykmpsUQCNc41hjV+7q5+AF74Ds8=
本文參考:http://chuangyiji.com/2011/01/balsamiq-mockups-license/#comment-18172