Install R, R-Studio on RedHat|CentOS (6,7)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello there this video explains how to install our in our studio on rpm based Linux that could be Red Hat sent to us scientific Linux Oracle Linux or Fedora this video however does not explains how to install our in our studio on Ubuntu Linux and for that matter of Mac OS and Windows as well so for all you people who use rpm based Linux whether it's version 6 or 7 this video is for you and this is how we get started currently this is my setup I have a redhead machine running on the base Hardware bare metal and on top of that I have installed VMware hypervisor and on VMware hypervisor I'm running of Centaurus machine now it should not matter at all but just so you should not get confused with these two icons one is Red Hat another one is sent to us so this is because the virtual machine is into us on which I'm actively working and it's running on top of Red Hat which also hosts hypervisor all right so we will get into our console here and installing our is very simple you have to do first is get to a root or if your user has a sudo privileges then you can use sudo prefix pseudo with every command that we are going to type here and clear the Machine first of all you have to update your system and this is important because if you have not updated for a very long time the package sometime complains about dependencies and whatnot so it's best to upgrade the system to the latest level and then go from here ok now that we have updated so you can do this command yum install our and this might install on your system and the reason I say might is because you need to have a repository that had repository enabled when I say Red Hat repository depository is not exactly correct let me correct myself it's extra package for enterprise linux repository that you need to enable and after doing that you will be able to install our on your system now this e PE l repository is enabled by default for fedora but not for the other for operating system that I just told you about which is Red Hat sent to us scientific Linux and Oracle Linux and the reason for that is Fedora is always a step ahead of all these version and so everything is enabled and most packages are pre-installed on fedora anyway so we have to then install BPEL repository in case we have already installed this then yum will simply say you have already installed so because Yummy's ID important in nature so anything which is already installed it does not touch that it does not overlay anything new it just says ok you already have it so I'm not gonna even follow so that's how you'll check whether your extra package will enterprise linux is installed or not and now you will go ahead and install your are binaries here now if you notice that yum install are if I hit enter it's gonna run through all the packages not from not just our but also it will see for itself what this system would need apart from our I mean what are the dependencies so over here if you see here these are all the packages that I would need you know for me to be able to have our functionable are and these are the dependencies of that package and these young will take care of that see in any other system you should go and try the same thing it may not be saying over in that system 254 it may be saying say 250 because 4 may already be installed so this all always is different for all the operating system one of the things I have learned over the years is that not to run yum install package name on all the systems since I have too many virtual machines I try to download all these packages along with the dependencies on the system itself and then I use that as an offline repository for all my virtual environment to be able to map into that virtual repository and get the packages they want this way I don't have to download this these packages again and again and again for every single machine it just makes the things easier especially when you are in offline mode I'm going to say at Starbucks and you open your laptop and try to do something and suddenly you find a battery missing you have that available in your hard drive as opposed to you have to connect to the feeble connection of the Starbucks and download the package very rarely you would run red head on in Starbucks but it just in case ok so what I will do is I will exit out of here and I will instead install the download these packages and this you can do for any other package not just for our so one of the things that you will do is you will have to create a directory and directory I will create this one and now same command you mentioned download only mention the download directory if you don't then it will just save into our cache yum so it's important that you mentioned the download directory and the directory should exist this folder should exist which in my case it does because I just created one and then you install and then you simply hit enter and what its gonna do is it's gonna download every single package without installing them so this will take I think a minute or two I will pause the video now alright so it has downloaded all the packages and it said exiting and not stalling because download-only was specified now i must mention this is a version 77.4 to be precise of red hat or sent to us for in this case and so download only is one of the options in yum which is not available in version 6 without additional plug-in and that plug-in would be this one so if you're on red head or sent to us or anything in version 6 then you may want on and if you want to use download only option then you have to force to run this command and this is a one-time-only once you install the young plugin download only plug-in then you can run the command that we just ran which is like normally in version 6 as well version 7 they included it as a part of the Red Hat 7 system ok so now we have installed our binaries we also need to install our studio which is an IDE which is where you will work actually so for our studio you would have to go to same studio putting the web search and go into our studio and this is where you will land and this is the first page and after reaching here you click on our studio and here you'll get two options why is the desktop one is a server choose our studio server and I'll tell you in a minute why would you do that and one of the places here okay this is why you would do after you let's consider only free options a studio desktop was the server also gives you a web server along with so if you have a web server you can run this our studio server on your machine and you can also access this IDE from different computer within the same network using the web browser and this is what we cannot download and we will also demonstrate how a studio works on to that browser so go on the download here and now go to the red head or send to us and most likely you'll be using a 64 bit so just not waste time on 32 I'll just go straight here and you can't run this command you can get to you have to create a directory and this will download this a studio package within the same directory okay so this has done its job now we can install the same way we had installed previously I don't think we installed our anyway so we have downloaded both our as well as our studio but we have not installed anything so I'll just start installation right now so if I go one directory up and go into our remember this is the directory where I say to all the our boundaries I'm sorry if I said before the AR is installed it is not installed I just downloaded it so to install it you have to go into the directory where you downloaded all the rpm's and depend our our RPM as well as its dependencies you go into there and you just do your local install RPM astrid dot RPM so this video will take care of all the installation here and you it's gonna be faster since you're not downloading anything from the internet it's just smooth sailing from this point onwards to say yes and go forward with that and you cannot install our studio before because for us to you to install one of the dependency is to have our package already there so it's best to do our first and in linux environment it matters less what you do before and after it depends more on the windows environment they often complain about dependency not available but it's a best practice to always do the recommended approach I'll just go with that and which means that our should be installed first in our studio after that ok so we are on the yeah we have finished with installation of our and being installed once again our from this directory which is temp are and now we can I go and then this is where we have all the rpms as now these are your rpms you can use them in any other operating system and if that new operating system does need more dependencies than you have then in that case young will download only those dependencies that is not available and in case the new environment already has dependencies installed then you are offering by doing yum install astrick all the rpms then young will skip the dependencies those are already installed so young is very smart in that case but you have the all these rpms available to you offline so this is a good feature some time was on a server it's not allowed two hours for some reason you cannot install the EPL repository if that is the case then this is the standard way to download a package on a different system and then take the package in the USB drive and plug it into another server and then install it over there so we just finished downloading our now we gonna do our studio and this is our server will just go similarly yes okay so I pause the video just so you don't have to sit through it now you have and now if you see here apart from just doing installation it has also started this as a service this you can check here this is Joe code seven dot cardoon dot biz is the host name and inna said the starting a studio server started our studio server so if you want to check this our studio where it's running or not you can simply do system CDL command and that will tell you what is this what is the status going on right now so it's running and also you want to check if it's enabled or not enabled so if it's enabled that means it's unable to be started with a server reboot sometimes you don't want that some time you do want that so based on your preference do that by default it is enabled and you also want to check all the one good command which is yum info and you have installed two packages you want to make sure or just for the curious minds what is our package what it all entails this description it's just another way of knowing about the package apart from what RPM can offer you and for that matter you can also check yum in for a studio server and command for that is this one okay so now we gonna start the IDE on the web browser so for that you can open another and web browser of web browser and go on this one and the default address for you is the host name and the port number the port number by default is 87 87 so you simply plug in the host name with a port number and that should do you take you to do IDE of the astral now one one thing that if you are on the same server you will not have a problem going sgtp on this server but you will not be able to login into this server from another machine within the same network and I'll tell you why after that after a few minutes so first we will log in to this IDE this has come nicely stating that enter your username and password and also saying that your connection name is not secure and this you can see from this icon now by default you when your connection is not secure then you are not allowed by Red Hat firewall to be able to login to that system but if your local and your browser is on the localhost itself then a redhead firewall will allow you in this case you enter with your logged in user ID and and its password and get into the system you okay so this is your ID I believe I've previously installed it on the same system that's why I kept on with some of the properties if you were to install brand new and this is the first time you're installing then it won't be a black color for you it will be most likely some other color this is chrome chrome would be there so this is how it will be this is your home directory and this is a file of folders from your home directory and these are global environments now you can go into this view and you can change the panes which you allow or don't allow and also you can go in the tools directory into the global options and check in to say different areas that interest you you can increase or decrease the phone I generally like cobalt so I change it to COBOL but you can cruise through and see which one suits you the best I will do cobalt apply and this is what boy is nice for me and then paint layout you can also check in which paints you want in here to appear on the system once ok you're good to go this is your ID you can function here this is your tongue I guess tell me no yeah now the question is if you are running on your server this browser and and the our studio service then you don't have to bother any more you can just go your merry way and happy with it now if you have a bunch of computers and all these developers working on their individual computer accessing the same server our studio server and they want to fire up their ID in using the same URL they probably will not be able to login because your Red Hat server where our studio is running will simply blocked up non-secured request HTTP request so for that you need to enable the port 87 87 to be allowed to public and for that you to run this command as a root user you would run this command we put 87 87 and then once you've done it you need to reload your firewall as well so we load the firewall and they should give you and now your developers can access the IDE from different machines another way to install a studio which is completely different and not much advertised on Google or anywhere else is that you can download anaconda from Connor distribution and it downloads with a bunch of ID along with several other packages it downloads say Jupiter notebooks or spider for you you're not interested in that but it also downloads or an option of our studio installation is there just in case if you want to explore that area as well but for this you are good with our and you're good with our studio now you can go ahead and do some kickass programming alright if this videos helped you in any way please consider giving a thumbs up thank you
Info
Channel: Raman Kathpalia
Views: 6,587
Rating: 5 out of 5
Keywords: Install on Linux, Install R on RedHat, Install R on Centos, Install R on Oracle Linux, Install R on Fedora, Raman Kathpalia, Install R-Studio CentOS, Install R-studio Linux
Id: BovLY3emWfA
Channel Id: undefined
Length: 21min 1sec (1261 seconds)
Published: Wed Dec 27 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.