redhat6.2 related configuration (Yum,,r,rstudio,ipythonnotebook) __python

Source: Internet
Author: User
Tags sha1

Some actions: Install Yum: Configure Epel install R install rstudio Configure Ipython notebook install yum Configure Ipythonnotebook remote access

Welcome to visit my blog https://wyue.name.

Rookie after many failures, many attempts, Baidu N times, Google after N times, finally finished a series of configuration. It's a waste of time ... The download must be recorded and it will be convenient later. Some actions:

View end population with NETSTAT-TUNLP |grep 22
Uninstall your own compiled software make uninstall
Query version number uname-a install Yum:

See below for a detailed reprint from

http://blog.csdn.net/zcyhappy1314/article/details/17580943 Configuration Epel

Use this link to select Epel that match the version number

Https://fedoraproject.org/wiki/EPEL/zh-cn

Download installation After

wget http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm

Install R
Yum install R

tar vxzf r-3.2.2.tar.gz

./configure--prefix=/home/rstudio/r--with-readline=yes--with-libpng= Yes--with-x=no--enable-r-shlib make make 

install

ln-s/home/rstudio/r/bin/r/usr/local/bin/r
Install Rstudio
wget https://download2.rstudio.org/rstudio-server-rhel-0.99.893-x86_64.rpm

Yum Install--nogpgcheck rstudio-server-rhel-0.99.893-x86_64.rpm

 Rstudio-server verify-installation
Configure Ipython Notebook

See below, reproduced from

http://mindonmind.github.io/2013/02/08/ipython-notebook-interactive-computing-new-era/

The Jupyter configuration file should ultimately be as follows:
jupyter_notebook_config.py

c = Get_config ()
c = Get_config ()

C.ipkernelapp.pylab = ' inline '
C.notebookapp.ip = ' * '
C.notebookapp.open_browser = False
C.notebookapp.password = U ' Sha1:8e71ef9******3bad '

C.notebookapp.port = 9999 installation Yum

Yum is the Redhat Linux online installation of updates and software tools, but this
RHEL5 is the charging function, if you do not purchase Redhat services can not use the RHEL5 update source, will be prompted to register.
Because CentOS is a free Linux version that evolved from Redhat, you can use CentOS's Yum update source to implement RHEL5 yum functionality. The configuration method is as follows:
Check whether the Yum is installed, by default, is installed, a total of 4 packages. [Root@linux-a ~]# Rpm-qa |grep Yum
Yum-metadata-parser-1.0-8.fc6 Yum-3.0.1-5.el5
Yum-rhn-plugin-0.4.3-1.el5 Yum-updatesd-3.0.1-5.el5
1, unload the system redhat Yum Rpm-qa |grep yum |xargs rpm-e–nodeps

2 Download related CentOS Yum plug-ins are mainly python-iniparse-0.3.1-2.1.el6.noarch.rpm
yum-3.2.29-40.el6.centos.noarch.rpm
yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

The version number and the installed system version, as well as the 32-bit system and 64-bit system are related to the actual situation, to adjust the download path
Download Address: http://mirrors.163.com/centos/

In Linux you can use the command to download directly to local or wget
http://mirrors.163.com/centos/6/os/i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
Wget
http://mirrors.163.com/centos/6/os/i386/Packages/yum-metadata-parser-1.1.2-16.el6.i686.rpm
Wget
http://mirrors.163.com/centos/6/os/i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm
Wget
http://mirrors.163.com/centos/6/os/i386/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
Note: If the download is not likely to be a minor version of the changes can be downloaded directly after the upload to the Linux server or to the http://mirrors.163.com/centos/6/os/i386/Packages/
The page searches for a specific name at the beginning of the RPM.

3 Install downloaded Yum package (if no permissions can be modified first chmod 777 *)

RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm RPM-IVH
yum-metadata-parser-1.1.2-16.el6.i686.rpm RPM-IVH
yum-3.2.29-40.el6.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

The last two need to be installed together, interdependent

4 Download configuration file Centos6-base-163.repo wget
Http://mirrors.163.com/.help/CentOS6-Base-163.repo

5 Modify Centos6-base-163.repo, change the releasever to CentOS version vicentos6−base−163.repo (edit file using VI command): R e l e a s e v e R changed to C e n The version of T o S v i C e n t o s 6−b a s e−163. R e P O (edit file using v I command): Releasever change to CentOS version vi centos6-base-163.repo (edit file using VI command):%S/RELEASEVER/6 (in VI
Command mode to execute the above command)

6 Put the configuration file in the specified directory and delete the original configuration file cd/etc/yum.repos.d rm-fr * MV
/home/centos6-base-163.repo./

7 Clear Cache Yum Clean all

8 Configuration get Yum list yum makecache configuration ipythonnotebook remote Access

First, create a configuration file named Nbserver 3:

Ipython profile Create Nbserver set login password:

In [1]: From IPython.lib import passwd in [2]: passwd () Enter
Password:verify password:out[2]: ' Sha1:xxxxxxxxxxxxxxxxxxxxxxxxx '
To create a private certificate:

OpenSSL req-x509-nodes-days 10000-newkey rsa:1024-keyout
Mycert.pem-out Mycert.pem into directory 4 of nbserver config file and open
ipython_notebook_config.py, set the following properties:

c = Get_config ()

C.ipkernerlapp.pylab = ' inline ' C.notebookapp.ip = ' * '
C.notebookapp.open_browser = False C.notebookapp.password =
U ' sha1:xxxx your hashed password ' C.notebook.app.port = 9999
Can be set to a different port to enable notebook to work properly, you need to open the port set above in the firewall. You can edit/etc/sysconfig/iptables and add before the last REJECT statement:

-A rh-firewall-1-input-m state–state new-m tcp-p tcp–dport 9999-j ACCEPT
-A output-m state–state new-m tcp-p tcp–dport 9999-j ACCEPT Run the service side with the following command:

Ipython Notebook–profile=nbserver
–certfile=/path/to/your/mycert.pem Open the browser on the local computer and enter

https://ip/of/your/server:9999 can open the client.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.