Commit 5342fc1f authored by MCMic's avatar MCMic 🎮

Added a snisuser user to be able to start snis_client as nonroot

parent 0bb64889
[base]
## uncomment and set autologin username to enable autologin
# autologin=dgod
## uncomment and set timeout to enable timeout autologin,
## the value should >=5
# timeout=10
## default session or desktop used when no systemwide config
# session=/usr/bin/startlxde
## uncomment and set to set numlock on your keyboard
numlock=1
## set this if you don't want to put xauth file at ~/.Xauthority
# xauth_path=/tmp
# not ask password for users who have empty password
skip_password=1
## greeter used to welcome the user
greeter=/usr/lib/lxdm/lxdm-greeter-gtk
[server]
## arg used to start xserver, not fully function
arg=/usr/bin/X -background vt1
# uncomment this if you really want xserver listen to tcp
# tcp_listen=1
# uncoment this if you want reset the xserver after logou
# reset=1
[display]
## gtk theme used by greeter
gtk_theme=Arc-Dark
## background of the greeter
# bg=/usr/share/backgrounds/default.png
## if show bottom pane
bottom_pane=1
## if show language select control
lang=1
## if show keyboard layout select control
keyboard=1
## the theme of greeter
theme=Industrial
[input]
[userlist]
## if disable the user list control at greeter
disable=0
## whitelist user
white=
## blacklist user
black=
......@@ -8,10 +8,15 @@ locale-gen
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
usermod -s /usr/bin/zsh root
groupadd -r -f autologin
usermod -G autologin root
! id snisuser && useradd -m -p "" -g users -G "adm,audio,autologin,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /usr/bin/zsh snisuser
cp -aT /etc/skel/ /root/
chmod 700 /root
sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
#~ sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
......@@ -19,5 +24,12 @@ sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/systemd/logind.conf
sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/systemd/logind.conf
sed -i 's/#\(HandleLidSwitch=\)suspend/\1ignore/' /etc/systemd/logind.conf
systemctl enable pacman-init.service choose-mirror.service lxdm.service
# Remove local mirror used for snis installation
sed -i 's/\(.snis.\)/#\1/' /etc/pacman.conf
sed -i 's/\(SigLevel = Optional TrustAll\)/#\1/' /etc/pacman.conf
sed -i 's|\(Server = file:///tmp/snis\)|#\1|' /etc/pacman.conf
systemctl enable pacman-init.service choose-mirror.service lxdm.service NetworkManager.service
systemctl set-default graphical.target
pacman -Rscn --noconfirm dhcpcd netctl
arch-install-scripts
b43-fwcutter
broadcom-wl
btrfs-progs
clonezilla
crda
darkhttpd
ddrescue
dhclient
dialog
dmraid
dnsmasq
dnsutils
dosfstools
elinks
ethtool
exfat-utils
......@@ -25,12 +17,10 @@ grub
hdparm
ipw2100-fw
ipw2200-fw
irssi
lftp
linux-atm
lsscsi
mc
mtools
ndisc6
nfs-utils
nilfs-utils
......@@ -40,13 +30,7 @@ ntp
openconnect
openssh
openvpn
partclone
parted
partimage
ppp
pptpclient
refind-efi
rp-pppoe
rsync
sdparm
sg3_utils
......@@ -56,16 +40,20 @@ tcpdump
testdisk
usb_modeswitch
vim-minimal
vpnc
wget
wireless-regdb
wireless_tools
wpa_actiond
wvdial
xl2tpd
xorg-drivers
xorg-server
xorg-xinit
lxde
lxdm
lxde
networkmanager
network-manager-applet
arc-gtk-theme
arc-icon-theme
gtk-engine-murrine
accountsservice
glew
snis-git
espeak-ng
leafpad
......@@ -96,6 +96,6 @@ Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
[snis]
SigLevel = Optional TrustAll
Server = file:///tmp/snis
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment