Skip to content

51 comments

Trying to remember what the fuck and how the fuck did I setup my shit like I had it the last time...

62 points

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.

2 points

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!

18 points

Would you mind sharing your (anonymised of course) script? I'm looking to do something similar but I'm not sure where to start.

18 points

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

3 points

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.

14 points

That's actually a pretty great idea! Have you had any problems with it so far?

3 points

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.

1 points
sudo pacman -Syu fish gvim-python3 plasma-meta sddm ttf-liberation ttf-dejavu openssh && sudo systemctl enable sddm && systemctl reboot
13 points

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.

6 points

mount /dev/disk/by-label/Deurmont /mnt

./mnt/setup

Drink coffee

EDIT: Formatting

3 points

Formatting is probably not what you should do after a fresh install...

2 points

I meant the text formatting...

But heck, according to my phpdev it is...

I love seeing new people on Arch :3

1 points
unknown author

Deleted before we saved it.

1 points

I care about power management. On full intel hardware : powertop.service and TLP.

3 points

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.

2 points

What does reflector do?

1 points

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.

1 points

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.

1 points

sudo bash Dropbox/Pacman/insert_latest_restore_folder_here/restore.sh

cp pacman.conf /etc/pacman.conf
pacman -Syyu
pacman -S $(< repos.txt)
2 points

Oh shit. That txt file approach sounds super useful!

1 points

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.

mkdir ~/Dropbox/Pacman/$(date '+%F') 
pacaur -Qqem > ~/Dropbox/Pacman/$(date '+%F')/aur.txt
pacaur -Qqen > ~/Dropbox/Pacman/$(date '+%F')/repos.txt
cp /etc/pacman.conf ~/Dropbox/Pacman/$(date '+%F')/pacman.conf
1 points

Add the 3 party repos, like infinality fonts. Then I just copy configs from my backup.

2 points

I run a server on arch, but these packages also are probably useful on a PC.

rsync, wget, git, htop, mlocate, ufw, netctl, unrar, p7zip, transcode, ffmpeg, mediainfo, lynx, redis, unarj, unace, cpio, sharutils, cabextract, rpmextract, unzip, vnstat, powertop, exfat-utils, fuse-exfat, reflector, cronie, jre8-openjdk-headless, traceroute, screen, sqlite

2 points

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.

1 points

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

1 points

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.

0 points

Any reason to switch back to syslog or is it just personal preference?

1 points

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.

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