Questions tagged [environment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
144 views

Why is /etc/environment not executable in Ubuntu 22.04?

I came across this issue as I wanted to extend the PATH variable for all users by adding another directory at the end of PATH in /etc/environment. Neither opening a new shell nor a fresh login did ...
user avatar
1 vote
1 answer
111 views

Is the same '#!/usr/bin/env bash' than #!/bin/bash [duplicate]

Simple question, is the same ? Vim autocomplete me when write bash + tab => #!/usr/bin/env bash but I usually watch #!/bin/bash in every script. So..
user avatar
0 votes
0 answers
87 views

VNC viewer or other remote desktop viewer in Ubuntu server without desktop environment

Is it possible to use a program like vnc viewer to view desktops on my network from within the Ubuntu Server operating system without installing the desktop environment?
user avatar
0 votes
1 answer
199 views

How to enable desktop icons in Ubuntu 20.04

After following these commands, my desktop icons are disabled. How can I enable them again? actually, I'm a new Ubuntu user please help me.
user avatar
0 votes
1 answer
348 views

Update info - how to currently set Java_home?

I'am trying to get Maven running. I have installed JDK and Maven. Thus I have been trying to set the Java_home variable for three days now, I cannot get it working. I have followed the instructions of ...
user avatar
0 votes
2 answers
34 views

How to get variable environment from parent user?

I need to know how it's possible to get environment variable from a parent user after su? For example if I'm evan user and I have variable $DISPLAY=:10.0, then I use "su -" to go to root ...
user avatar
0 votes
2 answers
686 views

How to automatically load and unload .env file with variables

Is it possible to load an .env file when accessing the directory they are in and unload these variables when changing to another directory?
user avatar
0 votes
1 answer
1k views

Why new envonments of anaconda are empty

I am using conda version 4.9.2 in ubuntu 18.04. I firstly create a new environment and then try to install a package but surprisingly this package already exists but there but when I try o import it ...
user avatar
  • 113
1 vote
0 answers
274 views

frozen solving environment step in installing a package in ubuntu

I am trying to install moose framework in my ubuntu (20.4). It has three main steps: exporting path of miniconda using: export PATH=$HOME/miniconda3/bin:$PATH Configuring Conda to work with conda-...
user avatar
  • 113
3 votes
0 answers
353 views

OpenMPI - Update alternatives

I have troubles with openmpi crashing. The installed/repository version is "mpirun (Open MPI) 3.1.3". Consequently I have locally built a "mpirun (Open MPI) 4.1.0" which does not ...
user avatar
  • 31
0 votes
1 answer
351 views

Making changes to Conda environment permanent instead of falling back to the default

I can set my environment to make it house_rank, and it shows on my terminal: house_rank sgilmour14-Ubuntu But after a reboot, it goes back to my standard terminal, and removes house_rank. Is there a ...
user avatar
  • 1
0 votes
0 answers
43 views

Can't login to Ubuntu 18.04

Suddenly i edit the /etc/environmemt variable. after that when i restart my ubuntu then i can't login. when i enter my pasaword and hit enter then it back me to login page. then i press Ctrl + Alt + ...
user avatar
0 votes
0 answers
396 views

Change temp file location of QGIS in Ubuntu

on a windows machine u can easily change the location where QGIS stores its temp files (see here: https://gis.stackexchange.com/questions/156129/how-can-i-change-the-folder-location-for-qgis-temporary-...
user avatar
1 vote
1 answer
613 views

Does X Window and GNOME are the same for Desktop Environtment?

I just wanna know, if GNOME and X windows are the same software for Desktop Environment? Because i saw at this article The article shows that X windows system is an open source, cross platform, client-...
user avatar
  • 413
1 vote
1 answer
1k views

Environment Modules can't find installed modules

I'm trying to install and load several Perl modules in Google Colab (a Ubuntu environment). I'm installing them with CPAN, then loading them with Environment Modules. I absolutely need to use ...
user avatar
  • 113
1 vote
1 answer
692 views

Can't Activate Environment // Ubuntu // Conda

I downloaded Anaconda 3 on Ubuntu VM. The conda command wasn't working so I used this command: source ~/.bashrc but it didn't work. Then I tried this command: export PATH=~/anaconda3/bin:$PATH This ...
user avatar
1 vote
2 answers
1k views

Is it possible to let date return its result in ISO 8601 format by default

I want to change the behavior of the command date (possibly by setting some proper environment variable) such that it returns its output as if it was invoked as date --iso-8601=seconds Is that ...
user avatar
1 vote
0 answers
512 views

(environment-modules) Setting up modulefile for Intel compilers

I am trying to install openmpi (not from apt) into my system. I want to use intel compilers (fortran, c and c++) for the compilation. When ./configure my openmpi folder, without module load intel, ...
user avatar
  • 13
-1 votes
1 answer
3k views

Changing conda environment for python commands

I wrote a Python script which uses a package named paraview. I installed this package to my environment. I want that whenever the code is run, the environment must be changed and then the code is run. ...
user avatar
  • 11
0 votes
1 answer
605 views

Setting up custom modulefiles in environment-modules on ubuntu 18.04 LTS

Using environment-modules, I am trying to set up custom environment modules for installation of a software by using intel compiler and openmpi. I am not familiar with the method of creating a custom ...
user avatar
  • 13
2 votes
1 answer
891 views

The problem of apt fix-broken install in Ubuntu

When I need to use apt-get to install somethings. $sudo apt-get install autoconf automake libtool curl make g++ unzip Reading package lists... Done Building dependency tree Reading state ...
user avatar
1 vote
0 answers
74 views

Error: Environment variable CTL_INIT_DIR or -d option must be specified

The same code is giving the output when I execute manually, but with cronjob the there is error to set the environment variable /comptel/ilink/common/6.2/comptel_utilities/bin/ctl_control status > ...
user avatar
3 votes
4 answers
4k views

Unable to run anaconda-navigator out of conda envirnment (base)

I am running a new installed Ubuntu 19.04 Disco Dingo on a dual boot with windows 10. I installed Anaconda for Ubuntu using this guide https://docs.anaconda.com/anaconda/install/linux/ Finishing the ...
user avatar
0 votes
2 answers
1k views

Conda package installs in wrong environment

I am trying to install torch using conda however, it installs it into another conda environment not the one I am interested in. How can I fix this? [jalal@goku NAACL2018]$ conda install pytorch ...
user avatar
  • 3,691
4 votes
2 answers
2k views

Why $PATH is not reflecting what is in the environment file, Ubuntu 18.04?

echo $PATH provides: /usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin while /etc/environment states PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" I ...
user avatar
  • 41
0 votes
0 answers
102 views

Package Installation error in Virtual Environment

I am using Ubuntu 16.04. So I created a virtual environment for python and activated it using cd /entire_path_to_virtual_env/bin source activate After that I used: pip3 install nltk The ...
user avatar
  • 123
-2 votes
1 answer
204 views

Ubuntu Environment Is Broken

After installation, this PC's Desktop does not look like the Desktop on my other PC.
user avatar
0 votes
1 answer
3k views

Cannot open display error when I run sudo gedit on Ubuntu 14.04.5

solitude@Solitude:~/Desktop$ sudo gedit ~/.bashrc error: XDG_RUNTIME_DIR not set in the environment. (gedit:12631): Gtk-WARNING **: cannot open display:
user avatar
2 votes
0 answers
34 views

How to boot into 'Ubuntu on Xorg' by default? [duplicate]

Unity runs like a lame donkey on my laptop, yet flies when I switch to Xorg. Is there a way to set it to use this by default without having to log out and in again every time?
user avatar
5 votes
1 answer
3k views

Location to place systemd service EnvironmentFile when creating debian package

I am currently rewriting upstart jobs to use systemd and I wanted to know: where is the "default" place to an EnvironmentFile? It could potentially go in /etc/environment It could be with all the ...
user avatar
  • 255
8 votes
4 answers
14k views

I set an environment variable in /etc/environment, but it's not in printenv using bash.exe with Windows cmd. Why? [duplicate]

I'm using WSL and I'm quite new on Linux. I have set an environment variable in /etc/environment called TESTVAR. This variable is required for some projects and it's working just fine when I'm running ...
user avatar
  • 81
0 votes
0 answers
866 views

/etc/environment not work

I declare PATH="/usr/local/anaconda2/bin:/mnt/code/tool:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" in /etc/environment. But when I re-login, $ echo $...
user avatar
  • 111
1 vote
1 answer
827 views

Setting CDPATH environment variable

"export CDPATH=/usr", like this I want to manipulate CDPATH environment variable. Then I can't be sure it is the same as before when I put "export CDPATH=." on the command line and enter. So, I want ...
user avatar
  • 1,039
0 votes
0 answers
79 views

can't see value of DESKTOP related XDG environment variables from remote machine [duplicate]

When I run echo $XDG_CURRENT_DESKTOP or $XDG_SESSION_DESKTOP I can see values on my Linux machine. When I run same commands on my machine from remote machine showing empty results. IMO, those ...
user avatar
0 votes
1 answer
894 views

PATH environment variable behaviour when switching user with and without login

when i login as a user then switch to another one, the PATH environment variable changes when the switch is done with and without login. see the following snippet $ ssh -i ~/.ssh/ubuntu.pem ubuntu@...
user avatar
  • 385
0 votes
1 answer
500 views

Where to find compile/build configuration - Problem with Tor from source [duplicate]

Since I need to patch tor that does not yet support binding on a link-local ipv6 address, I compiled it from source. The compile is successful (with minor warnings on the ar command) but the ...
user avatar
  • 329
0 votes
1 answer
336 views

Infinity loop login after install JDK-9 [duplicate]

I'm not a Linux superuser. However I decided to install official JDK-9 so I done those steps: wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" \ ...
user avatar
  • 13
0 votes
1 answer
3k views

Need to edit my locales under /etc/environment

I'm a complete noob so sorry for the lack of understanding. When setting my locales under /etc/environment I accidentally entered en_US.UTF-8 UTF-8 The problem being that the second "UTF-8" shouldn'...
user avatar
  • 1
3 votes
0 answers
260 views

How to customize default live session user desktop and environment on Kubuntu while remastering it?

I am chrooting into a kubuntu iso file with cubic and installing and modifying stuff I need to change for my custom live iso. But something I couldn't figure out is how to customize the default live ...
user avatar
1 vote
0 answers
287 views

bash: export not a valid identifier [duplicate]

I was changing the bashrc file based upon the following video https://www.youtube.com/watch?v=Ipd8vkAj8Fk&t=182s but suddenly when I type sudo su I get the following error bash: export: `/...
user avatar
0 votes
0 answers
908 views

I want to install jdk-8u131-linux-i586.tar.gz on a 32 bit system

I am using ubuntu 17.04, I am new to ubuntu and I want to install jdk-8u131-linux-i586.tar.gz on my 32 bit system but i dont realy know what to do. Please help me become a good programmer.
user avatar
2 votes
1 answer
4k views

what is the value for JAVA_HOME?

What is the correct value for JAVA_HOME? thufir@doge:~$ thufir@doge:~$ whereis java java: /usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz thufir@doge:~$ thufir@doge:~$ which java /usr/...
user avatar
  • 4,343
0 votes
1 answer
932 views

Syntax to declare the JAVA_HOME variable in /etc/environment?

Where and how does the variable JAVA_HOME go? What, specifically, should the environment file contents be to correctly set JAVA_HOME alongside PATH? current environment: thufir@doge:~$ thufir@...
user avatar
  • 4,343
1 vote
0 answers
132 views

Synchronized Profile and Environment

So, I have a development machine at work, and a company laptop I take home. Both are running Ubuntu 14.04. (I can't upgrade for business software compatibility reasons.) With my current set up, when ...
user avatar
0 votes
0 answers
628 views

Program is not accessible from the command-line

I am trying to use BUSCO program for bioinformatic analysis. BUSCO need to Agustus program as dependency. According to BUSCO’s user guide I must add Augustus to path and I did it as following: ...
user avatar
0 votes
0 answers
66 views

Graphical environment dies on ubuntu 16.04

I'm actually using Kubuntu 16.04 with KDE Plasma 5.8. It runs normally, but, when I play a game or after an 1 hour or less of of PC turn on, the graphical environment dies without any way to reboot ...
user avatar
0 votes
1 answer
112 views

Linux, Wine for unity environment [duplicate]

How can i download wine on a unity desktop environment? I've been trying to do so by using commands i found online but nothing helps. I found it easy to download it in xfce4, but now im using unity.
user avatar
1 vote
1 answer
410 views

Startup Applications does not seem to load /etc/bash.bashrc

I understand this type of question has been asked Help me understand .profile, .bashrc, etc Sequence of scripts sourced upon login But I'm having a hard time understanding it. I've got an Ubuntu ...
user avatar
0 votes
0 answers
55 views

Sudo /bin/bash -c 'some command' does not load /etc/environment content, not set the env [duplicate]

I've got a bit confused When I do log in via sudo su - I get full environment loaded $ sudo su - # env SHELL=/bin/bash TERM=screen-256color LC_ALL=en_US.UTF-8 HTTPS_PROXY_HOST=myproxy.com ...
user avatar
  • 147
1 vote
1 answer
257 views

How could one export from a sourced script only specific functions

I try to expose from a script only specific functions. For example, let's say I have the script hello_world.sh and it has 2 functions, hello and world: ## hello_world.sh - name of the file, not the ...
user avatar