Git Core 설치

~$sudo apt-get install git-core

 

Data 관리될 디렉토리 생성

~$mkdir /git

 

새로 생성된 디렉토리 아래 저장소 생성

~$cd git

~$mkdir test

~$cd test

~$git init --bare test.git

Initialized empty Git repository in /home/ubuntu/git/test/test.git/

 

여기까지 서버 설정 끝

 

접속할 pc에서 

~$git config --global user.name "임의이름"

~$git config --global user.email "임의이메일"

~$git init

Initialized empty Git repository in /home/공유 깃

 

~$git remote add origin ubuntu@접속ip:/home/ubuntu/git/test/test.git

~$git add *

~$git commit -m "init"

~$git push origin master

 

 

MariaDB - Linux CentOS 6 에서 MariaDB yum으로 설치

 

* 기존에 설치된 MYSQL 삭제 

yum remove mysql

 

* yum으로 MariaDB 설치 Repository 값 확인 후 생성

https://mariadb.com/kb/en/mariadb/yum/

 

* yum으로 MariaDB 설치

yum install MariaDB-server MariaDB-client

 

* MariaDB 실행

/etc/init.d/mysql start

 

* MariaDB root 비밀번호 생성

/usr/bin/mysqladmin -u root password 비밀번호

 

* Listen 확인

netstat -anp | grep 3306

 

* MariaDB 접속

mysql -uroot -p

 

*MariaDB 사용 계정 생성

GRANT ALL PRIVILEGES ON *.* TO 계정명@'%.%.%.%' IDENTIFIED BY '비밀번호';

 

* MariaDB 재시작

service mysql stop

service mysql start

'Linux' 카테고리의 다른 글

개인 git 서버 설치 및 사용하  (0) 2023.04.08
Ubuntu 에서 텔넷 서버 설치  (0) 2020.04.04
YUM 사설 Server 생성  (0) 2020.03.04
Centos 7/8 samba 설정 절차  (0) 2019.11.19
linux에서 cifs를 통한 Window Server 마운트 하기  (0) 2019.11.18

 

1. apt 에서 xinetd / telnetd 설치

$ sudo apt-get install xinetd telnetd


2. /etc/xinetd.d/telnet 설정 파일 생성

$ vi /etc/xinetd.d/telnet

# default: off

service telnet

{

 disable = no

 flags = REUSE

 socket_type = stream

 wait = no

 user = root

 server = /usr/sbin/in.telnetd

 log_on_failure += USERID

 

 

YUM 사설 Server 생성 Linux 2020. 3. 4. 09:48

1. YUM 저장소 생성

  mkdir 저장소 path

 

2. YUM 저장소 DATA 다운로드

  예)  epel 저장소

  http://dl.fedoraproject.org/pub/epel/6/x86_64/ 

  wget -m -nH -np -R "index.*,*.iso" -P "/data/" "http://dl.fedoraproject.org/pub/epel/6/x86_64"

 

3. httpd 실행을 위한 아파치서버 설치 및 실행

  yum -y install httpd

  chkconfig httpd on

  service httpd start

 

3. 외부에서 접속 및 다운로드 가능하도록 link 설정

   ln -s 1번 path /var/www/html/centos

4. SELinux 및 방화벽 끄기 ( 사내 내부 구성용으로 보안 설정 무 / 필요시 설정 )
5. yum install createrepo 명령으로 Package 설치

6. createrepo 저장소path 명령어 실행으로 repository 정보 파일 생성 ( xml )

1. Samba server 패키지가 설치되어 있는지 확인후 설치 안되어 있으면

yum 을 통하여 설치

 

2. Samba 접속시 사용할 계정 생성 및 smbpasswd 을 통하여 유저 패스워드 생성 및 확정

ex) smbpasswd -a 유저명

      비밀번호 입력 및 확인

      smbpasswd -e 유저명

 

3. samba 공유 디렉토리 설정 및 삼바 공유 디렉토리 마킹

mkdir /home/test

chcon -R -t samba_share_t /home/test

ls -Z /home  <-- 마킹이 정확히 되어 있는지 확인

/usr/sbin/setsebool -P samba_export_all_rw on -> samba_share_t 마킹된 디렉토리에 읽기 쓰기 권한 부여

chown -R 유저명:유저그룹 /home/test

chmod -R 755 /home/test

 

4. 파이어월 삼바 예외항목 등록

    firewall-cmd --info-service samba

    firewall-cmd --permanent --add-service=samba
    firewall-cmd --reload

 

5. systemctl enable --now {smb,smb}

Window Server Mount

cifs \ub97c \ud1b5\ud55c \uacf5\uc720

mount -t cifs -o user=userid(@domain),password=password -o uid=userid,gid=groupid //윈도우서버 주소 또는 이름 /마운트될 디렉토리
ex)
mount -t cifs -o user=testid,password=testpw -o uid=100,gid=100 //testWin/test /home/test

'Linux' 카테고리의 다른 글

YUM 사설 Server 생성  (0) 2020.03.04
Centos 7/8 samba 설정 절차  (0) 2019.11.19
Linux에서 Usb 장치에 ISO 파일 쓰기  (0) 2019.02.21
Linux에서 Usb 메모리 포멧  (0) 2019.02.21
centos 7 chrom install  (0) 2017.12.17

1. USB 포멧과 같이 장치를 인식후 언마운트 상태로 적용

2. dd if=CentOS-6.10-x86_64-bin-DVD1.iso of=/dev/sdb1 bs=4M && sync


완료

'Linux' 카테고리의 다른 글

YUM 사설 Server 생성  (0) 2020.03.04
Centos 7/8 samba 설정 절차  (0) 2019.11.19
linux에서 cifs를 통한 Window Server 마운트 하기  (0) 2019.11.18
Linux에서 Usb 메모리 포멧  (0) 2019.02.21
centos 7 chrom install  (0) 2017.12.17

Linux에서  Usb 장치 포멧

1. Usb 장치 인식

2. df 명령으로 USB 장치 이름 확인

3. 현재 mount 된 상태 해제

4. mkfs.fat -F 32 -I /dev/장치 이름

 -F : FAT16 또는 FAT32
 -I :  디스크 전체 포맷 


'Linux' 카테고리의 다른 글

YUM 사설 Server 생성  (0) 2020.03.04
Centos 7/8 samba 설정 절차  (0) 2019.11.19
linux에서 cifs를 통한 Window Server 마운트 하기  (0) 2019.11.18
Linux에서 Usb 장치에 ISO 파일 쓰기  (0) 2019.02.21
centos 7 chrom install  (0) 2017.12.17
centos 7 chrom install Linux 2017. 12. 17. 16:04

repository setting


[ezcamdb@ezcamDb yum.repos.d]$ more google-chrome.repo

[google-chrome]

name=google-chrome

baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64

enabled=1

gpgcheck=1

gpgkey=https://dl.google.com/linux/linux_signing_key.pub

[ezcamdb@ezcamDb yum.repos.d]$ 


chrom install

 sudo yum install google-chrome-stable