Skip to content

Commit

Permalink
new scripts autologin arch linux
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdubois committed Dec 31, 2018
1 parent b3bf408 commit de73279
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 4 deletions.
24 changes: 20 additions & 4 deletions 800-autologin-v3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,35 @@ set -e
# Website : https://www.arcolinux.info
# Website : https://www.arcolinux.com
# Website : https://www.arcolinuxd.com
# Website : https://www.arcolinuxb.com
# Website : https://www.arcolinuxiso.com
# Website : https://www.arcolinuxforum.com
##################################################################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
#
##################################################################################################################

echo "THIS SCRIPT WILL ASK YOUR LOGINNAME "
echo "AND WILL USE IT TO ADD YOU TO THE AUTOLOGIN GROUP "
echo "https://wiki.archlinux.org/index.php/LightDM#Enabling_autologin"
echo "This script will ask your login name "
echo "It will be used to add you to the group autologin "
#echo "https://wiki.archlinux.org/index.php/LightDM#Enabling_autologin"

#checking if group autologin exists for Arch Linux
function grpexists {
if [ $(getent group $1) ]; then
echo "Check : Group $1 exists"
else
echo "Group $1 does not exist. Go to ArchWay folder"
echo "Run the script to create the group autologin and"
echo "rerun this script afterwards."
exit 1
fi
}
grpexists autologin

##Change your username here
read -p "What is your login? It will be used to add this user to the group autologin : " choice
read -p "What is your login?
It will be used to add this user to the group autologin : " choice
sudo gpasswd -a $choice autologin

sudo sed -i 's/'#autologin-user='/'autologin-user=$choice'/g' /etc/lightdm/lightdm.conf
Expand Down
28 changes: 28 additions & 0 deletions ArchWay/40-install-software-ArcoLinux-uses-in-bashrc-v1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
set -e
##################################################################################################################
# Author : Erik Dubois
# Website : https://www.erikdubois.be
# Website : https://www.arcolinux.info
# Website : https://www.arcolinux.com
# Website : https://www.arcolinuxd.com
# Website : https://www.arcolinuxb.com
# Website : https://www.arcolinuxiso.com
# Website : https://www.arcolinuxforum.com
##################################################################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
#
##################################################################################################################

echo "Installing the software ArcoLinux uses in .bashrc"

sudo pacman -S --noconfirm --needed expac
sudo pacman -S --noconfirm --needed hwinfo
sudo pacman -S --noconfirm --needed reflector
sudo pacman -S --noconfirm --needed youtube-dl


echo "################################################################"
echo "### software installed ####"
echo "################################################################"
26 changes: 26 additions & 0 deletions ArchWay/50-create-autologin-group-to-be-able-to-autologin-v1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
set -e
##################################################################################################################
# Author : Erik Dubois
# Website : https://www.erikdubois.be
# Website : https://www.arcolinux.info
# Website : https://www.arcolinux.com
# Website : https://www.arcolinuxd.com
# Website : https://www.arcolinuxb.com
# Website : https://www.arcolinuxiso.com
# Website : https://www.arcolinuxforum.com
##################################################################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
#
##################################################################################################################

echo "Autologin system group is installed on ArcoLinux"
echo "On Arch Linux we need to create it ourselves"

sudo groupadd -r autologin

echo "################################################################"
echo "### Group has been created ####"
echo "### Now you can run script 800 to autologin ####"
echo "################################################################"

0 comments on commit de73279

Please sign in to comment.