.bash_profile 은 개인적인 설정으로 로그인 할 때마다 읽히는 것입니다.
그런데 .bash_profile 을 수정했는데 (예를들면 JAVA_HOME 이라던가 PATH 라던가) 안 읽히는 것입니다. 뭐 이유는 여러가지가 있겠지만 암튼 이런 경우가 발생했을 때의 해결방법입니다.
$HOME/.bashrc 를 에디터로 엽니다.
아래쪽쯤에
. ~/.bash_profile
fi
이렇게 추가 해줍니다. 그러면 끝!!
$ sudo apt-get install apache2
$ sudo apt-get install tomcat7 tomcat7-docs tomcat7-admin tomcat7-examples
$ sudo emacs /var/lib/tomcat7/conf/server.xml
$ sudo a2enmod proxy_ajp
$ sudo emacs /etc/apache2/sites-available/default
$ sudo emacs /var/lib/tomcat7/webapps/ROOT/hello.jsp
#!/bin/sh # Copyright (c) 2007 Aristotle Pagaltzis # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. set -e exists() { which "$1" &> /dev/null ; } if ! [ -d ~/.fonts ] ; then exec 2>&1 echo 'There is no .fonts directory in your home.' echo 'Is fontconfig set up for privately installed fonts?' exit 1 fi # split up to keep the download command short DL_HOST=download.microsoft.com DL_PATH=download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26 ARCHIVE=PowerPointViewer.exe URL="http://$DL_HOST/$DL_PATH/$ARCHIVE" if ! [ -e "$ARCHIVE" ] ; then if exists curl ; then curl -O "$URL" elif exists wget ; then wget "$URL" elif exists fetch ; then fetch "$URL" fi fi TMPDIR=`mktemp -d` trap 'rm -rf "$TMPDIR"' EXIT INT QUIT TERM cabextract -L -F ppviewer.cab -d "$TMPDIR" "$ARCHIVE" cabextract -L -F '*.TT[FC]' -d ~/.fonts "$TMPDIR/ppviewer.cab" ( cd ~/.fonts && mv cambria.ttc cambria.ttf && chmod 600 \ calibri{,b,i,z}.ttf cambria{,b,i,z}.ttf candara{,b,i,z}.ttf \ consola{,b,i,z}.ttf constan{,b,i,z}.ttf corbel{,b,i,z}.ttf ) fc-cache -fv ~/.fonts
$ chmod a+x ./vista-fonts-installer.sh
$mkdir ~/.fonts
$sudo apt-get install curl
$ ./vista-fonts-installer.sh
$ sudo emacs /etc/apt/sources.list
deb http://oss.oracle.com/debian unstable main non-free
$ wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add -
$ sudo apt-get update
$ apt-cache search oracle
$ sudo apt-get install oracle-xe-universal
$ sudo /etc/init.d/oracle-xe configure
Specify the HTTP port that will be used for Oracle Application Express [8080]:
Specify a port that will be used for the database listener [1521]:
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:
$ sudo /etc/init.d/oracle-xe force-reload
$ sudo /etc/init.d/tomcat6 restart
$ sudo /etc/init.d/oracle-xe force-reload