UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yesterday I installed ubuntu 10.10 on an old laptop I had lying around using the alternate install so I only have the command line. Basically, what I wanted to do was set it up as a bit torrent box which downloads to an external hard drive (FAT32) which then shares the contents of the drive as a samba share. So I've been able to mount the drive and I've installed the deluge torrent client which I can access via the web ui.I can see the shares that I've made on my other networked computers. I'm having two main problems though, firstly I cannot edit or delete files on my samba share, I'm not to worried about security considering I'm going to be the only one using it and I want to be able to move files around from my MacBook without going into the command line whenever I want to move a file. Secondly, deluge will not download to my external drive for some reason. Whenever I start the download with the save path to my external drive, the torrent just gets stuck at the checking stage and does nothing, on the other hand if I download to my home folder I have no trouble whatsoever and the torrent downloads fine. I'm thinking it's something to do with the permissions or the drive not mounting properly or something but as yet I haven't been able to figure it out. Any help is appreciated, thanks!
Um, I'm not sure what you mean by mount options. All I know is that I've set it up to mount at /media/PRIMARY. Deluge is running as the only user that I've made, I haven't tried running at as root yet.
As for my smb.conf, it has since managed to delete itself so the SAMBA share is now missing. I'm thinking that there would be an easier way to set up a SAMBA share through the GUI?
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
/dev/sdc1 on /media/sdc1 type vfat (rw)
/dev/sdb1 on /media/Primary type vfat (rw,noexec,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sdb1 on /media/Primary is the drive that I'm trying to set up Samba with.
If you're not sure if Samba is set up correctly, using webmin might help. I couldn't say for sure if it's in Ubuntu repo's though. http://www.webmin.com/
Quote:
Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely. See the standard modules page for a list of all the functions built into Webmin, or check out the screenshots.
Hi everyone, I've set up Samba and I'm sharing my files across the network. I can see them fine, create new folders and everything. I've got Transmission running for torrents, downloading to a directory on my drive. The problem I'm having it opening multi-part rar torrents. I've tried from my macbook with multiple programs, from window's machines and from linux itself through SSH but it still won't work. I get a message something like 'the contents of the file cannot be extracted with this program' and 'torrent.rar is not RAR archive, No files to extract'. I've tried copying the files to my hard drive and unraring them but it's also not working. Any ideas? I might go back to deluge if this isn't working.
EDIT: I've just managed to find out that on the .rar files themselves I seem to only have read permission, I guess that will do it. Is there anyway to make sure that I have full permissions on all directories and files created?
Just so we get an idea as which user and with which perms the
drive is being handled. Does the drive get mounted via udev
hot-plugging, has it got an /etc/fstab entry?
Let's get the torrent side of things working first, then tackle
samba after that.
Using the uid & gid mount options, you can change the ownership of the filesystem on the vfat external drive.
What is the size of the files? You may be exceeding filesize limitations of fat32. If you use samba to transfer files to your Mac, you can use a linux filesystem on the external drive to remove this limitation.
If not, transfer the rar files and unrar them on the mac.
Using the uid & gid mount options, you can change the ownership of the filesystem on the vfat external drive.
What is the size of the files? You may be exceeding filesize limitations of fat32. If you use samba to transfer files to your Mac, you can use a linux filesystem on the external drive to remove this limitation.
If not, transfer the rar files and unrar them on the mac.
ls -l /media/PRIMARY_ (had to run as root got permission denied)
total 0
I have no idea about the udev thing, and no it doesn't have an fstab entry.
I think I've got the torrent thing working, I can download to the drive, I just can't unrar files from the torrents. :?
Thanks
OK, so if your respective torrent client doesn't run as root
it won't be able to write to the device - not a desirable status
of things. As I have no idea how *buntu determines what options
to use for the auto-mount (where did you do the change from
Primary to PRIMARY_, btw?) and there's no fstab entry I'm moving
this over to *buntu for more specific advice. In Slackware (RedHat,
... ) I'd just modify the relevant fstab line to a) have a umask
of 775, and b) add a uid=xxx that matches the user running the
torrent client.
I changed Primary to PRIMARY_ by reformatting the drive, didn't do it on purpose lol.
I'm about to go test it out and see if it works. Will I have to redownload the torrent to see if it works or should I just be able to unrar straight away?
EDIT: The weird thing is, on my mac it's showing up that I can read and write in all the files and folders. Do I also need execute permissions to unrar files?
Hard-coding the external drive w/ a something like /dev/sdb2 bears
a certain risk ... if you ever add another device it may come out
as a DIFFERENT drive, e.g., /dev/sdc2 or /dev/sdf2 ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.