I'm expecting the above .bashrc to be loaded when I log in. Unfortunately, that's not happening. I can load it manually but I'd prefer not to have to do that. Any ideas on what might be wrong?
.bashrc not loading when logging in
- OMV 4.x
-
-
Have you checked which shell is defined for your user? Default is dash, not bashOdroid HC2 - armbian - Seagate ST4000DM004 - OMV4.x
Asrock Q1900DC-ITX - 16GB - 2x Seagate ST3000VN000 - Intenso SSD 120GB - OMV4.x
Backup - Solutions to common problems - OMV setup videos - OMV4 Documentation - user guide
-
-
macom wrote:
Have you checked which shell is defined for your user? Default is dash, not bash
The post was edited 1 time, last by dinki ().
-
No one can help with this?
-
-
does your ~/.profile contain something like this?
askubuntu.com/questions/161249…when-opening-new-terminalOdroid HC2 - armbian - Seagate ST4000DM004 - OMV4.x
Asrock Q1900DC-ITX - 16GB - 2x Seagate ST3000VN000 - Intenso SSD 120GB - OMV4.x
Backup - Solutions to common problems - OMV setup videos - OMV4 Documentation - user guide
-
I just added it but it didn't make a difference.
I'm using stock OMV and I'm not a programmer or admin but I have been using Linux for a good while. Can't figure out how to get this to work ....
Any help is most appreciated. -
-
No one has ever had this kind of problem? I'm not a linux genius but I know some of you guys are. Can you help me out?
-
Put your aliases in your .profile file instead of .bashrc.--
Google is your friend and Bob's your uncle!
OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380 -
-
New
Tried in .profile and still no good. -
New
Then something is seriously wrong with how you are doing this or you are not logging in as the same user you are modifying the environment for.
Also, you have to save the .profile file and log out and then log in again. Are you doing that?--
Google is your friend and Bob's your uncle!
OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380The post was edited 1 time, last by gderf ().
-
-
New
gderf wrote:
Then something is seriously wrong with how you are doing this or you are not logging in as the same user you are modifying the environment for.
Also, you have to save the .profile file and log out and then log in again. Are you doing that?
I certainly did write, log out, and log back in.
I've been a Unix/Linux user for 30+ years. Admittedly, I am not an admin but I am pretty good moving around in the shell. I'm also pretty good at searching and finding things and this has me stumped.
*EDIT* Did more searching. FYI to anyone else, the file to edit is .bash_profile. Not .bashrc or .profile.
Thanks for the help.The post was edited 1 time, last by dinki ().
-
New
I have a highly populated with aliases and working .profile here.
I do not have a .bash_profile file at all.--
Google is your friend and Bob's your uncle!
OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380 -
-
New
gderf wrote:
I have a highly populated with aliases and working .profile here.
I do not have a .bash_profile file at all.
-
New
What's in your skeleton directory?--
Google is your friend and Bob's your uncle!
OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380 -
-
New
Unknown. This is the first I hear of skeleton directories. If you tell me where to look I can post what I find. -
New
/etc/skel - These files are copied into the user's /home directory when a new user is created.
My OMV 4.x box started life as OMV 2.x, was upgraded to OMV 3.x and then to OMV 4.x. Here's what's in mine:
-rw-r--r-- 1 root root 220 Sep 25 2014 .bash_logout
-rw-r--r-- 1 root root 3526 May 15 2017 .bashrc
-rw-r--r-- 1 root root 675 Sep 25 2014 .profile--
Google is your friend and Bob's your uncle!
OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380 -
-
New
My /etc/skel/ directory is empty. -
New
dinki wrote:
My /etc/skel/ directory is empty.
You did take into account that those are hidden files when you looked in the directory?--
Google is your friend and Bob's your uncle!
OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380 -
-
New
Wow. I am a dummy. It's not empty:
root@omv:~# ls -la /etc/skel/
-
New
Those are the files that are generally copied into a new user's home directory when the user is created. But it is possible to create users without doing this. If you added the user within OMV, perhaps it is doing something unusual.--
Google is your friend and Bob's your uncle!
OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380 -