Questions tagged [.profile]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
71 views

Environment configuration not reflected when switching users in Ubuntu 22.04

I have two users named Alice and Sally on my Ubuntu 22.04 system. Alice has configured her environment variables in the .profile file, and they are working correctly for her. However, when Alice ...
Vikram 's user avatar
0 votes
0 answers
33 views

Adding a nohup command to .profile

This has been annoying me for a while. There's this Polybar module called Greenclip that is equivalent to the clipboard icon we see in some DEs such as KDE. In order for it to work, I need to run the ...
user1709689's user avatar
0 votes
1 answer
111 views

Add permanently environmental variable to Ubuntu

I work with Ubuntu 18.04, and using softwares like: petalinux, Vivado. Each time i want to open vivado for example, I open terminal and type: source /opt/XIlinx/Vivado/2020.2/settings64.sh This is ...
Yonatan Elizarov's user avatar
0 votes
1 answer
94 views

Dot gitconfig file not reflecting when switch user on ubuntu 22.04 lts

Today I have installed Ubuntu22.04LTS. In that, i had a user bob and his git config is like user.name=Bob B [email protected] alias.unadd=reset HEAD I Had another user named quealy . when i ...
Vikram 's user avatar
2 votes
1 answer
143 views

These commands (setxkbmap and xcape) are in .profile but are not being executed on login

I have verified that .profile is executed on login. However, commands involving setxkbap (e.g. setxkbmap -option ctrl:swapcaps) and xcape (e.g. xcape -e 'Control_L=Escape') seem to be ignored. Since ...
Rosa's user avatar
  • 41
0 votes
1 answer
66 views

Where should `setxkbmap us_programmer` go to make it persistent?

Where should my custom setxkbmap us_programmer goto to make it persistent when I log into Ubuntu graphically and also from SSH?
Gabriel's user avatar
  • 185
0 votes
0 answers
71 views

What is the correct shell path to export in .profile for Mastodon and Rails?

@steeldriver's answer to In a bash script, how do I change from root user to another user using su and then exit? works great for using sudo and su in a bash script, but a new issue has to do with the ...
BlueDogRanch's user avatar
1 vote
0 answers
97 views

how to fix wrong ram usage in system monitor with environment variables

when I add environment variables to a program's .desktop shortcut, the program appears to only use around 100-250 kb ram when its using 1-3 gb ram. this problem appears in the applications tab in ...
Usermaxn's user avatar
  • 193
1 vote
1 answer
764 views

Old firefox profiles as Firefox uses snap now in Ubuntu 22.04

I've just migrated from Ubuntu 20.04 to 22.04. My firefox profile was previously located in the .mozilla/firefox home folder. Now I can see there is also a profile in the same name in snap/firefox/...
Dave's user avatar
  • 13
0 votes
1 answer
54 views

.bash_profile guidance

I want to know if there is any guidance I should be following somewhere (maybe from a man page or something) regarding creation of a ~/.bash_profile. By default Ubuntu 18.04 doesn't have one, it just ...
john smith's user avatar
  • 2,963
1 vote
1 answer
3k views

Display Git branch in brackets inside Ubuntu terminal using custom .profile script

I have this custom .profile script: PS1='\[\033]0;WSL2 Bash\W\007\]' # set window title PS1="$PS1"'\n' # new line PS1="$PS1"'\[\033[36m\]' # change to green ...
Bex T.'s user avatar
  • 113
30 votes
3 answers
9k views

What goes in ~/.profile and ~/.bashrc?

I'm having trouble wrapping my head around what belongs in ~/.profile and what belongs in ~/.bashrc. From what I've read, it seems to me that ~/.profile should be used for environment variables and ~/....
MDeBusk's user avatar
  • 1,067
0 votes
1 answer
505 views

Stuck booting to black screen after adding new xrandr mode

One of my monitors is 2560x1440, 60Hz capable but my Ubuntu 20.04 was only allowing me to set the maximum display resolution to 1920x1080. I followed the instructions in this post Unable to set my ...
LaBeaux's user avatar
0 votes
3 answers
659 views

Where to Source your .Profile (Ubuntu 21.10)

Recent instructional video I was watching said to put your export PATH="$PATH..." statement in your .profile and after sourcing manually in the terminal to append ". ~/.profile" to ...
PrometheusRising's user avatar
0 votes
0 answers
260 views

Is ~/.profile effectively sourced on non-login shells?

I see that the path variable is defined in my .profile file, and not in my .bashrc file. I have not changed either file. When using a shell initiated from the terminal icon on my desktop GUI, I can ...
Matt Curry's user avatar
1 vote
1 answer
650 views

Is there a default way to run commands on user's logout?

I want to log the logins/logouts of my users. For the logins I only need to modify /etc/profile and add my command or edit any .profile for an specific user. But for the logouts I don't know if there ...
raultm's user avatar
  • 111
2 votes
1 answer
690 views

xmodmap not running in .profile

I recently followed this guide to get some keys mapped to my Alt Gr https://medium.com/@retprogramisto/how-to-make-custom-keyboard-map-with-xmodmap-1341a1552d4f It worked fine, but when it came to ...
user126440's user avatar
0 votes
0 answers
113 views

After upgrading to 21.10, .profile batch file is not being executed at session startup

Recently, I upgraded my computer to release 21.10. So I'm facing some issues related to it. Among then, .profile is not being executed when I login. it's weird, because I used to have this kind of ...
Redbob's user avatar
  • 1,556
2 votes
1 answer
2k views

why my .xprofile file doesn't work?

I have xorg and xinit and I want to start some commands before the X environment. I did this many times and idk bc doesn't work. I made a touch ~/.xprofile and here I wrote the command that I want to ...
P4Kubz's user avatar
  • 21
0 votes
1 answer
167 views

~/.profile not reloading [closed]

I am using Ubuntu 16.04.7 LTS Wanted to know why changes are not reflected when I change the ~/.profile and reloading the file using source ~/.profile or . ~/.profile The changes are only ...
Hexgear's user avatar
  • 103
0 votes
0 answers
265 views

Error while loading .profile on ubuntu 20.04

Yesterday I have changed my .profile to include go path. And it looks like this: if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then ....
Javlon's user avatar
  • 101
6 votes
1 answer
1k views

Ubuntu Desktop: Why the .profile script is executed in an interactive non-login shell?

I understand about the difference between Interactive login and Interactive non-login According with this excellent post: Zsh/Bash startup files loading order (.bashrc, .zshrc etc.) we have the ...
Manuel Jordan's user avatar
0 votes
1 answer
99 views

.profile suddenly doesn't like comments [duplicate]

I'm running Xubuntu 20.10 on a MBA 2012. I wanted to use my GTK theme on a QT program, so I did a little searching and ended up with adding export QT_QPA_PLATFORMTHEME=gtk2 to my ~/.profile. That ...
wiggleforlife's user avatar
0 votes
0 answers
37 views

All Input Methods frozen, how to edit .profile file

I was trying to permanently disable the touchscreen on my ubuntu 20 by writing the following code in my .profile file : xinput disable $16 // for my touchscreen device Now after rebooting all of my ...
xerxes01's user avatar
0 votes
0 answers
861 views

Error found while loading /etc/profile, Ubuntu 20.04

Every time I boot up and Sign in to the account, before getting the desktop screen, I get this error message. I tried looking up stackoverflow & askubuntu but all were different from my error. ...
Jaineel Mamtora's user avatar
0 votes
0 answers
171 views

dot gitconfig file not reflecting when switch user on ubuntu 20.04 lts

gitconfig not reflecting after switching to user Today i have installed Ubuntu20.04LTS . In that i had a user bob and his git config is like user.name=Bob B [email protected] alias.unadd=...
Vikram 's user avatar
0 votes
2 answers
788 views

20.04 "Error found when loading /home/user/.profile Failed to write reboot parameter file" after boot

Every time I boot into Ubuntu I get this error message Error found when loading /home/user/.profile Failed to write reboot parameter file: permission denied Everything seems to work normally ...
Daniel H's user avatar
0 votes
0 answers
363 views

Error found when loading /home/[username]/.profile, tput: No value for $TERM and no -T specified

When I login to my system, I got this popup: Error found when loading /home/[username]/.profile: tput: No value for $TERM and no -T specified As a result the session will not be configured correctly....
Subhram Subhrajyoti Rana's user avatar
2 votes
2 answers
4k views

Remove brew completely from my system

I interrupted the execution of homebrew while installing. Consequently, I ran into a problem mentioned here Error found when loading /home/user/.profile:. I had to comment eval statements in the ...
Lawhatre's user avatar
  • 147
0 votes
1 answer
2k views

Error found when loading /home/user/.profile:

Previously, I was needed to install homebrew. I opened the terminal and executed the command for it. However, it was taking to long and I was also short on the data limit. So, I interupted the ...
Lawhatre's user avatar
  • 147
0 votes
1 answer
78 views

How do I run a command with uxterm after running ~/.bashrc lines in Ubuntu 18.04?

My ~/.profile file has the following code source ~/.bashrc When I run the following command, uxterm firefox I do not see any log of the lines of the file ~/.bashrc on the corresponding uxterm window ...
goahead97's user avatar
4 votes
3 answers
2k views

Which bash profile file should I use for each scenario?

I have seen many detailed explanations on how .bashrc, .bash_profile and the various other profile files interact, so I'm not after an explanation of how they fit together (I've read many such ...
YorSubs's user avatar
  • 263
0 votes
0 answers
39 views

Where are profile files sourced?

I am setting PATH LD_LIBRARY_PATH in my ~/.profile and expect these variables to bet set system-wide (for my user at least). However, upon inspection I find PATH is set correctly but LD_LIBRARY_PATH ...
Tohiko's user avatar
  • 173
0 votes
1 answer
39 views

Can I run apt apt-mark in .profile script?

Can I run an apt-mark command in home/.profile? I added the line as it works in the terminal (apt-mark showmanual >> ~/installed_packages.txt) but after I logged out and tried to log back in, ...
Prime624's user avatar
  • 400
0 votes
1 answer
447 views

Ubuntu 18.04 Login Loop .- bashrc and .profiles edited

When I enter my password on the login-screen, the screen goes black for a couple of seconds before it returns to the login-screen. I.e. login loop. I can log-in through remote desktop and SSH (puTTy). ...
Vegar's user avatar
  • 1
1 vote
1 answer
692 views

Including ssh-agent in .profile at boot

I am using 20:04 desktop and have added some code to .profile to start ssh-agent. If this code is present, I get what appears to be a spurious error message saying that an error occurred. The script ...
Jonathan's user avatar
  • 1,250
5 votes
1 answer
2k 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 ....
amortaza's user avatar
  • 153
2 votes
1 answer
2k 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" ]...
user665110's user avatar
1 vote
1 answer
474 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 ...
Caio Vieira's user avatar
0 votes
0 answers
289 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/...
Falc's user avatar
  • 111
1 vote
1 answer
2k 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 ...
Works for a Living's user avatar
0 votes
1 answer
254 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,
user1738234's user avatar
5 votes
3 answers
6k 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 ...
Hedley Finger's user avatar
2 votes
2 answers
1k 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/...
BlueSkies's user avatar
  • 2,045
2 votes
0 answers
4k 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 ...
Thufir's user avatar
  • 4,451
0 votes
1 answer
670 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 ...
Prachi Singh's user avatar
3 votes
2 answers
2k 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 ...
Jane1989's user avatar
0 votes
1 answer
269 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 ...
Nav's user avatar
  • 989
0 votes
1 answer
629 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 ...
ShoshK's user avatar
  • 3
0 votes
1 answer
475 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/...
Amir-Mousavi's user avatar

1
2 3 4 5