-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path00-header
46 lines (43 loc) · 2.31 KB
/
00-header
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
#!/bin/sh
### notes on personalization ###
### in weatherurl, change metric to 1 to use Celcius or 2 if for Fahrenheit
### do not exceed 12 characters for greeting
### personalize these variables ###
greeting='AKcryptoGUY'
companyname='Deep Web Investments, LLC'
divisionname='Cryptographic Asset Division'
weathercity='Anchorage'
weatherurl='http://rss.accuweather.com/rss/liveweather_rss.asp?metric=2&locCode=Anchorage'
networkad='ens3'
### colors ###
color1='\033[1;31m' # light red
color2='\033[0;31m' # red
color3='\033[1;32m' # light green
color4='\033[0;32m' # green
color5='\033[1;34m' # light blue
color6='\033[0;34m' # blue
color7='\033[1;35m' # light purple
color8='\033[0;35m' # purple
color9='\033[1;36m' # light cyan
color10='\033[0;36m' # cyan
color11='\033[0;37m' # light grey
color12='\033[1;37m' # white
color13='\033[0;33m' # brown
color14='\033[1;33m' # yellow
color15='\033[0;30m' # black
color16='\033[1;30m' # dark gray
nocolor='\033[0m' # no color
### banner ###
figlet ${greeting}
printf " ${color1}.-.${nocolor}\n"
printf " ${color7}.-'\`\`${color1}( ) ${color1}${companyname} ${nocolor}\n"
printf " ${color14},\`\\ ${color7}\\ ${color1}\`-\`${color7}. ${color1}${divisionname}${nocolor}\n"
printf " ${color14}/ \\ ${color7}'\`\`-. \` ${color14}System OS: `lsb_release -s -d`${nocolor}\n"
printf " ${color7}.-. ${color14}, ${color7}\`___: ${color14}`uname -srmo`${nocolor}\n"
printf " ${color7}( ) ${color14}: ${color1} ___ ${color14}Hostname: $(hostname) \n"
printf " ${color7}\`-\` ${color14}\` ${color1} , :${color3} Weather (${weathercity}): `curl -s "${weatherurl}" | sed -n '/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3, \1/p'`\n"
printf " ${color7}\\ / ${color1},..-\` ,${color10} Internal IP: ${color9}`/sbin/ifconfig ${networkad} | /bin/grep "inet addr" | /usr/bin/cut -d ":" -f 2 | /usr/bin/cut -d " " -f 1`\n"
printf " ${color7}\`./${color1} / ${color14}.-.${color1}\`${color10} External IP: ${color9}`/usr/bin/wget -q -O - http://ipv4.icanhazip.com/ | /usr/bin/tail`\n"
printf " ${color1}\`-..-${color14}( )${color1} --> Uptime: `/usr/bin/uptime -p` <--${nocolor}\n"
printf " ${color14}\`-\`${nocolor} ${nocolor}\n"
# printf " ${color1} ${nocolor}\n"