check the permissions on the file ?
Categories: PogoPlug Development
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?
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
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!
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)
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.
Ok thanks for tip(s) - is there a way to uninstall/remove what I have done to start over?
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.
-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
By the way, you can install optware on wdtv http://forum.wdlxtv.com/viewtopic.php?f=40&t=2637&hilit=optware
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.
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.
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.
-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#
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.
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
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.
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.
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.
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!!
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.
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.

RSS


