Linux Best Practices

Posted by Zac on Super User See other posts from Super User or by Zac
Published on 2010-12-30T02:00:00Z Indexed on 2010/12/30 2:56 UTC
Read the original article Hit count: 241

Filed under:

I'm a life-long Windows developer switching over to Linux for the first time, and I'm starting off with Ubuntu to ease the learning curve.

My new laptop will primarily be a development machine: 6GB RAM, 320 GB HD. I'd like there to be 2 non-root users: (a) Development, which will always be me, and (b) Guest, for anyone else. I assume the root user is added by default, like System Administrator in Windows.

(1) I'd like to mount /home to its own partition, but how does this work if I have two user accounts (Development and Guest)? Are there 2 separate /home directories, or do they get shared? Is it possible to allocate more space for Development and only a tiny bit of space for Guest in GRUB2? How?!?!

(2) I'm assuming that its okay that all of my development tools (Eclipse & plugins, SVN, JUnit, ant, etc.) and Java will end up getting installed in non-/home directories such as /usr and /opt, but that my Eclipse/SVN workspace will live under my /home directory on a separate partition... any problems, issues, concerns with that?

(3) As far as partitioning schemes, nothing too complicated, but not plain Jane either:

  • Boot Partition, 512 MB, in case I want to install other OSes
  • Ubuntu & non-/home file system, 187.5 GB
  • Swap Partition, 12 GB = RAM x 2
  • /home Partition, 120 GB

I don't have any bulky media data (I don't have music or video libraries, this is a lean and mean dev machine) so having 320 GB is like winning the lottery and not knowing what to do with all this space. I figured I'd give a little extra space to the OS/FS partition since I'll be running JEE containers locally and doing a lot of file IO, logging and other memory-instensive operations.

Any issues, problems, concerns, suggestions?

(4) I was thinking about using ext4; seems to have good filestamping without any space ceiling for me to hit. Any other suggestions for a dev machine?

(5) I read somewhere that you need to be careful when you install software as the root user, but I can't remember why. What general caveats do I need to be aware of when doing things (installing packages, making system configurations, etc.) as root vs "Development" user?

Thanks!

© Super User or respective owner

Related posts about linux