r/learnprogramming • • Nov 07 '19

Neat website to learn Linux/Bash

https://linuxjourney.com/

Not sure if this was mentioned before, but it helped me a lot.

1.9k Upvotes

99 comments sorted by

View all comments

57

u/andreyred Nov 07 '19

What’s the benefits of learning linux for someone not in the software field?

32

u/iamanenglishmuffin Nov 07 '19

To the level that this website guides through? Probably none.

I take it you are not in the software industry but programming may be useful in your job. Depending on what tools you are using it may be somewhat easier to set up your development environment in a Unix like operating system like Linux or Mac.

Desktop environments built for Linux offer a lot more UI customization than Mac or windows. I used Arch Linux with xfce as my daily driver for a long time not just for development work. It did everything mac or windows did and more, and was blazing fast on an old Intel chip + small ssd.

Most Linux you will encounter in the wild is either so barebones that you will likely not be touching it if you are not a software developer (eg server) or so built out that the fact it is Linux is irrelevant (android).

If you are on a Mac it would be helpful to learn how to use the file system and do basic tasks through the shell.

6

u/Rampo321 Nov 07 '19

For someone that is trying to learn programming and has really only used windows, what Linux would you recommend I try because it seems like there is so many to choose from?

8

u/[deleted] Nov 07 '19

Pop!_OS is a derivative of Ubuntu, created and maintained by System76, a very well known manufacturer that promotes and ships hardware empowered by Linux.

It's a very polished and non invasive os, very easy to assist into the transition from Windows/other.

Just be sure to not sink yourself into the war of distros, the general rules are that most of the distros are basically the same, but with different packages manager, philosophy, updates delivering and defaults.

You should just give a peek to the major ones (Ex. Debian, Ubuntu, Arch, Manjaro, Fedora, Open Suse, Mint, ecc) and then, try the some Desktop Environments (start with KDE, GNOME (POP OS run this by default, XFCE) to find what suits your habits/preferences.

That's it.

You'll see a lot of people worshipping a given distro for reasons unknown even to them, it's only fanboyism running wild and most of them could barely deal with a terminal (its not like Linux is all about terminal, but you'll definitely discover why it's so useful if you dig it enough). Stay away.

I've suggested pop os due their minimalistic approach, optimization and very long procedures reduced to one command (ex. Tensorflow). You can learn more from their site.

5

u/iamanenglishmuffin Nov 08 '19 edited Nov 08 '19

Ubuntu is considered the standard.

Ubuntu ships with a desktop environment called Gnome.

A desktop environment is the part of the OS that let's you use and configure things like toolbars, widgets, launchers, workspaces, window management, themes and colors, etc. (in Windows the desktop environment would be things like the login screen, the desktop, the start menu, the toolbar, the system tray, themes like Aero).

There are many different distros, but you can install most DEs on any distro. Some distros ship with an optimized version of a specific DE. (edit for clarity: distro is short for Linux distribution. Distros are the different installs like Ubuntu or xubuntu or even Android, chromium-os, etc)

For example, Ubuntu ships with Gnome but Xubuntu ships with xfce4. You can install xfce4 on Ubuntu and you can install gnome on Xubuntu. But it's not advised to do that.

You can also do a "minimal install" of a Linux OS, which boots to the command line and then install a DE manually. This is my current way of booting up a new Ubuntu machine for everyday use. It's nothing fancy. You just type the command to install xfce4 after logging in, then type "start xfce4" and you have a DE.

When I started I originally used Linux Mint (built on Ubuntu) with xfce4. Xfce4 requires a bit of customization to be sleek but it's very lightweight and simple. You can make it feel a bit like windows 7 if you want.

Something like gnome is more feature rich but also can be complicated to customize.

I would recommend installing VirtualBox then download an Ubuntu image and try it out.

3

u/pm_me_steam_gaemes Nov 08 '19

This is a great breakdown. I've used Linux for a few years and know this, but I couldn't have explained it better myself.

Definitely recommend installing VirtualBox and just trying a proper Linux Distro in a VM.

I run Windows 10 on my main desktop, but I have ~10 VMs with various distros at the moment. I also generally use Linux on any laptop except for the one provided by work.

2

u/RightHandedGuitarist Nov 07 '19

I would personally recommend Pop!_OS from System76

Check out r/pop_os

2

u/stoph_link Nov 08 '19

I hear Peppermint is nice as well. I plan on spinning pop and peppermint up in hyper-v this weekend :)

4

u/demolsy Nov 07 '19

You can also activate Windows Subsystem for Linux. It basically gives you native Linux shell on your Windows machine. Your Windows file system is listed under mnt as well. With vscode they have an extension that allows you to work in your Linux environment natively from the Windows version of vscode. I have a full Linux environment for my dev while using Windows. The only problem is that you can't run graphics from the Linux env without implementing a few hacky solutions. So when I run data stuff with Python I still gotta use windows for the graphs

2

u/assertiveturtle Nov 07 '19

This! I know it's not actually linux but theres something about programming in windows with a unix based terminal inside my IDE. Feels great to use!

0

u/Rampo321 Nov 07 '19

A lot of those words very much confuse me lol. But this seems like it might be a better option for me. I will look into it, thanks.

5

u/12345Qwerty543 Nov 07 '19

Use Linux not the windows subsystem. WSL is not Linux. Linux != Command lines like that guy said. Just go get Ubuntu and run from there. You will learn 10x more in the same amount of time.

4

u/demolsy Nov 07 '19

Yes, WSL is not real Linux. It basically provides you a shell(like CMD but for Linux) where you can run CLIs. And as a programmer I very much enjoy using Windows while running all my dev tools in Linux. If you really want to learn Linux quickly and the best way. Just install it and dual boot. Personally, just a bash shell enough for me and all my needs.

0

u/[deleted] Nov 08 '19

[deleted]

0

u/Rampo321 Nov 08 '19

I ended up installing pop on an old laptop I have. I'm gonna mess around with it tonight and maybe try Ubuntu on a VM on my PC tommorow. Thanks for the info.

2

u/NumbN00ts Nov 08 '19

Honestly, stick to the one for now. I’ve got Pop on a old laptop as well and have my gaming rig that still runs Win10. Gaming on Linux just isn’t stable enough and when I want to game, it’s usually because I want to relax for a bit. I do have a project I want to work on that may be better suited to use that rig with Linux, but I’ll throw it on another drive when the time is right. Have fun and welcome to the community!

1

u/stoph_link Nov 08 '19

It really doesn't matter since the bash shell will function the same, so try some out and go with what you like.

If you have the hard drive space, I'd recommend spinning up some virtual environments. The go to VMs are Virtual Box and Hyper-V. There may be others, but this what I know of. Again go with what you're comfortable with.

Virtual Box is by Oracle and you just download it, install it, and go.

Hyper-V is built into Windows 10, and may require making a minor change in your BIOS, and enabling it in your Windows environment.

Once you have one of these programs installed, you can install a linux distro on a virtual machine.

If you are not very technical, I would recommend Virtual Box, and Ubuntu until you feel comfortable. But I hear Pop is really good too, but I haven't tried it yet.

If you want to get out if your comfort zone, use Hyper-v, and experiment with several distros.

Note that Gentoo and Arch will have you manually install the GUI OS, as in there is no installer to guide you and you will be typing commands to get the OS setup. So these may not be best for your first time unless you have someone to guide you, or if you don't mind reading/following documentation for initial installation. Or you can just use this as a command line OS to force you to learn bash.

1

u/PsydeliX_ Nov 07 '19

Use Ubuntu. Get the 18 LTS version so there will be a lot of guides and support readily available.

6

u/[deleted] Nov 07 '19

Why did I see ‘btw I use Arch’ lol

1

u/iamanenglishmuffin Nov 08 '19

It was antergos, so a bit of an arch cheat and I had no right to be snobby about it.

1

u/[deleted] Nov 08 '19

I meant in your second paragraph I literally read “btw I use arch.” I must be sick

2

u/iamanenglishmuffin Nov 08 '19

I mean that's the reason it's a meme right? Because if you read too fast every arch user sounds like a "BTW I use arch" arch user. If I didn't want to come across like that I could have just said Antergos 🤔🤔