User Tools

Site Tools


linux_og_unix:centos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_og_unix:centos [2016/08/14 22:37] (current)
Line 1: Line 1:
 +[[linux_og_unix:​start|Tilbage til Linux og Unix]]
 +
 +----
 +
 +===== CENTOS =====
 +
 +Efter en Centos minimal installation ønsker man nok at gøre flg.
 +
 +<​code>​
 +# ifup eth0
 +# vi /​etc/​sysconfig/​network-scripts/​ifcfg-eth0 ​
 +# yum install deltarpm
 +# yum groupinstall base
 +# yum update
 +
 +# ## RHEL/CentOS 6 32-Bit ##
 +# wget http://​download.fedoraproject.org/​pub/​epel/​6/​i386/​epel-release-6-8.noarch.rpm
 +# rpm -ivh epel-release-6-8.noarch.rpm
 +
 +## RHEL/CentOS 6 64-Bit ##
 +# wget http://​download.fedoraproject.org/​pub/​epel/​6/​x86_64/​epel-release-6-8.noarch.rpm
 +# rpm -ivh epel-release-6-8.noarch.rpm
 +</​code>​
 +
 +
 +Hvis man skal kompilerer nogle programmer, kan man gøre flg. for at installere diverse værktøjer:​
 +<​code>​
 +# yum groupinstall '​Development Tools'
 +</​code>​
 +
 +
 +Desktop CentOS:
 +<​code>​
 +# yum -y groupinstall "​Desktop"​ "​Desktop Platform"​ "X Window System"​ "​Fonts"​
 +# yum -y groupinstall "​Graphical Administration Tools"
 +# yum -y groupinstall "​Internet Browser"​
 +# yum -y groupinstall "​General Purpose Desktop"​
 +# yum -y groupinstall "​Office Suite and Productivity"​
 +# yum -y groupinstall "​Graphics Creation Tools"
 +</​code>​
 +
 +Tilføj Chrome til CentOS:
 +
 +<​code>​
 +cat >/​etc/​yum.repos.d/​google.repo <<EOT
 +[google64]
 +name=Google - x86_64
 +baseurl=http://​dl.google.com/​linux/​rpm/​stable/​x86_64
 +enabled=1
 +gpgcheck=1
 +gpgkey=https://​dl-ssl.google.com/​linux/​linux_signing_key.pub
 +EOT
 +yum install google-chrome-stable
 +</​code>​
 +
 +Tilføj Nginx til CentOS:
 +
 +<​code>​
 +cat >/​etc/​yum.repos.d/​nginx.repo <<EOT
 +[nginx]
 +name=nginx repo
 +baseurl=http://​nginx.org/​packages/​centos/​$releasever/​$basearch/​
 +gpgcheck=0
 +enabled=1
 +EOT
 +yum install nginx
 +</​code>​
  
linux_og_unix/centos.txt · Last modified: 2016/08/14 22:37 (external edit)