Results 1 to 6 of 6

Thread: Customize Default Directories?

  1. #1
    Join Date
    Sep 2017
    Beans
    19

    Question Customize Default Directories?

    For the set of directories that come with a base install of Ubuntu 22.04 (the default directories)..

    Is it possible to customize them in any of the following ways such that the result is permanent and persistent, appears all places a default directory or name does, and behaves in all ways a default directory behaves, and in all features that access or incorporate them?

    - Remove a default directory (and from everywhere and way it appears - think of the word "omission" here - as if it had never existed at all)
    - Add a default directory (as in - a directory that performs in every way identical as if it had come with the base install - exactly as if it were a default directory)
    - Re-order a default directory (eg: make it a sibling of another directory such that the parent or containing directory takes the exact attributes of a default directory as well as its sibling retaining its attributes that a default directory would have.
    - Rename a default directory (such that it is deeply renamed down to its core as well as the new name being recognized and displayed in every feature and function that a default directory is integrated into the system (eg: not just renamed on the sidebar of nautilus but show up under the old name on the tab name of nautilus but to in every way be the new name - eg: use the new name in searches and whatever other ways default dirs are incorporated into the system.

    Use Case:

    CRUD (create, read, update, delete) directories on an equal level of system incorporation as default directories. Include both user created as well as default directories in the objective.

    User Story:

    I want to make my directory system my own. There are some directories I wish to COMPLETELY remove, there are some I wish to change the name, and there are some I wish to organize differently. I was to do this at a deep system level (not the same as just crudding new directories but actually changing the existing base system).


    Last edited by blahboybaz; October 26th, 2023 at 06:08 AM.

  2. #2
    Join Date
    Jun 2014
    Beans
    7,523

    Re: Customize Default Directories?

    I don't know if I understand exactly what it is you want to do but it seems as if you want to create an entirely new operating system, particularly if you want to rename system directories/files.

  3. #3
    Join Date
    May 2008
    Beans
    4,144
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: Customize Default Directories?

    Quote Originally Posted by yancek View Post
    I don't know if I understand exactly what it is you want to do but it seems as if you want to create an entirely new operating system, particularly if you want to rename system directories/files.
    I'm also struggling to understand the objective.

    @blahboybaz
    Is this any help? https://www.linuxfromscratch.org/

  4. #4
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,849
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Customize Default Directories?

    Is this about your ~/Documents, ~/Downloads etc. directories? In that case, modify your ~/.config/user-dirs.dirs.

  5. #5
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Customize Default Directories?

    Idle thoughts are ..
    use Cubic to customise your OS to your style
    use Ansible and other scripting/automation
    use rEFInd to create a custom boot script
    use aliases/links to/from real <-> virtual directories (not deleting default names as you suggest but just another addressing layer)

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Customize Default Directories?

    You can do anything you like, if you have the time and skill. Say you want all OS files to be under /OS/, no exceptions. This is a non-trivial task, but I don't see why someone with sufficient desire couldn't do it. You'll be rebuilding most of the OS and every other file, so if you think there's 1 setting somewhere that will magically control the top level directory and let all packages "just work", you are wrong.

    Now if you just want to change where your HOME directory is located, that's 1 change in 1 place, then moving the HOME to the new location. There are some programs that will break if you do this. For example, all snap packages will cease to work. That could be a "feature" to some.

    It won't be easy with any distro to accomplish this. You can try using LFS https://linuxfromscratch.org/lfs/

    CRUD (create, read, update, delete) directories on an equal level of system incorporation as default directories. Include both user created as well as default directories in the objective.
    Huh? You need to define what equal level means. You need to define what a "system incorporation" is and what you consider "default directories". I suspect that quoted line is being translated because a native English speaker wouldn't have a sentence constructed that way.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •