:?
OK. I thought I knew a LITTLE about Linux before reading the posts in this forum. Now I realize my knowledge of Linux may be too limited to even ask intelligent questions!
I have not been able to find instructions for installing WD on Linux. Only fragmentary posts in the Forum on problems installing, etc. Are there instructions somewhere that I haven’t found?
How do I determine which version of WD to install, WDisplay or WDconsole? How do I know if I have xwindows or not? I was able to download WDconsole and unzip but that is all.
I don’t have a lot of time to devote to this but any help would be appreciated!
Given your comment of not having much time, I believe you want WDisplay. This is the package of software with the graphs.
WDconsole can be used to simply poll a select number of weather stations and create a raw data file. This data file can be shared by other WDconsole applications. In short, it allows you to setup a single server' (if you will) with multiple clients’ (WDisplay).
You should be warned the WDisplay software is extremely buggy. I would believe it’s fair to say Brian is in Alpha with this port.
I finally got around to trying to install WeatherD. I think I’m having permission problems.
I followed the instructions from WeatherWiki. WeatherD.tar.gz downloaded and uncompressed to create a wdisplay directory containing the WeatherD executable.
I checked the permissions of /dev/ttyS0 and they were not correct so I used su and then chmod 777 /dev/ttyS0. The result was lrwxtwxtwx (not crwxrwxrwx) but I proceeded anyway.
I also tried to change the permissions of WeatherD and the result was -rwxrwxrwx (not crwxrwxrwx). I proceeded anyway.
I then ran ./GoWeather.sh and the result was the following error message:
./WeatherD: error while loading shared libraries: libusbdll.so: cannot open shared object file: no such file or directory
So, it seems I have the files downloaded with the possible exception of libusbdll.so or maybe the permissions are not correct for that file? Any suggestions?
I have to inline my `GoWeather.sh’ script since the board doesn’t allow me to attach it - Brian, perhaps this is something you can fix?
#!/bin/bash
# Function to establish user id of current user.
# We call this function later on to test if they are ROOT and fail if they are.
getUID() {
id $1 | sed -e 's/(.*$//' -e 's/^uid=//'
}
# Test if user is root and deny access if they are.
# It is not a good idea to be running software as root.
if [ "`getUID`" = 0 ] ; then
echo "ERROR: You can't run this as ROOT. Change to another user and try again.";
exit;
fi
# End of User test.
DIR_PATH=`dirname $0`
# setup the path to inlcude our directory
export PATH="$DIR_PATH":"$PATH"
# If we made it this far we mustn't be root.
# Just set the library path.
export LD_LIBRARY_PATH=$DIR_PATH/deploy/
# Then run the program.
$DIR_PATH/WeatherD
exit $?
Chris (admin) would be the person to talk to about that
so i still do have the updated needed .sh file?
I will update it to this
the other solution is to change to root in the terminal and then copy the library files from the deploy folder to /usr/lib/
i.e
su
(then enter password)
then cd to the deploy folder
then go
cp lib*.* /usr/lib/
Thanks for all the suggestions. I tried Brian’s suggestion to copy the contents of the deploy folder to /usr/lib (while logged in under su). When I tried to run the ./GoWeather.sh script I got the same error message, that is, “error while loading shared libraries: libusbdll.so: cannot open shared object file: no such file or directory”.
I should note that I do not find a file with the name libusbdll.so in my deploy folder. Could it be possible that I don’t have the correct file? Did I make a mistake in the installation?
Pablo, thank you for sending the GoWeather.sh file but I don’t know what to do with it. Are you suggesting that I replace my existing GoWeather.sh file with the script you sent and try running that?
Coyote, I am running Xandros on a recently purchased eeePC from Asus. I know, its not a powerful machine but its actually remarkably capable. One thing I noticed that is different from the other versions of Linux that I’ve read other people post: The wdisplay directory and WeatherD.tar.gz were downloaded to “My Documents” directory. The full path is /home/user/My Documents. Don’t know if that makes any difference.
No. The libusbdll.so file is not in the deploy folder that I have. The deploy folder appeared automatically after I downloaded WeatherD.tar.gz so I assume it came when I downloaded that compressed file.
I’ve been somewhat staying away because I think `too many chefs spoils the meal’ … …
Let’s do this … first off, please undo the copying of the library files into /usr/lib. That’s a bad practice because on a re-install, you’ll lose those changes. Personally, I believe any files placed in /usr/lib should be handled via .rpm’s.
Get your system back to the way it was before you installed the software.
Once you’ve undone the previous suggestions/effort, unzip the bits into any directory of your choosing. Do not do this as `root’ (not sudo).
After unzip’ing cd to the directory and type the following and post the results:
find . -print
Next, please type `file GoWeather.sh’ and post the results of this too.
And finally, phew, type and post the results of the following:
when did you download the the WeatherD.tar.gz ?
strange that file is missing
try downloading again?
also I wonder Pablo if the problem with the .sh not working is with the libutils.so.1 file, in that I create that on my system , with my directory structure, but that does not work on other systms?