LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Just started Linux like 4 hours ago. Pro Tips for what to do to ensure the best operational system (https://www.linuxquestions.org/questions/linux-newbie-8/just-started-linux-like-4-hours-ago-pro-tips-for-what-to-do-to-ensure-the-best-operational-system-4175711519/)

C.O.D.E. 05-01-2022 12:39 AM

Just started Linux like 4 hours ago. Pro Tips for what to do to ensure the best operational system
 
Ok, so, the first thing I messed up trying to do by myself was installing Java, which I know this is not meant to be like this:

https://i.imgur.com/o0eh780.png

Many folders with the same files inside.

Since I am very new to this, I'd like to first thing, erase everything (maybe I will reboot everything) and I wanted a step by step from you guys about what to do to, programs you like that help, libraries, etc.

I know some basic terminal usage tho.

Also I don't know if posts like these are allowed. C'mon, I can't read the entire rules.

Turbocapitalist 05-01-2022 01:05 AM

The image can and should be attached to your post so we can see it, as few if any would visit third party sites from here. That said, the most important tip I can offer is that when you install packages and languages be absolutely certain to get them from only the official repositories. In general, if it's not in the repository, you don't want it. The official package manager or its graphical front end will not just allow one-click installation but clean removal should you change your mind. Also, and sometimes quite important, is the fact that the package manager will also track versions making updates easy or, if you decide, automatic.

So I will ask, where did you try to install Java from? If it was not via the package manager, or whatever your distro calls it, then it's probably time to back up your data and do a fresh installation. That brings up the question about what distro you have started with. Which one is it, including version?

Then a followup question would be, what are your near term plans for your new system?

ondoho 05-01-2022 01:12 AM

Quote:

Originally Posted by C.O.D.E. (Post 6349973)
Ok, so, the first thing I messed up trying to do by myself was installing Java, which I know this is not meant to be like this:

https://i.imgur.com/o0eh780.png

Many folders with the same files inside.

Since I am very new to this, I'd like to first thing, erase everything (maybe I will reboot everything) and I wanted a step by step from you guys about what to do to, programs you like that help, libraries, etc.

I know some basic terminal usage tho.

Also I don't know if posts like these are allowed. C'mon, I can't read the entire rules.

Don't worry, posts like these are allowed, and c'mon, the rules aren't that long, you should definitely read them before posting.

I see nothing wrong with what your screenshot shows - it's a directory listing from /usr/lib/jvm IIRC from your other thread.
It is not unusal to have multiple concurrent java versions, and 2 of those directories are symlinks anyhow.

To compare, this is what this looks like on my system:
Code:

ls -l /usr/lib/jvm/
total 204K
lrwxrwxrwx  1 root root  15 Apr 16 11:19 default -> java-18-openjdk/
lrwxrwxrwx  1 root root  15 Apr 16 11:19 default-runtime -> java-18-openjdk/
drwxr-xr-x  4 root root 4.0K Apr 16 11:19 java-18-openjdk/


C.O.D.E. 05-01-2022 01:20 AM

Quote:

Originally Posted by Turbocapitalist (Post 6349980)
The image can and should be attached to your post so we can see it, as few if any would visit third party sites from here. That said, the most important tip I can offer is that when you install packages and languages be absolutely certain to get them from only the official repositories. In general, if it's not in the repository, you don't want it. The official package manager or its graphical front end will not just allow one-click installation but clean removal should you change your mind. Also, and sometimes quite important, is the fact that the package manager will also track versions making updates easy or, if you decide, automatic.

So I will ask, where did you try to install Java from? If it was not via the package manager, or whatever your distro calls it, then it's probably time to back up your data and do a fresh installation. That brings up the question about what distro you have started with. Which one is it, including version?

Then a followup question would be, what are your near term plans for your new system?

So reinstalling the OS may be the easier way, so I do things as you said. I got this Java from many Java Official Webstites. I started with Kubuntu.

My plans, I started using it now, and I really enjoyed the fact you can literally do anything by yourself, as I saw in videos, etc. However, it's both a pro and a con, because doing things by yourself is good because you are somehow free to do it as you want, but bad because YOU must do it, nothing else does for you, so you must know what you're doing.

evo2 05-01-2022 01:22 AM

Quote:

Originally Posted by C.O.D.E. (Post 6349983)
So reinstalling the OS may be the easier way, so I do things as you said. I got this Java from many Java Official Webstites. I started with Kubuntu.

Why can't you get it directly from the repositories provided in Kubuntu?

Evo2.

pan64 05-01-2022 03:59 AM

Quote:

Originally Posted by C.O.D.E. (Post 6349973)
Ok, so, the first thing I messed up trying to do by myself was installing Java, which I know this is not meant to be like this:

https://i.imgur.com/o0eh780.png

Many folders with the same files inside.

How do you know it is not correct?
Quote:

Originally Posted by C.O.D.E. (Post 6349973)
Since I am very new to this, I'd like to first thing, erase everything (maybe I will reboot everything) and I wanted a step by step from you guys about what to do to, programs you like that help, libraries, etc.

The first thing should be to understand what's going on - to be able to decide if it was an error and also to be able to avoid repeating it (if that was an error).
Quote:

Originally Posted by C.O.D.E. (Post 6349973)
I know some basic terminal usage tho.

Also I don't know if posts like these are allowed.

Obviously allowed, but would be nice to give much better descriptions and more details about your "activities".
Quote:

Originally Posted by C.O.D.E. (Post 6349973)
C'mon, I can't read the entire rules.

This is not acceptable.

hazel 05-01-2022 08:09 AM

OK, a few bits of advice:
1) Don't work as the root user unless you need to do something that only root can do (such as updating software). When you're an unprivileged (i.e. normal) user, you can explore all you like and you can't do your system any harm.

2) Please don't believe what you see on YouTube. There are a lot of people out there who think they know something and don't. Better sources of info are the LQ wiki, the Arch wiki (it's about more than just Arch) and the man and info pages on your system. And us obviously.

3) Keep a notebook. If you make any changes to your system, write them down. If you get into trouble, write down how you got out again.

4) If asking for help, give full details (distro and version, software or hardware that's playing up, exact error messages) and use an informative title. If someone asks you to run a diagnostic tool, do it and post back the result.

5) Have fun! Linux is to be enjoyed, not worried over. Remember, most Linux problems can be fixed with care and an alternative boot device.

DavidMcCann 05-01-2022 11:41 AM

Hazel has made the essential points, as ever.

It's a good idea to show your distro via your profile, in case you forget to tell us what it is — solving a problem with Kubuntu is a very different affair to solving it with Slackware.

Always try to get software from your distro's repository — someone, somewhere has taken the trouble to make sure that the package really works and won't fall out with anything else that you have, and you'll get it updated when necessary.


All times are GMT -5. The time now is 03:14 AM.