systemd on Linux 1: Intro and Unit Files

  Рет қаралды 131,853

tutoriaLinux

tutoriaLinux

Күн бұрын

Пікірлер: 86
@tutoriaLinux
@tutoriaLinux 3 жыл бұрын
My Linux course for beginners: www.udemy.com/course/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?referralCode=19C0A7DEE2FD53C9C09D Linode Referral Link (you get $100 credit when signing up): www.linode.com/tutorialinux tutorialinux Merch: kzbin.info/door/vA_wgsX6eFAOXI8Rbg_WiQstore My Linux Course Playlist: kzbin.info/aero/PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK
@unixbadger
@unixbadger 10 ай бұрын
I really appreciate how you give some overview and operational examples instead of just diving into the configuration files like most books and videos.
@tutoriaLinux
@tutoriaLinux 4 ай бұрын
Thank you so much! I often get a lot of "JUST GET TO THE POINT" comments on my videos, but I don't understand how anyone can retain technical information with zero context, so I've kept this format all these years. I guess I'll never be as big as jake paul, oh well :-D
@DonalTechTips
@DonalTechTips 3 жыл бұрын
Thank you for making this, really interesting and well explained. Looking forward to the rest of the series.
@sadhucat4476
@sadhucat4476 Жыл бұрын
This is some of the best explained material I've found anywhere. Every, "but why..." is addressed before moving on to the next step. Subscribed and gonna start checking this channel first when I go researching Linux topics.
@FailCommando
@FailCommando 3 жыл бұрын
Exactly what i was searching for. Thank you so much!
@Tech-ub8dd
@Tech-ub8dd Жыл бұрын
Thank you for the video, i keep getting confused what systemd unit actually are because i see them all over the place. Love your tutorials!
@mrdr9534
@mrdr9534 6 ай бұрын
Thanks for taking the time and effort of making this video and sharing Your knowledge. This was the best introduction to this subject that I have seen to date, and I have watched quite a number...;), and I will now go on to watch the rest in Your "systemd series" :) Again many thanks. Best regards.
@_Zabamund_
@_Zabamund_ 3 жыл бұрын
This is great thank you, I'm just a Linux and systemd user and while I know python I'm not a Linux sysadmin pro, so this is really helpful.
@KM-sv4dh
@KM-sv4dh 2 жыл бұрын
Your channel is under rated man, I do really enjoy your videos.
@ArthurDebert
@ArthurDebert Жыл бұрын
Thanks!
@tutoriaLinux
@tutoriaLinux 4 ай бұрын
Thank you so much! Truly generous.
@YosrDhaoui
@YosrDhaoui Жыл бұрын
So grateful for finding this video! Thank u so much
@gregzeng
@gregzeng 2 жыл бұрын
This KZbin production business shows the complications of technical communication. This is further detailed by the many comments from all types of viewers to this surviving video. Systemd, as you seem to explain it, is just another automation step that gatherers together a bunch of many small scripts, and both necessary and also optional alternatives. KZbin "journalism" is similar to a large organisation's "Public Office". Your job is to represent the address of interest, only to the uninformed masses, at their selected level of simplicity: infants, children, teenagers, young adults, adults, and retirees. Each target audience really needs specialized attention. It is so hard to be everything to everybody, satisfactorily. All journalism, like all teaching, Chief Officer and parenting roles, is very demanding on our work performances, and the supposed quality of our work output. Systemd tried to be in operating systems, similar to KZbin journalism, Chief Officer and parenting roles. Trying to become all things to all people. Systemd is an evolution to previous "solutions" detailed in this video and its comments from informed viewers. Init,... Etc. Some rebels prefer the older, "simpler" traditional methods. The latest version of Peppermint Linux now offers Debian instead of Ubuntu as a base. It uses Devuan which avoids the newer automation called "systemd", which is the subject of this specific KZbin production. Systemd is a usual further evolutionary development in Linux. Linux was devised to be written in the computer language called "C". After many attempts to upgrade and modify "C", some of the heavyweights in Linux are now slowly trying to move to the "improvement" to C, called "Rust". Systemd, like the introduction of binary computers to machines, is replacing that older method. Older sceptics are resisting this new automation, simplifications and tidy gathering of independent scripts. This is standard evolutionary "progress". Three steps forward, then one or two steps backward.
@networker9304
@networker9304 Жыл бұрын
Nice representation for orphaned process. Kudos to creator
@tornenic
@tornenic 2 ай бұрын
Very well explained. Thanks a ton!
@abdelrahmanyasser3879
@abdelrahmanyasser3879 11 ай бұрын
This is amazing, thanks for making this.
@Oswee
@Oswee 3 жыл бұрын
+ systemd-analyze, timer units i found quite important tools in a daily use. I would not put everything under "/etc/systemd/...". You have also "~/.config/systemd/..." for things like gpg-agent etc. Also... it could be quite important to mention about Environment and PassEnvironment to control unit environment. Or "~/.config/environment.d/*". Also "sudo strings /proc//environ" is quite handy at times.
@tutoriaLinux
@tutoriaLinux 2 жыл бұрын
This is a great callout, thank you! I had planned another systemd video about timers but then forgot to do it (oops)! Maybe I'll film it next week. Timers are definitely a core part of the toolbox, and I find myself constantly using Environment/EnvironmentFile as well.
@portentouslad5051
@portentouslad5051 3 жыл бұрын
Very welcome, thanks for the series.
@TecraTube
@TecraTube 3 жыл бұрын
This video is soooo good, thanks bro.
@TheTheThewillow
@TheTheThewillow 3 жыл бұрын
You sir, great at explaining! Thanks
@SouthBrooklynite
@SouthBrooklynite Жыл бұрын
Hey thanks for making this. This has been very helpful for me.
@rajeshch9884
@rajeshch9884 3 жыл бұрын
Good information, thank you for the video 👌
@milindatalwatte
@milindatalwatte 2 жыл бұрын
Great tutorial. Quick question: Let's assume you are turning on your computer and haven't logged in as a user yet. Do these systemd services start before the user logs in? And if they do, does that mean they run as background processes for every user available on that box?
@tutoriaLinux
@tutoriaLinux 2 жыл бұрын
Yeah, these services are defined at the system level, independent of any users who may or may not be logging in. Whether a user logs in (even if 0, or 100 users log in) interactively has no effect on them. That service will simply run as soon as it can (depending on when you told it to start in the unit file).
@cheako91155
@cheako91155 Жыл бұрын
12:50 is that a typo, or does the dash prefix mean something?
@alessandroruggiero8932
@alessandroruggiero8932 3 жыл бұрын
We need more of this, seeing the little windows icons at the too broke my heart tho 💔
@tutoriaLinux
@tutoriaLinux 3 жыл бұрын
I like using different OSs for different stuff! I record and game on a windows machine, work on Linux and OS X, run a variety of smaller OSs at home for fun, and manage hordes of Linux machines across the cloud. Nothing wrong with a bit of variety.
@jindiggs
@jindiggs Жыл бұрын
Legend !
@ansadahmad1958
@ansadahmad1958 2 жыл бұрын
Hi I have a query. How do I safely make my postgresql service start only after docker service is up on boot. I need this because postgresql needs docker0 network to be up.
@example101
@example101 3 жыл бұрын
what config command or file references/finds all unit files? Are all systemd-path folders searched for unit files? Or just /etc/systemd?
@infosandfacts7536
@infosandfacts7536 3 жыл бұрын
Please turn down the music even more. It’s just too loud :(. Otherwise nice :)
@mostafaali6471
@mostafaali6471 14 сағат бұрын
Imo it’s not that bad or maybe I’m used to working with music in the bg
@cyberspace5317
@cyberspace5317 3 жыл бұрын
Quality Videos 🎸
@tanchwa3740
@tanchwa3740 2 жыл бұрын
with kubernetes, I've also seen some unit files get deployed in /var/lib/systemd like etcd and the scheduler... How does this work in the grand scheme of things? If I have to backup my etcd snapshot for example or if I have to run a custom scheduler, which file do these go in ?
@tanchwa3740
@tanchwa3740 2 жыл бұрын
sorry I may be mistaken. It seems some of the config locations for these SPECIFIED BY the unite files are in /var/lib/....
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 3 жыл бұрын
Thank you ;)
@thegorn
@thegorn 5 ай бұрын
Systemd is pretty sweet
@krishnakant744
@krishnakant744 3 жыл бұрын
Thank you 😊
@poornachandumarneni1068
@poornachandumarneni1068 2 жыл бұрын
Can make a comparison video on systemd-analyze and bootchart
@prcmmd
@prcmmd 2 жыл бұрын
it was really useful
@sammygun84
@sammygun84 3 жыл бұрын
Hi man may be you will recommend some courses on Udemy where you can prepare for junior devops after working in tech support as linux system administrator ?
@purvashgangolli5968
@purvashgangolli5968 Жыл бұрын
Thank you
@martinc.7424
@martinc.7424 3 жыл бұрын
Thanks a lot !👍
@timbear64
@timbear64 7 ай бұрын
Do you have a version without the music?
@veronikatolkachova4573
@veronikatolkachova4573 Ай бұрын
why on earth would you have dark blue font in terminal... while super helpful video, thanks a lot!
@marcschlienger973
@marcschlienger973 3 жыл бұрын
Interesting and helpful videos. Thank you! In another video you explained that you are using Arch even on servers. And now I saw that you are recording this video on Minibuntu running inside a virtual machine on Windows. Why? Also, it would be nice to get to know your Arch setup.
@tutoriaLinux
@tutoriaLinux 3 жыл бұрын
I’ve tried recording on linux machines in the past and had a terrible experience every time. It’s nice to have a separate demo VM anyway, and this way I can have it work with my Windows recording and editing setup. I run about 10 OSes at my house; I I used to be a bit more religious about my usage but have relaxed in my old age.
@tutoriaLinux
@tutoriaLinux 3 жыл бұрын
Forgot to add: my arch setup is relatively minimal; lightdm + i3, mostly zsh, I used to develop exclusively in emacs; now It’s a mix of things but mostly sublime text and vscode.
@marcschlienger973
@marcschlienger973 3 жыл бұрын
@@tutoriaLinux Thank you for answering! For me it is the opposite: I got more religious about the software I use. But after using MacOS a couple of years I try to find my way around linux. Thats why I asked about your setup.
@Gamer-ct6hb
@Gamer-ct6hb Жыл бұрын
@@tutoriaLinux Are you talking in minimal as in low packages or low size? Because I'm pretty sure minimal was under 1000 lines of code. And your using Arch Linux. It uses the whole suite of systemd. Over 1 million lines of code there already. So that's just not even close to minimal.
@sanaetagui64
@sanaetagui64 3 жыл бұрын
How do you save the systemd unit file please ?!
@ramanagudluru
@ramanagudluru 3 жыл бұрын
Thank u so much
@1oneguythat
@1oneguythat Жыл бұрын
Steam updated then said i dont have 32bit library. Then got a systemd message on shutdown. File system was modified now i cant boot back into ubuntu. If it does i get a login loop. Wtf happened?
@peterSobieraj
@peterSobieraj Жыл бұрын
I'm not sure do I like this video. I hate systemd. But I like how you explained things.
@tutoriaLinux
@tutoriaLinux Жыл бұрын
Yeah, I totally get it. I didn't write systemd, I just have to work with it :-D
@peterSobieraj
@peterSobieraj Жыл бұрын
Back in good old days we had control over what our own computer was doing. If I wanted something to run at startup I linked it in /etc/rc5.d or /etc/rc2.d. If I wanted something to run in cron, I put it in cron. If I wanted to have specific IP I was calling ifconfig. Everything was so simple and beautiful.
@uszr1
@uszr1 3 жыл бұрын
Like! And thank you!
@gregf9160
@gregf9160 3 жыл бұрын
Hiya buddy. This was really great, but audio level was _very_ low. Still loved this, though. systemd is good at killing zombie processes and that's both a good/bad thing. I'm trad Unix, and if a process misbehaves and semaphores lots of messages it ought to get killed (and possibly restarted or rescheduled, depending on the logs). What I have found, personally, systemd is a bit too lenient (at least on servers) but works _quite well_ at managing workstation processes. I still don't like the binary loggy-thang, though.
@josephgreene630
@josephgreene630 3 жыл бұрын
Audio is very good on my end.
@KlanVinchenzo
@KlanVinchenzo 3 жыл бұрын
It still works fine for me, just volumed up a little bit. But to be fair, volume is indeed noticeably lower than other videos on this channel. That could be a problem for those watching in Linux with BT speakers, as it's a common Linux issue with a BT sounding extremely low, so you barely hear anything. For those people increasing volume to previous level would be very helpful, I assume. Thx for great channel. My only wish for you, if you find that appropriate, to use less tech words and descriptions while speaking, as we can see that $bash command for example on the screen and there is no need to pronounce it again and again. But instead I usually find myself lacking of a true meaning of what I see on the screen and more human kind description would be very helpful for better understanding. Other than that it's nearly perfect. Thank you!
@DanielSMatthews
@DanielSMatthews 3 жыл бұрын
Please fix your console colours, dark blue on deep purple is unreadable.
@JudgeGideon823
@JudgeGideon823 3 жыл бұрын
"Did you ever hear the tragedy of systemd? I thought not..."
@Gamer-ct6hb
@Gamer-ct6hb Жыл бұрын
You know an init is bad when there's a 14 minute video explaining it. It would literally take less time to explain the lines of code of sinit (Suckless init). And you could probably make an tutorial of every program in my system that's essential to boot ubase, sbase and sinit (Not including the Linux kernel because that's way too complicated) in the same time that this video took.
@tourdesource
@tourdesource Жыл бұрын
Looking forward to those tutorials!
@demolazer
@demolazer Жыл бұрын
I feel like im a 1930s bar talking about systemd over a Martini
@moneyteam8186
@moneyteam8186 6 ай бұрын
Why do you pronounce etc as etsy?
@tutoriaLinux
@tutoriaLinux 4 ай бұрын
It's faster and easier to say, and I spend a lot of time saying it.
@peepeehammer
@peepeehammer 2 жыл бұрын
nice jazz
@littlefrank90
@littlefrank90 2 жыл бұрын
The forking part you did not explain very well. The rest is very clear, thank you!
@RaijaKaisaniemi-xi6bm
@RaijaKaisaniemi-xi6bm Жыл бұрын
Ja noi varkaan,ahneen algoritmit voit työntää vaikka hanuriis!
@canerhacan
@canerhacan Жыл бұрын
Sound is poor :(
@AntonioEating
@AntonioEating 2 жыл бұрын
It is not guaranteed the PID of Init is 1. This is misleading information...
@tutoriaLinux
@tutoriaLinux Жыл бұрын
In what situations is init not PID1? Please elaborate. The only thing I can think of is inside a single-process docker container (running without any init process at all), the ENTRYPOINT's process would be PID1. However it's not really PID1, it only looks that way inside the container environment's process namespace (the container's PID1 would be mapped to a random high PID in the host environment).
@MrSandshadow
@MrSandshadow 3 жыл бұрын
You call yourself a prefessional yet you quit vim using `:wq` instead of `:x` waisting this precious one clic!? That is just disgraceful, Sir!
@cuszco
@cuszco 3 жыл бұрын
Why waste an enter on `:x` when `ZZ` does the job just fine? ;)
@JohannSuarez
@JohannSuarez 2 жыл бұрын
I didn't know about this. Thank you!
@rateater420
@rateater420 2 жыл бұрын
systemd-bloatd
@BryanChance
@BryanChance 2 жыл бұрын
Nooooooooooooo!!!
@_thehunter_
@_thehunter_ 2 жыл бұрын
your mic sucks.. very very low volume
@pacman7168
@pacman7168 Жыл бұрын
systemd is the worst created init
@koolade76
@koolade76 2 жыл бұрын
I am trying to get something to run as a service but keep messing it up. Start the process with package-name but that's under my users context. Not alway great as the process regularly goes to sleep and dies. So I tried making myservice.sh in /usr/local/bin where the package is with: #!/bin/sh package-name then a unit file in /etc/systemd/system/ as myservice.service [Unit] After=network.target [Service] User=myuser Group=groupmyuserisin ExecStart=/usr/local/bin/myservice.sh [Install] WantedBy=default.target sytemctl daemon-reload It won't start log file comes back with permission denied failed to locate excutable of .sh file. Not sure what I am doing wrong. 😕
systemd on Linux 2: systemctl commands
9:08
tutoriaLinux
Рет қаралды 38 М.
SysVinit vs Systemd
31:19
DJ Ware
Рет қаралды 57 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Full Linux+ (XK0-005 - 2024) Course Pt. 1 | Linux+ Training
6:52:19
Hank Hackerson
Рет қаралды 15 М.
Systemd Explained: The Ultimate Deep Dive for Linux Users
47:41
Learn Linux TV
Рет қаралды 204 М.
Linux processes, init, fork/exec, ps, kill, fg, bg, jobs
13:47
Engineer Man
Рет қаралды 173 М.
Nix explained from the ground up
23:39
Surma
Рет қаралды 71 М.
Linux Crash Course - systemd: Using the systemctl command
26:32
Learn Linux TV
Рет қаралды 102 М.
The Tragedy of systemd
47:18
linux.conf.au
Рет қаралды 1,2 МЛН
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency)
11:06
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 329 М.
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 1 МЛН
ЛИТВИН / ПРАНК С ГРИМОМ / Shorts #upx #shorts
0:59
КАК ЖИВЕТ КВАНТУМ? РУМ ТУР КВАНТУМА!!!
13:51
Halloween is coming
0:12
Younes Zarou
Рет қаралды 3,4 МЛН
BIP HOUSE  .бип хаус 🥰🏡  #shorts
0:13
bip_house
Рет қаралды 1,2 МЛН