가장 많이 본 글

2013년 12월 25일 수요일

ubuntu 12.04.3 LTS 에서 phpmyadmin 최신버전 유지하기

http://ubuntuhandbook.org/index.php/2013/09/install-latest-phpmyadmin-ubuntu-1204/


기본적으로 12.04.3 LTS 는 add-apt-repository 를 지원하지 않으므로

sudo apt-get install python-software-properties 를 입력하여 필요한 구성요소를 설치해야 한다.

그 후에

sudo add-apt-repository ppa:tuxpoldo/phpmyadmin 을 입력하여 repo를 추가하고

추가한 repo를 다음 명령어를 통해서 업데이트 해준다.

sudo apt-get update 

그 후 다음 명령어를 입력하여 설치하거나 업데이트 한다.
sudo apt-get install phpmyadmin (새로설치)

sudp apt-get upgrade (업데이트)

2013년 12월 24일 화요일

리눅스 명령어 (13.12.25 업데이트)

apt-cache rdepends <Packages> - 해당 패키지의 의존성 확인 (간결하게)

sudp apt-get install apt-rdepends 로 설치 후
apt-rdepends <Packages>

dpkg --get-selections | grep -v deinstall - 설치된 패키지 확인

Fstab 사용법

https://help.ubuntu.com/community/Fstab


/etc/fstab 을 수정하여 사용

우분투의 경우 UUID 방식의 마운팅이, 자주 탈부착되는 저장장치에 안정적으로 동작한다고 하므로 sudo blkid 명령어를 이용하여 UUID를 확인할 필요가 있다

예를 들어 /etc/fstab 에

/dev/sda1    /    ext4    errors=remount-ro    1    0  라고 쓰는것 말고

UUID="aaaa-bbbb-cccc-dddd" ~~ 와 같이 쓰는게 알맞다고 하는 것이다.


2013년 8월 7일 수요일

inno db 데이터 분할 방법

http://give-me-a-rest.tistory.com/43




sudo vi /etc/mysql/my.cnf
[mysqld]
innodb_file_per_table = 1

위의 설정을 통해 각 DB의 테이블별로 파일을 분할할 수도 있음 

개별 데이터 베이스의 크기가 크지 않다면 ibdata를 분할할 필요는 거의 없음

그러나 개별 DB 중 덩치가 매우 큰놈이 있다면 테이블별로 분할하지 말고 innodb 전체 데이터 크기를 계속

분할증식시키는 방법으로 하는것이 바람직함 (그렇지 않으며 성능 문제가 발생할 수 있음!)



linux file size 확인

파일 용량 확인하기

root@delphiXE:~# du -h 파일이름

디렉토리 용량 확인하기

root@delphiXE:~# du -hs 폴더이름

디렉토리 내 하위폴더 1개까지 각각 용량보기

root@delphiXE:~# du -hs 폴더이름/*

디렉토리 여러개 용량 확인하기

Linux 에서 OracleJDK 사용하기

보통의 우분투 배포판에서 Java는 OpenJDK 또는 OpenJRE 를 이용하여 실행된다.

그러나 일부 기능에서 OracleJDK가 성능이 더 좋다는 평가때문에 OracleJDK를 찾는 사람이
많은데 다음 웹 페이지에서 OracleJDK 를 사용할 수 있는 저장소와 설치 방법이 나와있으니
필요한 사람은 가서 보기 바란다.


http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html



oracle java repository 추가
    sudo add-apt-repository ppa:webupd8team/java

repo update
    sudo apt-get update 

oracle java 설치
    sudo apt-get install oracle-java7-installer

mysql .sql import 방법

개별 DB
mysql -u 계정이름 -p 데이터베이스명 < sql파일.sql

전체 DB

mysql Character set 변경

우분투 13.04 기준


다음 탭에 다음 한 줄만 입력해주면 모든 mysql character 및 collation 이 utf8로 변경됨


[mysqld]

character-set-server = utf8

Linux Server 배드블럭 검사 및 치료

얼마전 내 우분투 13.04 서버에 배드블럭이 10000개 이상 생겨버렸다.

하드가 완전히 망가졌나 싶어서 하드를 교체하려 하였으나 의문이 생겼다.

의문점은 다음과 같았다.

1. 보통의 하드는 물리적 배드섹터가 1,2개 생기면서 하드의 전체적인 안정성이 저하되고
    서서히 하드의 물리적 배드섹터가 증가하면서 끝엔 완전히 사용이 불가하게 된다.

2. 혹시나 얼마전 IDE 모드로 설치한 하드디스크를 AHCI 모드로 변경하여 내가 모르는
    어떠한 논리적 오류가 배드블럭을 생기게 하지 않았냐는 생각이 들었다.

3. 위와 같은 의문점으로 검사를 한 결과 내 하드디스크의 경우는 fstab 설정에 따라  하드디    스크 블럭이 Read-only 로 변경되면서 Write 가 불가능해 졌을뿐 배드블럭이 늘거나 줄지    않았고 전체적인 하드디스크 검사 및 제로필(Zero-fill) 작업 후 배드블럭이 완전히 사라지    고 이후 배드블럭이 늘지 않았다.



하드디스크의 배드섹터가 논리적인지 물리적인지 구분하는 방법은 현실적으로 불가능하다.

논리적 배드섹터의 경우 Zero-fill (하드디스크 모든 영역의 자기값을 0 으로 채움) 작업을
통해서 증상을 없앨 수 있다.



작업 방법은 다음과 같다.

1. 우선 리눅스 시스템의 Live CD 를 준비한다. (GUI 우분투 추천)
    되도록이면 사용이 간편한 우분투를 추천하고 USB 또는 USB 하드를 사용해야 한다.
    그렇지 않으면 Live CD로 부팅한 상태에서 추가적인 프로그램을 설치하여 사용하지
    못하고 비교적 사용이 불편한 것을 써야하기 때문이다.

2. Live CD 를 리눅스 머신에 넣고 부팅한다.

3. Live CD 를 부팅하면 터미널을 실행한다.

4. 터미널에 다음 명령어를 입력하여 현재 리눅스 머신에 연결된 모든 저장장치를 표시한다.

    sudo fdisk -l (소문자 'L' 이다)

5. fdisk 를 통해 하드디스크의 정보가 다음과 같이 출력될 것이다.

Disk /dev/sda: 200.0 GB, 200049647616 bytes 
255 heads, 63 sectors/track, 24321 cylinders, total 390721968 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005b77d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   369948671   184973312   83  Linux
/dev/sda2       369950718   390721535    10385409    5  Extended
/dev/sda5       369950720   390721535    10385408   82  Linux swap / Solaris

노란색으로 배경색이 되어 있는게 디스크 자체의 정보이고
초록색으로 배경색이 되어 있는게 해당 디스크의 파티션이 어떻게 나뉘는가를
표시해준다.

여기서 주목해야 하는 것은
첫째줄에 있는 /dev/sdx (sdb,sdc 가 될 수도 있으므로) 이다.

하드디스크가 여러개라면 /dev/sda, /dev/sdb 등으로 여러개가 출력되므로

현재 문제가 있는 하드만 골라서 치료하려면 하드디스크가 어디에 Mount 되는지
알아야 한다.

문제가 생겼다면 어떤 하드에 문제가 있는지 터미널 또는 로그로 자세히 표시되므로
따로 적지는 않겠다.

6. 배드블럭 검사, 배드블럭 검사는 시간이 매우매우!! 오래 걸리는 작업이므로 시작하고
    밥먹고 볼일보고 게임해도 완료되지 않을 수도 있다. 끈기있게 기다리자.

    배드블럭을 검사하는 명령어는 다음과 같다.

    sudo badblocks -v /dev/sdx (/dev/sda, /dev/sdb, ... /dev/sdx)

7. 배드블럭을 검사를 기다리는 고달픈 시간이 지나면 배드블럭이 몇개나 발생했는지
    터미널로 출력될 것이다.

    이제 치료를 하도록 하자.

8. 내가 처음 서두에서 Live CD를 USB에다가 설치하라고 한 이유는 일부 e2fsck 와
   dcfldd 를 사용하려면 apt-get 을 이용하여 설치해야 하는데 CD의 경우 한 번 구워버리면
   안에 데이터를 변경할 수가 없기 때문에 두 가지 프로그램을 사용할 수 없기 때문이었다.

   이제 다음 명령어를 입력하여 e2fsck 와 dcfldd 를 설치하도록 하자.

   sudo apt-get install e2fsck dcfldd

   Q. e2fsck 는 이미 설치되어 있다고 하고 dcfldd는 찾을 수 없다고 뜨는데??

   A. e2fsck 는 대부분의 리눅스 배포판에 기본적으로 들어가 있어서 그런것이고 dcfldd는
       소프트웨어 업데이트 관리자에서 universe repository 를 사용 설정해줘야지 사용할 수        있다.

9. 두 가지를 설치했다면 이제 선택을 할 시간이다.

    1). 논리적 배드블럭으로 보이는 것이 노무노무 많이 생겨버렸다!

     - 하드에 있는 모든 필요한 정보를 다른 하드에 저장하고 dcfldd 를 이용하여
        Zero-fill 포맷을 해버리자

        사용방법 : sudo dcfldd if=/dev/zero of=/dev/sdx 
                               
                        여기서 of=/dev/sdx 는 'sdx'를 자신이 Zero-fill 포맷을 할 하드의 마운트 경로로 맞추어주면 된다.
 
    2). 논리적 배드블럭이 몇개 없네

     - e2fsck 를 이용하여 치료를 하면 된다.

        사용방법 : e2fsck -cfpv /dev/sdx 

                       여기서 /dev/sdx 는 자신이 고치고 싶은 하드의 마운트 경로로 맞추어주면 된다.
 

2013년 4월 27일 토요일

Firestarter fails to open system log 문제 해결 방법

<우분투 11.04 ~ 13.04 버전의 문제로서 이전 또는 이후 버전에서는 맞지 않을 수도 있음>

우분투 11.04 부터 rsyslog 의 설정이 변경되어 파이어스타터의 이벤트 메세지 로깅이
불가하게 되었다.이는 rsyslog conf 파일을 수정함으로서 해결할 수 있다.


문제 발생 환경

OS: Xubuntu 13.04 Desktop 64bit
CPU: Intel G1610
RAM: 4GB
HDD: 200GB

문제 해결 방법

터미널 에뮬레이션 또는 터미널에서 
gksudo <text editor> /etc/rsyslog.d/50-default.conf 을 입력한 후 

예) gedit 일 경우 gksudo gedit /etc/rsyslog.d/50-default.conf
      mousepad 일 경우 gksudo mousepad /etc/rsyslog.d/50-default.conf
      leafpad 일 경우 gksudo leafpad /etc/rsyslog.d/50-default.conf

      기타 에디터의 경우는 상단의 사용예시를 참고하여 맞는 프로그램명을 써 넣으면 된다.

다음 구절을 찾아 변경하면 된다.

#*.=info;*.=notice;*.=warn;\
# auth,authpriv.none;\
# cron,daemon.none;\
# mail,news.none -/var/log/messages

구절의 # 처리 (주석처리) 를 모두 제거한다.

*.=info;*.=notice;*.=warn;\
        auth,authpriv.none;\
        cron,daemon.none;\
        mail,news.none -/var/log/messages

그 후 저장한 후 다음 명령어를 입력하거나 시스템을 재부팅한다.

sudo service rsyslog restart


원문: https://bugs.launchpad.net/ubuntu/+source/firestarter/+bug/776361

2013년 4월 8일 월요일

root 권한으로 GUI 어플리케이션 실행하기

gksudo 를 터미널에 치면 된다. 으이구 간단!



주분투 12.10 에서.. 아마도 다 될듯 ㅋ

srcds 팁 (계속 작성 중)

<맵 설정파일>

srcds 를 사용하는 대부분의 게임 전용 서버에서 지정된 맵에 한정되는
 .cfg 파일 즉 설정 파일을지정할 수 있다는 것을 알았다.

우선 해당 전용서버 프로그램 폴더에 있는 'maps' 폴더안에 'cfg' 폴더를 만든다.

그리고 해당 맵에 설정할 <맵이름>.cfg (예: cp_orange_x_7.cfg) 파일에 설정 변수들을
집어넣고 파일을 저장하면 서버가 해당 맵을 불러들일 때 마다 계속 설정파일을 읽어들이게
 된다.

또한 server.cfg 에 있는 설정들을 override 할 수 있어서 server.cfg 와 다른 설정을
해야하는 맵이면 아주 간편하게 설정을 할 수 있는 장점이 있다.

-참고-
http://forums.alliedmods.net/showthread.php?t=62087 - allied modders 포럼 게시글





오늘 배운 리눅스 팁

프로그램 깨끗이 지우기
http://stackoverflow.com/questions/10853004/removing-mysql-5-5-completely

LAMP 설치법
http://www.howtoforge.com/ubuntu_lamp_for_newbies

프로그램 깨끗이 지우기를 응용하면 LAMP를 잘못설정하여서 고생할 때 유용하다!
(씨발 삽질...)

2013년 4월 5일 금요일

hlstatsx


Install Instructions

설치 길라잡이

Introduction!

길라잡이!

Greetings!

반갑습니다!

I have updated the wiki to make it alot more clear on installing HLX:CE on both Windows and Linux systems. Before we start please check the requirements page to make sure that HLX:CE will run on your set up.
저는 HLX:CE 를 리눅스와 윈도우 시스템에서 더 확실한 설치 정보를 제공하기 위해 이 위키를 업데이트하게 되었습니다.
This has been tested on Windows 7 & Debian Linux, if there is a work around that is needed please post it on the forums here. And i will update the wiki to match the needed changes.
이 위키는 데비안 리눅스와 윈도우7에서 시험했음을 먼저 밝힙니다. 만약  도움이 필요하시면 
포럼에 방문해주시기 바랍니다. 또한 저는 수정이 필요한 변화사항에 대해 위키를 업데이트 할 것입니다. 

HLX:CE Set Up

HLX:CE is divided into a few parts. All parts are equally important to HLX:CE as a whole and will be explained below.

HLX:CE 는 몇가지 부분으로 나뉘어져 있습니다. 아래에 설명된 모든 부분은 HLX:CE 에 있어 확실히
중요한 부분입니다.

Step 1 - Download HLX:CE

The latest version of HLX:CE can always be found here].

HLX:CE의 최신버전은 이 곳에서 접하실 수 있습니다.

Step 2 - Uploading the Files

The zip or tar file you have first needs to be decompressed on windows you can right click on the file and extract. For Linux you can type the following

다운받은 Zip 또는 Tar 파일은 압축을 해제해 줄 필요가 있습니다. 오른쪽 클릭을 이용하여 파일을 압축해제 해주세요. 리눅스는 아래의 절차를 따라주세요. 
tar -zxvf HLXCE-1.X.X-FULL.tar.gz
Replacing the X's with the current version.

X 로 표기되어 있는 부분은 현재 다운받으신 버전의 숫자로 변경하여 입력해 주세요. 
After you unzip the file you are going to see the following folders

압축해제한 압축파일에는 다음과 같은 폴더를 볼 수 있습니다.
  • amxmodx
  • heatmaps
  • scripts
  • sourcemod
  • sql*
  • web*
You will need to upload the web folder to your website. To check this go to http:yoursite/stats/

여러분은 web 폴더를 여러분의 웹 사이트에 업로드 해야합니다. 업로드가 정상적으로 수행되었는지 확인하고 싶으면 여러분의 웹사이트 주소와 하위 디렉토리인 /stats 를 입력하세요.
If you are running Sourcemod on your servers then you need to go into the Sourcemod folder and add the plugin to your server. The same go's for AMXMod.

만약에 Sourcemod (소스모드) 를 사용하고 있다면 여러분은 sourcemod 폴더와 플러그인을 여러분의
서버에 추가해야 합니다. AMXMod도 마찬가지 입니다.
For the SQL folder you only need to upload the install.sql file, this does not have to be in the public folder but does need to be accessed from the command line SSH
The last folder you need to have upload is the scripts folder, most of the time you are going to want the scripts AKA:Damon folder on the same server as the database, in 90% of cases this is going to be the website. For this folder it is extra important that people can not access this from the website. IE do not put it in the folder where you can see it in your browser. This is for security reasons.

Step 3 - Configuring the Website and daemon.

On the web server open the config.php with a text editor and fill out the needed data.
// DB_NAME - The name of the database
define("DB_NAME", "hlstatsx");

// DB_USER - The username to connect to the database as
define("DB_USER", "hlxuser");

// DB_PASS - The password for DB_USER
define("DB_PASS", "hlxpassword");

// DB_ADDR - The address of the database server, in host:port format.
//           (You might also try setting this to e.g. ":/tmp/mysql.sock" to
//           use a Unix domain socket, if your mysqld is on the same box as
//           your web server.)
define("DB_ADDR", "localhost");
Exit and save the file.The website part is done… for now!
For the deamon it is just another text file. Open the hlstats.conf file in the scripts folder with a text editor. Now fill the following.
# DBHost - Database server "address" or "address:port". Address can be an IP or
#          a hostname. The default MySQL port is 3306 (tcp).
DBHost ""

# DBUsername - User to connect to the database as.
DBUsername ""

# DBPassword - Password for the database user.
DBPassword ""

# DBName - Name of the database to use.
DBName ""
!!!!! NOTE !!!!! Read the rest of the daemon config and adjust Cpanel setting only if you can not get the daemon on to run with out it.

Step 4-Setting up SQL

Now we need to import the database,For this i am going to be showing the command line way for linux and windows, Thre are many GUI tools such as phpMy Admin and Navicat But because those require extra setup i will not be covering them. If you are running Cpanel you can also use this to import your DB instructions for that are here
Go to the folder where you uploaded install.sql and use the following command line to import the sql tables and config into your sql database:
mysql -uhlxuser -phlxpassword hlstatsx < install.sql
A few seconds / minutes will pass and the SQL database will be filled with the required tables.

Step 5-Running the daemon

Because this differs so much from windows and Linux i am going to split this up covering both.

Linux

We need to make the following files executable:
  • hlstats-awards.pl
  • hlstats.pl
  • hlstats-resolve.pl
  • run_hlstats
To do this we type the following
chmod +x hlstats-awards.pl hlstats.pl hlstats-resolve.pl run_hlstats
Once we make the files executable we going to want to test that every thing is working. Type the following.
cd path/to/scripts/folder
./run_hlstats start
You should now see on your screen something like this.
HLstatsX:CE daemon control
http://www.hlxce.com
---------------------------
Attempting to start HLstatsX:CE daemon on port 27500...
Daemon successfully started on port 27500
If you see any errors here STOP and go back. Make sure you did not make a typo in your config files, also check the log folder inside the scripts folder there should be an log file with detailed errors.
After you have tested all that we now need to run the files every so offtion to make sure that every thing runs smooth. For this we are going to use cron jobs.
Before we get to the jobs them self lets lay out when we want the files to be run.
  • run_hlstat - We want to run this about every 5 mins to make sure the daemon has not crashed
  • hlstats-awards.pl - This needs to be run once a day other wise you will have no awards, This is also the script that translate ip's to locations and the general maintenance of the DB
Now that we have that setup we can enter our cron jobs. type the following then copy the code to fit your file locations.
crontab -e

*/5 * * * * cd /home/user/scripts/ && ./run_hlstats start >/dev/null 2>&1
15 00 * * * cd /home/user/scripts/ && ./hlstats-awards.pl >/dev/null 2>&1
After you have done that you are set as far as all the scripts go.
While we are here there are some extras that will help you that only work in Linux as of this writing.
In the scripts folder there is a folder called GeoLiteCity in there you can make the file install_binary.sh executable then run it. This will update the file HLX:CE uses to get the location of an ip address.
If there are any errors in the log file and it's not working, yet you have no idea what it means. Post it at the hlstatsx forums! Someone is bound to help you there!!

Windows

First install ActivePerl
  • Run the ActivePerl installer accepting the defaults.
  • Launch the Perl Package Manager from the Start Menu
  • Install the additional Perl extensions <tt>DBD-mysql</tt> and <tt>Geo-IP-PurePerl</tt> by choosing the '''View All Packages button''' and then searching for the modules. Right click on the module and choose '''Install <package name>'''.
  • Now check the "Run marked actions", and confirm the installation.
  • You will receive a confirmation that the packages have been installed. This completes the setup for ActivePerl
After you have installed perl you need to run it as a service thanks to psychonic this is made easy go [http://wiki.hlxce.com/wiki/HLXCEServ here] to set that up. You are done now with the daemon :D

Step 6-Configure HLX:CE

Next in line would be enabling and using all we've done above and wrap it up into running stats:
  1. Website:
    1. <Go to the website URL (http://ip/stats http://yoursite/stats/).
    2. Login as admin on the website (login url on bottom of page)
    3. *Username: admin
    4. *Password: 123456
    5. Go to '''Admin Users'''.
    6. *Make yourself a new user.
    7. *Give it admin privileges.
    8. *Delete the old admin user.
    9. Go to '''HLstatsX:CE Settings''' and edit the settings to your liking</div>
    10. Go to '''Games''' and select the game you want the stats page to facilitate. You can do this by setting the dropdown menu for that particular game to '''show''' and all other games to hide.
    11. Setting the above to the game you wish to host will unlock the '''Game Settings''' for that game. Click on this and then click on '''Quick-Add Server'''. Fill in all those required fields and hit the save button. This server will now be displayed on the main page as well.

Step 7-Configure Gameserver (server.cfg)

  1. <div class="li">Logaddress.</div>
    1. In order for the gameserver to send it's logs to the statsserver you need to enable logging and add a logaddress.
    2. This is usually done in the config file of the server (server.cfg) by adding '''log on''' and '''logaddress_add ip:port'''.
    3. Since our statsserver is hosted on the machine with IP <ip> and port 27500, we add the following lines to our server.cfg file: '''log on''' and '''logaddress_add ip:27500''' or for goldsrc games '''logaddress_add ip 27500'''.
  1. Gold src games
    1. cs
    2. hl1mp
    3. tf classic
    4. dod
  1. Rcon & Plugin
    1. The HlstatsX daemon communicates with the gameserver via rcon. Next to that it uses the hlstatsx plugin “talk” to the users via specific commands.
    2. Make sure that the rcon_password set on the server is the same password as used in the '''Game Settings''' on the website.
    3. To check if the plugin is correctly loaded (with sourcemod) type '''sm plugins list''' and look for hlstatsx in the list.
    4. Now join the server, wait for some players and see if the spam will start ingame
'''Note: For more information regarding ingame commands, please type 'help' in to the main chat window (defaultkey “y”) and read the windows contents!'''


십중팔구 여러분은 scripts 폴더를 여러분의 웹 사이트 기능을 하는 디렉토리에 업로드 할 것입니다.
이는 보안상의 이유로 자제해야 하는 행동입니다. 왜냐하면 이 스크립트들은 사용자가 접근하지 못하도록
차단하는 것이 보안상 적합한 행동이기 때문입니다.

http://support.hostgator.com/articles/cpanel/how-to-import-your-mysql-database
Mysql 에서 DB나 구절을 추가할 때 사용하는 명령어나 기법에 대한 가이드

2013년 3월 26일 화요일

설치된 프로그램 목록을 문서화 시키는 방법

http://helpdeskgeek.com/how-to/generate-a-list-of-installed-programs-in-windows/


우선 명령프롬프트를 관리자 권한으로 실행한다. (UAC가 비활성화라면 상관없음)

명령 프롬프트에 다음 명령어를 입력하고 실행한다.

wmic

다음

wmic:root\cil>

다음

/output:<파일을 저장할 경로와 파일형식> product get name,version

예) /output:C:\InstallList.txt product get name,version

2013년 3월 16일 토요일

포지모드 링크

http://www.minecraftforge.net/forum/index.php/topic,6520.0.html - 포지 7.7.0 메인 스레드
http://files.minecraftforge.net/minecraftforge/minecraftforge-universal-1.5-7.7.0.582.zip
http://files.minecraftforge.net/ - 포지 파일서버


http://www.minecraftforum.net/topic/182918-15flans-mod-planes-vehicles-guns-multiplayer-tdm-conquest/ - 메인 스레드

http://www.mediafire.com/?ej77xyo7ozr10hl - 심플 파츠 팩
http://www.mediafire.com/?csph20a08ht4u28 Ye olde 팩
http://www.mediafire.com/?jvqlz1n92au93c9 WW2 팩
http://www.mediafire.com/?d4xtel8w1ts81wo MW 팩


옵티파인 (클라이언트 only - minecraft.jar 내 설치필요, 업데이트 확인 필수)
http://optifine.net/
http://optifine.net/download.php?f=OptiFine_1.5.0_HD_U_A4.zip



투매니 (클라이언트 only - minecraft.jar 내 설치필요)
http://marglyph.s3.amazonaws.com/TooManyItems2013_03_14_1.5.zip

2013년 3월 15일 금요일

forge mod 서버

구동법
https://www.google.co.kr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDIQFjAA&url=http%3A%2F%2Fwww.minecraftforge.net%2Fwiki%2FInstallation%2FUniversal&ei=jgVEUaOiNrGViQeyz4HgDQ&usg=AFQjCNHzA1p8gSUCsUnYzc9vyZ8wRuqkkw&bvm=bv.43828540,d.aGc&cad=rjt

http://millenaire.org/index.php?l=en - millenaire 모드 - 안되 ㅋㅋ


포지모드서버를 하기 위해선 클라이언트도 포지모드가 설치되어야함

포지모드 서버에서나 버킷서버에서나 투매니 아이템은 작동이 되며
절대 mods 폴더에 넣는게 아니라 minecraft.jar를 직접 수정해야 작동이 됨
(호환성 문제 없음)


Flan mod 1.5 업데이트로 데디케이티드 서버 지원 가능(Gmail에 올려놓음 3.17)

클라이언트는 포지+옵티파인이 안되는데 왜 안되는지 봐야겠음




http://www.minecraftforum.net/topic/1661157-forgeforgeessentials-bukkit-functionality-for-your-forge-server/ - 에센셜 for MCForge (버킷 에센셜과 비슷)

https://github.com/ForgeEssentials/ForgeEssentialsMain/wiki - 포지에센셜 위키

2013년 3월 9일 토요일

http://www.talonfiremage.pwp.blueyonder.co.uk/v3/reactorplanner.html?a8h72bz3lv24r5nvvn3j09mck3fkw8c5tnxiqrtyk7bia1yt28h5fdrdps8utl7wpkhvyh49i4ajchs


http://www.talonfiremage.pwp.blueyonder.co.uk/v3/reactorplanner.html?a8h72bz3lv2jayj3me50emw35cs0p982q4ntw9m1u5p6h0u1gxabwfk71u3gh4kx7xmbxnlj2bjv30g

2013년 3월 3일 일요일

두 개의 이더넷을 하나처럼 사용하기

리눅스에서는 본딩, 윈도우에서는 티밍이라고 함 ㅇㅇ

sourcemod 플러그인

https://forums.alliedmods.net/showthread.php?t=199233 - 채팅 컬러
    https://forums.alliedmods.net/showthread.php?p=1820365
    https://forums.alliedmods.net/showthread.php?t=186695

https://forums.alliedmods.net/showthread.php?t=109006 - TF2stats (hlstatx 보다 가벼움)

https://forums.alliedmods.net/forumdisplay.php?f=146 - TF2Item (커스텀 아이템)

https://forums.alliedmods.net/showthread.php?t=190562 - TF2 무한 아이템/총알
https://forums.alliedmods.net/showthread.php?t=73104 - TF2 클래스 제한

https://forums.alliedmods.net/showthread.php?t=162910 - Natives FTP

2013년 2월 28일 목요일

hlstatsx 드디어 찾았다!

CSS:DM 용 맵

32인
http://css.gamebanana.com/maps/169374 - dm_dawnville (2mb)
http://css.gamebanana.com/maps/168144 - dm_saffroncity_b1 (7mb)
http://css.gamebanana.com/maps/167617 - dm_factorysecrets (5mb)
http://css.gamebanana.com/maps/155927 - dm_dust2_unlimited (optimized, 5mb)
http://css.gamebanana.com/maps/99839   - dm_forsyte, (18mb) 64인 지원(x64 맵)
http://css.gamebanana.com/maps/19257 - dm_ghs_dust_b3 (7mb)
http://css.gamebanana.com/maps/50581 - dm_arabian_showdown (12mb)
http://css.gamebanana.com/maps/60080 - dm_2fort (2mb)
http://css.gamebanana.com/maps/107724 - dm_castle_invasion_final (2mb)

48인
http://css.gamebanana.com/maps/40890 - dm_austere_facility (8mb)
http://css.gamebanana.com/maps/159827 - dm_csmega_castle_b2 (3mb) - 좁은듯
http://css.gamebanana.com/maps/163037 - Seine Crossing (10mb)

64인
http://css.gamebanana.com/maps/161148  - dm_tropic_wars (18mb)
http://css.gamebanana.com/maps/161442 - de_mega_dust2 (8mb)
http://css.gamebanana.com/maps/12984   - blackhawkdown (9mb, 추천)
http://css.gamebanana.com/maps/163209  - dm_no_mercy_beta (11mb)
http://css.gamebanana.com/maps/55380 - awp_abandoned_city (686kb, AWP맵)
http://css.gamebanana.com/maps/170096  - awp_crash_dust_s0xiik (1mb, AWP맵)
http://css.gamebanana.com/maps/10540 - cs_747_css (7mb)


64+
http://css.gamebanana.com/maps/31304 - cs_estate_source_beta (7mb)
http://css.gamebanana.com/maps/70422  - cs_venice_beta5 (5mb)


Srcds 는 맵이나 기타 파일들을 bzip(.bz2,bz) 형식으로 압축하여 
서버측의 Bandwidth 부담을 줄여주는 기능이 있다. 이는 각 파일을 압축한 채로
다운로드 서버(sv_fastdownload "주소") 에 올려놓으면 사용자가 다운하여
사용자 컴퓨터에서 압축을 해제하는 방식으로 서버의 부하를 늘리지 않으면서 
대역폭 부담을 줄이는 기법이다.

CSS:DM 생각

CSS:DM 에서 사용자들이 각 무기의 연습을 위해 플레이하는 경우가 있다.
이때 사용자의 연습 기량을 높이고 동기부여를 위해서 데미지 판정 점수 시스템을
도입한다면 어떨까?

예를 들면

헤드샷 100점 기준
몸: 데미지x0.6
팔,다리: 데미지x0.3

이런식으로 점수를 부여하고 이 점수를 Tab에 표시되는 점수와 다르게
사용자 스텟 또는 웹 페이지에서 볼 수 있도록 랭킹화 시키는 것이다.

2013년 2월 23일 토요일

1.4.7

minecraftSP : http://www.2shared.com/file/b4ysqp3Z/MinecraftSP.html
1.4.7jar : http://assets.minecraft.net/1_4_7/minecraft.jar

APM 서버 보안 설정

https://www.google.co.kr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDEQFjAA&url=http%3A%2F%2Feits1st.tistory.com%2Fattachment%2Fcfile2.uf%40155B211249DE919D594B9C.pdf&ei=E5gpUcDICOqXiAfOpYGoBw&usg=AFQjCNEhH8o7yfBZVb_oYYSOd6MjABRUrw

http://crystaljjun.kr/?p=539

우리집 전기세

주말(8일) 평균 풀로드 10시간 기준 전력소모량 (kwh) : 16(200W)
주말(8일) 평균 아이들 14시간 기준 전력소모량 (kwh) : 4.48(40W), 6.72(60W)
20.48kwh

평일(22일) 평균 풀로드 6시간 기준 전력소모량 (kwh) : 26.4(200W)
평일(22일) 평균 아이들 18시간 기준 전력소모량 (kwh) : 15.84(40W) 23.76(60W)
42.24kwh

서버 컴퓨터를 제외한 우리집의 평균적 전체 소비전력을 460kwh로 잡았을때

우리집 전기세는

522.72kwh 이고 이에 대한 전기요금은 누진세를 합산하면

146,190원이 된다.

이 기준은 서버 컴퓨터가 AMD FX-8350+16gb(4ea)+1HDD+1SSD+gt210 의 사양을 가질때
소비전력을 기준으로 한다.


이때 i5-3570을 사용하는 인텔 시스템의 경우는


502kwh를 사용하여 총 132,170원이 나온다.

i5-3570을 사용하는게 오래 사용할 경우 더 이득이다.

내 서버컴퓨터는 2년 유지를 목표로 구매하는 것이기 때문에

전체 시스템 가격차이도 얼마 안날 뿐더러 한 달에 최소 3천원 최대 2만원까지 차이나는 전기세를 감안하면 인텔 시스템이 정답이다.


2013년 2월 22일 금요일

마인크래프트 플러그인

http://forums.bukkit.org/threads/mech-worldborder-v1-6-1-feature-rich-world-size-limiting-plugin-1-4-7-r1-0.11309/page-23#post-1279052 - 세계크기 제한

2013년 2월 16일 토요일

최근 살펴본 페이지

https://forums.alliedmods.net/showthread.php?t=189327 - 윈도우 서버 하드닝

https://forums.alliedmods.net/showthread.php?t=166037 - 리눅스 서버 하드닝

https://forums.alliedmods.net/showthread.php?t=165560 - 리눅스 iptables 설정
http://linux.die.net/man/8/iptables - iptable 설명




http://www.fs-security.com/ - 파이어스타터! 드디어 찾았다.

http://oosem.com/bbs/zboard.php?id=databoard&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=144 - TCP/IP vol.1


http://www.tldp.org/docs.html#howto
http://www.yourwebexperts.com/viewforum.php?f=332

안전한 비밀번호 생성 페이지

https://secure.pctools.com/guides/password/?length=12&phonetic=on&alpha=on&mixedcase=on&numeric=on&punctuation=on&nosimilar=on&quantity=10&generate=true#password_generator


마인크래프트 서버 공격기법과 대책

요즘 pwn4g3 를 이용한 서버공격이 횡행하고 있는데 이에 대한 대책이 있다.
pwn4g3는 멀티쓰레딩 프록시를 이용하여 자신의 아이피를 다중 프록시로 속여
다수의 사용자가 존재하는것처럼 위장한다.
그 다음 공격할 서버에 집중적으로 입장,퇴장을 반복시켜 서버의 자원을 극도로 낭비하게
만들어 다른 유저들의 게임 진행을 방해하는 공격 기법이다.

이에 대해 유용한 Bukkit 플러그인이 있다

http://dev.bukkit.org/server-mods/antibot/ - 안티봇

 http://forums.bukkit.org/threads/admn-sec-anticheat-v1-5-5-protect-your-server-from-hackers-cheaters-1-4-7-r0-1.75732/ - 안티치트 (pwn4g3와 무관)

2013년 2월 15일 금요일

SRCDS 서버 방어기법

http://wiki.alliedmods.net/SRCDS_Hardening // SRCDS 공격 기법과 대책들

http://www.sourceop.com/modules.php?name=Downloads&d_op=viewdownload&cid=9
(DAF) // 예전에 SRCDS 운영하면서 많이 사용했던 DDOS 방어 프로그램

SRCDS 관련 사이트

Source Dedicated server 관련 사이트

http://forums.srcds.com/ // Srcds 포럼
https://forums.alliedmods.net/ // 얼라이드 모더 


얼마전부터 Srcds가 멀티코어를 사용할 수 있게 되었다.
이는 서버 자원의 낭비 없이 모두 사용이 가능하다는 뜻이다.
예전부터 꿈꿔왔던  60인 대전 서버를 만들 수 있게 된것이다.

우분투 데스크탑 최소 설치 (우분투 서버에서 최소 GUI 사용)

우분투 데스크탑 최소 설치 방법은 다음과 같다.

우선 우분투 서버를 설치한 상태에서 루트권한으로 로그인을 한다.
그리고 다음 명령어를 터미널에 입력한다

apt-get install --no-install-recommends ubuntu-desktop

이렇게 하면 우분투 서버에 GUI 환경을 사용할 수 있으며 우분투 데스크탑에 포함되는
권장 프로그램들을 제외하고 최소 GUI환경만 사용할 수 있어 서버 자원을 낭비하지 않을 수 있다.

능력이 된다면 GUI를 사용하지 않고 CUI로만 사용하고 싶은데 아직은 그럴 내공이 안되는거 같다.
언젠가는 나도 굇수가 될 수 있겠지?