hello there, again. still an intern here. my 2nd day as an intern, as my 1st day went by, i got somewhat “used to” a linux environment. well, i can successfully create a directory now! yipee!
so here goes my 2nd day, epic journey of a terminal and jdk!
oh by the way, if you don’t know what i’m talking about, you can check the previous post linux-coffee-and-other-stuff-part-i. there i rant about how i got through my first day as an actual linux user.
you know, all of us had that phase of installing linux in our pc, when you’re around in grade 10-11, i know ict can make you do…urm..stuff.
by the 2nd day, i got that same feeling, again. i have to install stuff. first of all, linux. i chose ubuntu. now, before, wubi allowed you to install ubuntu inside windows and it ran side by side..but..no…. they “had” to make it more complicated. when it comes to ubuntu 14, you won’t find the feature to install ubuntu while you’re logged into the windows system. and frankly, at one point or another, you’ll need windows. so, urm, don’t budge around.
as i headed to install ubuntu into my system, i noticed that i have ran out of space in c drive, so i made anoth partition out of my other primary for 50gb and it was all set to be installed. oh yeah, i managed to install ubuntu on to my pen drive, which is quite easy.
for this, you’ll have to have at least a 4gb pendrive, and make sure no “important” files are there…yeah. make sure!
then, download this particular software called Universal USB Installer. this software allows you to install most of the linux systems into your pendrive and run from it. oh yeah, once you do this, you can use the pendrive, just plug it in and use it as the os! yay!
once, you download the software, run it, accept the license, in the next page, you’ll see this.
well, from here, select the linux version, select *.iso you downloaded from ubuntu website, select your pendrive (format is possibly), and click on create.
after a little hubba jubba, you’ll have a bootable pen drive. yep, you can log in to any system using this drive now. huehuehuhe! 😈
as you see in the picture, you’ll have to run that software in either windows, or wine on linux. don’t know about wine? shame! i mean, google. or use this link to read more on wine.
so i managed to do everything up to here, but once i got to installing ubuntu on to my system, major hickups occured. apparently i didn’t have a swap partition so on and so forth. so, kinda postponed the installing of ubuntu on my pc for a while.
back to my workstation.
so, my supervisors asked me to install some particular softwares, like “JDK 1.8”, “IntelliJ IDEA”, “MySQL” and support applications, “kTouch” and “xmind”.
and the stipulation for all of these, don’t use apt-get! yup. okay then.
first up, java development kit, or jdk. if you have installed jdk in windows, you know how easy it is. you go to the link, download, run the setup, set the environment variable in system paths and you’re good to go.
linux.. hahahahahahaha! haha!
so, i’m to battling with my cons..terminal! and as per my supervisors advice, we were not to use the apt-get to get the software. well, there goes the easy way.
we had to get the binaries for each of the software and deploy them in the system. and, it wasn’t easy for me as a 2nd day linux user.
so, here goes jdk!
first of all, go to Oracle Java JDK downloads page and download the latest jdk available for linux. consider your system architecture here, whether if it’s 32bit or 64bit. currently the latest one is jdk-8u45-linux-x64.tar.gz. make sure you get the tar.gz or they call it the tar ball! yup. no kidding.
so once it’s downloaded, to the downloaded location using the terminal, you know “cd directory” to wherever it is you downloaded it to.
then extract the tar. ex: “gzip -dc jdk-8u45-linux-x64.tar.gz | tar xf -”
once you extracted the contents, move that extracted folder to /usr/lib/jvm. you don’t necessarily have to do this, but this is where the default jvms are located. command will be: “sudo mv jdk1.8.0_45 /usr/lib/jvm“.
once that is done, run these commands in the terminal.
sudo update-alternatives –install “/usr/bin/java” “java” \
sudo update-alternatives –install “/usr/bin/javac” “javac” \
sudo update-alternatives –install “/usr/bin/javaws” “javaws” \
these mumbo jumbo adds the new alternatives about the new jdk to the system! we’re almost done. and now, run these commands as well.
sudo update-alternatives –config java
sudo update-alternatives –config javac
sudo update-alternatives –config javaws
done? yay. you have now installed jdk in to linux. easy enough eh? you can check the java version by running “java -version” on the com..terminal! cheesus i ain’t ever going to remember that.
if you managed to mess it up. well, high five brother (or sister). i managed to as well! this is quite trial and error work until you understand what you’re doing. right now…
you mess up, you do it again. as per my supervisor, there are a lot of ways to do one single task on linux. so what you know and do might be different from another. so go ahead, jump, fall face first!
as for mysql. nope. let’s not go there. nope. nuh uh!
i managed to install intellij idea successfully and run it with openjdk that was already available. it wasn’t that hard. (not really easy either) but yay for me, it works.
oh somehow i got it activated too. 😈
so, this kinda summed up my 2nd day as an intern. i come here when birds sing and when i go home anothe batch of birds are singing. well, guess that’s what being an intern is i suppose.
so, i’m going to have my coffee. why don’t you have yourself one and try these. and let me know what happened.
and oh remember, if you break it, you keep it! 😛 see you next time! *intern…awaaaaaaaaaayyyy*