This is more of a general Ubuntu newbie question. (14.04 LTS, btw) I’ve built and used my Ubuntu box solely as a development machine to (re) learn coding – mostly java. I have two primary issues:
1) I can’t find any advice on a standard directory to install programs, so I’ve tended to use either /opt/ or /usr/lib. Is that ok?
2) I seem to run into recurring problems with file and directory permissions when trying to install/use applications.
From what I’ve read, there is no ‘standard’ for installation directories (and apt-get seems to do it’s own thing), so what do experienced folks do? Any good practices you can recommend?
The permissions problem consistently gives me the irits, and I usually end up going into the terminal and sudo the hell out of everything, or using chmod/chown. But, I think this kind of defeats the purpose of having these permissions. Is this a common issue, or did I miss a step when I built my box? Or, worse yet, did I somehow screw up my standard permissions?
For example, I installed eclipse and spring (STS, roo and security). To do the spring security tutorial, I had to install tcserver, so I put it under /opt/. However, I couldn’t set it up or start it through eclipse until I changed the ownership permissions on the entire install and server directories. This can’t be normal. That said, I installed maven without a hitch.