SOGO asennus

eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

SOGO asennus

Viesti Kirjoittaja eero »

Poista CD-asema pois listalta
pico /etc/apt/sources.list

Muokkaa SSH-palvelin hyväksymään root
pico /etc/ssh/sshd_config
  • PermitRootLogin without-password Muotoon PermitRootLogin yes
/etc/init.d/ssh restart

Kirjaudu komentoriviltä SSH:lla
ssh root@192.168.0.41 (koneosoite)

Asenna ensin Apache, php ja MySQL
apt-get install apache2
apt-get install mysql-server php5-mysql phpmyadmin
Voi kokeilla myös asentaa mutta ei ole pakollinen
apt-get install libapache2-mod-auth-mysql


# become root
su

# MySQL ja apache2 on asennettu
apt-get install apache2
apt-get install mysql-server

# change sources.list
echo '# sogo:' >> /etc/apt/sources.list
echo 'deb http://inverse.ca/debian squeeze squeeze' >> /etc/apt/sources.list
apt-key adv --keyserver keys.gnupg.net --recv-key 0x810273C4
apt-get update

# install programs
apt-get install sogo sope4.9-gdl1-mysql memcached rpl
# you will get an error about the key of the repostitory, there is no key.
# in some cases mysql is stopped, therefore I restart mysql:
/etc/init.d/mysql restart
# you will get an security message from tmpreaper, no problem.
# you will get an error when sogo starts, no problem.


# to read more about the security-issues of tmpreader
zless /usr/share/doc/tmpreaper/README.security.gz
# to remove the warning of tmpreaper
rpl 'SHOWWARNING=true' 'SHOWWARNING=false' /etc/tmpreaper.conf

# memcached
# this is because of IPv6 errors
rpl '127.0.0.1' localhost /etc/memcached.conf
/etc/init.d/memcached restart

# create a database and add some test-users
mysql -u root -p
# start mysql client, maybe you will need the -p option




chmod a+x /root/LuoKayttaja.sh