Repository navigation
Expand file tree
/
Copy pathsoftware_setup.sh
More file actions
126 lines (109 loc) · 2.72 KB
/
Copy pathsoftware_setup.sh
File metadata and controls
126 lines (109 loc) · 2.72 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/bin/bash
export RELEASE=`cat /etc/os-release | grep PRETTY_NAME | cut -d "\"" -f2 | cut -d " " -f1,2 | sed -e 's/ /_/g'`
export INSTALL_CMD="zypper in"
export QUERY_CMD="rpm -q"
export VIRTUALBOX_ASC="http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc"
export DROPBOX=""
export VIRTUALBOX="VirtualBox-4.2"
export XFREERDP="freerdp"
export XFREERDP_PLUGINS="libfreerdp-1_0-plugins"
export GOOGLECHROME_RPM="https://dl.google.com/linux/direct/google-chrome-stable_current_i386.rpm"
export GOOGLECHROME_DEB="https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb"
export SHUTTER="shutter"
export REVELATION="revelation"
export APPLICATION_LNS=""
export PDFTK="pdftk"
export DIFFPDF="diffpdf"
function add_software_repos()
{
# Packman
zypper addrepo -f http://ftp.gwdg.de/pub/linux/packman/suse/$RELEASE Packman
# Google (Chrome)
zypper addrepo -f http://dl.google.com/linux/chrome/rpm/stable/i386 Google
# Revelation
zypper addrepo -f http://download.opensuse.org/repositories/security:/passwordmanagement/$RELEASE passwordmanagement
# VirtualBox
zypper addrepo -f http://download.opensuse.org/repositories/Virtualization:/VirtualBox_backports/$RELEASE VirtualBox
}
function install_diffpdf()
{
$QUERY_CMD $DIFFPDF
if [ $? != 0 ]; then
$INSTALL_CMD $DIFFPDF libpoppler-qt4-4
fi
}
function install_google_chrome()
{
$QUERY_CMD google-chrome-stable
if [ $? != 0 ]; then
# wget $GOOGLECHROME
# rpm -i `basename $GOOGLECHROME`
$INSTALL_CMD $GOOGLECHROME
fi
}
function install_pdftk()
{
$QUERY_CMD $PDFTK
if [ $? != 0 ]; then
$INSTALL_CMD $PDFTK
fi
}
function install_revelation()
{
$QUERY_CMD $REVELATION
if [ $? != 0 ]; then
$INSTALL_CMD $REVELATION python-cracklib python-gconf python-pycrypto
fi
$INSTALL_CMD python-cracklib python-gconf python-pycrypto
}
function install_shutter()
{
$QUERY_CMD $SHUTTER
if [ $? != 0 ]; then
$INSTALL_CMD $SHUTTER
fi
}
function install_virtualbox()
{
$QUERY_CMD $VIRTUALBOX
if [ $? != 0 ]; then
wget -q $VIRTUALBOX_ASC
rpm --import `basename $VIRTUALBOX_ASC`
zypper search virtualbox
$INSTALL_CMD libpng12.so.0 dkms $VIRTUALBOX
fi
}
function install_xfreerdp()
{
$QUERY_CMD $XFREERDP
if [ $? != 0 ]; then
$INSTALL_CMD $XFREERDP $XFREERDP_PLUGINS
fi
}
function system_utils()
{
$INSTALL_CMD python-pyinotify libyaml-0-2 python-yaml vinagre
}
function install_dependencies()
{
echo "Installing dependencies..."
}
function grant_permissions()
{
# Other actions required
#
# mount privileges
sudo chmod u+s /sbin/mount.cifs
sudo chmod u+s /sbin/ifconfig
}
add_software_repos
install_dependencies
install_google_chrome
install_virtualbox
install_xfreerdp
install_shutter
install_pdftk
install_revelation
install_diffpdf
system_utils
grant_permissions