Belajar Array Pada Bahasa Java part 1

1. Buat program dengan tipe java

2. int i merupakan deklarasi i sebagai interger
3. Kemudian kita buat array dengan nama dataku dengan jumlah 5 array
4. for merupakan untuk perintah looping pada program
5. i=0 berarti sama saja i tidak mempunyai nilai
6. nilai i kurang dari dataku
7. i akan berbentuk angka
8. Math.random untuk memunculkan angka dengan nilai 0.0XX x 100 = XX
9. dataku dikeluarkan dengan menambah angka 1
10. Sebenarnya dataku merupakan array 0-4 atau kurang dari 5
11. dengan program i+1 dataku yang semula 0-4 angka 0+1 dan hasilnya angka 1 dan seterusnya bisa di lihat pada hasil program.


How To Make Repository Local Using Ubuntu Server


id.archive.ubuntu.com
  • dl2.foss-id.web.id atau 125.160.17.22
  • kambing.ui.ac.id atau 152.118.24.30


  • 1. apt-get install debmirror

    2. arch=i386

    3. arch=amd64

    4. First, Install Apache

    5. Buat link statik antara download repository ke Web. Misalkan untuk repo-13.04

    6. # mkdir /var/www/ubuntu
        # mount --bind /var/data/repository/repo-13.04 /var/www/ubuntu

    # mkdir /var/www/ubuntu-9.10
    # mkdir /var/www/ubuntu-10.04
    # mkdir /var/www/ubuntu-10.10
    # mkdir /var/www/ubuntu-11.04
    # mkdir /var/www/ubuntu-11.10
    # mkdir /var/www/ubuntu-12.04
    # mkdir /var/www/ubuntu-12.10
    # mkdir /var/www/ubuntu-13.04

    # mount --bind /var/data/repository/repo-9.10 /var/www/ubuntu-9.10
    # mount --bind /var/data/repository/repo-10.04 /var/www/ubuntu-10.04
    # mount --bind /var/data/repository/repo-10.10 /var/www/ubuntu-10.10
    # mount --bind /var/data/repository/repo-11.04 /var/www/ubuntu-11.04
    # mount --bind /var/data/repository/repo-11.10 /var/www/ubuntu-11.10
    # mount --bind /var/data/repository/repo-12.04 /var/www/ubuntu-12.04
    # mount --bind /var/data/repository/repo-12.10 /var/www/ubuntu-12.10
    # mount --bind /var/data/repository/repo-13.04 /var/www/ubuntu-13.04

    # crontab -e
    0 22 * * * /usr/local/bin/mirrorbuild.sh

    # /etc/init.d/cron restart

    vi /etc/apt/sources.list.untuk-var-data-repo

    Ubuntu 9.10
    -----------------------------------------------------------------------------------------------------------------
    deb file:///var/data/repository/repo-9.10/ karmic main multiverse restricted universe
    deb file:///var/data/repository/repo-9.10/ karmic-updates main multiverse restricted universe
    deb file:///var/data/repository/repo-9.10/ karmic-security main multiverse restricted universe
    deb file:///var/data/repository/repo-9.10/ karmic-backports main multiverse restricted universe
    deb file:///var/data/repository/repo-9.10/ karmic-proposed main multiverse restricted universe

    Ubuntu 10.4
    -----------------------------------------------------------------------------------------------------------------
    deb file:///var/data/repository/repo-10.4/ lucid main multiverse restricted universe
    deb file:///var/data/repository/repo-10.4/ lucid-updates main multiverse restricted universe
    deb file:///var/data/repository/repo-10.4/ lucid-security main multiverse restricted universe
    deb file:///var/data/repository/repo-10.4/ lucid-backports main multiverse restricted universe
    deb file:///var/data/repository/repo-10.4/ lucid-proposed main multiverse restricted universe

    Ubuntu 10.10
    -----------------------------------------------------------------------------------------------------------------
    deb file:///var/data/repository/repo-10.10/ maverick main multiverse restricted universe
    deb file:///var/data/repository/repo-10.10/ maverick-updates main multiverse restricted universe
    deb file:///var/data/repository/repo-10.10/ maverick-security main multiverse restricted universe
    deb file:///var/data/repository/repo-10.10/ maverick-backports main multiverse restricted universe
    deb file:///var/data/repository/repo-10.10/ maverick-proposed main multiverse restricted universe

    Ubuntu 11.04
    -----------------------------------------------------------------------------------------------------------------
    deb file:///var/data/repository/repo-11.04/ natty main multiverse restricted universe
    deb file:///var/data/repository/repo-11.04/ natty-backports main multiverse restricted universe
    deb file:///var/data/repository/repo-11.04/ natty-proposed main multiverse restricted universe
    deb file:///var/data/repository/repo-11.04/ natty-security main multiverse restricted universe
    deb file:///var/data/repository/repo-11.04/ natty-updates main multiverse restricted universe

    Ubuntu 11.10
    -----------------------------------------------------------------------------------------------------------------
    deb file:///var/data/repository/repo-11.10/ oneiric main multiverse restricted universe
    deb file:///var/data/repository/repo-11.10/ oneiric-backports main multiverse restricted universe
    deb file:///var/data/repository/repo-11.10/ oneiric-proposed main multiverse restricted universe
    deb file:///var/data/repository/repo-11.10/ oneiric-security main multiverse restricted universe
    deb file:///var/data/repository/repo-11.10/ oneiric-updates main multiverse restricted universe

    Ubuntu 12.04
    -----------------------------------------------------------------------------------------------------------------
    deb file:///var/data/repository/repo-12.04/ precise main multiverse restricted universe
    deb file:///var/data/repository/repo-12.04/ precise-backports main multiverse restricted universe
    deb file:///var/data/repository/repo-12.04/ precise-proposed main multiverse restricted universe
    deb file:///var/data/repository/repo-12.04/ precise-security main multiverse restricted universe
    deb file:///var/data/repository/repo-12.04/ precise-updates main multiverse restricted universe

    Ubuntu 12.10
    -----------------------------------------------------------------------------------------------------------------
    deb file:///var/data/repository/repo-12.10/ quantal main multiverse restricted universe
    deb file:///var/data/repository/repo-12.10/ quantal-backports main multiverse restricted universe
    deb file:///var/data/repository/repo-12.10/ quantal-proposed main multiverse restricted universe
    deb file:///var/data/repository/repo-12.10/ quantal-security main multiverse restricted universe
    deb file:///var/data/repository/repo-12.10/ quantal-updates main multiverse restricted universe

    Ubuntu 13.04
    -----------------------------------------------------------------------------------------------------------------
    deb file:///var/data/repository/repo-13.04/ raring main restricted universe multiverse
    deb file:///var/data/repository/repo-13.04/ raring-backports main multiverse restricted universe
    deb file:///var/data/repository/repo-13.04/ raring-proposed main multiverse restricted universe
    deb file:///var/data/repository/repo-13.04/ raring-security main multiverse restricted universe
    deb file:///var/data/repository/repo-13.04/ raring-updates main multiverse restricted universe

    referensi : https://help.ubuntu.com/community/Repositories/CommandLine

    How to Configure NTP Server Using Ubuntu

    Assallamualaikum... NTP Server is protocol in the network to doing synchronization of the clock in a computer system and network.

    1. Enter to the root mode



    2. Type apt-get install ntp to install NTP Server to the Ubuntu
    3. After that, edit ntp.conf in the directory etc

     4. Remove hastag in the word server 0.id.pool.ntp.org like the picture below
    if you use IP DNS you can type server IP DNS

     5. Add nomodify notrap

    6. And you can check with ntpq -p


    NTP use port com UDP No 123. The NTP Project conducts Research and Development in NTP and produces the Official Reference Implementation of NTP along with the Implementation Documentation. Background information about NTP, along with briefings and a bibliography, are available at the Network Time Synchronization Project Page.

    Pengikut