[Linux] How to show dd progress (copy status)

TechNote/Linux 2013. 10. 11. 15:30 Posted by harim~♥

터미널에서 dd 명령을 실행시키고


다른 터미널을 열어


while :

do

sudo kill -USR1 `pgrep ^dd`

sleep 1

done




- POL : 4.2.1

- Wine Ver : 1.6r4



20130715 - Ubuntu 13.04 설치 절차 추가 

hwp도 물론 리눅스에서 읽고 편집할 수 있다. 내가 생각하는 리눅스용 hwp는 다음과 같은 장점이 있다.

- 가격이 상대적으로 저렴하다
- 윈도용에 비해 프로모션이 좀 많다.(그래봐야 1년에 한, 두번이지만 프로모션을 이용하면 정품사용자일 경우 저렴한 가격으로 제품을 업그레이드 받을 수 있다.)
- Hwp 때문에 윈도를 써야했던 왠지 모를 거지같은 패배감을 한번 덜 느낄 수 있다.

정품! 할 수만 있다면 사서 쓰자. 본인도 중고로 3만원에 샀다... -> 이 대목이 좀 웃긴다. 포털인 네X버 카페 중고X라 에서 리눅스용 한글을 검색해서 구매 하였다.

-_-ㅋ 중고나라에서 저런걸 사려고 뒤지는 사람이나.. 올려놓는 사람이나... 신기한 사람들.

참고로 그냥 문서를 보기만 원한다면, WINE과 Hwp뷰어의 조합만으로 가능하다

[Ubuntu] Installing HWP2008 for linux on Ubuntu 9.10

1.필요한 패키지
 - HWP 2008
 - alien (rpm -> deb 변환 패키지)
 - getlibs-all.deb

getlibs-all.deb


 - openssl-0.9.8g-sni.SEL5_2.i386.rpm

openssl_0.9.8g-sni.SEL5_2_i386.deb

20130715 추가 :  openssl0.9.8 설치 (on Ubuntu 13.04)
sudo apt-get install libssl0.9.8


2. 한글2008 CD에서 RPMS 폴더를 복사한다.

3.alien 패키지 설치

sudo apt-get install alien


4.RPM 패키지 변환

sudo alien -k *rpm


5.deb 설치

sudo dpkg -i *.deb

6. getlibs-all.deb 설치

sudo dpkg -i getlibs-all.deb

7. 추가 라이브러리 설치

sudo dpkg -i libjpeg62_6b1-3ubuntu1_amd64.deb
sudo dpkg -i libqt3-mt_3.3.8-b-6ubuntu2_amd64.deb 
sudo getlibs -l libqt-mt.so.3

* 이미 설치된 경우도 있다.


libjpeg62_6b1-3ubuntu1_amd64.deb


libqt3-mt_3.3.8-b-6ubuntu2_amd64.deb


8. libtiff 라이브러리 설치 및 링크 생성

sudo apt-get install libtiff4
sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3
sudo ln -sf /usr/lib/x86_64-linux-gnu/libtiff.so.4 /usr/lib/libtiff.so.3

9. openssl-0.9.8g-sni.SEL5_2.i386.rpm 변환 및 설치
*변환된 deb 파일을 첨부해 두었다.

sudo dpkg -i openssl-0.9.8g-sni.SEL5_2.i386.deb

10. 프로그램 - 오피스 - 한글과컴퓨터 한글 2008 실행 후 제품번호 입력 및 사용 :) / 본인은 32비트 용라서 이후 테스트 불가 . 



[Ubuntu] How to connect to Ubuntu via MSTSC.

TechNote/Linux 2013. 5. 7. 11:06 Posted by harim~♥

10.04LTS


sudo apt-get install xrdp



vi ~/.xsession


gnome-session --session=ubuntu-2d



link : https://launchpad.net/~fingerprint/+archive/fingerprint-gui




How can I install Adobe air

TechNote/Linux 2013. 3. 19. 14:39 Posted by harim~♥

Link : http://askubuntu.com/questions/87447/how-can-i-install-adobe-air



  1. Download Latest Version Air 2.6.0 For Linux to your Desktop:

  2. Ctrl+Alt+T to open terminal

  3. sudo apt-get install ia32-libs - (32bit crap if you want to run this in x64 Ubuntu)

  4. cd Desktop (change dir. to Desktop dir.)

  5. chmod +x AdobeAIRInstaller.bin (change mode - execute permission yes)

  6. ./AdobeAIRInstaller.bin (after you accept the Adobe Air license, it will prompt you for your password; it needs root access in order to install)

Maybe you'll get an error after the last command?

Sorry, an error has occurred. Adobe AIR could not be installed. Install either Gnome Keyring or KDE KWallet before installing Adobe AIR.

This can be fixed:

  • In a terminal (default shortcut: Ctrl+Alt+T), type:

    locate libgnome-keyring.so
    
  • This is my result (yours might be different):

    /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0
    /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0
    
  • As suggested below by @jmendeth, the easiest way to tell the installer where to find these files is to use LD_LIBRARY_PATH:

    • For 32-bit Ubuntu (tested on 12.04):

      LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu ./AdobeAIRInstaller.bin
      
    • For 64-bit Ubuntu, the command line would probably be:

      LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu ./AdobeAIRInstaller.bin
      

If the LD_LIBRARY_PATH trick doesn't work, you can try this:

  • Create a symbolic link to your location strings that you found with the previous commands:

    sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0`
    sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    
  • Use following commands for 32-bit systems:

    sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    
  • Then repeat step 4 & 6 (skip 5, as the permission to execute the file hasn't changed).

  • Remove symbolic links after installation of Adobe AIR 2.6.0:

    sudo rm /usr/lib/libgnome-keyring.so.0
    sudo rm /usr/lib/libgnome-keyring.so.0.2.0
    

Reference:

How to set up xdmcp on Ubuntu 10.04 LTS

TechNote/Linux 2013. 1. 10. 14:57 Posted by harim~♥

1. gdm.schema 수정 


$ sudo vi /etc/gdm/gdm.schema

.

.

 <schema>

       <key> security / DisallowTCP </ key>

       <signature> b </signature>

       <default> true </default> -> false 로변경

 </ schema>

.

.

 <schema>

       <key> xdmcp / Enable </ key>

       <signature> b </ signature>

       <default> false </default> -> true 로 변경

  </ schema>



2. custom.conf 수정(생성)


$ sudo vi /etc/gdm/custom.conf


[daemon]

RemoteGreeter = /usr/lib/gdm/gdm-simple-greeter


[security]

DisallowTCP = false

AllowRemoteRo​​ot = false


[xdmcp]

Enable = true

DisplaysPerHost = 2


[gui]


[greeter]


[chooser]


[debug]


[servers]


3. restart gdm
$ sudo /etc/init.d/gdm restart
  or reboot :)

출처 : http://d.hatena.ne.jp/zqwell-ss/20100812/1281594005


Console Login Failure On CentOS

TechNote/Linux 2012. 11. 1. 11:12 Posted by harim~♥


개발서버에서 init5에서 init3로 변경한뒤 로컬에서 로그인이 되지 않았다. 원격에서는 접근이 가능하다. 이와 같이 리눅스시스템에서 로컬로그인이 되지 않을 경우 다음과 같이 조치를 한다.

대상시스템 : CentOS 5 x64


기존 : session        required    /lib/security/pam_limits.so

변경 : session        required    /lib64/security/pam_limits.so


위와 같이 /etc/pam.d/login파일에서 라이브러리 경로를 기존(32비트)에서 64비트(/lib64)로 변경하면 로컬에서 로그인이 가능하다. 검색결과 레드헷계열의 리눅스에서 발생하는 문제로 확인된다.

우분투세미나발표자료

TechNote/Linux 2012. 8. 21. 22:52 Posted by harim~♥

한국우분투사용자모임 7월 세미나 발표자료입니다.

오픈소스 가상화 툴인 Proxmox 툴 관련 발표영상입니다.


http://www.youtube.com/watch?v=hxogRfSdO40&feature=youtube_gdata_player







발표자료 : http://goo.gl/6Zq5T

Proxmox.pdf


참고자료 : 

IBM 가상화기술백서 

IBM가상화 기술백서.pdf


정보통신기술협회- 클라우드 서비스와 가상화 기술

정보통신기술협회- 클라우드 서비스와 가상화 기술.pdf


한국 통신망 운용관리 학술대회

한국 통신망 운용관리 학술대회.pdf


한국 정보기술 학회 - 리눅스 기반 오픈 소스 서버 가상화 기술 비교

리눅스 기반 오픈 소스 서버 가상화 기술 비교.pdf




 

'TechNote > Linux' 카테고리의 다른 글

Console Login Failure On CentOS  (0) 2012.11.01
우분투세미나발표자료  (0) 2012.08.21
[Linux] Using X-Window Forwarding on M$ Windows  (0) 2012.04.19
I've got VPS  (0) 2012.04.17
How to install Bt878 on Ubuntu...  (0) 2012.04.05

[Linux] Using X-Window Forwarding on M$ Windows

TechNote/Linux 2012. 4. 19. 16:02 Posted by harim~♥

host1free.com을 통해 무료로 VPS서비스를 받고 나름 분주하다. 노트북을 반납한 뒤로 모든 자료를 클라우드화 하여 이곳 저곳에 분산저장 하긴했는데.. 전산쟁이다 보니 아무데서나 '내 컴퓨터' 처럼 작업할 공간이 필요하던 터에 무료VPS라니 +_+ 기쁘지 아니한가!!


CentOS 5 기반으로 제공되는 무료 서비스라서 RPM기반의 OS를 오랜만에 다룰 수 있다는 매력도 있고. 여러모로 좋다.


다만, 난 고수가 아니므로.. 모든작업을 터미널을 통해서 할 수만은 없기에 X-Window용 어플리케이션들을 원격으로 실행시킬 수 있는 방법을 검색하여 아래와 같이 정리하였다. 리모트로 화면을 갖고 오는 것 보다 오히려 깔끔할 수도 있긴한 듯.


담번엔 원격으로 화면을 갖고 오도록 설정을 해놓고 땡겨 써야겠군.



1. Download Xming + PuTTY Portable

link : http://www.scrc.umanitoba.ca/doc/tutorial/T19_3a_xmingputty.htm


Putty가 구버전이지만 사용상 문제 없다. 


2. Server Configulation


#vi /etc/ssh/sshd.conf


아래부분을 주석을 해제하고 yes로 변경한다

#X11Forwarding no

-> X11Forwarding yes


#/etc/init.d/sshd restart


3. PuTTY Configuraltion 

  3-1. Configure Session

  • Host Name (or IP address) : Server's IP
  • Port : 22
  • Connection type : SSH
  • Saved Session : Specific Name(Yours') -> Click 'Save'


  3-2. Configure X11 (Connection - SSH - X 11)

  • Enable X11 fowarding : check
  • X display location : localhost:0


4. Run PuTTY 

Double click saved session(yourss) or click open.


Run apps.






ps : 해외&원격 이라 실행 및 결과에 대한 출력(반응)이 .. 느리다.. 많이.. 느리다.. ㅡㅜ







'TechNote > Linux' 카테고리의 다른 글

우분투세미나발표자료  (0) 2012.08.21
[Ubuntu] 2012년 7월 우부투 세미나 발표 자료  (0) 2012.07.28
I've got VPS  (0) 2012.04.17
How to install Bt878 on Ubuntu...  (0) 2012.04.05
[Ubuntu] How to Create Win7 Bootable USB on ubuntu  (4) 2012.03.09

I've got VPS

TechNote/Linux 2012. 4. 17. 20:46 Posted by harim~♥

무료로 분양받은 VPS 서버 +_+

센트OS 기반이네.. 졸지에 레뎃 쓰게 되는군요 으흐흐흐... 



Promotion of Host1Free.com

How to install Bt878 on Ubuntu...

TechNote/Linux 2012. 4. 5. 15:32 Posted by harim~♥

중고로 8천원 주고산 Vast Pci TV카드를 잘 쓰다가 컴퓨터에 문제가 생겨(윈도가 깨져서) 우분투를 설치하는 과정에서 TV 카드때문에 삽질을..

포럼 :

http://www.ubuntu.or.kr/viewtopic.php?f=20&t=1074


중요한 대목

options bttv bttv_gpio=1 gpiomask=0x0f audiomux=1,0x0f,0,0,0x0f tuner=11


첨엔 화면만 나오다가.. 한참 삽질하다보니 -_-a tv 카드의 라인일을 빼놓고 난리를 치고.. 출근 후 아내가 컴터를 리붓한담 안나온다 해서.. 컴 뜯어 슬롯 옮기기..


1. module 확인

Vast PCI TV는 Bt878 칩셋을 쓴다.

harim@house:~$ lsmod |grep bttv

bttv                  111669  1 

v4l2_common            15431  5 tuner,tvaudio,tda7432,msp3400,bttv

videodev               34361  7 tuner,tvaudio,tda7432,msp3400,bttv,v4l2_common

ir_common              38875  1 bttv

videobuf_dma_sg        10782  1 bttv

videobuf_core          16356  2 bttv,videobuf_dma_sg

btcx_risc               3624  1 bttv

tveeprom               11102  1 bttv

i2c_algo_bit            5028  2 bttv,nouveau

위와 같이 bttv 칩셋이 올라온것을 확인할 수 있다. 
만약 칩셋이 검색되지 않는다면

harim@house:~$ sudo modprobe bttv


2. tvtime설치

harim@house:~$ sudo apt-get isntall tvtime

설치과정에서 주사방식(NTSC)과 TV입력(케이블/공중파 등)을 설정하는 부분이 나온다.

3. tvtime 실행
본인은 Composite 1로 입력을 설정했다. Television, Composite 1,2,3 및 S-Video 입력등이 존재한다(카드에 따라 상이 할 수 있는 듯)

실행하면 화면은 나오는데 소리가 나오지 않으며, tvtime상에서 볼륨조절을 하게되면 볼륨을 컨트롤 할 수 없다.. 류의 메세지가 나온다.

4. /etc/modprobe.d/ 설정추가
harim@house:~$ sudo vi /etc/modprobe.d/vast_pci_tv
위와 같이 임의의 파일을 생성하고 
options bttv bttv_gpio=1 gpiomask=0x0f audiomux=1,0x0f,0,0,0x0f tuner=11
라고 작성한 뒤 저장 후 리붓

5. .tvtime 권한 설정
어쩐일인지.. 위와 같이 설정하고 재부팅을 하면 tvtime이 실행이 안되는데, 이유는 위의 설정을 통해 홈디렉토리의 .tvtime/ 디렉토리가 root 소유로 바뀐다. 
harim@house:~$ tvtime --input==1
tvtime 1.0.2(을)를 실행합니다.
/etc/tvtime/tvtime.xml로 부터 설정 읽음
I/O warning : failed to load external entity "/home/harim/.tvtime/tvtime.xml"
I/O error : Permission denied
I/O error : Permission denied
/home/harim/.tvtime/tvtime.xml의 소유자를 변경할 수 없음: 허가 거부.
I/O error : Permission denied
I/O error : Permission denied
harim@house:~$ ls -la |grep .tvtime
drwx------  2 root  root  4096 2012-04-05 15:03 .tvtime

따라서
harim@house:~$ sudo chown -R harim:harim .tvtime/

와 같이 변경해준뒤 재실행 한다. 




UNetBootIn 이라는 훌륭한 녀석이 있었지만.. Linux 배포본이외의 ISO는 잘 못 굽는 듯하다. 구글링을 해보니 특정버전에서(949)만 된다고 했는데 그것도 안먹히고..

그래서 ... WinUSB 를 소개한다.

sudo add-apt-repository ppa:colingille/freshlight
sudo apt-get update
sudo apt-get install winusb




or

sudo winusb --format <iso path> <device>

sudo winusb --install <iso path> <partition>
           (for formatted USB)



2.25일 제 발표자료입니다. "오픈소스 방화벽 소개와 활용"


부족한 발표 경청해주신 포럼 여러분께 감사를 :-)