2012. 6. 14. 14:53

WIndows/Tip

##############################

# Windows Tip

##############################

 

a. 내 PC에 있는 html 파일 실행할 때 보안경고 창 안뜨게 하기

  - 출처 : http://shw3167.blog.me/120046747974

  - IE의 도구>옵션>고급>보안에서 내 컴퓨터 파일에서 액티브엑스 컨텐츠 실행 허용으로 설정


a. 배치파일 명령어 모음

  - http://notgivuphil.tistory.com/522

 

a. command to kill a task

   - taskkill /IM daumdic.exe /F </T>

   - Taskkill /PID 2704 5472 4344 /F


a. 윈도 오른쪽 메뉴에서 open with Notepad ++  만들기

아래 내용을 가진 <filename.reg>을 만들고 그 파일을 실행하여 registry에 아래 내용 추가

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Open with Notepad++\command]

@="\"C:\\myBox\\Program\\Notepad++Portable\\Notepad++Portable.exe\" \"%1\""


a. 윈도우7 한영키를 shift+space로 변경

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\i8042prt\Parameters > 

"LayerDriver KOR"  => 값을 "kbd101c.dll"로 변경 후 재부팅

2012. 6. 4. 12:28

Solaris/DHCP configuration guide

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.
2012. 6. 4. 12:25

Solaris/nfs server가 smf에서 보이지 않을때

######################################################
# svcs -a 로 봤을때 /network/nfs/server가 보이지 않을때 확인 방법

######################################################


a. Try re-importing the manifest (Reference : http://www.linuxquestions.org/questions/solaris-opensolaris-20/svcadm-pattern-nfs-status-doesnt-match-any-instances-813401/)
# svccfg import /var/svc/manifest/network/nfs/server.xml


a. Before do above workaround, CHECK below items (Reference : http://www.unix.com/unix-advanced-expert-users/41292-svcadm-solaris-10-a.html)

please check with
pkginfo | grep nfs
if there are all packets .


system SUNWnfsckr Network File System (NFS) client kernel support (Root)
system SUNWnfscr Network File System (NFS) client support (Root)
system SUNWnfscu Network File System (NFS) client support (Usr)
system SUNWnfsskr Network File System (NFS) server kernel support (Root)
system SUNWnfssr Network File System (NFS) server support (Root)
system SUNWnfssu Network File System (NFS) server support (Usr)


And one more test if the manifest is installed:

more /var/sadm/install/contents | grep "/var/svc/manifest/network/nfs"


/var/svc/manifest/network/nfs d none 0755 root sys SUNWnfssr SUNWnfscr
/var/svc/manifest/network/nfs/cbd.xml f manifest 0444 root sys 2204 53695 1106350153 SUNWnfscr
/var/svc/manifest/network/nfs/client.xml f manifest 0444 root sys 2980 51885 1106350149 SUNWnfscr
/var/svc/manifest/network/nfs/mapid.xml f manifest 0444 root sys 2364 975 1106350150 SUNWnfscr
/var/svc/manifest/network/nfs/nlockmgr.xml f manifest 0444 root sys 2204 53993 1166763677 SUNWnfscr
/var/svc/manifest/network/nfs/rquota.xml f manifest 0444 root sys 2288 62355 1106350149 SUNWnfssr
/var/svc/manifest/network/nfs/server.xml f manifest 0444 root sys 3333 18726 1106350148 SUNWnfssr
/var/svc/manifest/network/nfs/status.xml f manifest 0444 root sys 2023 38699 1106350152 SUNWnfscr


2012. 5. 30. 01:01

Solaris/Disk 관리


2012. 5. 30. 00:49

Solaris/LVM for Solaris, VXVM 명령어 비교


2012. 5. 30. 00:35

Solaris/Disk 관리(SVM)and Mirroring


2012. 3. 30. 16:58

Solaris/Change IP and hostname

#################################
#< Solaris에서 ip와 hostname 바꾸기>
#################################

== Reference ==
http://blog.sdnkorea.com/blog/440


== Solaris 10에서 IP 바꾸기 ==
 * 다음의 파일들을 수정합니다:
   a. /etc/inet/hosts
   a. /etc/hostname.<interfaces>
      : 여기서 <interfaces> 는 인터페이스의 이름들 입니다, 예를 들어 bge0, bge1, eri0.
   a. /etc/inet/ipnodes

 * 만약 새로운 서브넷으로 이동하려 한다면 다음의 파일들을 수정합니다:
   a. /etc/inet/netmasks
   a. /etc/defaultrouter
   a. /etc/resolv.conf
   이제 시스템을 재부팅 합니다.

== Solaris 10에서 hostname 바꾸기 ==
 * 아래 파일에 해당 hostname을 바꾸어 줍니다.
   a. /etc/nodename
   a. /etc/hosts


== Other version ==
호스트 이름 변경

솔라리스7 이전 버전은 다음의 파일들을 수정합니다:
/etc/inet/hosts
/etc/nodename
/etc/hostname.<interface>

여기서 <interface> 는 프라이머리 인터페이스의 이름입니다, 예를 들어 bge0.
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

이제 시스템을 재부팅 합니다.

솔라리스7 에서 9 버전은 다음의 파일들을 수정합니다:
/etc/inet/hosts
/etc/nodename
/etc/hostname.<interface>

여기서 <interface> 는 프라이머리 인터페이스의 이름입니다, 예를 들어 bge0.
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
/etc/inet/ipnodes

이제 시스템을 재부팅 합니다.

-------------------------------------------------------------------
-------------------------------------------------------------------
솔라리스10 버전은 다음의 파일들을 수정합니다:
/etc/inet/hosts
/etc/nodename
/etc/hostname.<interface>

여기서 <interface> 는 프라이머리 인터페이스의 이름입니다, 예를 들어 bge0.
/etc/inet/ipnodes

이제 시스템을 재부팅 합니다.
-------------------------------------------------------------------
-------------------------------------------------------------------

IP 주소 변경

솔라리스7 이전 버전은 다음의 파일들을 수정합니다:
/etc/inet/hosts
/etc/hostname.<interfaces>

여기서 <interfaces> 는 인터페이스의 이름들 입니다, 예를 들어 bge0, bge1, eri0.
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

만약 새로운 서브넷으로 이동하려 한다면 다음의 파일들을 수정합니다:
/etc/inet/netmasks
/etc/defaultrouter
/etc/resolv.conf

이제 시스템을 재부팅 합니다.

솔라리스7 에서 9 버전은 다음의 파일들을 수정합니다:
/etc/inet/hosts
/etc/hostname.<interfaces>

여기서 <interfaces> 는 인터페이스의 이름들 입니다, 예를 들어 bge0, bge1, eri0.
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
/etc/inet/ipnodes

만약 새로운 서브넷으로 이동하려 한다면 다음의 파일들을 수정합니다:
/etc/inet/netmasks
/etc/defaultrouter
/etc/resolv.conf

이제 시스템을 재부팅 합니다.




2012. 2. 19. 18:32

moniwiki 설치 - Fedora 13

== moniwiki installation in Fedora 13 ==
a. installation 후 edit 이 안되는 상황
* Edit 명령 실행 시 PHP fatal error 발생
  - php-mbstring 패키지 설치
a. 서버를 옮겨 예전 데이터 백업 후 edit이 안되는 현상
* file access right (파일 접근 권한) 설정
a. rcs : 버전정보가 기록되지 않는 경우
* rcs 패키지를 설치해줘야 한다. - yum install rcs

== configuration for moniwiki ==
 a. Recent changes macro에서 출력되는 글자수가 너무 적어서 늘리고 싶을때 ...
* config.php 파일을 아래처럼 고치니 잘 됩니다.
- $rc_strimwidth=0;

== old [아래는 무시할 것] ==
a. installation 하고 edit 누르면 아래 에러 2개가 떴다.
: 그래서 아래 2 line comment 처리하니 되었다.
a. 사용환경
- Linux sloth 2.6.34.8-68.fc13.x86_64
- 1.1.6-CVS-20100910

/usr/local/moniwiki/wikilib.php
1333 $len = mb_strwidth($category);
1338 $len = intval(($mlen - mb_strwidth($lab)) / 2);

error messages >>
[Mon May 30 21:35:43 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mb_strwidth() in /mnt/sda7/moniwiki/wikilib.php on line 1333, referer: http://localhost/mywiki/wiki.php/BlogChanges

[Thu Jun 02 21:23:31 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mb_strwidth() in /usr/local/moniwiki/wikilib.php on line 1338, referer: http://localhost/fwiki/wiki.php/CategoryTemplate?action=edit

[Mon May 30 21:36:03 2011] [error] [client 127.0.0.1] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Seoul' for 'KST/9.0/no DST' instead in /mnt/sda7/moniwiki/wikilib.php on line 814, referer: http://localhost/mywiki/wiki.php/BlogChanges?action=edit

a. 위 edit 안되는 경우에 대해
* 하지만 이후 다른 페이지가 보이질 않는다.

a. /etc/php.ini >>
* extension=/usr/lib64/php/modules/msql.so
a. moni wiki 관련 게시물
* http://kldp.net/tracker/?group_id=210&atid=354010&func=detail&aid=315144
* 해결됐습니다. php.ini 에 extension 디렉토리와 그 안의 내용이 설정되있지 않았었네요.
a. 질문 to dora
아래 moniwiki edit 관련 글 남기신 것 보고 메일 드립니다.
http://kldp.net/tracker/?group_id=210&atid=354010&func=detail&aid=315144
저도 같은 현상이 발생했서 그러는데 해결 방법이 아래와 같다고 글을 남기셨네요.
php.ini 에 extension 디렉토리와 그 안의 내용이 설정되있지 않았
었네요.
제가 잘 몰라서 그러는데 어떤 설정인지 알려주실수 있는지요?
저는 fedora 2.6.34.8-68.fc13.x86_64 버전을 사용중입니다.

2012. 2. 19. 18:12

moniwiki - 설치 & 설정 tip in Windows

<Index>

 == 설치 도움말 site ==
== moniwiki 설치 in windows ==
== moniwiki 도움말 ==
== moniwiki configuration in windows vista ==

<Content>
== 설치 도움말 site ==
 * http://moniwiki.kldp.net/wiki.php/HelpOnInstallation
 * http://parkpd.egloos.com/3285386

 == moniwiki 설치 guide in windows == 
a. mapmoni-setup-1.1.4.exe 설치
a. 설치된 디렉토리의 MicroApach-2.0.61에 들어가서 go.bat을 실행시키면 아파치가 구동.

a. http://localhost:8800 로 정상적으로 아파치 실행되었는지 확인 가능
a. microApache 설명
- http://moniwiki.kldp.net/wiki.php/MicroApache
a. http://localhost:8800/wiki/wiki.php로 접속
- http://localhost:8800/Program/moniwiki/monisetup.php
a. 이후 부터는 linux용 moniwiki 설치와 동일하게 진행 가능

== moniwiki 도움말 ==
a. http://moniwiki.kldp.net/wiki.php/MoniWikiTutorial


=== moni wiki Faq#1 ===
a. http://moniwiki.kldp.net/wiki.php/MoniWikiFaq
a. http://moniwiki.kldp.net/wiki.php/MoniWikiFaq2


== moniwiki configuration in windows vista ==
=== \moniwiki\MicroApache-2.0.61\conf\httpd.conf ===
a. 접속 url 바꾸기 (http://localhost:8800/wiki/wiki.php로 접속 => http://localhost:8800 로 바꾸기)
* DocumentRoot /Promgram/moniwiki : 요것 처럼 설치 디렉토리를 바꿔준다.

=== \moniwiki\php-5.2.10\php.ini ===
a. 첨부파일 최대 크기 설정
* post_max_size = 8M


2012. 1. 25. 18:26

Fedora install guide - 설치 후 설정해 주기

[ index ]
# yum insall
# manual installation
# post configuration
# 새로 배 운 command들
# problem
# Graphic drivers for Fedora 13 and Install guide nVidia driver
# Thunderbird for x86_64
# ibus and opera
# ethernet lan port down
# lspci
# Disk partition information

[ content ]
# yum insall
 - thunderbird
 - wireshark, wireshark-gnome
 - gconf-editor
 - pidgin
 - dkms
 - gcc
 - xinetd
 - scim-hangul
 - unrar
 - unalz
 - p7zip # 한글파일이 깨져서 써볼까 했더니 안된다. ㅠ.ㅠ
 - xpdf
 - nautilus-open-terminal
 - nmap

 - rpmfusion repo 설치 후 설치된 package
  * mplayer, mplayer-gui
  * vlc
  * avidemux
  * tor

# manual installation
 - opera ( rpm )
 - virtualbox
 - googlemap
 - w3m
 - rpmfusion repositary 추가 (http://rpmfusion.org/Configuration)
 - chrome
== for LTE test ==
vsftpd, telnet-server, xinetd
wireshark, wireshark-gnome, netmonitor, iperf
unrar
unalz
nmap
uucp
ncompress : .Z 파일 압축 해제
D-ITG, lantraffic
dhcp, ntp, bind, freeradius
 - thunderbird
 - gconf-editor
 - pidgin
 - dkms
 - gcc
 - scim-hangul
 - p7zip # 한글파일이 깨져서 써볼까 했더니 안된다. ㅠ.ㅠ
 - xpdf
 - nautilus-open-terminal
 - virtualbox
 - rpmfusion repo 설치 후 설치된 package
  * mplayer, mplayer-gui
  * vlc
  * avidemux
  * tor
        - w3m
        - rdesktop
        - convmv

# post configuration
 - 별도의 파티션을 만들어서 /home을 그리 mount해서 쓰자.
 - msn : empathy
 - keyboard shortcut
 - virtualbox :
   * yum install dkms, gcc
 - 한글 입력으로 ibus가 기본인데 가끔씩 몇초정도 얼어붙는 현상이 있어 scim으로 바꿨다. 이때 scim-hangul을 깔아줘야 한다. 근데 scim도 가끔 얼어붙네요. 잉~ 그래서 pkill ibus를 해주면 풀리는 듯 하다.
 - touchpad enable/disable cli 만들고
 - config file 3개 수정해주면 마우스 있을때는 touchpad가  disable된단다.

# 새로 배운 command들
 - grub
 - mke2fs -t ext4 /dev/sda7

# problem
 - LCD 밝기 조절이 안된다.
  * nvidia driver를 깔고 xorg.conf에 설정값 한줄 넣어줬더니 잘 된다.
   : nvidia driver를 깔아서 된건지  xorg.conf만으로 된건지는 확실치 않다.
   - nvidia driver 깔기
   - xorg.conf 에 아래 한줄 추가했다.
     Option "RegistryDwords" "EnableBrightnessControl=1"
     http://blog.christophersmart.com/2010/07/10/samsung-r480-laptop-lcd-brightness/
   - 잘 되다가 재부팅하고 나서 동작하지 않는다.
   - 위처럼 동작안되다가 hibernation으로 한번 갔다가 왔더니 또 잘 된다ㅠ.ㅠ
  * echo -n 1 > /sys/devices/virtual/backlight/acpi_video0/brightness
   - 위 처럼 해주고 Fn+Arrow키를 한번 누르면 어두어진다.
     그치만 다시 한번 누르면 밝아진다. 이때는 위처럼 다시 명령주고 Fn+Arrow키를 눌러주면 다시 어두워진다.
  * grub에 아래처럼 추가해 준다.
    - http://forums.fedoraforum.org/showthread.php?t=247355
    - grub에 acpi_backlight=vendor acpi_osi=Linux 를 추가해서 확인해 보자.
      안되면 아래 3가지도 시도해 보자.
      grub에 acpi_backlight=nvidia acpi_osi=Linux
      grub에 acpi_backlight=nvidia acpi_osi=linux
      grub에 acpi_backlight=vendor acpi_osi=linux
    - 해봤는데 안된다 ㅠ.ㅠ 아래처럼 오히려 더 안되는듯 하다.
      cat /proc/acpi/video/VGA1/LCD/brightness 해보니 <not supported> 로 뜬다.
      그전에는 levels: 10 20 30 40 50 60 70 80 90 100 current: 100 로 떴었다.
  * http://forums.fedoraforum.org/archive/index.php/t-247112.html
    위 링크처럼 nvidia driver를 깔아보는 것도...

# Graphic drivers for Fedora 13 and Install guide nVidia driver
 - http://www.mjmwired.net/resources/mjm-fedora-nvidia.html
 This guide is meant to help explain how to determine and install the proper kernel driver to enable hardware accelerated graphics on your Nvidia based video card.
 - /boot/grub/grub.conf
 Add the following: rdblacklist=nouveau to the end of the kernel line.
 - yum install kmod-nvidia
 - blacklist.conf
 #blacklist nvidiafb # 요부분 주석처리 했다.
 - /etc/modprobe.d/blacklist-nouveau.conf
 blacklist nouveau # grub에서 rdblacklist=nouveau 를 넣어주면 안해도 된다??

# Thunderbird for x86_64
 - https://addons.mozilla.org/en-US/thunderbird/addon/2313/
 - http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b2/contrib/linux-x86_64/
 - opera로부터 copy & paste이 안될 경우
  . thunderbird에서 마우스 오른쪽 버튼 누르고 '포맷없이 붙여넣기' 선택 또는
  . thunderbird 제목창에 붙여 넣기 하면 된다.

# ibus and opera : 현재 Opera 11.x로는 아래 현상 나오지 않는다.
 - 한글 입력으로 ibus가 기본인데 가끔씩 몇초정도 화면이 얼어붙는 현상이 있다. Opera와의 조합일때 발생하는 듯하다.
 - Opera에서는 Shift가 들어가는 글자를 칠때 문제가 발생한다.
 - scim으로 바꿨다. 이때 scim-hangul을 깔아줘야 한다. 근데 scim도 가끔 얼어붙네요. 잉~ 그래서 pkill ibus를 해주면 풀리는 듯 하다.
 
# ethernet lan port down
 a. lan 케이블을 빼고 넣고 하다 보면 lan포트가 살지 않는다.
   . dmesg를 봤더니 atl1c 모듈이 관련되더라
   . modprobe -r atl1c; modprobe atl1c 했더니 링크가 살더라.

# lspci
 00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
 00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 02)
 00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
 00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
 00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
 00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
 00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 05)
 00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
 00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
 00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
 00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
 00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
 01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 310M] (rev a2)
 01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
 03:00.0 Ethernet controller: Atheros Communications AR8131 Gigabit Ethernet (rev c0)
 ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 05)
 ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 05)
 ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 05)
 ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 05)
 ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 05)
 ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 05)

# Disk partition information
Command (m for help): p

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x235ca927

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         196     1572864   12  Compaq diagnostics
Partition 1 does not end on cylinder boundary.
/dev/sda2   *         196        2565    19029474+   7  HPFS/NTFS
/dev/sda3            2566       38913   291965310    f  W95 Ext'd (LBA)
/dev/sda5            5226       38912   270590796    7  HPFS/NTFS
/dev/sda6            2566        4703    17171456   83  Linux
/dev/sda7            4704        5225     4192256   82  Linux swap / Solaris

< after deletion of sda5 >
Command (m for help): p

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x235ca927

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         196     1572864   12  Compaq diagnostics
Partition 1 does not end on cylinder boundary.
/dev/sda2   *         196        2565    19029474+   7  HPFS/NTFS
/dev/sda3            2566       38913   291965310    f  W95 Ext'd (LBA)
/dev/sda5            2566        4703    17171456   83  Linux
/dev/sda6            4704        5225     4192256   82  Linux swap / Solaris

< after creation of sds7 >
Command (m for help): p     

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x235ca927

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         196     1572864   12  Compaq diagnostics
Partition 1 does not end on cylinder boundary.
/dev/sda2   *         196        2565    19029474+   7  HPFS/NTFS
/dev/sda3            2566       38913   291965310    f  W95 Ext'd (LBA)
/dev/sda5            2566        4703    17171456   83  Linux
/dev/sda6            4704        5225     4192256   82  Linux swap / Solaris
/dev/sda7            5226       38912   270590827+  83  Linux