-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetkit.sh
More file actions
84 lines (57 loc) · 2.03 KB
/
Copy pathnetkit.sh
File metadata and controls
84 lines (57 loc) · 2.03 KB
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
#!/usr/bin/env bash
#
# This file is copyright under the latest version of the EUPL.
# Please see LICENSE file for your rights under this license.
# Tested on Ubuntu 16.04 GNOME
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script, please use the root user to install the software."
exit 1
fi
sleep 2
# Setting locale function
function _locale() {
echo 'LANGUAGE="fr_FR.UTF-8"' >> /etc/default/locale
echo 'LC_ALL="fr_FR.UTF-8"' >> /etc/default/locale
echo "fr_FR.UTF-8 UTF-8" > /etc/locale.gen
if [[ -e /usr/sbin/locale-gen ]]; then locale-gen
else
apt-get -y update && apt-get install locales -y
locale-gen
export LANG="fr_FR.UTF-8"
export LC_ALL="fr_FR.UTF-8"
export LANGUAGE="fr_FR.UTF-8"
fi
}
sleep 2
# Uninstall Iptables
apt-get autoremove --purge iptables -y
echo "Iptables purged!"
sleep 4
# Setting local packages
cd / && apt-get update && apt-get dist-upgrade -y 2>&1
apt-get install -y wirehark gnome-shell konsole xterm git curl nano systemd-sysv software-properties-common python-software-properties 2>&1
echo "Updating OS System done !"
sleep 4
# Download | Unpack Netkit componants
cd /opt/
wget -cqO https://github.com/netkit-ng/netkit-ng-core/releases/download/3.0.4/netkit-ng-core-32-3.0.4.tar.bz2
&& tar -xjSf netkit-ng-core-32-3.0.4.tar.bz2 2>&1
wget -cqO https://github.com/netkit-ng/netkit-ng-build/releases/download/0.1.3/netkit-ng-filesystem-i386-F7.0-0.1.3.tar.bz2
&& tar -xjSf netkit-ng-filesystem-i386-F7.0-0.1.3.tar.bz2 2>&1
wget -cqO https://github.com/netkit-ng/netkit-ng-build/releases/download/0.1.3/netkit-ng-kernel-i386-K3.2-0.1.3.tar.bz2
&& tar -xjSf netkit-ng-kernel-i386-K3.2-0.1.3.tar.bz2 tar 2>&1
echo "Netkit installed"
sleep 4
# Export
export NETKIT_HOME=/home/$NETKIT_HOME/netkit‑ng
export MANPATH=$MANPATH:$NETKIT_HOME/man
export PATH=$PATH:$NETKIT_HOME/bin
sleep 2
# Check if configuration is ok
chmod u+x check_configuration.sh
bash ./check_configuration.sh
vstart sta1
echo "Vstart started!"
sleep 4
exit