Other Help Topics :: export PRINTER=lp in bootlocal.sh not working
I'm having a series of printer problems. I'll focus on just one here. And no, the people on the printer forum weren't able to explain this.
As instructed, I put the command "export PRINTER=lp" in the opt/bootlocal.sh file so that I wouldn't have to type it up manually every time I booted up.
Why does DSL refuse to execute this command when I boot up? I know that it's not being executed, because typing "env" in a shell shows NO "PRINTER=lp" in the output.
The commands I put in opt/powerdown.sh do execute when I power down. So why aren't the commands I put in opt/bootlocal.sh executing as well when i start up?Wouldn't you need to put "export PRINTER=lp" somewhere where it would be exported system-wide? .bashrc maybe?You should put that export in .bash_profile or .bashrc
.bashrc is run everytime you start a shell .bash_profile is when you login in.
You can see examples of other exports by looking at those two files.You know you could just bump your old threads... might be helpful to visit them too - will also explain your questions. Even though bootlocal was initial suggestion, other files (such as the same advice given above) were also given as suggestions. But I guess some things never seem to get done :P
Just to exactly make sure where variables can be propagated from, I just edited a couple files and used the mydsl system in a DSL 4.3 system. Conclusion: it should work in
where the top of the list is probably the better one to use - unless you just want it for the current user.
fwiw, /etc/bashrc did not work. My guess is that bash.bashrc took precedence.
If you do not know how to edit (any of) these files, do not hesitate to ask.Now I'm confused. Is the export command supposed to be in .bash_profile, bash.bashrc, .xinitrc, or .bashrc? Exactly what are these files for? Some of these files are in more than one directory, so which is the appropriate one to edit?
What's the startup mechanism, and why is there so much confusing information? All I want here is to get a certain command to execute AUTOMATICALLY EVERY TIME I boot up.
I'd make the changes right now, but I'm currently in a long download that I can't interrupt right now.Next Page...
original here.