Everything posted by j44rs4
-
A guide to run VSFTPD on your Unraid-server.
The reason for that line is that if you want to share your movies with others, you make it read only for them. I would'nt advice you to delete that line, in stead make another folder in your ftp-share called surveilance or cams to record your stream. With this configuration/guide, you also have read/write access to your FTP's root-folder, so you are free to make a folder for uploading and record what ever you like.
-
ProFTPD Plugin for unRAID v6.8.x
Hi, PlanetDyna. I just made a guide on how to setup vsftpd:
-
A guide to run VSFTPD on your Unraid-server.
DISCLAIMER: There are some commands that can lead to loss of data if misspelled or if you don't know what they perform. Please read the guide first, berfore tempting to make any changes, and make sure you understand the consequences of making changes to your system. I take no responsibility for others system. You make your own decisions. Since upgrading to UR 7.0 broke the well known ProFTPD, I decided to try and give you a simple guide on how to configure VSFTPD. As some of you know, VSFTPD come as a built-in service in Unraid, but many find it hard to setup. One of the main reasons, are due to reset of the config and the service on the next restart of UR. Bare in mind, that there might be some configuration faults in the vsftpd.conf file, so please guide me if there is something wrong. This have worked for my setup, so there might be other configs you rather prefere. Lets get started. The first thing you need to do, is setup a user account in Unraids "Users" settings. There are many guides on the net, on how to create this. I decided to create some Test-users (test, test1, test2), but you can use whatever name you want. It is not necessary to give the user any share rights, but it will be usefull if you want the user to be able to map shares locally in your network. | You also need to create a share to allow FTP into. Mine says FTP, and contains no files. Next, start the Terminal windows in your upper right corner of UR, and type the following. nano /boot/config/vsftpd.conf This will open an linux editor. Paste the following lines into the editor. # vsftpd.conf for unRAID # with suggestions from forum user 'nars' # connect_from_port_20=YES write_enable=YES chroot_local_user=YES allow_writeable_chroot=YES local_root=/mnt/user/FTP local_umask=0 # # No anonymous logins anonymous_enable=NO # # Allow only local vsftpd.user_list users to log in. local_enable=YES userlist_enable=YES userlist_deny=NO userlist_file=/boot/config/vsftpd.user_list check_shell=NO # # Logging to syslog syslog_enable=YES log_ftp_protocol=NO xferlog_enable=NO # # Misc. dirmessage_enable=NO ls_recurse_enable=YES listen=NO seccomp_sandbox=NO # # Enable PASSIVE mode pasv_enable=Yes pasv_min_port=60000 pasv_max_port=65535 To exit the editor simply press the key comination of CTRL and X. You will be asked to "Save modified buffer?", press Y, and next hit ENTER when asked "File Name to Write:" You have now created a general config for use with VSFTPD, with some extra parameters. # To jail the user to specific folder chroot_local_user=YES allow_writeable_chroot=YES # You might want to change this setting into your share folder. Mine share folder is FTP, see pic. above. local_root=/mnt/user/FTP # Prevent the user from seeing and accessing shares higher up in the tree. ls_recurse_enable=NO # Enable PASSIVE mode, is usefull behind router/firewalls, and need to open ports. pasv_enable=Yes pasv_min_port=60000 pasv_max_port=65535 Now open up Apps in your UR menu and search for User scripts, and install it. The reason why I choose this plugins instead of writing everything into /boot/config/go file, is to simplify the configuration of users accessing the FTP-server, and to do some other tweaks i.e. add some share folders. Start the plugin, and chose "ADD NEW SCRIPT" and give it a name, then paste the following lines into the editor, and save. cp /boot/config/vsftpd.conf /etc/vsftpd.conf /usr/local/emhttp/plugins/dynamix/scripts/ftpusers '1' 'test test1 test2' Explaining the config: # This line copies the newly created config file, and replaces the original in /etc/vsftpd.conf. Don't worry, this will make no harm to the original config file, as it resets when you reboot your server cp /boot/config/vsftpd.conf /etc/vsftpd.conf # This line enables the service, and allow the users test, test1 and test2 to access the FTP-server. /usr/local/emhttp/plugins/dynamix/scripts/ftpusers '1' 'test test1 test2' Notice that if you have other users, just name them in this config, with spaces for each user. Also rememer that these users will have to be added in your UR USERS configuration mentioned above. To autostart the service at every restart, just click on the dropdown menu on the right side of your script, and choose "At First Array Start Only" Now you have a working FTP-server with no shares, other than an empty folder. To add shares into your FTP-Server, you can either edit your newly created script in the "User Scripts" app, or you can create a new one. I choose the last option. "ADD NEW SCRIPT" and give it a name, then paste the following lines into the editor, and save. mkdir /mnt/user/FTP/Movies mount --bind /mnt/user/multimedia/Movies/ /mnt/user/FTP/Movies mount -o bind,remount,ro /mnt/user/FTP/Movies/ Explaining the config: # mkdir creates a new folder in my FTP share, where I can mount my shared folder Movies mkdir /mnt/user/FTP/Movies # mount command binds my shared folder /mnt/user/FTP/Movies to the newly created folder on my FTP-share. mount --bind /mnt/user/multimedia/Movies/ /mnt/user/FTP/Movies # another mount command to make my shared folder /mnt/user/FTP/Movies READ ONLY on my FTP-share. mount -o bind,remount,ro /mnt/user/FTP/Movies/ If you want to autostart the share, just follow the method mentioned above. By using this plugin, you can add as many shares from your UR to your FTP-server as you like, and it's way easier to do than editing the /boot/config/go file every time. To unmount the share just make a new script and add the lines. umount /mnt/user/FTP/Movies rmdir /mnt/user/FTP/Movies I think the config explains it self. That's it, and I hope this guide can be usefull for some UR members.
-
ProFTPD Plugin for unRAID v6.8.x
Like I mentioned in an earlier post, you could go ahead and use pfSense to open up from specific IP-addresses. That of course will need a static ip-address or a dyndns.
-
ProFTPD Plugin for unRAID v6.8.x
@Binary100100 You could make a vsftpd.conf file in the /boot/config folder with your correct settings. Change the chmod to 644 just in case. chmod 644 /boot/config/vsftpd.conf --------------------------------------------------------------------------------------------- Start the plugin "User Scripts" and make a new script. Add the following lines. #!/bin/bash cp /boot/config/vsftpd.conf /etc/vsftpd.conf /usr/local/emhttp/plugins/dynamix/scripts/ftpusers '1' 'test test1 test2' This will copy your correct config file from /boot/config/vsftpd.conf to /etc/vsftpd.conf Last line is to automatic Enable the FTP-Server on startup. Remember to add the users you've granted access for in the end of the line. The reason why I use the "User Scripts" plugin, is because it's easier to change the users you want to grant access to.
-
ProFTPD Plugin for unRAID v6.8.x
Hi. To configure root access on UR's built in FTP-server you can add and change the following lines in /etc/vsftpd.conf. # Add these lines just beneath the write_enable=YES chroot_local_user=YES allow_writeable_chroot=YES # To bind the user to specific share, change it to your wanted share ie. local_root=/mnt/user/FTP At last # Prevent the user from seeing and accessing shares higher up in the tree. ls_recurse_enable=NO Remember the user needs to have an account in USERS page on your UR. It is not necssary to give the user any share rights. The same user has to be in the Settings -> FTP Server -> FTP user(s) The share will now look like this, and you will have access to upload and download. If your CAMS need passive mode to access FTP-server you can also add the ports by typing. pasv_enable=Yes pasv_min_port=40000 pasv_max_port=40100 And at last. If you are afraid of open ports to the internet, you can use pfSense which is a free firewall, and add rules to only allow connections from specific addresses.
-
Cisco vWLC KVM
SOLUTION for AP's not joining controller. After some time trying almost everything, the simple solution was to add a permanent license to Management -> Software Activation -> Licenses. It seems that the Evaluation license did not work, which I don't know why. Anyway, after adding a set of 5 licenses, all AP's joined immediately. A big thx to all contributors in this topic. 🫡
-
Cisco vWLC KVM
Hi, I read through this topic, and found it very interesting, so I thought I'd give it try. So far I have the vWLC up and running with no problem, only problem is to get the AP's to join, which I find very strange. I can ping both my Service and Management port, and have access to both VLANS. Any ideas what could be the problem? My setup is running UR version 6.12.9, vWLC version is MFG_CTVM_8_10_196_0.iso, and pfSense 2.7.2, and HP/Aruba Switch 2930F (JL256A). First off I added the VLAN's to UR-server on my default interface. Having at least 2 VLAN is sort of mandatory i think. For those of you who don't know how that's done, check out this video. How to add Vlan to UNRAID Server I leave some pictures and my template for those of you who want to give it try. vWLC.xml
-
Unraid-server crash when transfering files from pc to share (smb)
syslog server is enabled, but there is nothing about the crash in it. I've been through it every time, but it reports nothing wrong. I have probably found the solution, and will do some stresstesting the next few days.
-
Unraid-server crash when transfering files from pc to share (smb)
I experience that UR crash every time I try to copy files from over the network to my NAS. The system freeze without any error, and the keyboard is not responding. There is no sign of errors in the logg, or any place I look. First I thought it was the cache disk that was corrupt, and swaped it out with another one, also this resulted in crash. Then I removed cache from all my share, to see if this would help on my problem. But still the same result. The next thing that came to my mind, was maybe the RAM could give me a hard time. Downloaded memtest, and ran it over 6 cycles, without any errors. I then started to investigate if it could be some other disk problems, and started test each disk with no errors. After that I started to copy files internally from one disk to another, also that without any problems. System was running the latest stable release, so I gave the unstable a try, to see if this could fix any problems. Now, I have ran out of options, and hope some experts in here could help me out. The last time it crashed was yesterday 8.th of April, Time - 23:20. tower-diagnostics-20230409-1751.zip
-
[Support] Linuxserver.io - WebGrab+Plus
Hi, I try to install the Webgrabplus docker, but it fails on install. Does anyone know what I do wrong? EDIT: If i delete "Extra Parameters" option "--mac-address=00:00:00:00:00:00" it will install, but then NO network is available. Any ideas on how I can fix this, or any parameters I need set?
-
Run Unraid on a QNAP NAS
Not sure if I understand your question. Do you want to mount your existing QNAP raid because you have files on it, and want to run UR as OS? In that case, the answer is NO. I just set up my TVS-871u-rp with UR, and it runs flawless. Added an extra pci-e card with M.2 drive as cache. Also upgraded RAM and CPU. Will try to run UR only from DOM, since the DOM is a USB-drive. Does anyone now if these DOM's have uniqe UID?
-
Thunderbolt 3
Why would you need that, when all you have to do, is to get a M.2 drive as cache? I already have a 10GbE card installed in a ASUS PRIME Z390M-PLUS and 64GB of RAM, with a 512GB M.2 cache drive. I can transfer a 40GB file to my UR with a speed of >1GB/s without droping speed. I would also like to have a TB3 support, since I already have a QNAP QNA-T310G1S Thunderbolt 3 to 10GbE Adaptor, and would like to setup a new NAS built on a ASRock Fatal1ty Z370 Gaming-ITX/ac.
-
Dell R720 Can't boot to Unraid -- Failed to allocate memory
Hi! I know this topic is more than 1 years old, but did you find a way to boot into UR. I have a R720xd, and no problem booting into UR with latest stable version.
-
[Support] Linuxserver.io - TVHeadend
Ok, now I understand. Thx for explaining for me.
-
[Support] Linuxserver.io - TVHeadend
Thx for showing me the in the right direction, it is all working now. I was misslead by the name of the grabber and thought it was for Swedish xmltv only. I got it all working now, but find the guidance at GitHub very misleading. First I thought i had to write the whole command in UR dash "docker exec -it -u abc tvheadend /usr/bin/for_you_to_fill_out --configure" since "docker" is not a valid command in the docker-container. I think many newbies find this difficult. Also "docker exec -it -u abc tvheadend" is no part of the command, only saying that it's the container of Tvheadend. The only command that should be highlighted is "/usr/bin/for_you_to_fill_out --configure" after you explained that one have to be within the container. Anyways, thx again for all help.
-
[Support] Linuxserver.io - TVHeadend
Hi I'm trying to setup XMLTV from xmltv.se which holds EPG update for all the nordic countries, and some others. (see http://xmltv.xmltv.se/ and look for "channels-COUNTRY-NAME") After searching the forum for answers, I ended up with this particular case from vw-kombi dated 15 of June - 2018 I have also read the guide from Github, but still I can not figure out what to do. The config share is set up correctly in container settings to /mnt/cache/appdata/tvheadend This is the file I want to import http://xmltv.xmltv.se/channels-Norway.xml , and created data folder under /config/ directly in the Docker. Imported the .xml file from url above (channels-Norway.xml), and all channel show up in Configuration -> EPG Grabber Channels. The channels show up with the right EPG source, but it downloads/shows no information about the program schedual. What am I doing wrong, and is it possible to add this site to the container for norwegian channels?
-
Array Stopping - Retry unmounting user share(s)...
Hi, and thx for all suggestions. Problem is now solved. I ssh'ed in, to see if there where any shares/mounts that did not shut down poperly. And yep, there it was. A share that I manually mount in the GO-file, to use for ProFTPd Once that share was unmounted, the array shut down.
-
Array Stopping - Retry unmounting user share(s)...
Hi, and thx for quick reply. I don't run any dockers or vms, and always make sure that mover finished, but still no luck I also tried your command in hope of any progress, but I can still see the same files are active. Does anyone know what these files do, and why they are noe killed in the process? Even after killing the process, nothing happens.....still the same error message.
-
Array Stopping - Retry unmounting user share(s)...
This is my first post in this forum, so please bare over with me. I try to stop the Array, but It will not shut down, only leaving me the message "Array Stopping•Retry unmounting user share(s)..." I installed this, to see what files are active: https://lime-technology.com/forums/topic/41196-open-files-plugin-can-help-with-troubleshooting-why-server-wont-shut-down/ The files that shows up is from udev: /lib/modules/4.14.49-unRAID/modules.builtin.bin /lib/modules/4.14.49-unRAID/modules.symbols.bin /lib/modules/4.14.49-unRAID/modules.alias.bin /lib/modules/4.14.49-unRAID/modules.dep.bin There is no help in killing the actual PID either. And the Syslog says: Jun 28 09:09:54 Tower root: rmdir: failed to remove '/mnt/user': Device or resource busy Jun 28 09:09:54 Tower emhttpd: shcmd (31097): exit status: 1 Jun 28 09:09:54 Tower emhttpd: shcmd (31099): /usr/local/sbin/update_cron Jun 28 09:09:54 Tower emhttpd: Retry unmounting user share(s)... Jun 28 09:09:59 Tower emhttpd: shcmd (31100): umount /mnt/user Jun 28 09:09:59 Tower root: umount: /mnt/user: target is busy. Jun 28 09:09:59 Tower emhttpd: shcmd (31100): exit status: 32 Jun 28 09:09:59 Tower emhttpd: shcmd (31101): rmdir /mnt/user Jun 28 09:09:59 Tower root: rmdir: failed to remove '/mnt/user': Device or resource busy Jun 28 09:09:59 Tower emhttpd: shcmd (31101): exit status: 1 Jun 28 09:09:59 Tower emhttpd: shcmd (31103): /usr/local/sbin/update_cron Jun 28 09:09:59 Tower emhttpd: Retry unmounting user share(s)... Jun 28 09:10:04 Tower emhttpd: shcmd (31104): umount /mnt/user Jun 28 09:10:04 Tower root: umount: /mnt/user: target is busy. Jun 28 09:10:04 Tower emhttpd: shcmd (31104): exit status: 32 Jun 28 09:10:04 Tower emhttpd: shcmd (31105): rmdir /mnt/user Jun 28 09:10:04 Tower root: rmdir: failed to remove '/mnt/user': Device or resource busy Jun 28 09:10:04 Tower emhttpd: shcmd (31105): exit status: 1 Jun 28 09:10:04 Tower emhttpd: shcmd (31107): /usr/local/sbin/update_cron Jun 28 09:10:05 Tower emhttpd: Retry unmounting user share(s)... Can someone help me out?