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

Source: Internet
Author: User

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

Welcome to visit my blog

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 Configuration Epel

Use this link to select Epel that match the version number


Download installation After


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 Rstudio

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

 Rstudio-server verify-installation
Configure Ipython Notebook

See below, reproduced from

The Jupyter configuration file should ultimately be as follows:

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

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:

In Linux you can use the command to download directly to local or wget
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
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

The last two need to be installed together, interdependent

4 Download configuration file Centos6-base-163.repo wget

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

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, 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 ' = 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.

Related Article

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: and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: