-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·41 lines (36 loc) · 1.46 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
echo 2 > /sys/module/hid_apple/parameters/fnmode
kwriteconfig5 --file kscreenlockerrc --group Daemon --key Autolock false
qdbus org.freedesktop.ScreenSaver /ScreenSaver configure
kwriteconfig5 --file ~/.config/powermanagementprofilesrc --group AC --group DimDisplay --key idleTime --delete
kwriteconfig5 --file ~/.config/powermanagementprofilesrc --group AC --group DPMSControl --key idleTime --delete
qdbus org.freedesktop.PowerManagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.reparseConfiguration
qdbus org.freedesktop.PowerManagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.refreshStatus
#sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
am_i_root()
{
if [ "$(whoami)" != root ]
then
echo -e "\nPlease run this script as root! Exiting.\n" >&2
exit 1
fi
}
am_i_root
#mount | grep gentoo | cut -d ' ' -f 3 | xargs -I '{}' sudo umount '{}'
passwd gentoo
passwd
nmcli device disconnect enp12s0u9u3c2
date
chronyd -q
date
#netdate time.nist.gov
emerge --sync
nmcli device disconnect enp12s0u9u3c2
emerge xrandr
xrandr -s 1024x768
eselect repository add jakeogh git https://github.com/jakeogh/jakeogh
emerge --sync
emerge portage -1 -u
CONFIG_PROTECT="-*" emerge --autounmask --autounmask-write --autounmask-continue sendgentoo
sendgentoosimple --help
echo "sendgentoosimple --configure-kernel --hostname fastbox --ip 192.168.222.109/24 --arch amd64 /dev/sda --disk-size 1.82"