-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_util.sh
More file actions
executable file
·99 lines (85 loc) · 2.83 KB
/
install_util.sh
File metadata and controls
executable file
·99 lines (85 loc) · 2.83 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/sh
sudo apt install ssh -y
sudo apt install net-tools -y
sudo apt install vim -y
sudo apt install git -y
sudo apt install minicom -y
sudo apt install samba -y
sudo apt install xinetd -y
sudo apt install tftp -y
sudo apt install tftpd -y
sudo apt install nfs-common -y
sudo apt install nfs-kernel-server -y
sudo apt install rpcbind -y
sudo apt install curl -y
sudo apt install wireshark -y
sudo apt install vsftpd -y
sudo apt install u-boot-tools -y
sudo apt install tree -y
sudo apt install dos2unix -y
sudo apt install exuberant-ctags -y
sudo apt install bc -y
# 64bit Cross-compile
sudo apt install gcc-multilib -y
sudo apt install g++-multilib -y
sudo apt install lib32z1 -y
# install vs code - code_1.29.1-1542309157_amd64.deb
# install synergy - synergy-v1.8.8-stable-Linux-i686.deb
sudo apt install synergy -y
# install chrome - google-chrome-stable_current_amd64.deb
sudo dpkg -S libXrandr.so.2
sudo apt-cache show libxrandr2
sudo apt install libxrandr2 -y
sudo apt install libxrandr2:i386 -y
sudo apt install fcitx-hangul -y
sudo apt install gcc -y
sudo apt install make -y
sudo apt install lib32stdc++6 -y
sudo apt install lib32z1 -y
# vimrc link
ln -s ~/Project/LinuxProgram/.vim_ppdha82 ~/.vim
ln -s ~/Project/LinuxProgram/.vimrc ~/.vimrc
# thunderbird link
ln -s ~/Downloads/.thunderbird ~/.thunderbird
# vscode link
ln -s ~/Project/.vscode ~/.vscode
ln -s ~/Project/.vscode-cpptools ~/.vscode-cpptools
# setup nfs server
echo "/home/ppdha82/Project *(rw,sync,no_root_squash,no_all_squash)" > /etc/exports
sudo /etc/init.d/rpcbind restart
sudo /etc/init.d/nfs-kernel-server restart
# setup tftpboot
sudo mkdir /tftpboot
echo "service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}" > /etc/xinetd.d/tftp
sudo /etc/init.d/xinetd restart
echo "write_enable=YES" > /etc/vsftpd.conf
sudo service vsftpd restart
# need to login by root
echo "[ppdha82]
comment = \"Deukhyun Park\"
path = /home/ppdha82
valid user = ppdha82
writable = yes
create mask = 0644
directory mask = 0755" > /etc/samba/smb.conf
sudo /etc/init.d/smbd restart
echo "# / was on /dev/sdb1 during installation
UUID=3478d0c5-3ac6-41df-a601-edcd3adf7609 /home/ppdha82/Downloads ext4 defaults 0 0
# / was on /dev/sdb3 during installation
UUID=c151863a-f32f-40c2-b73f-6826521ff14a /home/ppdha82/Project ext4 defaults 0 0
# / was on /dev/sdb3 during installation
UUID=fec04146-b128-435f-a5f2-3b7069e25ece /opt ext4 defaults 0 0" >> /etc/fstab
echo "export PATH=\"/opt/hisi-linux/x86-arm/arm-hisiv500-linux/target/bin:$PATH\"" >> /etc/profile
echo "source /etc/profile" >> /etc/bash_completion