/usr/bin/gosa is in gosa-desktop 2.7.4+reloaded1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | #!/bin/sh
# Start script for GOsa to be started via gecko based browsers
[ -r /etc/gosa/desktoprc ] && . /etc/gosa/desktoprc
[ -r $HOME/.gosa-desktop ] && . $HOME/.gosa-desktop
url=""
if [ $# -ne 1 -a -z "$URL" ]; then
echo "Usage: $(basename $0) <URL>"
exit 1
fi
if [ $# -ne 1 ]; then
url="$URL"
else
url="$1"
fi
# What browser are we using?
result=""
echo -n "Looking for browser: "
for browser in iceweasel firefox mozilla; do
if which $browser 2> /dev/null; then
result=$browser
break
fi
done
if [ -z "$result" ]; then
echo "none found. You'll need iceweasel, firefox or mozilla in your PATH!"
exit 1
fi
browser=$result
dbrowser=$browser
# Workaround for debian
if [ "$browser" = "iceweasel" ]; then
dbrowser=firefox
fi
# Check for presence of gosa profile
if [ ! -d $HOME/.mozilla/$dbrowser/*.gosa ]; then
echo "No browser profile found for GOsa - creating one..."
$browser -CreateProfile gosa
if [ "$browser" = "iceweasel" ]; then
config=`echo $HOME/.mozilla/firefox/*.gosa/`
else
config=`echo $HOME/.mozilla/$dbrowser/*.gosa/`
fi
# Catch resolution
width=1024
height=768
if which xrandr > /dev/null; then
if xrandr 1> /dev/null 2> /dev/null; then
resolution=$(xrandr | sed -n '/current/s/^.*current \([0-9]*\)[^0-9]*\([0-9]*\).*$/\1 \2/p')
width=${resolution%% *}
height=${resolution##* }
[ $width -gt 1050 ] && width=1050
[ $height -gt 850 ] && height=850
fi
fi
cat << EOF > $config/prefs.js
# Mozilla User Preferences
/* Do not edit this file.
*
* If you make changes to this file while the browser is running,
* the changes will be overwritten when the browser exits.
*
* To make a manual change to preferences, you can visit the URL about:config
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
*/
user_pref("app.update.autoUpdateEnabled", false);
user_pref("app.update.enabled", false);
user_pref("browser.download.folderList", 2);
user_pref("browser.download.manager.showWhenStarting", false);
user_pref("browser.formfill.enable", false);
user_pref("browser.preferences.lastpanel", 1);
user_pref("browser.search.selectedEngine", "Damnfresh");
user_pref("browser.startup.homepage", "$url");
user_pref("browser.startup.homepage_override.mstone", "rv:1.8.1.1");
user_pref("extensions.disabledObsolete", true);
user_pref("extensions.lastAppVersion", "2.0.0.1");
user_pref("extensions.update.autoUpdateEnabled", false);
user_pref("intl.charsetmenu.browser.cache", "ISO-8859-1");
user_pref("network.cookie.prefsMigrated", true);
user_pref("security.OCSP.URL", "");
user_pref("security.OCSP.signingCA", "Builtin Object Token:IPS CLASE1 root");
user_pref("security.warn_entering_secure", false);
user_pref("security.warn_leaving_secure", false);
user_pref("security.warn_submit_insecure", false);
user_pref("security.warn_viewing_mixed", false);
user_pref("signon.rememberSignons", false);
user_pref("security.warn_submit_insecure", false);
EOF
cat << EOF > $config/84795799.s
#2c
http://vserver-02
.
EOF
[ ! -d $config/chrome ] && mkdir -p $config/chrome
cat << EOF > $config/chrome/userChrome.css
#main-menubar {
display: none;
}
#navigator-throbber {
display: none;
}
EOF
cat << EOF > $config/localstore.rdf
<?xml version="1.0"?>
<RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<RDF:Description RDF:about="chrome://mozapps/content/downloads/unknownContentType.xul#unknownContentType"
screenX="267"
screenY="304" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul#PersonalToolbar"
currentset="__empty"
collapsed="true" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul#toolbar-menubar"
currentset="__empty"
collapsed="true" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul#sidebar-box"
collapsed="true"
sidebarcommand=""
width=""
src="" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul#status-bar"
hidden="true" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul">
<NC:persist RDF:resource="chrome://browser/content/browser.xul#main-window"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#sidebar-box"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#sidebar-title"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#nav-bar"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#PersonalToolbar"/>
<NC:persist RDF:resource="chrome://browser/content/browser.xul#toolbar-menubar"/>
</RDF:Description>
<RDF:Description RDF:about="chrome://mozapps/content/downloads/unknownContentType.xul">
<NC:persist RDF:resource="chrome://mozapps/content/downloads/unknownContentType.xul#unknownContentType"/>
</RDF:Description>
<RDF:Description RDF:about="chrome://global/content/customizeToolbar.xul">
<NC:persist RDF:resource="chrome://global/content/customizeToolbar.xul#CustomizeToolbarWindow"/>
</RDF:Description>
<RDF:Description RDF:about="chrome://help/content/help.xul#help"
screenX="350"
screenY="225"
width="700"
height="550" />
<RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"
screenX="50"
screenY="25"
sizemode="normal"
width="$width"
height="$height" />
<RDF:Description RDF:about="chrome://help/content/help.xul">
<NC:persist RDF:resource="chrome://help/content/help.xul#help"/>
</RDF:Description>
<RDF:Description RDF:about="chrome://browser/content/browser.xul#nav-bar"
currentset="__empty"
collapsed="true" />
</RDF:RDF>
EOF
fi
# Start mozilla with GOsa profile
$browser -P gosa $url
|