Linux 490

csh if: Expression Syntax.

centos 환경에 csh 을 했을때 # csh if: Expression Syntax. 위와 같이 에러가 발생 된다. 이러면서 환경 변수도 다 못가져오는 문제가 발생 된다. 수동으로 sourcing 하면 되지만 찾아보니깐 버그란다. bugzilla.redhat.com/show_bug.cgi?id=1738491 1738491 – kde.csh profile file contains bourne-shell code 26 users (show) adam.winberg ayadav baumanmo bkw1a carlson.adam.web cbesson chun-liang.lin dhjoshi garloff.annette goeran jwright kelliher lopresti mvanderw pdwyer p..

Linux 2021.03.23

r8125.h:59:20: error: redefinition of ‘ether_addr_copy’ error: unknown field ‘ndo_change_mtu’ specified in initializer

centos 7 환경에 r8125 랜카드 설치 하다 보면 /root/r8125-9.004.01/src/r8125.h:59:20: error: redefinition of ‘ether_addr_copy’ 위와 같이 에러 발생 한다. 설치 패키지 파일에 r8125.h 파일을 수정 해야 한다. 자신의 리눅스 버전을 보고 # uname -a# uname -a Linux sim716 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux 위와 같이 3.10.0 이면 # vi /src/r8125.h #if LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0) 라고 적혀 있는걸 #if L..

Linux 2021.03.19

python pip 패키시 오프라인 환경에서 설치

python pip 패키시 오프라인 환경에서 설치 우선 pypiserver 설치를 해야 한다. # yum install python3* -y # yum install python3-pip* # pip3 install pypiserver 데이터 저장소 생성 # mkdir /data/ # yum install -y httpd-tools # pip3 install passlib # htpasswd -sc /data/htpasswd.txt admin 암호 입력 # pypi-server -p 8080-P /data/htpasswd.txt /data/ & # service firewalld stop 하고 http://localhost:8080 하면 위와 같이 pypiserver 구동 되는것을 확인 할 수 있다. 그..

Linux 2021.03.04

hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by another repository pushing

# git push -u origin master Username for 'http://gitlab.com': test Password for 'http://test@gitlab.com': To http://gitlab.com/root/test.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'http://gitlab.com/root/test.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pu..

Linux 2021.02.18

docker image 만들어서 Private Docker Registry 등록

registry 가 있어야 등록이 됨으로 먼저 설치 하자 # docker pull registry # docker run -d -p 5000:5000 registry 우선 자신만의 docker image 를 만들자. # vi Dockerfile FROM centos:7 RUN yum install epel-release* -y RUN yum -y update CMD ["/usr/sbin/sshd", "-D"] Dockerfile 에 설정을 해서 # docker build -t centos7 명령을 입력 하면 해당 이미지가 만들어진다. Private Docker Registry 등록을 하자. # docker tag centos7 localhost:5000/centos7 # docker push localh..

Linux 2021.02.09

docker volume mount

docker volume 마운트 방법 -- 우선 볼륨 생성 # docker volume create work -- 생성 확인 # docker volume ls DRIVER VOLUME NAME local work 생성 되었고. -- 이미지에 마운트 # docker run -itd --detach -v work:/work --name centos7 --restart always centos:7 접속 해보면 # docker exec -it centos7 /bin/bash [root@cb9bdb58daa1 /]# df Filesystem 1K-blocks Used Available Use% Mounted on overlay 943793916 89271488 854522428 10% / tmpfs 65536 0..

Linux 2021.02.03

docker 네트워크 추가 하기

docker 를 이용해서 centos7 를 설치 해보자.# docker run -itd --name centos7 centos:7 # docker exec -it centos7 /bin/bash접속 해보면# ifconfig 를 이용해 IP 확인해보자.하지만 centos7 이미지는 깡통이다. 아무것도 설치가 안되 있어 모두 설치 해줘야 한다.# yum install -y net-tools# ifconfigeth0: flags=4163 mtu 1500 inet 172.17.0.5 netmask 255.255.0.0 broadcast 172.17.255.255 ether 02:42:ac:11:00:05 txqueuelen 0 (Ethernet) RX packets 2657 bytes 12147479 (11.5..

Linux 2021.01.28
728x90
반응형