Today_I_Learned/Linux
-
Ubuntu22.04 에 Python 구 버전(ex.3.8) 을 기본 버전으로 설정Today_I_Learned/Linux 2023. 6. 3. 19:01
Python Linux에서 Defautl python version 을 바꿀 때 https://linux.how2shout.com/install-python-3-9-or-3-8-on-ubuntu-22-04-lts-jammy-jellyfish/ 1. 원하는 version의 python 설치 1) Add PPA for Python old versions sudo apt install software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa 2) Check Python Versions you want sudo apt-cache policy python(version) 3) Install Python sudo apt install python(..
-
[vi/vim] 드래그 Drag, 복사, 붙여 넣기, 삽입Today_I_Learned/Linux 2023. 4. 20. 23:04
Linux 사용 시 nano 대신 vi 쓰는 연습 중... (작성을 위해 찾다가 알게 된 것인데 요즘 환경들은 vi 를 실행해도 자동으로 vim 이 실행된다 함.. vi 를 실행했을 때 문자열에 Color 가 입혀져 출력되는 건 vim 이 실행된 것이라고 보면 될 듯.) 1. 드래그 효과 단축키 : v / ctrl + v / Shift + v (대문자 V 라고 생각하면 됨.) 1) v : Visual mode 로 전환. Visual mode 전환 후 방향키로 커서를 움직여 원하는 문자열을 드래그 할 수 있다. 일반적으로 문서 작성할 때 드래그하는 것과 동일한 방식으로 동작한다. 2) ctrl + v : Visual Block mode 로 전환. Visual Block mode 는 세로 드래그를 할 수 있..
-
Ubuntu_server_20.04LTS 설치 시 Partition 나누기Today_I_Learned/Linux 2021. 9. 9. 15:02
https://blog.naver.com/dmsdl814/222049080346 [Linux]Ubuntu 20.04 Server 다운로드 및 설치과정 Ubuntu 20.04 Server 데비안 계열 Ubuntu 20.04 Server 버전을 설치해 보도록 하겠습니다. 나중에 기회... blog.naver.com 요약 ) 위치 Type Size /boot (ext4) 1G swap RAM 의 4배 / 나머지
-
ubuntu-cloud.img 를 qemu로 실행하는 명령어Today_I_Learned/Linux 2021. 8. 19. 15:35
ub_cl_qemu라는 이름으로 RAM 512mb, CPU core 1개, kvm 사용, 첫번째하드디스크의 img로 Booting을 하는데 img 형식은 qcow2이고, e1000 type의 network interface 2개를 장착한 cli mode의 ubuntu vm을 실행하는 명령어는 다음과 같다. sudo qemu-system-x86_64 -name ub_cl_qemu -m 512M -smp cpus=1,sockets=1 -enable-kvm -machine smm=off -boot order=c -cdrom /PATH /ub_c01-cidata.iso -drive file=/PATH /focal-server-cloudimg-amd64.img,format=qcow2 -device e1000,ma..
-
cloud-init으로 virtualbox vm password 초기화Today_I_Learned/Linux 2021. 8. 12. 16:58
VBox vm을 qcow2 형식의 File로 convert 하던 중. Ubuntu cloud image라고 Ubuntu server보다 더 가벼운 image를 발견, 그러나 Ubuntu cloud image로 생성한 vm은 어째서인지 계정 정보를 알 수 가 없었고...! 찾다보니 Cloud-init 이라는 tool로 계정정보 설정을 바꿀 수 있는 .iso image를 만드는 방법이 있다는 것을 발견. 삽질끝에 Ubuntu Cloud image로 생성한 VM에 Login하는 데 성공~! https://docs.vmware.com/kr/VMware-SD-WAN/4.1/vmware-sd-wan-operator-guide/GUID-46F3C13D-038E-4C92-B639-864B516AE663.html Hos..
-
CMD mode에서 Graphic mode로 Booting 하고 싶을 때Today_I_Learned/Linux 2021. 6. 4. 14:58
Ubuntu를 Desktop 으로 설치하여 Linux GUI가 설치되어 있어야 함. 그 상태에서 기본 Booting mode가 cmd mode 일 때, 다음 Booting 시 Graphic mode로 하고 싶다면 다음 명령어 sudo systemctl set-default graphical.target 반대로 하고 싶을 때 systemctl set-default multi-user.target
-
Linux Booting 시 원하는 Program 자동 실행되도록 설정하기Today_I_Learned/Linux 2021. 2. 5. 09:33
참고 글) https://askubuntu.com/questions/598195/how-to-add-a-script-to-startup-applications-from-the-command-line 방법 요약) ~/.config/autostart/ Folder 생성 위 경로에 “scripatname”.desktop File 생성 다음 내용 복사 [Desktop Entry] Type=Application Exec="실행할 Program 경로" Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name[en_IN]=AnyNameYouWish Name=AnyNameYouWish Comment[en_IN]=AnyComment Comment=AnyComment