* finding the right path
@ 2024-11-18 16:01 gfp
2024-11-19 15:04 ` Felix Lechner via
0 siblings, 1 reply; 5+ messages in thread
From: gfp @ 2024-11-18 16:01 UTC (permalink / raw)
To: help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 499 bytes --]
Hi Guix,
I installed Ghostscript in my GNU Guix SD:
"guix install ghostscript"
In Emacs init.el file:
I have got:
(require 'printing)
(setq pr-path-alist
'((unix "." "~/bin" ghostview mpage PATH)
(ghostview "$HOME/bin/gsview-dir")
(mpage "$HOME/bin/mpage-dir")
))
There are wrong paths set (from another Linux SD)
What is now the right path for those three files in Guix,
which I installed in Guix?
Thanks for help
Gottfried
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2451 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: finding the right path
2024-11-18 16:01 finding the right path gfp
@ 2024-11-19 15:04 ` Felix Lechner via
2024-11-19 17:31 ` gfp
0 siblings, 1 reply; 5+ messages in thread
From: Felix Lechner via @ 2024-11-19 15:04 UTC (permalink / raw)
To: gfp; +Cc: help-guix
Hi Gottfried,
On Mon, Nov 18 2024, gfp wrote:
> What is now the right path
In Guix, programs can be found in four places:
1. In the store. That is where packages are "installled," but the paths
are cumbersome. They involve a gibberish of characters known as
cryptographic hashes. In Guix, we use those paths only when referring
from one package to another. That's how multiple versions of the same
thing can co-exist on Guix at the same time. It's also why Guix is so
stable.
2. In your home profile (~/.guix-home/profile). Those are symbolic
links into the store. The profile itself is actually in the store
itself ("ls -al ~/.guix-home/profile" in Bash but not in Eshell) which
then links to the final location. Guix is all about managing those
links.
3. In temporary profiles, which are in ~/.cache/guix/profiles. They are
created by commands like 'guix shell'.
4. If you use "Guix System" as I do, links to the programs you installed
are aggregated in the system profile, which is located in
/run/current-system/profile.
An environment variable called GUIX_ENVIRONMENT tracks your active
profiles and, with proper configuration in your shell, should set PATH
so that all programs are found without paths.
In other words, you (or any programs that inherits PATH) should be able
to type just "gv".
With that in mind, I would first try to get rid of pr-path-alist
altogether.
> (require 'printing)
> (setq pr-path-alist
> '((unix "." "~/bin" ghostview mpage PATH)
> (ghostview "$HOME/bin/gsview-dir")
> (mpage "$HOME/bin/mpage-dir")
> ))
If that does not work, I would use the paths in the home or system
profile, depending on where you installed ghostview and, if it's in both
places, which version you would like to use.
As a side note, I personally had better luck with the ps-print package
that is described here. [1] Locally, it uses my default printer, which I
configured in CUPS (localhost:631) and probably set to default with
'lpoptions' as described here. [2]
Kind regards
Felix
[1] https://www.emacswiki.org/emacs/PrintingFromEmacs
[2] https://arkit.co.in/set-default-printer-linux-command/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: finding the right path
2024-11-19 15:04 ` Felix Lechner via
@ 2024-11-19 17:31 ` gfp
2024-11-19 19:36 ` Felix Lechner via
0 siblings, 1 reply; 5+ messages in thread
From: gfp @ 2024-11-19 17:31 UTC (permalink / raw)
To: Felix Lechner; +Cc: help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 2999 bytes --]
Hi Felix,
thanks for your help
I installed ps-print package in Emacs,
but it does not work.
It says, you do need to install ghostscript.
That's why I am dealing with ghostscript.
> If that does not work, I would use the paths in the home or system
>> profile, depending on where you installed ghostview and, if it's in both
>> places, which version you would like to use.
This is exactly my question.
I don't know where Guix System installed my ghostscript package.
How can I find out this?
What are the commands to find out where I installed a package?
thanks for help
Gottfried
Am 19.11.24 um 16:04 schrieb Felix Lechner:
> Hi Gottfried,
>
> On Mon, Nov 18 2024, gfp wrote:
>
>> What is now the right path
>
> In Guix, programs can be found in four places:
>
> 1. In the store. That is where packages are "installled," but the paths
> are cumbersome. They involve a gibberish of characters known as
> cryptographic hashes. In Guix, we use those paths only when referring
> from one package to another. That's how multiple versions of the same
> thing can co-exist on Guix at the same time. It's also why Guix is so
> stable.
>
> 2. In your home profile (~/.guix-home/profile). Those are symbolic
> links into the store. The profile itself is actually in the store
> itself ("ls -al ~/.guix-home/profile" in Bash but not in Eshell) which
> then links to the final location. Guix is all about managing those
> links.
>
> 3. In temporary profiles, which are in ~/.cache/guix/profiles. They are
> created by commands like 'guix shell'.
>
> 4. If you use "Guix System" as I do, links to the programs you installed
> are aggregated in the system profile, which is located in
> /run/current-system/profile.
>
> An environment variable called GUIX_ENVIRONMENT tracks your active
> profiles and, with proper configuration in your shell, should set PATH
> so that all programs are found without paths.
>
> In other words, you (or any programs that inherits PATH) should be able
> to type just "gv".
>
> With that in mind, I would first try to get rid of pr-path-alist
> altogether.
>
>> (require 'printing)
>> (setq pr-path-alist
>> '((unix "." "~/bin" ghostview mpage PATH)
>> (ghostview "$HOME/bin/gsview-dir")
>> (mpage "$HOME/bin/mpage-dir")
>> ))
>
> If that does not work, I would use the paths in the home or system
> profile, depending on where you installed ghostview and, if it's in both
> places, which version you would like to use.
>
> As a side note, I personally had better luck with the ps-print package
> that is described here. [1] Locally, it uses my default printer, which I
> configured in CUPS (localhost:631) and probably set to default with
> 'lpoptions' as described here. [2]
>
> Kind regards
> Felix
>
> [1] https://www.emacswiki.org/emacs/PrintingFromEmacs
> [2] https://arkit.co.in/set-default-printer-linux-command/
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2451 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: finding the right path
2024-11-19 17:31 ` gfp
@ 2024-11-19 19:36 ` Felix Lechner via
2024-11-19 21:04 ` gfp
0 siblings, 1 reply; 5+ messages in thread
From: Felix Lechner via @ 2024-11-19 19:36 UTC (permalink / raw)
To: gfp; +Cc: help-guix
Hi Gottfried,
On Tue, Nov 19 2024, gfp wrote:
> It says, you do need to install ghostscript.
Most immediately, I think you can just use 'guix install gs'. A list of
installed packages may be available via
guix package --list-installed'
The functional way, however, is to "declare" your packages in a file.
For system packages, that's the system configuration. The same idea
works for your personal packages; i's called a "home" configuration.
Here, the word "home" refers to your home folder.
> What are the commands to find out where I installed a package?
The only way I know is `which gs` and then follow the symbolic links.
Kind regards
Felix
P.S. The symbolic links make Guix special among Linux distributions. If
you understand how they work, you are a Guix expert!
P.P.S. Use "C-h R" in Emacs and use 'i' to search in the 'guix' manual.
It helps to have Vertico installed, or something comparable.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: finding the right path
2024-11-19 19:36 ` Felix Lechner via
@ 2024-11-19 21:04 ` gfp
0 siblings, 0 replies; 5+ messages in thread
From: gfp @ 2024-11-19 21:04 UTC (permalink / raw)
To: Felix Lechner; +Cc: help-guix
[-- Attachment #1.1.1: Type: text/plain, Size: 2013 bytes --]
Hi Felix,
thanks for help
I find gs installed in:
gfp@Tuxedo ~$ which gs
/home/gfp/.guix-profile/bin/gs
and in:
guix package --list-installed
ghostscript 9.56.1 out
/gnu/store/1v8zfc3k0y9r24m0cjbsxhnggkllfmbc-ghostscript-9.56.1
gv 3.7.4 out
/gnu/store/yhpm5azbp7l6llyl2w9nnh4iq1m3lj2q-gv-3.7.4
Is this the right way to write it:
(require 'printing)
(setq pr-path-alist
'((unix "." "/home/gfp/.guix-profile/bin" ghostview mpage PATH)
(ghostview "/home/gfp/.guix-profile/bin/gsview-dir")
(mpage "/home/gfp/.guix-profile/bin/mpage-dir")
))
this was the old way:
;;'((unix "." "~/bin" ghostview mpage PATH)
;; (ghostview "$HOME/bin/gsview-dir")
;; (mpage "$HOME/bin/mpage-dir")
I don´t find the file: "gsview-dir" and "mpage-dir"
thanks
Gottfried
Am 19.11.24 um 20:36 schrieb Felix Lechner:
> Hi Gottfried,
>
> On Tue, Nov 19 2024, gfp wrote:
>
>> It says, you do need to install ghostscript.
>
> Most immediately, I think you can just use 'guix install gs'. A list of
> installed packages may be available via
>
> guix package --list-installed'
>
> The functional way, however, is to "declare" your packages in a file.
> For system packages, that's the system configuration. The same idea
> works for your personal packages; i's called a "home" configuration.
>
> Here, the word "home" refers to your home folder.
>
>> What are the commands to find out where I installed a package?
>
> The only way I know is `which gs` and then follow the symbolic links.
>
> Kind regards
> Felix
>
> P.S. The symbolic links make Guix special among Linux distributions. If
> you understand how they work, you are a Guix expert!
>
> P.P.S. Use "C-h R" in Emacs and use 'i' to search in the 'guix' manual.
> It helps to have Vertico installed, or something comparable.
--
Mit freundlichen Grüßen
G. Preihs
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2451 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-11-19 21:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18 16:01 finding the right path gfp
2024-11-19 15:04 ` Felix Lechner via
2024-11-19 17:31 ` gfp
2024-11-19 19:36 ` Felix Lechner via
2024-11-19 21:04 ` gfp
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).