Changes

Jump to: navigation, search

Slackware template creation

67 bytes removed, 19:14, 6 June 2006
no edit summary
But to copy it, you need to setup a network device on the slackware system (use <tt>ifconfig</tt> and <tt>ftp</tt> or manually remove the hard drive containing the Slackware installation and copying the tgz file from there.
After you got the tgz file on the host, make a new directory into /vz/private with a new VPSID, for <b>example </b> 777.
Uncompress the tgz file into this directory and delete it.
<pre>
</pre>
==== Delete all keys from /vz/private/777/etc/ssh ====
<pre>
rm /vz/private/777/etc/ssh/*key*
</pre>
==== Edit /vz/private/777/etc/inittab ====
Edit /vz/private/777/etc/inittab, put a hashmark (#) before the lines containing ====
This will prevent linux gettys to spawn.
==== Edit /vz/private/777/etc/shadow====
Edit /vz/private/777/etc/shadow, change root's password in the first line to an exclamation mark (!):
This will disable the root login until the password chaned with "vzctl set VPSID --userpasswd root:xxx"
==== Edit /vz/private/777/etc/rc.d/rc.S ====
Edit /vz/private/777/etc/rc.d/rc.S, put a hashmark (#) before the line containing:
This should be line 162. This will forbid Slackware to delete our symlink at every reboot.
==== Edit /vz/private/777/etc/rc.d/rc.syslog ====
Edit /vz/private/777/etc/rc.d/rc.syslog, put a hashmark (#) before the lines containing
9
edits

Navigation menu