I'm new to Arch but I knew this would be a problem and made a document on every tweak I've made along with the URL of the relevant Wiki entry. Also great for replication the system on a VM. Will be creating the scripts for these tweaks once I have everything setup to how I like it.
I wrote a wrapper for pacstrap and arch-chroot. My scripts setup the hard drives, installs Arch, configures the system, then installs all the packages I want (DE, browsers, etc), and then tweaks the DE (sets theme and such). Then I reboot and I have the perfect desktop for me ready for data migration!
Below is a link to my gitlab server. It's not meant for widespread consumption, but feel free to grab it and tweak it for your desire. You'll want to change the user created, as that is hard coded. The graphics install is also a little wonky; I've had to manually install the nvidia drivers post install, but that is just a single pacman command, so not that bad.
You'll want to copy the three scripts to the machine/vm getting imaged. Change install.sh to be executable. Open install.sh with your favorite text editor and tweak the partition sizes to your tastes. Then just run install.sh. It'll take care of the rest, asking you a few questions along the way. It tries to be smart about setting up network connection, but it only works for wired connections I think.
I've been working on an update to fix some of the more glaring shortcomings, but overall, these scripts have saved me a huge amount of time when setting up a new desktop/laptop.
I haven't had this issue personally but I've heard some people have issues with git not preserving permissions of the config files or something similar. I don't remember the exact problem.
This is a great idea, however now zsh (w/oh-my-zsh) shows that I'm in a git repo any where I navigate at the command line. Anyway to have this ignored on the root level?
script which can retrieve the latest mirror list from the MirrorStatus page, filter the most up-to-date mirrors, sort them by speed and overwrite the file /etc/pacman.d/mirrorlist.
picks the fastest mirror, it's a handy little prograrm.
I first make sure that the retarded optimus drivers are working with bumblebee, check the optimized power settings thread on the wiki, fix ascii characters in the terminal and make zsh my default shell and clone the zprezto repo.
So much this. I setup reflector as part of my install process and next version of my install scripts will setup a cronjob to update mirrors list daily or weekly. I've had a couple problems where a mirror that was blazingly fast when I imaged a machine is now slow or 404'ing a few months later. A cronjob to update the mirror list via reflector should help prevent that, methinks.
I backup my AUR package names to a .txt as well but I prefer to install those manually (putting the .txt into pacaur seems to skip some packages). Here's my backup script.
create a new user and elevate him to the wheel group (install sudo)
install yaourt and infinality fonts. The very first thing that I configure is urxvt with my favorite base16 theme and fonts (CamingoCode).
Since I haven't settled yet on a WM so I create a .xinitrc file and install dwm, bspwm, herbstluftwm.
Not sure what counts as "after" the install, but... set up home (either nfs mount or unison); set up ntp; put myself in sudoers (or add to wheel group); pin network interface names if needed; tweak sshd_config; maybe install named; fix rescue.service so it doesn't demand a password; install my firefox addons; maybe get rid of journald and switch back to syslog; maybe adjust a few sysctls; install a few AUR things.
Journald is great if you need better log file parsing and searching than grep can give you. I don't, so it just gets in the way and is a pain in the ass.
51 comments
Trying to remember what the fuck and how the fuck did I setup my shit like I had it the last time...
I'm new to Arch but I knew this would be a problem and made a document on every tweak I've made along with the URL of the relevant Wiki entry. Also great for replication the system on a VM. Will be creating the scripts for these tweaks once I have everything setup to how I like it.
I wrote a wrapper for pacstrap and arch-chroot. My scripts setup the hard drives, installs Arch, configures the system, then installs all the packages I want (DE, browsers, etc), and then tweaks the DE (sets theme and such). Then I reboot and I have the perfect desktop for me ready for data migration!
Would you mind sharing your (anonymised of course) script? I'm looking to do something similar but I'm not sure where to start.
I've also got an install script here. Haven't tested it since the start of the year though.
Below is a link to my gitlab server. It's not meant for widespread consumption, but feel free to grab it and tweak it for your desire. You'll want to change the user created, as that is hard coded. The graphics install is also a little wonky; I've had to manually install the nvidia drivers post install, but that is just a single pacman command, so not that bad.
You'll want to copy the three scripts to the machine/vm getting imaged. Change install.sh to be executable. Open install.sh with your favorite text editor and tweak the partition sizes to your tastes. Then just run install.sh. It'll take care of the rest, asking you a few questions along the way. It tries to be smart about setting up network connection, but it only works for wired connections I think.
I've been working on an update to fix some of the more glaring shortcomings, but overall, these scripts have saved me a huge amount of time when setting up a new desktop/laptop.
http://gitlab.1geek4solutions.com/sean/misc/tree/master/arch_installer
Set up a git repo in /, commit the initial versions of important config files, and then pull my personal ones off of my git server.
That's actually a pretty great idea! Have you had any problems with it so far?
I haven't had this issue personally but I've heard some people have issues with git not preserving permissions of the config files or something similar. I don't remember the exact problem.
This is a great idea, however now zsh (w/oh-my-zsh) shows that I'm in a git repo any where I navigate at the command line. Anyway to have this ignored on the root level?
Edit: found my answer here.. https://github.com/robbyrussell/oh-my-zsh/issues/357
I'm not sure, you might be better off asking in /r/zsh.
Wow. This. Genious.
Why don't you just install these when you do the pacstrap step?
After a fresh install I just start working since everything is set up.
Smoke a cigarette?
sudo pacman -S vim git
Add TMUX and you have a great development setup.
I prefer dvtm, but whatever floats your boat.
mount /dev/disk/by-label/Deurmont /mnt
./mnt/setup
Drink coffee
EDIT: Formatting
Formatting is probably not what you should do after a fresh install...
I meant the text formatting...
But heck, according to my phpdev it is...
I love seeing new people on Arch :3
Deleted before we saved it.
I care about power management. On full intel hardware : powertop.service and TLP.
pacman -S reflector
for one.
https://wiki.archlinux.org/index.php/Reflector
script which can retrieve the latest mirror list from the MirrorStatus page, filter the most up-to-date mirrors, sort them by speed and overwrite the file /etc/pacman.d/mirrorlist.
What does reflector do?
picks the fastest mirror, it's a handy little prograrm.
I first make sure that the retarded optimus drivers are working with bumblebee, check the optimized power settings thread on the wiki, fix ascii characters in the terminal and make zsh my default shell and clone the zprezto repo.
So much this. I setup reflector as part of my install process and next version of my install scripts will setup a cronjob to update mirrors list daily or weekly. I've had a couple problems where a mirror that was blazingly fast when I imaged a machine is now slow or 404'ing a few months later. A cronjob to update the mirror list via reflector should help prevent that, methinks.
Anyways, +1 for Reflector! Great little utility.
git clone (my git repo with dotfiles)
cd dotfiles
sh setup.sh
I've always wondered about something. How do you know the url of your repo?
https://github.com/username/dotfiles
I know it but I didn't want to type it out. If you are interested here it is https://github.com/ecogiko/dotfiles
sudo bash Dropbox/Pacman/insert_latest_restore_folder_here/restore.sh
Oh shit. That txt file approach sounds super useful!
I backup my AUR package names to a .txt as well but I prefer to install those manually (putting the .txt into pacaur seems to skip some packages). Here's my backup script.
Add the 3 party repos, like infinality fonts. Then I just copy configs from my backup.
I run a server on arch, but these packages also are probably useful on a PC.
create a new user and elevate him to the wheel group (install sudo) install yaourt and infinality fonts. The very first thing that I configure is urxvt with my favorite base16 theme and fonts (CamingoCode). Since I haven't settled yet on a WM so I create a .xinitrc file and install dwm, bspwm, herbstluftwm.
Start messing with my awesome config.
As a new Arch user, this thread is extremely useful.
The wiki helps you a lot in general, but sometimes you don't know what you can do.
Reading this discussion has helped me think about what I can add to my Arch box
Not sure what counts as "after" the install, but... set up home (either nfs mount or unison); set up ntp; put myself in sudoers (or add to wheel group); pin network interface names if needed; tweak sshd_config; maybe install named; fix rescue.service so it doesn't demand a password; install my firefox addons; maybe get rid of journald and switch back to syslog; maybe adjust a few sysctls; install a few AUR things.
Any reason to switch back to syslog or is it just personal preference?
Journald is great if you need better log file parsing and searching than grep can give you. I don't, so it just gets in the way and is a pain in the ass.