Since bash on windows linux subsystem is new it is perfect for a fresh install of lots of developer software
Aug 12, 2016
Not having a lot of success since so many things need both the android jdk and a stable java 8. We may have to wait for the next update to Bash On Windows.
The issues I am having seems to be connected to the different way sudo and sudo su seem to work. Also any installation package that spawns a new window (like oracle java 8 or the android sdk ) causes lots of problems
Aug 7, 2016
To install all the working packages you need this repository on your windows computer with the bash command line having access to it.
One way to do this would be with the following commands. You can copy each line from here and right click to paste into the bash area.
Note: will ask for passwords. Running the first three commands may reduce the amount of questions
sudo su
exit
sudo apt-get install -y git
cd ~/
git clone https://github.com/hpssjellis/my-installs-for-bash-on-windows.git
cd ~/my-installs-for-bash-on-windows
bash setup.sh
The setup.sh bash file calls all the other working bash files. If all goes well this will install several development systems. Bash files not working well will not be called by the main setup.sh. You can look at these individually and see what is going wrong with them.
Note I am presently (Aug 9, 2016 testing at a different branch). The steps are slightly different. Presently it is a three hour installation but it may be faster if you monitor for the sudo password entries.
Note: will ask for passwords. Running the first three commands may reduce the amount of questions
sudo apt-get install -y git
cd ~/
git clone https://github.com/hpssjellis/my-installs-for-bash-on-windows.git --branch testing-branch
cd ~/my-installs-for-bash-on-windows
bash setup-headless.sh 2>&1 | tee z-logs.txt
Open another terminal (shift click the bash on windows icon) to see how the installation is going and repeatedly enter the following command. (up arrow, enter). Also / keyword
highlights search word
The use capital G to get to the bottom of the file G
and q
to quit
cd ~/my-installs-for-bash-on-windows
'less z-logs.txt'
source /home/$USER/virtual-tf/bin/activate
is used for tensorflow, skfow, magenta etc for a virtual environmentdeactivate
to get out of the virtual environmentsudo update-alternatives --config java
then choose the left hand side number of the java you want. no number to keep.
- Search for "Bash On Windows", then right-click it and pin it to the task bar
- Shift-click the task bar icon for bash to load multiple bash terminals. So you can check if things are installing properly
cd ~/
gets to your home directory.pwd
shows your full file path. Very usefull~cd foldername
goes into that foldercd ..
goes up a directory. note the space before the dots- tab auto fills the name and pings if the name is not complete
ls
condensed lists of everything in your directory directoryls -la
long list with permissions and hidden files, the ones with dot in front of themchmod +x filename.sh
allows a bash file to be ran./filename.sh
runs the bash filebash filename.sh
can also run a bash file without the above double step.- right-click to paste into the bash terminal. Useful to copy from windows and paste into linux
- If something is selected then right-click to copy
- Quick file view
less filename.txt
q
to quit/ search-word
to search - Edit with
nano filename.txt'
ctrl-xto quit/save
theny
then check the filename and hit enter - When things don't work
ctrl-c
gets you out of some trouble ctrl-z
gets you out of really big trouble- Dangerous
rm -rv foldername
to delete an entire filled folder when in the correct main folder. Can use a path as well. - Really Dangerous, to totally delete the entire BashOnWindows. From windows
cmd
orpowershell
runlxrun /uninstall /full
#Weird Terminal text colors
- symlinks are cyan
- folders without write acces are dark blue
- folders with write acces have a background that is green and blue letters
- text files have white letters
- runnable files have lime green letters
- what is red?
#Java issues
java -version
tells you which is the default java ofor that terminal- need to use
sudo update-alternatives --config java
then choose the priority number of the version of java you wish to run in that terminal