Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3 from seapagan/consolidate-sudo
Browse files Browse the repository at this point in the history
Consolidate Sudo requests to avoid timeout
  • Loading branch information
seapagan authored Jun 27, 2017
2 parents 09811f4 + a9d0bfb commit f271c23
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ sudo apt -y full-upgrade
# make sure we have the required libraries and tools already installed before starting.
sudo apt install -y build-essential libssl-dev libreadline-dev zlib1g-dev sqlite3 libsqlite3-dev libgtk2.0-0 libbz2-dev sublime-text libxml2-dev libdb-dev gedit pcmanfm

# install winbind and support lib to ping WINS hosts
sudo apt install -y winbind libnss-winbind
# need to append to the /etc/nsswitch.conf file to enable if not already done ...
if ! grep -qc 'wins' /etc/nsswitch.conf ; then
sudo sed -i '/hosts:/ s/$/ wins/' /etc/nsswitch.conf
fi

# set the DISPLAY variable to point to the XServer running on our Windows PC
echo >> ~/.bashrc
echo "export DISPLAY=:0" >> ~/.bashrc
Expand Down Expand Up @@ -117,13 +124,6 @@ cpanm CPAN Term::ReadKey YAML YAML::XS LWP CPAN::SQLite App::cpanoutdated Log::L
cpanm Net::Ping --force # this fails tests on WSL so must be forced
cpan-outdated -p | cpanm

# install winbind and support lib to ping WINS hosts
sudo apt install -y winbind libnss-winbind
# need to append to the /etc/nsswitch.conf file to enable if not already done ...
if ! grep -qc 'wins' /etc/nsswitch.conf ; then
sudo sed -i '/hosts:/ s/$/ wins/' /etc/nsswitch.conf
fi

# copy a basic .gitconfig if we have it...
if [ -f "$THISPATH/support/.gitconfig" ] ; then
cp $THISPATH/support/.gitconfig ~/.gitconfig
Expand Down

0 comments on commit f271c23

Please sign in to comment.