Skip to content

Instantly share code, notes, and snippets.

@henryscala
Last active December 14, 2015 04:19
Show Gist options
  • Save henryscala/45f6ad9e49740de3b0b6 to your computer and use it in GitHub Desktop.
Save henryscala/45f6ad9e49740de3b0b6 to your computer and use it in GitHub Desktop.
install virtual BOX, CentOS, Anaconda, iBash

This article describes my steps to setup the iBash environment in my Windows 7 OS.

install virtual box

create a VM and install CentOS

  • While installing, just select Linux, instead of Redhat
  • Rember to select Desktop CentOS in one of the step, instead of using the default minimal CentOS, to use the GUI
  • Install Enhance functions to the VM(Just click the menu item of the virtual box)
  • Enable bi-directionaly Clipboard between VM and the Host OS.
  • Specify a Share Folder to transfer to/from CentOS
  • Restart CentOS, the share folder will be seen in the /media/sf_xxx. However, only root has the priviledge to access it. Normal user don't.

I tried the following way to make the normal user access the share folder, but failed. So, at last, I use the root user instead.

usermod -a -G vboxsf xuuuvhon
usermod -a -G root xuuuvhon
groups xuuuvhon
usermod -g root xuuuvhon
groups xuuuvhon
usermod -a -G xuuuvhon xuuuvhon

Install anaconda

  • download anaconda, the integrated Python environment including IPython, it is a shell script.
  • run the shell script bash Anaconda3-2.4.1-Linux-x86_64.sh
  • The default install folder is /root/anaconda3
  • I used the Python3.5 version of Anaconda.
  • goto /root/anaconda3/bin to run ipython, python, idle
  • ./ipython qtconsole to run ipython with GUI.
  • ./spyder to run the IDE including Ipython and an editor(crash happens)
  • `./ipython notebook' to run ipython with notebook

install bash_kernel for IPython

[root@centostudy workspace]# pip install bash_kernel
Requirement already satisfied (use --upgrade to upgrade): bash-kernel in /root/anaconda3/lib/python3.5/site-packages
Requirement already satisfied (use --upgrade to upgrade): pexpect>=3.3 in /root/anaconda3/lib/python3.5/site-packages (from bash-kernel)
  • run python -m bash_kernel.install -- after install, it can be used. Make sure the IPython and pip is under /root/anaconda3/bin instead of the system default
run 'ipython notebook' in a specified dir
menu->new->Bash

install texlive

  • yum install texlive
  • texlive is for convert .ipynb to pdf
  • The command is like ipython nbconvert xxx.ipynb --to pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment