Get Ubuntu Get Ubuntu

Download Ubuntu now for free, request a free CD or buy it on DVD or CD

Get Support Get Support

Free documentation and community support, or buy professional support

Get Involved Get Involved

Share technical know-how with other users, or help to promote Ubuntu

Get Developing Get Developing

Share your development expertise and help shape the future of Ubuntu

User login

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
10 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Navigation

Who's new

  • mayonks
  • naiimullah
  • iwe
  • bizkut

Who's online

There are currently 0 users and 2 guests online.

Subscribe to Ubuntu Malaysia by e-mail

Delivered by FeedBurner

Search

Sudo

bizkut's picture

tanya siapa?

Apa itu MongoDB? Itu loh, engine basis data non-relational (atau lagi ngetren dengan sebutan NoSQL) yang schema-free dan: *

  • Document oriented
  • Javascript enabled
  • Fast, scalable, available, and reliable

Lalu, apa yang membuat MongoDB istimewa? **

  • Native language integration
  • Rich data types
  • Atomic modifiers
  • Dynamic queries

* & ** 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
mongodb shell

mongodb shell

Credit to sunng



Original Source: http://rotyyu.wordpress.com/2010/07/26/instalasi-mongodb-di-ubuntu-10-04-lucid-lynx-64-bit/
bizkut's picture

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



Original Source: http://www.paulmellors.net/2010/07/ubuntu-experiment-3-%e2%80%93-applications
bizkut's picture

tanya siapa?

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
:swt:

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 :hehehe:



Original Source: http://www.thetunnels.net/instalasi-mastershaper-0-44-di-ubuntu/
bizkut's picture

tanya siapa?

[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



Original Source: http://staff.blog.ui.ac.id/jp/2010/07/22/intel-i8xx-fix-on-ubuntu-lucid/
bizkut's picture

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



Original Source: http://www.paulmellors.net/2010/07/ubuntu-experiment-2-%e2%80%93-post-install
bizkut's picture

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. 



Original Source: http://svaksha.com/post/2010/meld-it
bizkut's picture

I have my brother's Toshiba M40 collecting dust in my working room. I don't have wireless router and this old laptop have wifi, so I  was thinking to turn it to a wifi ad-hoc server, I removed the aging prone to error hard disk containing Windows XP and replaced it with younger healthier hard disk and installed Ubuntu 10.04.
Why I didn't use the Windows XP? Simple, I don't want my server collecting viruses and eating the bandwidth downloading things on its own including upgrading antivirus. I choose Ubuntu.
It works well, my HP 540 and and my wife's HP Mini can connect to its shared internet connection via its wifi.
But then my curiosity got the best of me, Toshiba M40 comes with nvidia graphic card so I tried to enable desktop effects, which requires nvidia driver and that where the disaster happened.
After nVidia driver installation , I couldn't boot to the GUI, all I see is a terminal after "mountall: plymouth command failed" error message.
There was two factors in this error i.e. plymouth and nVidia driver. Removing plymouth will only bring more tears, so I read in forums. That left me with one option and that is to remove nvidia driver.
I don't feel at home with command line and I have no idea how to do that in terminal (command line interface). Fortunately this is not my working machine, so I used my main machine to google for help.
I did these steps, your mileage may vary  :
  • this GUI-less interface still needs you to login, so login with your usual username and password
  • uninstall all nvidia related packages, to find installed nvidia packages type this command :
    dpkg --get-selections | grep nvidia
    which will return the names of packages with nvidia on it, e.g :
    nvidia-173
    nvidia-173-modaliases
  • uninstall each of these packages with this command:
    sudo apt-get remove change-with-names-of-nvidia-packages
    e.g :
    sudo apt-get remove nvidia-173
    sudo apt-get remove nvidia-173-modaliases
    the sudo needs your password.
  • reboot

And now it is back to normal, doing its job well and I am a happy man. In a retrospection:

  • I don't really need desktop effects enabled on a server,
  • sometimes CLI is your only friend so knowing one or two of them is useful or have a internet-able device as a back up to google your way out

keyword : mountall: plymouth command failed, ubuntu wifi adhoc server.



Original Source: http://ubuntu.igameilive.com/2010/07/how-to-fix-plymouth-command-failed.html
bizkut's picture

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:

  1. To run scripts/applications that need to be executed with root privilege, put the script into /etc/X11/Xsession.d directory.
  2. To run scripts/applications that runs with normal user, put the script into ~$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. :P (Or may be later, remind me to do so)

Bye for now.



Original Source: http://staff.blog.ui.ac.id/jp/2010/07/06/creating-your-own-booth-in-gnulinux-ubuntu-lucid-nodm/
bizkut's picture

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.



Original Source: http://www.jonobacon.org/2010/06/25/unity-love/
bizkut's picture

tanya siapa?

Bagi pengguna baru ubuntu akan sedikit kebingungan dengan munculnya grub baru ubuntu 9.10 yang telah digantikan dengan grub 2. Pada grub 2 ini untuk mengembalikan grub yang hilang setelah install windows atau crash dengan distro linux, mungkin akan menemui kesulitan. Dikarenakan perintah yang digunakan berbeda dengan mengembalikan grub ubuntu versi sebelumnya yang masih menggunakan grub 1. Saya sendiri tidak menggunakan sistem operasi lain di laptop saya selain ubuntu jadi saya beru tau setelah diminta temen mengembalikan grub ubuntu karmic hilang setelah install windows. Untuk ubuntu sebelum 9.10 tahap untuk mengembalikan grub sangat mudah tidak seperti di ubuntu karmic yang sedikit agak rumit. Tapi berkat tanya-tanya google cara pun saya dapat dan mengembalikan grub ubuntu karmic berhasil dengan lanjar jaya. Bagi yang masih menggunakan dual boot ubuntu dengan windows dan kebingunagan cara mengembalikan grub karmic berikut cara mudah mengembalikan grub ubuntu karmic.

1. CD Ubuntu Live CD atau bisa juga menggunakan USB yang sudah dibuat jadi inatallernya ubuntu
2. kemudian booting melalui live cd
3. setelah masuk ke live cd ubuntu kemudian gunakan Terminal menu Application --> accesories --> Terminal
4. langkah selanjutnya cari lokasi partisi linux yang terpartisi dalam hardsik anda dengan mengetikkan perintah berikut

sudo fdisk -l


Bagi yang senang menggunakan Modus GUI bisa juga menggunakan aplikasi GParted untuk menemukan lokasi partisi ubuntu anda Gparted berada pada menu System --> Administration --> Gparted


5. Langkah selanjutnya adalah mounting partisi dengan mengetikkan perintah berikut pada Terminal, setelah mengetahui letak lokasi partisi hardisk ubuntu anda

ubuntu@ubuntu:~$ sudo mount -t ext4 /dev/sda7 /mnt/

ubuntu@ubuntu:~$ sudo mount -t proc proc /mnt/proc/

ubuntu@ubuntu:~$ sudo mount -t sysfs sys /mnt/sys/

ubuntu@ubuntu:~$ sudo mount -o bind /dev/ /mnt/dev/


Setelah mounting partisi selesai dilanjutkan dengan recovery grub dengan mengetikkan perintah berikut.

ubuntu@ubuntu:~$ sudo chroot /mnt/ /bin/bash

root@ubuntu:/# grub-install /dev/sda

root@ubuntu:/# grub-install /dev/sda7
<---- *lokasi partisi linux*




langkah selanjutnya setelah proses mengembalikan grub selesai kemudian restart komputer anda dengan mengetikkan perintah pada terminal

sudo reboot

setelah grub kembali masuk dekstop ubuntu anda kemudian buka Terminal Kembali dengan mengetikkan perintah perikut untuk menginstall grub

sudo apt-get install grub-pc

kemudian dilanjutkan untuk update grub dengan mengetikkan perintah

sudo update-grub

Setelah grub ubuntu karmic kembali anda tidak perlu capek-capek install ulang ubuntu anda :D

Semoga bermanfaat.



Original Source: http://radithtux.blogspot.com/2010/02/menggembalikan-grub-ubuntu-karmic.html