[Dharma] FTP + Mounting Harddrives?
#1
Hi!

Maybe somebody could be so kind and explain to me how I install FPT and mount my internal harddisks...

Unfortunately everything seem to be different compared to pre-dharma-times.

sudo apt-get install vsftpd doesn't work anymore and sftp is imo to slow.

How can I automount my internal drives?

How can I change permissions, so I can create folders via ftp?

I'm kinda frustrated right now...

-----------------------------------------------------------------------------------

Thanks, problem solved.

If anyone stumbles into this thread via boardsearch/google:

FTP:

Code:
sudo apt-get update
sudo apt-get install vsftpd
sudo nano /etc/vsftpd.conf

Uncomment local_enable=YES
Uncomment write_enable=YES

Ctrl+O for saving
Ctrl+X to exit


Mounting harddrives:

1, Know, what you want to mount
Code:
sudo fdisk -l
It will shows you your Harddisks, for example "/dev/sdc1"

2, Create a mount-point
Code:
sudo mkdir /media/YOUR_DESIRED_FOLDERNAME
It's a simple folder, where you can find the content of your drive.

3, Edit /etc/fstab
Code:
sudo cp /etc/fstab /etc/fstab_backup
sudo nano /etc/fstab
Mount the drives permanently.
Add a line at the end:
/dev/sdc1 /media/YOUR_DESIRED_FOLDERNAME ext3 defaults 0 0

• ext3 = your filesystem
• the entries are separated through TAB
• save with CTRL+O
• exit with CTRL+X

4, Mount drives
Code:
sudo mount -a

5, Set permissions
Code:
sudo chown -R xbmc:xbmc /media/YOUR_DESIRED_FOLDERNAME
sudo chmod -R 777 /media/YOUR_DESIRED_FOLDERNAME
Reply
#2
I don't remember the steps I took to mount all of my drives but as far as an ftp server option it should just need to be turned on in your settings. Settings -> Network and there should be an option for FTP/SFTP in there. There was on 9.11. I'm assuming/hoping its still there.
Reply
#3
Thanks, problem solved.

If anyone stumbles into this thread via boardsearch/google:

FTP:

Code:
sudo apt-get update
sudo apt-get install vsftpd
sudo nano /etc/vsftpd.conf

Uncomment local_enable=YES
Uncomment write_enable=YES

Ctrl+O for saving
Ctrl+X to exit


Mounting harddrives:

1, Know, what you want to mount
Code:
sudo fdisk -l
It will shows you your Harddisks, for example "/dev/sdc1"

2, Create a mount-point
Code:
sudo mkdir /media/YOUR_DESIRED_FOLDERNAME
It's a simple folder, where you can find the content of your drive.

3, Edit /etc/fstab
Code:
sudo cp /etc/fstab /etc/fstab_backup
sudo nano /etc/fstab
Mount the drives permanently.
Add a line at the end:
/dev/sdc1 /media/YOUR_DESIRED_FOLDERNAME ext3 defaults 0 0

• ext3 = your filesystem
• the entries are separated through TAB
• save with CTRL+O
• exit with CTRL+X

4, Mount drives
Code:
sudo mount -a

5, Set permissions
Code:
sudo chown -R xbmc:xbmc /media/YOUR_DESIRED_FOLDERNAME
sudo chmod -R 777 /media/YOUR_DESIRED_FOLDERNAME
Reply
#4
having a little trouble with installing vsftp app.


sudo apt-get update
that funs fine, pulls down a long list of updates.

sudo apt-get install vsftp
Reading package lists.... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package vsftp
Reply
#5
edit:
should read
sudo apt-get install vsftpd
Reply
#6
ok vsftp installed.
Uncomment'ed "write_enable=YES"
saved, rebooted.

still not able to ftp/ssh etc as what I setup in xbmc network settings, BUT
I am able to login as my xbmc user on default port.

VERY strange.

with that said. I am able to control my xbmc via my iphone and web interface with the settings I have in the xbmc network settings tab.
Reply
#7
Thanks for the hint on my typo; fixed it.

Look in the config-file if localusers are allowed; uncomment it if not:

Code:
local_enable=YES
Reply
#8
Hi Evin, thanks for the step by step run down. I've managed to get it almost all done but I'm not sure what my file system is. The local hard drive has windows vista installed on it so I assume the partition is NTFS but this isn't recognised when I replace ext3 with it. What are the other options I can put in here?

EDIT: please disregard the above. I must have mistyped ntfs the first time - my tv resolution is quite poor. Worked like a charm, thanks Evin.
Reply

Logout Mark Read Team Forum Stats Members Help
[Dharma] FTP + Mounting Harddrives?0