Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
Is it possible to copy a Nix user profile or a configuration to another users or hosts ?
I mean, let's say I installed some package using nix-env -i. How can I copy this environment and use it somewhere else ?
Same question for NixOs configuration. I can create a new configuration by modifying /etc/nixos/configurtion.nix. But what If I added some package using nix-env -i. Can I generate a configuration (or equivalent) corresponding to this new environment ?
In general you should use configuration.nix to have declarative configuration that you can carry around.
To get all installed packages for particular profile run nix-env -q.
There is also nix-copy-closure --help that you could use to copy ~/.nix-profile profile.
For nix-env, you can use a file to keep the name of all the packages, something like described here: https://nixos.org/wiki/FAQ#How_can_I_manage_software_with_nix-env_like_with_configuration.nix.3F
To have the same exact output, then you also want to do a checkout at a specific commit of nixpkgs.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I installed Doas as a replacement for sudo on my Gentoo machine. I followed the documentation here and my /etc/doas.conf looks like this:
permit persist :wheel
I have also restarted the system. However, it still asks me for the password every time I use doas. What am I doing wrong?
You have to enable persist while you are compiling. Set persist use flag and it will work. If you have (persist) while you are compiling, you have to unmask the app-admin/doas first.
Make below changes in the doas configuration.
permit nopass ::wheel
or
allow user and dont require a password to execute commands as root
permit nopass keepenv :username2
Reference URL
https://forums.freebsd.org/threads/doas-tips-sudo-alternative.69409/
This works for me:
permit persist username as root
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
We're migrating an application from a very old Solaris box over to a relatively newer Linux machine. I'm having trouble finding an equivalent for a command line option that was used on our old server when running tar on the newer one. I'm assuming that it is obsolete now, as I don't see anything via man or searching online to indicate why it was done away with... but if anyone has any information, it would be very much appreciated.
The version of tar on the old server was 1.12, and the version on the new server is 1.23.
The command we ran was:
tar cEf path-to-tar path-to-tar-up
Does anyone know whether this switch is even necessary anymore? Unfortunately the code using this switch predates my work on the project, so I am unaware of why this particular switch is being used currently.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
What command do I run in order to update firefox using rpm?
I have been asked this question and am not aware how to do it. Any help will be appreciated.
You perhaps could do this using your distro's software updater, but suppose you've got FF's installer (rpm) file and also suppose that it's called firefox.rpm. You should then do:
rpm -Uvh firefox.rpm
If you don't have any previous FF version installed on your computer you might as well do:
rpm -ivh firefox.rpm
Alternatively, if you have yum configured on rpm based systems (RHEL or Fedora) you could simple run the below command, this would download and update the dependencies, instead of just updating only a single firefox rpm.
`yum update firefox`
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I installed a new version of Apache server, I used options like --with-PACKAGE to configure Apache to use a custom path for a package, but Apache is already installed. How can I change the path of a package?
The standard way of doing this with ./configure is like so:
./configure ... --with-PACKAGE=<folder>
For example:
./configure --with-ssl=/usr/local
If your package has just moved to another location (i.e. it's no longer in its old location), just restarting Apache will do that. If it doesn't, inspect the output of ldd:
ldd /path/to/httpd
Sometimes /usr/local/lib is not enabled by default for the linker; you can add this to /etc/ld.so.conf or /etc/ld.so.conf.d/ - depending on your preference. Afterwards you have to run lconfig to commit the changes.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have installed tesseract-ocr with apt-get
and now
i want to get svn code, make some changes in it and compile it on my own and install again.
I want first instance remain, and give a different name to newly installing instance. But installation, make procedures and linux logic requires put .h files into general folders like "/usr/include" without specific folders.
So what is the easiest path to install another instance of the same program. Thanks
You need to install it with a different prefix. When the program publisher had the foresight to use an autoconf-like configure script, you can simply use the --prefix option:
$ ./configure --prefix=`pwd`/install
to install the library in the install subdirectory. For CMake and other "improved" build systems, read their documentation, many do provide some switch for that.