Tuesday, August 3, 2010

How to Sharing File Between Ubuntu and Windows


In here I will posting about how to sharing files between Ubuntu and Windows XP.
OK, Let's check it out.

1. You must login into your Ubuntu machine. (You can't? Don't lie to me.)

2. OK, now you have access to your Ubuntu machine.

3. Open your terminal (Like Command Prompt in Windows).

4. OK, since you are in Terminal (Shell), you must doing your first task (Not assignment, I'm certain). Type : sudo apt-get install samba to get samba from the website. (Oops, I forget. You must have connection to the Internet if you want to get the samba (Samba in here is tools that have task to sharing data between Linux, Windows, etc. Not a dance))

5. Wait until you've samba in your Ubuntu machine.

6. To make sure that your samba is working well, download one samba again. Type : sudo apt-get install samba4 . After finished downloading you can check it with type : samba. If there is no whatever attention, it mean you've succesfully installed samba in your Ubuntu machine.

7. So, let's keep on the track. Now, you must go to root. Type : cd / . Then, check where you stand. To check it, type : pwd . If the system explain that you are in /, it's mean you are in there (root).

8. Yuph, now you must create a directory for your sharing files. Type : sudo mkdir foldershared . OK, the syntax mean that you command the Ubuntu machine to create new folder. Now check with type : ls -l to make sure that you've make a new directory. The command is mean that you want to see all the directory that exist in root where you are there.

9. OK, after making a directory, you must make sure that your folder (foldershared that you create before) owning by yours. Type : chown thenelse:thenelse foldershared . Don't type the same syntax with me, change thenelse:thenelse with your name to login.

10. Now, we will setting the password of our samba. Type : sudo smbpasswd -a thenelse . Then, type your password twice.

11. Next step, check your workgroup name in your Windows Machine. Press Windows + Pause Break to go to System Properties. Then, go to Computer Name Tab. See the name of your workgroup and remember it.

12. Back to your Ubuntu machine. Type : sudo vi /etc/samba/smb.conf. This syntax is useful to edit samba configuration file.

13. OK, now you will face the samba configuration file. Scroll down until you find the name of workgroup (same as windows). Since you find the name of workgroup, then you must change the name of your workgroup and the name of it must be same with the name of Windows workgroup (Press Insert to start changing the configuration file). After that, you must scroll down to the bottom of page or the blank page. Yuph, now you will edit the configuration of samba. Type :

[sharedname]
path = /foldershared
available = yes
valid users = thenelse
read only = no
browsable = yes
public = yes
writable = yes

14. OK, now you've configurated the samba configuration file. Since you finish type the syntax above, you must press Escape and type ":wq" without quote to save the file and quit from editing samba configuration file.

15. Now you're back to the shell. Type : sudo /etc/init.d/samba restart to restart the service of Samba. OK now check your IP Address with command ifconfig . Remember your IP Address and then back to your Windows machine.

16. Go to run with pressing Windows + R.

17. Type : \\IP_Address_Your_Ubuntu_Machine\

18. OK, now you'll face the Windows of Samba server. Click folder sharedname and you'll face the blank of folder. Try to create folder in there in give it the name. Example : My Sharing Folder .

19. Go back to your Ubuntu machine. And now you must go to your folder that you make before (foldershared, yeah it's the name I've got it). Type : cd /foldershared.

20. Now, check what happen with your folder named foldershared. Type : ls -l to see.

21. OK, after you typed the command, I'll certain that you will find the folder that name "My Sharing Folder" without quote.

22. To make sure that the samba is working well. Now, check with make folder in your Ubuntu machine. Type : sudo mkdir "My Sharing Folder in Ubuntu"

23. OK, back to your Windows machine and check, whether in there are a folder named "My Sharing Folder in Ubuntu", it's mean you're successfully sharing file between Ubuntu and Windows. Congratulations.

No comments:

Post a Comment