LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2021, 10:12 AM   #1
jan128
Member
 
Registered: Nov 2020
Posts: 201

Rep: Reputation: Disabled
Where to install a project?


From technical point , not concerning "security" , what are cons and pros of selecting (C ++ ) project folder?

1. /home / user / PROJECTS / projectX...
2. /media / user / PROJECTS / projectX ...
 
Old 01-27-2021, 10:16 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by jan128 View Post
From technical point , not concerning "security" , what are cons and pros of selecting (C ++ ) project folder?

1. /home / user / PROJECTS / projectX...
2. /media / user / PROJECTS / projectX ...
There is a reason why you have your own "home" directory, it's because that's your place on the filesystem that YOU have full read/write permissions to. The /media directory is for mounting removable media, not storing personal projects.

I think you need to do your own research before asking your questions.
 
Old 01-27-2021, 10:27 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,757

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by jan128 View Post
From technical point , not concerning "security" , what are cons and pros of selecting (C ++ ) project folder?

1. /home / user / PROJECTS / projectX...
2. /media / user / PROJECTS / projectX ...
And to add on to what jsbjsb001 said, you're asking a question that doesn't really have a good answer. The project itself, and the users, should determine where it goes.

If you have a program that you only want root/sudo users to use, /sbin or /usr/sbin may be the best location. General users system-wide? /usr/bin (or /usr/local/bin/, which is MY preference). If this is a project you're sharing and is related to removable devices...maybe /media is an ok place for it, but not one I'd use.

At the end of the day, this is YOUR system...you put things where you think they're best.
 
Old 01-27-2021, 10:37 AM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by TB0ne View Post
If you have a program that you only want root/sudo users to use, /sbin or /usr/sbin may be the best location.
Or, for those users with privileges, and assuming that /usr/local/is already a separate filesystem: /usr/local/sbin. The project can then survive distribution changes, re-installs, etc.
 
1 members found this post helpful.
Old 01-27-2021, 02:17 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Code:
man hier
man file-hierarchy
 
3 members found this post helpful.
Old 01-27-2021, 05:24 PM   #6
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by jan128 View Post
From technical point , not concerning "security" , what are cons and pros of selecting (C ++ ) project folder?

1. /home / user / PROJECTS / projectX...
2. /media / user / PROJECTS / projectX ...
You might want to look at the official guide for file system structure on linux.

With that said, the source directory where you are creating a project needs to be where you (and any other developers) can access it and create/modify files. Other users not involved in the development normally should not have access.

Once the project is complete and the binary has been compiled and is ready to use then it gets installed where the users can access and execute it.

How you meet those two goals is up to you.
 
2 members found this post helpful.
Old 01-31-2021, 03:22 AM   #7
JSB
Member
 
Registered: Dec 2020
Posts: 102

Rep: Reputation: 22
Quote:
Originally Posted by jan128 View Post
From technical point , not concerning "security" , what are cons and pros of selecting (C ++ ) project folder?

1. /home / user / PROJECTS / projectX...
2. /media / user / PROJECTS / projectX ...
Please try
echo $HOME
You see folder name. It is a good place for all your project, because all permission are for you!
 
Old 01-31-2021, 04:28 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,757

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by JSB View Post
Please try
echo $HOME
You see folder name. It is a good place for all your project, because all permission are for you!
And this doesn't address the OP's original question; read the thread and replies already given. computersavvy has given the 'best practices' answer to this already.
 
1 members found this post helpful.
Old 02-01-2021, 09:42 AM   #9
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Perhaps my expectations are too high.
( See I can blame myself so you experts are happier).
1. Even when I say "excluding security" I get suggestion about "accessibility by other (developers) ".
2. Reason I asked because I like to SEPARATE OS from my stuff - preferably in hardware - hence
"media".

Since the prevailing groups opinions are - it is up to me to choose , IMHO no reasonable reply was given.

In closing - thanks for participating - I shall refrain from bothering everybody by asking questions "I should have researched before asking here" .

I shall go back to Mrs Google - she is little more patient and understanding.
She actually reads and answers questions.

Cheers
 
Old 02-01-2021, 10:01 AM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Now, if there are others you want to share your work with then indeed you need to create a shared location and preferably create a new system group for users to have full access rights to it. You know best what location that might be, local or remote.
 
Old 02-01-2021, 10:05 AM   #11
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by jan128 View Post
Perhaps my expectations are too high.
( See I can blame myself so you experts are happier).
1. Even when I say "excluding security" I get suggestion about "accessibility by other (developers) ".
2. Reason I asked because I like to SEPARATE OS from my stuff - preferably in hardware - hence
"media".

Since the prevailing groups opinions are - it is up to me to choose , IMHO no reasonable reply was given.
No one can give you a definitive answer.
1. We don't know if you are working on a home machine or work machine.

2. We don't know what your preferences are.

3. Your post does not give us anything except a very general field to base the answers on.
Code:
From technical point , not concerning "security" , what are cons and pros of selecting (C ++ ) project folder?

1. /home / user / PROJECTS / projectX...
2. /media / user / PROJECTS / projectX ...
4. Without more response from you defining your concerns and making this a 2-way conversation all of us are left just stabbing in the dark and we cannot provide anything more than factors for you to use in making your own decision.

5. Placing stuff under your $HOME directory does separate it from the OS. Placing it on a removable media does separate it from the OS. Your choice. (although if you read the responses, every one also did the same thing)

Good luck with google and your "ask a general question and get a specific answer" expectations. Google often gives millions of possible answers that you have to sort through for relevance.

Last edited by computersavvy; 02-01-2021 at 10:12 AM.
 
2 members found this post helpful.
Old 02-01-2021, 10:23 AM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,757

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by jan128 View Post
Perhaps my expectations are too high.
( See I can blame myself so you experts are happier).
1. Even when I say "excluding security" I get suggestion about "accessibility by other (developers) ".
2. Reason I asked because I like to SEPARATE OS from my stuff - preferably in hardware - hence
"media".

Since the prevailing groups opinions are - it is up to me to choose , IMHO no reasonable reply was given.

In closing - thanks for participating - I shall refrain from bothering everybody by asking questions "I should have researched before asking here" .

I shall go back to Mrs Google - she is little more patient and understanding. She actually reads and answers questions.
If you just want to whine, good luck getting answers anywhere.

And the reason you got what you got, is because there IS no way to answer your question. You were not only given suggestions (with explanations), but also directed to the best-practices guide for Linux file system structures. What more, exactly, would you like? This is YOUR SYSTEM...you do what YOU WANT on it, period. You give us no details about the app (which has bearing on the best place to install it), etc. And saying 'hence, media" means nothing to us...because WE DO NOT KNOW how your system is laid out, do we? We don't know if /media is its own 45TB SAN mount, or a folder on a thumbdrive, do we? You sure didn't tell us.

Again: /usr/local/bin (or /usr/local/sbin) are typically used...if you want more than one person to use it, those are good locations which typically don't get overwritten by updates, and is a convenient location to store programs for easy backup. We AGAIN don't know your path, so if you have your development directory in your path, then use it if you want.
 
1 members found this post helpful.
Old 02-02-2021, 12:42 AM   #13
JSB
Member
 
Registered: Dec 2020
Posts: 102

Rep: Reputation: 22
Quote:
Originally Posted by TB0ne View Post
And this doesn't address the OP's original question; read the thread and replies already given. computersavvy has given the 'best practices' answer to this already.
But is true! you can use every folder in user $HOME, it is all the same good! Permission is the most important.
 
Old 02-02-2021, 07:51 AM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,757

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by JSB View Post
But is true! you can use every folder in user $HOME, it is all the same good! Permission is the most important.
Yes, you can since it belongs to you...and what about anyone else who needs that program/project??

You aren't understanding the question or the solutions offered.
 
1 members found this post helpful.
Old 02-02-2021, 08:45 AM   #15
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by computersavvy View Post
Placing it on a removable media does separate it from the OS. Your choice.
Not sure the OP will see this now that they've left to search Google for an answer: Placing a "project" on removable media and mounting it on "/media" may introduce additional handcuffs that may eventually become a problem. Unless you wipe it and build a Linux-native filesystem on it, most removable media is formatted as VFAT which prevents some normal filesystem features from being used---symlinks being one of more obvious ones.

OP: Don't go away mad. I cannot imagine that another forum that you find on Google will find the question, as you initially presented it here, to be any easier to answer. Including more information when posting a question is better than leaving things out in favor of brevity. And there may be a lot of ways to skin the cat so, in many cases, opinions/personal preferences are going to be the majority or the replies you receive.
 
1 members found this post helpful.
  


Reply

Tags
linux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to store all files related to a c++ project and build in linux. Like project dir sharanlinux Programming 1 04-29-2010 06:52 AM
LXer: The Alexandria Project, Chap. 15: The Alexandria Project Makes the Evening News LXer Syndicated Linux News 0 04-26-2010 10:20 AM
LXer: Print.Print Add to Project.Add to Project Bookmark with del.icio.us Simplify PHP Development with WASP LXer Syndicated Linux News 0 01-21-2006 08:46 PM
Beginning a big project - Need an Good Project Manager gamehack Programming 3 01-15-2004 11:49 AM
Cannot see Open GL project in KDevelop project wizard SparceMatrix Programming 2 08-07-2002 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration