Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Lower case dirs in home

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
BradGad
Posts: 2
Joined: 2018-11-01 11:50

Lower case dirs in home

#1 Post by BradGad »

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:

http://forums.debian.net/viewtopic.php? ... ry#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

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 13 times
Been thanked: 66 times

Re: Lower case dirs in home

#2 Post by dilberts_left_nut »

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
yeti
Posts: 68
Joined: 2009-03-30 14:22

Re: Lower case dirs in home

#3 Post by yeti »

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" — DJ Trump.
"Vrijdag voor VT100!" — Yeti.
"There is no PLANET-B!" — ???

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

Re: Lower case dirs in home

#4 Post by BradGad »

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.

tynman
Posts: 132
Joined: 2016-05-03 19:48
Location: British Columbia, Canada
Been thanked: 2 times

Re: Lower case dirs in home

#5 Post by tynman »

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.)

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Lower case dirs in home

#6 Post by debiman »

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

http://forums.debian.net/viewtopic.php? ... ry#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
yeti
Posts: 68
Joined: 2009-03-30 14:22

Re: Lower case dirs in home

#7 Post by yeti »

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" — DJ Trump.
"Vrijdag voor VT100!" — Yeti.
"There is no PLANET-B!" — ???

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Lower case dirs in home

#8 Post by debiman »

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
yeti
Posts: 68
Joined: 2009-03-30 14:22

Re: Lower case dirs in home

#9 Post by yeti »

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" — DJ Trump.
"Vrijdag voor VT100!" — Yeti.
"There is no PLANET-B!" — ???

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Lower case dirs in home

#10 Post by debiman »

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).

Post Reply