LABORATS for TEKNIK ELEKTRO
http://laborats.freeforums.org/

ada yang mau ngetes program sayah?
http://laborats.freeforums.org/ada-yang-mau-ngetes-program-sayah-t347.html
Page 1 of 1

Author:  udienz [ Thu Jul 17, 2008 12:18 am ]
Post subject:  ada yang mau ngetes program sayah?

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

Author:  udienz [ Thu Jul 17, 2008 12:21 am ]
Post subject: 

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

Author:  kincai [ Thu Jul 17, 2008 9:06 pm ]
Post subject: 

sombong

Author:  udienz [ Thu Jul 17, 2008 9:44 pm ]
Post subject: 

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

Author:  Riandi [ Fri Jul 18, 2008 1:13 pm ]
Post subject: 

G kug g sombong, udin kan cakeb, baek hati, suka menolong, byk pacarnya pula...sayangnya skrg udh dtinggalin para kekasihnya....AGAGAGAGAGAGAGAGA

Author:  evan [ Fri Jul 18, 2008 1:15 pm ]
Post subject:  sombong

sombong........


aku juga punya ni buwat kamu din..........

rumus pendekatan cinta.....

Image

Author:  priashada [ Fri Jul 18, 2008 7:10 pm ]
Post subject: 

weh.. si udin ndeketin yang mana tuh... yang cowok pa yang cewek

Author:  udienz [ Fri Jul 18, 2008 8:38 pm ]
Post subject: 

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....

Author:  udienz [ Fri Jul 18, 2008 8:39 pm ]
Post subject:  Re: sombong

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?

Author:  priashada [ Sat Jul 19, 2008 6:00 am ]
Post subject: 

MASAK DINING SEKURUS ITU,,,,,HEHEHEHE AYOO SOPO ITUYA DIBALAKANG KU

Author:  blackmarlincode [ Sun Jul 20, 2008 10:32 am ]
Post subject: 

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..

Author:  udienz [ Sun Jul 20, 2008 6:28 pm ]
Post subject: 

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

Author:  wonokairoen [ Mon Aug 11, 2008 5:19 pm ]
Post subject:  Re: ada yang mau ngetes program sayah?

emanggg hebatt bangettt ya si udienzz niiee makin mirip

Image

Author:  LandZ [ Mon Sep 01, 2008 11:56 am ]
Post subject:  Re: ada yang mau ngetes program sayah?

hmmm.....hebat bgt tuh yang bilang sombong,mau baca sukur gamau baca ya jangan ngina dunks

Author:  S!LenT k!LLeR [ Thu Sep 18, 2008 10:06 pm ]
Post subject:  Re: ada yang mau ngetes program sayah?

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??

Page 1 of 1 All times are UTC + 7 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/