Skip to main content

Questions tagged [profile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
436 views

How do I get my old firefox profile to run in snap environments of re-installations/other users on my machine?

My ambition is to reinstall my system and then, in the fresh installation, restore the home-folder of my current main-user from its backup created with borg. But before I boot the live USB stick, ...
von spotz's user avatar
  • 435
1 vote
1 answer
97 views

PulseAudio: digital profiles/ports no longer appear in pavucontrol

Until recently I could use pavucontrol to select a device's digital profile (in the configuration tab) or port (in the "output devices" tab). That latter tab also allowed me to indicate what ...
RJVB's user avatar
  • 254
0 votes
2 answers
161 views

Why .profile and .bash_profile have non-owner R permissions?

On the Linux systems I've seen the files .profile and .bash_profile in ~ have permissions -rw-r--r--. People seem to put various env vars into these files quite often, including smth like AWS keys, ...
Anton K's user avatar
  • 341
0 votes
0 answers
192 views

Environment variable explicitly set on /etc/profile is lost on Arch

This was my /etc/profile before I modified it. $ cat /etc/profile # /etc/profile # Append "$1" to $PATH when not already in. # This function API is accessible to scripts in /etc/profile.d ...
du578110's user avatar
0 votes
4 answers
202 views

split PATH variable INTO few lines

I have split my PATH variable into few lines, in the file to make them easier to read because it's very long, as I had seen here. This is what I changed in my /etc/profile: # PATH="/usr/share/...
ant's user avatar
  • 29
0 votes
1 answer
50 views

/etc/profile.d/sh.local

I am trying to delete/remove /etc/profile.d/sh.local (not using it and a security scan flags it) from the system when the system is built but, it is not working. I thought /etc/profile.d/sh.local is ...
user2037551's user avatar
1 vote
1 answer
116 views

Why this exec command only works in zshrc but not in profile?

This question is going to be so simple but I need to know how this just works in on side but in other place don't, to end ssh sesion when tmux closes I used the answer proposed in this link: https://...
AxelAGBL's user avatar
0 votes
1 answer
358 views

Why RStudio is not picking up environment variables defined in $HOME/.bashrc

I use Arch Linux. I use SSDM as display manager, but I have disabled it with: sudo systemctl disable sddm I have put code in /etc/profile, $HOME/.bash_profile and $HOME/.bashrc to echo when those ...
robertspierre's user avatar
1 vote
0 answers
212 views

How to reliably choose audio profiles/sinks/ports from the command line?

I have a Linux box (Fedora 38 KDE with PipeWire) that has an internal speaker (I.S.) (reasonable quality to play notifications, TTS, etc), and I have a nice set of external speakers (E.S.) to play ...
Luis A. Florit's user avatar
0 votes
0 answers
307 views

How do I export functions from profile.d scripts for use in interactive shells?

I have some scripts that I install in /etc/profile.d which define functions that should be exported and made available on the command line. Example script looks like: # This function should be ...
Jason C's user avatar
  • 1,485
0 votes
1 answer
224 views

My $PATH differs from that stated in /etc/profile

This is my entire /etc/profile. # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). if [ "$(id -u)" -eq 0 ];...
lini37827's user avatar
1 vote
1 answer
900 views

Tool that measures single command CPU/Memory usage?

Are there any usefull tools that can measure the CPU/Memory usage of a single command? I want something like: cpu_mem_perf some_executable args1 args2 and cpu_mem_perf will print the CPU/Memory ...
konchy's user avatar
  • 111
3 votes
1 answer
707 views

Debian /bin/sh in a Docker container never seems to look at .profile

I can not seem to get dash to look at $HOME/.profile: pedz@Peace:s001 ~[S:hatred] % docker exec -it hatred-web-1 dash -i # cat $HOME/.profile PROOF=true; export PROOF PATH=/hatred/bin:$PATH; export ...
pedz's user avatar
  • 173
0 votes
0 answers
246 views

Script in /etc/profile.d prevents me from logging in, is it possible to fix it?

OS: Zorin I put a .sh script into /etc/profile.d to fix an issue I had with an application. The script was this nautilus . & killall nautilus exit 0 Now when I try to log in, I just get returned ...
egg's user avatar
  • 1
0 votes
1 answer
297 views

I am not sure about correct way to export PATH

I have Java and Springboot cli added to PATH however, when source /etc/profile it gives error. And on restarting PC, BASH is not loading. My export in /etc/profile export JAVA_HOME=/usr/lib/jvm/java-1....
Susobhan Das's user avatar
0 votes
1 answer
1k views

loading variables from bashrc or bash_profile does not work

I have a script with some logic to check if the script is being run in interactive mode or not. Both bashrc and bash_profile contain the same environment variables I exported. I want to load these ...
Jeff Sani's user avatar
1 vote
0 answers
336 views

Where PATH=~/.local/bin:$PATH should be set in zsh shell?

In my current environment (Fedora35, zsh user shell, oh-my-zsh, pyenv), ~/.local/bin is not present in the path. The question is where is the "right" place to add ? Several options are ...
hute37's user avatar
  • 21
0 votes
0 answers
163 views

Why is the lifespan of variables exported in .bashrc and .profile different?

If a variable is exported from .profile, it is present in all the terminals I open after log in, even though the variable was exported only once at the log in time. If a variable is exported from ....
dimm's user avatar
  • 13
0 votes
1 answer
3k views

What sources /etc/profile?

I think /etc/profile is sourced when the system starts but what sources it? It is not sourced within the .bashrc hierarchy when a user logs in. I am using Ubuntu but I believe this is universal across ...
amphibient's user avatar
  • 12.6k
0 votes
2 answers
1k views

How can I source environment changes system-wide?

In most *nix environments using bash, you'll change environment variables that are local to your user in ~/.bash_profile or a similar file and then source the changed file in order to make the changes ...
jstarek's user avatar
  • 1,724
3 votes
1 answer
3k views

Could setting the permission on these files to 600 render my OS unusable? .bash_logout, .bashrc, .profile

I rely heavily on aliases in my .bashrc and it crossed my mind that I could improve my privacy / security and somewhat harden my Ubuntu 20.04 Desktop by changing recursively the permissions of my home ...
John Smith's user avatar
0 votes
2 answers
407 views

Finding duplicate aliases and functions in a script (.bashrc etc)

This site says that functions are faster than aliases, but he rightly points out that aliases are easier to understand - when you want something very simple and do not need to consider passing ...
YorSubs's user avatar
  • 641
0 votes
0 answers
439 views

How to source /etc/profile for Remote Desktop Sessions

I want to set up a server with some functions and aliases available for all users. I set these up initially in a file in /etc/profile.d and everything was working fine both from: SSH Local desktop (...
Eero Aaltonen's user avatar
1 vote
0 answers
87 views

Two Data Entries After Converting BTRFS Profile

I ran the following command on a BTRFS volume in order to convert the data profile from single to DUP (I'm looking to provide duplicate data on this volume to be able to repair possible bit rot ...
Harry Muscle's user avatar
  • 2,547
7 votes
2 answers
1k views

Why does man complain about a function defined in .profile?

I use Bash 5.1.8. Running man shows the manual page but with the following errors man ps sh: bat: line 10: syntax error near unexpected token `(' sh: bat: line 10: ` *.?(ba)sh)' sh: error importing ...
legends2k's user avatar
  • 253
1 vote
2 answers
515 views

Gentoo invalid profile

So. Been going at the gentoo install without proper instructions until very recently. After emerge-webrsync stage of the install a message pops up saying "your current profile is invalid". ...
Linuxn00b's user avatar
1 vote
2 answers
740 views

Konsole does not have permission to save this profile to /home/aravindakrishnan/.local/share/konsole/Profile 2.profile

I'm using KDE Neon on Debian. When I'm trying to change my profile It says Konsole does not have permission to save this profile to /home/username/.local/share/Konsole/Profile 2.profile: ls -l /home/...
Aravinda krishnan's user avatar
1 vote
1 answer
664 views

Need to set a new default path for command in Linux

Basically, what the title says. I'm setting up a new version of LUA and HAProxy under my user account in Redhat, so the bin directory that contains it is /home/user1/testing/usr/local/bin. I've ...
SVill's user avatar
  • 133
2 votes
1 answer
308 views

How can I configure tmux to make only the first window of each session load a login shell (& all other subsequent panes/windows as non-login shells)?

Hopefully the title of this post is descriptive enough. As well-documented in the tmux manuals, tmux launches a login shell every time a new tmux window or pane (split) is launched. Instead, how can I ...
Dr Krishnakumar Gopalakrishnan's user avatar
1 vote
1 answer
153 views

Simple Process Profiling Tool

I need to profile a linux process and record high water marks for cpu/mem and also ideally produce a usage graph. Are there any simple command line tools to achieve this? I have looked at top command ...
Element's user avatar
  • 111
0 votes
0 answers
181 views

.profile file loaded on starting VSCode

in my .profile i have these two lines daemon plank daemon autokey what these basically do is start plank(dock application) and autokey(custom shortcut maker) on startup, it is working fine but the ...
Yugank Singh's user avatar
-4 votes
1 answer
193 views

Trying to understand .bashrc, .profile, etc.. files

I am trying to understand the relation among the files .bashrc, .profile, .bash_profile, etc... as well as the meaning of login/non login shells, interactive/non interactive shells, etc... Every ...
nadapez's user avatar
  • 144
1 vote
1 answer
1k views

How to start Firefox multiple isolated sessions with same profile?

I use proxychains utility with firefox. I want to start the firefox profile twice, but with other proxychains parameters. But I can't, when I try to run the second instance of firefox with the same ...
mooko's user avatar
  • 23
0 votes
0 answers
1k views

Exporting environment variables in `.profile` with a bash and-list construct

I am using gdm3 as my login manager. Upon login, all the PATH modifications in my .profile are set and exported correctly. For example, lines like these below work fine: if [ -d "$HOME/bin" ]...
firedrillsergeant's user avatar
3 votes
2 answers
2k views

Debian 10: Setting PATH variable inside .profile does not work

I'm currently running Debian 10 Xfce and I would like to update my PATH variable to include /opt/bin and ~/.local/bin. As per these - 1 2 answers, I put the following lines in my ~/.profile file: if [ ...
RogUE's user avatar
  • 207
0 votes
0 answers
655 views

How to securely store credentials needed in a profile.d script?

Disclaimer: I'm working on Ubuntu 20.04, but I assume my question is unrelated to a specific Linux distribution. I've searched the Internet for quite some time and found lots of other similar ...
Arigion's user avatar
  • 152
1 vote
0 answers
172 views

Keyboard conf at `/etc/profile` does not work

This is a script that I can source or run to setup my keyboard layout: #!/bin/bash # Testing to only apply the layout to Kinesis keyboard. # Get Device ID with: `xinput -list | grep -i key debug_out=/...
Gauthier's user avatar
  • 880
1 vote
1 answer
323 views

what makes the different behaviour between zsh login init and manually sourcing profile script?

I want to add a function to precmd_functions at ZSH login and avoid duplication. Since /etc/zprofile source the /etc/profile, which then source all the *.sh script under /etc/profile.d/, my solution ...
Tintervenor's user avatar
0 votes
2 answers
2k views

Prevent ``/etc/profile.d`` from being sourced on login

I just noticed my environment is behaving erratically because at some point this alias got introduced in /etc/profile.d/vim.sh: $ command -v vim alias vim='__vi_internal_vim_alias' Looking through ...
phg's user avatar
  • 1,827
2 votes
1 answer
1k views

Why does Centos7 run /etc/profile.d scripts from both /etc/profile AND /etc/bashrc?

Centos7 has the following in /etc/profile: for i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; do if [ -r "$i" ]; then if [ "${-#*i}" != "$-" ]; then ...
Spongman's user avatar
  • 232
1 vote
2 answers
510 views

Why can't I source function definitions into .bashrc read by .profile?

I have 3 config files: .bashrc sources .bashrc_common, and .profile sources .bashrc. Unfortunately, upon login to Gnome I get an error message saying that in .bashrc command foo was not found. But if ...
Leo Alekseyev's user avatar
2 votes
2 answers
784 views

unshare -r: Failed to connect to bus: Operation not permitted

When I run unshare -r, I get Failed to connect to bus: Operation not permitted The id still shows I'm root, ❯ id uid=0(root) gid=0(root) groups=0(root),65534(nogroup) What does this error/warning ...
Evan Carroll's user avatar
  • 31.8k
-1 votes
1 answer
90 views

Remove starting command from .profile

Where can be command that produces this error? These are my dot files: echo .* .3T .CFUserTextEncoding .Rapp.history .Trash .android .angular-config.json .atom .atomic .babel.json .bash_history ....
gkucmierz's user avatar
2 votes
3 answers
9k views

Ubuntu terminal not showing path

I have added one line in bashrc and after that terminal is not working as expected, no path is showing and I am unable to run any command: Below line i have added in bashrc: . ~/.profile
Kumar Harsh's user avatar
6 votes
1 answer
2k views

With systemd, should environmental variables ever be declared in ~/.profile or ~/.bashrc?

It seems to me like with environment.d now sourcing environmental variables in ~/.config/environment.d/*.conf that we should no longer have environmental variables declared in ~/.bashrc or ~/.profile ...
Evan Carroll's user avatar
  • 31.8k
4 votes
1 answer
2k views

bash: __vte_prompt_command: command not found

Everytime I open a command terminal or press enter the above error message show up.Does no harm but very annoying. ~/.bash_profile is here # .bash_profile # Get the aliases and functions if [ -f ~/....
shadow_wxh's user avatar
0 votes
1 answer
323 views

My terminal has stopped sourcing my .profile file

I installed starship (https://starship.rs/) the other day to make my prompt more useful, and as cool as it is, it broke a number of things about my terminal so I uninstalled it. Unfortunately, even ...
Matt's user avatar
  • 561
1 vote
1 answer
1k views

Clarification re: ZSH startup/shutdown files

I just upgraded to macOS Catalina and the new shell is ZSH. So, since it's a fresh start, I'm trying to set up my shell environment with aliases, functions, etc. like I had in bash. I'm trying to ...
Allan's user avatar
  • 1,060
3 votes
2 answers
8k views

centos which file to edit to get .bash_profile running?

I want to know which file to edit in order to launch my .bash_profile when I graphically start the terminal. I am using an AWS Workspace with the following OS and the default MATE terminal. $ cat /...
Kermit's user avatar
  • 148
0 votes
1 answer
58 views

track environment changes upon login

Is there any way to track which files and which commands are executed when logging in? I've made some changes to the /etc/profile and /etc/bashrc file but they don't seem to be picked up when I login ...
Subbeh's user avatar
  • 420

1
2 3 4 5 6