Documente Academic
Documente Profesional
Documente Cultură
thatsgeeky.com /2011/12/easywindowslinuxfilesharingwithalivecd/
December23,2011
Thispostwaspublished5years,2monthsago.Duetotherapidlyevolvingworldof
technology,someconceptsmaynolongerbeapplicable.
Contents
OptionalInstallation
CreateaNewSambaUser
Changeyourworkgroupandcomputername
ShareaFolder
Linuxside
Windowsside:
Notes
Theintentofthisarticleistoaddressaveryspecificcaseitisnotmeantasabestpracticesguide.
Scenario:
A.Youhaveawindowscomputer(Computer1)withfilesthatareremotelyaccessedfromsecond
windowscomputer(Computer2).B.AccessfromComputer2isviaaprogramthatexpectsthefilesto
beaccessibleunderaspecificcomputernameandsharename.C.Computer1iscurrentlyunableto
bootWindows(buthasnorelevanthardwareproblemsi.e.canstillbootaLiveCD)
ThesolutionIusedwastobootupaLinuxliveCD,andsharethefileschangingthecomputernameto
matchtheoriginal,andgivingtheSambasharethesamename.ItworkedseamlesslyfromtheWindows
end,andisfairlyeasytosetupdidnthavetoinstallathing.
LinuxMintismypreferredLinuxDesktopoperatingsystem,soIusedaLiveCDofLinuxMint12(I
presumeUbuntu11.10wouldbenearlyidentical).ItshouldbenotedthatyoucanuseUNetBootInto
createabootableUSBdriveinsteadofusinganactualCD.
LinuxMint12alreadyhasSambainstalled,soonceitbootsup,thereareonly3tasksneeded:
1.CreateaSambauser
2.ChangeyourWorkgroupnameandComputerName(akatheNetBiosName)
Ifyouusethedefaultworkgroup,anddonotrequireaspecificComputerName,youcan
skipthisstep.
3.Shareafolder
OptionalInstallation
Ifyourspecificscenariodoesnotrequirethecomputernametobesomethingspecific(i.e.Mintwilldo),
youcanavoidusingtheterminalaltogether:
OpenSynaptic
Reloadthepackages(necessaryforsomepackagestobedisplayed)
Marksystem-config-sambaforinstallation,andapply
Asecondoptionalinstallisgnome-network-adminwhichwillletyouchangeyourhostname(whichthe
NetBIOSnameisobtainedfrom)however,Ifinditmoresuccessfulexplicitlysettingthisvalue.
CreateaNewSambaUser
Openaterminalandrun:
TheusernameneedstomatchalinuxuserandmintistheusertheliveCDrunsas.Thecommand
promptsforapasswordsetoneofyourchoosing(doesntneedtomatchanything).
(Ifyouinstalledsystemconfigsamba,youcancreateanewuserunderPreferences>SambaUsers)
Changeyourworkgroupandcomputername
Underthe[global]section:
Changethelineworkgroup=WORKGROUPtospecifyyourchosenworkgroup.
Addthelinenetbiosname=computername
Ifyoumakechangestosmb.conf,restartsamba:
Ifyouchangedthenetbiosname,restarttheNetBIOSserver:
Thatisitfortheterminalcommands.
(Ifyouinstalledsystemconfigsamba,youcanchangetheworkgroupunderPreferences>Server
Settings)
ShareaFolder
Linuxside
Openthefilemanager(Nautilus)andmountthevolumeofinterest(justclickitontheleftpane)
1.Navigatetothefolderyouwanttoshare
(Ifyouaresharingtheentirevolume,navigateto/mediathevolumeyoumountedshouldbe
listed)
1.Rightclickthedirectory
2.SelectSharingOptions
3.checkSharethisfolder
4.SettheSharenameofyourchoosing.
5.ClickCreateShare
Thatsallthereistoitafewsteps,afewminutes,andrelativelypainless.
Windowsside:
(Iampresumingherethatyouhadfilesharingsetupbefore)
ClickNetwork(inexplorer)andreload(F5)theview
Yourremotecomputershouldbedisplayed,doubleclickit
Theshareyousetupshouldbedisplayed,doubleclickit
Youshouldbepromptedforyournetworkpasswordentermintfortheusername,andthe
passwordyousetuppreviously
andeverythingshouldbereadytogo
Notes
ApointofmentionifyouarenotpromptedforthepasswordonWindowscheckforentriesunder:
Iftherearentany,thentryarestarttoclearthosestoredinmemory.
AsasidenoteIalwaysfinditamazinghowmuchsimplerthingsendupbeingthantheystartout.The
stepsIoriginallyfollowedwereatleasttwiceaslongbutmostweresimplyunnecessary.