본문 바로가기

Ubuntu

(9)
Ubuntu(우분투)에서 Docker(도커) 설치하기 repository을 사용하여 설치 SET UP THE REPOSITORY 1. Update the apt package index: # Update the apt package index: $ sudo apt-get update sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" https://docs.docker.com/install/linux/docker-ce/ubuntu/
ubuntu 설치 후 설정 # 한영키 변경 # 오류보내기 끄기 # SSH 설치 (openssh)https://help.ubuntu.com/lts/serverguide/openssh-server.html # HDD mount # HOME 기본 디렉토리 변경/etc/default/useradd
Mysql USER 추가 1. user create mysql> CREATE USER 'user'@localhost IDENTIFIED BY ??????; mysql> GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost'; mysql> FLUSH PRIVILEGES; 2. DB create mysql> create database testdbname; 3. premition DB ALL PRIVILEGES - 모든데이터베이스에 대한 권한을 가지게 됨 CREATE - 새로운 테이블 또는 데이터베이스를 생성할 수 있음 DROP -테이블 또는 데이터 베이스를 삭제 DELETE - 테이블 삭제 INSERT - 테이블에 row 를 삽입가능 SELECT - 데이터베이스의 select 명령문을 사용 UPD..
디스크 마운드(mount) 하기 0) 제 2의 하드 디스크가 물리적으로 붙은 상태에서 부팅 1) HDD 파티션 & mkfs $ sudo fdisk /dev/sdbd 명령으로 기존 파티션 삭제 후n 명령으로 하나의 프라이머리 파티션 생성w 명령으로 저장 후 q 명령으로 종료==> /dev/sdb1 파티션 생성 $ sudo mkfs.ext4 /dev/sdb1위 명령으로 파일 시스템 생성합니다. 2) /etc/fstab 에 넣고 mount & chown $ sudo blkid/dev/sda1: UUID="5031-6925" TYPE="vfat" /dev/sda2: UUID="a8068ce6-6d75-4925-ad44-32022364b836" TYPE="ext2" /dev/sda3: UUID="amJDny-UNl5-s4VM-N4Dl-oA6E-..
transmission 설치 http://linux.die.net/man/1/transmission-remote https://trac.transmissionbt.com/wiki/rpc
한영키 사용 dconf-editor 설치 sudo apt-get install dconf-editor dconf실행후 다음 설정 변경 org.gnome.desktop.wm.keybindings.Switch input source 항목을 'Hangul' 로 바꾼다.
aptitude 명령어 About aptitude aptitude is the text-based front-end for the APT package management system. It allows the user to view the list of packages and to perform package management tasks such as installing, upgrading, and removing packages. Actions may be performed from a visual interface or from the command-line. Syntax aptitude [...] {autoclean | clean | forget-new | keep-all | update} aptitude [...] ..
apt-cache 명령어 About apt-cache apt-cache queries the package cache of the Advanced Packaging Tool (APT), which is common on Linux systems such as Debian and Ubuntu. Most commonly, this is used to search for packages and package names. It's also useful for helping you keep track of software dependencies. Syntax apt-cache [-agipns] [-o=config_string] [-c=config_file] {gencaches | showpkg pkg... | showsrc pkg... ..