Just installed Arch
Hi Arch reddit community. I just installed Arch and wanted to get some feedback on whether I'm heading in the right direction. Here is my progress so far. Are there any Arch command cheat sheets available?
Random questions out of curiosity:
- Why is initramfs included in the installation guide?
- What is the importance of setting up /etc/hosts?
Edit: Suggestions on my documentation are welcome. I'm planning to install Arch on a newer computer in couple months.
Edit2: Recommended mailing lists?
Edited 29 Apr 2018. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 28 · 100% up
- Kind
- Text
- ID
- 8folkp
29 comments
There aren't really arch command cheat sheets, most of the "linux cheat sheets" apply pretty much verbatim.
localhostand$HOSTNAMEroute to your local machineYou could sign up for the mailing lists, but it's not necessary. Arch-mirrors is kinda nice to be on if you want to keep track of when various mirrors are going up/down, but most people don't really need to worry about that sort of thing. If you want to help work on development on Arch, then arch-projects is a good ML to join.
Thanks for the info, /u/tyzoid.
In my mind, I thought being on the mailing lists would help remind me to update my packages. Are there better ways of doing that?
Set your alarm tone to "Update Your System", so it reminds you in the morning.
If you've got a gui of pretty much any kind, you're almost guaranteed to have at least one package to update a day. I generally do my updates on a more infrequent basis (about once a week), but any more than that, you might start running into issues.
Initramfs is just part of setting up the kernel. Not everyone needs to customize it, but for example if your file system is encrypted thats something initramfs needs to know, you can also use it to run a basic SSH server (useful if you use encryption but may need to reboot remotely), or have additional hardware configured right away.
Hosts is just to define hostnames, basically the same as /etc/hostname, except you can also put the names and IPs of other devices on your network, or use it as a simple kind of adblocking (this is actually how most adblocking works, by redirecting known advertising domains back to your own local computer the ads fail to load and save you bandwidth, usually these days people just use browser plugins or something setup directly on their router, but /etc/hosts was the original adblock)
There really arent any mailing lists i'd recommend but occasionally check the news section of archlinux.org to see if there are any special notes about pages that need manual updating like this one.
Crucially the "localhost" hostname is defined there, which is necessary for certain software to work as expected (e.g. web server, database server).
doesn't the file have "localhost" already entered in by default? You just modify it to add in a second name if you want to? Its been a while since i did a bare arch install so maybe im remembering wrong.
Why use grub?
Well you need a bootloader, don't you ? (I don't know if there's some other solution other than alternatives like rEFInd)
It depends.
I have a laptop that doesn't need a bootloader, it will boot straight into arch.
Other computers have UEFi bootloaders in the bios... etc.. it gets really complicated. I was just asking why choose grub, because if he has the option use a UEFI bootloader like systemd-boot... or syslinux.... grub really isn't worth it.
I've never used rEFInd, but like you said.. there are a ton out there.
I chose grub mostly because I used it before when I was dual booting ubuntu and windows and it worked. GRUB also has more options available than other boot loaders.
Edit: Since my system uses BIOS, EFI only bootloaders weren't options such as systemd-boot for me.
"systemd-boot" is included with systemd, and is more lightweight. However, I use GRUB 2 because it "just works".
In defense of GRUB:
† My laptop (acer-vx15) is relatively new and has very odd Linux-unfriendly EFI, and I couldn't get systemd-boot to work.
Personally, I'm also more familiar with GRUB customization, eg. adding "shutdown," "restart," and "UEFI interface" entries to 40_custom.
I use this Grub theme though I patched the fonts and icons.
Just asking... i have a Dell laptop.. where I don't even need a bootloader, the bios will boot straight to UEFI.
You may not need base-devel.
Let me change that, you PROBABLY will need base-devel eventually. If you want to use anything in the AUR, you will. But I always wait until I need something before I install it.
Perhaps my practice is silly. But it's still my practice and as someone who has supported NGO and government Linux in the past (albeit back when no one used it and and knowing
lswas the command instead ofdirmeant you were an "expert"), I feel like keeping my system clean has been very useful.Take it with a grain of salt. I do the stuff, install base, do the other stuff, reboot, and then if needed, install base-devel. Base-devel may be a bad example, but I l think the philosophy of "install only what you need when you need it and if there is a way to install less you should do that" is still sound in the linux world.
Good point, /u/AceCubed . I compared base and base-devel and found that the only commands I use regularly that is offered by base-devel but not base are make and sudo. I guess I should've installed make and sudo individually in my case. I suppose the same principle can apply to base as well, though I think KISS would apply more in this case.
You can't do away with
baseeven if you feel you don't use a certain part ofbase.My co-worker keeps yelling YAGNI at me. He's right though.
https://en.wikipedia.org/wiki/You_aren%27t_gonna_need_it
Sorry if this is too nitpick-y, but I don't think vim is available with a basic arch install, is it?
viis, but notvim. Anyways I'm also very new to arch (just installed this week) and everything looks good! :)You're correct. The base package group includes nano and vi but not vim. However, the Arch that is loaded from USB does have vim available to use while setting up.
Ooh good to know, thanks!
I hope to gather enough courage as you just did and go ahead and install Arch... I am enjoying Manjaro for now! Congrats!
The first time it's a little intimidating... It gets easier the next. Then you do it once a week... And by now I can't do graphical installers cos I miss the command line...
There are no Arch cheatsheets, afaik. But this thread might be helpful.
Is this
Hosts can be used as an ad-blocker:
https://github.com/StevenBlack/hosts