amuck-landowner

Your new VPS is provisioned, what is the first thing you do once you connect?

Chronic

Member
ServerBear benchmarking -> Minstall -> Start working on whatever you planned to use it for, but stop halfway -> Idle.
 
Last edited by a moderator:

Lanarchy

New Member
Change root password, install half of the things that I was planning on using it for, forget about the VPS and not touch it again.
 

sv01

Slow but sure
check memory, harddisk to make sure fit with what advertised.


free -m; df -h
securing (a bit) /tmp

update and upgrade


apt-get update; apt-get upgrade
check .ssh/authorized_keys :) yes always

check user on vps

then install software that I need.
 

dmmcintyre3

New Member
For KVM, Xen, dedis, etc:


curl http://xx.xx.xx.xx/setup.sh|bash
or for OVZ:


curl http://xx.xx.xx.xx/setup-vz.sh|bash
I know, not too helpful.
 
Last edited by a moderator:

SeriesN

Active Member
Verified Provider
For KVM, Xen, dedis, etc:


curl http://xx.xx.xx.xx/setup.sh|bash
or for OVZ:
Code:
curl http://xx.xx.xx.xx/setup-vz.sh|bash
I know, not too helpful.
Now only if someone posted the content of those bash scripts . Hmmmm
 

dmmcintyre3

New Member
Now only if someone posted the content of those bash scripts . Hmmmm

setup.sh


#!/bin/sh
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y update
yum -y install nano mlocate traceroute jwhois logwatch openssh-clients wget rsync bind-utils mtr syslog-ng
yum erase -y postfix sendmail rsyslog
yum install exim cronie -y
service iptables stop
service ip6tables stop
chkconfig iptables off
chkconfig ip6tables off
>/etc/sysconfig/iptables
>/etc/sysconfig/ip6tables
setenforce 0
yum -y install ntp
ntpdate -u x2la01.hostigation.com
echo "23 */4 * * * root ntpdate -u x2la01.hostigation.com >/dev/null" >>/etc/crontab
echo "ntpdate -u x2la01.hostigation.com">>/etc/rc.local
echo "* * * * * root vnstat -u -i eth0" >>/etc/crontab
fi
ln -s /usr/bin/nano /usr/bin/pico
echo 'SELINUX=disabled' > /etc/selinux/config
echo 'SELINUXTYPE=targeted' >> /etc/selinux/config
echo 'compress' >> /etc/logrotate.conf
echo '*: root' >>/etc/aliases
echo 'root: [email protected]' >>/etc/aliases
newaliases
chkconfig crond on
chkconfig exim on
service exim start
service crond start
yum install vnstat -y
echo "Port 3409">>/etc/ssh/ssh_config
echo "Port 3409">>/etc/ssh/sshd_config
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
ssh xx.xx.xx.xx /scripts/sshsetup.sh `hostname -s` `curl http://ifconfig.me/`
setup-vz.sh:

Code:
#!/bin/sh
 
 
if [ `cat /proc/user_beancounters | grep " privvmpages " | awk '{print $4}'` < '65280' ]
then
  echo "Low memory allocation limit on OVZ detected"
  sed -i 's/plugins=1/plugins=0/' /etc/yum.conf
fi
 
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y update
yum -y install nano mlocate traceroute jwhois logwatch openssh-clients wget rsync bind-utils mtr syslog-ng
yum erase -y postfix sendmail rsyslog
yum install exim cronie -y
service iptables stop
service ip6tables stop
chkconfig iptables off
chkconfig ip6tables off
>/etc/sysconfig/iptables
>/etc/sysconfig/ip6tables
echo "* soft stack 256" >/etc/security/limits.conf
echo "* * * * * root vnstat -u -i venet0" >>/etc/crontab
ln -s /usr/bin/nano /usr/bin/pico
echo 'SELINUX=disabled' > /etc/selinux/config
echo 'SELINUXTYPE=targeted' >> /etc/selinux/config
echo 'compress' >> /etc/logrotate.conf
echo '*: root' >>/etc/aliases
echo 'root: [email protected]' >>/etc/aliases
newaliases
chkconfig crond on
chkconfig exim on
service exim start
service crond start
yum install vnstat -y
echo "Port 3409">>/etc/ssh/ssh_config
echo "Port 3409">>/etc/ssh/sshd_config
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
ssh xx.xx.xx.xx /scripts/sshsetup.sh `hostname -s` `curl http://ifconfig.me/`
 

kaniini

Beware the bunny-rabbit!
Verified Provider
Actually, IIRC BuyVM has that file for the root user, at least on the OpenVZ templates. It might be blank, though.
We are debating adding the ability to preinstall a customer supplied keychain when they do an installation.  OVH does that on their servers, it's kind of a neat feature.
 

eva2000

Active Member
Install my Centmin Mod script http://centminmod.com  :D



wget http://centminmod.com/download/centmin-v1.2.3-eva2000.03.zip
unzip centmin-v1.2.3-eva2000.03.zip
cd centmin-v1.2.3mod
chmod +x centmin.sh
./centmin.sh
then hit menu option #1


--------------------------------------------------------
Centmin Mod 1.2.3-eva2000.03 - http://centminmod.com
--------------------------------------------------------
Centmin Mod Menu
--------------------------------------------------------
1). Centmin Install
2). Add Nginx vhost domain
3). NSD setup domain name DNS
4). Nginx Upgrade / Downgrade
5). PHP Upgrade / Downgrade
6). XCache Re-install
7). APC Cache Re-install
8). XCache Install
9). APC Cache Install
10). Memcached Server Re-install
11). MariaDB 5.2.x Branch Upgrade Only
12). MariaDB 5.2.x to MariaDB 5.5 YUM upgrade
13). Install ioping.sh vbtechsupport.com/1239/
14). SELinux disable
15). Install/Re-install imagick PHP Extension
16). Change SSHD Port Number
17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
18). Suhosin PHP Extension install
19). Install FFMPEG and FFMPEG PHP Extension
20). NSD Re-install
21). Exit
--------------------------------------------------------
Enter option [ 1 - 21 ]
--------------------------------------------------------


Then depending on site etc, enable Nginx PageSpeed ngx_pagespeed module http://centminmod.com/nginx_ngx_pagespeed.html  :)

Then the rest of the steps http://centminmod.com/getstarted.html
 
Last edited by a moderator:

Fizzadar

New Member
1. Change SSH port, disable password auth, add my key (and any other needed keys)

2. Update w/ package manage

3. Disk IO test, Net IO test, CPU test

4. Setup strict iptables rules, block any un-needed traffic

5. Use VM as normal
 
Top
amuck-landowner