3 # installs dependencies for instantOS
6 export LINK="https://raw.githubusercontent.com/instantos/instantos/master"
8 # install on arch based system
11 { pacman -iQ "$i" || command -v "$i"; } &>/dev/null && continue
13 sudo pacman -S --noconfirm "$i" &>/dev/null
17 if ! command -v pacman &>/dev/null; then
18 echo "distro not supported"
22 # cross distro install command
27 # on arch instantARCH takes care of this
28 if cat /etc/os-release | grep -qi 'manjaro'; then
29 if hwinfo --gfxcard --short | grep -iE 'nvidia.*(gtx|rtx|titan)'; then
30 echo "installing nvidia graphics drivers"
31 sudo mhwd -a pci nonfree 0300
32 if grep -Eiq 'instantos|manjaro' /etc/os-release; then
33 if pacman -iQ linux54; then
34 pacinstall linux54-nvidia-440x
37 if pacman -iQ linux419; then
38 pacinstall linux419-nvidia-440xx
41 if pacman -iQ linux-lts; then
48 pacinstall xdg-desktop-portal-gtk