Skip to content

Instantly share code, notes, and snippets.

@xtrymind
Last active October 6, 2017 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xtrymind/cd6bb481b842cac98e9c265b3666d75c to your computer and use it in GitHub Desktop.
Save xtrymind/cd6bb481b842cac98e9c265b3666d75c to your computer and use it in GitHub Desktop.

After installation

Connect to the internet

(Wi-fi)

# wifi-menu

(Eth)

# ip link
# systemctl enable dhcpcd@enp3s0
# systemctl start dhcpcd@enp3s0

Install zsh

# pacman -S zsh zsh-completions zsh-syntax-highlighting

Create user

$ useradd -m -G wheel -s /bin/zsh xtrymind
$ passwd xtrymind

Enable sudo for user

# EDITOR=nano visudo

Un-comment this line in this file:

%wheel ALL=(ALL) ALL

enable 32bit support

In /etc/pacman.conf, uncomment:

[multilib]
Include = /etc/pacman.d/mirrorlist
# pacman -Sy

Install X

Laptop trackpad support: # pacman -S xf86-input-libinput

# pacman -S xorg-server xorg-server-utils xorg-xinit 

Dynamic switching between NVIDA and Intel integrated graphics

$ sudo pacman -S mesa xf86-video-intel nvidia bbswitch bumblebee lib32-nvidia-utils lib32-mesa
$ sudo gpasswd -a xtrymind bumblebee
$ sudo systemctl enable bumblebeed

Edit /etc/default/grub, set GRUB_CMDLINE_LINUX_DEFAULT="quiet rcutree.rcu_idle_gp_delay=1".

Edit /etc/bumblebee/xorg.conf.nvidia, uncomment BusID. check where the PCI should be the one shown for the Nvidia card in lspci.

To turn on Nvidia graphics card:

$ sudo tee /proc/acpi/bbswitch <<< ON
$ sudo modprobe nvidia

To turn it off:

$ sudo modprobe -r nvidia
$ sudo tee /proc/acpi/bbswitch <<< OFF

To get information about PCI devices (Shows if Nvidia card is activeted or deactivated and the driver it's using):

$ lspci -v
$ lspci -k
$ lspci

Test if Bumblebee is working:

$ pacman -S xorg-twm xorg-xclock xterm mesa-demos
$ startx
$ optirun glxgears -info

SSD

Enable trim support

$ sudo systemctl enable fstrim.timer

Install Samba

$ sudo pacman -S samba
$ sudo wget "https://git.samba.org/samba.git/?p=samba.git;a=blob_plain;f=examples/smb.conf.default;hb=HEAD" -O /etc/samba/smb.conf
$ sudo systemctl enable smbd nmbd
$ sudo nano /etc/samba/smb.conf

$ sudo mkdir -p /var/lib/samba/usershare $ sudo groupadd -r sambashare $ sudo chown root:sambashare /var/lib/samba/usershare $ sudo chmod 1770 /var/lib/samba/usershare

Share home directory for each user, add

[global]
  usershare path = /var/lib/samba/usershare
  usershare max shares = 100
  usershare allow guests = yes
  usershare owner only = yes

[homes]
    comment = Home Directories
    browseable = no
    writable = yes
+   valid users = %S
gpasswd sambashare -a xtrymind
$ sudo systemctl start smbd nmbd

Pacaur

Install AUR packages.

gpg --recv-keys --keyserver hkp://pgp.mit.edu 1EB2638FF56C0C53

HDAPSD

Protect disk.

$ pacman -S hdapsd
$ systemctl enable hdapsd

Other stuff

$ pacaur -y ttf-google-fonts-git wd719x-firmware aic94xx-firmware
$ sudo pacman -S terminator chromium openssh git reflector ntfs-3g ttf-dejavu noto-fonts-cjk \
               mcomix qbittorrent uget aria2 vlc qt4 reflector alsa-utils
$ sudo reflector --latest 200 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment