How to paste in command line

New to Debian (Or Linux in general)? Ask your questions here!

How to paste in command line

Postby sirjas » 2017-10-01 19:25

Hi,

I have started my VPS because I want to use it to host private game servers for my friends and I.

My first project is a MapleStory server.

My VPS provider is Digital Ocean, and my Debian version is 9.1, 64 bit.

I'm trying to install JDK at this moment. I found the command :

wget [URL]

How can I past the download URL? it is extremely long to type in.

Thanks.

Sirjas
sirjas
 
Posts: 3
Joined: 2017-10-01 19:20

Re: How to paste in command line

Postby arochester » 2017-10-01 19:29

RIGHT click in the Terminal. Choose Paste?
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1111
Joined: 2010-12-07 19:55

Re: How to paste in command line

Postby sirjas » 2017-10-01 19:32

Right Clicking does nothing.
sirjas
 
Posts: 3
Joined: 2017-10-01 19:20

Re: How to paste in command line

Postby arochester » 2017-10-01 19:37

Which Terminal are you using?
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1111
Joined: 2010-12-07 19:55

Re: How to paste in command line

Postby GarryRicketson » 2017-10-01 19:42

What OS are using to connect to the VPS ?
also did you even try:
How to paste in command line
(mostly MS windows results)
Code: Select all
How to paste in command line on linux

Include "linux" in the keywords for more linux specific results.
It also may depend on what terminal you use:
https://stackoverflow.com/questions/7123709/how-to-paste-into-a-terminal
====== edited again ==============
by sirjas » my Debian version is 9.1, 64 bit.

I'm trying to install JDK at this moment. I found the command :


I strongly suggest doing some research and reading some Debian documentation, before just randomly following instructions from random web sites, and installing things that you get with 'wget' and some random url.
https://wiki.debian.org/DontBreakDebian
One of the primary advantages of Debian is its central repository with thousands of software packages. If you're coming to Debian from another operating system, you might be used to installing software that you find on random websites. On Debian installing software from random websites is a bad habit. It's always better to use software from the official Debian repositories if at all possible. The packages in the Debian repositories are known to work well and install properly. Only using software from the Debian repositories is also much safer than installing from random websites which could bundle malware and other security risks.

There may be JDK packages available in the Debian repositories.
And use :
Code: Select all
 apt-get install
to install.
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4452
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How to paste in command line

Postby Head_on_a_Stick » 2017-10-01 20:17

"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6782
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: How to paste in command line

Postby stevepusser » 2017-10-01 21:16

Openjdk-8 is available in the main stretch repo, and openjdk-9 is in stretch-backports. If you only need the runtime for 8, install "default-jre". The JDK install both the runtime and development packages: "default-jdk". If you install the 9 version, you will have to set your alternatives to use that version, so use galternatives for that.

I would assume you're following some non-Debian guide to install Oracle Java, but Debian already includes tools to make that much easier. First make sure you really need the Oracle version, then follow the wiki: https://wiki.debian.org/JavaPackage
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8937
Joined: 2009-10-06 05:53

Re: How to paste in command line

Postby sirjas » 2017-10-02 21:34

GarryRicketson wrote:What OS are using to connect to the VPS ?
also did you even try:
How to paste in command line
(mostly MS windows results)
Code: Select all
How to paste in command line on linux

Include "linux" in the keywords for more linux specific results.
It also may depend on what terminal you use:
https://stackoverflow.com/questions/7123709/how-to-paste-into-a-terminal
====== edited again ==============
by sirjas » my Debian version is 9.1, 64 bit.

I'm trying to install JDK at this moment. I found the command :


I strongly suggest doing some research and reading some Debian documentation, before just randomly following instructions from random web sites, and installing things that you get with 'wget' and some random url.
https://wiki.debian.org/DontBreakDebian
One of the primary advantages of Debian is its central repository with thousands of software packages. If you're coming to Debian from another operating system, you might be used to installing software that you find on random websites. On Debian installing software from random websites is a bad habit. It's always better to use software from the official Debian repositories if at all possible. The packages in the Debian repositories are known to work well and install properly. Only using software from the Debian repositories is also much safer than installing from random websites which could bundle malware and other security risks.

There may be JDK packages available in the Debian repositories.
And use :
Code: Select all
 apt-get install
to install.


I am using Windows 8.1. And yeah I have tried some searches for the paste command, and most said right click, ctrl+shift+v, ctrl+v and many more possibilities. None worked. I'll see if the availabl ejava downlaods will work. My goal here is to make a Maple Story server for my friends, mostly following tutorials online on how to do this. I'll try these out and come back to you folks. Thanks for the responses.
sirjas
 
Posts: 3
Joined: 2017-10-01 19:20

Re: How to paste in command line

Postby stevepusser » 2017-10-02 22:44

Maybe you could point out some of these tutorials. I've seen some written by people that had no business doing it, even some that were downright dangerous to the system. Try installing openjdk-8 first to see if that will work--at least it won't break anything if it doesn't, unlike many of the random blogs.


How are you copying the text in the browser, anyway? Can you highlight it, right-click it, and then choose "Copy"? That always works for me...but you say you're running Windows 8.1. How does that relate to pasting it into a Linux terminal? :?:
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8937
Joined: 2009-10-06 05:53

Re: How to paste in command line

Postby GarryRicketson » 2017-10-02 23:24

by sirjas »
I am using Windows 8.1

That is the problem, I don't know on that, I don't use windows,
do they not have any forums where you can ask them ?
Maybe somebody here:
Windows Client OS Support https://www.windowsforum.org/
User avatar
GarryRicketson
 
Posts: 4452
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How to paste in command line

Postby steve_v » 2017-10-03 08:11

If "VPS" means remote server, and you are connecting to it from a Windoze box, I assume you are connecting via SSH. I assume because you don't say.
If so, you need to go find the documentation for whatever SSH client you are using. This question has nothing to do with Debian, or GNU/Linux in general.
If your client lacks working copy/paste functionality, it is broken. Use putty, copy/paste works just fine.

Anyway, this is clearly an XY problem - what you really want is to install a Java runtime.
As others have mentioned, you shouldn't need to paste long download URLs to get a JRE installed. Listen to stevepusser and try installing a JRE the normal way first.
There are a multitude of wrong "instructions" for installing Java on the internet, and plenty among the first lot of hits I get for "maplestory debian". Is there a reason openjdk8 won't cut it for you?
steve_v
 
Posts: 522
Joined: 2012-10-06 05:31
Location: New Zealand

Re: How to paste in command line

Postby debiman » 2017-10-04 15:35

middle click, or shift+insert.
you need to highlight the url for that to work.
User avatar
debiman
 
Posts: 1619
Joined: 2013-03-12 07:18


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable