Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15th November 2005, 01:21 AM
karl_marx's Avatar
karl_marx Offline
Registered User
 
Join Date: Oct 2005
Location: Somewhere in the Andes...
Posts: 25
startup programs

i want a couple of programs to run at startup, so i opened the "rc.local" file. here's what i did:

Code:
[root@localhost ~]# cd /etc/rc.d/
[root@localhost ~]# kate rc.local
then in the config file:

Code:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/usr/sbin/pure-ftpd & 'this is an old change, and it works fine
/usr/bin/kmix 'added this
/usr/bin/xmms 'added this
 'carriage return, not sure if i need this
kmix and xmms do not start when i log in, in fact there is no indication that i even changed the config file. how do i make them run at startup? and how do i stop this red hat network up2date thing in my system tray from running at startup since it doesn't work anyway?
__________________
Windows XP Pro / Fedora Core 4
Pentium D
Pentium D
2gB DDR2 RAM
ATI Radeon 9250 (128mB DDR)
Reply With Quote
  #2  
Old 15th November 2005, 02:56 AM
nandowong's Avatar
nandowong Offline
Registered User
 
Join Date: Nov 2004
Posts: 511
try desktop, preferences, more prefs, session, startup programs and add them there. this is for gnome, but im sure kde has something similar
__________________
I dont pitch linux to my friends, I let windows do that for me :D
I like chicken :D
Reply With Quote
  #3  
Old 15th November 2005, 03:49 AM
mjmwired's Avatar
mjmwired Offline
Registered User
 
Join Date: Feb 2005
Posts: 204
Hi there, you are misunderstanding what 'rc.local' does. Basically it is launched at the end of the init process. However it has no idea if your X-server has started or not, so launching 'xmms' and 'kate' will not work. Furthermore, everything put in there will be run as root.

(** I really hope you're not running root as your own user login **)

A better way is to use KDE (or Gnome) to setup your desktop. I think both can preserve your desktop. Just open xmms and kate and when exiting, tell it to save your desktop, then each time you login it will open those (this is how I do it in Gnome).

The reason 'pure-ftpd' works is because it is a daemon (a service) and it requires no user output or X-server to run. However there is a BETTER way to run that also.

If you use 'chkconfig' (command line) you can control many services. Also 'serviceconf' in the gui will work.

To properly run pure-ftpd:
[root@charon ~]# chkconfig --level 35 pure-ftpd on

This runs it for both runlevel 3 (no xserver) and runlevel 5
Then for more help on how to control it:

[root@charon ~]# /etc/init.d/pure-ftpd help
Usage: pure-ftpd {start|stop|restart|reload|condrestart|status}

---

To disable up2date, start with disabling the Redhat Network daemon.

[root@charon ~]# chkconfig --level 35 rhnsd off

You can also remove any rpms you may not want

[root@charon ~]# rpm -qa | grep up2date
up2date-4.4.23-4
up2date-gnome-4.4.23-4

# rpm -e up2date-gnome
# rpm -e up2date

I hope this helps.
Reply With Quote
  #4  
Old 15th November 2005, 06:26 AM
Alerander Offline
Registered User
 
Join Date: Jul 2005
Location: NJ
Posts: 359
Hey, Miranda!
I think i also learn some new stuff from your reply, thank you!
__________________
I've cleared XP from my box, what should i do then?
Blog:http://spaces.msn.com/members/liye19860923
-----------------------------------------------------------------------
ASUS M24C17 laptop:
Intel pentinum M 1.7G
512M RAM; 40G Hard-drive
Graphics chip: ATI9000
Modem: conxtant HSF modem
Reply With Quote
  #5  
Old 18th November 2005, 10:17 PM
karl_marx's Avatar
karl_marx Offline
Registered User
 
Join Date: Oct 2005
Location: Somewhere in the Andes...
Posts: 25
well i fixed that config file and then i looked around for a gui that would add a program to startup, but i didn't find one. is there a terminal command, or a config file? (the right one this time!)

why not use root as my user login?
__________________
Windows XP Pro / Fedora Core 4
Pentium D
Pentium D
2gB DDR2 RAM
ATI Radeon 9250 (128mB DDR)
Reply With Quote
  #6  
Old 19th November 2005, 10:11 AM
bitrain's Avatar
bitrain Offline
Registered User
 
Join Date: Nov 2004
Location: Netherlands
Age: 25
Posts: 1,426
You're using kde right? If you don't close the programs, they will open after a restart of kde.

Quote:
why not use root as my user login?
Cause it's dangerous to be root, you can screw up you're entire system. If you are a normal user you can do most normal things to (expept (un)installing programs). Just type 'su -' in a terminal to become root for those things.
__________________
Registered Linux user number 389291

Laptop: Nec Versa p550, Pentium M 1.86GHz, 1024MB ram, x300, 80 GB HD, bluetooth, 2915BG Wlan card
Desktop: Amd Athlon x2 4200+, 2GB ram, Geforce 7300GT 512MB silent, 160GB HD in a nice centurion 534 case :cool:
Reply With Quote
Reply

Tags
programs, startup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Startup programs for KDE focus_water Using Fedora 0 7th October 2007 02:52 PM
Startup Programs StormChaser Using Fedora 1 26th September 2007 11:45 PM
How do i run programs on startup? spacelobsters Using Fedora 4 13th February 2007 02:47 PM
Startup programs RichGags Using Fedora 7 8th February 2006 01:52 PM


Current GMT-time: 01:11 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat