기본 콘텐츠로 건너뛰기

2010의 게시물 표시

Ubuntu (Kubuntu) 에 desktop 파일 만들기

Package 관리자등을 통해 직접 Repository 에 있는 Application 을 설치하는 경우에는 필요한 경로와 파일, Category 로 분류된 Icon 등록 등이 자동적으로 이루어지나 firefox, eclipse 등 새로운 버전을 새로 설치할 경우, 다음과 같은 절차를 통해 시작메뉴에 등록시킬 수 있다. 다음은 eclipse-SDK-3.6-linuxx-gtk.tar.gz 을 받아 설치 등록하는 것을 예로 든다. 1. 다운받은 파일을 /usr/lib에 압축해제한다. (물론, super user 계정으로 실행해야 한다.) 2. 보통의 경우, /usr/bin Directory 는 PATH 에 물려 있으므로 다음과 같은 실행 파일을 만들어 놓는다. # cd /usr/lib # chmod +x eclipse # cd /usr/bin # sudo nano eclipse eclipse 파일에는 아래의 내용을 입력하여 넣는다. export ECLIPSE_HOME="/usr/lib/eclipse" $ECLIPSE_HOME/eclipse $ * # sudo chmod 755 eclipse 3. Desktop Menu 에 추가하려면 # cd /usr/share/applications # sudo nano eclipse.desktop [Desktop Entry] Encoding=UTF-8 Name=Eclipse Comment=Eclipse IDE Exec=eclipse Icon=/usr/lib/eclipse/icon.xpm Terminal=false Type=Application Categories=GNOME;Application;Development' StartupNotify=true 이렇게 입력한 파일을 저장하면, 시작메뉴 > 개발 > Eclipse 아이콘이 생성되어 메뉴에서 직접 실행할 수 있게된다.

Android Source 의 Compile 시 Error 문제 해결

$ sudo aptitude install atftpd $ sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev $ sudo apt-get install valgrind $ sudo apt-get install lib32readline5-dev $ mkdir bin $ chmod a+x ~/bin/repo $ curl http://android.git.kernel.org/repo > ~/bin/repo $ chmod a+x ~/bin/repo $ mkdir mydroid $ cd mydroid $ ~/bin/repo init -u git://android.git.kernel.org/platform/manifest.git $ ~/bin/repo sync $ make ============================================ PLATFORM_VERSION_CODENAME=AOSP PLATFORM_VERSION=AOSP TARGET_PRODUCT=generic TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR= TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID=OPENMASTER ============================================ host SharedLib: libneo_util (out/host/linux-x86/obj/lib/libneo_util.so) /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4

ubuntu 또는 kubuntu 에서 Flash Player 10.X 를 설치

kubuntu 9.04 용 apt 를 선택하면, apt url 로 떠서 추후 진행이 난감할 경우, 아래와 같이 하면 된다. Flash Player 10 Linux 용을 8.04 용 deb 파일로 받아 설치하는 방법이다. 1. KPackage 를 실행한다. 2. 메뉴에서 파일 > 열기를 하여 다운받은 install_flash_player_10_linux.deb 을 선택한다. 3. 설치창이 뜨면, 선택한 파일에 hooking 이 되어 있다. 4. 좌측하단의 설치 버튼을 누르면 된다. Adobe Reader 8.1 버전 설치 시 rpm 파일을 설치할 때도 동일한 방법으로 설치할 수 있다.

ubuntu 또는 kubuntu 에서 Sun Java JDK 1.6 설치

1. 인터넷 브라우저를 열어, SDN Home 의 Download Center 에서 Download Java SE Development Kit 6u21 for Linux, Multi-language 를 실행한다. 2. jdk-6u21-linux-i586.bin 이 저장되면, 3. 터미널 창을 열어 다음을 실행한다. 4. 압축파일이 저장된 Directory 로 이동한다. snjee@snjee-kubuntu:~$ cd setupapps snjee@snjee-kubuntu:~$ sudo mv jdk-6u21-linux-i586.bin /usr/local/ snjee@snjee-kubuntu:~$ sudo chmod a+x /usr/local/jdk-6u21-linux-i586.bin snjee@snjee-kubuntu:~$ sudo ./jdk-6u21-linux-i586.bin [아래는 압축이 풀리고 마지막에 표시되는 Comment 부분이다.] Product Registration is FREE and includes many benefits: * Notification of new versions, patches, and updates * Special offers on Sun products, services and training * Access to early releases and documentation Product and system data will be collected. If your configuration supports a browser, the Sun Product Registration form for the JDK will be presented. If you do not register, none of this information will be saved. You may also register your JDK later by opening the register.html file (locat

Recovery GRUB on Kubuntu(Ubuntu)

Kubuntu(Ubuntu) 가 설치된 PC 에 Windows 7 을 설치하게되면, 독점적으로 Windows 7 을 MBR 을 Windows 의 것으로 대체시킨다. 이때 다음과 같이 조치한다. 1. Booting 가능한 Kubuntu CD 혹은 Live Desktop CD 로 부팅한다. (부팅 메뉴에서 설치하지 않고 Kubuntu 실행해 보기 와 같은 내용의 메뉴로 진입한다.) 2. Booting 이 완료된 후, Terminal 창을 띄운다. #sudo -i #fdisk -l Disk Partition 정보가 보일 것이다. 여기에서 System 열에 Linux 혹은 ext2 로 보이는 줄의 Device 명을 확인한다. 즉, Linux 가 설치된 Partition 이다. 여기서는 /dev/sda3 로 예를든다. 3. Kubuntu 설치된 Partition 을 Mount 할 Directory 를 생성한다. #mkdir /media/rootdsk 4.Mount 시킨다. #mount /dev/sda3 /media/rootdsk 5. GRUB 를 해당 Partition 에 설치한다. # grub-install --root-directory=/media/rootdsk /dev/sda (참고) 경고가 뜨면, # grub-install --root-directory=/media/rootdsk /dev/sda --recheck 6. 설치가 완료되면, Installation finished. No error reported 라로 표시된다. 다음은 기존에 Windows XP 가 설치되었었는데 Windows 7 으로 Upgrade 한 이후 발생할 수 있는 문제점이다. GRUB 복구는 위와 같이 수행한다. 복구를 정상적으로 하고 Windows 으로 Booting 하면, Unknown device... 라고 메세지가 뜨면서 부팅할 것이다. 이럴 경우, Linux 로 부팅하여 Terminal 을 띄우고, update-grub 를 수행하여

발상의 전환 두번째 얘기

1960년대 달정복을 위해 미국과 러시아(당시는 소련)는 엄청난 재화를 쏟아 부으며 우주로 향해갔습니다. 그 당시 있었던 일입니다. 우리가 흔히 사용하는 필기구 볼펜... 이러한 대부분의 펜 종류는 지구 중력에 의해 위에서 아래로 흘러나오기 때문에 사용이 가능합니다. 따라서, 무중력의 우주에서는 볼펜을 사용할 수 없다고 결론내린 NASA는 2400백만 달러라는 큰 돈을 들여 무중력에서 사용할 수 있는 볼펜을 개발했습니다. 글을 쓰게되면 용지 표면에 합금이 입혀져 눈에 보이는 것입니다. 그런데, 미국 정보국에서 이와 관련하여 소련에서는 어떤 기술 개발을 했는지 정보를 입수해 보았습니다. 소련은 연필을 사용했다는 것입니다. 여러분도 연필이란 단어를 보기 전 순간적으로 무엇을 생각하셨나요? 한쪽은 중력을 이기려했던 것이고, 다른 한쪽은 중력에 무관한 것을 찾았던 것이지요. Space Pen(Fisher Pen) 기술을 개발하게된 NASA 는 물론 기뻐했겠지만... 아마도 이 얘기를 듣는 순간 "허허허" 했을 것입니다.

Google dribbles out PowerMeter smart-grid service

구글이 많은 분야에서 맹활약하며, 기대주로 떠오르고 있습니다. 인터넷 검색 서비스에서 모든 광고를 접속 홈페이지에서 없애고 구글링이라는 신조어를 만들어 낸 이후, Open Source Project 진영에 많은 자원과 지원을 아끼지 않은 결과, Google Apps, Google Docs, Google Map 에 이어 구글토크, 구글크롬, 크롬OS 까지 많은 영역으로 사업을 확대하였습니다. 마이크로소프트를 위태롭게 하는 경쟁상대로까지 입지를 굳히고 있습니다.   여기에, 근간 사회적 관심을 불러모으는 스마트그리드 사업분야인 가정 에너지 모니터링 서비스까지 남들보다 앞선 시각으로 서비스를 시작했습니다. 이는 사장님께도 말씀드린, XBee(Non Amp Type ZigBee Modem)을 탑재한 Open Architecture Google Power Meter 입니다. 이 기술은 모든 것(하드웨어, 소프트웨어)이 Open 되어 있는 상황이라 영업적으로 어떻게 잡아가는 가에 따라 구글의 서비스와 함께 스마트그리드에 대한 실제적인 시장을 장악하는 발판이 될 것으로 생각합니다. 관련 CNET News 의 Green Tech 에 올라온 기사 내용입니다. http://news.cnet.com/8301-11128_3-10245295-54.html   이에 대한 연구소 내 토의는 3개월전에 예견된 상황이고, 빠른 시간내에 Launching 이 가능한 상품이나 계약관련, 영업관련 내용은 어찌 풀어야할 지 모릅니다.   많은 분들의 업무적인 검토와 협의를 부탁드립니다. 감사합니다.

함께 읽는 글 [직선과 곡선]

법정스님의 잠언집에 있는 글을 올립니다.   직선과 곡선   사람의 손이 빚어낸 문명은 직선이다. 그러나 본래 자연은 곡선이다. 인생의 길도 자연을 닮아 곡선이다. 끝이 빤히 내다보인다면 무슨 살맛이 나겠는가. 모르기 때문에 살맛이 나는 것이다. 이것이 바로 곡선의 묘미이다.   직선은 조급, 냉혹, 비정함이 특징이지만 곡선은 여유, 인정, 운치가 속성이다.   주어진 상황 안에서 포기하지 않고 자신이 할 수 있는 일을 찾는 것, 그것 역시 곡선의 묘미이다.   때로는 천천히 돌아가기도 하고 어정거리고 길 잃고 헤매면서 목적이 아니라 과정을 충실히 깨닫고 사는 삶의 기술이 필요하다.   [지성남 첨언] 인간이 사회라는 울타리를 만들면서 인간은 자연을 떠났습니다. 인간이라는 생물적 개념에서 사람이라는 인격과 사회성을 띄게 되었습니다. 사람들은 울타리를 유지하려 많은 규칙을 통해 서로의 삶에 규제를 가하였습니다. 이러한 규제의 공통점은 그 과정을 중요시하지 않습니다. 결과만을 중요시 합니다. 이를 통해 사람들은 착각을 합니다. 결과만으로 자신의 인생이 실패했다고 합니다. 실패라는 결과를 통해 자신의 남은 인생도 어둡게 봅니다. 그 실패의 결과가 클 수록 더 어둡게 봅니다. 스님의 말씀처럼 인생은 구비구비 돌아갑니다. 내달릴 때도 있지만 반드시 꺽어질 곡선이 나타납니다. 올해 한해도 이제 마무리할 시간이 한 달여 남짖 남았습니다. 1년동안 자신이 살아온 궤적을 잘 정리하여 내일을 준비합시다. 오늘은 어제 죽은 이가 간절히 원하던 내일이다.

발상의 전환

살아오면서 상당히 많이 들어온 얘기 중의 하나가 " 발상의 전환 " 이라고 생각합니다. 현재 Mobile 산업에서 큰 획을 그리고 있는 Apple 사의 i 시리즈가 그 한 예라 하겠습니다. 스티브 잡스의 발상의 전환 에서 이루어 낸 걸작입니다. Apple 사는 얼마전까지만 하더라도 그 명성에는 걸맞지 않은 많은 어려움을 겪었습니다. 그 와중에 I POD, I PHONE, I PAD 를 개발하여 소비자들의 열광을 받았습니다. 그 회사의 전략은 이러했습니다. 동일한 하드웨어에 소프트웨어를 통합하여 호환성을 최대한 유지하는 전략이었습니다. 실상 I 시리즈의 소프트웨어는 그 화려함과 인터페이스의 간략화, 다 접점 인식 터치 스크린을 적용하여 공상과학 영화에서는 가능했던 대형 스크린 위에 손과 손가락을 이용하여 프로그램을 실행하고 프로그램 창을 확대하며, 키보드나 마우스의 부수적인 장치없이도 컴퓨터를 사용할 수 있는 환경으로 진화하고 있습니다. 비교하여 우리나라의 경우, 삼성전자가 전세계 모바일 시장을 선점하였었습니다. 실상 판매는 많이 했습니다만, 거기에 사용하는 주요한 OS 는 퀄컴의 것이었으며, 하드웨어의 주요한 단위 칩들이 미국, 일본, 유럽의 것이었습니다. MMI와 GUI, 기구 디자인을 제외한 거의 대부분이 외국의 기술을 도입하여 응용한 사례입니다. 모바일 서비스를 제공하는 S 사를 비롯한 많은 업체들은 그들 자신의 Nate, OZ 등 CDMA 망을 이용한 인터넷 접속을 통해 어마끔찍한 재화를 축적하며, 새로운 시대로의 무선 인터넷 시장 도입을 눈먼 정부를 이용하여 I PHONE 과 같은 무선 인터넷이 장점인 Smart Phone 이 개발과 도입을 막아오다가 Apple 사에 그 자리를 내 주게 되었습니다. 실제로는 Smart Phone 의 개발에 있어서 우리나의 Mobile 제조사들은 미리부터 그 기술력을 확보하고 있었습니다. MP3 Player 의 경우도 안타까웠습니다. 세계 최초로 Mobile MP3 Player 를 개발하여 세계를 선

What gets measured, gets managed

What gets measured, gets managed (측정되는 것만 관리될 수 있다) - 피터 트러커   새로운 에너지를 개발하는 것보다 이미 만들어지 에너지를 효율적으로 사용하고 관리하는 것이 중요합니다. 에너지 관리의 중요한 방법은 목표를 설정하고 이 목표에 대한 성과를 측정하는 것, 그리고 벤치마킹을 통해 관리하는 것입니다.   첨부파일은 슈나이더 일렉트릭(Schneider Electric)의 에너지 효율 백서를 통한 에너지관리 입니다. 업무에 참고하세요

ADE7758 Rev.D Datasheet 6 (for Korean)

REFERENCE CIRCUIT The nominal reference voltage at the REFIN/OUT pin is 2.42 V. This is the reference voltage used for the ADCs in the ADE7758. However, the current channels have three input range selections (full scale is selectable among 0.5 V, 0.25 V, and 0.125 V). This is achieved by dividing the reference internally by 1, ½, and ¼. The reference value is used for the ADC in the current channels. Note that the full-scale selection is only available for the current inputs. The REFIN/OUT pin can be overdriven by an external source, for example, an external 2.5 V reference. Note that the nominal reference value supplied to the ADC is now 2.5 V and not 2.42 V. This has the effect of increasing the nominal analog input signal range by 2.5/2.42 × 100% = 3% or from 0.5 V to 0.5165 V. The voltage of the ADE7758 reference drifts slightly with temperature; see the Specifications section for the temperature coefficient specification (in ppm/°C). The value of the temperature dri

ADE7758 Rev.D Datasheet 5 (for Korean)

PEAK VOLTAGE DETECTION The ADE7758 can record the peak of the voltage waveform and produce an interrupt if the current exceeds a preset limit. ADE7758은 전압 파형의 피크값을 기록할 수 있으며 전류가 기정의 한계값을 초과하게되면 인터럽트를 발생할 수 있다. Peak Voltage Detection Using the VPEAK Register The peak absolute value of the voltage waveform within a fixed number of half-line cycles is stored in the VPEAK register. Figure 58 illustrates the timing behavior of the peak voltage detection. 반-선형 사이클의 고정수내의 전압 파형의 피크 절대값은 VPEAK 레지스터에 기록된다. 그림58은 피크 전압 검출의 타이밍 상태를 표현한 것이다. Note that the content of the VPEAK register is equivalent to Bit 6 to Bit 13 of the 16-bit voltage waveform sample. At full-scale analog input, the voltage waveform sample at 60 Hz is 0x2748. The VPEAK at full-scale input is therefore expected to be 0x9D. In addition, multiple phases can be activated for the peak detection simultaneously by setting multiple bits among the PEAKSEL[2:4] bits in the MMODE register. These bits select the phas

ADE7758 Rev.D Datasheet 4 (for Korean)

PHASE COMPENSATION When the HPF in the current channel is disabled, the phase error between the current channel (IA, IB, or IC) and the corresponding voltage channel (VA, VB, or VC) is negligible. When the HPF is enabled, the current channels have phase response (see Figure 53 through Figure 55). The phase response is almost 0 from 45 Hz to 1 kHz. The frequency band is sufficient for the requirements of typical energy measurement applications. However, despite being internally phase compensated, the ADE7758 must work with transducers that may have inherent phase errors. For example, a current transformer (CT) with a phase error of 0.1° to 0.3° is not uncommon. These phase errors can vary from part to part, and they must be corrected to perform accurate power calculations. 전류 채널의 HPF가 비활성화일 때, 전류 채널(IA, IB, IC)와 통신 전압 채널(VA, VB, BC)사이의 상 오차값은 무시할 수 있을 정도로 작다. HPF가 활성상태일 때, 전류 채널은 상 응답을 가진다. 상 응답은 45Hz에서 1kHz까지 대부분 0값이다. 주파수 대역은 전형적인 에너지 측정 응용의 요구 사항에 대해 충분한 값이다. 그러나, 내부적

ADE7758 Rev.D Datasheet 3 (for Korean)

VOLTAGE CHANNEL ADC Figure 49 shows the ADC and signal processing chain for the input VA in the voltage channel. The VB and VC channels have similar processing chains. For active and reactive energy measurements, the output of the ADC passes to the multipliers directly and is not filtered. This solution avoids the much larger multibit multiplier and does not affect the accuracy of the measurement. An HPF is not implemented on the voltage channel to remove the dc offset because the HPF on the current channel alone should be sufficient to eliminate error due to ADC offsets in the power calculation. However, ADC offset in the voltage channels produces large errors in the voltage rms calculation and affects the accuracy of the apparent energy calculation. 그림49는 ADC와 전압 채널의 입력 VA 에 대한 신호 처리 계열을 보여준다. VB와 VC 채널은 유사한 처리 계열을 가진다. 유효와 무효 에너지 측정에 대해, ADC 의 출력은 필터링되지 않고 직접 승산기로 패스된다. 이 솔루션은 매우 큰 다중비트 승산을 막으며 측정의 정확도에 불리하게 작용하지 않는다. HPF는 전력 계산에서 ADC 옵셋에 상응하는 오차를 업애기에 충분한 단일 전류 채널 상

ADE7758 Rev.D Datasheet 2 (for Korean)

CURRENT CHANNEL ADC Figure 41 shows the ADC and signal processing path for the input IA of the current channels (same for IB and IC). In waveform sampling mode, the ADC outputs are signed twos complement 24-bit data-words at a maximum of 26.0 kSPS (thousand samples per second). With the specified full-scale analog input signal of ±0.5 V, the ADC produces its maximum output code value (see Figure 41). This diagram shows a full-scale voltage signal being applied to the differential inputs IAP and IAN. The ADC output swings between 0xD7AE14 (−2,642,412) and 0x2851EC (+2,642,412). 그림41은 전류 채널의 IA 입력에 대한 ADC와 신호 처리선을 보여준다. 파형 샘플링 모드에서, ADC 출력값은 26.0kSPS 최대값에서 부호있는 이의 보수 24비트 데이타 워드값이다. 명시된 +-0.5V 최대 축척 아날로그 입력 신호를 가진 ADC 는 최대 출력 코드값을 제공한다. 이 도표는 미분 입력 IAP와 IAN 에서 공급된 최대 축척 전압 신호값을 보여준다. ADC 출력은 0xD7AE14와 0x2851EC 사이값을 가진다. Current Waveform Gain Registers There is a multiplier in the signal path in the current channel for each phase. The current waveform can be changed by ±5

ADE7758 Rev.D Datasheet 1 (for Korean)

Phase Error Between Channels The high-pass filter (HPF) and digital integrator introduce a slight phase mismatch between the current and the voltage channel. The all-digital design ensures that the phase matching between the current channels and voltage channels in all three phases is within ±0.1° over a range of 45 Hz to 65 Hz and ±0.2° over a range of 40 Hz to 1 kHz. This internal phase mismatch can be combined with the external phase error (from current sensor or component tolerance) and calibrated with the phase calibration registers. HPF와 디지탈 적분자는 전류와 전압 채널 사이에서 약간의 상 오차를 가져온다. 모든 디지탈 설계는 45 Hz ~ 65 Hz ±0.2° 범위에 대해 ±0.1° 오차 범위의 3상 모두에서 전류 채널과 전압채널 사이의 상 일치를 확실히 해야 한다. 이러한 내부 상 불일치는 외부 상 오차값과 결합될 수 있고 상 보정 레지스터에 대해 보상될 수 있다. Power Supply Rejection (PSR) This quantifies the ADE7758 measurement error as a percentage of reading when the power supplies are varied. For the ac PSR measurement, a reading at nominal supplies (5 V) is taken. A second reading is obtained with the sam

How can I install / setup / use the samba service on ubuntu / kubuntu ?

#sudo apt-get install samba smbfs #sudo kate /etc/samba/smb.conf [global] workgroup = workgroup dos charset = CP949 display charset = UTF8 unix charset = UTF8 server string = %h server (Samba, Ubuntu) security = USER socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = no password server = None username map = /etc/samba/smbusers [ShareFolder] comment = my home path = /home/ samba user ID writeable = yes guest ok = no create mask = 0644 directory mask = 0755 #sudo smbpasswd -a samba user ID < > #sudo smbpasswd -a snjee New SMB password: Retype new SMB password: startsmbfilepwent_internal: file /etc/samba/smbpasswd did not exist. File successfully created. Added user snjee. If you finish samba setup, you should test the setting values. #sudo testparm Then, you have to restart the samba service. #sudo /etc/init.d/samba restart * Stopping Samba daemons [ OK ] * Starting Samba daemons [ OK ]