Share Linux

70
aptcara mount hardisk secara otomatis di linux (Ubuntu) Posted on March 23, 2010 | 4 Comments cara mount hardisk otomatis di linux (Ubuntu) saat stratup Memang Ubuntu menyediakan kemudahan untuk mounting media baca tulis seperti hardisk misalnya, sayangnya untuk hardisk yang terpasang di Ubuntu seringkali harus di mount dengan cara di klik, dan sistem meminta password user.susah banget dan terlalu ribet. Hal ini tidak saja tidak praktis, namun juga menjengkelkan saat kita punya referensi file ke hardisk tersebut yang tidak segera bisa diakses karena harus di mounting dahulu. Namun permasalahan itu bisa dipecahkan dengan mudah, dari hasil pencarian di google, maka dapat disimpulkan cara yang paling gampang sebagai berikut. 1. Mendapatkan informasi nama hardisk dan lokasinya, pada terminal ketik perintah: sudo fdisk -l 2. Akan keluar seperti yang saya contohkan di dalam sistem saya: Device Boot Start End Blocks Id System /dev/sda1 * 1 6374 51199123+ 7 HPFS/NTFS /dev/sda2 6375 30401 192996877+ f W95 Ext’d (LBA) /dev/sda5 6375 25138 150721798+ 7 HPFS/NTFS /dev/sda6 25139 30180 40499833+ 83 Linux /dev/sda7 30181 30401 1775151 82 Linux swap / Solaris Yang saya highlight adalah partisi yang hendak saya mounting secara otomatis, jadi pastikan kamu memilih mounting yang diinginkan. 3. Langkah selanjutnya membuat mount point (folder), hal ini perlu karena linux memperlakukan semua device (termasuk hardisk) sebagai folder. Dalam hal ini saya membuat mount point dengan nama hardisk, sebelumnya ubah direktori kerja ke /media, karena di situ letak semua mounting point device, ketik perintah: cd /media lalu buat folder mounting point dengan nama hardisk: sudo mkdir hardisk

Transcript of Share Linux

Page 1: Share Linux

aptcara mount hardisk secara otomatis di linux (Ubuntu)Posted on March 23, 2010 | 4 Comments

cara mount hardisk otomatis di linux (Ubuntu) saat stratup

Memang Ubuntu menyediakan kemudahan untuk mounting media baca tulis seperti hardisk misalnya, sayangnya untuk hardisk yang terpasang di Ubuntu seringkali harus di mount dengan cara di klik, dan sistem meminta password user.susah banget dan terlalu ribet. Hal ini tidak saja tidak praktis, namun juga menjengkelkan saat kita punya referensi file ke hardisk tersebut yang tidak segera bisa diakses karena harus di mounting dahulu.Namun permasalahan itu bisa dipecahkan dengan mudah, dari hasil pencarian di google, maka dapat disimpulkan cara yang paling gampang sebagai berikut.

1. Mendapatkan informasi nama hardisk dan lokasinya, pada terminal ketik perintah:

sudo fdisk -l

2. Akan keluar seperti yang saya contohkan di dalam sistem saya:

Device Boot Start End Blocks Id System/dev/sda1 * 1 6374 51199123+ 7 HPFS/NTFS/dev/sda2 6375 30401 192996877+ f W95 Ext’d (LBA)/dev/sda5 6375 25138 150721798+ 7 HPFS/NTFS/dev/sda6 25139 30180 40499833+ 83 Linux/dev/sda7 30181 30401 1775151 82 Linux swap / Solaris

Yang saya highlight adalah partisi yang hendak saya mounting secara otomatis, jadi pastikan kamu memilih mounting yang diinginkan.

3. Langkah selanjutnya membuat mount point (folder), hal ini perlu karena linux memperlakukan semua device (termasuk hardisk) sebagai folder.Dalam hal ini saya membuat mount point dengan nama hardisk,sebelumnya ubah direktori kerja ke /media, karena di situ letak semua mounting point device, ketik perintah:

cd /media

lalu buat folder mounting point dengan nama hardisk:

sudo mkdir hardisk

4. Edit file fstab agar nantinya dikenali secara otomatis oleh sistem:

sudo gedit /etc/fstab

akan terbuka file fstab, jangan diubah apapun isi yang ada, kita hanya perlu menambahkan satu baris di bagian paling bawah:

/dev/sda5 /media/hardisk ntfs-3g defaults,locale=en_US.UTF-8 0 0

Page 2: Share Linux

Perhatikan bahwa saya memilih sda5 sebagai partisi yang akan dimounting secara otomatis pada folder mounting point hardisk, kebetulan saya menggunakan format NTFS, jika hardisk kamu format dengan EXT3 gunakan:

/dev/sda5 /media/hardisk ext3 defaults,errors=remount-ro,users,user_xattr,user 0 0

untuk EXT4 ganti ext3 dengan ext4. Atau jika kamu memakai FAT32, gunakan:

/dev/sda5 /media/hardisk vfat umask=000 0 0

4. Langkah terakhir, agar tidak menanyakan pasword, pastikan bahwa mounting point adalah milik user kamu, dengan perintah sebagai berikut:

sudo chown -R prima:dhani /media/hardisk ("R" nya besar atau kecil lupa aku hhehe tapi kelihatanya besar) maklum kakean mikir kalkulus

dhani adalah username kamu di ubuntu.

Selesai dan coba restart komputer kamu, untuk membuktikan perubahannya.

Hello all !!!

This is just New Tutorial Stuff coming up from ME !!!

Tutorial – How to "Mount"/"Umount" Partitions in Ubuntu:

Story:Every now & then, we see people asking questions in this Forum, on how to access other Partitions, regardless of whether they are Windows Partitions or Linux Partitions or Other.

This Tutorial's main target is to teach you HOW to mount/unmount (create access/remove access), to any (Hard Drive) Partition you connect to your Ubuntu.

Note:It is Required that you connect your (Hard Drive) Partition, before you Boot your Ubuntu, unless your (Hard Drive) Partition is connected to your Ubuntu through USB.

So, here it goes:

Part 1 – Mounting Partitions (auto mount mode):The file named "fstab", is a file where ALL your Ubuntu's "mount" options are listed.The "fstab" file is the automatic way to "mount" File Systems.They are "mounted" at Log on & "unmounted" at Log off.By default, the basic options (including the Ubuntu File System), will be found there.

Page 3: Share Linux

To view the basic (default) contents of your "fstab" file, launch a Terminal (from the Menu, select "Applications\Accesories\Terminal"), & type:

sudo -iType your <password> ( < - To get Administration/root Privileges)cd / ( < - To move to the root directory)cd /etc ( < - To move to a subdirectory where the file "fstab" is)cat fstab ( < - To only view the basic default options of "fstab" file)

You should get this output:

# /etc/fstab: static file system information.

# <file system> <mount point> <type> <options> <dump> <pass>proc /proc proc defaults 0 0/dev/sda1 / ext3 defaults,errors=remount-ro 0 1/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

The last three lines in the above are ALL the basic (default) devices found on your Computer:

1. sda1: "s" = SATA Hard Drive, "a" = 1rst SATA Bus, "1" = 1rst Partition

2. hdd = the CD Rom (to access it, you must move to the "/media" subdirectory)

3. fd0 = the Floppy Drive (to access it, you must move to the "/media" subdirectory)

As we said before:The "fstab" file is the auto way to "mount" FileSystems.They are "mounted" at Log on & "unmounted" at Log off.

No other (Hard Drive) Partitions are "mounted" automatically when you Boot your Ubuntu PC.

So, if you want to add (or "mount") more (Hard Drive) Partitions in your Ubuntu PC, you MUST:

1. Edit your "fstab" file & manually add a command that will result in anautomatic mounting of your added (Hard Drive) Partition every time youstartup your Ubuntu PC.

OR:

2. Select the Temporary method.That means, EVERY time you would like to mount added (Hard Drive)Partitions, you will have to launch the Terminal (from the Menu, select"Applications\Accesories\Terminal") & EVERY time manually type-in the correctcommand that "mounts" your Partition.

Note:

Page 4: Share Linux

To learn how you can manually mount added (Hard Drive) Partitions by usingthe Terminal, move to Part 3 (section) of this Tutorial.

To Edit your "fstab" file & manually add a command that will result in an automatic mounting of your added (Hard Drive) Partition every time you startup your Ubuntu PC, do the following:

Launch a Terminal (from the Menu, select "Applications\Accesories\Terminal") & type:

1. sudo -i

2. Your Password

3. fdisk -l

Note:In this stage, you MUST examine the output of the above command.Depending on the output you get, the command line that you are supposed totype/insert inside your "fstab" file MUST relate to what you see (as output), inthis step (with the "fdisk -l").

Output Example:

root@house:/# fdisk -l

Disk /dev/hdc: 40.0 GB, 40020664320 bytes255 heads, 63 sectors/track, 4865 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System/dev/hdc1 * 1 4865 39078081 7 HPFS/NTFS

Disk /dev/sda: 82.3 GB, 82348277760 bytes255 heads, 63 sectors/track, 10011 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System/dev/sda1 1 2432 19535008+ 83 Linux/dev/sda2 2433 6079 29294527+ 83 Linux/dev/sda3 6080 10011 31583790 f W95 Ext'd (LBA)/dev/sda5 6080 10011 31583758+ b W95 FAT32

Disk /dev/sdb: 120.0 GB, 120034123776 bytes255 heads, 63 sectors/track, 14593 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System/dev/sdb1 1 10416 83666488+ 7 HPFS/NTFS/dev/sdb2 10417 14593 33551752+ f W95 Ext'd (LBA)/dev/sdb5 10417 14593 33551721 b W95 FAT32

Page 5: Share Linux

Disk /dev/sdd: 32 MB, 32768000 bytes5 heads, 63 sectors/track, 203 cylindersUnits = cylinders of 315 * 512 = 161280 bytes

Device Boot Start End Blocks Id System/dev/sdd1 * 1 202 31783+ 4 FAT16 <32M

In the above output example, notice that there are 4 Devices found:

a. Disk /dev/hdc: 40.0 GB ( < - "h" = IDE Hard Drive, "c" = 3rd IDE Bus)

b. Disk /dev/sda: 82.3 GB ( < - "s" = SATA Hard Drive, "a" = 1rst SATA Bus)

c. Disk /dev/sdb: 120.0 GB ( < - "s" = SATA Hard Drive, "b" = 2nd SATA Bus)

d. Disk /dev/sdd: 32 MB ( < - This is too small to be a Hard Drive, it is a USB stick)

Let us now take a closer look on the first, Disk "a" above:

Device Boot Start End Blocks Id System/dev/hdc1 * 1 4865 39078081 7 HPFS/NTFS

hdc1: "h" = IDE Hard Drive, "c" = 3rd IDE Bus, "1" = 1rst Partition

Notice the "*" under the Boot title.This (Hard Drive) Partition is Bootable (i.e. it contains an Operating System) .And if you look at the NTFS under the System title, you can assume that there isa Windows OS installed in that (Hard Drive) Partition.

Let us now take a closer look on the second, Disk "b" above:

Device Boot Start End Blocks Id System/dev/sda1 1 2432 19535008+ 83 Linux/dev/sda2 2433 6079 29294527+ 83 Linux/dev/sda3 6080 10011 31583790 f W95 Ext'd (LBA)/dev/sda5 6080 10011 31583758+ b W95 FAT32

sda1: "s" = SATA Hard Drive, "a" = 1rst SATA Bus, "1" = 1rst Partition (a Linux EXT3 one)sda2: "s" = SATA Hard Drive, "a" = 1rst SATA Bus, "2" = 2nd Partition (a Linux EXT3 one)sda5: "s" = SATA Hard Drive, "a" = 1rst SATA Bus, "5" = 3rd Partition (a Windows FAT32 one)

You will probably wonder why did I omit talking about "sda3"...If you notice "sda3" & "sda5" they have a common (title) Start & End Blocks.That basically tells you that the 2 rows are ONE & the SAME Partition.Do NOT ask me why Ubuntu does that, I do NOT know...But the (Hard Drive's) FAT32 Partition is the "sda5" (W95 FAT32) .Remember this (in case you run into again), in the near future.

Page 6: Share Linux

Note:You might also notice that under the Boot title, there is NO "*" on the "sda2"line.Well, there should be, cause I have Booted (& am typing this right now), frommy Ubuntu PC.Why there is NO "*" on that line, I do NOT know either...

I am NOT going to describe (in thorough) the third, Disk "c" above. But in a fewwords it contains ONLY 2 Partitions ("sdb1" & "sdb5"). One of them is aWindows NTFS & the other a Windows FAT32. Both of them contain NOOperating System (just files – since there is NO "*" under the Boot title).

4. Now that we explained the above (Hard Drive) Partitions, in detail, we can nowgo & edit our "fstab" file & manually add a command that will result in anautomatic mounting of our added (Hard Drive) Partitions every time you startupyour Ubuntu PC.

To do this, perform the following:

a. If your "Terminal" is still open (I never told you to close the window, did I?),type:

cd / ( < - To move to the root directory)cd /etc ( < - To move to a subdirectory where the file "fstab" is)cp fstab fstab_backup ( < - Backup your "fstab" file to "fstab_backup" incase you mess up with the Editing procedurewhich is coming up shortly...)nano fstab ( < - To only view the basic default options of "fstab" file)

Note:If your "Terminal" were still open, you should NOT need to type the first twocommands, but I just put them, in case you have (mistakenly) changeddirectory.

b. Now you are inside the "nano" Editor.Warning:Be careful with what you type (or change), because typing the wrong stuffcould result in NOT being able to boot your Ubuntu PC...

c. Use the arrow keys on your keyboard & go down to the last line of your"fstab" file.

d. Type the "Enter" key of your keyboard twice to create 2 new lines.

e. This is the tricky part.You MUST type inside, the correct info (and I mean the info that applies toYOUR Partition & NOT mine or this Tutorial's one).In OUR example, we would go & type the following:

Page 7: Share Linux

# 1. To see my NTFS Partition (on the SATA "Backup" Hard Drive), type:# Note: You can ONLY Read Files in this Partition.

/dev/sdb1 /mnt/ntfs_files ntfs nls=utf8,umask=0222 0 0

# 2. To see my FAT32 Partition (on the SATA "Backup" Hard Drive), type:

/dev/sdb5 /mnt/fat32_files vfat iocharset=utf8,umask=000 0 0

# 3. To see my NTFS Partition (on the IDE "WinOS" Hard Drive), type:# Note: You can ONLY Read Files in this Partition.

/dev/hdc1 /mnt/ntfs_os ntfs nls=utf8,umask=0222 0 0

Description:Any line that starts with the "#" is a comment line & you can type-in anycomment you want.All the other lines are command lines.These command lines are the lines required to finally be able to auto "mount"the Partitions you want every time you Boot your Ubuntu.

Notice that the lines on mounting an NTFS (Hard Drive) Partition are differentthan the lines on mounting a FAT32 (Hard Drive) Partition.

Lets take a closer look on the first command line:

/dev/sdb1 /mnt/ntfs_files ntfs nls=utf8,umask=0222 0 0

"/dev/sdb1": "/dev" = will always be the same,"/sdb1" = This comes from the "fdisk -l" output.

Note:When I asked you previously to type "fdisk -l" in the Terminal & to take a lookat your output, I did it for a reason. That output, will tell you what you have totype inside your "fstab" file (e.g. "/sdb1" in the above command line).

"/mnt/ntfs_files": "/mnt" = will always be the same,"/ntfs_files" = give any name you would like & it is going to be the name of thefolder you must visit, to access your Partition's contents.

"ntfs" = represents the Format Type of your Partition you are trying to access.Again, the "fdisk -l" output will tell you what you have to type insideyour "fstab" file (e.g. "ntfs" in the above command line).Note:If it was a FAT32 Format Type we were trying to access, we would type "vfat".If it was an EXT3 Format Type we were trying to access we would type "ext3"

Page 8: Share Linux

"nls=utf8,umask=0222" = This part is ALWAYS used when you aredealing/mounting NTFS (Hard Drive) Partitions. Andit is ALWAYS the same.The "umask=0222" is THE most important part.Basically it says that you can ONLY Read thecontents NTFS Partition. You can NOT Writeanything or Execute anything from the NTFSPartition. Ubuntu will restrict ANY of your attemptsto write into that Partition. That is restricted by the"222" number part.Unfortunately this is a Windows problem, NOT anUbuntu one.Windows NTFS Format is "sealed" only forWindows OS use...There are ways to make it possible, to write to aWindows NTFS Partition, but they are NOT 100%safe & they might result in damaging your NTFSPartition. ... and you do NOT want to do that... doyou?Note:This Tutorial's goal is NOT to teach you how to dothat...In Ubuntu, when somebody wants to pass filesfrom an EXT3 (Ubuntu) Partition, to an NTFS(Windows) Partition, his files have to (first) passfrom an intermediary FAT32 Partition. Ubuntu hasNO problem in dealing with FAT32 Partitions. So,people save their files in a FAT32 Partition (fromUbuntu) & they (then) use Windows to access &get their files from the FAT32 Partition to their NTFSone.

" 0 0" = will always be the same.

Now, lets take a closer look on the second command line:

/dev/sdb5 /mnt/fat32_files vfat iocharset=utf8,umask=000 0 0

"/dev/sdb5": "/dev" = will always be the same,"/sdb5" = This comes from the "fdisk -l" output.

Note:As I said before, when I asked you previously to type "fdisk -l" in the Terminal& to take a look at your output, I did it for a reason. That output, will tell youwhat you have to type inside your "fstab" file (e.g. "/sdb5" in the abovecommand line).

"/mnt/fat32_files": "/mnt" = will always be the same,"/fat32_files" = give any name you would like & it is going to be

Page 9: Share Linux

the name of the folder you must visit, to accessyour Partition's contents.

"vfat" = represents the Format Type of your Partition you are trying to access.Again, the "fdisk -l" output will tell you what you have to type insideyour "fstab" file (e.g. "vfat" in the above command line).Note:If it was an NTFS Format Type we were trying to access, we wouldtype "ntfs".If it was an EXT3 Format Type we were trying to access we wouldtype "ext3"

"iocharset=utf8,umask=000" = This part is ALWAYS used when you aredealing/mounting FAT32 (Hard Drive)Partitions. And it is ALWAYS the same.The "umask=000" is THE most important part.Basically it says that you canRead&Write&Execute the contents of yourFAT32 Partition. You are given ALL availablePermissions on the FAT32 Partition. That ispermitted by the "000" number part.

" 0 0" = will always be the same.

I am NOT going to describe (in thorough) the third command line. But in a fewwords it is an IDE (Hard Drive) Partition ("/hdc1") & the "/ntfs_os" is the foldername I gave under which I can access the (Hard Drive's) NTFS Partitioncontents (give it any name you would like). The rest should remain the same (that SAME part is ALWAYS used when you are dealing/mounting NTFSPartitions).

Now that you can understand what we typed in our "fstab" file, to mount MY(Hard Drive) Partitions, you MUST add/type inside YOUR "fstab" file, theappropriate command lines, depending on what the output was printed inYOUR output file (the output you get by using the "fdisk -l" command in YOURTerminal).

So, go & type-in the info that applies to YOUR Partition & NOT mine or thisTutorial's one.

When you're done Editing the "/etc/fstab" File, Save (Ctrl-X), Confirm (y) & Exit(Enter).

Congratulations, you just finished Editing your "fstab" file (the tough part).The rest is easy.

5. In the above example, we Edited our "fstab" file & typed-in 3 command lineswith 3 Partitions that we wanted to auto mount every time we boot our UbuntuPC.

Page 10: Share Linux

We have also indicated the folder names under which we would access thecontents of the Partitions we would like to have auto mounted (during everyboot):

a. "/mnt/ntfs_files" = Folder name "ntfs_files" under the "/mnt" directory

b. "/mnt/fat32_files" = Folder name "fat32_files" under the "/mnt" directory

c. "/mnt/ntfs_os" = Folder name "ntfs_os" under the "/mnt" directory

But the above Folder names do NOT exist !!!Therefore, we MUST create them.

To do that, from your open Terminal (I hope you did NOT close it – I never toldyou to do so...), type the following:

cd / ( < - To move to the root directory)cd mnt ( < - To move to the subdirectory named "/mnt")(Alternatively you could type: "cd /mnt" – but sometimes this does NOT work)mkdir ntfs_files ( < - To create a folder/directory named "ntfs_files")mkdir fat32_files ( < - To create a folder/directory named "fat32_files")mkdir ntfs_os ( < - To create a folder/directory named "ntfs_os")

6. In the beginning we mentioned the following:The "fstab" file is the automatic way to "mount" File Systems.They are "mounted" at Log on & "unmounted" at Log off.

Since we have already Logged on our Ubuntu, we can NOT expect our (HardDrive) Partitions to have auto mounted.

We MUST either:

a. "mount" them manually, or

b. Restart our Ubuntu computer.

Since nobody likes restarting, inside your open Terminal, type:

cd / ( < - To move to the root directory)mount -a ( < - To mount ALL the Partitions - "-a" = all)

Congratulations, you have now Mounted your (Hard Drive) Partitions successfully.

Remember:The next time you will reboot your Ubuntu Computer, all those typed-in (Hard Drives) Partitions stated inside your "fstab" file will me mounted automatically.If, in any case, you decide to Remove one (Hard Drive) Partition & do NOT want it to automatically mount when you are Booting your Ubuntu, edit your "fstab" file & add a "#" right in front of your command line. That will turn that command line into a comment & that line will NOT be run while booting...

Page 11: Share Linux

Part 2 - Unmounting Partitions (auto mount mode):Now, if you want to Unmount a (Hard Drive) Partition:

Edit the "/etc/fstab" File, & either:

a. Remove the command line that mounts your (Hard Drive) Partition.

OR:

b. Add a "#" right in front of the command line that mounts your (Hard Drive)Partition.That will turn that command line into a comment & the line will NOT be run whilebooting...

However, by Editing the "/etc/fstab" File, you do NOT really unmount your (Hard Drive) Partition, until you actually shutdown your Ubuntu PC.

If you would like to immediately unmount your (Hard Drive) Partition & do NOT want to wait until you shutdown your Ubuntu for this to be applied, you MUST do it through the Terminal window.In the Terminal window, type the following:

sudo umount /mnt/ntfs_files ( < - To unmount the Partition named "ntfs_files")

Note:Notice that the unmount command that you MUST type is: "umount" & NOT "unmount".To immediately unmount a different Partition, in our example, replace the "ntfs_files" with "fat32_files" or "ntfs_os"

Part 3 – Mounting Partitions (manual/temporary mount mode):

Launch a Terminal & type:

1. sudo -i

2. Your Password

3. fdisk -l

Note:In this stage, you MUST examine the output of the above command.Depending on the output you get, the command line that you are supposed totype/insert inside your "Terminal" window MUST relate to what you see (asoutput), in this step (with the "fdisk -l").

If you do NOT know (or remember) how to do this, go back & read Part 1 (of thisTutorial).

4. To temporary mount a Partition, type:

Page 12: Share Linux

a. In the case of an NTFS (Hard Drive) Partition:

cd / ( < - To move to the root directory)cd mnt ( < - To move to the subdirectory named "/mnt")(Alternatively you could type: "cd /mnt" – but sometimes this does NOT work)mkdir ntfs_files ( < - To create a folder/directory named "ntfs_files")

Note:If you have already created a folder/directory named "ntfs_files" in the past,omit the above 3 steps.

mount -t ntfs -o ro,umask=0222 /dev/sdb1 /mnt/ntfs_files

Note 1:The additional options "-o ro" & "umask=0222" will leave it locked in ReadOnly ("ro") mode & still grant everyone rights to it (for reading).This way, there is NO chance of accidentally writing to the NTFS drive (a badidea in Linux).So, basically ANY user can ONLY Read the NTFS Partition.As I explained earlier, you can NOT Write anything or Execute anything fromthe NTFSPartition. Ubuntu will restrict ANY of your attempts to write into that Partition.That is restricted by the "222" number part.Unfortunately this is a Windows problem, NOT an Ubuntu one.Windows NTFS Format is "sealed" only for Windows OS use...There are ways, to make it possible, to write to a Windows NTFS Partition,but they are NOT 100% safe & they might result in damaging your NTFSPartition. ... and you do NOT want to do that... do you?Note 2:This Tutorial's goal is NOT to teach you how to do that...Again, in Ubuntu, when somebody wants to pass files from an EXT3 (Ubuntu)Partition, to an NTFS (Windows) Partition, his files have to (first) pass from anintermediary FAT32 Partition.Ubuntu has NO problem in dealing with FAT32 Partitions. So, people save theirfiles in a FAT32 Partition & they (then) use Windows to access & get their filesfrom the FAT32 Partition to their NTFS one.

b. In the case of an FAT32 (Hard Drive) Partition:

cd / ( < - To move to the root directory)cd mnt ( < - To move to the subdirectory named "/mnt")(Alternatively you could type: "cd /mnt" – but sometimes this does NOT work)mkdir fat32_files ( < - To create a folder/directory named "fat32_files")

Note:If you have already created a folder/directory named "fat32_files" in the past,omit the above 3 steps.

mount -t vfat /dev/sdb5 /mnt/fat32_files

Page 13: Share Linux

c. In the case of a CD Rom:

mount -t iso9660 /dev/hdd /media/cdrom0

Note:You do NOT need to create a folder/directory for accessing a CD-Rom drive.Ubuntu's default directory for accessing such devices, is the "/media"directory.

d. In the case of a (Windows Formatted) Floppy Disk:

mount -t vfat /dev/fd0 /media/floppy0

Note 1:To access a Linux Floppy, you would ONLY change "vfat" to "ext2".

Note 2:You do NOT need to create a folder/directory for accessing a CD-Rom drive.Ubuntu's default directory for accessing such devices, is the "/media"directory.

e. In the case of a (Windows Formatted) USB Stick:

mount -t vfat /dev/sdh1 /media/usbdisk

Note:To access a Linux USB Stick, you would ONLY change "vfat" to "ext2".Ubuntu's default directory for accessing such devices, is the "/media"directory.

Note:According to the Ubuntu OS "rules":

a. All Hard Drive Partitions should be mounted under the "/mnt" directory.b. All Media Drives (e.g. CD-ROM, Floppy Disk, USB Stick, etc.), should be mountedunder the "/media" directory.

Following the above "rule" is NOT obligatory, but it is the common approach.

Part 4 – Unnounting Partitions (manual/temporary mount mode):

Launch a Terminal & type:

1. sudo -i

2. Your Password

3. To temporary unmount a Partition, type:

Page 14: Share Linux

a. In the case of an NTFS (Hard Drive) Partition:

umount /mnt/ntfs_files ( < - To unmount the Partition accessed from "ntfs_files" folder)

or:

umount /mnt/ntfs_os ( < - To unmount the Partition accessed from "ntfs_os" folder)

b. In the case of an FAT32 (Hard Drive) Partition:

umount /mnt/fat32_files ( < - To unmount the Partition accessed from "fat32_files" folder)

c. In the case of a CD Rom:

umount /media/cdrom0

d. In the case of a Floppy Disk:

umount /media/floppy0

e. In the case of a USB Stick:

umount /media/usbdisk

Note:Notice that the unmount command that you MUST type is: "umount" & NOT "unmount".

Mounting Partisi NTFS dan FAT32Berikut ini artikel yang saya dapatkan ketika saya browsing mencari caramemount drive NTFS atau FAT di Ubuntu.Ada beberapa pilihan mounting partisi di Ubuntu, yaitu :1. mount/unmount Partisi Windows (NTFS) secara manual (Read Only)2. mount/unmount Partisi Windows (FAT) secara manual (read/write)3. mount Partisi Windows (NTFS) secara otomastis saat Boot Up (Read/Write)4. mountPartisi Windows (FAT) secara otomastis saat Boot Up (Read/Write)Mount/unmount secara manuall, nampaknya berguna kalau kita menjalankan Komputer kita denganLive CD. Sedangkan yang no.3 bagus untuk dipakai pada Ubuntu yang sudah terinstall di hardisk, agarkita tidak repot2 melakukan mounting setiap kita perlu data2 di hardisk NTFS kita.Melakukanmount/unmount di Ubuntu dilakukan dengan cara mengetikkan perintah2 pada “Terminal”,yaitu : Application–> Accessories–> Terminal.Ketikan perintah yang kita inginkan di Terminal setelah prompt / tanda “~$ ” . Berikut ini adalah perintah2 untuk mount/unmount Partisi windows.Dalam posting ini diasumsikan lokasi partisi Windows kita adalah /dev/hda1 . Local mount folder: /media/windows (di laptop saya, File system Windows ada di hda1 dan partsi data ada di hda5.Sedangkan partisi linux yag dibuatkan Ubuntu ada di hda3 dan hda6.) Jadi sesuaikan dengan lokasipartisi anda!

Page 15: Share Linux

Kali aja ada pembaca yang lebih ga ngerti dari saya; “unmount” itu artinya agar partisi Windows kitakembali tidak terbaca oleh Ubuntu.1. mount/unmount Partisi Windows (NTFS) secara manual (Read Only) :Mount :sudo mkdir /media/windowssudo mount /dev/hda1 /media/windows/ -t ntfs -onls=utf8,umask=0222 Unmount :sudo umount /media/windows/ 2. mount/unmount Partisi Windows (FAT) secara manual (read/write)Mount :sudo mkdir /media/windowssudo mount /dev/hda1 /media/windows/ -t vfat -oiocharset=utf8,umask=000 Unmount :sudo umount /media/windows/ 3. mount Partisi Windows (NTFS) secara otomastis saat Boot Up (Read/Write)sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab Kemudian akan muncul Pop-up window, ganti kalimat terakhir pd pop-up window tsb dengan :/dev/hda1 /media/windows ntfs nls=utf8,umask=0222 0 0 (ubah hda1 dengan nama partisi windows kita, tapi biasanya file system Windows memang ada dihda1, sedangan partisi windows lainnya belum tentu sama). Kemudian Save untuk menyimpanperubahan settingan tadi.4. mount Partisi Windows (FAT) secara otomastis saat Boot Up (Read/Write)sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab Kemudian akan muncul Pop-up window, ganti kalimat terakhir pd pop-up window tsb dengan :/dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0 (ubah hda1 dengan nama partisi windows kita, tapi biasanya file system Windows memang ada dihda1, sedangan partisi windows lainnya belum tentu sama). Kemudian Save untuk menyimpanperubahan settingan tadi.Yang saya lakukan pada Laptop saya adalah no 2 & no. (dilaptop saya ada yg NTFS ada juga yang FAT(tadinya kirain Ubuntu bisa otomatis nge-mount partisi FAT–jadi partisi data sya format dari NTFS keFAT). Setelah di-mount, Reboot KomputerTerakhir, setelah mengetikan perintah “mount” di Terminal (kemudian tekan enter), maka akanditanya password kemudian masukan passwor rootnya.semoga berguna

MEMBACA FILE ISO

Page 16: Share Linux

Cara ini digunakan agar tidak membuang cd atau dvd kalau cuman membaca isinya file .iso sebentar daripada di burning dahulu kemudian di baca.

Kita hanya menggunakan command di terminal:

Buat folder untuk meng-kaitkan file iso (dicontoh ini foldernya saya berinama cdimage) $ mkdir cdimage Mount file iso yang akan kita baca ke folder yang kita buat. mount -t iso9660 -o loop file_iso_yg_akan _dibaca.iso cdimage File iso sudah terkait, dan siap dibaca

Atau pake Gmount-Iso

Gmount-Iso adalah user interface untuk perintah mount -o loop -t iso9660 nama_image.iso /lokasi-mount. Walaupun terlihat sederhana tetapi sangat berguna jika anda menginginkan mounting iso dengan menggunakan GUI.

InstalasiPada Ubuntu 10.04, Gmount-iso dapat di install dengan menggunakan perintah:

sudo apt-get install gmountiso

Untuk menjalankan Gmount-Iso dapat dilakukan dengan membuka Applications > System Tools > Gmount-iso atau tekan tombol Alt + F2 secara bersamaan, ketik gmountiso seperti terlihat pada gambar di bawah.

Page 17: Share Linux

Kemudian tekan tombol Run atau tekan tombol Enter, maka Gmount-iso akan segera berjalan.

Bagian Image File (.ISO) adalah tempat anda mengambil file iso yang akan di mount, bagian Mount Point adalah tempat (path/direktori) dimana iso akan dimounting. Jika kedua bagian tersebut telah lengkap maka klik tombol Mount. Buka tempat/direktori iso yang dimounting.

Selamat mecoba dan tetap semangat.

MEMBUAT FILE ISO

Applications-->Accecories-->Terminal

1. Untuk membuat file ISO dari folder/direktori ketikan perintah berikut:

Page 18: Share Linux

mkisofs -r -o backuphome.iso /home/binta/data/

Keterangan :

mkisofs : nama aplikasi untuk membuat file iso

-r : -rational-rock yang akan mengaktifkan informasi Rock Ridge (Ekstensi Rock Ridge memungkinkan nama file yang lebih panjang, symbolic links dan banyak kegunaan lainnya)

-o : Membuat nama file output

backuphome.iso : nama file iso yang akan digunakan

/home/binta/data/ : folder/direktori yang akan dijadikan file iso

2.Untuk membuat file ISO dari sebuah file ketikan perintah berikut :

mkisofs -r -o filebackup.iso /home/binta/iso.jpg

2.Untuk membuat file ISO dari sebuah kumpulan lagu berformat mp3 ketikan perintah berikut:

mkisofs -r -o backuplagu.iso /home/binta/data/*.mp3

3. Untuk membuat file ISO dari drive CD/DVD ketika perintah berikut

dd if=/dev/cdrom of=NamFileIso.iso bs=1024

/dev/cdrom : lokasi nama drive CD/DVD

Semoga Membantu

Cara Mount Harddisk / media di LINUXPosted on December 16, 2009 by Auril Arta Zeck Kadang2 waktu kita nginstall linux, secara ga sengaja kita lupa nge-mount harddisk kita yang lain, atau waktu kita nambah harddisk / media yg baru, gak langsung auto detect… naahh.. supaya drive kita kebaca, begini cara mount-nya….

Mount lewat GUI (Graphic User Interface) atau desktop biasa disini saya pake openSUSE11.2

Page 19: Share Linux

Jalankan YaST2 lalu pilih System -> Partitioner. Kalau ada warning yang keluar, klik Next ajayast2

Klik kanan pada Device yang ingin di mount lalu pilih edit…

d bagian Mounting Option, isi Mount Point dengan folder yang telah anda buat…

misalnya di sini saya menggunakan mount point “/windows/C”

setelah dipilih, klik “Finish”

lalu cek destinasi folder tempat anda me-mount drive anda dan lihat apa drive anda sudah di mount atau belum…

Page 20: Share Linux

nahhh… di folder “/windows/C/” punya saya sudah ter-mount isi dari harddisk saya yang berformat NTFS…. bagaimana? mudah,kan???

iya,lah.. kan pake GUI… sekarang lewat CLI (Command Line Interface).nyook…hehee

untuk mount lewat CLI, tinggal ketik:

mount (spasi) -t (spasi) ntfs-3g (spasi) /dev/sda1 (spasi) /windows/C

*keterangan*

“mount -t ntfs-3g” adalah command untuk me-mount device…

“/dev/sda1″ adalah drive yang akan di mount. daftar drive bisa dilihat dengan mengetik ‘fdisk’…

“/windows/C” adalah folder saya me-mount isi dari harddisk saya bisa juga diganti sesuka anda dengan syarat, folder harus dibuat sebelum proses mount dilakukan.

kalau “mount -t ntfs-3g /dev/sda1 /windows/C” gagal, bisa juga pake

“mount -t ntfs-3g /dev/sda1 /windows/C -o force”

*pakai huruf ‘o’ bukan angka nol

*tambahan “-o force” adalah opsi untuk ‘memaksa’ linux me-mount partisi tersebut…

Ok… lumayan gampang, kan??

selamat Mount, ya….^^

Page 21: Share Linux

Menginstal IDM (Internet Download Manager) Di Ubuntu Dan WindowsIDM - Ada banyak pilihan aplikasi IDM (Internet Download Manager) yang dapat kita gunakan pada Ubuntu 10.10. Namun di sini kami hanya akan menyampaikan cara menginstal IDM yang menurut kami paling mudah digunakan dan memiliki kemampuan untuk diintegrasikan bersama browser Firefox.

Pilihan kami jatuh pada "Uget", sebuah aplikasi IDM yang ringan namun memiliki kemampuan cukup mengagumkan. Seperti kebanyakan aplikasi IDM, uget memiliki fitur-fitur seperti: mutiple download, resume download, queue download, mendukung pengklasifikasian pen-download-an, cliboard monitoring dan yang tak kalah penting adalah kemampuannya untuk diintegrasikan bersama web browser populer Mozilla Firefox serta masih ada beberapa kelebihan lainnya.

Untuk dapat menginstall Uget pada Ubuntu, silahkan jalankan Synaptic. Pada kolom pencarian silahkan ketik "uget". Klik kana pada paket Uget yang ditemukan lalu pilih opsi "Mark for installation". Klik tombol "Apply" dan proses download serta instalasi akan segera dijalankan.

Jalankan Uget melalui menu Applications-Internet-Uget...

Page 22: Share Linux

Setelah Uget dijalankan, Anda dapat mulai melakukan pengaturan atau langsung menggunakannya untuk melakukan pen-download-an. Untuk melakukan pengaturan Anda dapat memilih menu "Edit" lalu memilih opsi "Settings.."

Mengintegrasikan Uget dengan Mozilla Firefox.

Untuk dapat mengintegrasikan Uget dengan Firefox, Anda membutuhkan sebuah plugin bernama "FlashGot". Jalankan Firefox, klik menu "Tools" lalu pilih menu "Add-on". Pada jendela "Add-on" pilih "Get Add-ons", pada kolom pencarian silahkan ketik "flashgot".

Setelah pengaya ditemukan, tekan tombol "Add to Firefox". Jika diperlukan merestart Firefox, silahkan restart browser Anda, lalu kembali ke menu "Add-on" pada tab "Extensions" plih "FlashGot", tekan tombol "Preferences" untuk melakukan pengaturan..

Page 23: Share Linux

Pada jendela "FlasfhGot Options" tab "General", pilih Uget pada menu dropdown "Download Manager". Kini Uget telah berhasil Anda gabungkan bersama Firefox.

Silahkan coba mendownload melalui Firefox, ketika opsi penyimpanan ditampilkan, atur supaya Firefox melakukan pen-download-an menggunakan "FlashGot" yang telah diatur untuk menggunakan Uget sebagai IDM...

Setelah pengaturan dilakukan Anda dapat menekan tombol "OK" dan ketika jendela Uget dijalankan Anda dapat menentukan dimana Uget akan meletakkan file yang akan di-download...

Page 24: Share Linux

Silahkan Klik "OK" dan proses pen-download-an akan mulai dijalankan...

Anda juga dapat menggunakan Uget untuk mendownload file yang dikehendaki dengan cara memasukkan url file yang diinginkan secara langsung melalui menu "Download" lalu memilih menu "New"...

Selamat mencoba...

Update:Sehubungan dengan adanya permintaan dari pengguna Windows yang ingin menggunakan Uget sebagai IDM, kami memutuskan untuk menambahkan link download bagi pengguna Windows.

Untuk dapat menggunakan Uget pada Windows, Anda memerlukan "gtk2 runtime" terinstal pada komputer. Silahkan download dan instal "gtk2 runtime" terlebih dahulu lalu Anda dapat menginstal Uget for Windows dan mengintegrasikannya bersama Firefox. Adapun cara pengintegrasian keduanya sama dengan cara yang dilakukan pada Ubuntu di atas...

2 langkah Download Youtube di Ubuntu 10.10Siapa yang enga kenal youtube ? Situs penyedia segala macam video ini sangat populer. Apalagi disaat heboh video Briptu norman, sinta jojo, dll,

Heeeeemmmmm……. let's go berburu gan.Postingan kali ini akan membahas soal download di youtube atau videonya, tapi bagaimana cara downloadnya di komputer linux Ubuntu.

Di ubuntu kamu bisa download video youtube dengan cara sederhana gan. Ikuti aja nih …..

1. Lakukan install youtube-dl dari terminal (aplikasi yang sangat kecil ukurannya).sudo apt-get install youtube-dlBuat yang lebih suka tampilan grafis silahkan download youtube-dl disini

Page 25: Share Linux

Setelah aplikasi youtube-dl terinstal, sekarang kamu bisa mulai untuk downloadnya

2. Copy URL address video yang mau kamu download dari browser kemudian buka terminal dan ketikkan youtube-dl [alamat URL videonya]

Untuk mengcopy alamat url dari browser tekan Shift + Ctrl + V atau klik menu EDIT | Paste di terminal (hal ini untuk menghindari salah ketik, karena biasa alamat url youtube panjang-panjang gan)

Misal : youtube-dl http://www.youtube.com/watch?sv=1km5GGoEJlM&feature=PlayList&p=4A07FE126F905284&playnext_from=PL&index=0Untuk langsung mengganti judul bisa menggunakan youtube-dl -o namafile [alamat URL]

Misal : youtube-dl bandito http://www.youtube.com/watch?v=1km5GGoEJlM&feature=PlayList&p=4A07FE126F905284&playnext_from=PL&index=0

Maka akan tersimpan video dengan nama bandito.flvFile yang kamu download akan tersimpan di folder home kamu.Selamat mencoba ………

Cara Backup Paket yang telah di Install di UbuntuWritten by 404 | 02/05/2012 | 0

Bosan bolak-balik install ulang? :) , trus bosan install software nya satu per satu lagi? Nah, mungkin tulisan saya ini bisa membantu, :) . Kali ini saya ingin berbagi cara untuk backup aplikasi/program yang telah di install di ubuntu. Kita hanya membutuhkan paket dpkg-repack dan fakeroot.

langsung saja masuk ke langkah-langkahnya (maaf bagi yang sudah tau). langsung saja buka Terminal, dan masuk jadi superuser mode :

contoh@contoh$:sudo -s

Dan masukkan password anda. Lalu install paket yang dibutuhkan:

root@contoh#:apt-get install dpkg-repack fakeroot

Lalu buat satu folder tempat anda menyimpan paket hasil backup. dan pindah ke direktory tsb. (disini saya membuat folder di /home/deb/)

root@contoh#:mkdir /home/deb

root@contoh#:cd /home/deb

Cara mulai proses backupnya :)

root@contoh#:fakeroot -u dpkg-repack `dpkg --get-selections | grep install | cut -f1`

Silahkan tunggu hingga proses nya selesai. :)

Page 26: Share Linux

Cara Backup Paket yang telah di Install di Ubuntu

Setelah itu kita tidak perlu men download seluruh paket2 tsb lagi. Anda bisa install langsung dari paket yang telah di backup, atau copykan file yang telah di backup tsb ke folder /var/cache/apt/archives.

Jadi beban lebih ringan saat menginstall program2 tersebut lagi.

Semoga bermanfaat :)

UBUNTU 10.10 THEMES BISIGI

We have already posted some time ago about Nice Ubuntu themes for Lucid Users and this is updated for Maverick Meerkat users now.

Install bisigi themes in Ubuntu 10.10 (Maverick)

Open the terminal and run the following commands

sudo add-apt-repository ppa:bisigi

sudo aptitude update

sudo apt-get install bisigi-themes

or click on apt://bisigi-themes

If you want to install each theme separately use the following commands

AquaDreams: sudo apt-get install aquadreams-themeUbuntu Sunrise: sudo apt-get install ubuntu-sunrise-themeBamboo-Zen: sudo apt-get install bamboo-zen-themeStep into Freedom: sudo apt-get install step-into-freedom-themeTropical: sudo apt-get install tropical-themeExotic: sudo apt-get install exotic-themeBalanzan: sudo apt-get install balanzan-themeWild Shine: sudo apt-get install wild-shine-themeInfinity: sudo apt-get install infinity-themeShowtime: sudo apt-get install showtime-themeOrange: sudo apt-get install orange-themeEllanna: sudo apt-get install ellanna-themeAirLines: sudo apt-get install airlines-themeEco: sudo apt-get install eco-theme

Halo...

Page 27: Share Linux

pertama mas harus tau nomer port untuk tiap service. Cara cepatnya bisa dengan melihat isi file /etc/services. Contoh, web server defaultnya di port 80 dengan tipe TCP

Jadi kira2x untuk set dengan skenario tersebut sbb:

Code: Select all iptables -P INPUT DROP iptables -A INPUT -t tcp -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A INPUT -t udp -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A INPUT -t tcp --dport 80 -j ACCEPT

penjelasannya:baris 1: mengubah default policy chain input menjadi drop. dengan demikian jika tidak ada rule yang match, maka di drop.baris 2: menerima semua koneksi tcp yang merupakan lanjutan atau terkait dengan koneksi sebelumnya. Ini untuk mengatasi kondisi seperti FTP, dimana port 21 dan 20 digunakan saling bergantian, sementara kita cuma membuka port 21baris 3: sama seperti baris 2, cuma ini untuk udpbaris 4: menerima koneksi TCP yang mengarah ke port 80 (--dport: destination port)

semoga membantu...silahkan dikembangkan lebih lanjut....

Cara Install dan Update ClamAV di UbuntuMarch 19, 2012 Posted by M-Indrawan.com in : Linux , trackback

Sebenarnya linux adalah sistem operasi yang cukup aman drpd windows, jadi menurut saya tidak terlalu penting menginstal ClamAV di linux. tapi tidak ada salahnya jika anda ingin mencoba dan berjaga-jaga untuk melindungi sistem anda dari virus.

Cara Instal ClamAV + ClamTK for GUI

@ Install ClamAVDi Terminal ketik sudo aptitude install clamav clamav-daemon clamav-freshclam

@ Download GTK frontend ClamTKDi Terminal ketik wget http://puzzle.dl.sourceforge.net/sourceforge/clamtk/clamtk_3.05-1_all.deb

@ Instal ClamTKDi Terminal ketik sudo dpkg -i clamtk_3.05-1_all.deb

Update ClamAV di Ubuntu

Page 28: Share Linux

Hal pertama yang dilakukan adalah mengunjungi situs web ClamAV website untuk mendapatkan latest definitions (silakan klik kanan dan pilih link as… pada menu) dan simpan file-file tersebut pada home directory anda, atau gunakan perintah di terminal dan lakukan perinta-perintah dibawah ini..

wget http://db.local.clamav.net/main.cvd

kemudian..

wget http://db.local.clamav.net/daily.cvd

dan..

sudo mv daily.cvd main.cvd /var/lib/clamav

Ketika akan memindahkan file hasil download ke direktori yang sebenarnya yaitu direktori /var/lib/clamav . Anda harus mengisi password admin dan artinya anda telah berhasil mengupdate secara lengkap virus definitions :D

WARNING: Hal ini hanya berlaku jiga tim ClamAV team menggunakan link yang sama untuk daily updates?

Untuk tetap bisa mengupdate virus definition-nya, buka Terminal dan tulis :

wget http://db.local.clamav.net/daily.cvd

Ketika bisa mendownload virus definition terbarunya ke direktori home, kemudia ketik..

sudo mv daily.cvd /var/lib/clamav

..untuk mentransfer mereka ke direktori yang tepat lagi.

Tambahan : Untuk update engine dari ClamAV

sudo add-apt-repository ppa:ubuntu-clamav/ppasudo apt-get updatesudo apt-get upgrade

Cara Melihat Proses Yang Sedang Aktif dengan Perintah PSPosted by Arie Iswadi on Januari 5, 2012 | No Comments

Setiap sistem Linux (Unix, BSD, MAC OS X, dan lainnya) pasti disertai dengan perintah/command ps. Perintah tersebut berfungsi untuk menampilkan proses status dari suatu aplikasi yang sedang berjalan di sistem. Pada posting sebelumnya saya sudah menuliskan cara menggunakan perintah ps pada sistem operasi linux, tetapi saya rasa kurang lengkap dan kurang mendetail. Maka saya tuliskan versi yang lebih lengkapnya pada postingan kali ini.

Untuk menampilkan proses yang sedang berjalan pada user tertentu saja anda bisa menggunakan perintah ps seperti beberapa contoh dibawah ini.

Page 29: Share Linux

Menampilkan proses yang sedang berjalan pada current user

arie@oneiric:~$ ps PID TTY TIME CMD 2003 pts/0 00:00:00 bash 3482 pts/0 00:00:00 ps

Menampilkan proses yang sedang berjalan pada user arie

arie@oneiric:~$ ps -u arie PID TTY TIME CMD 1324 ? 00:00:00 gnome-session 1362 ? 00:00:00 ssh-agent 1365 ? 00:00:00 dbus-launch 1366 ? 00:00:07 dbus-daemon 1368 ? 00:00:00 gvfsd 1374 ? 00:00:00 gvfs-fuse-daemo 1386 ? 00:00:00 gnome-keyring-d...

Menampilkan proses yang sedang berjalan pada user arie disertai dengan informasi CPU/MEM

arie@oneiric:~$ ps -u arie uUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDarie 1324 0.0 0.4 47428 8448 ? Ssl 06:09 0:00 /usr/bin/gnome-session --session=ubuntuarie 1362 0.0 0.0 3856 180 ? Ss 06:09 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-searie 1365 0.0 0.0 3720 452 ? S 06:09 0:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-session --session=ubuarie 1366 0.2 0.1 6820 2904 ? Ss 06:09 0:07 //bin/dbus-daemon --fork --print-pid 8 --print-address 10 --sessionarie 1368 0.0 0.1 9120 2244 ? S 06:09 0:00 /usr/lib/gvfs/gvfsdarie 1374 0.0 0.1 31560 2224 ? Ssl 06:09 0:00 /usr/lib/gvfs//gvfs-fuse-daemon /home/arie/.gvfsarie 1386 0.0 0.1 43484 3400 ? Sl 06:09 0:00 /usr/bin/gnome-keyring-daemon --start --components=pkcs11...

menampilkan semua proses yang sedang berjalan untuk user arie dengan informasi PPID (Parent process ID of process)

arie@oneiric:~$ ps -fu arieUID PID PPID C STIME TTY TIME CMDarie 1324 994 0 06:09 ? 00:00:00 /usr/bin/gnome-session --session=ubuntu

Page 30: Share Linux

arie 1362 1324 0 06:09 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-session --session=uarie 1365 1 0 06:09 ? 00:00:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-session --session=ubuntuarie 1366 1 0 06:09 ? 00:00:07 //bin/dbus-daemon --fork --print-pid 8 --print-address 10 --sessionarie 1368 1 0 06:09 ? 00:00:00 /usr/lib/gvfs/gvfsd...

Menampilkan semua proses yang sedang berjalan pada user arie dengan informasi SZ (jumlah space swap yang dibutuhkan) dan PSR (Processor process)

arie@oneiric:~$ ps -Fu arieUID PID PPID C SZ RSS PSR STIME TTY TIME CMDarie 1324 994 0 11857 8448 1 06:09 ? 00:00:00 /usr/bin/gnome-session --session=ubuntuarie 1362 1324 0 964 180 0 06:09 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-sesarie 1365 1 0 930 452 0 06:09 ? 00:00:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-session --session=ubunarie 1366 1 0 1705 2904 0 06:09 ? 00:00:07 //bin/dbus-daemon --fork --print-pid 8 --print-address 10 --sessionarie 1368 1 0 2280 2244 0 06:09 ? 00:00:00 /usr/lib/gvfs/gvfsdarie 1374 1 0 7890 2224 0 06:09 ? 00:00:00 /usr/lib/gvfs//gvfs-fuse-daemon /home/arie/.gvfsarie 1386 1 0 10871 3400 1 06:09 ? 00:00:00 /usr/bin/gnome-keyring-daemon --start --components=pkcs11...

Contoh-contoh penggunaan perintah ps diatas digunakan untuk menampilkan informasi proses yang sedang berjalan pada salah satu user saja, untuk menampilkan informasi proses yang sedang berjalan secara keseluruhan anda bisa menggunakan contoh-contoh yang ada di bawah ini

Menampilkan keseluruhan proses yang sedang berjalan

arie@oneiric:~$ ps -e PID TTY TIME CMD 1 ? 00:00:00 init 2 ? 00:00:00 kthreadd 3 ? 00:00:00 ksoftirqd/0 5 ? 00:00:00 kworker/u:0 6 ? 00:00:00 migration/0 7 ? 00:00:00 migration/1 9 ? 00:00:00 ksoftirqd/1 11 ? 00:00:00 cpuset...

Menampilkan semua proses yang sedang berjalan di system dengan format long listing

Page 31: Share Linux

arie@oneiric:~$ ps -elF S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD4 S 0 1 0 0 80 0 - 830 schedu ? 00:00:00 init1 S 0 2 0 0 80 0 - 0 schedu ? 00:00:00 kthreadd1 S 0 3 2 0 80 0 - 0 schedu ? 00:00:00 ksoftirqd/05 S 0 5 2 0 80 0 - 0 schedu ? 00:00:00 kworker/u:01 S 0 6 2 0 -40 - - 0 schedu ? 00:00:00 migration/01 S 0 7 2 0 -40 - - 0 schedu ? 00:00:00 migration/11 S 0 9 2 0 80 0 - 0 schedu ? 00:00:00 ksoftirqd/11 S 0 11 2 0 60 -20 - 0 schedu ? 00:00:00 cpuset1 S 0 12 2 0 60 -20 - 0 schedu ? 00:00:00 khelper...

Menampilkan semua proses yang sedang berjalan dengan format full listing

arie@oneiric:~$ ps -efUID PID PPID C STIME TTY TIME CMDroot 1 0 0 06:09 ? 00:00:00 /sbin/initroot 2 0 0 06:09 ? 00:00:00 [kthreadd]root 3 2 0 06:09 ? 00:00:00 [ksoftirqd/0]root 5 2 0 06:09 ? 00:00:00 [kworker/u:0]root 6 2 0 06:09 ? 00:00:00 [migration/0]root 7 2 0 06:09 ? 00:00:00 [migration/1]root 9 2 0 06:09 ? 00:00:00 [ksoftirqd/1]root 11 2 0 06:09 ? 00:00:00 [cpuset]root 12 2 0 06:09 ? 00:00:00 [khelper]...

Menampilkan semua proses yang sedang berjalan di system dengan format extra full listing

arie@oneiric:~$ ps -eFUID PID PPID C SZ RSS PSR STIME TTY TIME CMDroot 1 0 0 830 1936 0 06:09 ? 00:00:00 /sbin/initroot 2 0 0 0 0 0 06:09 ? 00:00:00 [kthreadd]root 3 2 0 0 0 0 06:09 ? 00:00:00 [ksoftirqd/0]root 5 2 0 0 0 0 06:09 ? 00:00:00 [kworker/u:0]root 6 2 0 0 0 0 06:09 ? 00:00:00 [migration/0]root 7 2 0 0 0 1 06:09 ? 00:00:00 [migration/1]root 9 2 0 0 0 1 06:09 ? 00:00:00 [ksoftirqd/1]root 11 2 0 0 0 0 06:09 ? 00:00:00 [cpuset]

Page 32: Share Linux

root 12 2 0 0 0 0 06:09 ? 00:00:00 [khelper]...

menampilkan semua proses yang sedang berjalan dengan gaya tampilan BSD (short)

arie@oneiric:~$ ps ax PID TTY STAT TIME COMMAND 1 ? Ss 0:00 /sbin/init 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 5 ? S 0:00 [kworker/u:0] 6 ? S 0:00 [migration/0] 7 ? S 0:00 [migration/1] 9 ? S 0:00 [ksoftirqd/1] 11 ? S< 0:00 [cpuset] 12 ? S< 0:00 [khelper]...

Menampilkan semua proses yang sedang berjalan dengan gaya tampilan BSD (long)

arie@oneiric:~$ ps auxUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot 1 0.0 0.0 3320 1936 ? Ss 06:09 0:00 /sbin/initroot 2 0.0 0.0 0 0 ? S 06:09 0:00 [kthreadd]root 3 0.0 0.0 0 0 ? S 06:09 0:00 [ksoftirqd/0]root 5 0.0 0.0 0 0 ? S 06:09 0:00 [kworker/u:0]root 6 0.0 0.0 0 0 ? S 06:09 0:00 [migration/0]root 7 0.0 0.0 0 0 ? S 06:09 0:00 [migration/1]root 9 0.0 0.0 0 0 ? S 06:09 0:00 [ksoftirqd/1]root 11 0.0 0.0 0 0 ? S< 06:09 0:00 [cpuset]root 12 0.0 0.0 0 0 ? S< 06:09 0:00 [khelper]...

Pada beberapa proses yang sedang berjalan, ada kalanya satu proses menjalankan proses yang lain, naha nda dapat menampilkan hirarki dari proses yang sedang berjalan tersebut dengan menggunakan tampilan tree view menggunakan beberapa perintah berikut

menampilkan proses yang sedang berjalan dengan tampilan hirarki dilengkapi dengan process/session ID

arie@oneiric:~$ ps -ejH PID PGID SID TTY TIME CMD 2 0 0 ? 00:00:00 kthreadd 3 0 0 ? 00:00:00 ksoftirqd/0 5 0 0 ? 00:00:00 kworker/u:0 6 0 0 ? 00:00:00 migration/0 7 0 0 ? 00:00:00 migration/1

Page 33: Share Linux

...1 1 1 ? 00:00:00 init 341 340 340 ? 00:00:00 mountall 375 374 374 ? 00:00:00 upstart-udev-br 378 378 378 ? 00:00:00 udevd 736 378 378 ? 00:00:00 udevd 765 378 378 ? 00:00:00 udevd....

menampilkan hirarki dari proses yang berjalan dengan tampilan output BSD

arie@oneiric:~$ ps axjf PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND 0 2 0 0 ? -1 S 0 0:00 [kthreadd] 2 3 0 0 ? -1 S 0 0:00 \_ [ksoftirqd/0] 2 5 0 0 ? -1 S 0 0:00 \_ [kworker/u:0] 2 6 0 0 ? -1 S 0 0:00 \_ [migration/0] 2 7 0 0 ? -1 S 0 0:00 \_ [migration/1]....994 1096 1096 1096 tty7 1096 Ss+ 0 2:29 \_ /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -backg 994 1324 1324 1324 ? -1 Ssl 1000 0:00 \_ /usr/bin/gnome-session --session=ubuntu 1324 1362 1362 1362 ? -1 Ss 1000 0:00 \_ /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-se 1324 1391 1324 1324 ? -1 Sl 1000 0:02 \_ /usr/lib/gnome-settings-daemon/gnome-settings-daemon 1324 1467 1324 1324 ? -1 Sl 1000 1:47 \_ compiz 1467 1642 1642 1642 ? -1 Ss 1000 0:00 | \_ /bin/sh -c /usr/bin/compiz-decorator 1642 1643 1642 1642 ? -1 S 1000 0:01 | | \_ /usr/bin/unity-window-decorator 1467 1995 1995 1995 ? -1 Ss 1000 0:00 | \_ /bin/sh -c gnome-terminal 1995 1996 1995 1995 ? -1 Sl 1000 0:16 | \_ gnome-terminal 1996 2002 1995 1995 ? -1 S 1000 0:00 | \_ gnome-pty-helper 1996 2003 2003 2003 pts/0 3611 Ss 1000 0:00 | \_ bash 2003 3611 3611 2003 pts/0 3611 R+ 1000 0:00 | \_ ps axjf...

Menampilkan proses yang sedang berjalan dengan tampilan hirarki tree/pohon

arie@oneiric:~$ pstreeinit─┬─NetworkManager───{NetworkManager} ├─accounts-daemon───{accounts-daemo} ├─acpid

Page 34: Share Linux

├─apache2─┬─apache2 │ └─2*[apache2───26*[{apache2}]] ├─atd ├─avahi-daemon───avahi-daemon ├─bamfdaemon───{bamfdaemon}...

Semoga postingan ini bermanfaat untuk anda semua, umpan balik dari anda di kotak komentar merupakan sesuatu yang sangat bermanfaat untuk saya, Salam.Kata kunci artikel ini adalah :cara liat program yang sedang berjalan ubuntu,cara melihat proses daemon yang berjalan di ubuntu,melihat aplikasi yang running di ubuntu,melihat proses ubuntu,melihat proses di linux,cara melihat pid proses,cara melihat aplikasi yang sedang berjalan di ubuntu,melihat program yang sedang berjalan pada ubuntu,melihat service yang sedang berjalan di ubuntu,melihat service yang berjalan di ubuntu server

Cara Install SSH di UbuntuOctober 17, 2011 meedjo Leave a comment Go to comments

#Daripada terendap di draff mending gw publish aja… habis bingung mo mosting apa :D

*********

SSH diperlukan ketika kita mo remote server bisa dari windows atau dari linux.

Langkah – langkah yang dilakukan seperti di bawah ini :

1. install paket ssh

sudo apt-get install ssh

Install sudah selesai, SSH pun bisa langsung digunakan dengan default port adalah 22. Namun untuk menghindari dan meminimalisir ganguan dari orang2 yang pinter :D yang suka iseng, alahngkah baiknya portnya kita samarkan alias di ganti saja sesuai selera. caranya seperti di bawah in…..

2. Konfigurasi file sshd_config

sudo nano /etc/ssh/sshd_config

Setelah terbuka, cari kata / kalimat Port 22 di ganti dengan port 1368 ( penggantian port bebas, silahkan tentukan sendiri ).

Selanjutnya cari tulisan PermitRootLogin yes ganti dengan PermitRootLogin no , ini dimaksudkan agar ketika orang atau kita lagi remote server terseut, tidak bisa konek langsung dengan login root (akses root) , jadi harus terlebih dahulu lewat user biasa.

Page 35: Share Linux

3. Simpan dengan menekan ctrl+x tekan y kemudian enter, setelah itu restart sshnya dengan cara seperti di bawah ini

sudo /etc/init.d/ssh restart

Tes hasil konfigurasi dengan cara buka putty, masukan ip server, dan juga jangan lupa port yang telah kita set di file konfigurasi ssh tadi.

Page 36: Share Linux

Viva Linux…

Backtrack 5 Tema MacXPosted by ady462 on Februari 11, 2012

:-D Di pagi hari ini saya akan memberikan tutorial Install Theme MacX di Backtrack 5. Dan hal ini berhasil pada netbook saya loe :-DOke yah seperti biasa pergi ke terminal :-) .

wget https://downloads.sourceforge.net/project/macbuntu/macbuntu-10.04/v2.2/Macbuntu-10.04.tar.gz -O /tmp/Macbuntu-10.04.tar.gz tar xzvf /tmp/Macbuntu-10.04.tar.gz -C /tmp cd /tmp/Macbuntu-10.04

Untuk yang ini jika anda mempunyai user lain di backtrack selain root maka anda ./install.sh tapi jika anda tidak mempunyai user lain maka edit dulu skrip install. anda cari skrip dibawah ini dan hapus setelah itu save.

#chk_user() { echo “” echo “Checkin script user…” if [ $(whoami) = "root" ] then echo “Failed.” echo “Root user not allowed, please run this script as a regular user.” echo “Exiting…” exit 1; fi echo “Passed” }

Page 37: Share Linux

/install.sh

Install dan setting VNC di Ubuntu

24 August 2009 in tutorialTags: install, remote, server, tutorials, ubuntu, vnc, vnc server, vnc viewer, windows

Awas, ini postingan dengan materi yang udah basbang. Sengaja ditulis dengan tujuan biar nggak lupa, apalagi selama ini aku cuma bergantung dengan situs referensi yang sewaktu-waktu bisa down.

Hmm… postingan ini ngomongin tentang remote system. Bagaimana cara Anda untuk remote system? SSH? Telnet? yap, itu adalah cara yang paling umum. Tapi bagi pemula, akan serem rasanya kalo harus berhadapan dengan konsole hitam dan perintah aneh yang blom tentu bener jalaninnya.

Nah, ada sebuah teknologi bernama VNC. Ini saya kutip dari Wikipedia tentang VNC :

Virtual Network Computing (VNC) is a graphical desktop sharing system which uses the RFB protocol to remotely control another computer. It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network.

Jadi intinya kita bisa remote komputer lain dengan tampilan grafis, dan tentu saja akan lebih mudah dalam pengoperasiannya.

Cara Pembuatan

Pertama kita harus meng-enable-kan fitur Remote Access (XDMCP) :

System –>> Administration –>> Login Window

Buka tab Remote –>> pilih style Same as Local

Klik tombol Configure XDMCP –>> uncheck pilihan Honor indirect request

Langkah kedua, yaitu mengedit file /etc/X11/gdm/gdm.conf atau /etc/gdm/gdm.conf melalui konsole. Anda cukup memilih salah satu lokasi file konfigurasi itu. Ini dikarenakan di beberapa distro, letak file gdm.conf berbeda tempat. Dan langkah-langkah selanjutnya akan menggunakan konsole.

sudo gedit /etc/X11/gdm/gdm.conf atau sudo gedit /etc/gdm/gdm.conf Cari tab [xdmcp] di file tersebut, kemudian set Enable=True Cari tulisan berikut : RemoteGreeter=/usr/lib/gdm/gdmlogin, kemudian hapus tanda # didepannya.

Page 38: Share Linux

Langkah ketiga, install aplikasi yang dibutuhkan. Pastikan Anda sudah terhubung ke Internet. Saya blom pernah coba via DVD Repo, kalo ada yang bisa / gagal tolong kasih komentar ya.

sudo apt-get install vnc4server xinetd

Setelah semua terinstall dengan baik, selanjutnya adalah membuat password VNC

sudo vncpasswd /root/.vncpasswd

Masukkan password untuk VNC, kalo bisa sih beda dengan password ubuntu anda. Masalah keamanan aja kok. Langkah berikutnya adalah menambahkan service VNC ke xinetd.

Buat file : /etc/xinetd.d/Xvnc

sudo gedit /etc/xinetd.d/Xvnc

Masukkan kode berikut kedalam file /etc/xinetd.d/Xvnc

service Xvnc { type = UNLISTED disable = no socket_type = stream protocol = tcp wait = yes user = root server = /usr/bin/Xvnc server_args = -inetd :1 -query localhost -geometry 1024×768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES port = 5901 }

Anda bisa mengganti ukuran resolusi sesuai dengan kebiasaan Anda. Misal diganti ke 800×600 atau lainnya.

Langkah berikutnya adalah merestart xinetd

sudo /etc/init.d/xinetd stop sudo killall Xvnc sudo /etc/init.d/xinetd start

Selesaaiii!!!!

Cara mencobanya, masih dari konsole ketikan perintah berikut :

vncviewer localhost:1

Page 39: Share Linux

Kalo nggak ada trobel, maka Anda akan diminta memasukkan password VNC, kemudian login screen akan muncul di layar monitor Anda.

Bagaimana akses dari komputer lain?

Kalo pakai Windows, cukup install VNC Client. Di kantor saya pakai TightVNC. Kemudian masukkan IP Address dan port VNC Server. Contohnya :

192.168.0.1::5901

Cara Setting Modem Smartfren EC1261-2 pada UBUNTU

Gk tau kenapa ubuntu (11.10) tidak bisa mendeteksi nih modem (HUAWEI EC1261-2) secara otomatis dan masih detik ini saya juga masih bingung dgn penyebabnya. Tidak seperti modem sebelumnya (SmartFren ZTE 2726) yang sangat friendly, tinggal colok, Ubuntu langsung mengenali. Baru 1hari saya baru temuin solusinya sampai harus reinstall Ubuntu 11.10 saya (padahal jg sia-sia), harap maklum pemula linux ..namanya juga masih baru nyemplung . Langsung aja wes.

sebelumnya anda harus connect dlo melalui wifi atau semacamnya klo gx da wifi pinjem lepi teman hehehe:D

1) Download usb-modeswitch-data dan install dengan cara klik 2x atau ketik

$ sudo dpkg -i usb-modeswitch-data_20100826-1+squeeze0_all.deb

2) Download usb-modeswitch dan install dengan cara klik 2x atau ketik

$ sudo dpkg -i usb-modeswitch_1.1.4-2_i386.deb

Sesuaikan dengan prosessor anda, karena saya pke intel maka *i386 yang saya download

3) Lakukan cek modem anda pada daftar USB yang dikenali oleh Ubuntu yang secara default dikenali ubuntu sebagai media penyimpanan dengan cara

$ lsusb

dan hasilnya ketika modem dicolokin di laptop adalah 12d1:1505 (kode 1505 ini KADANG beda walaupun sama2x EC1261-2)

4) Cari file 12d1:1505 didalam folder/directory /etc/usb_modeswitch.d/, dan kalau tidak ada buat file di directory tsb dengan nama 12d1:1505 dengan cara

$ sudo gedit /etc/usb_modeswitch.d/12d1:1505

dan isikan file tsb dengan script berikut

######################################################### Huawei, newer modemsDefaultVendor= 0x12d1

Page 40: Share Linux

DefaultProduct=0x1505TargetVendor= 0x12d1TargetProductList="1001,1406,140b,140c,1412,141b,14ac"CheckSuccess=20MessageContent="55534243123456780000000000000011062000000100000000000000000000"

5) Tambahkan script berikut kedalam file /lib/udev/rules.d/40-usb_modeswitch.rules

ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1505", RUN+="usb_modeswitch '%b/%k'"

taruh script tsb setelah tulisan LABEL=”modeswitch_rules_begin”

6) Dan yang terakhir adalah lakukan

$ sudo usb_modeswitch -c /etc/usb_modeswitch.d/12d1:1505

dan seharusnya modem akan langsung terdeteksi, dan kalau masih belum terdeteksi coba RESTART Ubuntu anda. Pada dasarnya driver usb nya sudah tertanam pada kernel ubuntu, akan tetapi karena secara default ubuntu mengenali usb modem tsb sebagai usb-storage, maka diperlukan cara untuk merubah ke usb-serial melalui step 4,5 dan 6 seperti diatas.

Setelah modem terdeteksi ada dua cara untuk dial ke internet yaitu menggunakan Network Manager atau wvdial atau gnome-ppp (GUI wvdial). Nah untuk wvdial caranya sbb

1) Download wvdial dan install, caranya

$ sudo apt-get install wvdial

2) Ubah file wvdial.conf

$ sudo gedit /etc/wvdial.conf

dan isikan file tsb dengan script berikut

[Dialer smartku]Init1 = ATZInit2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0Stupid Mode = 1Modem Type = Analog ModemCommand Line = ATDTISDN = 0New PPPD = yesPhone = #777Modem = /dev/ttyUSB0Username = smartPassword = smart

Page 41: Share Linux

Baud = 460800

3) Dan untuk dial lakukan

$ sudo wvdial smartku

SELESAI !!! silahkan klo ada yg mo nambahin.

Memang terlihat rada ribet, tapi beginilah linux kalau berhadapan dengan device yang tegolong baru. Cara diatas bisa dimanfaatkan untuk modem2x usb lainnya. Kalau ada yg salah mohon dikoreksi ya gan, Selamat mencobaaa….

Tips tambahan untuk mempertahankan sinyal smartfren.pada Ubuntuketik perintah berikut pada terminal

$ tracepath www.google.com

hasilnya adalah IP seperti 10.20.30.XXdan lakukan ping seperti

$ ping 10.20.30.XX

*sesuaikan nilai XX nya

pada Windowsketik perintah berikut pada command prompt

c:/>tracert www.google.com

hasilnya adalah IP seperti diatasdan lakukan ping seperti

c:/>ping 10.20.30.XX -t

Coba lihat nilai time (ms) nya pada saat PING, semakin besar nilainya semakin jelek sinyal smartfren nya dan sebaliknya.

Install Hamachi Pada Ubuntu ::

Hm, habis instalasi ubuntu, eh kuk kepingin Masang Hamachi ya, supaya biar bisa di remote dari rumah :: padahal itu komputer ngak pake ip Publik ::ya.. Mau instal OpenVpn eh .. kuk berat :: males downloadnya :Pjadi ya mau dimau install Hamachi aja dengan size yg kecil ::

Adapun Langkah langkahnya seperti Ini ::1. Install “tun” yg berfungsi mengaktifkan support Tunneling di kernel Linux ::

$ sudo modprobe tun

Page 42: Share Linux

2. Edit Module “tun”

$ sudo /etc/modules

3. dan ubah seperti ini :: jika ada perbedaan tambahkan yang tidak ada

# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with “#” are ignored. lp rtc tun

4. Simpan File [ctrl+o] dan keluar [ctrl-x] , dan mari kitacek apakah tunel ip sudah dibuat

$ ls /dev/net/tun

dan akan menghasilkan tampilan

/dev/net/tun

jika hasilnya berbeda maka buat dulu folder untuk path panel tunningnya

$ sudo mkdir /dev/net $ sudo mknod /dev/net/tun c 10 200

5. Skarang Download / unduh file hamachinya

wget http://files.hamachi.cc/linux/hamachi-0.9.9.9-20-lnx.tar.gz

6. Extract dulu file hamachi yang barusan di download

$ tar zxvf hamachi-0.9.9.9-20-lnx.tar.gz

7. masukki folder dan Instalah hamachinya

$ cd hamachi-0.9.9.9-20-lnx/ $ sudo make install

Expected output below

Copying hamachi into /usr/bin .. Creating hamachi-init symlink .. Compiling tuncfg .. Copying tuncfg into /sbin .. Hamachi is installed. See README for what to do next.

Page 43: Share Linux

8. Jalankan terlebih dahulu tunelnya ::

$ sudo tuncfg

Sekarang Intalasi hamachi sudah berhasil yang perlu dilakukan hanya tinggal setting nama user group dan password dari hamachinya

9. Tambahkan Group dan user untuk Hamachinya

$ sudo groupadd hamachi $ sudo gpasswd -a YOURUSERNAME hamachi $ sudo gpasswd -a root hamachi

eh.. ganti YOURUSERNAME dengan user yg ingin digunakan di hamachi

10. Memberi hack accespermission pada socket tunel

sudo chmod 760 /var/run/tuncfg.sock

11. Menambahkan Ownership

$ sudo chgrp hamachi /var/run/tuncfg.sock

12. Menjalankan pada sistem Service

$ sudo hamachi-init -c /etc/hamachi

Initializing Hamachi configuration (/etc/hamachi). Please wait .. generating 2048-bit RSA keypair .. ok making /etc/hamachi directory .. ok saving /etc/hamachi/client.pub .. ok saving /etc/hamachi/client.pri .. ok saving /etc/hamachi/state .. ok Authentication information has been created. Hamachi can now be started with ‘hamachi start’ command and then brought online with ‘hamachi login’.

13. Start Hamachi / memulai Hamachi

$ sudo hamachi -c /etc/hamachi start

Expected output

Starting Hamachi hamachi-lnx-0.9.9.9-20 .. ok

14. memberi nickname pada hamachi

$ sudo hamachi -c /etc/hamachi set-nick “COMPUTERNICKNAME”

Page 44: Share Linux

15. seperti biasa pada hamchi kita bisa Membuat / bergabung dengan network yang ada

To join an existing network (optional) “NETWORKNAME” and “PASSKEY” should be replaced with your network name and network password

$ sudo hamachi -c /etc/hamachi join NETWORKNAME PASSKEY

To create a new network (optional) “NETWORKNAME” and “PASSKEY” should be replaced with your network name and network password

$ sudo hamachi -c /etc/hamachi create NETWORKNAME PASSKEY

16. Sekarang tinggal kalo ingin Online deh ::

$ sudo hamachi -c /etc/hamachi go-online NETWORKNAME

17. nah terus kalo mau ngecek koneksifitas tinggal ketikkan perintah berikut ::

$ sudo hamachi -c /etc/hamachi

Expected output

Hamachi, a zero-config virtual private networking utility, ver 0.9.9.9-20 version : hamachi-lnx-0.9.9.9-20 pid : 5472 status : logged in nickname : JauntyVM

Mudah bukan :: Skarang tinggal membuat hamachi berjalan saat start UP , hampir sama dengan Artikel Sebelumnya ::

1. buat diazstarthamachi pada /etc/init.d/

Masukk sbagai root terlebih dahulu::

nano /etc/init.d/diazstarthamachi

isikan demikian ::

#!/bin/bash /etc/init.d/networking start tuncfg $ sudo hamachi -c /etc/hamachi start $ sudo hamachi -c /etc/hamachi login $ sudo hamachi -c /etc/hamachi go-offline NETWORKNAME $ sudo hamachi -c /etc/hamachi go-online NETWORKNAME

2. Buat script tersebut executable, dengan perintah::-

Page 45: Share Linux

$ sudo chmod +x <nama file>

3. Langkah terakhir jalankan update-rc.d dengan command::

sudo update-rc.d <nama filr> defaults

udah selesai dah, coba restart komputer anda :: nah dan untuk ngetesnya ya seperti biasa pada user hamachi lain harus kita monitor , apaa benar hamachi pada ubuntunya langsung runing saat di restart ::D

Cara Instal Webserver Apache MySQL PHP PHPMyadmin di UbuntuSambil belajar linux server di linux ubuntu biar tidak lupa saya posting bagiamana cara membuat webserver di ubuntu. saya gunakan linux ubuntu desktop 10.10 untuk mengistal apache, MySQL, PHP, dan PHPMyadmin. Langkah-Langkah Cara install webserver di ubuntu sebagai berikut:

Masuk ke Terminal kemudian ketik

sudo su sudo apt-get update

Instal Apache di Ubuntu.

apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils

Instal PHP di Ubuntu.

apt-get install php5 libapache2-mod-php5 php5-common php5-gd php5-mysql php5-imap php5-cli php5-cgi php-pear php-auth

Install MySQL di Ubuntu.

apt-get install mysql-server mysql-client

Saat instal MySQL akan dimintai password, masukan pasword MySQL anda.

Instal PHPMyadmin di Ubuntu.

apt-get install phpmyadmin

Restart apace dan MySQLnya

/etc/init.d/mysql restart

Page 46: Share Linux

/etc/init.d/apache2 restart

Test dengan mengetikan http://localhost/ pada browser anda.Jika ada tulisan seperti di bawah ini maka instalasi sukses.

It works! This is the default web page for this server. The web server software is running but no content has been added, yet.

Test PHPMyadmin dengan mengetikanhttp://localhost/phpmyadminCara Instal Web Server Apache MySQL PHP PHPMyadmin di UbuntuBerarti Apache, PHPmyadmin sudah jalan. anakciremai bisa membuat webserver apache, MySQL, PHP dan PHPMyadmin. Semoga Membantu.

5 Practical Examples To Delete / Remove Directory in Linux

by Ramesh Natarajan on June 26, 2009Tweet

Question: How can I delete empty directory, directory with files and sub directories in Linux / Unix ? Also, how can I use an alias effectively for rm and rmdir command? Answer: You can delete empty directory using rmdir command, or directory with content using rm command. Deletion can be done interactively, recursively, forcefully, or through alias. In this article, let us review 5 practical examples that shows how to delete the directories in Linux like systems.1. How to Delete Empty Directories in Unix?

rmdir command will delete the empty directories. i.e directory without any sub-directories or files.

rmdir DIRNAME

To ensure that you are deleting an empty directory you should use rmdir command. If there is anyfiles / directories in that directory it will display the following error.

$ rmdir testrmdir: failed to remove `test': Directory not empty

2. How to Delete Nested Empty Directories in Linux?

Use option -p, to delete nested directories as shown below.

$ rmdir -p dir1/dir2/dir3

Page 47: Share Linux

Note: Don’t get panic that how a directory can be nested and also empty. It is nested when you are invoking the command, but it deletes the inner most directory first, and makes the next level directory empty then it deletes that directory. And it continue doing so.

The rmdir -p dir1/dir2/dir3 is equivalent to

$ rmdir dir1/dir2/dir3 dir1/dir2 dir1

3. Delete Directory Which has Content (i.e Directory with Files and Sub-directories)

Some times you may want to delete directory which has contents in it. You can do it with rm command as shown below.

$ rm -rf DIRNAME

This will delete the directory including all the files and sub-directories. This is very dangerous when you use it accidentally as you cannot recover those files easily. So it is strongly recommended that you pay attention and think twice before executing the rm -rf command.4. Delete Interactively: Avoid using -f in rm at the early stages.

If you’ve ever accidentally executed rm -rf by mistake, you may want to seriously consider using -i option to delete the files and folders interactively as shown below (especially under root).Deleting a directory recursively & interactively.

# rm -ir DIRNAME

Deleting a file interactively.

# rm -i FILENAME

If you are a Linux newbie, don’t use -f option in root until get super comfortable with the command line. Instead, try to use -i option as shown above.5. Useful rm and rmdir Aliases

You can make the interactive rm option as your default rm command using alias as shown below.Alias to make rm interactive

# alias rm="rm -i"

While using the rm command, it will be always execute rm -i and ask for confirmation before deleting any files. But be careful that when you give -f

Page 48: Share Linux

option then you wont get the interactive prompt even if you have the -i option in it.

For example, in the following command -i don’t have any effect.

$ rm -irf DIRNAME

In this case, the above command (with the rm alias) is equivalent to the following command.

$ rm -rf DIRNAME

All the following rm options are valid and does the same functionality. i.e recursive and forceful delete.

rm -fr rm -rf rm -r -f rm -f -r

Alias to make rm verbose

If you want rm or rmdir to print what it is doing then you can use the traditional verbose option.

alias rm="rm -v"alias rmdir="rmdir -v"

Note: Make this setting permanent by adding alias command to either ~/.bash_profile (or) ~/.bashrc file.

You can remove files or directories, empty or non-empty, nested or single using rm and rmdir commands. But before invoking the command think twice about deleting as it will become hard to recover a file once you’ve deleted it by mistake. Have you ever deleted files by mistake using rm or rm -r command? How did you handle that situation? Share your story with us in the comment section below.

Install Joomla di UbuntuJoomla merupakan CMS open source terbaik saat ini, banyak sekali pengguna CMS memakai Joomla. Sebelum menginstall Joomla, install dahulu LAMP. Tutorial install LAMP baca di sini.

Page 49: Share Linux

Download Joomla

Download dahulu Joomla, di sini memakai versi 1.5.6 bila ingin versi terbaru, cek di situs Joomla.

cd /var/www

sudo wget http://joomlacode.org/gf/download/frsrelease/8232/30034/Joomla_1.5.6-Stable-Full_Package.zip

sudo unzip Joomla_1.5.6-Stable-Full_Package.zip -d /var/www/joomla

Atur Izin Joomla

sudo chmod 777 -R /var/www/joomla

Menyediakan Database Joomla

Untuk menginstall Joomla di butuhkan database, masih ingat password mysql server? Password itu akan kita gunakan. Buka phpMyAdmin pada browser ketik http://localhost/phpmyadmin/

Masukkan username dan password anda

Username : rootPassword : (password mysql server yang anda masukan saat penginstallan mysql)

Jika sukses akan muncul halaman phpMyAdmin

Untuk membuat database Joomla, isilah form create database, misalnya nama databasenya adalah "webjoomla" (tanpa tanda kutip).

Install Joomla

Sekarang tiba saat untuk install Joomla, sebelum memulai - lakukan ini terlebih dahulu:

sudo /etc/init.d/apache2 restart

Page 50: Share Linux

Buka pada browser http://localhost/ akan muncul tampilan seperti ini.

Pilih Next setelah setting Bahasa. Akan hadir pengecekan komponen yang diperlukan Joomla.

Klik next lagi. Baca Lisensi Joomla, lalu klik next kembali. Akan hadir Basic Setting. Isilah seperti ini.

Database Type : mysql Hostname : localhost (disesuaikan dengan host) Username : root (disesuaikan) Password : **** (disesuaikan dengan password anda) Database Name: webjoomla (disesuaikan)

Jika sudah, klik next kembali. Akan muncul konfigurasi setting FTP. Karena dalam tutorial kali ini tidak menggunakan FTP, maka pilih setting No.

Kemudian akan muncul Main Configuration.

Site Name : Belajar Web (judulnya terserah anda) Email : [email protected] (email anda) Password : ******* (password untuk website joomla)

Setelah itu akan muncul kabar

Selamat anda telah menginstall Joomla.

Username : adminPassword : Password anda saat Install Joomla

Langkah terakhir adalah menghapus Folder INSTALLATION pada root directory berada pada /var/www/

Caranya ketik

Page 51: Share Linux

sudo rm -r /var/www/joomla/installation

Sekarang coba kita buka http://localhost/administrator/ atau http://localhost/joomla/administrator/

Sharing Internet Dari USB modem/LAN Menggunakan Wifi Laptop ke Gadget AndroidWifi pada laptop bukanlah sebuah akses point infrastructur, jadi jika kita melakukan sharing internet, mode di set ke tipe ad-hoc.Sedangkan android tidak dapat mendeteksi wifi dengan mode ad-hoc kecuali harus di rooting terlebih dahulu. nah, tips ini berguna utk android yang tidak di rooting dengan berbagai alasan (misal : garansi akan hangus jika android telah di rooting) tapi bisa mendeteksi wifi dari laptop tersebut.Bagaimanakah caranya?caranya yaitu dengan membuat seolah-olah wifi pada laptop menjadi layaknya perangkat akses point infrastructur sebenarnya (akses point hardware).Syarat yang harus tersedia :

1. OS linux ubuntu (saya menggunakan ubuntu 10.10)2. Laptop dengan fitur wifi3. Modem USB GSM atau CDMA (asal sudah bisa terkoneksi dengan baik di linux ubuntu)4. gadget yang tidak support share wifi mode ad-hoc (Contoh : Android pad/phone)misal anda memiliki nama protokol network sbb :wlan : wlan0 (wireles)ppp : ppp0 (modem USB)untuk mengetahui alamat network modem & wireles lan ketik diterminal : ifconfigmasuk ke terminal ubuntu lalu install aplikasi ini :sudo apt-get install hostapdsudo apt-get install dhcp3-serverbuat file “hostapd.conf” lalu tambahkan perintah berikut ini :interface=wlan0driver=nl80211ssid=channel=1hw_mode=gauth_algs=1wpa=3wpa_passphrase=wpa_key_mgmt=WPA-PSKwpa_pairwise=TKIP CCMPrsn_pairwise=CCMPsimpan di home folder anda, jangan lupa :ssid= —> diisi dengan nama jaringan wifi anda (nama terserah, misal=wifiku)wpa_passphrase= —> diisi dengan password wifi anda

lalu edit file : sudo gedit /etc/dhcp3/dhcpd.conf

Page 52: Share Linux

tambahkan baris paling bawah sbb :option subnet-mask 255.255.255.0;default-lease-time 600;max-lease-time 7200;option domain-name-servers 8.8.8.8, 8.8.4. ;subnet 192.168.1.0 netmask 255.255.255.0 {range 192.168.1.10 192.168.1.254;option broadcast-address 192.168.1.255;option routers 192.168.1.1;}penjelasan :alamat DNS 8.8.8.8, 8.8.4.4 menggunakan open DNS googlesetiap gadget yang terkoneksi mendapatkan alamat IP mulai dari 10 – 254untuk penamaan IP diatas bisa dirubah sesuai yang anda inginkanedit file : sudo gedit /etc/default/dhcp3-serverlalu cari edit interface menjadi spt ini : INTERFACES=”wlan0″aktifkan ip forwarding di ubuntu dengan mengedit file :sudo gedit /etc/sysctl.confhilangkan tanda pagar pada # net.ipv4.ip_forward=0lalu ubah 0 menjadi 1lalu edit file : sudo gedit /etc/rc.localtambahkan diatas script “exit 0″ spt berikut ini :

/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADEifconfig wlan0 inet 192.168.1.1 netmask 255.255.255.0hostapd -d hostapd.conf &/etc/init.d/dhcp3-server restartppp0 jika anda ingin men-sharing koneksi internet USB modem ganti dengan eth0 jika ingin men-sharing internet dari jaringan LAN.jika sudah selesai, restart PC lalu koneksikan modem USB anda ke ubuntu, nyalakan gadget anda dan jika wifi sudah terdeteksi, anda bisa memulai browsing atau mendownload aplikasi android lewat android market.Tambahan :* koneksi USB modem bisa memakai aplikasi sakis3G* Tips ini sudah saya praktekan sendiri dan berhasil

untuk mengaktifkannya, jangan lupa buka terminal, dan jalankan perintah berikut: 1 sudo hostapd -B hostapd.conf

untuk Mengaktifkan hostapd melalui jaringan wireless, jika perintah ini sudah diketikan, maka pada gadget android dapat terdeteksi WiFi dengan SSID yang telah kita berikan tadi, namun Belum bisa untuk sharing internet. Untuk mengaktifkan sharing internetnya, ketik perintah berikut: 1 2 sudo ifconfig wlan0 inet 192.168.1.1

Page 53: Share Linux

sudo /etc/init.d/isc-dhcp-server start Selesai semuanya, selamat berinternet ria dengan Android

Install Latex di LinuxPosted on December 1, 2010 by onestringInstall Latex di Linux

Instalasi di Ubuntu Linux bisa dilakukan via package. Pertama lakukan instalasi Latex:

sudo apt-get install texlive-latex-base texlive-latex-extra texlive-latex-recommended

Kemudian instal Lyx:

sudo apt-get install lyx

Sekarang Lyx sudah bisa digunakan. Jika mengalami sedikit masalah sewaktu preview gambar (misalnya format PNG) melalui postscript, GAMPANG, padukan dengan inkscape. Instal dulu inkscape:

sudo apt-get install inkscape

Di Lyx, Tools –> Preferences –> Converters, tambahkan:

From: PNGTo: EPSConverter: inkscape $$i –export-eps=$$oTekan add

berikutnyaFrom: PNGTo: PDF (ps2pdf)Converter: inkscape –export-area-drawing $$i –export-pdf=$$oTekan add

Kemudian klik Save.

Selamat mencoba! :)

Cara install dan konfigurasi workgroup di ubuntu

1. Pastikan kedua computer sudah terhubung.Contoh disini saya pakai IP di ubuntu 192.168.1.3 dan windows 192.168.1.2 gateaway adalah access point yang saya gunakan 192.168.1.1

2. Download paket2 samba yg dibutuhkan :a. libsmbclient (libsmbclient_3.0.28a-1ubuntu4.9_i386.deb)b. samba-common (samba-common_3.0.28a-1ubuntu4.9_i386.deb)c. smbclient (smbclient_3.0.28a-1ubuntu4.9_i386.deb)

Page 54: Share Linux

d. smbfs (smbfs_3.0.28a-1ubuntu4.9_i386.deb)e. samba (samba_3.0.28a-1ubuntu4.9_i386.deb)

3. install file yang sudah di download sebelumnya :

a. Install libsmbclientroot@andylinux:/samba# dpkg -i libsmbclient_3.0.28a-1ubuntu4.9_i386.deb(Reading database … 95750 files and directories currently installed.)Preparing to replace libsmbclient 3.0.28a-1ubuntu4 (using libsmbclient_3.0.28a-1ubuntu4.9_i386.deb) …Unpacking replacement libsmbclient …Setting up libsmbclient (3.0.28a-1ubuntu4.9) …

Processing triggers for libc6 …ldconfig deferred processing now taking place

b. Install samba-commonroot@andylinux:/samba# dpkg -i samba-common_3.0.28a-1ubuntu4.9_i386.deb(Reading database … 95750 files and directories currently installed.)Preparing to replace samba-common 3.0.28a-1ubuntu4 (using samba-common_3.0.28a-1ubuntu4.9_i386.deb) …Unpacking replacement samba-common …Setting up samba-common (3.0.28a-1ubuntu4.9) …

c. Install smbclientroot@andylinux:/samba# dpkg -i smbclient_3.0.28a-1ubuntu4.9_i386.deb(Reading database … 95750 files and directories currently installed.)Preparing to replace smbclient 3.0.28a-1ubuntu4 (using smbclient_3.0.28a-1ubuntu4.9_i386.deb) …Unpacking replacement smbclient …Setting up smbclient (3.0.28a-1ubuntu4.9) …

d. Install smbfsroot@andylinux:/samba# dpkg -i smbfs_3.0.28a-1ubuntu4.9_i386.debSelecting previously deselected package smbfs.(Reading database … 95750 files and directories currently installed.)Unpacking smbfs (from smbfs_3.0.28a-1ubuntu4_i386.deb) …Setting up smbfs (3.0.28a-1ubuntu4.9) …

e. Install sambaroot@andylinux:/samba# dpkg -i samba_3.0.28a-1ubuntu4.9_i386.debSelecting previously deselected package samba.(Reading database … 95767 files and directories currently installed.)Unpacking samba (from samba_3.0.28a-1ubuntu4.9_i386.deb) …Setting up samba (3.0.28a-1ubuntu4.9) …Generating /etc/default/samba…tdbsam_open: Converting version 0 database to version 3.account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0

Page 55: Share Linux

account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0Importing account for nobody…okImporting account for komputerdepan…okImporting account for second…okImporting account for a123…okImporting account for a88…okImporting account for b123…okImporting account for c123…okImporting account for d88…okImporting account for win…okAdding group `sambashare’ (GID 125) …Done.Adding user `komputerdepan’ to group `sambashare’ …Adding user komputerdepan to group sambashareDone.Adding user `second’ to group `sambashare’ …Adding user second to group sambashareDone.* Starting Samba daemons

f. Langkah installasi paket samba sudah selesai sekarang saatnya mengkonfigurasi file smb.conf yg ada di direktori /etc/samba/

4. Pertama–tama sebelum mengedit-ngedit file smb.conf tidak salahnya kita backup dulu file smb.conf nya

root@andylinux:/samba# cp /etc/samba/smb.conf /etc/samba/smb.conf.backup

5. edit file smb.conf dgn editor kesukaan kita. Contoh :

root@andylinux:/samba# pico /etc/samba/smb.conf

setelah itu akan keluar file smb.conf di editor. lalu cari dibagian [global]workgroup = WORKGROUPini bagian untuk mengubah nama workgroup yang kita ingin kan. Disini saya tetap memakai nama tersebut pada setingan yang saya buat

setelah itu cari lagi dibagian ### Networking ###; interfaces = 127.0.0.0/8 eth0; bind interfaces only = trueHapus tanda ; seperti dibawah iniinterfaces = 127.0.0.0/8 eth0bind interfaces only = true

Page 56: Share Linux

setelah itu cari lagi dibagian ##### Authentication #####; security = user; guest account = nobodyUbah dan hapus tanda ; menjadisecurity = shareguest account = nobody

terakhir untuk mencoba data yg ingin kita share tambahkan perintah ini dan letakkan dipaling bawah file smb.conf[cobashare]comment = coba ajapath = /home/pjar/Desktopbrowseabale = yesread only = yesguest ok = yescreate mask = 0600directory mask = 0700

sampai disini tahap mengkonfigurasi file smb.conf sudah selesai. Lalu keluarlah dari editor dan jangan lupa di save.

6. Sekarang kita coba mengetest file smb.conf yg sudah kita edit tadi. Ketik printah ini

root@andylinux:/samba# testparmLoad smb config files from /etc/samba/smb.confProcessing section “[printers]”Processing section “[print$]”Processing section “[cobashare]”Loaded services file OK.Server role: ROLE_STANDALONEPress enter to see a dump of your service definitions

[global]workgroup = WORKGROUPserver string = %h server (Samba, Ubuntu)interfaces = 127.0.0.0/8, eth0bind interfaces only = Yessecurity = SHAREmap to guest = Bad Userobey pam restrictions = Yespassdb backend = tdbsampam password change = Yespasswd program = /usr/bin/passwd %upasswd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .unix password sync = Yessyslog = 0log file = /var/log/samba/log.%mmax log size = 1000

Page 57: Share Linux

dns proxy = Nousershare allow guests = Yespanic action = /usr/share/samba/panic-action %dinvalid users = root

[printers]comment = All Printerspath = /var/spool/sambacreate mask = 0700printable = Yesbrowseable = No

[print$]comment = Printer Driverspath = /var/lib/samba/printers

[cobashare]comment = coba ajapath = /home/pjar/Desktopcreate mask = 0600directory mask = 0700guest ok = Yes

7. Setelah itu jalankan deamon samba nyaroot@andylinux:/samba# /etc/init.d/samba start* Starting Samba daemons[ OK ]

8. Matikan deamon samba nyaroot@andylinux:/samba# /etc/init.d/samba stop* Stopping Samba daemons[ OK ]

9. Restart kembali deamonnyaroot@andylinux:/samba# /etc/init.d/samba restart* Stopping Samba daemons [ OK ]* Starting Samba daemons [ OK ]

10. OK samba sudah selesai dan siap dipakai.

11. Sekarang untuk melihat file yg dishare oleh computer linux caranya buka windows explorer ketikan \\ipaddress komputer linux di address bar windows. Contoh dipostingan ini adalah \\192.168.0.1

Kalo kita mw nambahin share data dari linux tinggal pilih folder yg mw dishare, lalu klik kanan pilih Saring Options, dan berikan centang ketiga opsi, lalu Create Share. Selanjutny folder tersebut akan tersharing di computer windows.

12. Nah kalo kita mw ngeliat share data yg dari windows caranya pertama pilih folder yg ingin dishare klik kanan properties klik tab sharing, kasih centang di Share this folder in network kasih nama Share name, misal disini saya kasi nama source. Klik OK

Skrg dilinux kitaharus mounting folder yg dishare oleh windows caranyasmbmount //IP_ADDRESS_WINDOWS/NAMA_FOLDERNYA /DIREKTORI_LINUX.

Page 58: Share Linux

Contoh :root@andylinux:/samba# smbmount //192.168.0.5/source /mntPassword:Masukin passwordnya setelah itu browse dgn nautilus.