defult browser settings & shutdown question
hi
two very newbie questions i know but .... 1) is it possible to set a certain browser to act in the same way as your windows defult browser (ie. accept all http links and open html pages) or does this have to be set on a per application basis? ie mail application, DCgui etc 2) is it possible to create a single X shortcut that executes the shutdown command and sets the next lilo boot (when you log off you have the choice of setting the next lilo boot under the shutdown menu, i want to create a single icon to reboot the system into windows as i have several games that do not run properly under wineX and need to keep a windows partition for playing them, and i like the simple click here to go to windows icon idea) im running mdk 9.2 using KDE 3.2 (system is set to autoboot into X) im using the latest mozilla firefox for web (just a personal choice no big reason, i like it in windows so i wanna run it in nix) |
Re: defult browser settings & shutdown question
Quote:
for KDE apps) ... Quote:
#!/bin/sh /sbin/lilo -R Linux /sbin/reboot #!/bin/sh /sbin/lilo -R winDOHs /sbin/reboot and make links to those.... Cheers, TInk |
thanks for the quick response :)
1) yep konq should have the accociations (and seems to have to almost everything) but both dcgui and my mail client (thunderbird) seem to revert back to a gnome browser everytime i try a different link, i also want to reset so that all http stuff goes into firefox 2) sounds damn good ill give that a try :D thanks again |
shell scripts work perfectly ..... if i log in as root first :)
can i add say su pass into the top of the script to login to root before running? i have already tryed changing the chmod but i still need to be root to run the command, if i run it as me i get permission denied to /boot/map and i dont want to give myself full permissons to that for obvious reasons. |
Use sudo ... then the users you allow to do so
can run the scripts with root's priviliges... Cheers, Tink |
and to sound even more like a newbie :)
whats sudo? linux has been on my system for ooh 4 days now so im afraid a little description is needed, im off to search the forums for it anyway :) edit : found what i was looking for but still a little confused, im not really sure where to put sudo is this right : #!/bin/sh sudo /sbin/lilo -R winDOHs sudo /sbin/reboot |
sudo is a powerful and easily maintained way
to let "normal users" do tasks that usually require root permissions ... man sudo man sudoers for details .... /etc/sudoers holds all kinds of priviliges and the like. Add a line like <user> localhost,<hostname>=NOPASSWORD: <winbootscript>,/usr/bin/sudo Create a second script that says sudo <winbootscript> And put a link to that on the desktop... Cheers, Tink |
thanks very much
|
All times are GMT -5. The time now is 10:56 AM. |