$groupadd admin
2. Add a user called "hiro" to admin group
$gpasswd -a hiro admin
I'm gonna record my struggles with iPhone & Android mobile development experiences as well as PHP and other software development experiences.
$groupadd admin
$gpasswd -a hiro admin
sudo mv eclipse /opt/eclipse cd /opt sudo chown -R root:root eclipse
sudo mv eclipse /opt/eclipse cd /opt sudo chown -R root:root eclipse
sudo chmod -R +r eclipse
sudo chmod +x `sudo find eclipse -type d`
Then create an eclipse executable in your path
sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudoedit /usr/bin/eclipse
With these contents:
#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*
The .bash_profile file is read and executed when bash is invoked as a login shell, otherwise the .bashrc file will be read and executed.That's why this code:if [ -d ~/bin ] ; then
PATH=~/bin:" ${PATH} "
fiwhich is located in .bash_profile, doesn't seem to work...it's not being read. But, if you enter this into your terminal:bash --loginthen all your scripts in ~/bin will execute properly for your current terminal session.A good solution is to cut those 3 lines of code out of .bash_profile and put them in your .bashrc file. If you don't cut (or comment out) the code in .bash_profile it will be read twice since .bash_profile includes the .bashrc file.