<commit_before>#!/bin/sh 

# fix locale error messages with apt
echo "LANG=\"en_US.UTF-8\"" > /etc/default/locale
echo "LANGUAGE=\"en_US.UTF-8\"" >> /etc/default/locale
echo "LC_ALL=\"en_US.UTF-8\"" >> /etc/default/locale
locale-gen en_US en_US.UTF-8
dpkg-reconfigure locales

# upgrade to zero-day
apt-get update
apt-get -y upgrade

# add support for ppa
apt-get install -y python-software-properties

# repositories
add-apt-repository -y ppa:keithw/mosh            # mosh
apt-add-repository -y ppa:fish-shell/release-2   # fish
add-apt-repository -y ppa:transmissionbt/ppa        # transmission
apt-get update

# install it all at once
apt-get -y install mosh fish git toilet transmission-cli transmission-common transmission-daemon python2.6
apt-get -y install python-pip

# install flexget
pip install flexget
easy_install transmissionrpc

# set default group
addgroup ragebmc
usermod -g ragebmc root
echo "%ragebmc   ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/ragebmc
chmod 0440 /etc/sudoers.d/ragebmc

# checkout ragebmc
mkdir -p /ragebmc
cd /ragebmc
git clone https://github.com/RamonGebben/ragebmc.git .
mkdir -p /ragebmc/series
mkdir -p /ragebmc/movies
mkdir -p /ragebmc/incomplete
mkdir -p /ragebmc/resources

# fix ownership
chown -R root:ragebmc /ragebmc 
chown -R root:ragebmc /ragebmc


# link fish functions
ln -s /ragebmc/fish /etc/fish/functions


# fix default umask
sed -i 's/UMASK\s*022/UMASK 002/g' /etc/login.defs

echo "***************************"
echo "REBOOT and run rb-upgrade"
#reboot
<commit_msg>Update install.sh<commit_after>#!/bin/sh 

# fix locale error messages with apt
echo "LANG=\"en_US.UTF-8\"" > /etc/default/locale
echo "LANGUAGE=\"en_US.UTF-8\"" >> /etc/default/locale
echo "LC_ALL=\"en_US.UTF-8\"" >> /etc/default/locale
locale-gen en_US en_US.UTF-8
dpkg-reconfigure locales

# upgrade to zero-day
apt-get update
apt-get -y upgrade

# add support for ppa
apt-get install -y python-software-properties

# repositories
add-apt-repository -y ppa:keithw/mosh            # mosh
apt-add-repository -y ppa:fish-shell/release-2   # fish
add-apt-repository -y ppa:transmissionbt/ppa        # transmission
apt-get update

# install it all at once
apt-get -y install mosh fish git toilet transmission-cli transmission-common transmission-daemon python2.6
apt-get -y install python-pip

# install flexget
pip install flexget
easy_install transmissionrpc

# set default group
addgroup ragebmc
usermod -g ragebmc root
echo "%ragebmc   ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/ragebmc
chmod 0440 /etc/sudoers.d/ragebmc

# checkout ragebmc
mkdir -p /ragebmc
cd /ragebmc
git clone https://github.com/RamonGebben/ragebmc.git .
mkdir -p /ragebmc/series
mkdir -p /ragebmc/movies
mkdir -p /ragebmc/incomplete
mkdir -p /ragebmc/resources

# fix ownership
chown -R root:ragebmc /ragebmc 
chown -R root:ragebmc /ragebmc

#fixing up transmission"
service transmission-daemon stop
cp /ragebmc/resources/config/settings.json /etc/transmission-daemon/settings.json
cp /ragebmc/resources/config/transmission-daemon /etc/init.d/transmission-daemon
service transmission-daemon start

# link fish functions
ln -s /ragebmc/fish /etc/fish/functions


# fix default umask
sed -i 's/UMASK\s*022/UMASK 002/g' /etc/login.defs

echo "***************************"
echo "REBOOT and run rb-upgrade"
#reboot

{'fraction_non_alphanumeric': 0.12707515846664655, 'fraction_numerical': 0.010262601871415635, 'mean_word_length': 3.916913946587537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '2179399', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1181, 'n_words': 316}