S(Source)RPM을 받았을 때 사용법

ncftp-3.1.3-6.src.rpm
을 받았다고 치면

# rpm -Uvh ncftp-3.1.3-6.src.rpm
# cd /usr/src/hancom/SPECS
# rpmbuild -ba ncftp.spec

빌드가 끝나면

# cd /usr/src/hancom/RPMS/i386
에 가면
ncftp-3.1.3-6.i386.rpm
이 만들어져 있을 것이다.

# rpm -Uvh ncftp-3.1.3-6.i386.rpm
하면 설치가 끝난다.

지금까지 소스RPM을 받아서 자신 컴에서 빌드하여 설치하는 것을 알아보았다.

그럼 해피 리눅싱~~

발췌 : 한컴 리눅스 >OS Tip & Tech > [팁] SRPM을 RPM으로 만들어서 설치하는 법(멀티)
http://kr.hancom.com/board/bbsView.php?zone=os&from=3&mode=0&sort=0&s_order=0&page=0&info_no=14&zone=os&key=title&value=srpm&cata=&goods=&num=301175
728x90
1. 폴더 공유 하기
XP에서 뿐만 아니라 2K에서도 될듯 싶지만 해보지 않아서 확답을 할 수없다.
현재 OS를 2개 설치해 Outlook 의 관리 폴더가 2개 이상 생겨서... 이쪽 PC 저쪽 PC할것 없이
데이터가 엉켜 참으로 짜증나는 경우가 많다.
현재 나같은 경우  2K3 서버와 2K 프로를 설치했는데, 이 경우 C드라이브로 D드라이브로 나누어 C는 2K3 서버를
D는 2K 프로를 설치한 상태이다. 이 경우 Outlook 같은 경우 %homedir%Local SettingsApplication DataMicrosoftOutlook
에 *.pst 의 파일로 설정되어 있다. 처음에 2K3 서버안에 이미 다 설치를 한상태에서 2K 프로를 설치할때는 2K3안에 있는 내용을 끄집어 내 사용하려 한것이다.
이를 하는 방법은 다음과 같다.

도구 -> 옵션 -> 메일 설정 에 보면 3번째 항목에 데이터 파일이라고 있고 버튼이 있다. 이를 누르면
데이터 파일 관리화면이 뜬다. 보통 디폴트로 깔리면 %homedir%Local SettingsApplication DataMicrosoftOutlook 형태로 저장되어 있다.
나 같은 경우에는 D:Documents and SettingshindLocal SettingsApplication DataMicrosoftOutlook 에 위치해 있다. 그러나 내가 사용하는 것은 C:Documents and SettingshindLocal SettingsApplication DataMicrosoftOutlook 에 있는 것이다. 이를 추가를 해서 원래 쓰려는  .PST 파일이 있는 곳으로 가 PST를 추가한다.(C:Documents and SettingshindLocal SettingsApplication DataMicrosoftOutlookoutlook.pst) 그리고 난뒤 일단 닫는다.
그리고, 전자 메일 계정에 들어가서, 기타 설정에 들어가 아래쪽을 보면 "다음 위치로 새 전자 메일 배달" 이 있는데, 여기서 자신이 고른 개인 폴더를 선택해 준다. (그래야 새로 등록한 PST로 메일이 들어간다.)  같이 생성되었던 Default가 필요하면... 그냥 내비두고 필요 없으면 해당 위치의 .PST를 지운다.( 나 같은 경우 경우에는 D:Documents and SettingshindLocal SettingsApplication DataMicrosoftOutlookoutlook.pst 이다)
그리고 메인 메뉴로 돌아가, 도구의 주소록을 본다,. 도구->주소록을 눌러 도구 -> 옵션에 들어가서 맨 윗라인의 이 주소 목록 먼저 보기에서 자신의 폴더의 연락처로 맞춘다.(보통 3개가 나오는데, 하나씩 해보고, 주소록에 리스트가 제대로 뜰때까지 변경해본다.
이러면 모든 PST내용을 공유 사용할 수 있다.
728x90
간혹 VC++을 설치했는데, VC++에 제대로 등록이 안되어 있어
소스세이프를 사용하지 못하는 경우가 있다.
이 경우 간단하게 초기화 시키는 방법이 있다.

VSS 프로그램이 있는 폴더를 찾아낸다.
만일 VC++과 같이 설치되어 있다면...
설치된드라이브:Program FilesMicrosoft Visual StudioCommonVSSwin32
의 위치에 있고 대부분, VSSwin32의 위치를 찾으면 된다.

그 폴더에 있는 내용중 ssint.exe 를 실행해 주면 된다.
728x90
1. 현재 몇몇 Web Mail에서는 HTML로 작성된 Outlook Mail을 읽지 못하는 경우가 발생하는 경우
현재 확인된 문제의 사이트는 mail.mju.ac.kr 로 @mju.ac.kr 로 된 이메일에게 메일을 보내지 못하고 있다.
언제나 이메일을 보내면 읽을 수 없는 형식이라고 나온다. 이 문제가 처음에는 Q-Mail의 문제인 줄 알았는데,
실상을 알고 보니 HTML 이메일의 인코딩 문제였다.
이 문제를 해결하는 방법은 설정을 가볍게 바꾸면 해결된다.
이메일 관련 내용을 선택(받은 편지함) -> 옵션 -> 메일 형식 -> 국가별 옵션 -> 보내는 메시지에 대한 기본 설정 인코딩
에서 한국어한국어(EUC) 로 바꾸어 주면 된다.

2.서명이 계속 "제목 없음" 으로 나온다.
서명 새로 만들기를 한 후
1번 항목인 이름 부분을 꼭 확인하여 준다.
728x90
CAB 파일을 만들다 보면 여러개가 생성이 되어 한번에 동시에 설치하지 못하는 경우가
발생한다. 물론 사용자가 일일히 CAB 파일을 클릭해서 설치하면 되지만
여러개 이라면 쉽지 않은일..

이것을 처리하기 위한 배치 파일을 만들어 보자.
copy  xxxabc.CAB  Temp1.CAB

wceload Temp1.CAB

여기서 핵심은 wceload.
이 프로그램을 이용해 CAB을 설치하는것이다.

출처 : 배소영(hobak2)
728x90
쉽게 연상할수 잇는 차이점은 DLL 내에 MFC 의 함수들을 싣을 것인지 아닐지를 결정하는 내용이라는 것이다. 즉 만들 DLL 안에 MFC의 각종 실행 로직이 들어가게 디면 Static 아니면 Shared 가 되는 것이다.
프로그램을 만들때는 큰 차이가 없다가, 실제 릴리즈 할때, 이 프로그램이 실행되는 환경에,
해당하는 버젼의 MFC.DLL이 없으면 실행이 안된다.
하지만, Shared 인경우 해당하는 프로그램이 상당히 Light 해진다. 즉 실행 모듈을 싫지 않기 때문에 얻어지는 최대의 장점이다. MFC ㅁ모듈을 사용하는 양에 따라 달라지지만, 대개 100K 짜리를 기준으로 한다면 MFC를 Shared 하게 되면 70~80%의 경감을 가져온다.

하지만, Shared 에 또다른 문제가 있으니, 그것이  바로 Resouce 문제다.
Shared를 택하게 되면 이 DLL을 부르는 Main 프로그램과 Resouce를 겹쳐서 사용하게 되는 문제가 있다. 그래서 DLL내의 리소스를 사용하려면, 현재 사용중인 HINSTANCE를 DLL쪽으로 맞추어 주어야 한다.
현재 Main의 HINSTANCE를 get 해와서 저장하고, DLL의 HINSTANCE를 현재 HINSTANCE로 변경해서 DLL내의 리소스를 사용하고 난뒤, 다시 저장해 놓았던 Main의 HINSTANCE를 현재 HINSTANCE로 변경해야 한다.

그러나 Static으로 하게되면 이 리소스 마저 분리되는 것 같다. 아무런 문제없이 사용가능하게 된다.
어떤것을 사용할지는 상황에 맞게 해야 겠지만, 일단, FlexBuilder에서는 그냥 Static을 우겨야 겠다.
728x90
보통 텍스트를 쓸때, 배경 색과 텍스트의 배경색이 틀려지면,
이상하게 글자 주변에만 기묘한 색이 되어 배경색과 따로 논다.
즉 글자만 색이 달라야 하는데, 글자를 기준으로 글자 크기만한
사각형이 다른 색이라면 정마리지 보기 싫어지게 된다.

그래서 이를 방지하기 위해 SetBkMode라는 메소드를 이용해,
SetBkMode(TRANSPARENT)  를 호출한다.

그러나 이것을 OnCtrlColor에서 사용하면 기묘한 결과를 얻어 낸다.


HBRUSH CTextCtrl::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
        HBRUSH hbr = CWnd::OnCtlColor(pDC, pWnd, nCtlColor);
        if(pWnd == m_pEdit) {
                pDC->SetBkMode(TRANSPARENT);
                pDC->SetTextColor(m_fontColor);
                return (HBRUSH)m_brush;
        }
        return hbr;
}

위의 내용이 바로 그 내용인데, 이렇게 해도 일단은 원하는 기능은 얻기는 한다.
그러나 문제가 있다. 스크롤이 되거나 새로운 글자가 입력될때, 이전 글자가 지워지지 않고
계속 겹쳐져 그려지는 문제이다. 이는 위의 Mode가 TRANSPARENT 여서 계속 겹쳐져서
그려지는 것 같다.

이를....
pDC->SetBkMode(TRANSPARENT);
    ->
pDC->SetBkColor(m_backColor);

로 변경해 준다.
이렇게 하면 비록 투명은 아니지만 그와 같은 효과를 얻게 된다. 더욱이 이전에 발생한 문제가
해결된다.

이 문제는 글자를 새롭게 입력을 받는 에디트 컨트롤을 child로 잡게 된 경우에 발생하는 문제다.

728x90

48-Bit LBA Support for ATAPI Disk Drives in Windows 2000

The information in this article applies to:
  • Microsoft Windows 2000 Server SP1
  • Microsoft Windows 2000 Server SP2
  • Microsoft Windows 2000 Advanced Server SP1
  • Microsoft Windows 2000 Advanced Server SP2
  • Microsoft Windows 2000 Professional SP1
  • Microsoft Windows 2000 Professional SP2
This article was previously published under Q305098

SYMPTOMS


Windows 2000 Service Pack 2 (SP2) and earlier versions of Windows 2000 do not support 48-bit Logical Block Addressing (LBA) as defined in the ATA/ATAPI 6.0 specification.

RESOLUTION

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack




The English-language version of this fix should have the following file attributes or later:


Date Time Version Size File name
--------------------------------------------------------
10/19/2001 01:42 PM 5.0.2195.4529 86,768 Atapi.sys
04/19/2002 05:43 PM 214,938 Update.inf



The following conditions are necessary for the correct functioning of 48-bit LBA ATAPI support:

  • A computer with a 48-bit LBA-compatible Basic Input/Output System (BIOS) installed.
  • A computer with a hard disk that has a capacity of greater than 137 gigabytes (GB).
  • You must enable the support in the Windows registry by adding or changing the EnableBigLba registry value to 1 in the following registry subkey:

    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesatapiParameters



To enable 48-bit LBA large-disk support in the registry:

  1. Start Registry Editor (Regedt32.exe).
  2. Locate and then click the following key in the registry:

    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesAtapiParameters

  3. On the Edit menu, click Add Value, and then add the following registry value:


    Value name: EnableBigLba

    Data type: REG_DWORD

    Value data: 0x1

  4. Quit Registry Editor.
NOTE: If you enable 48-bit LBA ATAPI support by editing the preceding registry key, but your system does not meet the minimum requirements, you may observe the following behaviors:

  • Operating systems that do not have 48-bit LBA support enabled by default (such as Microsoft Windows 98, Microsoft Windows Millennium Edition (Me), or Windows 2000) that are installed on a partition that spans beyond the 28-bit LBA boundary (137GB) will experience data corruption or data loss.
  • The installation of operating systems that do not have 48-bit LBA support enabled by default (such as Windows 98, Windows Me, or Windows 2000) on a partition that is beyond the 28-bit LBA boundary (137 GB) is unsuccessful and leaves behind a temporary installation folder.
  • If you install hotfixes that enable 48-bit LBA before you install Windows 2000 Service Pack 3 (SP3), the appropriate registry key will be automatically created during the installation of SP3 to preserve the data integrity of the hard disk.
  • After you enable 48-bit LBA support by adding the appropriate registry key, data corruption may occur if you remove the registry key or if you remove (uninstall) SP3 for Windows 2000.
  • If you install a copy of Windows 2000 that includes SP3 (SP3 integrated) on a large hard disk that has already been preformatted by using a 48-bit LBA-enabled operating system, the ATAPI subsystem may report hard-disk space greater than that which is addressable without the 48-bit LBA support (larger than approximately 137 GB) during the text-mode portion of Setup. In this case, the hard disk's partition table information has already been created. To fix the incorrect disk information, delete the partition by using either a disk partitioning utility or by deleting and then re-creating the partition during the text-mode portion of Setup. After you create the new partition, quit Setup by pressing F3, and then restart the Windows installation process. The ATAPI subsystem now correctly shows approximately 137 GB of hard disk space.
  • The EnableBigLba registry value is disabled:


    If you have a 48-bit compatible BIOS that can support a hard disk that has a capacity of more than 137 GB, only the first 137 GB of the hard disk is addressable. The remainder of the hard disk is not used.
  • The operating system must be installed on the first partition that is smaller or equal to 137 GB when the EnableBigLba registry value is enabled but when you do not have a 48-bit LBA compatible BIOS.


    If you enable the 48-bit LBA ATAPI support by editing the registry setting, but you lack both a 48-bit LBA compatible BIOS and a hard disk that has a capacity of more than 137 GB, the hard disk continues to function as a standard hard disk with an addressable limit of 137 GB.
  • The operating system must be installed on the first partition that is less than or equal to 137 GB and the rest of the hard disk divided into one or more remaining partitions when the EnableBigLba registry value is enabled on a computer without a 48-bit LBA compatible BIOS that has a hard disk with a capacity of more than 137 GB.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.Important Although support for 48-bit LBA is included in Windows 2000 Service Pack 3 (SP3) and later, it is still necessary to create the registry change that is described in the "Resolution" section of this article.

MORE INFORMATION

For additional information about how to obtain a hotfix for Windows 2000 Datacenter Server, click the article number below
to view the article in the Microsoft Knowledge Base:

265173 The Datacenter Program and Windows 2000 Datacenter Server Product


For additional information about how to install multiple hotfixes with only one reboot, click the following article number to view the article in the Microsoft Knowledge Base:

296861
How to Install Multiple Windows Updates or Hotfixes with Only One Reboot

For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below
to view the article in the Microsoft Knowledge Base:

249149 Installing Microsoft Windows 2000 and Windows 2000 Hotfixes

Last Reviewed:7/4/2003
Keywords:kbbug kbfix kbOSWin2000fix kbWin2000sp3fix KB305098
728x90

+ Recent posts

728x90