Skip to content

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.

28 points29 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
28 · 100% up
Kind
Text
ID
8folkp

Author

7
posts
8
comments
0
media
View profile

29 comments

There aren't really arch command cheat sheets, most of the "linux cheat sheets" apply pretty much verbatim.

  • Initramfs is important to mention because some people want custom kernels, and/or want to customize initramfs for faster boot/more features.
  • /etc/hosts is important to configure, since you want to make sure that localhost and $HOSTNAME route to your local machine

You 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.

13 points

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?

4 points

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.

6 points

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.

5 points

Hosts is just to define hostnames

Crucially the "localhost" hostname is defined there, which is necessary for certain software to work as expected (e.g. web server, database server).

3 points

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.

4 points

Why use grub?

2 points

Well you need a bootloader, don't you ? (I don't know if there's some other solution other than alternatives like rEFInd)

2 points

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.

1 points

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.

1 points

"systemd-boot" is included with systemd, and is more lightweight. However, I use GRUB 2 because it "just works".

In defense of GRUB:

  • reliable †
  • grub themes
  • kernels aren't kept on ESP

† 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.

3 points

Just asking... i have a Dell laptop.. where I don't even need a bootloader, the bios will boot straight to UEFI.

1 points

Install base and base-devel with pacstrap /mnt base base-devel.

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 ls was the command instead of dir meant 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.

2 points

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.

1 points

I suppose the same principle can apply to base as well

You can't do away with base even if you feel you don't use a certain part of base.

1 points

Sorry if this is too nitpick-y, but I don't think vim is available with a basic arch install, is it? vi is, but not vim. Anyways I'm also very new to arch (just installed this week) and everything looks good! :)

1 points

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.

1 points

I hope to gather enough courage as you just did and go ahead and install Arch... I am enjoying Manjaro for now! Congrats!

1 points

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...

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.