본문 바로가기

카테고리 없음

Apt-get Install Sabnzbd Debian

@milomakI installed SABnzbdplus via:Code: sudo useradd -system -user-group -no-create-home -groups nzb sabnzbdwget xzf SABnzbd-0.7.3-src.tar.gzmv SABnzbd-0.7.3 /usr/local/sabnzbdchown -R sabnzbd:nzb /usr/local/sabnzbdmkdir /var/sabnzbdsudo chown sabnzbd:nzb /var/sabnzbdsu sabnzbd -c '/usr/local/sabnzbd/SABnzbd.py -f /var/sabnzbd -s 192.168.1.14:8080'I've seen conflicting information about installing applications, some just say apt-get install, others suggest this is not the 'debian way'. How can I access any logs that would confirm any errors whilst attempting to run this init.d script? Posts: 37 Joined: 2012-01-06 10:22.

IntroductionThe programming language Java and the Java virtual machine or JVM are used extensively and required for many kinds of software.This tutorial provides different ways of installing Java on Debian 8: you can download the or the. If you decide to install multiple versions of Oracle Java, you can follow the section on. The last section outlines PrerequisitesTo follow this tutorial, you will need:.

One Debian 8 server. A sudo non-root user, which you can set up by following.Installing the Default JRE/JDKThe easiest option for installing Java is using the version packaged with Debian.

Specifically, this will install OpenJDK 8, the latest and recommended version.First, update the package index. sudo apt-get updateNext, install Java.

Specifically, this command will install the Java Runtime Environment (JRE). sudo apt-get install default-jreWhen prompted, type y for yes to confirm the installation.There is another default Java installation called the JDK (Java Development Kit). The JDK is usually only needed if you are going to compile Java programs or if the software that will use Java specifically requires it.The JDK does contain the JRE, so there are no disadvantages if you install the JDK instead of the JRE, except for the larger file size.You can install the JDK with the following command:. sudo apt-get install default-jdkYou now have the Java Runtime Environment or the Java Development Kit installed.

Installing the Oracle JDKIf you want to install the Oracle JDK, which is the official version distributed by Oracle, you’ll need to follow a few more steps. You’ll first need to install the software-properties-common package in order to use the apt-get-repository command. This will work to add the repository to your sources list and import the associated key.

Debian Install Apt

sudo apt-get install software-properties-commonWhen prompted to confirm the installation, type y for yes.To ensure that we get the correct source line on Debian, we’ll need to run the following command that also modifies the line:. sudo add-apt-repository 'deb xenial main'Once we do that we’ll need to update:. sudo apt-get updateNow we’ll go through the installation process of different versions of Java. You can decide which versions you would like to install, and can choose to install one or several. Because it’s the latest stable release, Oracle JDK 8 is the recommended version at the time of writing. Oracle JDK 8Oracle JDK 8 is the latest stable version of Java at time of writing. You can install it using the following command:.

sudo apt-get install oracle-java8-installerAgain, you’ll be prompted to type y to confirm the install. You’ll also be required to accept the Oracle Binary Code license terms. Use the arrow key to select “Yes”, then press “Enter” to accept the license.Once the installation is complete, you can verify your Java version:.

javac -versionYou’ll receive output similar to this. Outputjavac 1.8.0111At this point, you have Oracle JDK 8 installed, but you may want to also install one or more of the versions below.

Apt-get

If you’re ready to get started, skip down to the section below. Oracle JDK 9Oracle JDK 9 is currently available for early access through its developer preview. The general release is scheduled for summer 2017. There is more information about Java 9 on the.To install JDK 9, use the following command:.

sudo apt-get install oracle-java9-installerWhile it may be worth investigating Oracle JDK 9, there may still be security issues and bugs, so you should opt for Oracle JDK 8 as your default version. Managing JavaThere can be multiple Java installations on one server. You can configure which version is the default for use in the command line by using update-alternatives, which manages which symbolic links are used for different commands. sudo update-alternatives -config javaThe output will look something like the following.

In this case, all Java versions mentioned above were installed. Outputupdate-alternatives: using /usr/lib/jvm/java-8-oracle/jre/bin/java to provide /usr/bin/java (java) in manual modeNow Java 8 would be the default. Choose the default Java version that works best for your projects.The update-alternatives command can also be used for other Java commands, such as the compiler ( javac), the documentation generator ( javadoc), the JAR signing tool ( jarsigner), and more.

You can use the following command, filling in the command you want to customize. sudo update-alternatives -config commandThis will give us greater control over what default version of Java to use in each case. Setting the JAVAHOME Environment VariableMany programs, such as Java servers, use the JAVAHOME environment variable to determine the Java installation location.

Debian Apt Get Update

To set this environment variable, we will first need to find out where Java is installed. You can do this by executing the same command as in the previous section:. sudo update-alternatives -config javaCopy the path from your preferred installation, and then open /etc/environment using nano or your favorite text editor. sudo nano /etc/environmentIn this file, add the following line, making sure to replace the highlighted path with your own copied path.