close

Вход

Забыли?

вход по аккаунту

?

HOW TO CREATE A SIMPLE MyDSL APPLICATION - Distro ibiblio

код для вставки
HOW TO CREATE A SIMPLE MyD SL APPLICATIO N
Crea t e d by cliv e s a y fro m th e DSL foru m s
This howto will cover cre a ti n g a simple .dsl file by using apt- get and the
deb 2 d s l script cre a t e d by cbag g e r 0 1 . Ther e are differ e n t met ho d s for
cre a ti n g a mydsl applica tio n, with some being mor e complica t e d tha n
othe r s . We will just stick to the basics her e.
It's impo r t a n t to rem e m b e r that for an applic ation to be a MyDSL
applica tio n it must be able to run on a bas e DSL environ m e n t with no oth e r
applica tio n s installe d. If othe r applica tio n s are nee d e d like the pytho n. u ci,
that mus t be specified in the info file if the applica tion is to be sub mit t e d to
the DSL com m u ni ty.
Let's get star t e d .
First we have to decid e wha t applic a tio n we want to install. For this
exa m p l e we'r e going to install a small simple prog r a m called 'xea r t h ' .
Next we'll nee d to ena ble apt. Do that in the DSL men u as show n below. It's
the next to last item.
Once that has compl e t e d we nee d to apt- get inst all xear t h.
We now have xear t h inst alle d on your syste m . You can type in 'xea r t h ' to
run it and see if it's workin g. If it's workin g, we'r e rea dy for the next ste p.
NOTE: The deb2 d s l script is installe d on your syste m as par t of dsl- dpkg. d sl.
This pack a g e was
installe d whe n you ena bl e d apt- get.
We'r e rea dy to run the script. We will nee d to ope n a xter m session as user
dsl. DO NOT run this script as root. It will not work. You must be use r dsl.
Type in the com m a n d '/usr/bi n/ d e b 2 d s l ' and pres s the < e n t e r > key.
The first thing we nee d to do it ent e r the nam e of our pack a g e . We'll call it
xear t h . d s l . Pres s the < e n t e r > key.
Ente r how you want the applic a tio n to appe a r in the MyDSL men u. Pres s
the < e n t e r > key.
Now we nee d to ent e r the pat h to execu t e the prog r a m . The easies t way to
do this is to open a shell and type 'whe r ei s xear t h '.
You can see her e tha t it looks like it's exec u t e d from /usr/X11R6/bin/xearth.
We'll ent e r this pat h into the deb2 d sl script.
After you've ente r e d the path pres s the < e n t e r > key. The script will now
run and cre a t e your .dsl file. The script uses the files from the /apt/ a r c hiv e s
direc t o r y to cre a t e the applica tio n.
After this has compl et e d you should have an xear t h. d sl file in your /hom e/d s l
direc t o r y. Place this file in a safe place, reboot to a base DSL syste m and
install the file to see if it works!
If you want to submit the file to the DSL com m u ni ty, the r e are thr e e
additio n al steps .
1. cre a t e an .info file with the aut ho r info and any special instr u c tio n s . You
can look at the info
file for othe r applic a tion s for style.
2. Cre a t e a md5s u m file of the applic a tio n. This can be done in a ter mi n al by
typin g 'md5 s u m
xea r t h . d sl > xear t h. m d 5 s u m . t x t '
3. Email the thr e e files to ext e n s i o n s @ d a m n s m a l l l i n u x . o r g .
I hope this was helpful!
Документ
Категория
Без категории
Просмотров
2
Размер файла
50 Кб
Теги
1/--страниц
Пожаловаться на содержимое документа