2009년 11월 25일 수요일

Visual C++ 2008 Express Editions ResEdit

Visual C++ 2008 Express Editions에는 리소스 에디터가 존재하지 않는다.

그러나 친절한 누군가가 길을 열어주고 있는데...

무료로 쓰라고 내준 VC Express에는 눈씻고 찾아봐도 리소스 위지윅이 없지만 ResEdit라는 프로그램으로 이를 해결할 수 있다.

공식 사이트  http://resedit.net/

 

공개용 일러스트

혹시 모르시는 분들을 위해 비싼 일러스트 프로그램 대용으로 사용할만 하네요.

레퍼런스가 약한게 흠이지만...

공식 사이트 http://www.inkscape.org

 

Repair Filesystem

Repair Filesystem 으로 부팅될 경우 파일이 잠기는데(Readonly로 수정 불가), 이때 / 를 remount 한다.

# mount -o remount,rw /

LVM이 stripe으로 묶여 있을때 해당 LV찾기

# lvs -v --segments
Finding all logical volumes
  LV          VG             Attr         Start    SSize       #Str Type    Stripe   Chunk
  st1          VG0           -wi-a-    0         1.95G        2 striped     512.00K    0
  st1          VG0           -wi-a-   1.95G    1.95G        2 striped     512.00K    0
  LogVol00  VolGroup00 -wi-ao    0         9.34G        1 linear       0            0
  LogVol01  VolGroup00 -wi-ao    0         512.00M     1 linear       0            0

rc.conf

# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.

## -- /etc/rc.conf -------------------------------------
##
## defaultrouter="192.168.0.1"
## hostname="host.domain.com"
## ifconfig_fxp0="inet 192.168.0.3  netmask 255.255.255.0"
## sshd_enable="YES"
## ------------------------------------------------------

## kernel secure
##
#kern_securelevel="2"     ## default `-1'
kern_securelevel_enable="NO"

## quota
##
enable_quotas="NO"     ## turn on quotas on startup (or NO).
check_quotas="NO"    ## Check quotas on startup (or NO).

## basic
##
fsck_y_enable="YES"   ## required
start_vinum="YES"     ## vinum start
sshd_enable="YES"     ## required, override
usbd_enable="NO"
update_motd="NO"
cron_enable="YES"     ## Run the periodic job daemon.
syslogd_enable="YES"     ## Run syslog daemon (or NO).

## NTP server setup
##
ntpdate_enable="YES"
ntpdate_flags="-b time.nuri.net"
#xntpd_enable="YES"   ## no daemon, san2@2005.12.26

## inetd
##
inetd_enable="YES"     ## Run the network daemon dispatcher (YES/NO).
#inetd_flags="-wW"     ## TCP wrapping external(w) and internal(W)
#inetd_flags="-wW -s 1000 -c 200 -C 200 -R 1000"  ## for mail server, see `man inetd'
inetd_flags="-wW -C 60"    ## rc.conf default value.
     ## "max-connections-per-ip-per-minute" parameter.
     ## but, no -C flag to no limit.
## ftpd without inetd
##
## -- /etc/rc.local ----------------------------------------------------
## . /etc/rc.conf
## . /etc/rc.conf.local
## ## run ftpd without inetd
## ##
## if [ X"${ftpd_without_inetd_enable}" = "XYES" ] ; then
##        /usr/libexec/ftpd ${ftpd_without_inetd_args}
## fi
## ---------------------------------------------------------------------
#ftpd_without_inetd_enable="YES"   ## Run the ftpd without inetd
#ftpd_without_inetd_args="-D -4"   ## Flags to ftpd (without inetd)

## sendmail
##
sendmail_enable="NONE"    ## YES | NO | NONE(don't start any sendmail processes)
sendmail_submit_enable="YES"

## postfix
## we use postfix instead of sendmail
## from pkg-message of postfix-current
##
#sendmail_enable="YES"
#sendmail_flags="-bd"
#sendmail_outbound_enable="NO"
#sendmail_submit_enable="NO"
#sendmail_msp_queue_enable="NO"

## amavis/clamav
##
#amavisd_enable="YES"
#clamav_clamd_enable="YES"
#clamav_freshclam_enable="YES"

## firewall
## Packet Filtering Functionality setup
##
#firewall_enable="YES"    ## Set to YES to enable firewall functionality
#firewall_type="/etc/ipfw.conf"   ## Firewall type (see /etc/rc.firewall)
#firewall_flags="-p cpp"    ## preprocessing via cpp
#tcp_drop_synfin="YES"    ## Set to YES to drop TCP packets with SYN+FIN
#     ## NOTE: this violates the TCP specification
#tcp_extensions="YES"
#icmp_drop_redirect="YES"    ## Set to YES to ignore ICMP REDIRECT packets
#icmp_log_redirect="YES"    ## Set to YES to log ICMP REDIRECT packets

## NFS client
##
portmap_enable="YES"
nfs_client_enable="YES"
nfs_client_flags="-n 4"
rpc_statd_enable="YES"

## NFS server
##
#portmap_enable="YES"
#nfs_server_enable="YES"
#rpc_lockd_enable="YES"
#nfs_reserved_port_only="NO"

## NIS server
## http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-nis.html
## http://freebsd.peon.net/tutorials/8/
##
#portmap_enable="YES"
#nis_server_enable="YES"
#nis_ypxfrd_enable="YES"
#nis_yppasswdd_enable="YES"
#nisdomainname="wdb"     ## example

## NIS client
## http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-nis.html
## http://freebsd.peon.net/tutorials/8/
##
#portmap_enable="YES"
#nis_client_enable="YES"
#nis_ypset_enable="NO"   ## this `NO'
#nisdomainname="wdb"     ## example

## snmpd
##
#snmpd_enable="YES"

## for X-window
##
#moused_enable="YES"
#moused_flags=""
#moused_port="/dev/psm0"
#moused_type="auto"

## local services
##
apache_enable="YES"
#lighttpd_enable="YES"
#rsyncd_enable="YES"
#proftpd_enable="YES"     ## see with/whithout inetd ftpd

Update

1. CVS up
// CVS Install
# cd /usr/ports/net/cvsup

# make install clean

// CVSup 실행
# cd /root
# cp /usr/share/examples/cvsup/ports-supfile .
   --> ports-supfile 을 열어 CHANGE_THIS.FreeBSD.org => cvsup.kr.freebsd.org 로 변경
# cvsup -g -L 2 /root/ports-supfile


2. Ports Upgrade
# cd /usr/ports/sysutils/portupgrade
# make install clean
# /usr/local/sbin/pkgdb -F
# /usr/local/sbin/portupgrade -a

[MySQL]Starting MySQL.Manager of pid-file quit without updating fi[FAILED]

가끔 mysql을 수동으로 설치할때 이와같은 에러를 내고 죽는 경우가 있는데 권한과 퍼미션조정을 잘못할 경우에도 발생한다.

* OS : CentOS 5.2
* MySQL : 5.1.38

#Starting MySQL.Manager of pid-file quit without updating fi[FAILED]

mysql 설치 디렉토리 권한과 퍼미션을 확인한다. (mysql유저명으로 할당)
#chown -R root.mysql /usr/local/mysql
#chown -R mysql.mysql /usr/local/mysql/data
#chmod 700 /usr/local/mysql/data

[MySQL] 설치 및 설정

* OS : CentOS 5.2
* MySQL : 5.1.38
# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=utf8 --with-extra-charsets=all
# make && make install
# useradd mysql -g daemon -u 60 -M -s /bin/false -c "Mysql Server User" -d /usr/local/mysql
# groupadd mysql
# /usr/local/mysql/bin/mysql_install_db
# chown -R root.mysql /usr/local/mysql
# chown -R mysql.mysql /usr/local/mysql/data
# chmod 700 /usr/local/mysql/data

# /usr/local/mysql/bin/mysqld_safe &
# ./mysql -u root
mysql> use mysql;
mysql> DELETE FROM user WHERE user='';
mysql> DELETE FROM user WHERE user='root' AND host='불필요호스트명';
mysql> UPDATE user SET host='%', password=PASSWORD('암호') WHERE user='root';
mysql> FLUSH PRIVILEGES;

# cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
# cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
# chkconfig --add mysqld
# chkconfig --level 3 mysqld on
# chkconfig --list mysqld

# service mysqld start