Compact3 (HostingInstallHowto): различия между версиями

Материал из ALT Linux Wiki
(Import from freesource.info)
 
Нет описания правки
 
(не показаны 3 промежуточные версии 2 участников)
Строка 1: Строка 1:
[[Category:Admin]]
[[Категория:Admin]]
{{MovedFromFreesourceInfo|AltLinux/Sisyphus/admin/Hosting/installHowto}}
{{викифицировать}}


== Compact 3.0 Server Install HOWTO ==
== Compact 3.0 Server Install HOWTO ==


burn given ISO image on CD-R, and boot from it.
*burn given ISO image on CD-R, and boot from it.
press F3, select '''english'''
*press F3, select '''english'''
press F4, select '''native'''
*press F4, select '''native'''
from main menu select 'install' using arrow-keys or numpad.
*from main menu select 'install' using arrow-keys or numpad.
press enter.
*press enter.
wait while installer is booting.  
*wait while installer is booting.


on a green screen choose your language.
*on a green screen choose your language.
on a license agreement click ''continue''.  
*on a license agreement click ''continue''.
on the next screen, ''additional languages'', just click ''next''.
*on the next screen, ''additional languages'', just click ''next''.
leave default keymap ('''US English''').
*leave default keymap ('''US English''').
wait until disk partitioning tool shows up.
*wait until disk partitioning tool shows up.


create primary partition '''/boot''', approx. '''60-70mb'''.  
*create primary partition '''/boot''', approx. '''60-70mb'''.
create partition '''/''' as primary, approx. '''2Gb'''.
*create partition '''/''' as primary, approx. '''2Gb'''.
create '''2Gb''' swap as extended (choose filesystem -- '''SWAPFS''', and in ''advanced'' dialog choose type '''linux swap''').
*create '''2Gb''' swap as extended (choose filesystem — '''SWAPFS''', and in ''advanced'' dialog choose type '''linux swap''').
leave the rest of disk space untouched.
*leave the rest of disk space untouched.
click ''next''.
*click ''next''.
wait. wait. wait.
*wait. wait. wait.
install bootloader on MBR ('''/dev/hda''' itself).
*install bootloader on MBR ('''/dev/hda''' itself).
click ''next''.
*click ''next''.
installer will setup base ALT Linux system automatically, this can take up to 30 minutes. so wait. wait. wait.  
*installer will setup base ALT Linux system automatically, this can take up to 30 minutes. so wait. wait. wait.
after basic install a green screen ''Enter new passsword for system administrator'' shows up.
*after basic install a green screen ''Enter new passsword for system administrator'' shows up.
enter password, press ''next''.  
*enter password, press ''next''.
add user '''u_admin''' with some password. press next. wait.  
*add user '''u_admin''' with some password. press next. wait.
on ''packages installation'' screen, just press ''next'' again (openssh already installed).  
*on ''packages installation'' screen, just press ''next'' again (openssh already installed).
configure interface: enter ip address, press ''apply''.
*configure interface: enter ip address, press ''apply''.
press ''next'', enter default route, primary and secondary everydns.  
*press ''next'', enter default route, primary and secondary everydns.
skip printers :)
*skip printers :)
select timezone, turn '''OFF''' ''synchronize with time server''. click ''next''.
*select timezone, turn '''OFF''' ''synchronize with time server''. click ''next''.
on display properties: don't touch anything, turn '''off''' ''start x11 on system booting''. press ''next''. screen would blink until you'll see green window with button ''yes''. click it. press ''finish''.  
*on display properties: don’t touch anything, turn '''off''' ''start x11 on system booting''. press ''next''.
*screen would blink until you’ll see green window with button ''yes''. click it. press ''finish''.


when you'll see graphical logon screen, login as '''root'''. in xterm do:
when you’ll see graphical logon screen, login as '''root'''. in xterm do:
'''chkconfig dm off'''
*'''chkconfig dm off'''
'''chkconfig xfs off'''
*'''chkconfig xfs off'''
'''vim /etc/openssh/sshd_config''', and change: '''PasswordAuthentication yes''', '''PermitRootLogin yes'''  
*'''vim /etc/openssh/sshd_config''', and change: '''PasswordAuthentication yes''', '''PermitRootLogin yes'''
reboot. remove installation CD.
*reboot. remove installation CD.
in boot menu, press '''F2''' and choose '''english''', select default boot record ('''ALT Linux'''), type in boot options:  
*in boot menu, press '''F2''' and choose '''english''', select default boot record ('''ALT Linux'''), type in boot options:
'''3 splash=verbose''' (or '''splash=native''').  
*'''3 splash=verbose''' (or '''splash=native''').
press ''enter''.
*press ''enter''.


login as '''root'''.  
*login as '''root'''.
check network settings with '''ip addr sh'''; verify network connectivity, ping some host.  
*check network settings with '''ip addr sh'''; verify network connectivity, ping some host.
check that openssh is running with '''service sshd status'''
*check that openssh is running with '''service sshd status'''
if possible, check from other host that root can log in over ssh.  
*if possible, check from other host that root can log in over ssh.
give us '''u_admin''' and '''root''' passwords.
*give us '''u_admin''' and '''root''' passwords.


... а затем взять [[Hosting/alt.clean|здесь]] правильный список пакетов и путем
а затем взять [[Hosting/alt.clean|здесь]] правильный список пакетов и путем
<pre>rpm -qa --qf "%{NAME}\n" | sort -n > alt.current
<pre>rpm -qa --qf "%{NAME}\n" | sort -n > alt.current
apt-get remove `diff -Naur alt.clean alt.current | grep '^+' | grep -v '^+++' | cut -c 2- | grep -v kernel-image | xargs `
apt-get remove `diff -Naur alt.clean alt.current | grep '^+' | grep -v '^+++' | cut -c 2- | grep -v kernel-image | xargs `
apt-get install man postfix util-vserver util-vserver-build kernel-image-vs26-smp</pre> ...привести систему в нормальный вид
apt-get install man postfix util-vserver util-vserver-build kernel-image-vs26-smp</pre>
[[Категория:Admin]]
{{Category navigation|title=Системному администратору|category=Admin|sortkey={{SUBPAGENAME}}}}

Текущая версия от 16:48, 1 июля 2015

42px-Wikitext-ru.svg.png
Эту статью следует викифицировать.


Compact 3.0 Server Install HOWTO

  • burn given ISO image on CD-R, and boot from it.
  • press F3, select english
  • press F4, select native
  • from main menu select 'install' using arrow-keys or numpad.
  • press enter.
  • wait while installer is booting.
  • on a green screen choose your language.
  • on a license agreement click continue.
  • on the next screen, additional languages, just click next.
  • leave default keymap (US English).
  • wait until disk partitioning tool shows up.
  • create primary partition /boot, approx. 60-70mb.
  • create partition / as primary, approx. 2Gb.
  • create 2Gb swap as extended (choose filesystem — SWAPFS, and in advanced dialog choose type linux swap).
  • leave the rest of disk space untouched.
  • click next.
  • wait. wait. wait.
  • install bootloader on MBR (/dev/hda itself).
  • click next.
  • installer will setup base ALT Linux system automatically, this can take up to 30 minutes. so wait. wait. wait.
  • after basic install a green screen Enter new passsword for system administrator shows up.
  • enter password, press next.
  • add user u_admin with some password. press next. wait.
  • on packages installation screen, just press next again (openssh already installed).
  • configure interface: enter ip address, press apply.
  • press next, enter default route, primary and secondary everydns.
  • skip printers :)
  • select timezone, turn OFF synchronize with time server. click next.
  • on display properties: don’t touch anything, turn off start x11 on system booting. press next.
  • screen would blink until you’ll see green window with button yes. click it. press finish.

when you’ll see graphical logon screen, login as root. in xterm do:

  • chkconfig dm off
  • chkconfig xfs off
  • vim /etc/openssh/sshd_config, and change: PasswordAuthentication yes, PermitRootLogin yes
  • reboot. remove installation CD.
  • in boot menu, press F2 and choose english, select default boot record (ALT Linux), type in boot options:
  • 3 splash=verbose (or splash=native).
  • press enter.
  • login as root.
  • check network settings with ip addr sh; verify network connectivity, ping some host.
  • check that openssh is running with service sshd status
  • if possible, check from other host that root can log in over ssh.
  • give us u_admin and root passwords.

… а затем взять здесь правильный список пакетов и путем

rpm -qa --qf "%{NAME}\n" | sort -n > alt.current
apt-get remove `diff -Naur alt.clean alt.current | grep '^+' | grep -v '^+++' | cut -c 2- | grep -v kernel-image | xargs `
apt-get install man postfix util-vserver util-vserver-build kernel-image-vs26-smp