Thiscontainsasetoflinuxsetupscriptsconsolidatedfromacrossthewebtomakeiteasytosetupanewcomputerforroboticsanddeeplearning,withlinkstotheoriginalsourcesandbriefdescriptionsinthecommentsofeachscript.Installscriptsarekeptsimpleandminimalsoyoucaneasilychangethemforyourneeds.
Manualstepsarenecessaryforsomescripts,sobesuretocheckthecomments!
Thesescriptsarewrittenfor:
x86_64UbuntuLinux14.04,16.04,18.04NVIDIAGPUssuchasGeForceGTX1080,andTitanX.Thereisalsosomesupportfor:
slurmcomputeclustersMacOSwhenusedincombinationwiththehomebrew-roboticshomebrewinstallscriptrepository.Therearealsousefulconfigfilesinthisrepositorynamed.*thatmaynotbeimmediatelyvisible,suchas.byobu/.tmux.conf.
GettingstartedTypicallythesourcecodeforlibrarieswillbeputin~/src/,andbinariesin/usr/local,butthisruleisnothardandfastbecausesometoolslikenvidia'scudamustgoelsewhere.
mkdir-p~/srccd~/srcgitclonegit@github.com:ahundt/robotics_setup.gitcd~/src/robotics_setup#besuretolookatthescriptforspecialinstructions!vim<scriptname>.sh./<scriptname>.sh#iftheabovelinedoesn'tworkyoucanalsodosh<scriptname>.shOpentheshellscriptsBesuretoopentheinstallscriptsbeforeyourunthem.Thereareoftenmanualsteps,moredetails,andlinkstothereferencedocumentationandblogsusedtowritethesescripts.
Commandline,terminal,zshRecommendedcommandlineutilsincludehtop,vim,tmux,byobu.Toinstallthemrun:
./commandline_utils.shTherecommendedterminalenvironmentandshelliszshwithpreztoutilities,toinstallandconfigureittorunwithtmuxandbyobusoyoucanhavemultipleterminalwindowsandconnectviasshwithoutlosingyourplaceorclosingyourrunningterminalapplications:
./zsh.shThiswillautomaticallysetup.robotics_setup,aconfigurationautomaticallyloadsothertoolsyoucaninstallviathisrepositoryincludingROS,cuda,googlego,locallyinstalledbinaries,linuxbrew,etc.
Xonshshellxon.shisaterminalshelllikebashandzshthatislikeasupersetofpythonandbash.Itisveryusefulforroboticsandmachinelearningifyouwanttodosomemathonrobotdatainyourshellandrunapplicationsinasingleterminal,plusretainthehistoryofyourcommandssoyoucanreproduceyourwork.Youcaninstallxonshwiththexonsh.shinstructionsandthenenableitasthedefaultshell.
byobu,letsyouhavemultipleterminalsrunningoverasingleconnectionthatarepersistentacrossdroppedconnections.Ifyouwanttouseitwithxonsh,makesuretoupdateyour~/.byobu/.tmux.conftospecifyxonshinsteadofzsh:
#set-gdefault-shell/usr/bin/zsh#set-gdefault-command/usr/bin/zshset-gdefault-shell~/.local/bin/xonshset-gdefault-command~/.local/bin/xonshAdditionalhelpfultipsWehighlyrecommendputtingthisrepositoryin~/src,butthat'snotrequired.Tomakeyourshellutilizethetoolsyou'veinstalledviarobotics_setup:
#Addthistoyour~/.bashrcoryour~/.zshrc#Fromgithub.com/ahundt/robotics_setupsource~/src/robotics_setup/.robotics_setupForapileofinfosnippetstotroubleshootavarietyofproblemsyoumightencountersee:
https://github.com/ahundt/awesome-stuff
Forroboticsresourcessee:
https://github.com/ahundt/awesome-robotics
Forgreatinstructionsforsomeofthebesttoolstousefordevelopment(muchappliestonon-mactoo)see:
https://sourabhbajaj.com/mac-setup/
Forotherinformationonahugerangeoftopicssee:
https://github.com/sindresorhus/awesome
TroubleshootingAllscriptsaresettoexitimmediatelyonanyerrorsoitwillgiveyouachancetofixtheproblemwithoutmakingamessonyourcomputer.
UbuntuScriptexitedwithoutinstallingthesoftwareIfyourunascriptandthesoftwarewasnotinstalled,themostlikelyculpritistherepositoriesyouhaveconfiguredonubuntu.Ifanyrepositoryreturnsanerrorthesescriptswillexit,tofixitlookatwhichrepositoriesareinthecommandlineerrormessage,andfollowtheseinstructionstoremovethem:
howtoremovearepositoryAlternativesForsomethingwithmoreadvancedcapabilitiesthanthisrepository,thoughnotalwayseasier,Isuggesthttps://brew.shandhttps://linuxbrew.sh.
评论