Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
sh
configure.sh 0.8 kB 6 29-Feb-2024 03:31 Ben Spink

This page (revision-44) was last changed on 29-Feb-2024 03:33 by Ben Spink

This page was created on 29-Dec-2020 05:25 by Ben Spink

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 changed one line
Every linux distro is slightly different. This guide is intended to cover the basics and show you around some of the ways you can configure and work with CrushFTP.
Every linux distro is slightly different. This guide is intended to cover the basics and show you around some of the ways you can configure and work with CrushFTP. You can try the single line in Linux for an automated download and install...may work on most distros.\\
{{{
wget -O - https://www.crushftp.com/crush10wiki/attach/Linux%20Install/configure.sh | bash
}}}
At line 106 added 129 lines
__Running as non-root (not recommanded)__
\\
\\
This method details how to run from rc.local on a systemd init based Linux flavor. Running as a non-root user won't allow binding to ports below 1024, will need to use NAT or port rewrite rules in iptables to be able to server on IANA defined well known ports.
Running crush in user mode as "crushftp" system user, by adding below lines into rc.local (generic method)
{{{
su - crushftp -c '/var/opt/CrushFTP10/crushftp_init.sh start'
exit 0
}}}
\\
This may be required in case daemon mode doesn't output to nohup.out, in this case modify the init script as
\\
{{{
$NOHUP $JAVA -Ddir=$CRUSH_DIR -Xmx384M -jar plugins/lib/CrushFTPJarProxy.jar -d 2>>nohup.out &
}}}
\\
\\
Running in user mode on systemd RHEL 7/8 family Linux
\\
First in crushftp_init.sh will need to set the user as "crushftp" ( or whatever non-root user) then allow rc-local.service to be able to run ( needed for compatibility mode, non root user)
\\
{{{
touch /etc/systemd/system/rc-local.service
vi /etc/systemd/system/rc-local.service
}}}
\\
paste into below
\\
{{{
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
}}}
\\
then edit /etc/rc.local
\\
{{{
vi /etc/rc.local
}}}
\\
add in
\\
{{{
su crushftp /var/opt/CrushFTP10/crushftp_init.sh start
exit 0
}}}
\\
then make it executable
\\
{{{
chmod +x /etc/rc.local
}}}
\\
then install the rc.local service
\\
{{{
systemctl enable rc-local.service
}}}
\\
reboot, check if OK
\\
\\
\\
Obsolete system V init method
\\
\\
create new scriptfile
\\
{{{
touch /etc/init.d/crushftp
}}}
\\
add this script to /etc/init.d/crushftp
\\
{{{
#!/bin/bash
#!/bin/sh
#
# Control script for CrushFTP v1.4 running as crushuser
#
# chkconfig: - 86 14
# description: CrushFTP
#
# BEGIN INIT INFO
# Provides: crushftp
# Required-Start: $local_fs
# Should-Start: $network
# Required-Stop:
# Should-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 2 5
# Short-Description: CrushFTP Server
# Description: Starts Crush on boot
# END INIT INFO
runuser crushuser -c "/var/opt/CrushFTP10/crushftp_init.sh $1"
################################################################
}}}
\\
make it executable
\\
{{{
chmod 755 /etc/init.d/crushftp
}}}
\\
install service
\\
{{{
chkconfig --add crushftp
chkconfig crushftp on
service crushftp start
}}}
Version Date Modified Size Author Changes ... Change note
44 29-Feb-2024 03:33 7.322 kB Ben Spink to previous
43 14-Sep-2022 20:17 7.284 kB Ada Csaba to previous | to last
42 14-Sep-2022 20:15 7.454 kB Ada Csaba to previous | to last
41 06-May-2021 09:35 6.845 kB krivacsz to previous | to last
« This page (revision-44) was last changed on 29-Feb-2024 03:33 by Ben Spink
G’day (anonymous guest)
CrushFTP10 | What's New

Referenced by
LeftMenu

JSPWiki