SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I use Slackware 9.1 and discovered that I have no .bashrc in my home folder. I searched in the forum for this problem and everybody said simply to create a new: but it does't work!
when I login or start a new terminal it doesn't run the script (change color, export etc.)
I tried with and without to set it as executable (chmod +x)...
and does anybody know where to add scripts which only run one time when I start linux. Like bashrc but global.
typing "bash" will make the trick.
probably your default shell is not bash : you can check that with finger
you need to change it : /etc/passwd
in the line that contains the user ,
change /bin/whatever to /bin/bash
thank you slackie1000
when I type bash the the script works!
but not when i log in normally. In /etc/passwd all users are set to /bin/bash.
when I start root the command line is like this:
root@xar600:~#
other users are:
bash-2.05b$
What terminal are you using? If you are using gnome-terminal, then to to the second tab in prefenrences ('Title and Command') and check the 'Run command as login shell' option.
Are you logging in from console? If it is so, you are starting a login shell and .basrc is not executed. You need to use .profile or .bash_profile for login shells.
Well if the above stuff doesn't work you can always slap all your stuff in one .sh file in /etc/profile.d/ and chmod +x it. It will run on startup and you can still set different stuff for different users like the PS1 thing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.