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가 좋다고 보시면 됩니다.

 

pydio 한글 인코딩 설정등

설치형 웹하드 ajaxplorer 한글 깨짐 문제 해결 방법

1. 개요

설치형 웹하드 ajaxplorer 설치후 웹하드에 한글명으로된 파일을 올릴때 한글이 깨지는 형상이 발생한다.
해결방법에 대해서 알아보자.
참고 : 설치환경은 CentOS 5.5, Apache2, php 5.2.0임

2. 설정사항
2-1. 서버 로케일 설정
# vi /etc/local.conf
LANG=”ko_KR.UTF8
* LANG값을 ko_KR.UTF8로 수정한다.

2-2. Apache 로케일 설정
파일 : /usr/local/apache/conf/httpd.conf
# vi /usr/local/apache/conf/httpd.conf
AddDefaultCharset UTF-8

만약 VirtualHost부분만 적용하고 싶다면…
파일 : /usr/local/apache/conf/extra/httpd-vhosts.conf
# vi /usr/local/apache/conf/extra/httpd-vhosts.conf
<VirtualHost xxxx:80>
AddDefaultCharset UTF-8
</VirtualHost>

만약, apache가 rpm으로 설치되었다면 아파치 conf 파일 위치는
# ls /etc/httpd/conf/
위치에 httpd.conf 파일이 존재임

2-3. ajaxplorer 환경설정 파일 수정
파일 : core/conf/conf.php
$default_language=”kr

파일 : core/classes/class.SystemTextEncoding.php

static function getEncoding(){
global $_SESSION;

setlocale(LC_CTYPE, ‘ko_KR.UTF-8’);
return SystemTextEncoding::parseCharset(setlocale(LC_CTYPE, 0));
}

pydio 설치과정

Ajaxploer는 웹하드, FTP, 클라우드, 로컬 디스크 연결 및 삼바 연결등 다양한 방법으로 저장소를 연결할 수 있는 애플리케이션이다. 현재는 이름이 변경되어 pydio로 불린다.

설치전에 APM이 설치되어 있다고 가정한다.

MySQL DB생성 및 사용자 추가

pydio는 꼭 SQL 서버가 필요한 것은 아니다. 파일 시스템을 이용해서 사용할 수 도 있으며 약 50여명의 사용자들이 사용하기에 적합하다. 나의 경우에 우분투 시스템에 다른 사용자를 추가하지 않기때문에 MySQL을 사용하여 새로운 사용자들을 추가해야 한다.
# MySQL 접속
$ mysql -u root -p
# Ajaxploer DB 생성
mysql> CREATE DATABASE ajaxploer;
# DB 사용자 추가 및 패스워드 설정 ( $password에 원하는 패스워드 입력 )
mysql> GRANT ALL ON ajaxploer.* TO ajaxploer@localhost IDENTIFIED BY ‘$password’;
# MySQL 새로고침
mysql> flush privileges;

# mysql 종료

mysql> exit

pydio 다운로드

pydio는 다운로드하여 웹상에서 다운로드하여 설치하는 방법과 저장소를 추가하여 apt-get을 이용하여 설치하는 방법이 있는데 전자가 간편하기에 이를 이용한다.

# pydio 설치 위치로 이동

$ cd /var/www/cloud.uzuro.com/public_html

# pydio 다운로드

$ wget http://sourceforge.net/projects/ajaxplorer/files/ajaxplorer/stable-channel/5.0.4/ajaxplorer-core-5.0.4.zip

# 압축해제 및 이름 변경

$ unzip ajaxplorer-core-5.0.4.zip

$ mv ajaxplorer-core-5.0.4 pydio

# 소유주 변경 및 권한 변경

$ sudo chown -R www-data.www-data pydio

$ sudo chmod -R 775 pydio

아파치 가상호스트 설정을 하고 이를 활성화한다. AllowOverride All로 설정해서 .htaccess 사용 가능하게 한다.이하 생략…

# 브라우저 접속 (본인은 https 설정을 했고 가상호스트의 DocumentRoot의 경로를 /var/www/cloud.uzuro.com/public_html/pydio 로 설정 했음)

https://cloud.uzuro.com/

Pydio Diagnostic Tool 설정

pydio를 사용하기에 앞서 경고 문구가 발생한 부분을 수정해준다.

#  PHP Output Buffer disabled

$ sudo vi /etc/php5/apache2/php.ini

output_buffering = Off

# Charset

$ sudo vi /var/www/cloud.uzuro.com/public_html/pydio/conf/bootstrap_conf.php

define(“AJXP_LOCALE”, “en_US.UTF-8”);

define(“AJXP_LOCALE”, “”);

# 아파치 재시작

$ sudo service apache2 restart

브라우저를 리로드하고 설정 화면에서 각각의 정보를 입력한다.

# 업로드 설정 추가

$ sudo vi /var/www/cloud.uzuro.com/public_html/pydio/.htaccess

php_value upload_max_filesize 2048M

php_value post_max_size 2000M

php_value max_execution_time 0

php_value max_input_time 0

# 업로드 설정 변경후 pydio 웹브라우저 접속

사용자 > 설정 > Global Configurations > Core Configs > Uploaders Options – Limitations 의 File Size 2G 입력

기타 추가 설정 : http://pyd.io/administrator/

문제 해결

설정 > Global Configuration > Plugins > Access
Mailbox(Imap or POP) 에러가 발생
# php5-imap 확장 설치
$ sudo apt-get install php5-imap
폴더 다운로드 할때 한글 들어 있는경우 깨질때 해결법
core/classes/pclzip.lib.php
파일에서
$p_header[‘flag’] = 0;
부분을 찾아서 값을 아래와 같이 2048 로 하면 됩니다.
$p_header[‘flag’] = 2048;

pydio tmp 에러

GO to

/CONF/bootstrap_conf.php

 

and edit :

//define(“AJXP_TMP_DIR”, AJXP_DATA_PATH.”/tmp”);

 

to

define(“AJXP_TMP_DIR”, AJXP_DATA_PATH.”/tmp”);

 

Upload the file

Create the tmp directory to / and apply 777 CHMOD

Works great for me !