Lower case dirs in home

New to Debian (Or Linux in general)? Ask your questions here!

Lower case dirs in home

Postby BradGad » 2018-11-04 23:35

Hi folks,

I just set up Debian stable on a VPS and on a Thinkpad I had around... very exciting times for me! I've wanted my own UNIX/Linux server since forever. I actually used to teach this stuff but that was forever ago and my skills have very much atrophied. Big fun (re)learning curve ahead.

Anyhoo... those silly capital file names for directories in home...

I did do a search here and found this, which looks to be how to reconfig so the names will be lowercase for new users:

viewtopic.php?f=3&t=135079&p=657006&hilit=capital+directories+home+directory#p657006

But I wanted to ask a slightly different question: is there anything else in Debian that is expecting to find those directories with capital names? Will it break anything if I just mv them (and delete the capital versions when the mv for some reason creates a second directory and leaves the first)?

Thanks
BradGad
 
Posts: 2
Joined: 2018-11-01 11:50

Re: Lower case dirs in home

Postby dilberts_left_nut » 2018-11-05 05:41

Pretty sure anything looking for them should reference your XDG settings (it’s used for localisation as well) so just set them as you want.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4902
Joined: 2009-10-05 07:54
Location: enzed

Re: Lower case dirs in home

Postby yeti » 2018-11-05 13:13

SHOULD... :)
I've seen software hard coding these directory names (in English).
hit Shappens!
Just "apt-get purge $SuchStuff" and/or beat them with bug reports until it gets corrected.
I have a natural instinct for science. — D.J. Trump
"Don't we all wait for SOMETHING-ELSE-1.0?" — yeti
"Stay OmmmMMMmmmPtimistic!" — yeti
User avatar
yeti
 
Posts: 61
Joined: 2009-03-30 14:22
Location: Wrong Planet.

Re: Lower case dirs in home

Postby BradGad » 2018-11-05 22:36

OK, thanks.

I edited /etc/xdg/user-dirs.* like I want... I'll just rename the capital dirs in home and take it from there.
BradGad
 
Posts: 2
Joined: 2018-11-01 11:50

Re: Lower case dirs in home

Postby tynman » 2018-11-06 01:13

Something to note also... during the Debian install, it sets up an initial non-root User Id, and for that Id it creates a directory under /home. But it does not create any subdirectories in the user's home directory.

(And I agree with Yeti - any software that "expects" some directory to exist should be prepared to create it if it doesn't exist.)
tynman
 
Posts: 80
Joined: 2016-05-03 19:48
Location: British Columbia, Canada

Re: Lower case dirs in home

Postby debiman » 2018-11-07 06:47

BradGad wrote:re and found this, which looks to be how to reconfig so the names will be lowercase for new users:

viewtopic.php?f=3&t=135079&p=657006&hilit=capital+directories+home+directory#p657006

this does not look like a complete set of instructions to me.

BradGad wrote:I edited /etc/xdg/user-dirs.* like I want...
i think this file is owned by the package, so it will get overwritten on updates.
the usual way is to edit
$HOME/.config/user-dirs.defaults
$HOME/.config/user-dirs.dirs
User avatar
debiman
 
Posts: 3015
Joined: 2013-03-12 07:18

Re: Lower case dirs in home

Postby yeti » 2018-11-07 08:16

debiman wrote:
BradGad wrote:I edited /etc/xdg/user-dirs.* like I want...
i think this file is owned by the package, so it will get overwritten on updates.
I heavily doubt this.
And no package should own stuff in users' home dirs.
Code: Select all
$ grep ^/home /var/lib/dpkg/info/*list
/var/lib/dpkg/info/base-files.list:/home

That really is all packages need to know about "/home".
I have a natural instinct for science. — D.J. Trump
"Don't we all wait for SOMETHING-ELSE-1.0?" — yeti
"Stay OmmmMMMmmmPtimistic!" — yeti
User avatar
yeti
 
Posts: 61
Joined: 2009-03-30 14:22
Location: Wrong Planet.

Re: Lower case dirs in home

Postby debiman » 2018-11-08 07:21

yeti wrote:
debiman wrote:
BradGad wrote:I edited /etc/xdg/user-dirs.* like I want...
i think this file is owned by the package, so it will get overwritten on updates.
I heavily doubt this.

i know it sucks, but there it is:
Code: Select all
$ apt-file search /etc/xdg/user-dirs.defaults
xdg-user-dirs: /etc/xdg/user-dirs.defaults
$ apt-file search /etc/xdg/user-dirs.conf
xdg-user-dirs: /etc/xdg/user-dirs.conf


And no package should own stuff in users' home dirs.

no, surely not.
or are you somehow implying that /etc is part of a user's home?
User avatar
debiman
 
Posts: 3015
Joined: 2013-03-12 07:18

Re: Lower case dirs in home

Postby yeti » 2018-11-08 07:30

The config in /etc won't be overwritten, if you don't request overwriting while updating.
(The rest was some misunderstanding on a migraine weather day here...)
I have a natural instinct for science. — D.J. Trump
"Don't we all wait for SOMETHING-ELSE-1.0?" — yeti
"Stay OmmmMMMmmmPtimistic!" — yeti
User avatar
yeti
 
Posts: 61
Joined: 2009-03-30 14:22
Location: Wrong Planet.

Re: Lower case dirs in home

Postby debiman » 2018-11-08 09:12

yeti wrote:The config in /etc won't be overwritten, if you don't request overwriting while updating.

that's possible. tbh, i never tried that (rule: don't sudo edit files if you can achieve the same without sudo).
User avatar
debiman
 
Posts: 3015
Joined: 2013-03-12 07:18


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable