robotics_setup开源项目

我要开发同款
匿名用户2021年11月09日
30阅读
开发技术SHELL
所属分类终端/远程登录、应用工具
授权协议Apache-2.0 License

作品详情

UbuntuSetupScriptsforRobotics&MachineLearning

Thiscontainsasetoflinuxsetupscriptsconsolidatedfromacrossthewebtomakeiteasytosetupanewcomputerforroboticsanddeeplearning,withlinkstotheoriginalsourcesandbriefdescriptionsinthecommentsofeachscript.Installscriptsarekeptsimpleandminimalsoyoucaneasilychangethemforyourneeds.

Manualstepsarenecessaryforsomescripts,sobesuretocheckthecomments!

Thesescriptsarewrittenfor:

x86_64UbuntuLinux14.04,16.04,18.04NVIDIAGPUssuchasGeForceGTX1080,andTitanX.

Thereisalsosomesupportfor:

slurmcomputeclustersMacOSwhenusedincombinationwiththehomebrew-roboticshomebrewinstallscriptrepository.

Therearealsousefulconfigfilesinthisrepositorynamed.*thatmaynotbeimmediatelyvisible,suchas.byobu/.tmux.conf.

Gettingstarted

Typicallythesourcecodeforlibrarieswillbeputin~/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>.shOpentheshellscripts

Besuretoopentheinstallscriptsbeforeyourunthem.Thereareoftenmanualsteps,moredetails,andlinkstothereferencedocumentationandblogsusedtowritethesescripts.

Commandline,terminal,zsh

Recommendedcommandlineutilsincludehtop,vim,tmux,byobu.Toinstallthemrun:

./commandline_utils.sh

Therecommendedterminalenvironmentandshelliszshwithpreztoutilities,toinstallandconfigureittorunwithtmuxandbyobusoyoucanhavemultipleterminalwindowsandconnectviasshwithoutlosingyourplaceorclosingyourrunningterminalapplications:

./zsh.sh

Thiswillautomaticallysetup.robotics_setup,aconfigurationautomaticallyloadsothertoolsyoucaninstallviathisrepositoryincludingROS,cuda,googlego,locallyinstalledbinaries,linuxbrew,etc.

Xonshshell

xon.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/xonshAdditionalhelpfultips

Wehighlyrecommendputtingthisrepositoryin~/src,butthat'snotrequired.Tomakeyourshellutilizethetoolsyou'veinstalledviarobotics_setup:

#Addthistoyour~/.bashrcoryour~/.zshrc#Fromgithub.com/ahundt/robotics_setupsource~/src/robotics_setup/.robotics_setup

Forapileofinfosnippetstotroubleshootavarietyofproblemsyoumightencountersee:

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

Troubleshooting

Allscriptsaresettoexitimmediatelyonanyerrorsoitwillgiveyouachancetofixtheproblemwithoutmakingamessonyourcomputer.

UbuntuScriptexitedwithoutinstallingthesoftware

Ifyourunascriptandthesoftwarewasnotinstalled,themostlikelyculpritistherepositoriesyouhaveconfiguredonubuntu.Ifanyrepositoryreturnsanerrorthesescriptswillexit,tofixitlookatwhichrepositoriesareinthecommandlineerrormessage,andfollowtheseinstructionstoremovethem:

howtoremovearepositoryAlternatives

Forsomethingwithmoreadvancedcapabilitiesthanthisrepository,thoughnotalwayseasier,Isuggesthttps://brew.shandhttps://linuxbrew.sh.

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论