Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, i've been looking for a solution for this for a while now, but I haven't been able to find an answer I've been satisfied with. I'm pretty new to linux so I didn't want to go editing files without asking here first.
I use red hat 9, and I'm trying to do some rmi stuff with java. I've seen that rh9 already has rmiregistry and rmic in the /usr/bin, but I've already installed java. Can I remove rmiregistry and rmic from /urs/bin? also, is there a file I can put a command in that would make rmiregistry start whenever I reboot the computer?
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748
Rep:
Depends. You can remove them, of course, but you might have problems if other programs need them. On the safe side, you can simply move them to another spot, then if something doesn't work, you can pop them back. As long as the spot isn't in your path (anywhere in your /home directory should do) you should be okay. You can use a similar technique for testing most files that you do edit.
For your startup, just add a link in /etc. You should have directories like /etc/rc.d, /etc/rc.0, or something similar. If you're booting into the GUI, then you need to edit rc.5 or whatever, and add a link to start your file. The best way is to look at the examples in those directories. 'cat <filename>' is the way to do it. Basically, it's just a file with the name of the file to run. There's also a number in front to tell you which files are getting run first, which is important if one needs to start before another.
Hey thanks for the quick reply,
but I'm still not sure exactly how to do this. I don't usually use the desktop, but I have it installed just in case. So this time I launched it, logged in as root again.
I went to /etc/rc.d/rc3.d/ and created a link to /usr/java/j2sdk1.4.2_02/bin/rmiregistry and named it rmiregistry. I might be an exception, but using cat on other files in that directory didn't really help me much because there are no other links in that directory but when I can the link I created the only fields filled in are the Exec and X-KDE-SubstituteUID which is set to false.
Unfortunately this still does not start the rmiregistry automatically. If there is something I'm doing wrong could you please point it out. Thanks again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.