Hot answers tagged environment-variables
Why Lower-Case $user Doesn't Work To clarify and expand upon what others have said, shell and environment variables are case-sensitive. user and USER are different variables, so their contents (which $user and $USER expand to, respectively) may be different. Typically, no variable called user is defined and $user is expanded to nothing, while what you want ...
Add the exports to your ~/.profile, that way they are loaded on every login. Relevant: https://help.ubuntu.com/community/EnvironmentVariables
numberoflines=$(sed -n '$=' /tmp/lines.txt)
TL;DR: Put your export commands in .profile instead, remove or rename .bash_profile, and log out and back in to apply your changes. How the Per-User "profile" Files Are Used Most desktop environments are configured, by default, so that the .profile file in your home directory is sourced when you log in graphically. It sounds like you're using Ubuntu's ...
The user variable is probably empty. Try $USER.
Please use $USER instead of $user. sudo chown $USER -R /usr/bin/.folder/
At As you use ssh connection , try to add your user in the "audio" group : sudo usermod -aG audio username reboot and test that alsamixer is ok , so you can set volumes: Probably you have to press F6 to select the 3rd device. Then,in my case, I can read sound connected by ssh on a remote pc without X server using: cvlc ( which comes with vlc-nox ...
You are supposed to export the variable, not its value. I.e. export LD_LIBRARY_PATH not export "$LD_LIBRARY_PATH" Edit (example): $ LD_LIBRARY_PATH='/usr/share/My Company, Inc/ProductName' $ export LD_LIBRARY_PATH $ env | grep LD_ LD_LIBRARY_PATH=/usr/share/My Company, Inc/ProductName $
As report in XDG Base Directory Specification environment variables aren't set by default bug, Ubuntu doesn't set XDG variables. According to FreeDesktop Base Directory Specification: $XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to ...
Only top voted, non community-wiki answers of a minimum length are eligible