• putty ์„ค์น˜ (๋ฐ”ํƒ•ํ™”๋ฉด์— ์‹คํ–‰ ์•„์ด์ฝ˜ ๋งŒ๋“ค๊ธฐ)

  1. ๊ธฐ๋ณธ์„ค์น˜

  • sudo apt-get install putty


  1. ์œˆ๋„์šฐ์—์„œ ์‚ฌ์šฉํ•˜๋˜ ppkํŒŒ์ผ์€ ์“ธ ์ˆ˜ ์—†๋‹ค. puttygen์„ ์ด์šฉํ•ด ์ƒˆ๋กœ์šด ํŒŒ์ผ์„ ๋งŒ๋“ ๋‹ค.

  • apt-get install putty-tools

์•„๋ž˜๋Š”  /home/ufo/AWS/ ํด๋” ์•ˆ์— ์žˆ๋Š” aaa.pem์„   /home/ufo/AWS/ ํด๋”์— aaa.pub ์ด๋ž€ ์ด๋ฆ„์œผ๋กœ ๋งŒ๋“œ๋Š” ๊ฑฐ๋‹ค.

  • puttygen /home/ufo/AWS/a.pem -o /home/ufo/AWS/aaa.pub


  1. ์ด์ œ ๋ฐฉ๊ธˆ ๋งŒ๋“  aaa.pub์„ putty์— ๋“ฑ๋กํ•œ๋‹ค(์œˆ๋„์šฐ์™€ ์™„์ „ํžˆ ๋˜‘๊ฐ™๋‹ค)

  2. ๋‹ค์Œ ๋ฐ”ํƒ•ํ™”๋ฉด์— ๋ฐ”๋กœ๊ฐ€๊ธฐ๋ฅผ ๋งŒ๋“ค์–ด ํด๋ฆญ ํ•œ๋ฒˆ์— ์ ‘์† ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•œ๋‹ค.

  • xxx.desktop ์ฒ˜๋Ÿผ ํŒŒ์ผ๋ช…์„ ์ด๋ฆ„.desktop์œผ๋กœ ๋งŒ๋“ค์–ด์•ผ ํ•œ๋‹ค.

  • ๋‹ค ๋งŒ๋“  ํ›„์—๋Š” ์•„์ด์ฝ˜ ์œ„์—์„œ ์šฐํด๋ฆญํ•œ ํ›„ ๊ถŒํ•œ์„ ์‹คํ–‰๊ฐ€๋Šฅ์œผ๋กœ ๋ฐ”๊ฟ”์ค˜์•ผ๋งŒ ์‹คํ–‰๋œ๋‹ค.

[Desktop Entry]

Type=Application

Exec=/usr/bin/putty ์ ‘์†์ฃผ์†Œ -load ํ”„๋กœ์ ํŠธ๋ช… -l ์ ‘์† ์•„์ด๋””

Terminal=false

Icon=/home/ufo/์‚ฌ์ง„/Icons/Chocolates and cookies.png

Comment=Integrated Development Environment

NoDisplay=false

Categories=Development;

Name[ko]=putty


  • ๋งŒ์•ฝ ์Šคํฌ๋ฆฝํŠธ๋กœ ์‹คํ–‰ํ• ๋•Œ๋Š” ๊ผญ ๊ถŒํ•œ์„ค์ •์„ ํ•ด์•ผํ•œ๋‹ค. ํŒŒ์ผ๋ช…์„ putty.sh ๋กœ ์•„๋ž˜์™€ ๊ฐ™์ด ๋งŒ๋“ค์—ˆ๋‹ค๋ฉด

#!/bin/sh

/usr/bin/putty ์ ‘์†์ฃผ์†Œ -load ํ”„๋กœ์ ํŠธ๋ช… -l ์ ‘์† ์•„์ด๋””

  • chmod 755 putty.sh (777์€ ์ „๊ถŒ, 755๋Š” ์ฝ๊ธฐ/์“ฐ๊ธฐ)

  • ์ด์ œ ์‹คํ–‰

  • ./putty.sh


  • ์œˆ๋„์šฐ ํ•ญ์ƒ ๋งˆ์šดํŒ…

  • ์šฐ๋ถ„ํˆฌ์— ์ ‘์†ํ•˜๋ฉด windows๊ฐ€ ์žˆ๋Š” ํ•˜๋“œ๋ฅผ ๋จผ์ € ๋งˆ์šดํŒ… ํ•ด์•ผ๋งŒ ์ ‘๊ทผ์ด ๊ฐ€๋Šฅํ•˜๋‹ค.

  • ๊ทธ๋ž˜์„œ ๋ฐ”๋กœ๊ฐ€๊ธฐ ๊ฐ™์€ ์ ‘๊ทผ์ด ๋ถˆํŽธํ•˜๋‹ค.

  • ํ•ญ์ƒ ๋งˆ์šดํŒ…์„ ์„ค์ •ํ•œ๋‹ค. ์ด๋Ÿด ๊ฒฝ์šฐ ๋งˆ์šดํŒ… ํ‘œ์‹œ๊ฐ€ ์‚ฌ๋ผ์ง€๊ณ  ์„ค์ •์‹œ ๊ฒฐ์ •ํ•œ ํด๋”์— windows๊ฐ€ ๋“ค์–ด๊ฐ„๋‹ค.


  1. ๋จผ์ € ํ˜„์žฌ ํŒŒํ‹ฐ์…˜์„ ํ™•์ธํ•˜์ž.


  • sudo fdisk -l

  • ์•„๋ž˜์™€ ๊ฐ™์ด Device์™€ Size๋ฅผ ํ†ตํ•ด ์œˆ๋„์šฐ ๋“œ๋ผ์ด๋ธŒ๊ฐ€ ์–ด๋”˜์ง€ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.


  1. ์ด์ œ ํ•ด๋‹น ํŒŒํ‹ฐ์…˜์˜ uuid์™€ type์„ ํ™•์ธํ•œ๋‹ค.


  • sudo blkid

  • ์•„๋ž˜์™€ ๊ฐ™์ด sda1์˜ uuid์™€ type์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.


  1. ์ง€๊ธˆ๊นŒ์ง€ ํ™•์ธํ•œ ์ •๋ณด๋กœ ๋งˆ์šดํŠธ ์ •๋ณด๋ฅผ ์—…๋ฐ์ดํŠธ ํ•œ๋‹ค.


  • sudo vi /etc/fstab4

  • ์•„๋ž˜์™€ ๊ฐ™์ด uuid์™€ ๋งˆ์šดํŒ…์„ ์›ํ•˜๋Š” ํ•˜๋“œ ์œ„์น˜, ๊ทธ๋ฆฌ๊ณ  ํƒ€์ž…์„ ๋„ฃ๊ณ  ๋‚˜๋จธ์ง€๋Š” default 0 0 ์„ ๋„ฃ๋Š”๋‹ค.


  1. ์ด์ œ ์žฌ๋ถ€ํŒ…์„ ํ•˜๊ณ  /windows ํด๋”์— ๋“ค์–ด๊ฐ€๋ฉด ๊ธฐ์กด ๋งˆ์šดํŒ…์„ ํ•ด์•ผํ–ˆ๋˜ ์œˆ๋„์šฐ ๋“œ๋ผ์ด๋ธŒ๊ฐ€ ๋ชฝ๋•… ๋“ค์–ด๊ฐ€ ์žˆ๋‹ค.

  2. ์ด์ œ ์ž์œ ๋กญ๊ฒŒ ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋‹ค.


  • ํฐํŠธ ์„ค์น˜ (ํŠนํžˆ consolas)

- ์šฐ๋ถ„ํˆฌ์—๋Š” ์ฝ”๋”ฉ ํฐํŠธ๊ฐ€ ๋งˆ๋œฉ์ฐฎ๋‹ค.
- ๋‚ด๊ฒŒ๋Š” MS๊ฐ€ ๋งŒ๋“  consolas๊ฐ€ ์ตœ๊ณ ๋‹ค.
- ๊ทธ๋ž˜์„œ ์„ค์น˜ํ•œ๋‹ค.


  1. ์•„๋ž˜ ๊ทธ๋Œ€๋กœ ํ•˜๋ฉด ๋œ๋‹ค.

https://ssup2.github.io/record/Ubuntu_Consolas_Font_%EC%84%A4%EC%B9%98/

  1. ๋‹ค๋งŒ, ๋‚œ ์ฒ˜์Œ์— ํ•  ๋•Œ ์•ˆ๋๋‹ค. ๊ฐ‘์ž๊ธฐ ๋˜๊ธฐ๋Š” ํ–ˆ๋Š”๋ฐ ๊ทธ ์ด์œ ๋ฅผ ์ถ”์ธกํ•˜์ž๋ฉด

http://www.pixelite.co.nz/article/setting-ubuntu-use-inconsolata/

  1. ์œ„ ๋งํฌ์— ์žˆ๋Š” ๊ธ€ ์ค‘์— ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰์‹œํ‚ค๊ณ  ๋‚˜๋‹ˆ

sudo fc-cache -fv

  1. ๋ฌด์–ธ๊ฐ€ ํฐํŠธ๋“ค์ด ์บ์‹œ์œ„๋กœ ์˜ฌ๋ผ๊ฐ€๋Š” ๊ฒƒ ๊ฐ™์•˜๋‹ค. ๊ทธ๋ฆฌ๊ณ  ๋‚œ ํ›„, ๋‹ค์‹œ 1๋ฒˆ ๋งํฌ์— ๋“ค์–ด๊ฐ€ ํฐํŠธ๋ฅผ install ํ•˜๋‹ˆ ์•ˆ๋“ค์–ด๊ฐ€๋˜ ํฐํŠธ๊ฐ€ ๊ฐ‘์ž๊ธฐ ์„ค์น˜๋˜์—ˆ๋‹ค. ์ถ”ํ›„ ์ •ํ™•ํ•˜๊ฒŒ ํ™•์ธ!


** ๊ทธ๋Ÿผ ์ƒ์„ธํ•˜๊ฒŒ ์‚ดํŽด๋ณด์ž

  1. font-manager ์„ค์น˜

# apt-get install font-manager

# apt-get install cabextract


  1. Consolas Download Script ์ƒ์„ฑ ๋ฐ ์„ค์น˜

  • consolas.sh ํŒŒ์ผ ์ƒ์„ฑ ๋ฐ ํŽธ์ง‘

# vim consolas.sh

  • ์•„๋ž˜์˜ ๋‚ด์šฉ์„ vim consolas.sh์— ๋ณต์‚ฌ

#!/bin/sh

set -e

set -x

mkdir temp

cd temp

wget http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe

cabextract -L -F ppviewer.cab PowerPointViewer.exe

cabextract ppviewer.cab


  • consolas.sh ์‹คํ–‰

# chmod +x consolas.sh

# ./consolas.sh


  1. Consolas Font ์„ค์น˜

  • font-manager ์‹คํ–‰ (๊ฒ€์ƒ‰์—์„œ font-manager๋ฅผ ์ฐพ์•„๋„ ๋œ๋‹ค)

# font-manager

  • ์œ„ ํ™”๋ฉด์—์„œ ๋ฐ”๋กœ ์œ„ ๋””์Šคํฌ ์•„์ด์ฝ˜ ์˜†์— ์„ค์ • ์•„์ด์ฝ˜์„ ํด๋ฆญํ•˜๋ฉด install ์ด ๋œฌ๋‹ค.

  • ์•„๋ž˜์™€ ๊ฐ™์ด ์ฐฝ์ด ๋ณด์ด๋ฉด ๋ชจ๋“  ํฐํŠธ๋ฅผ ์„ ํƒํ•œ ๋‹ค์Œ 'ํ™•์ธ'์„ ๋ˆ„๋ฅธ๋‹ค. ๊ทธ๋Ÿผ ์„ค์น˜๊ฐ€ ๋œ ๊ฒƒ์ด๋‹ค.



  • ํฌ๋กฌ ์„ค์น˜

  • ์ฒ˜์Œ์—๋Š” chromium์„ ์ผ๋Š”๋ฐ ๋ฒ„๊ทธ๊ฐ€ ์ข€ ์žˆ์–ด ๋‹ค์‹œ ์›๋ž˜ ํฌ๋กฌ์„ ์„ค์น˜

  • https://www.linuxbabe.com/ubuntu/install-google-chrome-ubuntu-16-04-lts

  • deb ํŒŒ์ผ๋กœ ๋ฐ”๋กœ ์„ค์น˜ํ•˜๋ ค ํ•˜์˜€์œผ๋‚˜ ์˜์กด์„ฑ ๋ฒ„๊ทธ ์ƒ๊น€.

  • ๋ฒ„๊ทธ๊ฐ€ ์—†๋‹ค๋ฉด ๊ทธ๋ƒฅ deb ํŒŒ์ผ ๋”๋ธ”ํด๋ฆญํ•ด์„œ ์„ค์น˜ํ•˜๋ฉด ๋œ๋‹ค.


  • terminal์—์„œ๋„ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ์˜์กด์„ฑ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒ.

  • ์•„๋ž˜์™€ ๊ฐ™์ด sudo apt-get -f install ๋กœ ํ•ด๊ฒฐ.


  • ๋ณธ๊ฒฉ์ ์œผ๋กœ ์„ค์น˜ํ•ด๋ณด์ž.

For those of you who like to hone their command line skills, here is how to install Google Chrome on Ubuntu 16.04/17.10 using terminal.


Press CTRL+ALT+T to open a terminal window, then edit sources.list file with nano text editor. You need to enter your password.


  • sudo nano /etc/apt/sources.list

Use the down arrow key to scroll to the bottom of this file. Copy the following APT line and paste it at the end of the file.


  • deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

linuxbabe@xenial: ~_011


Press CTRL+O to save the file. Then press CTRL+X to exit out of this file. After that, enter the following command to download Googleโ€™s signing key.


  • wget https://dl.google.com/linux/linux_signing_key.pub

Then use apt-key to add it to your keyring so the package manager can verify the integrity of Google Chrome package.


  • sudo apt-key add linux_signing_key.pub

Now update package list and install the stable version of Google Chrome.


  • sudo apt update

  • sudo apt install google-chrome-stable


  • ํŒŒ์ผ ๊ฒ€์ƒ‰

  • find ํŒŒ์ผ ์ฐพ์„ ์œ„์น˜ ์ง€์ • -name ์ฐพ์„ ํŒŒ์ผ ์ด๋ฆ„

  • find ./ -name aaa.txt

  • ./(ํ˜„์žฌ ํด๋” ๋ถ€ํ„ฐ, ํ•˜์œ„ ํด๋” ํฌํ•จ) aaa.txt ํŒŒ์ผ์„ ์ฐพ์•„๋ผ.



  • ํŒŒ์ผ ๋‚ด๋ถ€ ๋ฌธ์ž์—ด ๊ฒ€์ƒ‰

  • grep -r "์ฐพ์„ ๋ฌธ์ž์—ด" ./*


์˜ˆ๋ฅผ ๋“ค์–ด ์•„๋ž˜์˜ ๋ช…๋ น์€ ./(ํ˜„์žฌ ํด๋” ์•„๋ž˜ ๋ชจ๋“  ํŒŒ์ผ์—์„œ) aaa๋ผ๋Š” ๋ฌธ์ž์—ด์ด ์žˆ๋Š”์ง€ ์ฐพ์•„๋ผ. ํ•˜์œ„ ๋””๋ ‰ํ† ๋ฆฌ ๋ชจ๋‘์—์„œ(-r) ์ด๋‹ค. ์—ฌ๊ธฐ์„œ r์€ recursive

  • grep -r "aaa" ./*

  • grep ์šฐ๋ถ„ํˆฌ (์ด๋ ‡๊ฒŒ ํ•ด๋„ ๊ธฐ์กด ์—ด์–ด๋ดค๋˜ ์šฐ๋ถ„ํˆฌ ํŒŒ์ผ์€ ์—ด๋ฆฌ๋”๋ผ)


  • ์žฌ๋ถ€ํŒ…/ ๋„๊ธฐ

  • ์žฌ๋ถ€ํŒ… : reboot ํ˜น์€  init 6

  • ๋„๊ธฐ: poweroff ํ˜น์€ init 0


  • ํŒจํ‚ค์ง€ ์„ค์น˜/์‚ญ์ œ

  • ์„ค์น˜ : sudo apt-get install <package>

  • ์‚ญ์ œ : sudo apt-get purge <package>

  • sudo apt-get autoremove (์˜์กด ๊ด€๊ณ„์˜ ๋ชจ๋“  ํŒจํ‚ค์ง€ ์‚ญ์ œ)

  • sudo apt-get autoclean (์„ค์น˜ํ• ๋•Œ ๋‚ด๋ ค๋ฐ›๊ธฐ ํ•œ ํŒŒ์ผ ์ง€์šฐ๊ธฐ)

=> ์ฆ‰, sudo apt-get purge ํ•œ ํ›„ sudo apt-get autoremove, sudo apt-get autoclean




  • ํด๋” / ํŒŒ์ผ ๋งŒ๋“ค๊ธฐ / ์‚ญ์ œ

  • ํด๋” - mkdir <folder>

  • ์‚ญ์ œ - rm -r <folder> (์•ˆ์— ๋‚ด์šฉ๊นŒ์ง€ ๋ชจ๋‘ ์‚ญ์ œ)

  • ํŒŒ์ผ ์‚ญ์ œ - rm -f <file>

  • ํŒŒ์ผ ์ƒ์„ฑ๋งŒ ํ•˜๊ธฐ- touch <file>

  • ์ผ๋ฐ˜์ ์ธ ํŒŒ์ผ ๋งŒ๋“ค๊ธฐ - vi <file>

  • ํŒŒ์ผ์ด๋‚˜ ํด๋” ์ด๋™ - mv aa bb cc /dd  (aa,bb,ccํŒŒ์ผ์„ /dd๋กœ ์ด๋™)

mv abc.txt def.txt (abc.txt ํŒŒ์ผ์„ def.txt ํŒŒ์ผ๋กœ ์ด๋ฆ„์„ ๋ฐ”๊พธ๊ณ  ์ด๋™)

  • ํŒŒ์ผ์ด๋‚˜ ํด๋” ๋ณต์‚ฌ - cp abc.txt def.txt

cp -r abc def (abc๋””๋ ‰ํ† ๋ฆฌ๋ฅผ def๋””๋ ‰ํ† ๋ฆฌ๋กœ ๋ณต์‚ฌ)

  • ํŒŒ์ผ ๋‚ด์šฉ๋ณด๊ธฐ - cat aa.txt (๋„์Šค์˜ type๊ณผ ๋™์ผ)

    • head aa.txt (์•ž 10์ค„)

    • tail aa.txt (๋’ค 10์ค„)

    • more aa.txt (ํŽ˜์ด์ง€ ๋‹จ์œ„๋กœ ๋ณด๊ธฐ) / more +10 aa.txt (10์ค„๋ถ€ํ„ฐ ์ถœ๋ ฅ)


  • ๋น„๋ฐ€๋ฒˆํ˜ธ ๋ณ€๊ฒฝ

  • passwd <user>

  • ์˜ˆ) root๊ถŒํ•œ์„ ๊ฐ€์ง„ ์œ ์ €์˜ ๋น„๋ฒˆ ์ƒ์„ฑ. ์ฒ˜์Œ ์‹คํ–‰์‹œ ๋ฐ”๋กœ ์ƒ์„ฑํ™”๋ฉด์œผ๋กœ ๋“ค์–ด๊ฐ„๋‹ค.

  • sudo passwd root


  • ์‚ฌ์šฉ์ž ์ „ํ™˜

  • su - ufo

  • su - root


  • ์ƒ๋‹จ ๋ฉ”๋‰ด๋ฐ” ํ•ญ์ƒ ๋ณด์ด๊ธฐ

  1. ์šฐ๋ถ„ํˆฌ๋Š” ์ตœ๋Œ€ํ™”๋ฅผ ํ•ด์•ผ๋งŒ ๋ฉ”๋‰ด๊ฐ€ ๋ณด์—ฌ ์งœ์ฆ๋‚ฌ๋Š”๋ฐ ์•„๋ž˜์™€ ๊ฐ™์ด ๋ฐ”๊ฟ€ ์ˆ˜ ์žˆ๋‹ค.

  2. ์„ค์ • > ๋ชจ์–‘(๋ชจ๋‹ˆํ„ฐ ๋ชจ์–‘)์„ ํด๋ฆญ

  1. ๋™์ž‘ ๋ฐฉ์‹์— ๋“ค์–ด๊ฐ€์„œ '์ฐฝ ์ œ๋ชฉ ํ‘œ์‹œ์ค„์— ๋ณด์ด๊ธฐ' ํ™œ์„ฑํ™”ํ•˜๋ฉด ๋.

  • ํ•ด๋ณด๋‹ˆ ํ•ญ์ƒ ํ‘œ์‹œ๋Š” ์˜คํžˆ๋ ค ๋ถˆํŽธํ•˜๋‹ค.

  • ํ„ฐ๋ฏธ๋„ ๋ณต์‚ฌ / ๋ถ™์—ฌ๋„ฃ๊ธฐ


  1. ๊ธฐ์กด ๋‹จ์ถ•ํ‚ค์— shift๋ฅผ ๋” ๋ˆ„๋ฅด๋ฉด ๋œ๋‹ค.

  2. ๋ณต์‚ฌ : shift + ctrl + v

  3. ๋ถ™์—ฌ๋„ฃ๊ธฐ : shift + ctrl + v


+ Recent posts