Monthly Archives: June 2014

Tiny Core Linux 5.3: setting up ftp server (bftpd) for anonymous user

Here is how I set up an ftp server for anonymous user on Tiny Core Linux 5.3:

1. Using “Apps” install “bftpd” package and make it to load on boot:

apps_bftpd2. Edit file “/usr/local/etc/bftpd.conf” like following:

user ftp {
  #Any password fits.
  ANONYMOUS_USER="yes"
#  DENY_LOGIN="Anonymous login disabled."
  ROOTDIR="/mnt/sda1/ftp"
}

user anonymous {
  #If the client wants anonymous, ftp is taken instead.
  ALIAS="ftp"
}

Basically what I did was: comment out “DENY_LOGIN” and edit both “ROOTDIR” and “ALIAS”.

3. Save “bftpd.conf” to your persistence directory and edit file “/opt/bootlocal.sh”:

sudo echo "bftpd -d -c <YOUR/PERSISTENT/PATH>/bftpd.conf" >> /opt/bootlocal.sh"

4. That’s it!

Qt 5.3.0 SDK on Tiny Core Linux 5.3

After many hours of struggling trying to compile Qt 5 on Tiny Core, I found a nice script here. And here is what I have done to get it working.

Prerequisites: compiletc, squashfs-tools-4.x, libGL-dev, gtk2-dev and python.

1. Create “build” directory and “cd” into that directory:

tc@box:~$ mkdir build
tc@box:~$ cd build

2. Download source code from http://download.qt-project.org

tc@box:~/build$ wget http://download.qt-project.org/official_releases/qt/5.3/5.3.0/single/qt-everywhere-opensource-src-5.3.0.tar.gz

3. Save the following script and run it (I have modified this script for qt 5.3.0):

# This will package a release of QT5 SDK
tar xvzf qt-everywhere-opensource-src-5.3.0.tar.gz

# Launch configure script
tce-load -i libGL-dev
# This will load all the X development files
tce-load -i gtk2-dev
# This is needed by the install script
tce-load -i python

cd qt-everywhere-opensource-src-5.3.0

echo Starting QT configure script. Please choose the Open Source version
echo and accept the license if you want

./configure --prefix=/usr/local -qt-xcb

# Starting compilation process
make -j3
# Here we use the -j3 option because (don't know why) during
# the installation process the QT-SDK compiles the V8 Javascript
# VM
INSTALL_ROOT=/tmp/qt-sdk make install -j3

# Packaging
cd ..
mksquashfs /tmp/qt-sdk qt5-sdk.tcz

4. If it’s finished, you can load qt 5 extension with this command:

tc@box:~/build$ tce-load -i qt5-sdk.tcz

5. If you want to load it automatically on boot, do the following commands:

tc@box:~/build$ sudo cp qt5-sdk.tcz /mnt/sda1/tce/optional/.
tc@box:~/build$ sudo echo "python" > /mnt/sda1/tce/optional/qt5-sdk.tcz.dep
tc@box:~/build$ sudo echo "qt5-sdk.tcz" >> /mnt/sda1/tce/onboot.lst

6. That’s it. Enjoy!