Questions tagged [profile]
The profile tag has no usage guidance.
251
questions
0
votes
0
answers
18
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
...
0
votes
4
answers
72
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/...
0
votes
1
answer
38
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 ...
1
vote
1
answer
57
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://...
0
votes
1
answer
70
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 ...
1
vote
0
answers
57
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 ...
0
votes
0
answers
94
views
Unable to create a new Gmail profile (account) in Mozilla Thunderbird
Received error message:
Signing in at server is not possible. Probably incorrect configuration, user name or password
Creating the mail profile with following features (automatically configured by ...
0
votes
0
answers
154
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 ...
0
votes
1
answer
157
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 ];...
0
votes
0
answers
26
views
Pulseaudio will not retain default device config and crashes lxpanel
No matter what I try to get pulseaudio to use the default devices i've listed in the config it just reverts back to whatever it wants for some reason.
user config has no default devices entered.
It ...
1
vote
1
answer
258
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 ...
3
votes
1
answer
476
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 ...
0
votes
0
answers
169
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 ...
0
votes
1
answer
133
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....
0
votes
1
answer
868
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 ...
1
vote
0
answers
180
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 ...
0
votes
0
answers
119
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 ....
0
votes
1
answer
2k
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 ...
0
votes
2
answers
771
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 ...
3
votes
1
answer
2k
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 ...
0
votes
2
answers
317
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 ...
0
votes
0
answers
315
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 (...
1
vote
0
answers
79
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 ...
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 ...
1
vote
2
answers
348
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". ...
1
vote
2
answers
721
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/...
1
vote
1
answer
365
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 ...
2
votes
1
answer
230
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 ...
1
vote
1
answer
111
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 ...
0
votes
0
answers
142
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 ...
-4
votes
1
answer
177
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 ...
0
votes
1
answer
947
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 ...
0
votes
0
answers
880
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" ]...
3
votes
2
answers
1k
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 [ ...
0
votes
0
answers
395
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 ...
1
vote
0
answers
144
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=/...
1
vote
1
answer
258
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 ...
0
votes
2
answers
1k
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 ...
2
votes
1
answer
893
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
...
1
vote
2
answers
382
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 ...
2
votes
2
answers
573
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 ...
-1
votes
1
answer
67
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 ....
1
vote
3
answers
6k
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
5
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 ...
3
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 ~/....
0
votes
1
answer
257
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 ...
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 ...
3
votes
2
answers
7k
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 /...
0
votes
1
answer
51
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 ...
1
vote
0
answers
653
views
Change NetworkManager connection file location
I'm trying to move the connection profile generated by the Network Manager from /etc/NetworkManager/system-connections to another position and to be able to activate it among multiple sessions after a ...