우분투로 최소 설치 한 뒤 순서

우분투 서버 버전을 통해 센토라 설치

bash <(curl -L -Ss http://sentora.org/install)

설치 후

apt-get install ubuntu-desktop 을 통해 데스크탑 버전 설치

 

또는

베스타 (VESTA) 설치

curl -O http://vestacp.com/pub/vst-install.sh

로 스크립트 다운 후

bash vst-install.sh

실행

 

데스크탑 버전에서 설치되는지는 확인해봐야 함.

설치 가능함. 대신 로그아웃 상태에서 Ctrl+Alt+F1 키를 눌러 터미널로 접속한 후 위의 명령어를 실행해야 함.

우분투에서 추가 해보고 싶은 패널

https://vestacp.com/#install

Install
#    Currently Supported Operating Systems:
#    RHEL 5, RHEL 6
#    CentOS 5, CentOS 6
#    Debian 7
#    Ubuntu 12.04, Ubuntu 12.10, Ubuntu 13.04, Ubuntu 13.10, Ubuntu 14.04

# Connect to your server as root via SSH

ssh root@your.server

# Download installation script

curl -O http://vestacp.com/pub/vst-install.sh

 

# Run it

bash vst-install.sh

 

 

iis 백업

서버를 운영하는 환경에서 데이터의 백업과 복원의 중요성에 대해서는 모두가 잘 알고 있는 사실입니다. IIS 7 또한 외부의 공격이나 서버 장애 등의 다양한 위험 요소로부터 만약의 재해 상황을 대비해서 백업은 반드시 필요합니다. 뿐만 아니라 웹 서버 이전이 필요한 경우에도 이와 같은 백업과 복원을 통해 작업을 수행할 수 있습니다.

웹 서버 백업 정책을 고려하기 위해서 우선 백업 범위에 대해서 생각해 봐야 합니다. 단순하게 ‘IIS 7 설정 데이터만 백업하면 되겠지?’ 라고 생각할 수 있습니다만 일반적으로 아래와 같은 항목들에 대해서 백업을 검토해야 합니다.

1. 웹 사이트 데이터
웹 사이트 소스 코드와 모듈 데이터(HTML, ASP.NET, DLL 파일 등)

2. 트랜잭션 데이터
웹 사이트에서 사용되는 트랜잭션 데이터로 파일 또는 DBMS 정보

3. IIS 7 설정 정보
호스팅 하고 있는 어플리케이션들을 위한 커스터마이징 된 서비스들에 대한 정보로써 웹 사이트, 응용 프로그램 풀, IIS 서비스 설정 정보 (.config 파일 등)

4. 운영체제 및 종속된 서비스
호스팅 환경의 어플리케이션을 위한 설정 파일 또는 Supporting 파일 (리소스 킷 툴, 모니터링 에이전트, 정책 등)

이번 포스팅에서는 IIS 7 에서 제공하는 백업을 소개하기 앞서 Windows Server 플랫폼의 전반적인 백업과 복원 방법에 대해서 소개해 드립니다. Windows Server 의 백업과 복원을 위해 다양한 3rd party 제품들도 있습니다만 Windows Server 2008 에서 기능으로 제공하는 Windows Server Backup 기능에 대해서 아래와 같이 정리하였습니다.

[Windows Server Backup 기능]
Windows Server Backup 기능은 이전 버전의 ntbackup.exe 에서 대체된 새로운 모듈이며 GUI, 커맨드 라인 명령을 모두 지원하는 도구를 포함하고 있습니다. Windows Server 백업을 사용하여 전체 서버(모든 볼륨), 선택한 볼륨, 시스템 상태 또는 특정 파일이나 폴더를 백업하고 완전 복구에 사용할 수 있는 백업을 만들 수 있습니다. 볼륨, 폴더, 파일, 특정 응용 프로그램 및 시스템 상태를 복구할 수 있습니다. 또한 하드 디스크 오류와 같은 재해가 발생한 경우 완전 복구를 수행할 수 있습니다. Windows Server 백업을 사용하여 로컬 컴퓨터 또는 원격 컴퓨터에 대한 백업을 만들고 관리할 수 있으며, 백업이 자동으로 실행되도록 예약할 수도 있습니다.

다음은 Windows Server 백업 기능을 설치하고 파일 백업 및 복구 과정에 대해서 아래와 같이 간략히 정리하였습니다.

1. 설치
가. 서버관리자 – 기능 – 기능 추가 – Windows Server 백업 기능 (Windows Server 백업, 명령줄 도구 모두 선택)
나. 위와 같이 백업 기능 설치 시, MMC(Microsoft Management Console) 스냅인, 명령줄 도구, Windows Powershell 스냅인 및 cmdlet 모듈이 설치됩니다.

2. 특정 파일 백업
가. 시작 – 모든 프로그램 – 관리도구 – Windows Server 백업
나. 동작 – 한 번 백업

다. 다른 옵션

라. 사용자 지정

마. 항목 추가

바. C:InetPub 선택

사. 로컬 드라이브

아. 백업 용도의 E 드라이브 선택
자. 백업
차. 백업 진행 상태 확인
카. 정상적으로 백업을 완료하였음을 확인할 수 있습니다.

3. 복구 테스트를 위한 샘플 파일 삭제
가. C:inetpubwwwroot 시작 페이지 파일 삭제

4. 복구
가. 동작 – 복구

나. 이 서버 선택

다. 기존 백업 세트 중에서 복구에 사용할 백업 날짜 선택

라. 파일 및 폴더

마. Wwwroot 폴더 선택

바. 복구 옵션 지정
1) 원래 위치
2) 기존 버전을 복구된 버전으로 덮어쓰기
3) ACL 권한을 복구되고 있는 파일 또는 폴더로 복원

사. 복구 대상 확인

아. 복구 완료

자. 파일 복구 성공

차. 확인 – 파일이 모두 정상적으로 복원되었습니다.

일반적인 파일 단위 백업 뿐만 아니라 서버 전체 백업, 시스템 파일, 부팅 파일, 레지스트리, 볼륨 단위 백업도 가능하며 예약 작업을 통해 정기적인 백업 수행이 가능하다는 것을 확인하였습니다. GUI 가 아닌 명령줄(Command Line) 툴 wbadmin.exe 파일을 통해서도 이러한 백업과 복원이 가능하며 보다 자세한 Windows Server 백업의 기능에 대해서는 아래 TechNet 문서를 참조하시기 바랍니다. http://technet.microsoft.com/ko-kr/library/ee344835(WS.10).aspx

Windows Server 백업 기능을 사용해서 운영체제와 파일 백업에 대한 소개에 이어 이번 포스티엥서는 IIS 7 설정을 백업하고 복원하는 방법에 대해서 살펴 보도록 하겠습니다.

Chapter 5에서 appcmd.exe 커맨드라인 도구를 소개할 때, 간략히 백업과 복원 명령어를 소개하였습니다만 커맨드라인 명령 뿐만 아니라 IIS 7 인터넷 정보 관리자 인터페이스를 통해서 쉽게 IIS 7 설정을 백업하고 복원할 수도 있습니다. 두 가지 방법 예제를 통해 살펴보겠습니다. 개인적으로는 검증된(?) 그리고 활용도가 높은 appcmd.exe 명령 사용을 추천해 드립니다.

1. appcmd.exe 명령으로 IIS 7 설정 백업과 복원하기
가. 바이너리 위치 및 도움말 정보 보기 : %WindDir%System32InetSrvappcmd.exe /?

나. 백업하기
1) C:WindowsSystem32intersrv> appcmd add backup
2) 백업 파일 이름을 지정해 주지 않으면 현재 타임스탬프 이름으로 백업됩니다.

다. 백업 목록 확인
1) appcmd list backup
2) 이미 존재하는 BACKUP “CFGHISTORY_Serialnumber” 형태로 기록된 정보는 매 2분마다 IIS 7 구성 정보 변경 여부를 체크하여 변경 사항이 있을 때마다 자동으로 백업이 수행된 기록입니다. %SystemDrive%InetPubhistory 폴더에서 백업된 정보를 확인하실 수 있습니다.

라. 백업 정보 삭제
1) appcmd delete backup 20110107T102003

마. 백업 및 복원 시나리오
1) “laigo” 라는 백업 이름으로 백업을 수행합니다.

appcmd add backup laigo

2) “laigo” 백업 세트를 사용하여 즉시 복원하고 IIS 서비스를 재시작 합니다.

appcmd restore backup /backup.name:”laigo”

3) 복원 시 IIS 서비스 재시작을 원치 않는다면 /stop:false 파라미터를 사용하시면 됩니다. 물론 수동으로 재시작해야 변경 사항이 적용됩니다.

appcmd restore backup /backup.name:”laigo” /stop:false

2. IIS 7 백업 복원 사용자 인터페이스
가. 다운로드 (IIS7 Backup Restore UI)
http://www.iis.net/community/default.aspx?tabid=34&g=6&i=1552

나. 다운로드 받은 파일의 압축을 해제한 후 IIS7BackupRestoreUI.dll 파일을 글로벌 어셈블리 캐쉬(C:Windowsassembly 폴더로 Drag & Drop 하면 자동으로 설치됩니다.

다. 메모장 실행 후 %WinDir%System32InetSrvconfigAdministration.config 파일을 열어 <moduleProviders> 이름으로 검색한 후 해당 섹션 아래에 다음 내용을 추가합니다.

<add name=”IIS7BackupRestoreUI” type=”IIS7BackupRestoreUI.MyModuleProvider, IIS7BackupRestoreUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=db9daa3d2ea5f6fd” />

다시 한 번, <modules> 이름으로 검색한 후 해당 섹션 아래 아래 내용도 추가합니다.

<add name=”IIS7BackupRestoreUI” />

수정된 파일을 저장합니다.

라. 인터넷 정보 관리자를 실행하면 아래 그림과 같이 Backup Restore 메뉴가 추가된 것을 확인할 수 있으며 IIS7BackupRestoreUI 기능이 아이콘으로 추가 되었음을 확인할 수 있습니다.

마. 신규 백업을 생성하기 위해서는 Backup Name 에 백업세트 이름을 입력한 뒤 ‘Create’ 버튼을 클릭하시면 됩니다. 필요시, Web.config 파일도 백업 여부를 선택할 수 있습니다. 백업 시 성공하면 성공되었다는 팝업창이 나타나게 됩니다. 백업이 완료된 이후 appcmd list backup 명령으로도 백업 세트를 확인하실 수 있습니다.

바. 이후 복원을 하기 위해서는 Available Backups 항목에 있는 드롭다운 리스트 박스 버튼을 클릭하면 현재 백업 되어 있는 목록들을 보여주게 되며 선택하여 복원할 수 있습니다. 복원 시, 아래에 있는 Log 메시지 창을 통해 복원 결과를 확인하실 수 있습니다.

IIS 7 백업 복원 사용자 인터페이스를 사용하실 때, 몇 가지 주의하실 사항이 있습니다. 우선 복원 시, 자동으로 IIS 서비스가 재시작 된다는 것과 반드시 백업 후에는 복원 테스트를 통해 권한이나 그 외 예외가 발생하지 않는지 테스트가 필요합니다. 제가 테스트한 일부 환경에서는 복원 실패 사례가 있었으나 아직 많은 테스트를 진행하지 못해 구체적인 정보를 전해 드리기 어렵습니다. 개인적으로는 appcmd.exe 명령을 사용하여 백업, 복원을 관리하는 것을 권장해 드리고 싶습니다.

컨텐츠 또는 데이터베이스 백업은 신경 쓰면서 운영체제와 웹 서비스의 설정 정보의 백업은 소홀하진 않으셨는지요? 보신바와같이정말 간단하게 APPCMD 명령 한 줄이면 현재 IIS 웹 서버의 구성 정보를 안전하게 백업 받을 수 있습니다. 명령어사용을아끼지 말고 작업전, 작업후항상백업자료관리신경써주시면정신건강에아주이로울거라확신합니다.

webmin 설치

데스크탑 버전에서도 설치가 가능한것을 확인

 

install and update Webmin via APT, edit the /etc/apt/sources.list file on your system and add the lines :

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

 

 

You should also fetch and install my GPG key with which the repository is signed, with the commands :

cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc

 

 

You will now be able to install with the commands :

apt-get update
apt-get install webmin

 

 

All dependencies should be resolved automatically.

우분투 추가 설치용 프로그램

와인, playonlinux

$ sudo apt-get install wine playonlinux

http://igxactly-kr.blogspot.kr/2014/04/ubuntu-1404-pc-wine.html 이곳을 참고하여 카카오톡 PC버전을 사용할 수 있다.

5) Tweak 설치

synaptic 패키지 관리자, dconf, compiz(컴피즈) 설정 관리자, ubuntu tweak, unity tweak 등 필요한 트윅을 설치한다.

우분투 tweak

$ sudo add-apt-repository ppa:tualatrix/ppa
$ sudo apt-get update
$ sudo apt-get install ubuntu-tweak

출처 : http://deviantcj.tistory.com/192

6) Mac OSX 테마를 설치하고 싶은 경우 아래 페이지로 가서 시키는대로 한다.

http://www.noobslab.com/2014/04/macbuntu-1404-pack-is-released.html

6-1) Cairo-dock

6번 항목의 하단에 보이는 Mac OSX 스타일 Dock을 사용할수 있게 해준다.

우분투 소프트웨어 센터를 통해 설치하거나, 터미널의 경우 아래 커맨드를 통해 설치한다.

sudo add-apt-repository ppa:cairo-dock-team/ppa
    sudo apt-get update
    sudo apt-get install cairo-dock cairo-dock-plug-ins
출처 : http://askubuntu.com/questions/160769/stack-docklet-in-ubuntu-12-04-unity

7) 추가 프로그램들

Xpad – 데스크탑 포스트잇.

-> KNotes로 갈아탐. 상단 타이틀바가 따로 없고, Global hotkey를 지원해서 좋다.

Shutter – 스크린 캡쳐 프로그램으로, 단축키 설정에 따라 Mac OS의 캡쳐처럼 사용할 수 있다.

VLC Player – OS를 넘나드는 오픈소스 비디오 재생기.

Google Chrome – 이제는 없어선 안될 구글의 웹브라우저.

Transmission torrent client(Transmission Remote) – 토렌트 클라이언트.

GPart Partition Editor – 멀티부팅으로 사용할 때 용량이 부족하다면 꼭 필요한 프로그램.

8) 개발용 툴들

PhpStorm – IntelliJ의 PHP버전(유료)

eclipse – 말이 필요없는 대표 IDE

Terminator – 한 창에서 여러 터미널을 표시해주는 프로그램

PAC Manager – Terminator 보다 좀 더 다양한 기능을 제공 해 준다.

http://sourceforge.net/projects/pacmanager/

FileZilla – 윈도우에서도 사랑받는 FTP Client

emma – MySQL(또는 MariaDB)용 클라이언트. 윈도우의 HeidiSQL과 UI가 비슷하므로, MySQL Workbench가 부담

스러운 경우 사용하면 좋을 것 같다.

mysql client는 확실히 이게 좋다.

SQLite browser – 윈도우용과 같은 UI가 제공되는 SQLite 탐색기이다.

PCManFM – Nautilus를 대신하는 파일 관리자. 듀얼보기(F3)를 제공 해 편리하다.

다만 PCManFM을 기본 탐색기로 사용하려면 아래와 같은 과정이 필요하다.

출처 : http://askubuntu.com/questions/84929/how-to-set-up-dolphin-as-default-file-manager

윈도우에 tortoise가 있다면 리눅스에는 rabbit이 있다!

svn과 git를 지원한다. (방금 확인 해 보니 nemo용 rabbitvcs 애드온이 민트 17.1으로 업그레이드 한 후 동작을 안하고 있다.. 제길..)

 

웹서버 비교

http://lunarpages.com/uptime/apache-vs-iis-which-web-server-should-you-choose

 

Apache vs. IIS: Which Web Server Should You Choose?

The web runs on several protocols: HTML (HyperText Markup Language); HTTP (HyperText Transfer Protocol); and URI (Uniform Resource Identifier) — or as some people call it, a URL. But underneath all of these protocols — the quick and dirty version of how information on the Internet is built and distributed — is this simple truth: Web pages are served by web servers.

There are two meanings to the term “web server”; one is the physical (or virtual) server that hosts applications, and the other is the software (or application) that delivers the web content (or other tasks, depending on the application) to the end user or system.

The actual box that hosts the applications can be physical or virtual. If you have a server closet or run a data center, you most likely have a complex infrastructure topology consisting of routers, firewalls, web servers, application servers and database servers. Often, these servers have combined roles (e.g., all of the applications and web servers are on the same machine), but this really depends on organizational security requirements and the complexity and performance of the infrastructure.

You can also host applications within virtual or cloud environments and have dedicated virtual instances for each type of server. Again, it depends on what you are trying to accomplish.

Using a particular type of physical/virtual server may determine the type of web-server software you use. If you are a Microsoft shop, more often than not you will choose to use IIS (Internet Information Services/Server) by Microsoft as your web-server application solution. If you are using a Linux distribution, you have other choices available to you, including Apache, NGINX and LiteSpeed.

The Most Popular Web Servers

So which web server should you choose to operate your website? That depends on a number of factors. But first, let’s take a look at popularity.

The web-server space is dominated by four web servers: Apache, Microsoft IIS, NGINX and Google Web Server.

A NetCraft survey in April 2014 showed the following market-share breakdown:

Web Server % Share (all sites) % Share (active sites) % Share (top million busiest)
Apache 38.60% 52.44% 53.44%
IIS 31.10% 11.37% 12.40%
NGINX 15.56% 14.22% 17.82%
Google Web Server 2.28% 8.33% 2.96%

 

W3Techs reports a similar breakdown of market share (as of May 2014):

  • Apache: 60.6%
  • NGINX: 20.6%
  • IIS: 13.9%
  • LiteSpeed: 2.0%
  • Google Servers: 1.3%

W3Techs report updates daily and investigates the technology of a website, not an individual webpage.

Trends are indicating that NGINX is gaining momentum within the web-server space while Apache, the long-time leader, is slowing down.

Choosing the Right Web Server

As with any infrastructure decision, your choice hinges on a few key items:

  • Cost
  • Support
  • Capabilities

Cost and support tend to go hand in hand. While you may choose a particular web server because it is open source, there may be hidden costs associated with maintaining your choice — specifically, supporting it. Many open-source companies now charge for professional support, so when you have an issue, you can jump to the front of the line by contacting a dedicated and experienced support team instead of having to solve the problem yourself or going on a forum and parsing through other users’ discussions of the issue.

The capabilities you desire may also determine which web server you go with. One popular “stack” to consider is the pairing of operating system and web server with a database and programming framework. There are a few of these to consider, including:

  • LAMP: Linux, Apache, MySQL and PHP
  • WIMP: Windows, IIS, MySQL/MS SQL Server and PHP
  • WAMP: Windows, Apache, MySQL/MS SQL Server and PHP
  • LEMP: Linux, NGINX, MySQL and PHP

There are other variants of this as well. If you go down the “free” and open-source route, the most popular are LAMP and LEMP. It is important to note, though, that you can install Apache, MySQL and PHP on Windows-based machines.

A Breakdown of Each Web Server

As the statistics show, Apache, NGINX and IIS are the primary players in this space, with Google Web Server and LiteSpeed also appearing toward the “top of the bottom.” Below is a quick overview of each, including some of the popular sites that are using the respective applications.

Apache

  • Home Page: http://httpd.apache.org/
  • Cost: Open source, free, no licensing fees
  • Advantages:
    • Is flexible because of ability to pick and choose various modules
    • Has enhanced security (notable, because vulnerabilities typically are attacked in Windows-based machines)
    • Has strong user-community support
    • Runs on UNIX, Windows, Linux, Mac OS
  • Disadvantage:
    • Is a process-based server, which means each simultaneous connection requires a thread that can incur significant overhead
  •  Popular Sites Using It: Baidu, Wikipedia, PayPal, Apple, Huffington Post

Microsoft IIS

  • Home Page: http://www.iis.net/
  • Cost: Comes with Windows (could mean increased costs through licensing)
  • Advantages:
    • Is supported by Microsoft
    • Provides access to .NET framework & ASPX scripts
    • Integrates with other Microsoft services (Active Directory, MS SQL server, ASP, etc.)
  • Disadvantage:
    • Isn’t able to customize as much as open-source web servers
  • Popular Sites Using It: (mainly Microsoft properties) Live.com, Bing.com, Microsoft, MSN, Barbie.com

NGINX

  • Home Page: http://wiki.nginx.org/Main
  • Cost: Free (open source)
  • Advantages:
    • Is known for speed and for being a reverse-proxy server
    • Is an event-based server, which enables high performance and scale
    • Is potentially better for a VPS (Virtual Private Server) environment
  • Popular Sites Using It: WordPress.com, Pinterest, Tumblr, Instagram, CNet, Meetup.com, Weibo, Time.com

LiteSpeed

Google Web Server (GWS)

Of the options available, your development environment, coupled with the expertise of your developer and system administrator, will most likely dictate which web server you actually end up using. It is important to carefully weigh all of the options, balancing cost and support with the features and capabilities you require.

While choosing the more popular server may make sense, each choice truly depends on what you want to accomplish within your hosting environment. And if you are using shared hosting, you may not have that choice at all.

Regardless, talk to the community and do some research with your IT peers to find out what they like or dislike about a particular web server. You may be surprised by some of the answers.

[Image: Tashatuvango/iStock/ThinkStockPhotos]

– See more at: http://lunarpages.com/uptime/apache-vs-iis-which-web-server-should-you-choose#sthash.SJlfVjVy.dpuf

우분투 한글키 사용하기

그래서 Dconf-editor 를 사용해야 한다.

터미널을 열고, 다음 명령을 입력한다.

sudo apt-get install dconf-editor

설치가 끝나면 유니티에서 dconf 를 불러본다.

실행한 뒤, 위에서 설명한 대로 해주면 된다. 다시 써보자면,

org.gnome.desktop.wm.keybindings.Switch input source 항목을 ‘Hangul’ 로 바꾼다.

따로 저장할 필요는 없다.

한/영 키를 누르면 Hangul 에서 영어(미국)으로 전환이 잘 되는 것을 볼 수 있을 것이다.

그런데, 우리 글인 ‘한글’은 영문자 Hangul 로 표기되어 있고, 남의 말은 우리 말로 표기되어 있다. 뭔가 이상하지 않나??

여기까지 하면 한영전환이 잘 이뤄져야 한다. 만약 그래도 안된다면, 아래 부분을 확인해본다.
터미널에서 ibus-setup 을 입력하여 실행한 뒤, ‘고급’ 탭을 살펴본다.
아래 그림처럼 ‘전역 입력기 설정’에서 ‘모든 응용 프로그램에서 동일한 입력기 공유’ 부분이 선택되어 있어야만 한/영 전환이 이루어진다.

위처럼 설정하지 않으면 알리미 부분에서 아이콘이 영어/한국어로 바뀌기는 하는데, 실제로 자판이 바뀌지는 않는다.

인코딩

 

■ EUC-KR

먼저 우리나라에서 자주 쓰이는 문자셋은 EUC-KR과 UTF-8이 있습니다.

EUC-KR은 2350개의 한글문자, 한국에서 통용하는 한자 그리고 영문을 표현할 수 있습니다.

하지만 문서를 작성할 때 한정된 범위내의 문자만을 사용할 경우 사용합니다.

즉, 한정된 범위니.. 한정된 범위가 아닐 경우 사용할 수 없지요.

또한 한글 한 글자를 2 바이트로 처리합니다.

■ UTF-8

UTF-8은 많이들 들어보신 유니코드입니다. 유니코드는 전 세계의 모든 문자를 표현할 수 있는 인코딩입니다.

한글을 쓰이지 않는 세계 어느 곳에서도 한글 그대로 표현할 수 있습니다.

단, 한글 한 글자를 3 바이트로 처리하지만 공백이나 영문 한 글자는 1 바이트로 처리하는 장점을 가지고 있습니다.

한글로만 작성 할 경우 문서의 양이 커질 수 있지만, 위와 같이 다른 문자는 1 바이트로 처리하는 강점을 가지고 있으니..

한글로만 작성하는 글자는 EUC-KR가 좋다고 보시면 됩니다.