Questions tagged [profile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

Why is Chromium using the same directories as google-chrome for backups?

Why is Chromium using the same backup directories as google-chrome? Instead it should use something like this example from the Arch Wiki: ~/.config/chromium-backup-crashrecovery-20130912_153310 ...
1
vote
2answers
59 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
1answer
20 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 ...
0
votes
0answers
54 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 ...
0
votes
0answers
62 views

Find hidden directory under user profile and echo result

#!/bin/sh USERLIST=$(ls /Users | grep -v Guest \ | grep -v .localized \ | grep -v Shared \ | grep -v administrator \ ...
1
vote
1answer
55 views

Use bash when ksh is shell

I have access to several RHEL systems that use Active Directory for user accounts and a NFS mount for home directories. Our login shell is stored in Active Directory and is always /bin/ksh. I want ...
0
votes
0answers
32 views

Physical buffer in terminal is getting misaligned with display in oh-my-zsh configuration

I have been experiencing an unusual problem in the oh-my-zsh configuration in which the cursor gets out of sync with the text. (I normally work using screen in konsole. For instance on a new terminal ...
-2
votes
1answer
54 views

Create and use custom .profile file

Our current Linux distribution doesn't show .proflle file in the user home folder, but as we are using ksh shell, we have the .kshrc file available. However, without playing with the kshrc file, can I ...
2
votes
1answer
150 views

Why does lightdm source my .profile even though my login shell is zsh?

I am using Linux Mint 19.2 Cinnamon, with ZSH as login shell for my user. When I login, I see that my $PATH includes $HOME/.local/bin two times, even though it is specified only once across all my ...
0
votes
0answers
42 views

PATH environment variable not found [duplicate]

When I execute a command on the terminal: The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable. I added in the files: .bashrc, etc/enviroment, ....
0
votes
0answers
40 views

What license does ~/.profile fall under?

On Unix & Linux, what license governs usage rights for the '.profile' file? Also what entity can be questioned about compliance?
0
votes
1answer
25 views

Systemd service vs .profile to start python program at boot

I have a python application running on a raspberry pi. Since the pi will be used mostly for display (no keyboard except for password input on boot because the pi user home directory is encrypted) the ...
1
vote
1answer
59 views

On Linux, source different .zshrc files for different apps

Based on three questions: Use different profiles with ZSH (in different terminal apps), but deisgned only for macOS Different tmux configs for different sessions?, but I want to use different .zshrc ...
5
votes
2answers
760 views

SSHing into system with ZSH as default shell doesn't run /etc/profile

I'm experiencing a strange behavior on some of our machines atm. At least, it seems strange to me and my colleagues and we didn't find any explanation for it :) [edit 1] Next paragraph seems to be ...
1
vote
0answers
21 views

Gnome make mouse keys config persistent

I enabled mouse keys in gnome settings and the default mouse pointer was unusable due to its slowness, so I searched and found this command that fixes the problem: xkbset ma 60 10 10 5 2 The problem ...
0
votes
0answers
61 views

Stop display settings from reverting back on shutdown

Recently made the switch from windows 10 to linux mint(cinnamon) and was looking to change the display scaling for a 13in monitor. Found out that fractional scaling isn't an option, but found an ...
1
vote
0answers
37 views

Can I profile my application's access to physical memory?

I would like to profile how many times my app accessed specific physical memory addresses. For example, PFN | COUNT 0x000123 3 0x000124 5 ... Is there any profiling tool ...
18
votes
1answer
1k views

bash does not know the letter 'p' [duplicate]

My bash does not know the letter p. zsh does though. When I type a p in bash, it simply ignores it, and even pasting in text that contains a p will result in no p in the pasted text. This behavior ...
0
votes
1answer
47 views

Script alternative of GUI command executed on login - it should not

Since my main data is not in $HOME, I have made a small (executable) script to start the GUI file manager (caja) in the desired directory and put it in my local executable directory (~/.local/bin): #!...
0
votes
2answers
182 views

Confused about Configuring Linux Path Environment /etc/profile.d/*.sh being Executed Twice?

I am trying to set PKG_CONFIG_PATH to CentOS here are the code I tried export |grep PKG_CONFIG_PATH no output, normal... echo "$PKG_CONFIG_PATH" :/usr/local/lib/pkgconfig why there is output here??...
1
vote
1answer
2k views

How to persist environment variables in ash, the Almquist shell?

How can I get ash to load some environment variables on startup? Just put them in /etc/profile /etc/profile is only read for login shells; what about non-login shells, as frequently pop up when ...
2
votes
1answer
1k views

How can I make my script in /etc/profile.d to run after all other scripts in same directory?

I'm writing an installer script on Ubuntu for an application which needs multiple parts such as install a specific g++ version, put a script in profile.d, reboot install drivers for some hardware, ...
0
votes
1answer
191 views

Is there a totally empty Bash file I can use (or create) to extend .bashrc and .profile?

I know that by principle, one shouldn't change .bashrc and common changes like creating an alias should better be done in .profile instead. When I rent a new IaaS system with Bash as main shell, the ...
2
votes
2answers
2k views

New tmux session only sources .zshrc, and doesn't pick up the $PATH defined in .profile

After reading multiple questions on this topic I still feel lost. I read suggestions that one should set the environment variables including $PATH in .profile instead of specifically in .bashrc or ....
1
vote
1answer
459 views

sudo not executing bashrc as expected

Overall issue is when I log in, my prompt appears correctly formatted as per the /etc/bashrc but when I sudo to another user using bash, the prompt gets fubar'd. Essential formatting in the /etc/...
1
vote
2answers
124 views

Storing all environment variables in one file

What are the caveats of having one single file with environment variables? What I would like to do is to create a file (e.g. ~/.env) which contains all necessary PATH declarations and possibly other ...
-1
votes
2answers
2k views

Why does sourcing a script in .profile not work?

I have an executable script which I want to run every time I log in or open a new interactive shell. I added the path to this executable in .profile and sourced it by adding this line to .profile ...
5
votes
1answer
454 views

/etc/profile, ~/.bashrc and no other profile files are sourced for users, only for root

Since I've upgraded my server from Debian 8 to 9 I have a strange behavior with bash. When I log in via ssh, none of the profile files are loaded, I get the following prompt: Linux myserver 4.9.0-7-...
-1
votes
1answer
494 views

Cannot log in because of corrupted .bash_profile [duplicate]

I have created a new user account. I can't access it because of a .bash_profile error. How can I repair this type of error?
4
votes
1answer
1k views

How to write an automatically sourced shell script to /etc/profile

I heard through the grapevine that files in /etc/profile will be automatically sourced by bash upon login? I tried writing something simple to /etc/profile: echo "echo 'foo'" > /etc/profile/foo....
1
vote
1answer
878 views

KDE konsole command line option --profile not working

I'm running KDE 4.11 on CentOS 7.5.1804 (Core), with konsole package 'konsole-4.10.5-4.el7.x86_64'. Within the konsole application I created a profile named 'pi@eecspi', and from within a running ...
-1
votes
1answer
1k views

Debian 9.4— .profile not read on bash login

The .profile file includes a statement to add the $HOME/bin directory to the PATH (if that bin directory exists). This is not being executed on my bash login. If I manually load the .profile file . ...
3
votes
2answers
5k views

/etc/profile not sourced for users

In the ubuntu server I run, I added customisations in /etc/bash.bashrc and as .sh files in /etc/profile.d, to add some useful aliases and functionalities for my users. All of them run correctly for my ...
2
votes
0answers
2k views

Is it possible to source ~/.profile in the current shell from a script? [duplicate]

Take the following ~/test.sh script as an example: #!/bin/bash sudo -u ${SUDO_USER} cp ~/.profile ~/.profile.bak cat <<EOF >>/home/${SUDO_USER}/.profile export HELLO="Hello ...
1
vote
1answer
489 views

Does a noninteractive login shell execute `~/.profile` or a file whose name is `$BASH_ENV`?

From Bash Manual Invoked as an interactive login shell, or with --login When Bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first ...
-1
votes
1answer
257 views

Is a shell provided by `ssh username@server` login, and does it execute ~/.profile or ~/.bashrc? [closed]

From bash manual Invoked by remote shell daemon Bash attempts to determine when it is being run with its standard input connected to a network connection, as when executed by the remote ...
1
vote
1answer
75 views

Is it a good practice to make different configuration files as symlinks to some scripts under the same directory?

I was wondering if it is a good practice to make the following configuration files as symlinks to some scripts under a directory e.g. ~/program_files/configurations/. The scripts /etc/rc.local, /...
3
votes
1answer
3k views

How do you run a command with sudo in `~/.profile`?

Is it a bad practice to run a command which requires sudo in ~/.profile? If really want to do that, how can I make the command run at rebooting Ubuntu? make the command running with sudo and under ...
3
votes
2answers
6k views

How to make custom zsh script executable automatically?

I must be missing something incredibly simple about how to do this, but I have a simple script: extract () { if [ -f $1 ] ; then case $1 in *.tar.bz2) tar xvjf $1 ;; *.tar.gz) ...
0
votes
1answer
278 views

When tmux exits (closes pty master), background processes from startup scripts die — why?

I'm having difficulty understanding an answer I received to a question I posed about tmux — specifically, re: what the pseudoterminal does with child processes when it exits. Original Question I ...
3
votes
1answer
131 views

Dynamic .bash_profile login shell

I am trying to find a way to dynamically set bash environment settings depending on the environment I am logging in from. For example: Opening a Terminal session from the xfce GUI, it would load a "...
2
votes
0answers
69 views

Can I start a Flatpak app in a separate profile?

I normally start and stop Revolt with these Flatpak commands: # start flatpak run org.perezdecastro.Revolt # stop gdbus call --session \ --dest org.perezdecastro.Revolt \ --object-path /org/...
1
vote
0answers
321 views

zsh .zprofile / .zlogin not being sourced on gdm login? [duplicate]

I have noticed that ~/.zprofile and ~/.zlogin are only loaded (in my computer) when I use a login shell, but when I login with gdm, they are not run; ~/.profile is ran instead. Is this normal?
0
votes
1answer
1k views

Why is my sudo PATH different than my normal user PATH? [duplicate]

I'm having trouble with my PATH. I have a clean instance of an Amazon Linux virtual server and I set this in /etc/profile M3_HOME=/usr/local/maven JAVA_HOME=/usr/java/latest PATH="$PATH:$M3_HOME/bin:...
4
votes
1answer
3k views

KDE Plasma: save display/desktop/taskbar settings in a profile?

I am using default Manjaro (17.0.5) install with KDE Plasma on my laptop. On my work I connect two external displays. Everything works fine but my settings for display configuration and my taksbar get ...
1
vote
1answer
856 views

How to find out which files have defined “alias”es?

When I run the alias command, I see an alias which I don't know where it has been defined (i.e. I cannot find the file which contains definition of this alias). I have checked /etc/profile, ~/.bashrc, ...
2
votes
0answers
150 views

~/.bash_profile not executed upon login, but ~/.profile is [duplicate]

I'm running Ubuntu, with Gnome3 as my desktop manager. While debugging some initialization issues (the usual confusion over bash_profile, bashrc, etc.), I found that given the following files, # ~/....
4
votes
1answer
6k views

What to do when .profile does not exist for editing PATH?

I want to edit my $PATH environment variable. According to several tutorials and other sources (e.g. this Q&A), the most common way is to edit ~/.profile. However, for me, no such file exists. ...
11
votes
3answers
13k views

$HOME/bin dir is not on the $PATH

In my ~/.profile I have a last block which should load my personal bin/ directory like this: # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:...
1
vote
0answers
559 views

Why can't I add this custom Node PATH to /etc/profile.d scripts?

I may have a problem in the include chain for the profiles, or something may be awry in either my system, or my understanding of profile.d (RHEL7). I added a /etc/profile.d .sh script which is for a ...

1
2 3 4 5