Yip
Great script
Just found it over broodplanks git Just tried it and everything seems to be ok
NLNP's/Team Radium's Build Environment Setup Automater Script
What does this script do?
This script is made for people who are lazy like me. lol Jokes apart. This script will setup build environment on your PC running any linux distribution. I have tested it on Ubuntu 13.04 but it should work with almost all linux distros.
Requirements:
- A good internet connection.
- A PC with Linux x86/64 Bit Architecture. (64 Bit Preffered)
This is a list of packages that are going to get downloaded.
- Python
- JDK
- GNU Make
- Git
- Required Packages for Android Build Environment.
- Android SDK ADT Bundle
How to use this script?
*NOTE*: These instructions will change as per releases so you have to view version specific posts
- Open terminal.
- cd ~/<Directory where you have downloaded the script>
- chmod 775 tr-be-script
- ./tr-be-script
- Follow the steps
Credits:
- Me
- cybojenix
- My Team! (Team Radium)
- XxLordxX (Special Thanks)
- People whom I have missed.
- All XDians who made guides on [HOW-TO] Setup Build Environment :highfive:
Changelog:
- 18/07/2013 - v1.0
- Initial Release
- Working- 19/07/2013 - v2.0
- Cleaned up some parts
- Added SDK Support- 19/07/2013 - v2.0.1
- Fixed up git installing errors- 19/07/2013 - v2.5
- Added missing sudo commands (Thanks to @broodplank1337)
Downloads:
- v1.0 - Download
- v2.0 - Click here
- v2.0.1 - Click here
- v2.5 - Click here
This can't possibly work on most distros. The script uses apt-get which is a Debian package manager. This won't work on most distros *unless* they are Debian based.
This can't possibly work on most distros. The script uses apt-get which is a Debian package manager. This won't work on most distros *unless* they are Debian based.
Yeah. This is for any distro that is Ubuntu based. It will not work with rpm based OS.
V2.5
Changelog:
- Added missing sudo commands (Thanks to @broodplank1337)
Downloads:
http://tinyw.in/rdSX
Usage:
cd ~/<DownloadDirectory>
chmod 775 tr-be-script-v2.5
./tr-be-script-v2.5
Github:
https://github.com/TeamRadium/tr-be-script/commit/265553aa4abdbeb9b4a9128ffd29fffcfe6048da
Almost shock me too
Here's my solution:
Open the script on any text editor you like, And select Save as -> choose Linux/Unix Ending
because the file is saved in windows ending, that's why
Sorry about that, gonna fix in next releaseAlright, this got me past the first hurdle, but still getting the same errors with Python failing to build and ADT not having an entire folder.
Couple suggestions:Sorry about that, gonna fix in next release
thanks for pointing the damn thing out
The script won't run at all on Lubuntu 13.04. "/bin/bash^M: bad interpreter: No such file or directory". Strange, because "which bash" says I've got bash at /bin/bash.
I decided to just copy-paste each line of the script into the terminal instead, but then Python failed the make step. Oh well, continued on.
The next problem came when trying to "cd ~/adt-bundle-linux-x86_64-20130522/tools" : "No such file or directory". I looked in the zip, and the error is correct; that folder doesn't exist. Guess I can't ./configure then...
The only parts of the script that actually worked as expected were installing Java (had to run the commands twice, because for some reason it failed the first time) and apt-get'ting the standard build tools.
Guess I'm not building Android any time soon.
I had to run the Java portion twice. No idea why. It did work the second time though.Exact same issue on Kubuntu 12.10. I resolved the bash^M issue by installing dos2unix and converted the script. It ran for the most part but ran into the same errors as above except java also did not install. I had to install openjdk manually using synaptic.
Sent from my Galaxy Nexus
I had to run the Java portion twice. No idea why. It did work the second time though.
i setup a new environment (xubuntu 13.04) and did the same thing you did (copy and paste the commands manually). i had to run the java section twice so it would install just as you said. weird
#!/bin/bash
clear
echo "Linux Build Environment Setup Automater Script."
echo "Written by nolinuxnoparty."
echo "Released under supervision of Team Radium."
read -p "Press [Enter] key to continue..."
clear
echo "Entering Downloads Directory"
cd ~/Downloads
read -p "Press [Enter] key to continue..."
clear
echo "Installing Python!"
sudo apt-get install build-essential gcc
wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -xvzf Python-2.5.6.tgz
cd Python-2.5.6
./configure --prefix=/usr/local/python2.5
make
sudo make install
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5
cd ..
read -p "Press [Enter] key to continue..."
clear
echo "Installing JDK 6!"
wget --no-check-certificate --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin"
chmod +x jdk-6u45-linux-x64.bin
sudo ./jdk-6u45-linux-x64.bin
sudo mv jdk1.6.0_45 /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_45/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_45/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_45/bin/javaws 1
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_45/bin/jar 1
sudo update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/jdk1.6.0_45/bin/javadoc 1
java -version
read -p "Press [Enter] key to continue..."
clear
echo "Installing GNU Make!"
wget -o make.tar.gz http://ftp.gnu.org/gnu/make/make-3.81.tar.gz
tar -xvzf make-3.81.tar.gz
cd make-3.81
./configure
sudo make install
cd ..
read -p "Press [Enter] key to continue..."
clear
echo "Installing Required Packages!"
apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils xsltproc pngcrush gcc-multilib lib32z1 schedtool
read -p "Press [Enter] key to continue..."
clear
echo "Installing GIT!"
sudo apt-get install git
y
echo "Installing ADB Drivers!"
sudo apt-get install android-tools-adb
read -p "Press [Enter] key to continue..."
clear
echo "Cleaning up downloaded ****!"
rm Python-2.5.6.tgz
rm Python-2.5.6
rm make-3.81.tar.gz
rm make-3.81
rm jdk-6u45-linux-x64.bin
read -p "Press [Enter] key to continue..."
clear
echo "Done!"
echo "Cheers!"
echo ""
echo "Thanks for using this script!"
echo "Now, Enjoy compiling roms/kernels :)"
read -p "Press [Enter] key to exit..."
exit
#!/bin/bash
clear
echo "Linux Build Environment Setup Automater Script."
echo "Written by nolinuxnoparty."
echo "Released under supervision of Team Radium."
read -p "Press [Enter] key to continue..."
clear
echo "Entering Downloads Directory"
cd ~/Downloads
read -p "Press [Enter] key to continue..."
clear
echo "Installing Python!"
sudo apt-get install build-essential gcc
wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -xvzf Python-2.5.6.tgz
cd Python-2.5.6
./configure --prefix=/usr/local/python2.5
make
sudo make install
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5
cd ..
read -p "Press [Enter] key to continue..."
clear
echo "Installing JDK 6!"
wget --no-check-certificate --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin"
chmod +x jdk-6u45-linux-x64.bin
sudo ./jdk-6u45-linux-x64.bin
sudo mv jdk1.6.0_45 /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_45/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_45/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_45/bin/javaws 1
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_45/bin/jar 1
sudo update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/jdk1.6.0_45/bin/javadoc 1
java -version
read -p "Press [Enter] key to continue..."
clear
echo "Installing GNU Make!"
wget -o make.tar.gz http://ftp.gnu.org/gnu/make/make-3.81.tar.gz
tar -xvzf make-3.81.tar.gz
cd make-3.81
./configure
sudo make install
cd ..
read -p "Press [Enter] key to continue..."
clear
echo "Installing Required Packages!"
apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils xsltproc pngcrush gcc-multilib lib32z1 schedtool
read -p "Press [Enter] key to continue..."
clear
echo "Installing GIT!"
sudo apt-get install git
y
echo "Installing ADB Drivers!"
sudo apt-get install android-tools-adb
read -p "Press [Enter] key to continue..."
clear
echo "Downloading and Configuring Android SDK!!"
echo "Which version of linux are you using?"
echo "[ 1 ] 32 bits"
echo "[ 2 ] 64 bits"
echo "Making sure unzip is installed"
sudo apt-get install unzip
read bits
if [[ "$bits" == "1" ]]; then
echo "Downloading SDK for 32bit Linux System"
wget http://dl.google.com/android/adt/adt-bundle-linux-x86-20130522.zip
echo "Download Complete!!"
echo "Extracting"
unzip adt-bundle-linux-x86-20130522.zip
echo "Configuring"
cd ~/adt-bundle-linux-x64-20130522/tools
./configure
echo "Done!!"
elif [[ "$bits" == "2" ]]; then
echo "Downloading SDK for 64bit Linux System"
wget http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20130522.zip
echo "Download Complete!!"
echo "Extracting"
unzip adt-bundle-linux-x86_64-20130522.zip
echo "Configuring"
cd ~/adt-bundle-linux-x86_64-20130522/tools
./configure
echo "Done!!"
fi
read -p "Press [Enter] key to continue..."
clear
echo "Cleaning up downloaded ****!"
rm Python-2.5.6.tgz
rm Python-2.5.6
rm make-3.81.tar.gz
rm make-3.81
rm jdk-6u45-linux-x64.bin
rm adt-bundle-linux-x86-20130522
rm adt-bundle-linux-x86-20130522.zip
rm adt-bundle-linux-x86_64-20130522
adt-bundle-linux-x86_64-20130522.zip
read -p "Press [Enter] key to continue..."
clear
echo "Done!"
echo "Cheers!"
echo ""
echo "Thanks for using this script!"
echo "Now, Enjoy compiling roms/kernels :)"
read -p "Press [Enter] key to exit..."
exit
#!/bin/bash
clear
echo "Linux Build Environment Setup Automater Script."
echo "Written by nolinuxnoparty."
echo "Released under supervision of Team Radium."
read -p "Press [Enter] key to continue..."
clear
echo "Entering Downloads Directory"
cd ~/Downloads
read -p "Press [Enter] key to continue..."
clear
echo "Installing Python!"
sudo apt-get install build-essential gcc
wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -xvzf Python-2.5.6.tgz
cd Python-2.5.6
./configure --prefix=/usr/local/python2.5
make
sudo make install
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5
cd ..
read -p "Press [Enter] key to continue..."
clear
echo "Installing JDK 6!"
wget --no-check-certificate --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin"
chmod +x jdk-6u45-linux-x64.bin
sudo ./jdk-6u45-linux-x64.bin
sudo mv jdk1.6.0_45 /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_45/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_45/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_45/bin/javaws 1
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_45/bin/jar 1
sudo update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/jdk1.6.0_45/bin/javadoc 1
java -version
read -p "Press [Enter] key to continue..."
clear
echo "Installing GNU Make!"
wget -o make.tar.gz http://ftp.gnu.org/gnu/make/make-3.81.tar.gz
tar -xvzf make-3.81.tar.gz
cd make-3.81
./configure
sudo make install
cd ..
read -p "Press [Enter] key to continue..."
clear
echo "Installing Required Packages!"
apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils xsltproc pngcrush gcc-multilib lib32z1 schedtool
read -p "Press [Enter] key to continue..."
clear
echo "Installing GIT!"
sudo apt-get install git
echo "Installing ADB Drivers!"
sudo apt-get install android-tools-adb
read -p "Press [Enter] key to continue..."
clear
echo "Downloading and Configuring Android SDK!!"
echo "Which version of linux are you using?"
echo "[ 1 ] 32 bits"
echo "[ 2 ] 64 bits"
echo "Making sure unzip is installed"
sudo apt-get install unzip
read bits
if [[ "$bits" == "1" ]]; then
echo "Downloading SDK for 32bit Linux System"
wget http://dl.google.com/android/adt/adt-bundle-linux-x86-20130522.zip
echo "Download Complete!!"
echo "Extracting"
unzip adt-bundle-linux-x86-20130522.zip
echo "Configuring"
cd ~/adt-bundle-linux-x64-20130522/tools
./configure
echo "Done!!"
elif [[ "$bits" == "2" ]]; then
echo "Downloading SDK for 64bit Linux System"
wget http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20130522.zip
echo "Download Complete!!"
echo "Extracting"
unzip adt-bundle-linux-x86_64-20130522.zip
echo "Configuring"
cd ~/adt-bundle-linux-x86_64-20130522/tools
./configure
echo "Done!!"
fi
read -p "Press [Enter] key to continue..."
clear
echo "Cleaning up downloaded ****!"
rm Python-2.5.6.tgz
rm Python-2.5.6
rm make-3.81.tar.gz
rm make-3.81
rm jdk-6u45-linux-x64.bin
rm adt-bundle-linux-x86-20130522
rm adt-bundle-linux-x86-20130522.zip
rm adt-bundle-linux-x86_64-20130522
adt-bundle-linux-x86_64-20130522.zip
read -p "Press [Enter] key to continue..."
clear
echo "Done!"
echo "Cheers!"
echo ""
echo "Thanks for using this script!"
echo "Now, Enjoy compiling roms/kernels :)"
read -p "Press [Enter] key to exit..."
exit
#!/bin/bash
clear
echo "Linux Build Environment Setup Automater Script."
echo "Written by nolinuxnoparty."
echo "Released under supervision of Team Radium."
read -p "Press [Enter] key to continue..."
clear
echo "Entering Downloads Directory"
cd ~/Downloads
read -p "Press [Enter] key to continue..."
clear
echo "Installing Python!"
sudo apt-get install build-essential gcc
wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -xvzf Python-2.5.6.tgz
cd Python-2.5.6
./configure --prefix=/usr/local/python2.5
make
sudo make install
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5
cd ..
read -p "Press [Enter] key to continue..."
clear
echo "Installing JDK 6!"
wget --no-check-certificate --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin"
chmod +x jdk-6u45-linux-x64.bin
sudo ./jdk-6u45-linux-x64.bin
sudo mv jdk1.6.0_45 /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_45/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_45/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_45/bin/javaws 1
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_45/bin/jar 1
sudo update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/jdk1.6.0_45/bin/javadoc 1
java -version
read -p "Press [Enter] key to continue..."
clear
echo "Installing GNU Make!"
wget -o make.tar.gz http://ftp.gnu.org/gnu/make/make-3.81.tar.gz
tar -xvzf make-3.81.tar.gz
cd make-3.81
./configure
sudo make install
cd ..
read -p "Press [Enter] key to continue..."
clear
echo "Installing Required Packages!"
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils xsltproc pngcrush gcc-multilib lib32z1 schedtool
read -p "Press [Enter] key to continue..."
clear
echo "Installing GIT!"
sudo apt-get install git
echo "Installing ADB Drivers!"
sudo apt-get install android-tools-adb
read -p "Press [Enter] key to continue..."
clear
echo "Downloading and Configuring Android SDK!!"
echo "Which version of linux are you using?"
echo "[ 1 ] 32 bits"
echo "[ 2 ] 64 bits"
echo "Making sure unzip is installed"
sudo apt-get install unzip
read bits
if [[ "$bits" == "1" ]]; then
echo "Downloading SDK for 32bit Linux System"
wget http://dl.google.com/android/adt/adt-bundle-linux-x86-20130522.zip
echo "Download Complete!!"
echo "Extracting"
unzip adt-bundle-linux-x86-20130522.zip
echo "Configuring"
cd ~/adt-bundle-linux-x64-20130522/tools
./configure
echo "Done!!"
elif [[ "$bits" == "2" ]]; then
echo "Downloading SDK for 64bit Linux System"
wget http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20130522.zip
echo "Download Complete!!"
echo "Extracting"
unzip adt-bundle-linux-x86_64-20130522.zip
echo "Configuring"
cd ~/adt-bundle-linux-x86_64-20130522/tools
./configure
echo "Done!!"
fi
read -p "Press [Enter] key to continue..."
clear
echo "Cleaning up downloaded ****!"
rm Python-2.5.6.tgz
rm Python-2.5.6
rm make-3.81.tar.gz
rm make-3.81
rm jdk-6u45-linux-x64.bin
rm adt-bundle-linux-x86-20130522
rm adt-bundle-linux-x86-20130522.zip
rm adt-bundle-linux-x86_64-20130522
adt-bundle-linux-x86_64-20130522.zip
read -p "Press [Enter] key to continue..."
clear
echo "Done!"
echo "Cheers!"
echo ""
echo "Thanks for using this script!"
echo "Now, Enjoy compiling roms/kernels :)"
read -p "Press [Enter] key to exit..."
exit