리눅스 팁 & 테크

조회 수 782 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

DOS용 (타자연습) 프로그램을 /usr/share에 집어넣고 $HOME에 프로그램 데이터를 집어넣을 수 있는 방법을 간략하게 연구해 봤습니다. overlayfs는 root 권한이 있어야지만 사용이 가능해서 unionfs-fuse와 fuse-zip을 써서 프로그램과 프로그램 데이터를 분리했습니다. root가 아닌 일반 유저가 직접 실행하는 쉘 스크립트를 작성하였습니다.


#!/bin/sh


# Command Arguments

zipfile=/usr/share/한컴타자연습-97/htt.zip

dosboxconf=/usr/share/한컴타자연습-97/dosbox.conf

progname=한컴타자연습97

exepath=HTT.exe


# Internal Variables

lower=/tmp/dosbox-launcher/$progname/lower
merged=/tmp/dosbox-launcher/$progname/merged

upper=~/.dosbox-launcher/$progname


fuse-zip -r $zipfile $lower
unionfs -o cow,hide_meta_files $upper=RW:$lower=RO $merged
dosbox -exit \
       -userconf \
       -conf $dosboxconf \
       -conf ~/.config/dosbox-launcher/dosbox-$progname.conf \
       $merged/$exepath
fusermount -u $merged

fusermount -u $lower


이 쉘 스크립트는 그냥 예제일 뿐이므로 실제로 패키지를 만들면 좀 더 잘 만들어야겠죠. 예를 들어서 파이썬으로 만들 수도 있구요. 이 쉘 스크립트를 각각의 DOS 프로그램 패키지에 직접 포함시킬 수도 있고 아니면 dosbox-launcher라는 프로그램으로 분리해서 여러 DOS용 프로그램과 공유할 수도 있다고 봅니다.


제가 구상한 한컴타자연습 97 패키지의 구성을 보여드리겠습니다.


1. /usr/share/한컴타자연습-97/htt.zip


2. /usr/share/한컴타자연습-97/dosbox.conf


3. /usr/bin/hancom_typing_practice-97


dosbox-launcher -zipfile /usr/share/한컴타자연습-97/htt.zip -dosboxconf /usr/share/한컴타자연습-97/dosbox.conf -progname 한컴타자연습97 -exepath HTT.exe


4. /usr/share/applications/hancom_typing_practice-97.desktop


[Desktop Entry]
Type=Application
Name=한컴타자연습 97
GenericName=DOS용 타자연습 프로그램
Comment=DOS용 타자연습 프로그램
Exec=hancom_typing_practice-97

Icon=한컴타자연습-97 # 적당한 아이콘이 없으면 dosbox 아이콘 또는 dos 아이콘을 활용하는 것을 추천


5. /usr/share/icons/hicolor/**x**/apps/한컴타자연습-97.png


  1. 유튜브 프리미엄 우회 결제 - 우크라이나

    Date2023.12.17 ByKevin Views4208 Votes1
    read more
  2. 리눅스에서 자기 노트북의 모델명이 무엇인지 궁금할때는 dmidecode

    Date2023.12.17 ByKevin Views393 Votes1
    read more
  3. 하드웨어 호환성을 확인하고 싶을 때는 linux-hardware.org 를 사용해보세요

    Date2023.11.23 ByKevin Views702 Votes0
    read more
  4. 하모니카 7.0 카카오톡 hidpi 설정하기

    Date2023.11.22 ByKevin Views484 Votes0
    read more
  5. 리브레오피스에서 hwp 사용하기

    Date2023.10.11 By타조 Views1105 Votes0
    read more
  6. 별거아닌 강좌 1 - 터미널에서 압축 해제하기

    Date2021.01.07 By민트초코너무좋아 Views711 Votes0
    Read More
  7. 리눅스용 백신 관련 기사 입니다.

    Date2020.10.04 By재팔 Views716 Votes0
    Read More
  8. 해외 IT News!

    Date2017.10.24 By식혜고양이 Views719 Votes0
    Read More
  9. broadcom bluetooth 문제

    Date2019.12.29 By나코리 Views723 Votes0
    Read More
  10. [질문] onedrive, arkzip 사용에서요~

    Date2018.04.12 By바람곰돌 Views725 Votes0
    Read More
  11. 수학,과학 공부를 기초부터 하고 싶다면?

    Date2018.09.09 By식혜고양이 Views728 Votes0
    Read More
  12. 리듬박스 한글깨질때

    Date2019.11.11 By떠똘2 Views729 Votes0
    Read More
  13. 시간별로 달라지는 바탕화면 배경

    Date2020.05.07 By가벼운게최고 Views730 Votes0
    Read More
  14. Kali Purple 새로운 디펜스 OS

    Date2023.04.06 ByKongS Views732 Votes0
    Read More
  15. LibreOffice 구버전 설치법

    Date2018.10.09 ByMoordev Views743 Votes0
    Read More
  16. data 시각화 tool!

    Date2018.04.11 By식혜고양이 Views749 Votes0
    Read More
  17. usb 리눅스 질문

    Date2018.05.19 Byreg454 Views751 Votes0
    Read More
  18. 요것도 참고 부탁드려요!

    Date2017.11.22 By식혜고양이 Views754 Votes0
    Read More
  19. 근로계약서를 잘 작성하고 싶다면?!

    Date2017.11.29 By식혜고양이 Views754 Votes0
    Read More
  20. 전세계 Radio를, 무료로 듣고 싶다면??

    Date2019.07.11 By식혜고양이 Views754 Votes0
    Read More
  21. 한글 무료 서체를 찾는다면?

    Date2018.03.08 By식혜고양이 Views770 Votes0
    Read More
  22. 하모니카 라이브 이미지 비밀번호와 로그인 아이디 공개.

    Date2019.09.24 By타기치 Views770 Votes0
    Read More
  23. DOS용 프로그램을 리눅스 패키지로 만드는 방법

    Date2018.10.21 ByDiablo Views782 Votes0
    Read More
  24. 리눅스 커맨드 라인 텍스트 컬러를 내마음대로 설정하는 방법

    Date2018.05.08 ByPEACH Views785 Votes0
    Read More
  25. Midjourney 6.0 text generation

    Date2023.12.25 ByKevin Views787 Votes0
    Read More
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 ... 47 Next
/ 47
CLOSE