Share Coding

Tutorials, Problems, Stuffs …

Tag Archives: centos

Install xfce4 & TigerVNC-Server & Firefox & Flash on Centos 6.2

1. Install EPEL & RPMI & YUM-Priorities

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum install yum-priorities

 
2. Update OS

yum update

 
3. Edit EPEL repo: Add “priority=10” under “enabled=1

vi /etc/yum.repos.d/epel.repo

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
priority=10

 
4. Edit RPMI repo: Add “priority=10” under “enabled=0” and change “enabled=0” to “enabled=1

vi /etc/yum.repos.d/remi.repo

[remi]
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
priority=10

  Read more of this post

Solve slow SSH connection

vi /etc/ssh/sshd_config

Change

#useDNS yes

to

useDNS no

Enable SSL(HTTPS) on Tomcat Server (CentOS)

keytool -genkey -alias tomcat -keyalg RSA -keystore /root/.keystore

GOTO /usr/local/tomcat/conf/server.xml

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="/root/.keystore" keystorePass="yourpassword"
/>