How to install an FTP Server in Porteus 3.1, thanks.

Post here if you are a new Porteus member and you're looking for some help.
joejac
Black ninja
Black ninja
Posts: 69
Joined: 16 May 2015, 23:55
Distribution: Porteus 3.1
Location: ve

How to install an FTP Server in Porteus 3.1, thanks.

Post#1 by joejac » 13 Jun 2015, 20:14

Hello,
1. First I would like to know your opinion about the best FTP Server for Linux, with GUI if possible please :pardon:
2. Then of course, how to install it in Porteus, a link to a tutorial is appreciated.

3. Please I also need to shut off the wireless of my laptop, but unfortunately, Function F9 that turns on/off the wireless in Windows 7, do not work in Porteus, this is very important to me, I am very sensible to microwaves, sorry.

Best regards
joejac

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#2 by donald » 13 Jun 2015, 20:34

3.
The answer depends on which DE you're using.
In xfce rightclick the network icon (in the panel) and uncheck "enable wireless"
There is a similar option in kde (click the icon) iirc.

joejac
Black ninja
Black ninja
Posts: 69
Joined: 16 May 2015, 23:55
Distribution: Porteus 3.1
Location: ve

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#3 by joejac » 13 Jun 2015, 21:23

Thanks Donald,
I did it, but the light of WiFi is still on. "Enable Wi-Fi" is unchecked (off in Porteus NetworkManager Applet 0.9.8.8 ) "Enable Networking" has to have the check mark, I am using cable connection. I have Porteus LXQt.

By the way the laptop comes also with Bluetooth, I do not know how to disable this either, this can be forcing the transmitter light on. I have a couple of hours and my head is getting pretty hot and bad :bad:
Any more ideas?

Thanks and regards
joejac

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#4 by donald » 13 Jun 2015, 21:58

Hmmm..when I uncheck wireless the usb-wifi Led goes off..
however, you could open a terminal, su to root, and type ifconfig -a.
Have a look at how your wifi is named.Should be wlan0 or ra0 etc.
(depends on the chipset and driver in use)
when you got the name, type (e.g.) ifconfig wlan0 down to switch it off.
Last edited by donald on 14 Jun 2015, 04:36, edited 1 time in total.

joejac
Black ninja
Black ninja
Posts: 69
Joined: 16 May 2015, 23:55
Distribution: Porteus 3.1
Location: ve

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#5 by joejac » 14 Jun 2015, 03:53

Hello Donald,

I turned down eth1 and lo, etho is cable, the Wi-Fi light is still on. Even if I open the file as root I can not save it, I guess not enough permissions. And I do not see the file rc.bluetooth in /etc/rc.d/ is not there. There is an rc.wireless file and rc.wireless.conf I tried to open rc.wireless.conf and I got "Failed to open file '/etc/rc.d/rc.wireless.conf': Permission denied" and rc.wireless has too much information for me, sorry :%)

Code: Select all

root@porteus:/home/guest# ifconfig eth1 down
root@porteus:/home/guest# ifconfig lo down
Do you know who can help me with questions 1 and 2 above?

Thank you and regards
joejac

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#6 by donald » 14 Jun 2015, 04:35

oops
do not turn down lo, this is the Loopback interface
turn down only the wifi.

yes, you are right, there is no rc.bluetooth..I will delete this paragraph
in my post to avoid confusion...thanks.

joejac
Black ninja
Black ninja
Posts: 69
Joined: 16 May 2015, 23:55
Distribution: Porteus 3.1
Location: ve

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#7 by joejac » 14 Jun 2015, 04:48

donald wrote:oops
do not turn down lo, this is the Loopback interface
turn down only the wifi...
:oops:

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#8 by fanthom » 14 Jun 2015, 09:55

Code: Select all

rfkill block all
reference:

Code: Select all

man rfkill
Please add [Solved] to your thread title if the solution was found.

joejac
Black ninja
Black ninja
Posts: 69
Joined: 16 May 2015, 23:55
Distribution: Porteus 3.1
Location: ve

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#9 by joejac » 14 Jun 2015, 16:45

fanthom wrote:

Code: Select all

rfkill block all
reference:

Code: Select all

man rfkill
My deepest thanks fanthom! I issued as root: rfkill block all and the Wi-Fi led went off :good:
I have my head very bad :%) but I will recover soon.
Again Thanks a lot.

This have solved question No. 3.
Do you have an idea about the other questions?:
joejac wrote:1. First I would like to know your opinion about the best FTP Server for Linux, with GUI if possible please :pardon:
2. Then of course, how to install it in Porteus, a link to a tutorial is appreciate
Best regards
joejac

cttan
Shogun
Shogun
Posts: 333
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 and 4.0 64bit KDE
Location: Malaysia

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#10 by cttan » 17 Jun 2015, 17:33

Hi joejac,

You can download proftpd. But it is not GUI based.

Code: Select all

# usm -g proftpd

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) proftpd-1.3.4c-x86_64-1.txz
2) proftpd-1.3.4e-x86_64-1_slack14.1.txz
#? ^C
1. Modify the config files to accept anonymous login
My /etc/proftpd.conf

Code: Select all

# This is a basic ProFTPD configuration file.
# It establishes a single server and a single anonymous login.
# It assumes that you have a user/group "nobody" and "ftp" 
# for normal/anonymous operation.

ServerName                      "ProFTPD Default Installation"
ServerType                      standalone
#ServerType                     inetd
DefaultServer                   on

# Port 21 is the standard FTP port.
Port                            21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            nobody
Group                           nogroup

# This next option is required for NIS or NIS+ to work properly:
#PersistentPasswd off

SystemLog                       /var/log/proftpd.log
TransferLog                     /var/log/xferlog

# Normally, we want files to be overwriteable.
<Directory /*>
  AllowOverwrite                on
</Directory>

# A basic anonymous FTP server configuration.
# To enable this, remove the user ftp from /etc/ftpusers.
<Anonymous ~ftp>
  RequireValidShell             off
  User                          ftp
  Group                         ftp
  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients                    50

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                  welcome.msg
  DisplayChdir                  .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>

  <Directory pub/*>
  <Limit WRITE>
    AllowAll
  </Limit>
#    <Limit STOR>
#      AllowAll
#    </Limit>
  </Directory>

  # An upload directory that allows storing files but not retrieving
  # or creating directories.
#  <Directory incoming/*>
#    <Limit READ>
#      DenyAll
#    </Limit>
#
#    <Limit STOR>
#      AllowAll
#    </Limit>
#  </Directory>

</Anonymous>
My /etc/ftpusers

Code: Select all

#
# ftpusers      This file describes the names of the users that may
#               _*NOT*_ log into the system via the FTP server.
#               This usually includes "root", "uucp", "news" and the
#               like, because those users have too much power to be
#               allowed to do "just" FTP...
#
#
# Version:      @(#)/etc/ftpusers       3.00    02/25/2001 volkerdi
#
# Original Author:  Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
#
# The entire line gets matched, so no comments or extra characters on
# lines containing a username.
#
# To enable anonymous FTP, remove the "ftp" user:
root
uucp
news

# End of ftpusers.
2. Make FTP public folder
mkdir -p /home/ftp/pub
chown ftp:ftp /home/ftp/pub
ln -s /home/ftp/pub /pub


3. Add FTP user, test and change the password to test1
useradd test -d /pub
echo test:test1 | chpasswd

4. Start the FTP server
proftpd &

5. Test using a FTP client build in Porteus.
gftp test:test1@localhost/pub &

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#11 by francois » 17 Jun 2015, 18:05

Cttan,

You really are in great shape! :D
Prendre son temps, profiter de celui qui passe.

cttan
Shogun
Shogun
Posts: 333
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 and 4.0 64bit KDE
Location: Malaysia

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#12 by cttan » 18 Jun 2015, 23:35

Hi francois,

I try my best to float in the Linux world and share what I have learned.

joejac
Black ninja
Black ninja
Posts: 69
Joined: 16 May 2015, 23:55
Distribution: Porteus 3.1
Location: ve

Re: How to install an FTP Server in Porteus 3.1, thanks.

Post#13 by joejac » 20 Jun 2015, 04:12

Thanks cttan,
But ftp via command line, no GUI? My head spin :%)
Well I solved by other inefficient means because I was in a hurry to make backups.
Best regards
joejac

Post Reply