1. Add Chrome repository

      $ sudo vi /etc/yum.repos.d/google-chrome.repo
    
      [google-chrome]
      name=google-chrome
      baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
      enabled=1
      gpgcheck=1
      gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
    
      :wq
  2. update respository

     $ sudo yum install -y google-chrome-stable
  3. install chrome

     $ sudo yum check-update -y

기존에 CentOS7 에서 루트 계정으로 크롬을 실행시키려면
/usr/bin/google-chrome 파일의 맨 마지막줄에 --user-data-dir 을
추가해주면 실행 됬지만 CentOS7.x 로 업데이트 되면서 이 방법만으론
실행되진 않고 --no-sandbox 구문을 추가해 줘야 합니다.

CentOS7.x 버전에서 루트 계정에서 단순히 한번만 크롬을 실행시키려면

google-chrome --no-sandbox --user-data-dir

하면 되고 지속적으로 루트 계정으로 크롬을 실행시키려면

  $ vi /usr/bin/google-chrome

맨 마지막 줄의

exec -a "$0" "$HERE/chrome" "$@" <= 이부분에  
"--no-sandbox --user-data-dir" 를 아래와 같이 추가해주면 됩니다.

exec -a "$0" "$HERE/chrome" "$@" --no-sandbox --user-data-dir

'Infrastructure' 카테고리의 다른 글

CentOS  (0) 2020.07.11
CentOS7 VScode install  (0) 2020.07.11
CentOS7 일반 유저 권한설정  (0) 2020.07.11
CentOS7 golang Install  (0) 2020.07.11
CentOS7 Kubernetes Install  (0) 2020.07.11
  1. 설치할 장소로 이동, 설치파일 다운로드, 설치파일 압축해제

    $ cd /usr/local
    $ wget https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz
    $ tar -zxvf go1.14.4.linux-amd64.tar.gz
  2. bash 등록

    $ vi ~/.bash_profile
    

...
export GOPATH="$HOME/go"
export GOROOT="/usr/local/go"
export GOBIN="/usr/local/go/bin"
export PATH=$PATH:$GOBIN:$GOPATH/bin

:wq


3. 버전 확인

$ go version
```

'Infrastructure' 카테고리의 다른 글

CentOS7 Chrome Install  (0) 2020.07.11
CentOS7 일반 유저 권한설정  (0) 2020.07.11
CentOS7 Kubernetes Install  (0) 2020.07.11
CentOS7 Docker & Docker-Compose install  (0) 2020.07.11
CentOS7 GUI Install  (0) 2020.07.11

1. Repository 등록

$ sudo nano /etc/yum.repos.d/kubernetes.repo

[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg

2. 필요한 패키지 설치

$ sudo yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes

3. kubelet 등록

$ sudo systemctl enable --now kubelet

4. config 설정

$ nano /etc/sysctl.d/k8s.conf

net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1

5. 설정파일 리로드

$ sysctl --system

6. 나가기

$ exit

'Infrastructure' 카테고리의 다른 글

CentOS7 일반 유저 권한설정  (0) 2020.07.11
CentOS7 golang Install  (0) 2020.07.11
CentOS7 Docker & Docker-Compose install  (0) 2020.07.11
CentOS7 GUI Install  (0) 2020.07.11
CentOS7 Node.js Install  (0) 2020.06.01

Docker Install

  1. repository 설정 및 추가
    $ yum install -y yum-utils \
    device-mapper-persistent-data \
    lvm2
    
    $ yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
  1. Install Docker Engine - Community
    $ yum install -y docker-ce docker-ce-cli containerd.io
  2. version check
    $ docker --version
  3. system
    $ systemctl enable docker
    $ systemctl start docker
    $ systemctl status docker

Docker-compose Install

  1. 파일 다운로드
    $ curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-\$(uname -m)" -o /usr/local/bin/docker-compose
  2. 권한적용
    $ sudo chmod +x /usr/local/bin/docker-compose
  3. 버전 확인
    $ docker-compose --version

'Infrastructure' 카테고리의 다른 글

CentOS7 golang Install  (0) 2020.07.11
CentOS7 Kubernetes Install  (0) 2020.07.11
CentOS7 GUI Install  (0) 2020.07.11
CentOS7 Node.js Install  (0) 2020.06.01
Network  (0) 2020.01.22

yum 업데이트

$ yum update -y

그룹 리스트 확인

$ yum group list

패키지 설치

$ yum groupinstall -y "GNOME Desktop" "Graphical Administration Tools"
$ ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

 

input Guest Image Extends Error

-> undefined kernel headers

$ yum install -y kernel-devel

$ yum groupinstall -y "Development Tools"

$ yum install kernel sources

'Infrastructure' 카테고리의 다른 글

CentOS7 Kubernetes Install  (0) 2020.07.11
CentOS7 Docker & Docker-Compose install  (0) 2020.07.11
CentOS7 Node.js Install  (0) 2020.06.01
Network  (0) 2020.01.22
[Linux/Centos7] 자주쓰는 기본 명령어  (0) 2020.01.12

1. 패키지 업데이트

$ sudo yum -y update

 

2. 설치파일 다운로드 ( v12.x ) 

$ curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -

 

3. 설치 

$ sudo yum clean all && sudo yum makecache fast
$ sudo yum install -y gcc-c++ make
$ sudo yum install -y nodejs

 

4. 확인 

$ node -v

 

* 참고 사이트 

https://computingforgeeks.com/how-to-install-nodejs-on-centos-fedora/

 

'Infrastructure' 카테고리의 다른 글

CentOS7 Docker & Docker-Compose install  (0) 2020.07.11
CentOS7 GUI Install  (0) 2020.07.11
Network  (0) 2020.01.22
[Linux/Centos7] 자주쓰는 기본 명령어  (0) 2020.01.12
[Linux]CentOS7 콘솔 키보드 조작  (0) 2020.01.08

+ Recent posts