r/linuxquestions • u/[deleted] • Jan 03 '21
Linux is too... good?
In trying to learn "linux", I basically just picked a distro and switched to it cold turkey which after the initial learning curve has been a great choice. I chose Manjaro with i3 , which has forced me to become reasonably proficient at using the terminal and writing small bash scripts, and pacman seems pretty chilled, although I have mostly just memorized commands and what they do.
My problem is that everything works to well. Nothing is breaking and my learning seems to have stagnated a bit. Although I'm loving using manjaro and I have defintely joined the church of i3, what should be the next step in my linux journey?
Edit: Thanks to everyone that suggested something, didn't expect such a large turnout!! Even if I didn't respond to your comment directly I probably read it and appreciate it a lot.
tl;dr of common suggestions:
- Use Arch, Gentoo, Linux from Scratch
- Use containers, servers, vm's to mess around etc, RH certs, devops in general
- Customize current distro more aggressively, fix problems that arise
- Change/Explore different bootloaders, file systems and the boot process in general
- Security, https://overthewire.org/wargames/bandit/, http://www.linuxfromscratch.org/hlfs/view/development/
- Solve others problems on forums, distro/package testing, give back to foss community
32
Jan 03 '21
lot of weird advice here.
https://overthewire.org/wargames/bandit/
Worst case, it's easy. Normal case, you learn something. Best case, you learn lots because you break some shit along the way.
6
Jan 04 '21
This looks interesting, thanks. Seems similar to HTB but more beginner friendly
6
Jan 04 '21
Far more beginner-friendly (especially now, I buy VIP for htb for my students to have access to actual beginner boxes there these days) and it's hacking in the traditional sense: hacking shit together to make it work
28
2
42
Jan 03 '21
Switch to Arch
15
Jan 03 '21
I have tried to before, but my comp doesn't have an ethernet port and it turned into a bit of a mess. But it's on the to do list for when i next upgrade.
17
Jan 03 '21
It's not too hard to fix that.
I recommend trying to install Arch in a WM and do a couple of practice installations. I did 2 before actually installing in on my real hardware.
Also, are you using btrfs? If not, switch to it as it is awesome.
11
Jan 03 '21
Oh true, practicing in a vm before hand is such a good idea, I will definitely give that a go.
I think I'm using ext4. Never heard of btrfs but will check it out. Thanks again
8
Jan 03 '21
There is a dude called ChrisTitus on YT (he has his own website too), he has a great video about btrfs and Arch (and a bunch of ther stuff). Really love that dude!
May I ask what it is you like with i3? Except the tiling part ofc. There are other window managers out there too. I use bspwm, might try dwm sometime in the future too.
1
2
1
u/misanthropicity Jan 04 '21
Yeah. These are the things that will push your learning further. With or without using a VM. With a tiny bit of searching, you can figure out the internet issue. You can also use USB tethering with your phone (depends on your data limit and phone capabilities).
5
8
Jan 04 '21
Usb tether from your phone
1
Jan 04 '21
Can you give me some hints how I would use that during the installation? Just plugging in usb and activating thereing?
3
Jan 04 '21
Yes, you plug the usb in, turn it on in the phone and it's supposed to work as if you plugged an ethernet cable in.
2
1
0
Jan 04 '21
[deleted]
1
Jan 04 '21
It was on a macbook :| so I sadly didn't have the drivers I think
0
Jan 04 '21
[deleted]
3
1
u/TheOmegaCarrot Jan 04 '21
Do you happen to have any advice on where to start with learning how to do that and how to do the custom ISO thing?
I’m new to Linux, and also have a MacBook I have put Linux on. For me, only Mint has had the WiFi card drivers already in there.
0
Jan 04 '21
[deleted]
1
Jan 04 '21
I tried that yesterday with the custom repo and failed hard haha. But I wasn't putting in 100% of my brain. Will try that again soon!
1
21
u/SnooSmart Jan 03 '21
Use Arch Linux with dwm, and watch Luke Smith religiously
10
1
Jan 04 '21
That guy has a lot of content, wow. Any particlar playlist/series you could recommend?
6
u/PriscillaWashedai Jan 04 '21
They are all good. Although I disagree with some of his political rants, I can't deny his videos on LaTeX and Markdown were very understandable. Also, his "rice" is publicly available, even looking through the code, even if you choose not to use it, is quite educational.
7
3
u/GenerativeTinSax Jan 04 '21
There is a pretty wide variety, and a lot of the time he expects you to know some stuff (which is a good opportunity to teach yourself those things). Just pick what interests you the most. I found learning vim really improved my workflow, but that isn't relevant if you don't hve a use case that vim would aid with.
In a similar camp, Brodie Robertson does a similarish thing.
0
Jan 04 '21
[deleted]
4
u/SnooSmart Jan 04 '21
Snoo is the name of the Reddit mascot
Smart is my last name irl
Thus, SnooSmart
5
u/Tetmohawk Jan 04 '21
Get your RHCSA. Play with different distros with KVM. Learn security stuff like firewalld and SELInux. That's a very short list, but definitely stuff you want to learn.
2
Jan 04 '21
Can't really afford to do RHCSA and co just yet, (only 19 and not working full time + living costs) but I haven't touched security stuff, mainly because I don't know what I'm doing yet. You are right in that it is worth learning. Thanks
4
u/Tetmohawk Jan 04 '21
I passed the RHCSA with only this book: https://www.amazon.com/RHCSA-Red-Hat-Enterprise-Linux/dp/1775062120/ref=sr_1_2. Everything here is very useful and most of it is relevant across most Linux distributions. Go through this and when you have the $400 or so to take the exam you'll be ready. Good luck!
1
u/bokisa12 Jan 04 '21
How relevant is that cert. in the field? What's your experience with it? Thanks :)
1
u/Tetmohawk Jan 04 '21
https://www.businessnewsdaily.com/10750-best-linux-certifications.html
Getting your RHCE is one of the best certificates you can get for obtaining a job. You have to get your RHCSA to get it. The RHCSA is great for entry level jobs. I'm not an admin and haven't worked as one, but this is my understanding of the field. I wanted to get my RHCSA to expand my Linux skills and for some general bragging rights on Reddit. Yes, I'm a nerd.
4
u/theNbomr Jan 03 '21
Start reading through the system log files and configuration scripts and files. See what things need fixing or improving. You may not need to do anything at all right now, but the day will come when you will want to know how to find things that are not part of routine user patterns. Learn how to build and install software from source tarballs and other package formats. Study how the details of the filesystem works and how to really use it and grow it. Find tools for doing diagnostics, like ldd, strace, nc, lsof, and a large list of others that you can find from the 'see also' section of the man pages.
3
Jan 04 '21
I’m still at the mindlessly copying commands for building from source and very unfamiliar with tools like tar so that’s definitely going on the list. Thanks
2
u/GenerativeTinSax Jan 04 '21
One thing you can do is challenge yourself to never do a command that you don't understand. If you come across something new, figure out what it does first!
https://explainshell.com/ this can be a useful tool :)
136
u/GOKOP Jan 03 '21
Windows user problems: Oh no desktop icons somehow disappeared and I can't bring them back (legit problem of my friend)
Linux user problems:
My problem is that everything works to well.
26
Jan 03 '21
Haha , This PC is missing..how do I access my files??????
10
u/GOKOP Jan 04 '21
I'm not sure if you're mocking my friend but what I mean by "desktop icons disappeared" is that the functionality somehow disappeared. The problem persisted after reboot and he ended up bringing back a backup or a restore point or whatever
5
u/Rocktopod Jan 04 '21
Did he check to make sure they weren't just disabled in the right-click menu? That will persist after reboot.
4
6
2
u/billdietrich1 Jan 04 '21
I had the reverse: icons fine on Windows, broken on Ubuntu GNOME 20.04. And the GNOME project says "tough, we don't like desktop icons". A UI paradigm used on personal computers for 40 years now, and they don't care that they're broken on a flagship GNOME distro.
1
u/luckytriple6 Jan 04 '21
Good, fuck desktop icons...
3
u/billdietrich1 Jan 04 '21
I don't use them myself, but they shouldn't be broken.
-1
u/luckytriple6 Jan 04 '21
If we call the lack of icon on the desktop a feature then it's no longer a bug right?
1
u/billdietrich1 Jan 04 '21
Two icons (home and garbage) were there, an extension to add more is in the extension store, but things were broken when you use the extension.
1
u/aoeudhtns Jan 04 '21
IMO the mistake was GNOME completely relying on the user community to supply extensions that bring back desired behavior that they didn't want in the core. It might have made more sense for them to maintain a set of official extensions for things like this. I know, it's arrogant to assume free labor on someone else's behalf, I'm just pondering what could have been. Anyway, the frequent extension breakage and the nature of hot/cold open source contributions leads to that environment where optional things like that are sometimes broken, and it sucks for the people who prefer or rely on it.
0
Jan 04 '21
[deleted]
3
u/trekkeralmi Jan 04 '21
the number of times i've had to just delete the damn i3 conf file and start from scratch because i missed an apostrophe while tweaking it for no good reason
6
u/raptopassion Jan 04 '21
Time to learn git
2
u/trekkeralmi Jan 04 '21
yeah lol, i just have too much pride to put my configs on there for the world to see with all the comment lines explaining my own modifications to me like i'm a two year old
11
3
1
Jan 04 '21
Pretty sure nobody cares about comments line. I mean, it's the opposite honestly, it's easier to understand with it
1
u/raining-in-konoha Jan 16 '21
"Nah I won't need this config file, no need to back it up"
*needs the file later*
"...fuck"
1
17
12
8
7
u/nickwebha Jan 04 '21
This is how I ended up in Linux. Windows blue screened on me when I was in a bad mood and I formatted on the spot. Not even a backup was done. Not a single non-Linux machine left after a few years. Gaming is done on Shadow.
2
Jan 04 '21
Why not learn something a bit more...useful to others while everything works well?
Try to package a few programs you're missing on your distro (aur makes the barrier to entry easier) or fix a failing build on an existing package. Submit very detailed bug reports when something crashes. Help people with tech issues. Learn to program, or set up a server and self host a few things.
I know desktop linux can be exciting, but linux(the employable one) is in the server world, not using the most complicated desktop setup to achieve simple tasks like configuring your window manager. Whenever you feel ready, consider giving back to the FOSS community. You probably already have a decent base of learning to troubleshoot, and look up information. As well as some command line proficiency.
2
Jan 04 '21
I currently know how to program in python (I've made things like a shitty but functional http server, terminal chat with redis etc) and know some Java (pacman clone), so I probably know enough to do some basic bug fixing? The server stuff I have been meaning to do for ages but I just don't have any personal use for them so it keeps getting pushed out by shinier exciting stuff:(. Thanks for the suggestions!
1
Jan 04 '21
I currently know how to program in python (I've made things like a shitty but functional http server, terminal chat with redis etc) and know some Java (pacman clone), so I probably know enough to do some basic bug fixing
This is a great base. Java is a bit under-utilized in Linux desktop, but python is very common and I'm sure you could find and fix bugs after a bit in a lot of projects, if you wanted to. You could also just make your own projects, if you have a really good idea. It's just not really productive for the Linux desktop to have 500 buggy alternatives for some software. But it's very important you do what you want, or you won't have any fun. Most new projects for Linux are in C/Rust/Go/Python IME. So knowing any of these is more than good enough.
The server stuff I have been meaning to do for ages but I just don't have any personal use for them so it keeps getting pushed out by shinier exciting stuff:(.
Oh there's no rush/need with that. It was just a suggestion. I only deployed a website at digital ocean, and had a few services running on it, but I quickly realized I'm not really using it, and was effectively throwing away my money.
5
u/kaidomac Jan 04 '21
my learning seems to have stagnated a bit.
what should be the next step in my linux journey?
I would recommend taking a proactive approach by creating a structured study plan consisting of small bites of learning done on a daily basis. This is a surprisingly powerful approach & one that is incredibly easy to do every day, if you're willing to adopt it! Even if you spend 5 minutes a day to learn just one new thing a day, in a year that's over 350 new things, all without being overwhelming.
Two key resources:
Invest in a copy of the "UNIX and Linux System Administration Handbook 5th Edition". Kindle edition is $41 & you can read it on your phone, tablet, laptop, and desktop. 1706 pages. Read a measly 5 pages a day & you'll have it nailed in a year.
Start learning Linux From Scratch. This is where you build the full Linux operating system, from scratch, to create your own personal distribution. Take the same "small bites" approach: just do one paltry section a day. Start with LFS (Linux From Scratch), then do BLFS (Beyond Linux From Scratch, which makes it more usable & personalized) & ALFS (Automated Linux From Scratch, so you can automate the process). Then dive into CLFS (Cross Linux From Scratch, which teaches you how everything works together), and go through the development version of HLFS (Hardened Linux From Scratch, which is all about security). You will end up with an exquisite knowledge of how Linux works by the time you finish!
Remember, this may look like "a lot", but that's all an illusion: you're only ever on the hook for a few minutes & a few pages worth of effort every day. I have a very specific & easy method for studying that uses mind-mapping, short notes, and a reliable memorization technique:
In more detail, if you're up for some reading:
Linux is not hard; everything is incredibly well-documented & works together in a really logical way that makes sense after you learn the ropes for each component & it's relationship within the system as a whole. What's hard is when we try to do everything at once, because once that initial excitement & motivation wears off, we tend to lose steam & quit our progress.
The hard truth is that studying is boring & lonely work, but if you're committed to doing just a little bit every day (literally all I use is a smartphone alarm & a spreadsheet of what to study next, so that I know which "small bite" to chew on in each study session), then it's a piece of cake! Very few people are willing to adopt this approach, but I use it for everything from working out to cooking to drawing to playing the guitar to learning technical information like how Linux works.
9
u/Delta-9- Jan 04 '21
Depends on what you want to do. If you want to get into administering a linux machine (and why wouldn't you??):
Learn the basics of KVM
Spin up a VM of centos 7 and the latest debian. Don't have to do it at the same time; basically, just repeat the following steps on each.
Set up a LAMP stack and a basic model webpage. Keep this part real straightforward 'cause you're not trying to be a webdev. You can download Wordpress, pop over to a 4chan board and download a fuckton of random pictures, put them all on your webpage. Make a bunch of random shit--the goal is for the php to be calling into MySQL as much as possible.
Experiment with reducing the VM's resources until the system is no longer stable. Once the system is crashing regularly, experiment with ways to improve the stability without increasing the resources. This can include changing kernel settings like how often pages are flushed to disk, or application settings like mysql indexing and threading, apache forking models, php CGIs, etc.
Spin up Ubuntu 14.04 and Centos 5. Learn their init systems and why systemd is the best. (Some hateboys just smashed their $300 mechanical keyboards.)
Set up pi-hole with Unbound. Learn how Linux handles DNS. Bonus: you get to keep the pi-hole and have fewer ads staring you in the face.
While you're doing all these things, learning these two tools will help you on your way: vim and tmux. Some people swear by screen, I haven't used it myself. I say Vim and not Emacs because Vim is already loaded on pretty much every distro, whereas Emacs usually has to be installed. Even pico/nano are often missing from minimal installs, which you'll likely be using while playing with VMs (and especially containers, which I also recommend learning). Certainly feel free to learn emacs, but having at least a basic knowledge of how to use vim long enough to edit .bashrc to set EDITOR=emacs might be useful. Hint: :wq. Obviously I'm assuming you're not already using one of these; if not, disregard.
2
u/Joedang100 Jan 04 '21
echo "export EDITOR=emacs" >> ~/.bashrc, though nobody in their right mind would do such a thing. Better to doecho -e 'set -o vi\nexport EDITOR="$(which vim)"'>> ~/.bashrc. :P
3
u/sri-arjuna Jan 04 '21
Since your system work smooth...
Look at VM's... any kind of VM.. so you can keep testing without 'destroying' your running system..Remember remember, never change a running system :p
This said, the next step would be: *BSD variants and other stuff like Cygwin and Solaris.
I promise you, these will give you another learning curve :D
And do not let anyone fool you, with Manjaro you are already using Arch!
2
u/computer-machine Jan 03 '21
Pick a few projects. For example, I'd made a script after finding a python script in the Deb repo to run speedtest.net tests (later grabbed and compiled something from git as python lost accuracy at higher speeds), to automatically run and generate spreadsheets in folders every time increment (initially when TW was selling me 15/3 and giving me nearly consistent 0.7/NULL).
Then when I discovered my local classical radio station has free daily downloads, and the links are all logically generated, a script to scrape them all, and another version to run daily.
2
u/overlisted Jan 04 '21
try seeing how new high level stuff like systemd and flatpak internally works, it's really interesting
2
2
u/billdietrich1 Jan 04 '21
Why do things have to break for you to learn something ?
Try installing/using new stuff: a firewall, VPN, Firejail, SELinux, network monitoring, containers such as Docker, etc.
2
u/funbike Jan 04 '21
Go through all of linuxjourney.com
Install, learn and use Vim. Make i3, vim, and firefox (w/vimium) use similar key bindings. This made me fly.
Pimp out your terminal: tmux, oh-my-zsh, fzf, ripgrep, bat, exa, powerlevel10k, alacritty
Learn how to maintain your dotfiles in github.
Install Arch or Gentoo (in a VM for the experience)
Learn pandoc markdown (and limit use of libreoffice).
Install and run Lynis. Follow critical advice to harden your system's security.
2
u/glynxpttle Jan 04 '21
Use your nice working distribution to build your own using Linux From Scratch.
This will give you a lot of command line experience and knowledge of how the system is put together - I can almost certainly guarantee from my experience that you will run into problems that require a bit of reading and learning to sort out - I built linux from it and then carried on with blfs to build x and gnome on top of it. It was an interesting journey and is how I originally got to grips with Linux rather than waiting for something to go wrong.
1
Jan 04 '21
One of my old managers told me that he would intentionally find broken Linux images and then try to get them working. That kind of sounds like what you're looking for. Don't know where you'd find them, but I imagine they're out there somewhere since he seemed to be able to get his hands on them.
1
1
1
Jan 04 '21
Use syslinux as bootloader. And I recommend Gentoo if you want to break something! You need to compile everything from source code. (Include OS). For example, compiling XFCE4 Desktop Environment took +1 hour. But with pacman, just 5 minutes. Or if you want use “pacman” try Arch. It’s not for professionals, very easy to install! You can follow Arch Wiki guide or if you want a clear guide, search for “Arch Linux installation ItsFoss”. Good luck!
Best regards.
1
u/Catlover790 Jan 04 '21
Maybe try arch, it’s a good exersize and once you get it installed you have a great distro :) I did same, moved from manjaro to arch, am loveing it
1
Jan 04 '21
First, move to Arch. Secondly you'll want to move to a more minimalist distro like KISS or Alpine.
The last steps would be creating your own hardware and Linux distro.
1
u/ArtisticWrangler Jan 04 '21
Try to explore more about security, and soon you might ever use it in your career. Enjoy
1
Jan 04 '21
What do you want yourself to become? That is the problem with linux. It can do lots of things including coffee.
1
1
u/thee3 Jan 04 '21
Sorry to break it to ya, but I've been running Manjaro for like 3-4 years now, no problems at all :(
1
u/MuseofRose Jan 04 '21
I'd say I agree and that indeed things rarely break and compatibility ha shorten better and better . That makes it difficult to learn. I'm in that same camp. That's how I learned fixing Windows as kid. Nowadays it too has relative stability. Such a paradoxical bummer right? You want your machine to bring a so that you learn lol.
Anyway I haven't done this but I think going old school will teach you a lot. Use a distro where you have tondo things manually and where things are typically thought of for the convenience distro (Gentoo, Slackware, LFS). I picked up a fee interesting things from them. Other than that another good way seems to be getting into C coding and Linux development (altho too me that's pretty damn advanced)
1
u/oceangrowny Jan 04 '21
Get some old hardware, garage sale or ebay, the box/laptop without wifi. Maybe Quad / Core 2 Duo, probably less than $30 on CL too
Then get an older realtek wifi card/usb or better yet, some obscure card from aliexpress based on realtek.
Like how many of us started... Most of the issues I've always faced was due to hardware, some of which never ended up being solved.
1
u/jfet_ Jan 04 '21
Try installing different distros on other hardware that you might have around. Sometimes getting things up and running is a dream.. Other times you find yourself having to pass custom options to the kernel to keep from booting into a black screen due to a driver conflict. Also, learning about /dev, /proc, and /sys will help to understand the interface that user space software has with the kernel and how to interact with it. Compiling and installing your own kernel can also teach you a lot about the different subsystems that need to work together within Linux. You can also try getting Linux running from scratch (http://www.linuxfromscratch.org)
These kinds of things end up being useful regardless of what distro you end up using.
1
u/Power-Max Jan 04 '21
Try to get Windows programs to run. Some are easy, others are impossible, many in between. Linux gaming is a fun venture. Many games would run just fine if it wasn't for DRM and anti-cheat
1
1
u/sunjack_ Jan 04 '21
If you want to know more about the command line I can suggest you https://shellhaters.org/
1
1
1
u/aoeudhtns Jan 04 '21
Focus on learning things to do with Linux, rather than worrying about getting a basic OS working. Linux is huge in the server space because people are using it to do things. I love Desktop Linux and I use it full-time, but it's not where the commercial interest is.
Here's a notion: look at how to organize your dotfiles for sharing between multiple computers. How will you tackle that? There are many paths: a simple git repo, dedicated tools, network attached storage servers (NFS in specific), and even more.
1
u/EternityForest Jan 05 '21
Learn programming! If it was important and worth knowing, you'd probably know it by now.
If something ever breaks and you need to fix it, you'll have Google, and the forums, and you can teach yourself. There are paid teams dedicated to the low level details. Unless you want to join them, people really don't need to know every detail of their system.
If you do something like LFS or Gentoo, it's going to be so different from Ubuntu et al, that you'll spend a lot of time learning about stuff that will never come up IRL.
Solving other people's problems on forums is a good way to learn stuff that actually matters, as is security audits/pentesting/etc.
Learn Python and start making apps(Beware: nobody will be interested if you build stuff like text editors that already exist, it's pretty hard to get noticed in FOSS ), or fix bugs in the software you use regularly.
1
u/Kraynic Jan 03 '21
Well, if you want things to be more interesting, get involved in distro testing. The alpha/beta stages of distros can be much more "interesting".
1
u/nekoexmachina Jan 04 '21
what should be the next step in my linux journey
Don't spend your time on bullshit
Fix bugs found in bugtracker of your most beloved opensource project
;)
-5
u/UrAccountGotHacked Jan 03 '21
MAKE YOUR OWN LINUX-BASED OS. EASY AF
3
Jan 03 '21
[removed] — view removed comment
3
u/Spero7861 Jan 04 '21
MAYBE ITS THE CAPS?
2
0
0
0
0
77
u/MitchellMarquez42 Jan 03 '21
Switch bootloader from grub to syslinux. Make sure you keep your installation CD/usb handy, if you've already formatted it go back and make another one.