LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 02-15-2008, 06:45 AM   #1
bjh
Member
 
Registered: Oct 2007
Posts: 48

Rep: Reputation: 15
Question DSL, OWFS, CURL and FUSE ? Any experts here?


Hi,

I'd like some help getting DSL, OWFS , CURL and FUSE all to work together as advertised. Any experts here?

I have had a thread going on the DSL forum this week but still have not found better than a work around.

In a nut shell, I can get the OWFS to work with the latest DSL except that the local file system access to the 1wire devices isn't there. FUSE is touted as the miracle by which this should happen. I have FUSE loaded and installed but no go. My work around is to use the //localhost interface.

I have seen it all work together, with a prepackaged DSL iso version at the OWFS download site but it is quite an old version of DSL and I cannot get CURL to work on it. I am not too interested in putting time into the old DSL version and am concentrating on the new one.

Suggestions anyone?

Thanks and best regards,

Brian H.
Toronto Ont.
 
Old 02-15-2008, 07:10 PM   #2
alfille
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
I'd like some help getting DSL, OWFS , CURL and FUSE all to work together as advertised. Any experts here?
---------------------------------------
Well, I have some expertise, having written owfs and the earlier dsl support.

CURL should be an independent issue, it expects to access a web server, so owhttpd (the webserver version of owfs) will be your access.

How are you installing owfs? Building it under DSL or installing it from an rpm or deb file? I ask, because the problem could be:
1. building on DSL needs the FUSE header file, usually in fuse-dev
2. The pre-built versions were probably built in 2.6 kernel machines and perhaps will have problems with 2.4 kernels.

If you start owfs with debugging (owfs -u -m 1wire --error_level=9 --foreground) you should get more information. Please post what you see.

Paul Alfille

P.S. When you get it all working, can you help me post a newer owfs-dsl file?

Last edited by alfille; 02-15-2008 at 07:11 PM.
 
Old 02-16-2008, 09:06 PM   #3
bjh
Member
 
Registered: Oct 2007
Posts: 48

Original Poster
Rep: Reputation: 15
loading from mydsl>uci

Hi Paul,

Thanks for weighing in on this, I couldn't imagine a better expert to have advice from. I feel I've hit the motherlode!

First off, I have been using the owfs.uci from ibiblio as follows:

The info file for which says:

Quote:
Title: owfs.uci
Description: One Wire File System
Version: 2.2
Author: http://owfs.sourceforge.net
Original-site: http://owfs.sourceforge.net
Copying-policy: GPL
-----==[ Color = blue Filesize: 181K ]==-----
Extension-by: Paul Alfille (palfille@earthlink.net)
Comments: Use Dallas 1-wire sensors from the command line
Change-log:
Current: 08/21/2005 - First
If there is a better source or version, I am so far unaware of it.

I have been starting OWFS with the owfs.all script, borrowed from your mydsl.iso at the OWFS download site.

I will restart OWFS with the debugging as you suggest and post the results ASAP.

Quote:
When you get it all working, can you help me post a newer owfs-dsl file?
Of course, you bet!

Thanks again,

Brian H.

Last edited by bjh; 02-16-2008 at 09:09 PM. Reason: clarification
 
Old 02-19-2008, 01:04 PM   #4
bjh
Member
 
Registered: Oct 2007
Posts: 48

Original Poster
Rep: Reputation: 15
owfs with debug mode

Ok I tried the running OWFS with debug as suggested:

Quote:
owfs -u -m 1wire --error_level=9 --foreground
First off, it objects to the -m and claims not to know about that one.--help and --morehelp seem to concur.

Quote:
invalid option --m
--help:
Quote:
1-wire access programs
By Paul H Alfille and others. See http://owfs.sourceforge.net

Syntax: /opt/owfs/bin/owfs.bin [options] device mountpoint

1-wire side (device):
-d --device devicename |Serial port device name of 1-wire adapter
| e.g: -d /dev/ttyS0
-u --usb [number] |USB 1-wire adapter. Choose first one unless number specified
| e.g: -u -u3 first and third USB 1wire adapters
-s --server [host:]port |owserver program that talks to adapter. Give tcp/ip address.
| e.g: -s embeddedhost:3030


Client side:
mountpoint |Directory the 1-wire filesystem is mounted

-h --help |This basic help page
--morehelp |Optional items help page

--morehelp:
Quote:
1-wire access programs
By Paul H Alfille and others. See http://owfs.sourceforge.net

-C --Celsius |Celsius(default) temperature scale
-F --Fahrenheit |Fahrenheit temperature scale
-K --Kelvin |Kelvin temperature scale
-R --Rankine |Rankine temperature scale
-P --pid_file |file where program id (pid) will be stored
--background |become a deamon process(default)
--foreground |stay in foreground
-r --readonly |no writing to 1-wire bus
-w --write |allow reading and writing to bus(default)
-t |cache timeout (in seconds)
-f --format |format for 1-wire unique serial IDs display
| f[.]i[[.]c] f-amily i-d c-rc (all in hex)
--error_print |Where information/error messages are printed
| 0-mixed(default) 1-syslog 2-stderr 3-suppressed
--error_level |What kind of information is printed
| 0-fatal 1-connections 2-calls 3-data
-V --version |Program and library versions
--fuse_opt |Options to send to fuse_mount (must be quoted)
| e.g: --fuse_opt="-x -f"

-h --help |Basic help page
--morehelp |This optional items help page
When I run the lines of the owfs.all script manually by typing each at the command prompt, I get no arguements until I reach the line:

Quote:
opt/owfs/bin/owfs.bin -s 3333 /home/dsl/1wire
where upon, it reports:

Quote:
fusermount: mount failed: Operation not permitted
This is beginning to feel like a file permissions issue to me. Do I need to change file permissions to allow OWFS to access the /home/dsl/1 wire directory ?

Also, in the old canned version of mydsl packaged with OWFS, the OWFS.all is in, and run from, the /opt/OWFS/bin directory. I cannot seem to write it to there, as dsl tells me its a read only file system, so I have been running it from the /home/dsl directory. Might that be an issue ?

Thanks,

Brian H.
 
Old 02-20-2008, 05:58 AM   #5
alfille
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
Hi Brian,

My original recommendations were before I realized you were using the (older) pre-packaged version of OWFS.

You are right, the "-m" option wasn't implemented back then (the function was there, but we didn't need "-m" until new features threatened ambiguity).

Since all your problems come from FUSE, I suspect that a new version would work with the newer fuse.

One suggestion would be to try "sudo modprobe fuse" first.

owfs.all is a setup script that tries to load fuse (it wasn't included in older dsl version, like 1.2) load the library path, and then run owfs (renamed owfs.bin I think).

The read-only file access is DSL's approach to the filesystem. It's probably a loopback directory located in a compressed file, but I don't know for sure.

Perhaps the easiest would be a new version of everything. It's possible that a standard Ubuntu or debian package would work -- let me experiment.

Paul Alfille

Last edited by alfille; 02-20-2008 at 05:59 AM.
 
Old 02-20-2008, 07:19 AM   #6
bjh
Member
 
Registered: Oct 2007
Posts: 48

Original Poster
Rep: Reputation: 15
My habitual start sequence

Hi Paul

Here is the sequence I habitually have been going through to start OWFS, based on suggestions at the dsl forum noted earlier.
  1. Starting from a fresh boot from the CD.
  2. Install ntfsprogs-2.uci from the my dsl control panel.
  3. Install fuse with 'sudo modprobe fuse' at the command prompt.
  4. Install OWFS.uci from the uci section of mydsl.
  5. Run the OWFS start script borrowed from the other older DSL version packaged with OWFS

Quote:
Perhaps the easiest would be a new version of everything.
Sounds good to me. Thanks for the assist.

Brian H.
 
Old 02-26-2008, 12:34 PM   #7
bjh
Member
 
Registered: Oct 2007
Posts: 48

Original Poster
Rep: Reputation: 15
Not to nag but .................

Hi Paul,

Any progress ?

Thanks,

Brian H
 
Old 03-08-2008, 11:04 AM   #8
alfille
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
New version OWFS available for Damn Small Linux!

Just uploaded a new version.

Probably in the "testing area".

It is also on the owfs website at http://sourceforge.net/project/showf...group_id=85502

Change the file names from owfs-2.7p4.* to owfs.*

Paul Alfille
 
Old 03-14-2008, 01:02 PM   #9
bjh
Member
 
Registered: Oct 2007
Posts: 48

Original Poster
Rep: Reputation: 15
I must be missing something

Hi Paul,

Thanks for the new version, I am not having any joy with it however.

I confirm it as the 2.7 version and d/l it from the testing area of the ibiblio repository. It installs fine apparently, but when I invoke it using the 'run all OWFS programs' under mydsl/OWFS, it only starts up the browser window and creates the /hpme/dsl/1wire directory, but it doesn't see the serial 1wire controller on my serial port and shows that there are no 1wire devices connected in both the filesystem and web 1wire directories. I don't have any usb 1wire controllers sad to say.

If I reboot my computer and run the old version, I can at least see the connected 1wire devices through the web interface at port 3001.

I have compared the start.all scripts from old and new OWFS versions and it looks like a serial 1wire contoller should work. Am I missing something?

I'll try it on my other system at home tonight to see if it behaves same or different.

Thanks and best regards,

Brian H.
 
Old 03-15-2008, 10:24 AM   #10
alfille
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
Rather than use the intermediate version I sent you, take a look at the official DSL site. There is a new version there (based on OWFS 2.7p4) that works pretty well, in my test scenario.

Paul Alfille
 
Old 03-17-2008, 06:13 PM   #11
bjh
Member
 
Registered: Oct 2007
Posts: 48

Original Poster
Rep: Reputation: 15
can'i find it..

Sorry Paul but I have looked the dsl site & forums over but cannot find the new version's location. Can you be a bit more specific as to its where abouts?

Thanks,

Brian H.
 
Old 03-18-2008, 06:01 AM   #12
alfille
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
OWFS package locations for Damn Small Linux

Under "Testing"
e.g.ftp://ftp.oss.cc.gatech.edu/pub/linu...sting/owfs.uci

or on the owfs site:
https://sourceforge.net/project/show...ckage_id=88590

Paul Alfille
 
Old 03-18-2008, 11:06 AM   #13
bjh
Member
 
Registered: Oct 2007
Posts: 48

Original Poster
Rep: Reputation: 15
not working

Here is the sequence I use to start OWFS:.


  1. Starting from a fresh boot from the CD.
  2. Install ntfsprogs-2.uci from the my dsl control panel.
  3. Install fuse with 'sudo modprobe fuse' at the command prompt.
  4. D/L owfs.uci to ~/ from ftp://ftp.oss.cc.gatech.edu/pub/linu...sting/owfs.uci
  5. Move owfs.uci to mydsl/
  6. Open mydsl browser and Load Local/owfs.uci

I get the /1wire directory in a different path now:

ramdisk/tmp/1wire instead of ramdisk/home/dsl/1wire


but still my 1wire devices are not recognized or available either to the local file system or to the html port 3001.

Perhaps fuse is still not setup properly ? How have you setup fuse on your testbed system?

Thanks,

Brian H.
 
Old 03-18-2008, 07:36 PM   #14
SilentSam
Member
 
Registered: Aug 2007
Location: Ottawa
Distribution: Arch Linux/Kubuntu/OpenSUSE
Posts: 300

Rep: Reputation: 37
Does your user account have permissions to the fuse group?
 
Old 03-19-2008, 11:54 AM   #15
alfille
LQ Newbie
 
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
Ok, let's figure this out in order.

After you have done the sequence you describe, I presume you run "owfs-startall" from the Mydsl menu.

Can you then start an XShell window and type "ps axf | grep ow" to see all the programs running. owserver, owhttpd, owfs and owftpd should all appear.

The next step, in that same window is to type "owdir" which should show the list of devices, or at least "statistics, uncached, structure, ..."

Paul Alfille

Also, what version of DSL are you running. The current uci was created under 4.2.5.
 
  


Reply

Tags
dsl



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
FUSE works but fuse group does not exist? violagirl23 Linux - Software 3 01-21-2008 04:01 AM
curl problem in fuse shahidbashir7861 Linux - Software 7 04-06-2007 04:17 PM
Fuse / Modprobe Help Jude Lucien Debian 7 07-11-2006 03:44 PM
EncFS and fuse EdoardoC MEPIS 0 05-26-2005 11:33 AM
Linux: By Experts - For Experts Cinematography General 10 05-12-2005 02:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration