OUR NETWORK:TiVoCommunity TechLore MyOpenRouter Dijit Community MediaSmart Home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 1211190.0
April 7, 2011 07:19 PM

Categories: PogoPlug Development

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

bubbajoe

Member
Joined: 03/26/2011

I used this to install sambahttp://www.ctrlaltdeleted.com/?p=3 I can see the smb file thru putty using the vi command but cannot edit it?

Discussion:    Add a Comment | Comments 1-25 of 55 | Latest Comment | 1 2 3 Next »

April 8, 2011 10:32 AM

check the permissions on the file ?

April 8, 2011 10:51 AM

I am a real newb how do you do that?

April 8, 2011 2:31 PM

ls -l /opt/etc/samba/smb.conf

April 8, 2011 4:53 PM updated: April 8, 2011 5:35 PM

I typed this in - thanks for helping!


-bash-3.2# ls -| /opt/etc/samba/smb.conf


I got back the below

-bash: /opt/etc/samba/smb.conf: Permission denied
ls: -: No such file or directory
-bash-3.2#

side note I am logged in thru SSH(made my own password thru pogoweb ui) root

April 12, 2011 12:50 PM

When you say that you can see your smb file, where is it?

April 12, 2011 5:51 PM

OddballHero said: When you say that you can see your smb file, where is it?

vi /opt/etc/samba/smb.conf

any help is appreciated!

April 12, 2011 7:46 PM

So what does it say when you type "mount".

April 12, 2011 8:06 PM

OddballHero said: So what does it say when you type "mount".
-bash-3.2# mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /tmp type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)

April 12, 2011 8:51 PM updated: April 12, 2011 9:02 PM

So you put your /opt on your root filesystem instead of on a usb flash or mtdblock3. That is why you can't edit the smb.conf since it is on a (ro) read only filesystem. So basically, it would be safer to place your optware (the samba files in /opt) on a usb flash or at least the mtdblock3 partition on the plug (although still better to place it on a cheap usb.). This is the step you forgot in the guide you used above (mount /dev/mtdblock3 /opt). You should have a call to this in /etc/init.d/rcS so that it will automatically mount /dev/mtdblock3 on /opt which was not shown when you typed "mount". Having /opt contents on the read only root filesystem is dangerous and impractical. This is because to configure samba, you would have to make it writeable and you can damage the filesystem. Also, samba can have log and lock files that need to be on a writeable filesystem. You might want to get some local help to get you started on setting up samba. There are detailed instructions on http://www.nslu2-linux.org/wiki/Main/PlugComputers but you need to read it thoroughly and try to understand it completely.

PS: You also might want to place the call to S80samba in rcS so that samba is automatically called on startup. It is advisable to make a backup of rcS before you edit it like "cp rcS rcS.original". If you mess up your rcS file, the system may not boot up.

Addendum: There is no mtdblock3 on the newer pogoplug pro, video.

April 12, 2011 9:02 PM

Ok thanks for tip(s) - is there a way to uninstall/remove what I have done to start over?

April 12, 2011 9:05 PM

Why don't you type "ls -la /opt" and show/see whats there first since you may have installed samba on /dev/mtdblock3 and you really don't have to do anything. You may want to reload this page since I added information since you responded.

April 12, 2011 9:09 PM

-bash-3.2# ls -la /opt
drwxr-xr-x 2 root root 0 Apr 7 22:19 .
drwxr-xr-x 15 root root 0 May 14 2010 ..
-bash-3.2#


I should have mentioned pink pogo v2

April 12, 2011 9:11 PM

By the way, you can install optware on wdtv http://forum.wdlxtv.com/viewtopic.php?f=40&t=2637&hilit=optware

April 12, 2011 9:14 PM updated: April 12, 2011 9:15 PM

Thanks, the original reason I am looking into this is that I would like to stream MKV from the pogo to the wdtv, I thought that it was able out of the box. Should have read up on it more.

Again thanks for the all the assistance, I am brand new to any of this. Firmware flashing I am ok, but this is real hard for me to grasp for some reason.

April 12, 2011 9:15 PM

Looks like you are okay since /opt on your system is only a mount point. In fact all the work you did may have been saved on mtdblock3. So if you type "mount /dev/mtdblock3 /opt", all the work you did may have been saved there. Then if you type "mount /dev/mtdblock3 /opt" then type "mount" and see that /dev/mtdblock3 is mounted on /opt, you can type "ls -la /opt" again and all your files are there and you can edit your smb.conf file.

April 12, 2011 9:18 PM updated: April 12, 2011 9:19 PM

The pink pogo along with the original V1 are probably the best of the bunch.

The V1 is basically an old sheevaplug (somewhat) with pogoplug software.

April 12, 2011 9:18 PM

-bash-3.2# mount /dev/mtdblock3 /opt
-bash-3.2# mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /tmp type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/mtdblock3 on /opt type jffs2 (rw)
-bash-3.2#

-bash-3.2# ls -la /opt
drwxr-xr-x 10 root root 0 Apr 8 00:11 .
drwxr-xr-x 15 root root 0 May 14 2010 ..
drwxr-xr-x 2 root root 0 Apr 8 00:11 bin
drwxr-xr-x 6 root root 0 Apr 8 00:11 etc
-rw-r--r-- 1 root root 74460 Apr 7 22:21 ipkg-opt_0.99.163-10_arm.ipk
drwxr-xr-x 4 root root 0 Apr 8 00:11 lib
drwxr-xr-x 6 root root 0 Nov 2 02:47 man
drwxr-xr-x 2 root root 0 Apr 8 00:11 sbin
drwxr-xr-x 7 root root 0 Apr 8 00:11 share
drwxr-xr-x 5 root root 0 Apr 7 22:44 var
-bash-3.2#

April 12, 2011 9:22 PM updated: April 12, 2011 9:24 PM

Looks like you are good to go and only need to carefully add to your /etc/init.d/rcS towards the end:

mount /dev/mtdblock3 /opt
/opt/etc/init.d/S80samba start

Addendum:
To do this, you need to make the root filesystem writeable with "mount -o remount,rw /" type "mount" to verify that the root filesystem is writeable.

April 12, 2011 9:24 PM updated: April 12, 2011 9:26 PM

Ok tried and still cannot edit
sample below: trying to change workgroup with backspace and cursor moves - delete just changes from caps to lowercase and vice versa.
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = WORKGroup

# server string is the equivalent of the NT Description field
server string = Samba Optware Server

# This option is important for security. It allows you to restrict
- /opt/etc/samba/smb.conf

ooops just read your post above will try

not sure what you mean by: add to your /etc/init.d/rcS towards the end

April 12, 2011 9:28 PM

Then reboot to verify that everything works.
When you type "ps" after rebooting, you should see smbd and nmbd loaded. Type "mount" to verify /dev/mtdblock3 is mounted on /opt and "ls -la /opt/etc/samba" should have your smb.conf file.

April 12, 2011 9:31 PM

Ok, /etc/init.d/rcS is the file that pogoplug's linux use to start up the system. Anything you place in rcS is executed on start up. You don't want to mess it up!!!! So to automatically mount /opt and start samba when you turn on the pogoplug, you make your modifications above at the end of this file in that order.

April 12, 2011 9:38 PM

I am now assuming that you are not really familiar with vi editor. You may want to install nano editor. You can type "/opt/bin/ipkg install nano". Then you can use "/opt/bin/nano -w /opt/etc/samba/smb.conf" to edit the file. Or "/opt/bin/nano -w /etc/init.d/rcS" after backing it up as above.

April 12, 2011 10:07 PM

Ok thanks!! got the smb file edited - rebooted and started samba. Have not edited the rcs file yet - will try to access the pogo to stream MKV to the wdtv first -


thanks again!!

April 13, 2011 5:41 AM

Thanks again for your, I can see the pogoplug as a network share with WDTV, just can't see any of the media. Only folders is tmp. I will take a look around the board to see if there are any tips.

April 13, 2011 7:15 PM

So if you connect the drive and type "mount" it does not show under the /tmp/.cemnt/ directory? You did modify smb.conf with "path = /tmp/.cemnt" like the directions you originally used? The drive to be shared should be mounted as "/tmp/.cemnt/mnt_sda1" or something similar. It might take a while to show up on the pogoplug if it has never been indexed.

Discussion:    Add a Comment | Back to Top | Comments 1-25 of 55 | Latest Comment | 1 2 3 Next »

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window