This file contains 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
copy proxmox iso on usb stick | |
#fdisk -l | |
#mount /dev/sdb1 /mnt | |
#mount -o loop -t iso9660 /mnt/proxmox_1-7.iso /mnt | |
#cd /mnt | |
#chroot /mnt sbin/unconfigured.sh |
This file contains 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
from starcluster import config | |
from starcluster import cluster | |
cfg = config.StarClusterConfig().load() | |
ec2 = cfg.get_easy_ec2() | |
cm = cluster.ClusterManager(cfg, ec2=ec2) | |
cl = cm.get_cluster("your_running_cluster_tag") | |
print len(cl.running_nodes) |
This file contains 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
!/bin/sh | |
. /lib/lsb/init-functions | |
## Variables | |
LOGFILE="/srv/R/tmp/Rserv/rserve.log" | |
CONFIGFILE="/etc/Rserv.conf" | |
RUN_AS="webapps" | |
# Rserve configs |
This file contains 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
# How to add user into group, and make changes take effect *without logout/login*: the *newgrp* command | |
# | |
# Do note that this method will only update the groups, in the current shell session (and its child-processes). | |
# New shell sessions will not have the groups updated - either use this method to update the groups in each shell | |
# session, or logout/login to make the group update permanent by default | |
# | |
# In short: | |
# $ sudo adduser user_x my_grp | |
# $ newgrp my_grp && newgrp | |
# |
This file contains 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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
NewerOlder