<commit_before># First install all needed packages
# *********************************
for pkg in $(awk -F" - " '{ print $1 }' ./diyiotpackagelist) 
do 
	opkg install $pkg 
done
opkg install php5 php5-cli php5-mod-curl php5-mod-json \
kmod-usb-acm \
kmod-usb-core \
kmod-usb-hid \
kmod-usb-serial \
kmod-usb-serial-ftdi \
libusb \
libusb-1.0 

opkg update
opkg install openssh-server autossh

/etc/init.d/sshd enable
/etc/init.d/sshd start

/etc/init.d/dropbear disable
/etc/init.d/dropbear stop


opkg update
opkg install openssh-sftp-server
opkg install libopenssl
opkg install openssh-client
opkg install openssh-client-utils
opkg install openssh-keygen
opkg install openssh-moduli
opkg install openssh-server
opkg install openssh-sftp-client


# make links and dirs
mkdir /root/admin
cp -f templates/admin/* /root/admin




ln -s /usr/bin/php-cli /usr/bin/diyiotserver
cp -f templates/etc/rc.local /etc/rc.local
cp -f templates/etc/init.d/diyiotsocat /etc/init.d
cp -f templates/etc/init.d/diyiotserver /etc/init.d
chmod + x  /etc/init.d/diyiotserver
chmod + x  /etc/init.d/diyiotsocat
cp -f templates/etc/crontabs/root /etc/crontabs/root
chmod 600 /etc/crontabs/root

#
# connect to server
# *********************************
/usr/bin/php-cli  ./php/getconfig.php

mv ../api /root

#setting tty
# *********************************
stty -F /dev/ttyACM0   115200


<commit_msg>auto install 1<commit_after># First install all needed packages
# *********************************
for pkg in $(awk -F" - " '{ print $1 }' ./diyiotpackagelist) 
do 
	opkg install $pkg 
done
opkg install php5 php5-cli php5-mod-curl php5-mod-json \
kmod-usb-acm \
kmod-usb-core \
kmod-usb-hid \
kmod-usb-serial \
kmod-usb-serial-ftdi \
libusb \
libusb-1.0 

opkg update
opkg install openssh-server autossh

/etc/init.d/sshd enable
/etc/init.d/sshd start

/etc/init.d/dropbear disable
/etc/init.d/dropbear stop


opkg update
opkg install openssh-sftp-server
opkg install libopenssl
opkg install openssh-client
opkg install openssh-client-utils
opkg install openssh-keygen
opkg install openssh-moduli
opkg install openssh-server
opkg install openssh-sftp-client


# make links and dirs
mkdir /root/admin
cp -f templates/admin/* /root/admin




ln -s /usr/bin/php-cli /usr/bin/diyiotserver
cp -f templates/etc/rc.local /etc/rc.local
cp -f templates/etc/init.d/diyiotsocat /etc/init.d
cp -f templates/etc/init.d/diyiotserver /etc/init.d
chmod + x  /etc/init.d/diyiotserver
chmod + x  /etc/init.d/diyiotsocat
cp -f templates/etc/crontabs/root /etc/crontabs/root
chmod 600 /etc/crontabs/root
ln -s /etc/init.d/diyiotserver /etc/rc.d/S60diyiotserver
ln -s /etc/init.d/diyiotsocat /etc/rc.d/S60diyiotsocat

#
# connect to server
# *********************************
/usr/bin/php-cli  ./php/getconfig.php

mv ../api /root

#setting tty
# *********************************
stty -F /dev/ttyACM0   115200



{'fraction_non_alphanumeric': 0.18099547511312217, 'fraction_numerical': 0.013574660633484163, 'mean_word_length': 3.5691573926868045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5066801', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1093, 'n_words': 260}