Ubuntu help
Posted
#9
(In Topic #6)
Standard member
im new to this and will have lots of questions
so im trying to set up a computer to run minecraft servers and maby websites and such, (1) what are these repositories people keep talking about. (2) how do i eaisly install java runtime? everything ive seen has a big list of commands with it. (3)what is the deal with sudo, i think it is really annoying when i cant edit files on my own computer. is there any way to grant my self full access?(4) finally my system keeps freezing and needs a hard restart, it might be a hardware problem but i dont think so, the desktop's internal button battery (cmos?) was having low voltage, however i replaced it and it kept freezing. there is a copy of win 10 on another harddrive that is really slow but does not freeze. ill try to get a list of hardware specifications.
Posted
Standard member
Posted
NOTS Staff
Repositories are collections of software, usually pre-compiled and usually maintained by your distribution. Since you're using Ubuntu, you can install anything from Ubuntu's software repositories by running a single command (apt install programname). If you want to install a program that's not in the default Ubuntu repositories, you'll have to either add an outside repository that contains the software (known in Ubuntu as a PPA), or install the software yourself (usually done in the past with a "tarball" archive, but there are also several new types of portable programs called snaps, AppImages, and Flatpaks… you don't have to worry about those new ones yet, but once the Linux community picks one of them as a standard, you might start seeing it more.)
There are two types of Java you can install, the open-source version or the proprietary Oracle version (previously called Sun Java.) The open version is called OpenJDK, and you can install it from Ubuntu's default repository by typing "apt install openjdk-8-jre". Getting the Oracle version takes a bit more work, and while the open version used to be slower, it's really not any more, so in my opinion you might as well use OpenJDK.
Now about sudo: first of all, the fact that Linux has a mechanism that lets you get full access easily (that would be sudo) is actually a much better way to handle access than Windows has. You might not realize it, but there are many system files in Windows that you can't change unless you install development suites and modify registry settings, a much larger hassle than simply typing "sudo" at the beginning of a command. (For a little rant about that, check out my video on removing outdated iTunes DRM.) When you use the sudo command, you're "doing" a command as "su", the SuperUser or root account of your computer. Ubuntu as a distro strongly recommends that you just use sudo for anything that requires root access, and if you're going to be using Ubuntu then you should get in the habit of doing that. However, other distros (including Arch, Fedora and variants, etc.) let you log into the root account by typing "su" and entering the root password. Then you'll have a terminal where you can do anything you want without needing to pass "sudo". The last time I checked, you could achieve that in Ubuntu by typing "sudo su".
I'll recap that section to be perfectly clear: the way to "grant yourself full access" is to use sudo, and there is nothing you cannot do while using sudo, for better or worse. If you can use sudo, then you can absolutely edit every file on your computer.
There's not much I can say about the freezing, other than the next time it happens, try pressing Ctrl-Alt-F3 and seeing if that switches you to a new virtual terminal. If it does, report back here and I may be able to help more. If it doesn't, it's probably too basic of a problem to diagnose over the internet.
Let me know if you have any other questions, or if anything wasn't clear!
Posted
Standard member
Posted
NOTS Staff
Posted
Standard member
Posted
Standard member
Posted
NOTS Staff
Side note, you might not get any feedback since .sh files run in the background… I guess you might get Minecraft's server GUI as long as you're not using the nogui option.
Posted
Standard member
Posted
NOTS Staff
Posted
Standard member
Posted
Standard member
Posted
NOTS Staff
Aaronstar said
so im trying to get some form of java 8 on a linux server, but every time i try to install it it says not found. and default gives 7
From “Post #43”, December 22nd 2016, 3:59 PM
Is this Linux server running Ubuntu? OpenJDK 8 is reportedly in the default repositories for Ubuntu 16.04 and up. The latest Debian Stable does not have OpenJDK 8 in a default repo, so that's going to be a little more work.
Posted
Standard member
1 guest and 0 members have just viewed this.