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. 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

작업환경

OS macOS Mojave 10.14.5
CPU i7 2.5Ghz
RAM 16G

 

작업목표

SaltStack 테스트 환경 구축

- 1개의 마스터와 2개의 미니언의 핑 테스트 및 네트워크의 이해를 도모한다. 

 


1. Oracle VirtualBox 설치

https://www.virtualbox.org/wiki/Downloads

 

Downloads – Oracle VM VirtualBox

Download VirtualBox Here you will find links to VirtualBox binaries and its source code. VirtualBox binaries By downloading, you agree to the terms and conditions of the respective license. If you're looking for the latest VirtualBox 5.2 packages, see Virt

www.virtualbox.org

2. CentOS7 다운로드

http://mirror.kakao.com/centos/7/isos/x86_64/

 

CentOS Mirror

 

mirror.kakao.com

 

 

3. 포트개방

//bash
# vi /etc/ssh/sshd_config

#Port 22 주석해제

방화벽해제

//bash
# firewall-cmd --permanent --zone=public --add-port=22/tcp

 

재부팅

//bash
# reboot

 

yum을 통한 네트워크 설치 

//bash
# yum install nano wget curl net-tools lsof bash-completion

 

네크워크 확인

//bash
# ifconfig

 

'Infrastructure' 카테고리의 다른 글

Network  (0) 2020.01.22
[Linux/Centos7] 자주쓰는 기본 명령어  (0) 2020.01.12
[Linux]CentOS7 콘솔 키보드 조작  (0) 2020.01.08
[Linux] CentOS7 디렉토리 역할  (2) 2020.01.08
[Linux] CentOS7 네트워크 설정하기  (0) 2020.01.07

+ Recent posts