LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2004, 05:28 PM   #1
subsys
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Rep: Reputation: 0
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)

Last edited by subsys; 02-24-2004 at 05:30 PM.
 
Old 02-24-2004, 05:38 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
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
 
Old 02-24-2004, 05:57 PM   #3
subsys
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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

thanks again
 
Old 02-25-2004, 04:56 PM   #4
subsys
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 02-25-2004, 05:02 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Cheers,
Tink
 
Old 02-25-2004, 05:16 PM   #6
subsys
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Original Poster
Rep: Reputation: 0
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

Last edited by subsys; 02-25-2004 at 05:22 PM.
 
Old 02-25-2004, 05:23 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
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

Last edited by Tinkster; 02-25-2004 at 05:39 PM.
 
Old 02-25-2004, 05:25 PM   #8
subsys
LQ Newbie
 
Registered: Feb 2004
Posts: 11

Original Poster
Rep: Reputation: 0
thanks very much
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
All users have same web browser settings banner Linux - General 3 11-16-2005 08:59 PM
Defult Web Browser benjdamindaines MEPIS 2 05-22-2005 10:02 PM
Browser Screen Settings ptreves Linux - General 2 12-03-2004 02:13 PM
ALSA settings not saved on shutdown hamish Linux - Software 4 06-06-2004 12:06 PM
eth0 shutdown fails and browser problems prozach Linux - Networking 3 05-19-2003 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration