리눅스 팁 & 테크

조회 수 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 Views4211 Votes1
    read more
  2. 리눅스에서 자기 노트북의 모델명이 무엇인지 궁금할때는 dmidecode

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

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

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

    Date2023.10.11 By타조 Views1109 Votes0
    read more
  6. 또 하나의, IT 통계 Site!

    Date2018.11.08 By식혜고양이 Views443 Votes0
    Read More
  7. 젠투 리눅스 설치 가이드

    Date2018.11.07 Bywhjeon Views918 Votes0
    Read More
  8. 아치 리눅스 설치 가이드

    Date2018.11.07 Bywhjeon Views1285 Votes0
    Read More
  9. 앱이미지 샌드박싱. 그리고 유사 프로젝트.

    Date2018.11.04 ByOhnine Views460 Votes0
    Read More
  10. 물리학을 공부하고 싶다면??!

    Date2018.10.27 By식혜고양이 Views559 Votes0
    Read More
  11. DOS용 프로그램을 리눅스 패키지로 만드는 방법

    Date2018.10.21 ByDiablo Views782 Votes0
    Read More
  12. 리눅스에서 타자연습을 하는 최적의 방법

    Date2018.10.17 ByDiablo Views3372 Votes0
    Read More
  13. 오픈소스 게임엔진 : Godot Engine

    Date2018.10.16 By어쩜이럴수가 Views891 Votes0
    Read More
  14. LibreOffice 구버전 설치법

    Date2018.10.09 ByMoordev Views743 Votes0
    Read More
  15. 본고딕 팁

    Date2018.09.29 ByOhnine Views691 Votes0
    Read More
  16. 만자로팁(수정)

    Date2018.09.28 By꼬꼬댁 Views7204 Votes0
    Read More
  17. 또다른 Photoshop 대체 site!

    Date2018.09.13 By식혜고양이 Views693 Votes0
    Read More
  18. 수학,과학 공부를 기초부터 하고 싶다면?

    Date2018.09.09 By식혜고양이 Views728 Votes0
    Read More
  19. 지구 Live Wallpaper(움직이는 배경화면)

    Date2018.09.08 ByBlack_Void Views8207 Votes0
    Read More
  20. 전세계 모든 자료를 보고 싶다면??

    Date2018.09.02 By식혜고양이 Views610 Votes0
    Read More
  21. 생물정보학 분석 Tool

    Date2018.08.31 By식혜고양이 Views400 Votes0
    Read More
  22. 구글에서 무료한글폰트를 풉니다.

    Date2018.08.31 By버디버디 Views1446 Votes0
    Read More
  23. 신기한 검색(?) site!

    Date2018.08.30 By식혜고양이 Views482 Votes0
    Read More
  24. 설계도를 그리고 싶다면??

    Date2018.08.28 By식혜고양이 Views805 Votes0
    Read More
  25. [퍼옴] 안드로이드 스마트폰 루팅하기

    Date2018.08.24 By행복한펭귄 Views1092 Votes0
    Read More
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 ... 47 Next
/ 47
CLOSE