Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: starting a program when kde loads

  1. #1

    starting a program when kde loads

    Hello,

    I am new to Linux and don't really know any of the commands or the file structure, so keep that in mind.
    I'm running Mandrake 10 and kde.
    I recently downloaded the seti at home client for Linux and finaly got it installed. It took me awhile to figure out how to do this from the command line. Now I would like to have it run automaticaly when I turn my system on.
    If you don;t know what seti at home is, it;s just one executable file. I used #!/bin/bash to make it work from the icon. Now all I need is to have this run at start up.

    Hope you can understand my jiberish.

    Thanks,
    gohbucks69

  2. #2

    Re: starting a program when kde loads

    If it's a bash script that starts the file, then simply put it in your /etc/rc.d/rc.local file.
    AMD Athlon 2200+ 1.8Ghz
    1280MB PC-3200 CAS2.5 RAM
    ATI Radeon 9600 Pro 128MB AGP
    Western Digital WDC WD2500JB-00FUA0 250GB 7200 rpm ATA/133
    Seagate ST3200822A 200GB 7200 rpm ATA/133
    Western Digital WDC WD1200BB-00CAA1 120GB 7200 rpm ATA/133
    Western Digital WDC WD800BB-00CAA1 80GB 7200 rpm ATA/133
    Maxtor OneTouch 2HA43R32 1TB 7200 rpm USB 2.0
    D-Link DFE-530TX+ 10/100 NIC
    D-Link DWL-G520 Rev.A
    Debian 5.0r1 Lenny

  3. #3

    Re: starting a program when kde loads

    OK, that worked. But, now I am using an add on program to monitor 5 different sessions of the client. When I try the same thing with this new program it doesn't work.

    #run at startup

    cd /home/wyatt/Desktop
    ./ksetiwatch
    fi

    This is what I tried. I know the path is right because it works in a command line, but it doesn't seem to work in the rclocal file. What have iI done wrong?

  4. #4

    Re: starting a program when kde loads

    Create a bash script:

    #!/bin/sh
    cd $HOME/Desktop
    ./ksetiwatch

    Then put that file whatever you call it in your rc.local.
    AMD Athlon 2200+ 1.8Ghz
    1280MB PC-3200 CAS2.5 RAM
    ATI Radeon 9600 Pro 128MB AGP
    Western Digital WDC WD2500JB-00FUA0 250GB 7200 rpm ATA/133
    Seagate ST3200822A 200GB 7200 rpm ATA/133
    Western Digital WDC WD1200BB-00CAA1 120GB 7200 rpm ATA/133
    Western Digital WDC WD800BB-00CAA1 80GB 7200 rpm ATA/133
    Maxtor OneTouch 2HA43R32 1TB 7200 rpm USB 2.0
    D-Link DFE-530TX+ 10/100 NIC
    D-Link DWL-G520 Rev.A
    Debian 5.0r1 Lenny

  5. #5

    Re: starting a program when kde loads

    Found this snippet of info for ya:

    To run programs or scripts during system startup (after everything else has started), add them to /etc/rc.local

    To run a program after every user's login, add it to /etc/.profile

    To run a program after a specefic user's login,
    add it to ~/.bash_profile

    (~/ means the users home drive. for example /home/frisky/.bash_profile)

    To run a program after Gnome/KDE etc are started, the setting can be specified in their control centers or whatever, or by editing the config files by hand (i dont know how to do this but will investigate if forced :-p)
    Its better to regret something you have done than to regret something you havent done :P

  6. #6

    Re: starting a program when kde loads

    ok, I guess I have alot to learn. It still didn't work in the rc.local file so I tried the profiles. I made them executable. Now system locks up when it gets to the login. I don't know any of the commands to be able to fix this in failsafe mode. Is there a way to start kde from failsafe? Or is there a way to change or delete these profiles and then reboot?
    I guess I'll go to the library and get some books before trying anything like this again. Does anyone know of any online courses for Unix/Linux?

  7. #7

    Re: starting a program when kde loads

    o dear lol

    are you logging in as a user or as root?

    you might be able to press ctrl + alt + F2 and get to a shell, then login ? Not sure with Mandrake.

    after that use the command line to change back the profiles.

    other wise sheesh..... try that first, depending on your knowledge maybe a re-install might be quickest?

    You shouldnt have to make those files executable and im not sure if you noticed but they are hidden shares, they have a . (period) in front of them
    Its better to regret something you have done than to regret something you havent done :P

  8. #8

    Re: starting a program when kde loads

    gohbucks69,

    Start by downloading and burning(be sure to surn the ISO properly) Knoppix 3.7. http://www.knoppix.org/

    This is a full linux distribution on a CD (based on debian).

    If you somehow render your computer inoperable, you can pop this in a fix things up by mounting the broken partitions and adjusting as necessary.

    To actually fix your issue, I need to know exactly what files you changed. This may be difficult to tell me since you cannot boot, so I suggest booting with knoppix, then looking around for your changes.

    Here are a couple of guesses as to what you should check:

    Code:
    -rw-r--r-- 1 root root 1047 Jan 10 2005 /etc/profile
    -rw-r--r-- 1 root root 2315 Jan 10 04:24 /etc/profile.env
    
     /etc/profile.d
    total 68
    -rw-r--r-- 1 root root 2399 Aug 4 20:08 tcsh-aliases
    -rw-r--r-- 1 root root 3597 Aug 4 20:08 tcsh-bindkey
    -rw-r--r-- 1 root root 45242 Aug 4 20:08 tcsh-complete
    -rw-r--r-- 1 root root 3271 Aug 4 20:08 tcsh-settings
    -rwxr-xr-x 1 root root  354 Oct 18 00:03 xprint.csh
    -rwxr-xr-x 1 root root  367 Oct 18 00:03 xprint.sh
    
    -rw------- 1 infamy users 5690 Jan 10 03:41 /home/infamy/.bash_history
    -rw-r--r-- 1 root  root  251 Nov 26 2003 /home/infamy/.bash_profile
    -rw-r--r-- 1 root  root  832 Nov 26 2003 /home/infamy/.bashrc

    Even farther back, your original question asked about autostarting applications. Since you are using Mandrake 10 and kde, I am also going to go out on a limb and assume that when you turn on your computer, you run at run level 5, and KDE starts up immediatly. So, the very easiest way to add an application would to have KDE auto start it. If you go to /home/<username>/.kde/Autostart, you can add links to applications you want to start when KDE starts. If you want to do this in a GUI, see here http://wiki.chem.indiana.edu/168.html.


    -Babbing

  9. #9

    Re: starting a program when kde loads

    thanks for all the info. I think I'm just going to reinstall for now since I obviously don't know what I'm doing. I did end up getting back in by running the install without reformatting, but everything is still pretty screwed up. All of my permissions have changed and I get alot of failure messages while booting -verbose. For now I've created a new user name so I can at least do some work and I'm going to burn a few things onto a disk if it works and just start over. Plus I found a place to order a bootable Mandrake disk for like 4 dollars, so I think I'll do that.

  10. #10

    Re: starting a program when kde loads

    grab that knoppix disk ASAP. I hosed myself in gentoo last night with a depclean, and it really saved my a$$ :P

Similar Threads

  1. Problems starting a program in rc.d
    By Schion65 in forum Redhat / Fedora
    Replies: 15
    Last Post: 06-19-2002, 03:29 PM
  2. Starting X in RH7.3
    By mrkeef in forum Redhat / Fedora
    Replies: 5
    Last Post: 05-27-2002, 04:09 PM
  3. Starting gdm
    By LiNuts in forum Linux - Software, Applications & Programming
    Replies: 7
    Last Post: 02-11-2002, 11:35 AM
  4. Thats it... I am starting over.
    By groundzero in forum Linux - Hardware, Networking & Security
    Replies: 16
    Last Post: 01-31-2002, 11:08 AM
  5. Starting X automatically...
    By irox in forum Linux - Software, Applications & Programming
    Replies: 11
    Last Post: 01-08-2002, 12:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •