unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Leo Famulari <leo@famulari.name>
To: julia.galaman@tutanota.com
Cc: help-guix@gnu.org
Subject: Re: Locale and TOR Configuration Issues
Date: Tue, 2 Jun 2020 13:37:34 -0400	[thread overview]
Message-ID: <20200602173734.GA19317@jasmine.lan> (raw)
In-Reply-To: <M8pCwYI--3-2@tutanota.com>

On Tue, Jun 02, 2020 at 03:28:10PM +0200, julia.galaman--- via wrote:
> Hello everyone,
> 
> I have two issues. One is silly and the other is a bit less silly (I think). Please be patient with me, as I'm new and pretty terrified.

Welcome!

> 1) It's about the locale settings. So I am supposed to export the path to my locale as in the command given in the manual and hints, but when I try to give the path to any of the actual locales instead of just the locale directory or version, the console freezes and stays like that without any error message. Could you please tell me how this path should actually look?

If you are using Guix System, the locales should work automagically,
assuming you've filled out the locales field of config.scm and
reconfigured and rebooted since then:

https://guix.gnu.org/manual/en/html_node/Locales.html

If you are using Guix on another distro, then the environment variable
GUIX_LOCPATH should be set to the path of the locales, which for me is
'/home/leo/.guix-profile/lib/locale'. Actually choosing which locale to
use is controlled by the distro in this case, not Guix.

Does that help?

> 2) As you know, both /gnu/store and /home/user/.guix-profile are mounted in read-only mode by default. I read that it is for safety. But the problem is that because by design all programs get installed in the 'local copies' of their normal directories (e.g. instead of /etc it's /home/user/.guix-profile/etc), all their config files automatically become read-only, even for superuser. In my case it was the torrc file, which has to be edited or else it won't work. I tried to force it and remount /gnu/store in read-write mode, then insert my edited torrc file, but after reboot all the changes disappeared. 
> 
> So logically speaking there has to be a way around it, like a piece of software that acts as a middleman for all the changes you want to make in /gnu/store, making it harder to screw up the system. There was a scrap of info in the manual about using guix-daemon to do this, but it was merely mentioned. It's really hard for me to understand the manual without broader context, so I might have misunderstood or omitted something. I would be really glad if someone found the time to explain to me why it works like that and how things get done here.

Basically, the files should be copied out of
'/home/user/.guix-profile/etc' to '/etc', and then you will modify them
there.

Programs should either look in /etc by default, or it should be possible
to configure them to look in /etc. Otherwise, it's a bug in the Guix
packaging that we will have to fix.

If you find yourself wanting to edit files in /gnu/store, please ask for
advice because it can break your Guix installation. We actually make it
impossible when we can, like on Guix System.

Let us know how it goes!


      reply	other threads:[~2020-06-02 17:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-02 13:28 Locale and TOR Configuration Issues julia.galaman--- via
2020-06-02 17:37 ` Leo Famulari [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200602173734.GA19317@jasmine.lan \
    --to=leo@famulari.name \
    --cc=help-guix@gnu.org \
    --cc=julia.galaman@tutanota.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).