Questions tagged [.profile]

A user-specific (not systemwide) configuration script executed when starting login shells.

Filter by
Sorted by
Tagged with
5
votes
1answer
278 views

`alias` command in `.profile` not recognized until `source .profile` is called

I have the following line in my .profile file in my home directory: alias flux='redshift -O 2500' But whenever I login and type flux I get a flux is not a recognized command. I then do a source ....
0
votes
0answers
14 views

Start up issue with brew directory

I have found other people talking about this issue, but the solutions did not work for me, so I am here posting about it. I have Ubuntu 20.04 on a Mid-2009 MBP 8GB Ram, Intel i5 MBP model is a1286 ...
2
votes
1answer
49 views

Is ~/.profile read? [duplicate]

I'm quite a newbie, but I know every time you start Terminal, some files are taken into account; and among those there is ~/.profile, which contains the following lines: if [ -d "$HOME/bin" ]...
1
vote
0answers
56 views

.profile not beeing sourced

some time ago I installed byobu and ran byobu-enable and it still didn't started automatically, I just ignored it since I could just press super and open up byobu terminal directly. But now I tried to ...
0
votes
0answers
36 views

How to fix error /etc/profile: line 33: Plus: order not found?

I recently updated the operating system to Ubuntu 20.04 LTS and I get the error: Error found when loading /etc/profile: /etc/profile: line 33: Plus: order not found (As a result the session will ...
0
votes
0answers
56 views

How to install debuginfo

I'm trying to run hardware-event based sampling on the Intel Vtune Profiler in order to get more information about my microarchitecture when profiling a binary compiled with gcc -g. However I get ...
0
votes
0answers
34 views

Help me find the source of this item in my $PATH

When I start a new shell, I end up with the following $PATH: /home/ldt/.local/bin:/home/ldt/bin:/home/ldt/.pyenv/plugins/pyenv-virtualenvwrapper/shims:/home/ldt/.pyenv/libexec:/home/ldt/.pyenv/...
1
vote
1answer
105 views

Set global environment variables from a custom file

I am trying to execute a file containing environment variables so that whenever I log in, those variables are immediately accessible. The $PATH variable is defined in /etc/environment so underneath ...
0
votes
1answer
36 views

how to retrieve profile in ubuntu 18.04 [duplicate]

I accidentally deleted the .profile in my Ubuntu 18.04 today. How to retrieve this. regards,
4
votes
3answers
541 views

How to fix ~/.profile and ~/.bashrc syntax errors

Ubuntu 18.04.4 (automatic upgrade from 18.04.3 just a few weeks ago) /bin/bash After I log in from the Gnome shell, this message appears while the screen is just plain purple and before the desktop ...
2
votes
2answers
150 views

The same string twice in the $PATH environmental variable

When I run $PATH on my terminal in Ubuntu 18.04.3, it displays the following: /home/ubuntu/bin:/home/ubuntu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/...
0
votes
0answers
639 views

how to run or re-load /etc/profile.d/ scripts?

From within the GUI, I'm seeing this result: My problem is exactly that this does not happen in the terminal run under the graphical user interface; neither in Ubuntu 16.04.3 or 18.04. – Thomas ...
0
votes
1answer
48 views

Ubuntu 18.04 boot error: syntax error :unexpected end of file when loading .profile

I am unable to do anything after this dialog box appears: /home/hp/.profile: line 31:syntax error :unexpected end of file As a result the session will not be configured correctly. You should fix the ...
0
votes
0answers
58 views

All of my data, files and settings in application are missing after removing Wine and re-installing Wine 4 [duplicate]

I'm really in a bad situation here. I uninstalled and purged all instances of Wine in my system, including the .wine directory, and proceeded to install the latest Wine Stable 4. However, after the ...
3
votes
1answer
320 views

Syntax error when signing onto the bash subsystem (WSL)

I am trying to sign onto the bash Windows Subsystem for Linux when I get this error: -bash: /home/User1/.profile: line 28: syntax error near unexpected token `(' Before getting this error I was ...
0
votes
1answer
74 views

Why doesn't gdbus output work when invoked from ~/.profile?

If I open a terminal and run the below script, it works fine. The values from the gdbus call get written to the lockScreenTest.txt file. The values are true when the screen is locked and the values ...
0
votes
1answer
177 views

Stata installation: how to add stata to the .profile PATH?

I am completely new to Linux and have no idea what to do. What I am trying to do is the following: I want to install Stata 16 on Ubuntu 18.04.3 LTS 64-bit. I followed the stata installation guide and ...
0
votes
1answer
245 views

Error found when loading /etc/profile [mariadb,mysql]

Booting to Ubuntu 19.04 I get black screen (frozen and not able to press the OK button) with this error message popup: Error found when loading /etc/profile find:'/usr/lib/mysql/plugin/...
0
votes
0answers
28 views

Making a file run every time an user account is logged in and also every time the user is switched in ubuntu 18.04

I'm a beginner to Ubuntu, working on a script to save the current user name in a file in /tmp.. Previously I've used /etc/gdm3/PostLogin/Default script to do this #!bin/sh current_user= "$...
0
votes
0answers
39 views

Environmental Variables are not reflected until restarting the machine

I know there are similar questions for mine, but still they weren't helpful with my issue. Scenario: I set a variable in either ~/.bashrc ~/.profile /etc/environment Whether the variable is assigned ...
1
vote
1answer
640 views

Ubuntu 19.04 .bash_profile doesn't exists

I'm trying to setup the WP-CLI completion from their site but I couldn't find the ~/.bash_profile file in my home directory and I tried the instructions with the ~/.bashrc file, I followed the zsh ...
1
vote
2answers
749 views

how to add .sh file or path to .profile to run my app?

In home I have a project folder nomse/bin/main.dart. in terminal. If I use command like, dart nomse/bin/main.dart I can run my app. UPDATE-1: I need to add path to .profile so I can run my app ...
0
votes
1answer
433 views

Error in source ~/.profile [closed]

~/.profile (line 25): Missing end to balance this if statement if [ -d "$HOME/local/bin" ] ; then ^ from sourcing file ~/.profile called on standard input source: Error while reading file “/home/...
1
vote
1answer
520 views

`exec /bin/bash -il` fails in .profile

The Bash manpage says: After reading that file (/etc/profile), it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that ...
0
votes
1answer
892 views

Export path working from terminal but not bash script

If I run export PATH=$PATH:/home/mike/bin/*:/home/mike/app/* from a command line it works fine, but if I put it into a bash script, it doesn't work (even with a restart). I have also tried including ...
0
votes
1answer
262 views

Ubuntu 18.04 on startup error, [-f: command not found

I booted to installed Ubuntu 18.04 on my system and faced the error and pressing Ok button does not work The only thing I did was following the react-native installation instruction: created a ....
0
votes
1answer
366 views

How can I change $ to > in terminal? [duplicate]

In any terminal there is specific meaning of puneet@Puneet-Ubuntu-PC:~$I want to replace '$' symbol with '>'. Please guide me How can I make this change.
0
votes
0answers
617 views

Error found when loading /etc/profile

the error just keeps showing up, and it is mainly about : '/usr/lib/python3/*':permissions denied! even after i restore /etc/profile with /usr/share/base-files/profile, anybody knows why?
0
votes
1answer
712 views

Ubuntu 18.04 boot error: syntax error: unexpected end of file when loading .profile [duplicate]

I can't figure out what is wrong with my Ubuntu 18.04. I was trying to set a path for an application in my .profile and restarted the machine. Since then, I've been getting this error on the screen. I ...
0
votes
1answer
2k views

Error found when loading /home/[user]/.profile at boot

Every time after I login, but before the desktop loads, a dialog box with the error: Error found when loading /home/[user]/.profile enp7s0: Unknown host ifconfig: `--help' gives usage information. I ...
1
vote
2answers
146 views

Ubuntu 16.04: Inability to log in after small modification in .profile file in user home

I have an Ubuntu 16.04 system on my laptop. I had installed the program redshift on it which adjusts the screen light to make it easier on the eyes. Today in a bid to always start it up automatically ...
0
votes
1answer
3k views

How to reload environmental variables in .profile using source for entire session? [duplicate]

So I need to reload my profile after making changes (this time due to a typo). I run source ~/.profile and everything works perfectly fine. However the source command only applies to that terminal ...
0
votes
2answers
2k views

Firefox profile cannot be loaded…profile created but still not able to launch?

I created a new sudoer on my Ubuntu machine and logged in. Now when I launch Firefox it gives the error that Firefox profile cannot be loaded. I looked for the solutions then I got the way to create ...
1
vote
1answer
234 views

How to remove texlive from Path

I want to remove texlive from my PATH after deleting it with rm -rf command and I have deleted the path for texlive in .bashrc but when i run the command: echo $PATH I'm still seeing texlive in my ...
0
votes
0answers
196 views

error loading /etc/profile (xinput property doesn't exist)

After upgrading from Xenial to Bionic, I now receive errors when logging into my desktop: Error found when loading /etc/profile Property 300 doesn't exist, you must specify its type and format ...
2
votes
1answer
1k views

How can I set path so it can be read from GUI and command line by the same program?

I installed texlive and I want to add it as an environment variable to my Path so that Emacs AucTeX can read it when I start emacs from the GUI or from the command line. So far I've read that emacs ...
2
votes
2answers
3k views

.xprofile broken in Ubuntu 18.04

Today I upgraded to latest Ubuntu 18.04 from 17.10, but computer says ~/.xprofile has syntax error, and could not use desktop. Only a movable mouse icon on a violet color blank screen. When I ...
1
vote
2answers
174 views

Where would the stdout output by `~/.profile` have gone when starting Ubuntu?

My ~/.profile contains a command which outputs to stdout when Ubuntu 16.04 with LXDE is started. I grep /var/log/ for the output, but found nothing. Where would the output have gone, or is it lost ...
15
votes
1answer
4k views

How can I restore /etc/profile? [duplicate]

I'm working on a bash script that appends to /etc/profile but instead of appending, I accidentally wrote over it, losing all of its content. How can I restore the file? I did search here but being ...
0
votes
1answer
579 views

terminal was slow(after finishing the process)after fixing it: unknown characters in terminal appears

My terminal was slow. Every time after finishing the process like: Installing software or sudo apt update etc... I should wait for the shell for about 5-10 sec to type next commands. So i ...
1
vote
2answers
889 views

Global variable not automatically loaded from .profile

In order to setup CUDA 9.1, I read it is convenient to add its installation folder to PATH and LD_LIBRARY_PATH, as: PATH="/usr/local/cuda-9.1/bin:$PATH" LD_LIBRARY_PATH="/usr/local/cuda-9.1/lib64:$...
0
votes
1answer
291 views

How can I wait in the .profile script until all devices are mounted?

In my .profile script I want to export a variable if an external USB hardisk is mounted. I need this variable in later Perl scripts to determine if the device is mounted. Especially, if the device is ...
1
vote
0answers
358 views

SSHFS not connecting at login using .profile - connection reset by peer

I'm trying to create an sshfs connection when I login, so I have added a call to a script within the ~/.profile which runs the sshfs command. Here's the script that is called: !/bin/bash sshfs ...
10
votes
2answers
5k views

Why do I have to `source .profile` in every terminal I open?

When we change some variable in ~/.profile in Ubuntu, then we execute the command source .profile. Then the change is effective only in this terminal. If we open a new terminal we have to execute the ...
0
votes
1answer
411 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@...
2
votes
1answer
1k views

What are the dangers of sourcing ~/.profile from ~/.bashrc? [closed]

I see many people do the opposite. Are there any reasons why it is a bad idea to source ~/.profile from ~/.bashrc? # .bashrc if [ -f ~/.profile ]; then source ~/.profile fi I've done a lot of ...
0
votes
3answers
789 views

Ubuntu 16.04 Login Loop after changing PATH

I've changed my .profile file and added to the end: Export PATH = "bin/somepathToMatLab" This resulted after a restart, that when I login with the GUI it loops right back to the login page. I then ...
4
votes
1answer
10k views

“qmake” is not recognized

I have installed Qt 5.6 from the official website via a *.run file. The installation directory is in my home folder. When I run qmake --version I get the following message: qmake: could not exec '/...
0
votes
0answers
185 views

.profile xinput issue

On Ubuntu 16.04 lts my Logitech wireless mouse scroll speed is too high, so I intended to use the following row in the ~/.profile: xinput set-prop 9 'Evdev Scrolling Distance' 8 1 1 as suggested ...
5
votes
6answers
12k views

How to set default umask in Ubuntu 17.04?

In the past, I have always set umask at ~/.profile. I set a umask of 077 so my documents get a permission of 600 (rw-------). But setting this at ~/.profile no longer works in Ubuntu 17.04. So as new ...