Linux Crash Course - Setting the Hostname of your Linux Workstation or Server

  Рет қаралды 41,168

Learn Linux TV

Learn Linux TV

Күн бұрын

Пікірлер: 47
@michalroesler
@michalroesler Жыл бұрын
That's awesome video Jay. You are the coolest Linux teacher in the Universe. Respect from Poland.
@2d0list39
@2d0list39 3 жыл бұрын
2021 and im a new linux user, kinda went in it blind and this tutorial i stumbled upon when i thought all hope was lost on such a small topic helped a lot
@richardravich8337
@richardravich8337 4 жыл бұрын
Jay, how about a quick tutorial on how to assign a static ip address to a Linux server/desktop? Thanks for all you do for the Linux community. Happy Holidays to you and your family
@kayathepiratebaykid
@kayathepiratebaykid 2 жыл бұрын
Actually a pretty neat and thought out intro.
@ma-jt2cz
@ma-jt2cz 4 жыл бұрын
Really nice, my kid was able to do by following your instruction. - Thank you
@ronshabi8830
@ronshabi8830 Жыл бұрын
All of your video are super clear and helpful. Thank you!
@NoBodyDroid
@NoBodyDroid 11 ай бұрын
Palestine is free
@joenaz4311
@joenaz4311 2 жыл бұрын
Your channel is perfect. Clear, concise and well presented. Thanks.
@ZapRodil461
@ZapRodil461 Жыл бұрын
Very clear explanation ! thanks
@RickRomig
@RickRomig 4 жыл бұрын
I use a Bash script that uses the sed command to change the hostname in both /etc/hostname and /etc/hosts. It checks the new hostname against a set of rules to ensure it's vailid and also checks to be sure the changes were successully applied in both files.
@wekiwa7055
@wekiwa7055 3 жыл бұрын
WOW, again I needed a quick answer and you have the video.
@TheDograncho
@TheDograncho 3 жыл бұрын
Thanks for your well explained videos. Please make it about sed and awk :)
@snooz78
@snooz78 3 жыл бұрын
you like being punished don't you lol it would be a good vid though.
@NoEgg4u
@NoEgg4u 4 жыл бұрын
@3:50 "So if I open a new tab, for example" Which terminal emulator are you using that offers multiple tabs per window? Various distros that I am sampling, via VirtualBox, do not have that feature. They seem to be bundled with basic terminal apps that do little more than let you choose the font and window transparency.
@RickRomig
@RickRomig 4 жыл бұрын
I use Terminator which can be split into multiple terminal windows. The default terminal emulator in Linux Mint supports multilple tabs.
@pavlospilakoutas
@pavlospilakoutas 4 жыл бұрын
Try shift+ctrl+t
@NoEgg4u
@NoEgg4u 4 жыл бұрын
@@pavlospilakoutas That worked. Thank you.
@confidencemakoni9359
@confidencemakoni9359 2 жыл бұрын
Wow... Thank you... Feeling great now that l can change hostname.
@TradersTradingEdge
@TradersTradingEdge 3 жыл бұрын
OMG! Just solved a internal DNS problem :) TNX Jay.
@englishwith_mark
@englishwith_mark 6 ай бұрын
Great tutorial thanks
@nandhakishore3139
@nandhakishore3139 Жыл бұрын
i would like to know this hostname changes will work with vsftpd server? i am able to connect FTP user with IP address . i am looking to change it to hostname based login
@krzysztofh4074
@krzysztofh4074 9 ай бұрын
Thank you so much i had problems with it. Once more thank you so much
@AltianoGerung
@AltianoGerung 4 жыл бұрын
But why should we also edit /etc/hosts why is it a best practice?
@speedlinepro
@speedlinepro Жыл бұрын
well i got error still , Siege test sw in ubuntu says : [error] socket: unable to connect sock.c:282: No route to host can anyone help ! ☺♥♥♥ is this the same host route or what s meaning of this errorin admin panel . ggl results end up in unknow test sudo siege -c20 -t10s "any-domain"
@SteveDaley
@SteveDaley 4 жыл бұрын
I was on Win10 when I watched this and tried "hostnamectl" on Ubuntu 20.04 in WSL2, but it didn't work because WSL2 doesn't use systemd for its init I guess. So I'm guessing this doesn't work with other none systemd distros as well. So would the preferred method be a simple "sudo nano /etc/hostname"? Jay, great job on recent videos, this Linux Essentials is a great idea for a series of videos. Love the homelab stuff too. Recent videos have really fit with the channel name "LearnLinuxTV." You have definitely brought your channel up another level, and you were already doing great work in the past too. Thanks for the excellent content.
@filippomenis4438
@filippomenis4438 4 жыл бұрын
Thanks for your videos! The are always clear and userful. One question. Why you execute the "exec bash" command after change the hostname? Is a "shortcut" to force the terminal to be re executed with the new changes (in this case the hostname)?
@xrafter
@xrafter 3 жыл бұрын
exec is built-in function in bash and what it does is replace the current shell with command put in the second argument
@willwright9879
@willwright9879 Жыл бұрын
Thanks, it taught me what I needed to know right a way!
@wisnoskij
@wisnoskij 3 жыл бұрын
What is the point of a command "hostnamectr" that does not do a complete job? So is the entire 127.x.x.x address space potential different hosts on that computer?
@marcin2x4
@marcin2x4 Жыл бұрын
I got an error on my WSL2 Ubuntu: `System has not been booted with systemd as init system (PID 1). Can't operate. Failed to create bus connection: Host is down`
@peraruor
@peraruor 3 жыл бұрын
Hi. Love this short videos. I question i've got is, how can you change the order. For example, [serverName@userName] instead of [userName@serverName]. Thanks.
@anthonyedwards8403
@anthonyedwards8403 2 жыл бұрын
Your instructions worked! and I have stand corrected. Outstanding presentation.
@AmichaiRotman
@AmichaiRotman 3 жыл бұрын
how would you go about it in an unattended BASH script?
@OliverCalder
@OliverCalder 4 жыл бұрын
Editing /etc/hostname along with /etc/resolv.conf has worked great for me in the past to set my domain name on Debian, Pop, and Arch machines, but i just started using Fedora, and for some reason `hostname --fqdn` only gives my hostname (not domain name), and `dnsdomainname` prints a blank line. Using `resolvectl` allowed me to set dns and domain manually, but I've never had to do that before. It's as if /etc/resolv.conf was ignored. Any idea why?
@xrafter
@xrafter 3 жыл бұрын
Fedora deals with this differently as far as i know
@matyi1656
@matyi1656 9 ай бұрын
okay, but why does it automatically changes to my IPS's name after every damn boot, it also breaks applications... I know it has to do with Network Manager, still I dont understand why a system breaking option is default.
@trapOrdoom
@trapOrdoom 2 жыл бұрын
YOOOO!!! Are you the guy who does the A+, Net+ tutorial voice overs? Jeez if so, you’re a legend.
@gawayenfamily
@gawayenfamily 4 жыл бұрын
nice. quick question: just installed Ubuntu desktop, do I need antivirus for it?
@samuel6252
@samuel6252 4 жыл бұрын
U don’t need too...
@chicamepa
@chicamepa Жыл бұрын
Thanks!
@AnzanHoshinRoshi
@AnzanHoshinRoshi 4 жыл бұрын
Thank you, Jay. Byte sized then?
@srsr6099
@srsr6099 4 жыл бұрын
Cool, thank you
@mnk4allcaps
@mnk4allcaps 8 ай бұрын
ty
@awsarchitect7892
@awsarchitect7892 4 жыл бұрын
Any LFCS course
@noferblatz
@noferblatz 4 жыл бұрын
Why go through all this? I didn't even know the hostnamectl command before. I just edit the /etc/hostname file.
@RockawayCCW
@RockawayCCW 4 жыл бұрын
It just occurred to me, there needs to be a DOG command that chases CAT.
@EmirKATIRCI
@EmirKATIRCI 4 жыл бұрын
First of all thank you very much for the videos. Can you make a video showing how to migrate from Apache2 to Nginx? Much appreciated.
OpenSSH Made Easy: The Ultimate Step-by-Step Tutorial
1:28:00
Learn Linux TV
Рет қаралды 668 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 2,4 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 28 МЛН
Linux Crash Course - The /etc/fstab file
30:29
Learn Linux TV
Рет қаралды 110 М.
HELP!! (for when you suck at Linux) // Linux for Hackers // EP3
13:14
Linux Crash Course - Managing Groups
23:43
Learn Linux TV
Рет қаралды 48 М.
Hostnames and Domains on Linux Servers | Top Docs with Jay LaCroix
16:23
Essential Best Practices for Setting Up a New Linux Server
20:39
Learn Linux TV
Рет қаралды 183 М.
60 Linux Commands you NEED to know (in 10 minutes)
10:50
NetworkChuck
Рет қаралды 1,7 МЛН
Setting Up the Perfect Developer Environment on Linux for 2025
11:58
Starting With Linux: What I Wish I Learned First
23:31
Learn Linux TV
Рет қаралды 490 М.
Is AntiX the best Lightweight Linux Distro?
18:28
Jeremy's Tech Channel
Рет қаралды 17 М.