Please subscribe to RSS Feed! :)


Apa itu MongoDB? Itu loh, engine basis data non-relational (atau lagi ngetren dengan sebutan NoSQL) yang schema-free dan: *
Lalu, apa yang membuat MongoDB istimewa? **
* & ** Dikutip dari presentasinya Mathias Stearn dari 10gen.
Saya sendiri belum pernah mencoba MongoDB ini, dan tertarik untuk mencoba setelah mendengar podcast TemanMacet.com eps #49. Karena MongoDB sudah ada di repo Ubuntu 10.04, caranya install juga jadi gampang. Kalau lebih suka GUI silakan pake synaptic tapi kalau mau sedikit bermain-main di terminal silakan buka terminalnya, lalu ketik:
sudo apt-get install mongodb
Instalasi selesai, mari mencoba mengakses shell mongodb dengan perintah:
mongo
Oops, malah errot
mongos: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory
Ternyata ada pustaka yang kurang, artinya kita harus install paket tambahan dan karena pustaka libmozjs ini adanya di pake xulrunner-dev, marilah memasang paket tersebut, kembali ke teminal
sudo apt-get install xulrunner-dev
Kemudian buat sebuah symbolic link ke /usr/lib:
sudo ln -s /usr/lib/xulrunner-1.9.2.6/libmozjs.so /usr/lib/
Terakhir hidupkan ulang layanan mongodb:
sudo service mongodb start
Coba lagi akses shell si mongodb
mongo
Credit to sunng

Yesterday i installed codecs etc, that allowed me to play mp3 and do various other stuff and i said i would mention what apps i was using. Todays post will go through a few that i will use and how to install others that i find useful
Music
Playing music is something i do quite often, it’s nice to listen to some tunes while surfing or working and my music player of choice is Rhythmbox, you’ll find it in the menu as it’s one of the apps that’s installed by default. It’s looks loosely resemble itunes, but that’s where the similarity ends. **One thing that i will mention is that, if you’ve not already installed the ubuntu-restricted-extras, rhythmbox will prompt you to install codecs to play your media**
Surfing
The default web broweser is Firefox, works fine, but a few people i know have suggested i try Google Chrome As i’m running a 32bit version of Lucid i downloaded the 32bit Deb, there are multiple ways to install a .deb [a packaged file] but i simply used sudo dpkg -i filename.deb and yes it does seem faster
Photos
The new default photo manager with Ubuntu is now a app called Shotwell, i love this app, it’s clean, simple to use and does actually work [for all my needs] Looking at the Shotwell page the version that is supplied with ubuntu is not the latest version, not a problem as i’m sure it will upgraded, but i want it now as it has a better support for RAW files which some of my photos are. Right so how to i get the latest version? I’ve read about PPA’s on the internet so was wondering if Shotwell has one, hell yeah baby
$ sudo add-apt-repository ppa:yorba/ppa
$ sudo apt-get update
$ sudo apt-get install shotwell
I also like to use certain apps that arn’t installed by default, i wondered why apps weren’t installed and it basically all comes down to the fact that on the Live cd [i'll come to that in a bit] there isn’t enough space. But it’s simple enough to install, from command line
sudo apt-get install miro vlc leafpad gftp <insert anything else you want here>
That was just a very brief intro to apps, there are hundreds if not thousands more…..now it your time to go play and take a look at what’s available.
Tomorrow i’m going to step away from the laptop and find out a little more about the company that produces ubuntu, Canonical


Mastershaper adalah sebuah web-based bandwidth management yang cukup sederhana, cukup mudah digunakan apabila tidak punya cukup waktu baca-baca manual tc atau htb untuk management bandwidth dadakan
berikut adalah cara instalasi yang saya lakukan di ubuntu. pada kasus ini ubuntu yang saya gunakan adalah ubuntu 8.04.4 LTS.
install dulu lampp server
admin@gateway:~$ sudo su
root@gateway:/home/admin$ apt-get install apache2 php5-mysql php5-pear mysql-server
download dan ekstrak mastershaper versi 0.44
root@gateway:/home/admin$ cd /opt
root@gateway:/opt$ wget http://www.mastershaper.org/files/mastershaper_0.44.tar.bz2
root@gateway:/opt$ tar xvjf mastershaper.044.tar.bz2
root@gateway:/opt$ mv MasterShaper-0.44 mastershaper
install paket pendukung phplayersmenu
root@gateway:/opt$ cd /opt/mastershaper/htdocs
root@gateway:/opt/mastershaper/htdocs$ wget http://easynews.dl.sourceforge.net/sourceforge/phplayersmenu/phplayersme...
root@gateway:/opt/mastershaper/htdocs$ tar xvzf phplayersmenu-3.2.0-rc.tar.gz
root@gateway:/opt/mastershaper/htdocs$ mv phplayersmenu-3.2.0 phplayersmenu
install paket pendukung jpgraph versi comunity
root@gateway:/opt/mastershaper/htdocs$ mkdir jpgraph
root@gateway:/opt/mastershaper/htdocs$ cd jpgraph
root@gateway:/opt/mastershaper/htdocs/jpgraph$ wget http://hem.bredband.net/jpgraph2/jpgraph-3.0.7.tar.bz2
root@gateway:/opt/mastershaper/htdocs/jpgraph$ tar xvjf jpgraph-3.0.7.tar.bz2
buat file password akses apache untuk mastershaper dengan user administrator
root@gateway:/opt/mastershaper/htdocs/jpgraph$ cd
root@gateway:~$ htpasswd -c /opt/mastershaper/htdocs/.htpasswd administrator
virtualhost untuk akses mastershaper
root@gateway:~$vim /etc/apache2/sites-enabled/shaper
isi dengan
<VirtualHost *:80> ServerName mastershaper DocumentRoot /opt/mastershaper/htdocs AllowOverride AuthConfig AuthName "Add your login message here." AuthType Basic AuthUserFile /opt/mastershaper/htdocs/.htpasswd AuthGroupFile /dev/null require user administrator </VirtualHost>
berikan akses sudo untuk mastershaper
root@gateway:~$ echo “www-data ALL=(root) NOPASSWD:$/opt/mastershaper/htdocs/shaper_loader.sh” >> /etc/sudoers
berikutnya adalah membuatkan database dan user database khusus untuk mastershaper
root@gateway:~$ mysql -uroot -p
mysql> CREATE USER ‘shaper’@'localhost’ IDENTIFIED BY ‘pass’;
- silakan ganti pass sesuai keinginan
mysql> CREATE DATABASE shaper_db
mysql> GRANT ALL PRIVILEGES ON shaper_db TO ‘shaper’@'localhost’ WITH GRANT OPTION;
selanjutnya anda tinggal menambahkan dns record untuk mastershaper sesuai nama virtualhost yang digunakan. dan akses via browser ke alamat http://mastershaper
selanjutnya akan ada menu configurasi sesuaikan dengan konfigurasi yang telah dibuat sebelumnya..
akhirnya mastershaper telah terinstall dan selamat bersenang-senang menjadi admin yang kejam


[PHORONIX] Baru saja mengumumkan kabar baik mengenai GPU Intel, terutama i8xx. Seperti yang kita ketahui bersama, Lucid "dianugerahi" dengan galat pada driver GPU Intel. Hal ini karena memang Intel sedang merestrukturisasi driver-nya. Dimulai dengan penggabungan driver -i910 dan -i810 menjadi satu -intel. Lalu kemudian, Intel berusaha mengembangkan GEM/UXA untuk mendukung KMS. Sayangnya, hal ini menyebabkan regresi terhadap GPU lama seperti seri i8xx.
Baru kemarin [PHORONIX] memberitakan bahwa pengembang Ubuntu menambal driver mereka dengan versi lama. Saya sudah mencobanya dan memang sistem menjadi stabil. Silakan kunjungi [RAOF] untuk info lebih lanjut. Intinya, berikut yang dapat dilakukan.
$ sudo add-apt-repository ppa:raof/aubergine
$ sudo apt-get update
$ sudo apt-get dist-upgrade
Ya, ada beberapa langkah yang dilewati, seperti misalnya mengimpor kunci. Tapi, intinya, driver Intel akan ditatar.
Referensi:
[PHORONIX] Phoronix. http://www.phoronix.com/scan.php?page=news_item&px=ODQzMQ
[UBUNTU] Ubuntu Mailing https://lists.ubuntu.com/archives/ubuntu-x/2010-July/000905.html
[RAOF] https://edge.launchpad.net/~raof/+archive/aubergine

I’m now running a default lucid install, it’s nice and shiny….but like any modern operating system that you’ve downloaded/installed it needs updates. Thankfully another simple task. I’m a command line kinda guy so the update was easy, now don’t get me wrong, this isn’t the only way to achieve this, there are multiple ways, this just works for me.
sudo apt-get update
sudo apt-get dist-upgrade
After a few downloads and a restart i’m all up to date. Now to install some other stuff, which leads me on to codecs and repositories.
I’m not going to go through what a repository is here so i’m just going to link to a page that explains it all. I’ve enabled all the repos i want and done another update. Kushty:)
To quote from here -
“Ubuntu strives to make all software that meets the licensing terms in theUbuntu License Policy available. However patent and copyright restrictions complicate free operating systems distributing software to support proprietary formats.”
Well that doesn’t help i want to play all my mp3′s, watch dvds, watch flash in webpages, all stuff that i can’t at the moment [yes i know there are alternatives, i'm just doing it from my point of view and what i think to be the easiest way of doing things]
ok ok i’ll get to the point – From the command line : sudo apt-get install ubuntu-restricted-extras
Now i’m listening to Muse [i'll come one to the app i'm using in the next post] and surfing the web…lovely
Tomorrow …… Applications

All *nix machines have the feature allowing you to compare two files --often
useful to do a quick 'cmp' or
'diff'
on the cli for a file comparision --a good feature for a small script file or
documents. However, if you want to compare chunks of code, between two
versions, then the readability isnt optimal.
Meld to the rescue!
Meld is a visual diff and merge tool which allows you to compare two or three
files located in different directory paths on your local machine and edit them.
It allows comparison of upto three folders. That is a good software
Meld has
been packaged for Ubuntu
and a "sudo apt-get-install meld" would install this small utility
which you can access via: Application >Programming >Meld Diff
Viewer.
That's it.

And now it is back to normal, doing its job well and I am a happy man. In a retrospection:
keyword : mountall: plymouth command failed, ubuntu wifi adhoc server.

It’s been a while since I blogged since its a busy day nowadays. Anyway, here it goes.With the usage of upstart, many SYS V style ways becoming obsolete. One of the prominent thing is the lost of /etc/inittab. Usually, when we created a standalone booth, we would embedded our setup using that; we put our script into it. If we are using X, one of the alternative is to use GDM. For the low cost solution often this solution is cumbersome. After some digging, I’ve found another neat solution: using nodm.
To install nodm:
$ sudo apt-get install nodm
To enable nodm:
$ sudo $EDITOR /etc/default/nodm
[Note: Change $EDITOR to whatever your text editor]
Change NODM_ENABLED value into true:
NODM_ENABLED=true
Usually, standalone booth run as root user because of the nature of its purpose: single user experience. However, you can make a user and set the user to be able to access the X. We can set a non-root user by editing NODM_USER value into:
NODM_USER=$USER
[NOTE: Change $USER with whatever user you have setup before]
By default nodm uses XSession, so here some tips regarding XSession:
/etc/X11/Xsession.d directory.~$USER/.xsession[NOTE: ~$USER means the home directory of the chosen user.]
Please bear in mind, both are incompatible. If you put .xsession, XSession will use it instead scripts in Xsession.d directory. With some scripts, we can achieve both; the script left as an excercise to the reader.
(Or may be later, remind me to do so)
Bye for now.


Unity from our Ubuntu Netbook Edition. I absolutely love it.
You can try it out easily by just running:
sudo add-apt-repository ppa:canonical-dx-team/une
sudo apt-get update
sudo apt-get install ubuntu-netbook-unity-default-settings
It is also packaged for Maverick in the repositories, just install unity.
