Jangan menggunakan apt-get dist-upgrade untuk menangani masalah package kept back.
sudo aptitude
Pada baris paling atas terdapat Upgradable Package (x)
Tekan +
Tekan g dua kali
Jawab pertanyaan debconf jika ada
Enter
Tekan q
Pilih Yes
Selesai.
24 Desember 2010
22 Desember 2010
Ubuntu stuff
Change hostname without restart
contoh:
nama host: namahostbaru
domain: lan.domain.com
contoh:
nama host: namahostbaru
domain: lan.domain.com
sudo echo namahostbaru.lan.domain.com > /etc/hostname
sudo hostname -F /etc/hostname
sudo service hostname restart
pfsense stuff
Cannot pkg_add: file not found / FTP Unable to get ftp:...
setenv PACKAGESITE ftp://ftp.itb.ac.id/pub/FreeBSD-Archive/ports/i386/packages-7.2-stable/Latest/
pkg_add -r
pkg_delete
Install MC
pkg_add -r mc
ee /root/.profile
export PATH=/usr/local/bin
Update /boot/loader.conf
autoboot_delay="1"
#kern.ipc.nmbclusters="0"
hint.apic.0.disabled=1
kern.hz=100
#for squid
kern.ipc.nmbclusters="32768"
kern.maxfiles="65536"
kern.maxfilesperproc="32768"
net.inet.ip.portrange.last="65535"
setenv PACKAGESITE ftp://ftp.itb.ac.id/pub/FreeBSD-Archive/ports/i386/packages-7.2-stable/Latest/
pkg_add -r
pkg_delete
Install MC
pkg_add -r mc
ee /root/.profile
export PATH=/usr/local/bin
Update /boot/loader.conf
autoboot_delay="1"
#kern.ipc.nmbclusters="0"
hint.apic.0.disabled=1
kern.hz=100
#for squid
kern.ipc.nmbclusters="32768"
kern.maxfiles="65536"
kern.maxfilesperproc="32768"
net.inet.ip.portrange.last="65535"
21 Desember 2010
debmirror dengan DVD repo dilanjutkan online repo
Tahapan:
1. Copy repository dari DVD repo Ubuntu 10.04
2. Update repository dari repo Ubuntu
3. Jadwalkan update repo
4. Aktifkan web repo
Persiapan:
sudo apt-get install apache2 debmirror wodim
1. Copy repository dari DVD repo Ubuntu 10.04
2. Update repository dari repo Ubuntu
3. Jadwalkan update repo
4. Aktifkan web repo
Persiapan:
sudo apt-get install apache2 debmirror wodim
1. Copy repository dari DVD repo Ubuntu 10.04
sudo mkdir /repo
sudo mkdir /repo/ubuntu1004sudo mkdir /repo/ubuntu1004sec
wodim --devices
*Untuk setiap DVD:
sudo mount /dev/scd0 /cdrom
sudo cp --recursive --update --verbose /cdrom/pool /repo/ubuntu1004
sudo chmod --recursive u+w /repo/ubuntu1004
perhatikan kalau ada "Input/output error", abort (Ctrl-C)
sudo umount /cdrom
find /repo/ubuntu1004 -type f -size 0 -print0|sudo xargs -0 rm -ftunggu 15 menit (agar DVD drive dingin), ganti DVD, DVD yang belum selesai diletakkan di urutan terakhir untuk diulang.
Ulangi prosedur dari *
Periksa isi cdrom (opsional, kalau kurang kerjaan):
ls /cdrom/dists
ls /cdrom/dists/lucid
ls /cdrom/dists/lucid/main
ls /cdrom/dists/lucid
ls /cdrom/dists/lucid/main
notes:
lucid, stable, unstable
main, restricted, multiverse, universe
binary-amd64 = amd64, binary-i386 = i386, source, debian-installer, dist-upgrader
sudo eject
lucid, stable, unstable
main, restricted, multiverse, universe
binary-amd64 = amd64, binary-i386 = i386, source, debian-installer, dist-upgrader
sudo umount /cdrom
Ganti DVD/CD lain
sudo eject -T
Ulangi prosedur dari *
2. Update repository dari repo Ubuntu
Pilih repo tercepat, bisa menggunakan:
- netselect-apt
- apt-spy
- manual: lihat daftar repo berikut.
- manual: lihat daftar repo berikut.
Daftar repo Lucid Indonesia:
- kambing.ui.ac.id (Telkom, Indosat, OpenIXP, INHERENT)
- dl2.foss-id.web.id (Telkom)
- ftp.itb.ac.id/pub/ubuntu (INHERENT) - root=/pub/ubuntukebo.vlsm.org
- buaya.klas.or.id
- kavalinux.com (OpenIXP)
- id.archive.ubuntu.com: standar instalasi Ubuntu, lebih lambat
- indika.net.id (OpenIXP) - root / bukan /ubuntu
Contoh: Koneksi dengan firstmedia via LinkNet, akses malam,
id.archive.ubuntu.com
kambing.ui.ac.id
test drive:
touch /usr/local/sbin/lucidmirrorbuild.sh
sudo nano /usr/local/sbin/lucidmirrorbuild.sh
#!/bin/bash
export GNUPGHOME=/repo/mirrorkeyring
online-repo=kambing.ui.ac.id
dist-list=lucid,lucid-updates
section-list=main,multiverse,restricted,universe
arch-list=i386,amd64
debmirror --dry-run --no-source --md5sums --passive \
--host=$online-repo --root=/ubuntu --method=http --progress \
--dist=$dist-list --section=$section-list --arch=$arch-list \
/repo/ubuntu1004
Ctrl-X, Y, Enter
touch /usr/local/sbin/lucidsecmirrorbuild.sh
sudo nano /usr/local/sbin/lucidsecmirrorbuild.sh
#!/bin/bashexport GNUPGHOME=/repo/mirrorkeyring
online-repo=kambing.ui.ac.id
dist-list=lucid-security
section-list=main,multiverse,restricted,universe
arch-list=i386,amd64
debmirror --dry-run --no-source --md5sums --passive \
--host=$online-repo --root=/ubuntu --method=http --progress \
--dist=$dist-list --section=$section-list --arch=$arch-list \
/repo/ubuntu1004sec
Ctrl-X, Y, Enter
Key:
gpg --no-default-keyring --keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg --export | gpg --no-default-keyring --keyring trustedkeys.gpg --import
sudo mkdir /repo/mirrorkeyring
gpg --no-default-keyring --keyring repo/mirrorkeyring/trustedkeys.gpg --import usr/share/keyrings/ubuntu-archive-keyring.gpg
Check if result delete all repo, berarti kesalahan perintah debmirror.
Run, tanpa --dry-run:
sudo lucidsecmirrorbuild.sh
Check size folder bertambah:
sudo du -sh /repo/ubuntu1004
Kalau locking: hapus file lock di /repo/ubuntu1004 atau /repo/ubuntu1004sec
sudo du -sh /repo/ubuntu1004
sudo du -sh /repo/ubuntu1004sec
Pantau total harddisk:
df -h
Kalau locking: hapus file lock di /repo/ubuntu1004 atau /repo/ubuntu1004sec
3. Jadwalkan update repo
Edit lucidsecmirrorbuild.sh, ganti online-repo=security.ubuntu.com
Edit lucidmirrorbuild.sh, ganti online-repo=id.archive.ubuntu.com
1 21 * * * /usr/local/sbin/lucidsecmirrorbuild.sh
2 23 * * * /usr/local/sbin/lucidmirrorbuild.sh
4. Aktifkan web repo
sudo chmod --recursive +X /repo/ubuntu1004
sudo chown --recursive www-data:www-data /repo/ubuntu1004
sudo ln -s /repo/ubuntu1004 /var/www/ubuntu1004
sudo chmod --recursive +X /repo/ubuntu1004sec
sudo chown --recursive www-data:www-data /repo/ubuntu1004sec
sudo ln -s /repo/ubuntu1004sec /var/www/ubuntu1004sec
Update apt sources.list
sudo mv sources.list source.list.bak
sudo sensible-editor sources.list
deb http://host/ubuntu1004 lucid main restricted universe multiverse
deb http://host/ubuntu1004/ lucid-updates main restricted universe multiverse
deb http://host/ubuntu1004sec/ lucid-security main restricted universe multiverse
#deb-src http://id.archive.ubuntu.com/ubuntu lucid main restricted universe multiverse
#deb-src http://id.archive.ubuntu.com/ubuntu lucid-updates main restricted universe multiverse
#deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted universe multiverse
catatan:
deb-src jika dibutuhkan bisa di mirror juga, tapi untuk menghemat storage dan bandwidth lebih baik langsung ke official repo, dan di-comment, hanya dibuka jika dibutuhkan karena biasanya jarang.
sudo apt-get update
sudo apt-get upgrade
10 Desember 2010
MySQL (1994 - 2010): Rest In Peace - Now The Fork
Berakhir sebuah era DBMS paling populer di dunia: MySQL, ditandai oleh penolakan Oracle memberikan independensi pada komunitas MySQL pada September 2010.
Kesalahan terbesar MySQL sejak awal adalah menerapkan model bisnis yang tidak sepenuhnya open source: dengan MySQL AB sebagai perusahaan pemilik. MySQL AB kemudian diakuisisi oleh Sun Microsystem pada 26 Februari 2008 senilai 1 miliar dolar. Akuisisi Sun Microsystem masih memberi harapan hidup kepada MySQL, mengingat Sun Microsystem pada dasarnya telah menjadi perusahaan open source dengan berbagai produk mainstream seperti Java, OpenOffice, dsb. Namun Sun tidak dapat memperoleh penghasilan usaha yang memadai sehingga akhirnya dibeli oleh Oracle, raksasa software proprietary, pada 27 Januari 2010.
Jauh sebelum ini, tahun 2005, Oracle telah menghadang MySQL dengan membeli InnoDB (Innobase). InnoDB adalah perangkat lunak penyimpan (storage engine) yang digunakan MySQL untuk database ACID-compliant, yang membuat MySQL dapat disejajarkan dengan RDBMS seperti Oracle dan PostgreSQL. Berbeda dengan perangkat lunak penyimpan milik MySQL: MyISAM yang hanya berfokus pada kecepatan.
Pasca akuisisi Innobase, segera dibangun alternatifnya: XtraDB.
Sejak akuisisi oleh Sun, para developer MySQL telah mulai melakukan forking. Tercatat forking utama:
Pasca akuisisi Oracle, muncul beberapa fork baru:
Kesalahan terbesar MySQL sejak awal adalah menerapkan model bisnis yang tidak sepenuhnya open source: dengan MySQL AB sebagai perusahaan pemilik. MySQL AB kemudian diakuisisi oleh Sun Microsystem pada 26 Februari 2008 senilai 1 miliar dolar. Akuisisi Sun Microsystem masih memberi harapan hidup kepada MySQL, mengingat Sun Microsystem pada dasarnya telah menjadi perusahaan open source dengan berbagai produk mainstream seperti Java, OpenOffice, dsb. Namun Sun tidak dapat memperoleh penghasilan usaha yang memadai sehingga akhirnya dibeli oleh Oracle, raksasa software proprietary, pada 27 Januari 2010.
Jauh sebelum ini, tahun 2005, Oracle telah menghadang MySQL dengan membeli InnoDB (Innobase). InnoDB adalah perangkat lunak penyimpan (storage engine) yang digunakan MySQL untuk database ACID-compliant, yang membuat MySQL dapat disejajarkan dengan RDBMS seperti Oracle dan PostgreSQL. Berbeda dengan perangkat lunak penyimpan milik MySQL: MyISAM yang hanya berfokus pada kecepatan.
Pasca akuisisi Innobase, segera dibangun alternatifnya: XtraDB.
- Percona Server: storage engine XtraDB untuk MySQL (kemudian digunakan oleh forking lain)
Sejak akuisisi oleh Sun, para developer MySQL telah mulai melakukan forking. Tercatat forking utama:
- OurDelta (Arjen Lentz)
- Drizzle (Brian Aker)
- MariaDB (Monty Widenius)
Pasca akuisisi Oracle, muncul beberapa fork baru:
- SkySQL (Ulf Sandberg)
Dengan berakhirnya era MySQL, dan belum ada fork yang dominan, dunia benar-benar kehilangan.
The new frontier: Apache vs Oracle (on Java)
Baru saja mendapat email yang merupakan milestone dunia software (terlampir dibawah).
Hari ini menandai dimulainya perang software baru antara Apache Software Foundation (Apache/ASF) melawan Oracle.
Oracle, baru saja menegakkan posisinya sebagai pesaing Microsoft dengan cara mengakuisisi Sun. Beberapa aspek penting dari akuisisi Sun adalah bahwa Sun merupakan salah satu pemain utama dalam industri open source. Sun memiliki berbagai proyek mainstream opensource, seperti Java, OpenOffice, juga MySQL yang baru dibeli tahun lalu senilai 1 miliar dollar.
Java adalah perangkat lunak yang multi kompleks, yang terdiri atas berbagai komponen untuk berbagai fungsi lintas sistem operasi. Apache (ASF) selama ini merupakan salah satu pendukung utama dari berbagai pengembangan Java, sekaligus anggota dari dewan aristokrat Java: JCP EC.
Sebagai pemilik baru Java, otomatis komando komite tertinggi Java: JCP EC, jatuh ketangan Oracle. Disini Oracle membuat berbagai kebijakan yang dinilai Apache sangat sepihak, sehingga tidak lagi sesuai dengan prinsip-prinsip open source yang dianut oleh Apache. Karena alasan tersebut, hari ini Apache mengumumkan pengunduran diri dari JCP EC.
Implikasi hal ini sangat besar. Berbagai pengembangan Java yang dilakukan oleh Apache tidak mungkin ditinggalkan begitu saja. Apache Tomcat, Ant, Xerces, Geronimo, Velocity dan lebih 100 pengembangan software. Tentunya Apache dapat melakukan 2 hal:
1. forking atas berbagai pengembangan Java tersebut, yang dapat berujung pada forking Java sendiri,
2. membuat produk-produk baru.
Membuat produk baru tentunya bukan hal yang mudah. Jadi kemungkinan paling besar adalah melakukan forking atas Java.
Hal yang sama diperkirakan terjadi pada MySQL, dimana pada saat beberapa programmer MySQL bergabung dengan Oracle, beberapa programmer independen MySQL dikabarkan tengah membuat fork atas MySQL.
Hari ini menandai dimulainya perang software baru antara Apache Software Foundation (Apache/ASF) melawan Oracle.
Oracle, baru saja menegakkan posisinya sebagai pesaing Microsoft dengan cara mengakuisisi Sun. Beberapa aspek penting dari akuisisi Sun adalah bahwa Sun merupakan salah satu pemain utama dalam industri open source. Sun memiliki berbagai proyek mainstream opensource, seperti Java, OpenOffice, juga MySQL yang baru dibeli tahun lalu senilai 1 miliar dollar.
Java adalah perangkat lunak yang multi kompleks, yang terdiri atas berbagai komponen untuk berbagai fungsi lintas sistem operasi. Apache (ASF) selama ini merupakan salah satu pendukung utama dari berbagai pengembangan Java, sekaligus anggota dari dewan aristokrat Java: JCP EC.
Sebagai pemilik baru Java, otomatis komando komite tertinggi Java: JCP EC, jatuh ketangan Oracle. Disini Oracle membuat berbagai kebijakan yang dinilai Apache sangat sepihak, sehingga tidak lagi sesuai dengan prinsip-prinsip open source yang dianut oleh Apache. Karena alasan tersebut, hari ini Apache mengumumkan pengunduran diri dari JCP EC.
Implikasi hal ini sangat besar. Berbagai pengembangan Java yang dilakukan oleh Apache tidak mungkin ditinggalkan begitu saja. Apache Tomcat, Ant, Xerces, Geronimo, Velocity dan lebih 100 pengembangan software. Tentunya Apache dapat melakukan 2 hal:
1. forking atas berbagai pengembangan Java tersebut, yang dapat berujung pada forking Java sendiri,
2. membuat produk-produk baru.
Microsoft vs Oracle, Oracle vs pure opensource developer (Apache, forked MySQL).
May the best prevail....
-----Original Message-----
From: Sally Khudairi [mailto:sk@apache.org]
Sent: 10 Desember 2010 1:10
Subject: The ASF Resigns From the JCP Executive Committee
From: Sally Khudairi [mailto:sk@apache.org]
Sent: 10 Desember 2010 1:10
Subject: The ASF Resigns From the JCP Executive Committee
[also available online at http://s.apache.org/P12]
The Apache Software Foundation has resigned its seat on the Java SE/EE Executive Committee. Apache has served on the EC for the past 10 years, winning the JCP "Member of the Year" award 4 times, and recently was ratified for another term with support from 95% of the voting community. Further, the project communities of the ASF, home to Apache Tomcat, Ant, Xerces, Geronimo, Velocity and nearly a 100 mainstay java components have implemented countless JSRs and serve on and contribute to many of the JCPs technical expert groups.
We'd like to provide some explanation to the community as to why we're taking this significant step.
The recent Java SE 7 vote was the last chance for the JCP EC to demonstrate that the EC has any intent to defend the JCP as an open specification process, and demonstrate that the letter and spirit of the law matter. To sum up the issues at stake in the vote, we believe that while continuing to fail to uphold their responsibilities under the JSPA, Oracle provided the EC with a Java SE 7 specification request and license that are self-contradictory, severely restrict distribution of independent implementations of the spec, and most importantly, prohibit the distribution of independent open source implementations of the spec. Oracle has refused to answer any reasonable and responsible questions from the EC regarding these problems.
In the phrase "fail to uphold their responsibilities under the JSPA", we are referring to Oracle's refusal to provide the ASF's Harmony project with a TCK license for Java SE that complies with Oracle's obligations under the JSPA as well as public promises made to the Java community by officers of Sun Microsystems (recently acquired by Oracle.) This breach of the JSPA was begun by Sun Microsystems in August of 2006 and is a policy that Oracle explicitly continues today. For more information on this dispute, see our open letter to Sun Microsystems (LINK).
This vote was the only real power the Executive Committee has as the governing body of the Java specification ecosystem, and as we indicated previously (LINK) we were looking for the EC to protect the rights of implementers to the degree they are able, as well as preserve the integrity of the JCP licensing structure by ensuring that JCP specifications are able to be freely implemented and distributed. We don't believe this is an unreasonable position - it should be noted that the majority of the EC members, including Oracle, have publicly stated that restrictions on distribution such as those found in the Java SE 7 license have no place in the JCP - and two distinguished individual members of the EC, Doug Lea and Tim Peierls, both have resigned in protest over the same issue (LINKS).
By approving Java SE 7, the EC has failed on both counts : the members of the EC refused to stand up for the rights of implementers, and by accepting Oracle's TCK license terms for Java SE 7, they let the integrity of the JCP's licensing structure be broken.
The Apache Software Foundation concludes that that JCP is not an open specification process - that Java specifications are proprietary technology that must be licensed directly from the spec lead under whatever terms the spec lead chooses; that the commercial concerns of a single entity, Oracle, will continue to seriously interfere with and bias the transparent governance of the ecosystem; that it is impossible to distribute independent implementations of JSRs under open source licenses such that users are protected from IP litigation by expert group members or the spec lead; and finally, the EC is unwilling or unable to assert the basic power of their role in the JCP governance process.
In short, the EC and the Java Community Process are neither.
To that end, our representative has informed the JCP's Program Management Office of our resignation, effective immediately. As such, the ASF is removing all official representatives from any and all JSRs. In addition, we will refuse any renewal of our JCP membership and, of course, our EC position.
# # #
19 November 2009
Kirim file antar server tanpa password
di server1:
ssh-keygen -t rsa
scp ~/.ssh/id_rsa.pub user@server2:~/.ssh/id_rsa_server1.pub
di server2:
cd ~/.ssh
cat id_rsa_server1.pub >> authorized_keys2
rm id_rsa_server1.pub

ssh-keygen -t rsa
scp ~/.ssh/id_rsa.pub user@server2:~/.ssh/id_rsa_server1.pub
di server2:
cd ~/.ssh
cat id_rsa_server1.pub >> authorized_keys2
rm id_rsa_server1.pub

25 September 2009
Instalasi Zend Optimizer di Ubuntu
Versi: Ubuntu JJ, Apache2.2.11, PHP5.2.6-3ubuntu4.2, ZendOptimizer 3.3.9
Download Zend Optimizer:
http://www.zend.com/en/products/guard/downloads
sudo tar zxf ZemdOptimizer-3.3.9-linux-glibc23-i386.tar.gz
sudo cp /ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ZendOptimizer.so /etc/php5/apache2/
sudo sensible-editor /etc/php5/apache2/php.ini
Pada php.ini tambahkan:
zend_extension=/etc/php5/apache2/ZendOptimizer.so
Restart apache: sudo /etc/init.d/apache2 restart
Jalankan phpinfo()
Jika sukses muncul tulisan:
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

Download Zend Optimizer:
http://www.zend.com/en/products/guard/downloads
sudo tar zxf ZemdOptimizer-3.3.9-linux-glibc23-i386.tar.gz
sudo cp /ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ZendOptimizer.so /etc/php5/apache2/
sudo sensible-editor /etc/php5/apache2/php.ini
Pada php.ini tambahkan:
zend_extension=/etc/php5/apache2/ZendOptimizer.so
Restart apache: sudo /etc/init.d/apache2 restart
Jalankan phpinfo()
Jika sukses muncul tulisan:
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
| Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies |

15 Mei 2009
Change Interface Card Names (eth*)
Edit /etc/udev/rules.d/70-persistent-net.rules
Ganti nama eth* sesuai keinginan, misal: eth5
Edit /etc/networking/interface
auto eth5
iface eth5 inet dhcp

Ganti nama eth* sesuai keinginan, misal: eth5
Edit /etc/networking/interface
auto eth5
iface eth5 inet dhcp

14 Mei 2009
Change Interface Card Names (eth*)
Edit /etc/udev/rules.d/70-persistent-net.rules
Ganti nama eth* sesuai keinginan, misal: eth5
Edit /etc/networking/interface
auto eth5
iface eth5 inet dhcp

Ganti nama eth* sesuai keinginan, misal: eth5
Edit /etc/networking/interface
auto eth5
iface eth5 inet dhcp

Langganan:
Postingan (Atom)


