Free my heart

free my heart

My Links

文章 分类

存档

Blog Stats

Linux commands

================================================================================= Get information: How to find file position of command: which -a xxxx How to list all online accounts: who users How to list all accounts: cat /etc/passwd |grep home ================================================================================= Edit: Appand data to one file: echo "new data" >> file ================================================================================= Shell: test if env exist: if test -z $MYENV then echo "not exist" else echo "exist" fi call substr function: echo `expr substr "abcdefg" 1 3` ---- abc test if directory not exist: if [ ! -d /usr ] ================================================================================= Install / Uninstall: How to remove postgresql from linux: yum remove postgresql* rm -rf /usr/local/pgsql userdel postgres How to install postgresql on linux: yum install postgresql mkdir /usr/local/pgsql mkdir /usr/local/pgsql/data chown postgres /usr/local/pgsql/data su postgres initdb –D /usr/local/pgsql/data edit pg_hba.conf, add the following item: host all all 172.21.111.35/16 trust edit postgresql.conf, add the following item: listen_address = '*' How to install/remove java from linux: yum remove java yum install java How to install/remove ant: yum remove ant-* yum install ant-* How to install Eclipse: yum install Eclipse How to open telnet server: yum install telnet-server telnet chkconfig telnet on /etc/init.d/xinit.d restart nomorally, root is not allowed by telnet, edit /etc/securetty, add: pts/0, pts/1, pts/2, ... ================================================================================= Service: How to start postgres: sudo -u postgres pg_ctl -D /usr/local/pgsql/data start How to start Samba: /etc/service smb start ================================================================================= Enviroment: ant: ANT_HOME=/home/wang/sourceRSS/webapp/shared/tools/apache-ant-1.7.0/bin PATH=$PATH:$ANT_HOME How to set default window appearance: gnome-control-center ================================================================================== Create build server for RSS web service: Precondition: jdk, ant svn checkout https://172.21.111.30/svn/rmx1000/branches/rss4k/webapp vi build.properties: env.JAVA_HOME=/usr rss_service/launch start ================================================================================== SVN: make one file executable on linux: svn propset svn:executable ON filename ================================================================================== x-window: on my PC, install x-win32 software, my pc will be x-server. open x-win32 on linux, run: export DISPLAY=172.21.111.35:0.0 eclipse then on my pc will pop up a messagebox, accept the connection. ================================================================================== Run Eclipse on linux: install sun jdk on linux: ./jdk-6u7-linux-i586-rpm.bin ---- file from web, will be installed at /usr/java/jdk1.6.0_07 vi /etc/profile.d/java.sh export JAVA_HOME=/usr/java/jdk1.6.0_07 export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib export PATH=$JAVA_HOME/bin:$PATH reboot system, relogin, run "java -version", right result should display new version. download eclipse jee version from web, extract it to one path, then it can run. it's GUI based, so we must set our x-win32 as server and run "./eclipse" extract tomcat plugin to plugin/ and reopen eclipse, we can see tomcat plugin usable. download flex builder linux version: sh flexbuilder_linux_install_a4.bin --- no response on UI, it because IcedTea java used, delete it. when install it, it said directory "configuration" can't be found --- bug of Eclipse, click "Proceed with Caution" copy Timcat plugin package into eclipse's plugin directory. Now we can debug java & flex. Issue: flex's mxml can't open in visual layout mode. You can also install subclipse in order to using svn client in eclipse. http://blog.bcchinese.net/jianjunwang/admin/EditPosts.aspx jianjunwang / 87bf5fef22 // TODO: UI received 7001, after click, still not logout. in MediaManagement.java public String getArchiveURL(Archive archive) throws Exception

posted on Monday, September 7, 2009 9:32 PM #Linux

Feedback

No comments posted yet.
Title  
Name  
Url
Comments   
Protected by Clearscreen.SharpHIPEnter the code you see: