close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
- Timestamp:
-
Dec 18, 2014, 1:36:46 PM (12 years ago)
- Author:
-
irina
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v11
|
v12
|
|
| 142 | 142 | |
| 143 | 143 | |
| 144 | | == Ejemplos de scripts == |
| | 144 | == Desactivar cliente de Opengnsys en sistema operativo == |
| 145 | 145 | |
| | 146 | |
| | 147 | En caso de que tengáis equipos restaurados y simplemente queráis deshabilitar el servicio del agente (sin instalar una nuevo), podéis usar estos script desde la consola con "ejecutar script" o desde línea de comando: |
| | 148 | |
| | 149 | '''Windows.''' |
| | 150 | |
| | 151 | Propuesto por francesc en el foro. |
| | 152 | |
| | 153 | Lo que hace es simplemente poner a 4 (deshabilitado) el estado del servicio "Cliente !OpengnSys". |
| | 154 | {{{ |
| | 155 | chntpw /mnt/sda1/Windows/System32/config/SYSTEM << EOT &> /dev/null |
| | 156 | cd ControlSet001\services\Cliente Opengnsys |
| | 157 | ed Start |
| | 158 | 4 |
| | 159 | q |
| | 160 | y |
| | 161 | EOT |
| | 162 | }}} |
| | 163 | |
| | 164 | |
| | 165 | '''Linux''' |
| | 166 | |
| | 167 | Comentamos el inicio del servicio en /etc/rc.local |
| | 168 | {{{ |
| | 169 | cd /mnt/sda6/etc |
| | 170 | sed s/'\/usr\/sbin\/ogAdmLnxClient'/'\#\/usr\/sbin\/ogAdmLnxClient'/g rc.local |
| | 171 | }}} |
| | 172 | |
| | 173 | |
| | 174 | Si queremos que no se vuelva a instalar tras las restauración de los clientes en /opt/opengnsys/client/scripts/configureOs comentamos las líneas: |
| | 175 | |
| | 176 | {{{ |
| | 177 | Windows) |
| | 178 | .... |
| | 179 | #ogInstallMiniSetup $1 $2 postconf.cmd |
| | 180 | #ogInstallWindowsClient $1 $2 postconf.cmd |
| | 181 | ;; |
| | 182 | Linux) |
| | 183 | ... |
| | 184 | #ogInstallLinuxClient $1 $2 |
| | 185 | }} |
| | 186 | |
| | 187 | |