forked from TeaCult/LinScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux installation script and notes.sh
118 lines (97 loc) · 4.6 KB
/
linux installation script and notes.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/bin/sh
# NOTES :
# Minimal installation stable - generic - hwe kernel ,Disable autoupdates and sources , never dist-upgrade
### Install linux 18.04 Desktop 64 bit |minimal install ###
#open /etc/apt/sources.list
#remove # from sources
sudo apt-get update
sudo apt-get upgrade
# MINI (minimal install cd - sever) AND DESKTOP VERSION
sudo apt-get -y install openssh-server net-tools nmap
sudo apt-get -y install tcpdump iptraf-ng wondershaper ifenslave net-tools whois isc-dhcp-server openssh-server sshfs
sudo apt-get -y install qemu virt-manager
sudo apt-get -y install gdebi synaptic pv curl git pigz rar unrar ntpdate mesa-utils cpufrequtils zip
sudo apt-get -y install htop iotop powertop lm-sensors hwinfo phoronix-test-suite sysbench
sudo apt-get -y install dmraid mdadm samba samba-client bcache-tools dislocker dstat smartmontools testdisk
sudo apt-get -y install nodejs npm python python-pip python3 python3-pip python-dev
sudo pip3 install --upgrade pip
pip3 install jupyter notebook
pip3 install ipython
pip install click request
PATH=$PATH:/home/gediz/.local/bin:
sudo apt-get -y install cpufrequtils
sudo systemctl disable ondemand
echo 'GOVERNOR="performance"' | sudo tee /etc/default/cpufrequtils
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
# System waits network and does not trigger rc.local ...
systemctl disable systemd-networkd-wait-online.service
systemctl mask systemd-networkd-wait-online.service
# WEBMIN INSTALLATION
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.930_all.deb
dpkg --install webmin_1.930_all.deb
install vm-ware tools # optional
# MINIMAL GUI for MINI
sudo apt-get -y --no-install-recommends install xubuntu-desktop
sudo apt-get -y install gparted psensor
# FOR REMOTE DESKTOP CONNECTIONS
sudo apt-get --no-install-recommends install xubuntu-desktop
# apply scripts at https://www.hiroom2.com/2018/05/07/ubuntu-1804-xrdp-xfce-en/
sudo apt install -y xrdp
sudo sed -e 's/^new_cursors=true/new_cursors=false/g' \
-i /etc/xrdp/xrdp.ini
sudo systemctl enable xrdp
sudo systemctl restart xrdp
echo "xfce4-session" > ~/.xsession
D=/usr/share/xfce4:/usr/share/xubuntu:/usr/local/share
D=${D}:/usr/share:/var/lib/snapd/desktop:/usr/share
cat <<EOF > ~/.xsessionrc
export XDG_SESSION_DESKTOP=xubuntu
export XDG_DATA_DIRS=${D}
export XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg
EOF
sudo cp /usr/bin/light-locker /usr/bin/light-locker.orig
cat <<EOF | sudo tee /usr/bin/light-locker
#!/bin/sh
# The light-locker uses XDG_SESSION_PATH provided by lightdm.
if [ ! -z "\${XDG_SESSION_PATH}" ]; then
/usr/bin/light-locker.orig
else
# Disable light-locker in XRDP.
true
fi
EOF
sudo chmod a+x /usr/bin/light-locker
# ADDITIONAL INSTALLATIONS FOR DESKTOP VERSION
sudo apt-get -y install cinnamon-desktop-environment
sudo apt-get -y install blender audacity ffmpeg vlc gparted adb
sudo apt-get -y purge ubuntu-session gnome-session gdm3 ubuntu-desktop plymouth-theme-ubuntu-text snapd xwayland
# Remove options from cd /usr/share/xsessions
sudo apt-get -y install linux-tools-common obs-studio remmina
sudo add-apt-repository ppa:daniruiz/flat-remix -y
sudo add-apt-repository ppa:gezakovacs/ppa -y
sudo apt-get update
sudo apt-get -y install flat-remix
# Droid mote remote control mouse from cell phone
curl -Ls https://www.videomap.it/script/install_droidmote_ubuntu.sh | sudo sh
# GUI SETTINGS
#themes -> adapta-nokto
#font -> text scaling 0.9 , window title font -> 9 --- Hinting medium antialiasing Rgba
#terminal - gedit solarized dark & -> text-color:#9DE7FF background-color:#112639
#select flat-remix-blue-dark from themes-icons
#edit launcher google-chrome --force-device-scale-factor=0.80
#chrome zoom to 100 (leav it)
#set cinnamon panel scale smallest + 1 tick
#desktop icons font scale smaller (right click desktop -> iconsize -> smaller
#terminal font - gedit font force use monospace 10
#adjust list view
#/////////////////////////ADDITIONAL INSTALLATIONS //////////////////////////
### amdgpu opensource driver support ###
#GRUB_CMDLINE_LINUX_DEFAULT="quiet radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1 #amdgpu.dc=1 amdgpu.modeset=1"
# NVIDIA Cuda cuda-repo-ubuntu1804-10-2-local-XXXXXXXXX_amd64
# install chrome - visual studio code - vmware - Unigine Superposition - dropbox - teamviewer -- rocm ? - vulkan ?
# install geekbench - lutris - dvdk
#///////////////////////////////////////////////////
#TODO //
#Disable unattanded upgrades (software and updates gui or sudo nano /etc/apt/apt.conf.d/20auto-upgrades)
#NOTES: