cd
That will take you to your home directory
vi .bash_profile
And include:
export JAVA_HOME=/Library/Java/Home
Now every time a shell is open, you wil have that set
cd
That will take you to your home directory
vi .bash_profile
And include:
export JAVA_HOME=/Library/Java/Home
Now every time a shell is open, you wil have that set
grep -r “the phrase or word you are looking for…” src/main/webapp/*
If you want to exclude certain string from the results:
(first grep here) | grep -v “error.log”
# looking for an specific file name find / -name foo
# looking for a string inside a file, excluding certain files:
grep –exclude=*.log -rnw ‘.’ -e “the_string_you_are_searching_here”
It’s weird, but running system / administration / services fedora UI interface is not really changing the services when I hit the restart or enable buttons.
I couldn’t find the answer to the bug, but a workaround to fix it (at least for sshd being run at startup) is to enable sshd through the command line, with the following commands:
/sbin/chkconfig –add sshd
/sbin/chkconfig sshd on
Hope it helps !
Use Sun Virtualbox. It is open source, it is free, and it runs great. Here’s the link to the tutorial:
http://www.sitepoint.com/blogs/2009/04/20/virtualbox-review/
http://www.sitepoint.com/blogs/2009/10/27/build-your-own-dev-server-with-virtualbox/
Fedora protect against this by default. The following lines / files need to be modified by commenting out the line that has the “root quiet” stuff with #:
# grep -e ‘ root’ /etc/pam.d/*
/etc/pam.d/gdm:#auth required pam_succeed_if.so user != root quiet
/etc/pam.d/gdm-fingerprint:#auth required pam_succeed_if.so user != root quiet
/etc/pam.d/gdm-password:#auth required pam_succeed_if.so user != root quiet
/etc/pam.d/xdm:#auth required pam_succeed_if.so user != root quiet