|
It is currently Tue Dec 01, 2009 3:11 am
|
View unanswered posts | View active topics
| Welcome |
|
|
Welcome to LABORATS for TEKNIK ELEKTRO |
 |
|
 |
|
| Author |
Message |
|
udienz
|
Post subject: ada yang mau ngetes program sayah? Posted: Thu Jul 17, 2008 12:18 am |
| Celurut |
 |
Joined: Tue Jan 01, 2008 4:19 pm Posts: 268 Location: di depan rumah
|
ada? berikut programnya
#!/bin/bash # Using for scanning debian package, and build own repository # please move *.deb package to pool directory # Copyright (c) 2008 by Mahyuddin Susanto aka udienz # udienz@ubuntu.com http://udienz.immteknik.org DPKG=/usr/bin/dpkg-scanpackages
# cek dpkg nya if test -e $DPKG; then # this is most important :p echo "Debian/Ubuntu scanning packages for own repository" echo "Use Your Own Risk" else echo "Currently, package dependency is not installed on your system, please install first" echo "using apt-get install dpkg-dev" exit 1 fi
echo "whese is the local directory who have a local package?" read BASE
if test -d $BASE/pool; then EXISTS="yes" else echo "it seems you don't have pool directory, create first!" exit 1 fi
echo "please insert your distro name? ie gutsy" read BUILD
echo "please insert your section name? ie private/non-free" read SERI
# checking direcoty, if exits it will jump to another proses if test -d $BASE/dists; then EXISTS="yes" else mkdir $BASE/dists fi
if test -d $BASE/dists/$BUILD; then EXISTS="yes" else mkdir $BASE/dists/$BUILD fi
if test -d $BASE/dists/$BUILD/$SERI; then EXISTS="yes" else mkdir $BASE/dists/$BUILD/$SERI fi
# hm... just i386 eh! if test -d $BASE/dists/$BUILD/$SERI/binary-i386; then EXISTS="yes" else mkdir $BASE/dists/$BUILD/$SERI/binary-i386 fi
# pindah ke direktory yang ada paketnya cd $BASE
echo "please insert location at directory wehre it scanned, starting with pool" echo "if you want scan at pool direcory just wrote pool" read SOURCE
#lets scan the packages! $DPKG $SOURCE /dev/null > Packages
# compress nih! gzip -9c Packages > Packages.gz bzip2 -9c Packages > Packages.bz2
# pindah kan ke dir dists je... mv Packages dists/$BUILD/$SERI/binary-i386/ mv Packages.gz dists/$BUILD/$SERI/binary-i386/ mv Packages.bz2 dists/$BUILD/$SERI/binary-i386/
find . -type f -print0 | xargs -0 md5sum > MD5SUM
exit 0
_________________ plih susah cri kerja pa susah dpt gelar?
|
|
|
|
 |
|
udienz
|
Post subject: Posted: Thu Jul 17, 2008 12:21 am |
| Celurut |
 |
Joined: Tue Jan 01, 2008 4:19 pm Posts: 268 Location: di depan rumah
|
ini juga...
#!/bin/bash # created by Mahyuddin Susanto <udienz@ubuntu.com> # please give this file exsecution mode # sudo chmod +x this_file.sh # i asumsed you run this file at /home/mirror/ # type $ man debmirror for more information about debmirror
MIR=/usr/bin/debmirror if test -e $MIR; then # this is most important :p echo "Debian/Ubuntu scanning packages for own repository" echo "Created by Mahyuddin Susanto aka udienz@ubuntu.com" echo "Use Your Own Risk" else echo "Currently, package dependency is not installed on your system, please install first" echo "using apt-get install debmirror" exit 1 fi
# Server, lets declare your target server, you can add your nearest ubuntu mirror like jp.archive.ubuntu.com SERVER=archive.ubuntu.com
# tellme where root server have ubuntu mirror, you can insert like: ubuntu, pub/ubuntu depends your server # example: ubuntu mirror at foss-id like http://dl2.foss-id.web.id/ubuntu of course you can type ROOT=ubuntu ROOT=ubuntu
# What's your method to use mirroring? you can use http, ftp, hftp, rsync method METHOD=http
# let's discuss about release ubuntu, ubuntu have code name release like wathy, breezy, dapper, edgy, feisty, gutsy, hardy, intrepid # in this case you can mirroring release ubuntu more than one release, # or you can mirroring update package, security package, proposed package # ex: $release-security so you can type hardy,hardy-updates,hardy-security,hardy-backports,hardy-proposed RELEASE=intrepid,intrepid-updates,intrepid-security,intrepid-backports,intrepid-proposed
# section, hm... no more information here :D # ubuntu section is main, restricted, universe, multiverse # but you can add more section like debian-installer on the section SECTION=main,restricted,universe,multiverse,main/debian-installer,restricted/debian-installer,universe/debian-installer,multiverse/debian-installer
# architecture... hm.. what architecture fo you want to mirroring? i386 (32bit), amd64 (64bit, include IA64), sparc or powerpc? ARCHITECTURE=i386,amd64 #just it?
# okey next you must save mirror file to your directory, but you must declare on here. i save my mirror at /media/mirror/ubuntu TARGET=ubuntu
if test -d `pwd`/ubuntu; then EXISTS="yes" else echo "it seems you don't have ubuntu directory, create first!" exit 1 fi
# hmm.... do you cannocted under proxy? if yes you must add --proxy=http://you-name:your_passwd@url:port
debmirror -m --passive \ --host=$SERVER \ --root=$ROOT \ --method=$METHOD \ --progress \ --dist=$DISTRO \ --section=$SECTION \ --arch=$ARCHITECTURE \ $TARGET \ --nosource --getcontents
# if you want to mirroring both of binary package and source you can delete --nosource, i'm not this option because my disk is limiitted. # and if you don't want to remove previous repositories you can add --nocleanup option # if you get error messages about gpg files maybe you forget to add gpg ubuntu archive as trusted keys :D # gpg --keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg --export | gpg --no-default-keyring --keyring trustedkeys.gpg --import # note: remember your free space and bandwidth :D
_________________ plih susah cri kerja pa susah dpt gelar?
|
|
|
|
 |
|
udienz
|
Post subject: Posted: Thu Jul 17, 2008 9:44 pm |
| Celurut |
 |
Joined: Tue Jan 01, 2008 4:19 pm Posts: 268 Location: di depan rumah
|
|
sombong? yah baru gitu ajah di bilang sombong... padahal pengen berbagi...
apa aku ga usah posting lagi?
nanti kalo ada temen2 yang bingung soal xxx apa aku hanya diam saja? kalo aku bilang "aku bisa dan sini tak bantu" nanti dibilang sombong... capek deh...
kalo mau sombong kenapa juga harus disini.. di sinikan mau berbagi
_________________ plih susah cri kerja pa susah dpt gelar?
|
|
|
|
 |
|
Riandi
|
Post subject: Posted: Fri Jul 18, 2008 1:13 pm |
| Cindil |
 |
Joined: Mon Mar 03, 2008 11:14 pm Posts: 117 Location: WondoBoso, keliling JATIM
|
|
G kug g sombong, udin kan cakeb, baek hati, suka menolong, byk pacarnya pula...sayangnya skrg udh dtinggalin para kekasihnya....AGAGAGAGAGAGAGAGA
|
|
|
|
 |
|
evan
|
Post subject: sombong Posted: Fri Jul 18, 2008 1:15 pm |
Joined: Thu Jan 24, 2008 7:00 pm Posts: 29
|
sombong........
aku juga punya ni buwat kamu din..........
rumus pendekatan cinta.....

|
|
|
|
 |
|
priashada
|
Post subject: Posted: Fri Jul 18, 2008 7:10 pm |
| Tikus |
 |
Joined: Tue Jan 01, 2008 4:22 am Posts: 463 Location: GUNUNG MERAPI
|
|
weh.. si udin ndeketin yang mana tuh... yang cowok pa yang cewek
_________________ ___*KEJAR MASA DEPAN MU*___
|
|
|
|
 |
|
udienz
|
Post subject: Posted: Fri Jul 18, 2008 8:38 pm |
| Celurut |
 |
Joined: Tue Jan 01, 2008 4:19 pm Posts: 268 Location: di depan rumah
|
Riandi wrote: G kug g sombong, udin kan cakeb, baek hati, suka menolong, byk pacarnya pula...sayangnya skrg udh dtinggalin para kekasihnya....AGAGAGAGAGAGAGAGA
wakakakakak ngelamak kon iki le....
_________________ plih susah cri kerja pa susah dpt gelar?
|
|
|
|
 |
|
udienz
|
Post subject: Re: sombong Posted: Fri Jul 18, 2008 8:39 pm |
| Celurut |
 |
Joined: Tue Jan 01, 2008 4:19 pm Posts: 268 Location: di depan rumah
|
evan wrote: sombong........
aku juga punya ni buwat kamu din..........
rumus pendekatan cinta.....
[url=http://www.[sensor host]/uploads/get/468068][img]http://www.[sensor%20host]/storage/t115/94143TuPiK_s_1942_.jpg[/img][/url]
biuh.... jadi inget masa lalu...
loh itu bukane dining ta? kan jakete dining?
_________________ plih susah cri kerja pa susah dpt gelar?
|
|
|
|
 |
|
priashada
|
Post subject: Posted: Sat Jul 19, 2008 6:00 am |
| Tikus |
 |
Joined: Tue Jan 01, 2008 4:22 am Posts: 463 Location: GUNUNG MERAPI
|
|
MASAK DINING SEKURUS ITU,,,,,HEHEHEHE AYOO SOPO ITUYA DIBALAKANG KU
_________________ ___*KEJAR MASA DEPAN MU*___
|
|
|
|
 |
|
blackmarlincode
|
Post subject: Posted: Sun Jul 20, 2008 10:32 am |
| Tikus |
 |
Joined: Tue Jan 01, 2008 11:19 am Posts: 317 Location: Manado, Sulawesi Utara
|
|
Gak donk skrip-e..
Kasi #comment (line ini untuk apa) disetiap line source code dunk.. bahasa Indonesiah ajah..biyar yg laen bs ngerti juga..
2 thumbs deh om Udiens ini ahli bikin script, klo ane masi dalam tahap copas..
_________________ ..Indonesia Timur.. Here I come..
|
|
|
|
 |
|
udienz
|
Post subject: Posted: Sun Jul 20, 2008 6:28 pm |
| Celurut |
 |
Joined: Tue Jan 01, 2008 4:19 pm Posts: 268 Location: di depan rumah
|
|
hendro...
# itu untuk komentar, kecuali di baris pertama (#!/bin/bash) itu artinya skrip di bawah ini di eksekusi dengan program yang ada di /bin/bash, bisa juga di isi dengan /bin/sh, /bin/perl atau apalah...
sebenere pengen bahasa indo, itu critane bikin ini gara2 ada request dari temen [0] untuk buatin script untuk mirror ubuntu nah dari pada hanya dia yang tau mendingan tak posting di sini [1]. oh iya skript di atas itu untuk membuat database program debian/ubuntu. ini berguna untuk file2 yang habis kita dongload dari internet dan memenejnya
sebenere sih aku juga skrip kiddies aku kan cuma ikut gaya penulisan standar saja, malah aku belum menguasai satu pun bahasa pemrograman lho...!! hehehe
[0] : ubuntu.nad.go.id
[1] : laborats
_________________ plih susah cri kerja pa susah dpt gelar?
|
|
|
|
 |
|
LandZ
|
Post subject: Re: ada yang mau ngetes program sayah? Posted: Mon Sep 01, 2008 11:56 am |
Joined: Wed Jan 09, 2008 1:14 pm Posts: 63 Location: Republik Indonesia (baca:endonesia)
|
|
|
|
 |
|
S!LenT k!LLeR
|
Post subject: Re: ada yang mau ngetes program sayah? Posted: Thu Sep 18, 2008 10:06 pm |
| Ratatoulete |
 |
Joined: Wed Jan 02, 2008 4:30 am Posts: 708 Location: deket-deket sini ajah..
|
|
land iki sopo se?? njauk di hisep tah ama si kincai.....
udin dkk tu gak sombong...cuman butuh tempat untuk meluangan isi benaknya saja....
yo to din??
_________________ MuSaFiR CiNtA
|
|
|
|
 |
|
|
 |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|