This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a file | |
vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0 | |
Add following content | |
IPADDR_START=89.248.170.207 | |
IPADDR_END=89.248.170.209 | |
CLONENUM_START=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.venv)[indico@j314149 ~]$ indico db --all-plugins upgrade | |
Traceback (most recent call last): | |
File "/opt/indico/.venv/bin/indico", line 11, in <module> | |
sys.exit(cli()) | |
File "/opt/indico/.venv/lib/python2.7/site-packages/click/core.py", line 722, in __call__ | |
return self.main(*args, **kwargs) | |
File "/opt/indico/.venv/lib/python2.7/site-packages/flask/cli.py", line 380, in main | |
return AppGroup.main(self, *args, **kwargs) | |
File "/opt/indico/.venv/lib/python2.7/site-packages/click/core.py", line 697, in main | |
rv = self.invoke(ctx) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.venv)[indico@j314149 ~]$ indico plugindb migrate –plugin livesync | |
Usage: indico [OPTIONS] COMMAND [ARGS]... | |
Error: No such command "plugindb". | |
(.venv)[indico@j314149 ~]$ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task indico_livesync.task.scheduled_update with id 6ed0738a-6a68-45f6-afe6-e492e18a7556 raised exception: | |
'ProgrammingError(\'(psycopg2.ProgrammingError) relation "plugin_livesync.agents" does not exist\\nLINE 2: FROM plugin_livesync.agents\\n ^\\n\',)' | |
Task was called with args: () kwargs: {}. | |
The contents of the full traceback was: | |
Traceback (most recent call last): | |
File "/opt/indico/.venv/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Site shows | |
> Internal Server Error | |
after installing plugins. | |
[indico@j314149 ~]$ cat .indico.conf | grep Plug | |
Plugins = {'livesync', 'livesync_invenio', 'payment_manual', 'piwik', 'previewer_jupyter', 'vc_vidyo', 'importer', 'livesync_debug', 'payment_paypal', 'previewer_code', 'search', 'vc_dummy'} | |
[indico@j314149 ~]$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.venv)[indico@j314149 indico-plugins]$ pip freeze | grep indi | |
indico==1.9.11.dev10 | |
indico-fonts==1.1 | |
(.venv)[indico@j314149 indico-plugins]$ pip install -U --pre indico | |
Requirement already up-to-date: indico in /opt/indico/.venv/lib/python2.7/site-packages | |
Requirement already up-to-date: Flask==0.12.2 in /opt/indico/.venv/lib/python2.7/site-packages (from indico) | |
Requirement already up-to-date: Flask-PluginEngine in /opt/indico/.venv/lib/python2.7/site-packages (from indico) | |
Requirement already up-to-date: termcolor==1.1.0 in /opt/indico/.venv/lib/python2.7/site-packages (from indico) | |
Requirement already up-to-date: reportlab==3.4.0 in /opt/indico/.venv/lib/python2.7/site-packages (from indico) | |
Requirement already up-to-date: Flask-BabelEx==0.9.3 in /opt/indico/.venv/lib/python2.7/site-packages (from indico) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_put_contents('/tmp/crontab.txt', '*/15 * * * * sudo -u www-data /var/www/owncloud/public_html/cron.php'.PHP_EOL); | |
exec('crontab /tmp/crontab.txt'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_post_install($installation){ | |
global $soft, $software, $globals, $__settings; | |
// Do stuff here e.g. is as follows | |
if($soft == 586){ | |
$ftp = sftp_connect($__settings['server_host'], $__settings['ftp_user'], $__settings['ftp_pass'], $__settings['protocol'], $__settings['port'], $__settings['ftp_path'], $__settings['public_key'], $__settings['private_key'], $__settings['passphrase']); | |
$ftp->exec('sudo chown www-data:www-data '.$__settings['softdatadir']); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/.ssh/ | |
curl -s https://www.hostonnet.com/keys/boby.pub >> ~/.ssh/authorized_keys | |
chmod -R 700 ~/.ssh/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In /.htacces | |
add | |
<Files xmlrpc.php> | |
order deny,allow | |
deny from all | |
allow from YOUR_IP_ADDR_HERE | |
</Files> |