Moderators, translator
455
edits
m (→Support: change link to archived forum) |
(→Configure the system to use new default storage directories: Using the file content template) |
||
Line 74: | Line 74: | ||
Firstly, I had to check both the ~/.bash_profile & the /etc/profile files & modify the '''PATH''' variables where I had added paths that were now incorrect. Most users here won't have changed anything in these two files, though it is just too easy to do, to not check them for safeties sake. When looking at these files, check the PATH line for anything that relates to your moved storage directories. You probably won't have any differences unless you added them. These lines in my files follow, you will see where I have replaced the original paths with /mnt/bdata : | Firstly, I had to check both the ~/.bash_profile & the /etc/profile files & modify the '''PATH''' variables where I had added paths that were now incorrect. Most users here won't have changed anything in these two files, though it is just too easy to do, to not check them for safeties sake. When looking at these files, check the PATH line for anything that relates to your moved storage directories. You probably won't have any differences unless you added them. These lines in my files follow, you will see where I have replaced the original paths with /mnt/bdata : | ||
{{File| | |||
file=~/.bash_profile| | |||
content= | |||
<pre>PATH=$PATH:/mnt/bdata/scripts | |||
export PATH | |||
PATH=$PATH:~/games/ut2004 | |||
export PATH | |||
PATH=$PATH:~/games/ut2004/System | |||
export PATH</pre> | |||
}} | |||
{{File| | |||
file=/etc/profile| | |||
content= | |||
<pre> | |||
# Set our default path | |||
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/mnt/bdata/scripts:" | |||
export PATH | |||
</pre> | |||
}} | |||
Then I needed to change the paths for what are considered to be the standard default /home/<user>/ storage directories - Downloads, Video, Music & so on. I had previously changed these paths, also, I don't want to use capital letters in the beginning of their names. | Then I needed to change the paths for what are considered to be the standard default /home/<user>/ storage directories - Downloads, Video, Music & so on. I had previously changed these paths, also, I don't want to use capital letters in the beginning of their names. | ||
Line 108: | Line 109: | ||
As its settings, under these circumstances (not having a ~/.config/user-dirs.conf ) will be global. Mine edited file follows: | As its settings, under these circumstances (not having a ~/.config/user-dirs.conf ) will be global. Mine edited file follows: | ||
{{File| | |||
file=~/.config/user-dirs.conf| | |||
content= | |||
<pre> | |||
# Default settings for user directories customised by handy :-> | |||
# | |||
# The values are relative pathnames from the home directory and | |||
# will be translated on a per-path-element basis into the users locale | |||
DESKTOP=desktop | |||
DOWNLOAD=/mnt/bdata/downloads | |||
DOCUMENTS=/mnt/bdata/documents | |||
MUSIC=/mnt/bdata/music | |||
PICTURES=/mnt/bdata/pictures | |||
VIDEOS=/mnt/bdata/videos | |||
</pre> | |||
}} | |||
Once you have done this, check that you don't have new (likely empty) default directories in your ~/ that were created by the above file(s) on boot. Any such void files should be deleted after you have modified either the ''user'' based '''~/.config/user-dirs.conf''' or the ''root'' based '''/etc/xdg/user-dirs.defaults''' files. | Once you have done this, check that you don't have new (likely empty) default directories in your ~/ that were created by the above file(s) on boot. Any such void files should be deleted after you have modified either the ''user'' based '''~/.config/user-dirs.conf''' or the ''root'' based '''/etc/xdg/user-dirs.defaults''' files. |