![]() |
do things automatically - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html) +--- Forum: How Do I? (https://www.linux-noob.com/forums/forum-60.html) +--- Thread: do things automatically (/thread-988.html) |
do things automatically - ori - 2008-03-23 Hi, I've installed Debian 4 on my PC. Over the last couple of days I have managed (somehow) to mount my NTFS drives, get the sound working, and get the internet to work over the wireless. A couple of questions though. At the moment, every time I reboot / log in I need to mount the NTFS hard drives and run the modprobe ndiswrapper command in order to try and get things to work. Any chance that these things can get done automatically during boot up or log in? Thanks, Ori do things automatically - anyweb - 2008-03-23 i add my boot time commands to /etc/rc.d/rc.local cheers anyweb do things automatically - znx - 2008-04-01 Yeah so debian doesn't use rc.local.. if you want to do something like rc.local then you need to do the following: Make a file /etc/init.d/ntfsmount Code: #!/bin/sh That will create a script that will mount and umount all the ntfs partitions in your /etc/fstab file. A similar file for the modprobe can made, indeed you can put both commands in a single file. After that you then need to do this: Code: $ chmod 755 /etc/init.d/ntfsmount You might find that the "defaults" option isn't appropriate but you can read about how to use update-rc.d better. Enjoy :) |