[Linux-disciples] Where to put startup instructions

Adam Rosi-Kessel adam at rosi-kessel.org
Thu Dec 8 10:07:41 EST 2005


Karl Sokol wrote:
> I am running Ubuntu.  Whenever I reboot, I have to input the following
> three commands.
> nahash at ubuntu:~$ sudo chmod 777 /dev/lp0  (the ownership resets on each
> reboot making it so noone can print)

This should really be handled by your system itself--there is something
screwy about your installation if you can't print with the default
permissions on bootup. Usually, the user never needs direct access to
/dev/lp0 -- a print management system (usually CUPS) should be the only
thing talking to /dev/lp0.

If you do need /dev/lp0's permissions to be reset on bootup, you could just
put a script in /etc/init.d that does that and symlink it to /etc/rc1.d; but
much better would be to set it with whatever system is setting up the device
nodes. These days it's usually udev, and there should be something in
/etc/udev/*permissions* or similar where you can specify what permissions
newly created device nodes are supposed to have. I don't have the exact
details handy now, but hopefully that will point you in the right direction.

> nahash at ubuntu:~$ hotkeys (in order to use the fancy-smancy buttons on my
> keyboard)

You might just put that in ~/.xsession, assuming your window manager
executes that file. There is also some GUI for instructing the window
manager what programs to execute at login (presumably you don't need the
hotkeys until you are logged in). I think in Gnome it is something like
control panel--->sessions.

> nahash at ubuntu:~$ nahash at ubuntu:~$ sudo modprobe snd_mixer_oss (to use
> things like rexima)

That should just be in /etc/modules. Just put 'snd_mixer_oss' in /etc/modules.

> Where would the best place to put these so they happen at startup (or in
> the case of #1 how can I prevent it from happening in the first place?)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20051208/b3b73144/signature.pgp


More information about the Linux-disciples mailing list