LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   defult browser settings & shutdown question (https://www.linuxquestions.org/questions/linux-newbie-8/defult-browser-settings-and-shutdown-question-150100/)

subsys 02-24-2004 05:28 PM

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)

Tinkster 02-24-2004 05:38 PM

Re: defult browser settings & shutdown question
 
Quote:

Originally posted by subsys
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
In KDE konqueror should have that role (mind you,
for KDE apps) ...

Quote:

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)
You could create two shell-scripts ...

#!/bin/sh
/sbin/lilo -R Linux
/sbin/reboot

#!/bin/sh
/sbin/lilo -R winDOHs
/sbin/reboot

and make links to those....


Cheers,
TInk

subsys 02-24-2004 05:57 PM

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

subsys 02-25-2004 04:56 PM

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.

Tinkster 02-25-2004 05:02 PM

Use sudo ... then the users you allow to do so
can run the scripts with root's priviliges...


Cheers,
Tink

subsys 02-25-2004 05:16 PM

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

Tinkster 02-25-2004 05:23 PM

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

subsys 02-25-2004 05:25 PM

thanks very much


All times are GMT -5. The time now is 10:56 AM.