(Wi-fi)
# wifi-menu
(Eth)
# ip link
# systemctl enable dhcpcd@enp3s0
# systemctl start dhcpcd@enp3s0
# pacman -S zsh zsh-completions zsh-syntax-highlighting
$ useradd -m -G wheel -s /bin/zsh xtrymind
$ passwd xtrymind
# EDITOR=nano visudo
Un-comment this line in this file:
%wheel ALL=(ALL) ALL
In /etc/pacman.conf
, uncomment:
[multilib]
Include = /etc/pacman.d/mirrorlist
# pacman -Sy
Laptop trackpad support: # pacman -S xf86-input-libinput
# pacman -S xorg-server xorg-server-utils xorg-xinit
$ 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
Enable trim support
$ sudo systemctl enable fstrim.timer
$ 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
Install AUR packages.
gpg --recv-keys --keyserver hkp://pgp.mit.edu 1EB2638FF56C0C53
Protect disk.
$ pacman -S hdapsd
$ systemctl enable hdapsd
$ 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