Sabtu, 20 November 2010

Download ubuntu packages

Mengunduh dan menginstall software-software atau updatean ubuntu sangat mudah jika anda terhubung dengan koneksi internet atau mempunyai dvd repository ubuntu tapi lain ceritanya jika tidak mempunyainya atau koneksi internet yang dipakai adalah dial-up (menurut ane sudah jarang sekali digunakan) yang kecepatannya sangat mengecewakan, salah satu solusinya adalah mengunduh paket-paket dari software yang ingin anda install atau updatean ubuntu satu persatu dari packages.ubuntu.com masalahnya adalah terkadang software tersebut tersusun dari paket-paket (dependencies) yang saling berhubungan jadi anda harus berkali-kali mencari keseluruhannya.
"masih banyak jalan ke negri cina" itu adalah quote yang pas kali ini karena masih banyak solusi cepat dan mudah lainya, berikut cara-caranya:


A. Package Download Script

1. Buka synaptic packages manager di ubuntu anda (System > Administration > Synaptic Package Manager).

2. Masukan software yang anda ingin install di "Quick Search"


3. berikan tanda untuk instalasi pada software tersebut "mark for instalation"


4. maka akan muncul dependencies dari software tersebut kemudian klik tombol "mark".

5. Kemudian klik "File > Generate package download script" dan simpan script tersebut.


Jika anda buka script tersebut maka anda akan melihat direct download dari dependencies software terserbut dari situs repository ubuntu,


kemudian di kompi yang terhubung dengan internet anda bisa mengunduhnya dengan download manager yang mendukung multi download dan antrian (queued) seperti internet download manager akan lebih mudah jika kompi yang terhubung dari internet tersebut adalah linux dengan mengeksekusi script dari synaptic tadi akan langsung di unduh semua berikut caranya:

>> buka terminal
>> arahkan ke direktory dimana terdapat scrpit tersebut dengan command "cd"
>> ketik "./" kemudian nama dari script, contoh: "./download"

B. Via keryx
Menurut ane cara ini adalah yang sangat mudah dibanding lainnya karena dengan aplikasi keryx anda hanya memasukan versi dari ubuntu yang anda gunakan kemudian memasukan software yang ingin anda install, berikut lebih lengkapnya:

1. Unduh software keryx disini.

2. Ekstrak archieve tersebut, jika anda menggunakan windows maka launcer dari program ini terdapat di folder win32 > keryx.exe . jika anda menggunakan linux launcer dari program ini terdapat di folder linux > keryx.py .... dengan catatan python dan dependencies dari keryx (wxgtk) sudah terinstal, untuk wxgtk bisa diunduh disini.

3. Buka Program tersebut kemudian buatlah project baru atau buka projek yang sudah ada sebelumnya.

4. Jika ada notifikasi untuk mengunduh daftar baru klik "yes"
5. Setelah daftar yang terbaru sudah terunduh masukan nama software di search bar.

6. Kemudian klik kanan pada nama software kemudian pilih "download"



7. Setelah terunduh semua paket, buka folder dimana paket tersebut terunduh

8. Simpan Seluruh paket-paket yang sudah terunduh kedalam Flash disk anda.

>>>Cara menginstal paket
Jika bisa membuka paket-paket tersebut satu persatu, untuk mempermudah instalasi berikut caranya:

1. Simpan seluruh paket-paket kedalam satu folder kemudian letakan seluruh paket di partisi ubuntu anda.

2. buka terminal (Application > Accecories > Terminal) kemudian arahkan ke diriktori dimana folder yang berisi paket tersebut, contoh: cd /home/kacangitem/folder_paket

3. ketik command berikut dpkg -i *.deb

4. Periksa kedalam daftar aplikasi apakah sudah terpasang software tersebut

semoga bermanfaat :)

How to install Google Earth in Ubuntu 10.10 Maverick

Installing Google Earth in Ubuntu Maverick is very easy.I’m running Ubuntu Maverick 64 bit,so I need install the dependance package: ia32-libs and lib32nss-mdns.

Open up a terminal window from Applications -> Accessories menu and run:

sudo apt-get install ia32-libs lib32nss-mdns

Now let’s start installing:

First install googleearth-package from the default repository using this command:

sudo apt-get install googleearth-package

Then run the command:

make-googleearth-package --force

it will take a few minutes and finally generate a deb package.
Install the deb by the command (change the package name to yours):

sudo dpkg -i googleearth_5.2.1.1588+0.5.7-1_amd64.deb

Finally,launch Google Earth from Applications – > Internet menu.

Minggu, 14 November 2010

Creating Samba shares with no username or password in Ubuntu Linux

Samba sometimes frustrates me. It seems to be very picky about under what circumstances it will actually let you broadcast the existence of your Linux machine on your LAN, and share a folder with read and write permissions for other Linux or Windows users to see.

After a little tinkering, here's how I went about doing just that.

(thanks to http://www.debuntu.org/guest-file-sharing-with-samba) for most of the tips)

********

(1) Make sure you have Samba installed. As far as I remember, it is included with most distributions, but just in case, try this --

sudo apt-get install samba

(2) Now you need to modify the Samba configuration file located at /etc/samba/smb.conf and make some changes to remove the necessity to type in a username and password every time you wish to access a share. Run --

sudo gedit /etc/samba/smb.conf

(3) At some point, you might want to share a folder that does not belong to you on the network. To allow this, under the [global] section of this file, add (copy + paste) the following line --

usershare owner only = False

(4) Find the variable "security" (in the global section) and ensure that it is set to "share". The security line should look like this --

security = share

(if you absolutely can't find the security variable anywhere, add it to the file under the global section)

(5) Find the variable "guest account" (in the global section) and ensure that is set to "nobody". The guest account line should look like this --

guest account = nobody

(if you absolutely can't find the guest account variable anywhere, add it to the file under the global section)

(6) One guide I found said that since you are making Samba security insecure, you should ensure that only your local network can access the Samba service. I personally did not end up keeping this line in my smb.conf, because I did not seem to have any success getting Samba up and running by adding this to the config file, but you can (and probably should) at least try this to make sure it works. So go ahead and add this in, and if you can't access Samba/any shares after finishing the guide, remove the line altogether (or make sure you have permitted the right interface to bind).

To try this, you need to set the interfaces variable to lo and your local network interface (e.g eth0, eth1, wlan0) and you need to specify that only these interfaces can bind

interfaces = lo eth0
bind interfaces only = true

(7) Now, smb.conf should be set. Restart the samba daemon like this --

sudo service samba restart

(8) At this point, you have two options to add a shared folder on your machine. There's the easy way, that actually seems to work, and there's the hard, theoretical way, that I havn't had any sucess why. I'll go over the easy way first.

The easy way to share a folder is similar to the way you share a folder in Windows. All you need to do is right click on the folder in the question, press "Sharing Options", and fill out the resulting dialog. I recommend the following options --



At this point, you should be done. Congratulations. You should be able to access your shared folder by browsing your workgroup from another machine (Windows or Linux-based).

As far as I know, the name of your server is the host name of your computer, truncated to 15 characters. For example, the host name of my computer is andrew-laptop-mint. I can access my samba shares from Windows, for example, with \\andrew-laptop-m\Share (for example). You can get your host name by simply opening up a terminal and typing in hostname.

EXTRA: Here's the hard, theoretical way to add a shared folder in Samba --

(1) Run the following --

sudo gedit /etc/samba/smb.conf

(2) Near the bottom of the file, or where the other entires of this sort seem to be, add the following text (replacing generic items I've written in with your own variables, of course)

[generic-share]
path = /folder/to/share
comment = Insert comment here
read only = no
available = yes
browseable = yes
writable = yes
guest ok = yes
public = yes
printable = no
share modes = no
locking = no

(3) Run this --

sudo service samba restart

(4) You should have a shared folder now, although I can't say I've had any success with this. What's even more interesting is that the "Sharing options" method I described above doesn't seem to add anything of this sort to smb.conf. I don't know what's going on, maybe someone can enlighten me.

Good luck!

Sabtu, 13 November 2010

Cara Upgrade Ubuntu 10.04 Menjadi Ubuntu 10.10

Boja Linuxer Blog

Ubuntu - Selain dengan cara menginstal langsung (fresh install) pengguna Ubuntu yang inggin menggunakan versi terbaru, Ubuntu 10.10 dapat melakukannya dengan cara meng-upgrade.

Dengan meng-upgrade sistem lama ke versi baru, kita akan mendapatkan banyak pembaruan. Ubuntu 10.04 (Lucid Lynx) masih menggunakan Gnome 2.30, dengan meng-upgrade ke Ubuntu 10.10 (Maverick Meerkat) kita akan mendapatkan lingkungan desktop Gnome 2.32.

Boja Linuxer Blog
Hanya ada satu jalur pendek untuk dapat menggunakan Ubuntu 10.10 (Maverick Meerkat) dengan cara upgrade, yakni dari jalur Ubuntu 10.04 (Lucid Lynx). Bagi pengguna Ubuntu versi sebelumnya, misalnya Ubuntu 9.10 maka yang harus dilakukan adalah meng-upgrade terlebih dahulu ke 10.04 lalu baru dapat melanjutkan upgrade ke Ubuntu 10.10.

Bagi pengguna Ubuntu 10.04 LTS pada mesin-mesin produksi atau pada komputer kerja, kami menyarankan Anda untuk tetap mempertahankan penggunaan Ubuntu 10.04, mengingat jika Anda melakukan upgrade ke versi 10.10 itu berarti distribusi Long Term Support (LTS) telah Anda normalkan. Pertimbangkan kembali untuk melakukan upgrade ini.

Ada beberapa cara untuk meng-upgrade dari Ubuntu 10.04 LTS ke Ubuntu 10.10;

Pertama, meng-upgrade Ubuntu 10.04 LTS ke Ubuntu 10.10 melalui internet. Untuk menggunakan cara ini, pastikan Anda memiliki koneksi internet yang cepat dan stabil. Jalankan Ubuntu 10.04 pada komputer Anda. Setelah berada di desktop, tekan kombinasi tombol Alt+F2 untuk menjalankan dialog Run Application....

Boja Linuxer Blog
Masukkan perintah berikut ini lalu tekan enter...

update-manager

Tak lama kemudian jendela Update Manager akan ditampilkan. Klik tombol "Settings.." untuk menjalankan Software Sources...

Boja Linuxer Blog
Pada jendela Software Sources yang terbuka, pilih tab "Updates". Dalam tab tersebut, ubah bagian Release upgrade pada pilihan "Show new distribution release:" dari "Long term support releases only" menjadi "Normal release"...

Boja Linuxer Blog
Klik tombol "Close", jedela akan ditutup dan Anda akan kembali pada aplikasi Update Manager.

Klik tombol "Check" untuk melakukan penyegaran repositori...

Boja Linuxer Blog
Tunggulah beberapa saat, informasi pembaruan repositori akan diupdate....

Boja Linuxer Blog
Silahkan periksa pada bagian atas jendela Update Manager, akan nampak kolom baru berisi "New Ubuntu '10.10' is available" dengan sebuah tombol "Upgrade"....

Boja Linuxer Blog
Klik tombol "Upgrade" untuk memulai proses upgrade dari Ubuntu 10.04 LTS ke Ubuntu 10.10. Silahkan ikuti semua instruksi yang ditampilkan pada layar. Proses ini mungkin akan memerlukan beberapa waktu bergantung spesifikasi komputer dan kecepatan koneksi internet yang Anda gunakan.

Kedua, meng-upgrade dengan menggunakan CD/DVD Ubuntu 10.10 Alternate. Untuk dapat menggunakan cara ini, Anda membutuhkan CD/DVD installer Ubuntu 10.10 versi Alternate bukan versi desktop, server atau yang lainnya. Jika Anda belum memiliki Ubuntu 10.10 Alternate, silahkan download terlebih dahulu melalui link download yang kami sediakan dalam artikel ini.

Anda dapat memburning file iso yang telah diunduh kedalam CD/DVD atau tetap menggunakan file iso tersebut sebagai media upgrade dengan terlebih dahulu me-mount-nya sebagai sebuah CD/DVD drive pada sistem Ubuntu 10.04. Berikut ini adalah cara me-mount file iso sebagai CD/DVD drive;
Jalankan terminal lalu ketik perintah berikut...

sudo mkdir-p /media/cdrom tekan enter, masukkan password jika diminta...
sudo mount-o loop ~/Desktop/ubuntu-10.10-alternate-i386.iso /media/cdrom tekan enter...

Kami mengasumsikan Anda meletakkan file iso ubuntu-10.10-alternate-i386.iso pada desktop. Anda dapat menyesuaikan dengan lokasi tempat menyimpan dan juga versi arsitektur Ubuntu 10.10 Alternate yang Anda gunakan.

Bagi Anda yang telah memburning file iso atau bagi yang telah memiliki Ubuntu 10.10 Alternate dapat memasukkan installer tersebut ke CD/DVD drive. Seharusnya dialog "Upgrade volume detected" akan ditampilkan, kilk tombol "Run upgrade" untuk melanjutkan...

Boja Linuxer Blog
Jika karena sebab dan suatu hal dialog "Upgrade volume detected" tidak ditampilkan, Anda dapat menjalankan perintah upgrade dengan cara sebagai berikut...

Tekan tombol Alt+F2, pada dialog yang ditampilkan ketik perintah berikut ini...

gksu "sh /media/Ubuntu\ 10.10\ i386/cdromupgrade" lengkap dengan tanda kutip lalu tekan enter atau klik tombol "Run", masukkan password jika diminta...

Boja Linuxer Blog
Bagi yang menggunakan file iso dengan cara me-mount pada sistem, tekan tombol Alt+F2, pada dialog yang ditampilkan ketik perintah berikut ini...

gksu "sh /media/cdrom/cdromupgrade" lengkap dengan tanda kutip lalu tekan enter atau klik tombol "Run", masukkan password jika diminta...

Beberapa saat kemudian proses upgrade akan seger dijalankan...

Boja Linuxer Blog
Jika Anda ingin menginstal update terbaru melalui internet saat meng-upgrade, klik tombol "Yes" atau pilih "No" untuk mengabaikan tawaran ini. Untuk saat ini kami menyarankan untuk memilih No....

Boja Linuxer Blog
Klik tombol "Close" saat konfirmasi "Third party sources disabled" ditampilkan...

Boja Linuxer Blog
Klik tombol "Start Upgrade" untuk melanjutkan proses upgrade...

Boja Linuxer Blog
Tunggulah beberapa saat, proses ini akan mebutuhkan bebarapa waktu....

Boja Linuxer Blog
Saat konfirmasi "Configuring grub-pc" ditampilkan, JANGAN mencentang opsi "Continue without installing GRUB?" agar grub terbaru juga diinstal untuk Anda. Lanjutkan saja dengan mengklik tombol "Forward"....

Boja Linuxer Blog
Pada jedela berikutnya, berhati-hatilah saat memilih lokasi grub akan diinstal, pastikan Anda tahu dimana seharusnya grub diletakkan. Pada contoh ini kami memilih untuk menginstal grub pada MBR hardisk utama, sehingga kami memilih untuk menginstal pada "/dev/sda" bukan pada /dev/sda2, klik "Forward" jika Anda telah menentukan dimana grub akan diinstal...

Boja Linuxer Blog
Jika pada sistem sebelumnya Anda telah menginstal samba server atau aplikasi lain yang memerlukan konfigurasi, biarkan opsi ini seperti apa adanya, lanjukan proses dengan mengklik "Forward"...

Boja Linuxer Blog
Pada dialog "Remove absolete packages?" Anda dapat memilih untuk tetap mempertahankan atau membuangnya, pada langkah ini kami meilih untuk me-remove...

Boja Linuxer Blog
Tunggulah hingga proses upgrade diselesaikan dan ditampilkan dialog konfirmasi untuk merestart komputer, Klik "Restart Now" untuk merestart dan mengetahui hasil upgrade...

Boja Linuxer Blog
Ssitem baru akan segera dijalankan, menu grub telah diupgrade ke versi baru...

Boja Linuxer Blog
Layar GDM juga telah diperbarui, pilih username Anda, masukkan password lalu tekan enter...

Boja Linuxer Blog
Selamat... sistem baru telah Anda dapatkan. Ubuntu 10.04 LTS (Lucid Lynx) telah diupgrade menjadi Ubuntu 10.10 (Maverick Meerkat)...

Boja Linuxer Blog
Jika dirasa perlu, Anda dapat segera melakukan update agar semua pembaruan yang tersedia untuk Maverick Meerkat juga diterapkan...

Boja Linuxer Blog
Informasi: Semua gambar pada artikel menggunakan komponen zooming expando, sehingga Anda dapat memperbesar gambar dengan cara meletakkan kursor di atas masing-masing gambar.

Install Samba And Share Folders Ubuntu 10.10

Here is a guide to install samba and share folders on Ubuntu 10.10 "Maverick Meerkat". In this guide i will show you how to install Samba and how to make a shared folder. This folder will be accessable from a computer running on windows or Ubuntu.

First you need to install Samba, to do this open a Terminal window (Applications -> Accessories -> Terminal) and copy+paste the following line:

sudo apt-get install samba samba-common

Press y followed by Enter to install

Now install the Samba server configuration tool, copy+paste the following line:

sudo apt-get install system-config-samba

Press y followed by Enter to install, when finished installing you can close your Terminal window.

Now go to your Home Folder (Places-> Home Folder)

Click with your right mouse button and select Create Folder, name your folder (Shared-10.10) and press enter

When done close your Home folder.

Now start the Samba Server Configuration (System -> Administration -> Samba)

Fill in your password and click on the OK button

Click on the + button to add a shared folder

Click on the Browse button

Select the folder you want to share and click on the OK button

Enter a description for your shared folder. Mark the check boxes if you want the folder to be writable or visible

Click on the Acces tab and change the acces setting to your likings, i want mine to be visible and accesable for everyone. But you can also allow acces to specific users. when finished click on the OK button

Now the shared folder is added to you Samba Server Configuration

Now go to your Shared folder (Places -> Home Folder -> Shared-10.10)

select the folder and click on it with your right mouse button and select Sharing Options

Add a comment and change the permissions for others to create and delete files and for the guest acces rules. When done click on the Create Share button

Click on Add the permissions automatically

After this step you are finished and your Shared-10.10 folder will be visible and accessable from another computer in your network (windows and Ubuntu). To acces the folder when using Ubuntu follow the next steps

Go to Places and select Network

Now the select the computer where the shared folder is located on (TINUZ-DESKTOP in my case)

Click on the shared folder (Shared-10.10)

Welcome to your shared folder :)

To acces the shared folder on a computer running on windows (Win7 and Vista) follow the next step:

Click on Start and type: \\YOURCOMPUTERNAME (in my case TINUZ-DESKTOP)

make sure that when typing your computer name you have CapsLock on because the name has to be written with capitols. If you don't know your computer name go to System -> Administration -> System Monitor and select the System tab.

Note: if you have problems with opening the files you placed in your shared folder from another location... here's how you fix it!

Open a Terminal window and copy+paste the following line:

sudo chmod o+w YOURSHAREDFOLDER/filename

replace YOURSHAREDFOLDER for the location of our shared folder and replace filename for the file you need to take the permissions from

Another way to fix this is to replace some lines in your smb.conf.

Open a Terminal window and copy+paste the following line:

sudo gedit /etc/samba/smb.conf

Now your Samba config file is opened, scroll down to the part that begins with: [yoursharedfolder] (in my case [Shared-10.10])

Now copy the text below (change the [YourShared-FolderName], comment, path, user and group name to the ones you use) and replace it for the text in your smb.conf file

[YourShared-FolderName]
comment = your comment here
path = your/shared/folder
force user = yourusername
force group = yourgroupname
writeable = yes
browseable = yes
guest ok = yes

In the screenshot below you see how my smb.conf file looks after the changes

Now save and close the smb.conf file. Now all the files will have the right permissions/ownership to be opened or changed.