Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Linking

  1. #11
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Linking

    I have never changed my .config/user-dirs.dirs.

    Very first time I moved all data from my folders in /home to my data partition and then deleted old folder in /home. Tested first with one smaller folder.
    I had backup just in case.
    And then mounted data partition in /mnt/data (could be anywhere) and linked from data partition folder back into /home. Once that worked I did the rest.
    But now scripted it as I do it with every new install and know data partitions in /home are empty.

    More details.
    http://ubuntuforums.org/showthread.php?t=2315714
    Splitting home directory discussion and details:
    http://ubuntuforums.org/showthread.php?t=1811198
    http://ubuntuforums.org/showthread.php?t=1901437
    http://ubuntuforums.org/showthread.p...hlight=%2Fdata
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  2. #12
    Join Date
    Jan 2020
    Beans
    Hidden!

    Re: Linking

    Quote Originally Posted by ayudha View Post
    Doesn't work
    I did this for it to work:

    Create /home/erik/.config/user-dirs.conf
    Code:
    enabled=false
    But do i really need this file?

    Change /home/erik/.config/user-dirs.dirs to
    Code:
    XDG_DESKTOP_DIR="$HOME/Bureaublad"XDG_DOWNLOAD_DIR="$HOME/Downloads"
    XDG_DOCUMENTS_DIR="/home/erik/Overige/Documenten"
    Change /home/erik/.config/gtk-3.0/bookmarks to
    Code:
    file:///home/erik/Overige Overige
    Could somebody tell me how i make all of this inside a script to run?

    And how do i open the filesmanger in a different (default) directory? (home/erik/Overige)

    Edit: i also could not find how to remove 'Recent' and 'Starred', do any of you know how this is done?
    But those links don't address this...

  3. #13
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Linking

    I do not change /home/fred/.config/user-dirs.dirs
    Then these still show in file browser.

    Code:
    XDG_DESKTOP_DIR="$HOME/Desktop"
    XDG_DOWNLOAD_DIR="$HOME/Downloads"
    XDG_TEMPLATES_DIR="$HOME/Templates"
    XDG_PUBLICSHARE_DIR="$HOME/Public"
    XDG_DOCUMENTS_DIR="$HOME/Documents"
    XDG_MUSIC_DIR="$HOME/Music"
    XDG_PICTURES_DIR="$HOME/Pictures"
    XDG_VIDEOS_DIR="$HOME/Videos"
    Code:
    ls -l /mnt  # I have others but this is for linking.
    drwxrwxrwx 17 fred fred 4096 Oct 19  2019 data
    
    Then in /home I have the links to the folders that are in the /mnt/data above.

    Example but many (l means it is a link):

    Code:
    lrwxrwxrwx 1 fred fred    19 Oct 14 19:37  Documents -> /mnt/data/Documents
    lrwxrwxrwx 1 fred fred    19 Oct 14 19:37  Downloads -> /mnt/data/Downloads
    
    If you follow the procedure I posted, then it works.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #14
    Join Date
    Jan 2020
    Beans
    Hidden!

    Re: Linking

    Could you explain the meaning of drwxrwxrwx 17 fred fred 4096 Oct 19 2019 data

  5. #15
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Linking

    In my /mnt folder I create /mnt/data.
    Then I add a mount of my data partition in fstab.
    Details in links I posted above.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #16
    Join Date
    Jan 2020
    Beans
    Hidden!

    Re: Linking

    I seriously can seem to make this work like i want it.

    Remove from filesmanager on ubuntu (popos):
    Recent, Starred, Desktop, Afbeeldingen, Documenten, Muziek, Videos (all are in Home, except for Recent and Starred)

    Then add: (these should be permanent, even on a restart, no manual mounting)Overige (dev/sda3)
    Computer (/) but needs to be renamed to Linux

    Also, screenshots are automaticly saved in Afbeeldingen when i remove it screenshots are no longer working. These should be saved in Downloads instead.


    This way i only have:
    - Home
    - Linux
    - Downloads
    - Overige

  7. #17
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Linking

    Not sure what you are trying to do.
    When in file browser and default location of home you will see all the default folders plus any you add. You also can add bookmarks to other folders.
    Different flavors of Ubuntu use different file browsers, so slightly different ways to configure them.
    Removing folders would require you to edit ~/.config/user-dirs.dirs, but never seen that done & it may break some apps that expect default locations to save to.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 2 of 2 FirstFirst 12

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
  •