Pelican Parts Forums

Pelican Parts Forums (http://forums.pelicanparts.com/)
-   Off Topic Discussions (http://forums.pelicanparts.com/off-topic-discussions/)
-   -   The Ultimate Linux Thread (http://forums.pelicanparts.com/off-topic-discussions/191586-ultimate-linux-thread.html)

widebody911 11-17-2004 12:55 PM

So, you do a ps, and don't see your processes; have you validated that they really are running?

What are the perms on /proc?

To start something as root as another user, use su

su weather -c "/your/comand/here "

Quote:

Originally posted by bryanthompson

I have a box running RH9, and when I start it up and ps -A, I can see tons of mysql processes running. I have a java program that uses a mysql database, but it won't pick up those mysql processes... either they're some other type, or they're running on the wrong port, or there's a bigger problem. Anyway, if I /usr/local/mysql/bin/mysqld_safe & from root then run my java prog, it all works fine.

Anyway... I added my mysqld_safe command to my /etc/rc.local and rebooted, but didn't see it in my process list, and my java prog didn't see it either. I tried running the startup command from the terminal, and it yelled at me saying that it was already in use.

What I need to do, is have it so when the computer's turned on it will start the mysql server, then run my java program. I'd like to have the java program run as user "weather" and the mysqld started as root.


dd74 11-17-2004 01:52 PM

Here's an idea: tell me if I'm misguided...

I can purchase a good external drive dedicated to testing out flavors of Linux. Just hook the drive up to one of my laptops, download the latest flavor, ISO format it to CDR or CDRW, then execute onto the external. Plug and play afterward.

What do you guys think?

SmileWavy

Shuie 11-17-2004 05:11 PM

dd, did you get the MEPIS disk?

dd74 11-17-2004 06:23 PM

Quote:

Originally posted by Shuie
dd, did you get the MEPIS disk?
Not yet. I'm sure it's just a little held up with the post office. I'm patient. :)

FastDave 11-18-2004 01:47 PM

Jeff uses Linux for his OS. He loves Linux, so if you have a question he can't answer I guarantee you he will find the answer. I think his brain is in binary code! ha He has even taught his teachers some tricks at the technical college he attends. He is currently working on his A+ certification and Cisco certification. The questions will also help him learn more and possibly teach you something too....
He's my son, so I think more of him than most if you can't tell! ha

FastDave 11-18-2004 01:50 PM

*

bryanthompson 11-18-2004 01:53 PM

Thom -

Yeah, when I ps -A to see everything, I don't see the java command running, but I finally did get the correct sql service going. In my /etc/init.d (I think... may need to check that) I have an entry like...

su -c weather - "/home/weather/java/run.sh"

and my run.sh looks something like:

#! /bin/sh
cd /home/weather/java
java -noverify DataGrabber

If I run the .sh from terminal, it runs fine... I'm just not getting it to run at startup correctly...

widebody911 11-18-2004 02:35 PM

Quote:

Originally posted by bryanthompson

#! /bin/sh
cd /home/weather/java
java -noverify DataGrabber

If I run the .sh from terminal, it runs fine... I'm just not getting it to run at startup correctly...

Remember that in the init scripts, there isn't much of an evironment. Add an explicit "PATH=(your path here); export PATH" to the 2nd line of your startup script.

You can also turn on debugging, redirect stderr to a file, reboot, and look at the contents of the file to see what's going on.

#! /bin/sh
PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin
export PATH
set -x
exec 2> /tmp/weather.log

cd /home/weather/java
java -noverify DataGrabber

id10t 11-18-2004 04:24 PM

Its just not finding the java executable to run the java program with. At a command prompt, type

which java

And it may return something like
/usr/local/j2sdk/bin/java

Edit the startup script that is calling the weather app (in /etc/init.d from your earlier post) and change the last line from

java -noverify DataGrabber

to

/whatever/which/output/for/you/java -noverify DataGrabber

And it should work.

Wrecked944 12-30-2004 12:26 PM

Count me in, brothers. I bought an older laptop (366mhz) on a lark just to see if I could get Linux to make it sing. Tried a couple of the popular Live CD Distros (Slax, Knoppix 36, Knoppix 3.7, Mepis, Knoppix-STD) and now I am hooked. Finally settled on Mepis and installed it on the hard drive. Works like a champ - even on my ancient laptop. Now I'm burning Linux CD's and giving them away to friends to share the love. I can't believe how well this system works on just 128meg of RAM. So I haven't bothered to investigate any Linux speed tweaks - but I'll probably get around to it some day.

Just curiosity, does anybody have a handle on how secure or insecure Linux is? I tried Mepis mainly because it comes with a firewall that automatically installs itself. So that seemed sweet. Fell in love with it when it auto-configured all of my hardware without any human interference (well, except for my scroll mouse which is still DOA).

Anyway, I am a convert. Seems to be the only case where you don't get what you pay for. I've used the free web browsers, FTP app, text processor, calculator, graphics viewer, etc etc and it all seems to be pretty top quality stuff. I can find nothing to complain about. :D

cstreit 12-30-2004 01:20 PM

Hmm... I downloaded Knoppix a few months back to hack into some files that Windoze wouldn't let me delete...

Prollum is, I use a bootable CD-ROM and it won't let me access anything on my drives... Is there a way to point to your DOS partitions with it?

masraum 12-31-2004 07:57 AM

Chris, I believe you should be able to map the DOS drives to knoppix, but it's been a while since i tinkered, so hopefully one of the other fellas will give you the specifics.

VMWare rocks. If you get a Linux session running in VMWare you can map your Windows partitions, put files in them, and then they are accessible in your host OS.

Linux is much more secure than Windows if you take some time to make it that way. Some distributions can leave lots of open ports during install. Getting a firewall running on the box is a good idea on any OS.

bombardius 01-05-2005 10:06 AM

You should be able to mount the hard disk partitions. If i remember correctly knoppix provides mount points. Also, I was under the impression that it automounted whatever disk partitions it could. If you could give me the output (command line) of the 'mount' command. Also, is the disk IDE or SCSI? There are a number of things that could be contributing to this. E-mail me at mjb8@lehigh.edu or AIM s/n bombardius. We'll figure this out

-mike



baby on the way
(and by 'baby' i mean '72 2.0 914)


All times are GMT -8. The time now is 08:05 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website


DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.