LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices



Reply
 
Search this Thread
Old 06-27-2006, 05:08 PM   #1
bonito
Member
 
Registered: Mar 2005
Posts: 117

Rep: Reputation: 15
system profile vs user profile


Howdy,

I had a problem with 'jumpy' DVD playback whenever i would watch a DVD on my Suse10.0.
The solution was running this one shell command:
hdparm -d1 /dev/dvd

Thats it!! i dont know why, but it works!! Smooth Playback ALL the time. = ]


The only catch is that i have to manually run it again, everytime i reboot my suse10 system.

Is there a way i can add this command so it will run everytime my system boots up?

i would prefer it to be run in the 'system' profile (instead of the user profile).
This way, no matter which local user logs in, the setting is already in effect.

is it be possible to do someting like this?

thank you
>^^<
 
Old 06-27-2006, 05:41 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
i would think /etc/rc.d/rc.local would be the best place to add the command. if the file doesnt exist, create it and make it executable.
 
Old 06-28-2006, 09:10 AM   #3
bonito
Member
 
Registered: Mar 2005
Posts: 117

Original Poster
Rep: Reputation: 15
how so?

howdy!!

okay, i know how to make the file executable: chmod 755


but how do i make the file?
dont i have to start it with "#!" or something?

------
#!
hdparm -d1 /dev/dvd

------


like that? and just save it and put it in the "/etc/rc.d/rc.local"?
or do i hav eto put it in a rc5 subdirectory or something (dont have a linux box nearby at the moment)


thanks again, and i apologize for my newbie-ness!
 
Old 06-28-2006, 02:02 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
you shouldnt HAVE to put anything else besides the commands, if you want you can do though, its: '#!/bin/bash' as the first line.
to create the file run 'vi /etc/rc.d/rc.local' if it doesnt exist already. youll need to do this as root, because other normal accounts shouldnt have access to this area.

Last edited by nadroj; 06-28-2006 at 02:04 PM.
 
  


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
Load kde profile from /mnt/removable/user instead of /home/user preacher.ca Linux - General 3 12-02-2005 04:00 PM
user profile ust Linux - Software 1 10-04-2005 08:01 AM
non roaming profile on a roaming profile system fieldyweb Linux - Newbie 1 10-03-2005 01:27 PM
System Profile user1 Linux - Newbie 2 06-21-2005 03:04 PM
user profile nautilus_1987 LQ Suggestions & Feedback 2 09-01-2002 05:03 AM


All times are GMT -5. The time now is 08:08 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration