Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

LIN-SRV01:

user: monitor
pass: P@ssw0rd

install openssh-server

configure sudo

Code Block
echo 'monitor ALL=(root) /sbin/monitor' >> /etc/sudoers
echo 'sudo su -' > /sbin/monitor && chmod 0100 /sbin/monitor

...

install ntpd
open /etc/ntp
configured time to point to "server server1.4ptsolutions.local"
restart Daemon
type "date" to confirm
install likewise

Details for DNS configuration, otherwise an error will pop up every time you try to add the Machine to the domain:

Code Block
download from http://lin-srv01/LikewiseOpen-6.0.0.8269-linux-i386-deb.sh
http://www.likewise.com/resources/documentation_library/manuals/open/likewise-open-guide.html#ConfigNsswitch

...

Code Block
/opt/likewise/bin/lwconfig AssumeDefaultDomain true
		echo '4PTSOLUTIONSDOMAIN\\domain^admins ALL=(ALL) ALL' >> /etc/sudoers
		/opt/likewise/bin/lwconfig Local_HomeDirTemplate %H/%D/%U
		cp /etc/nsswitch.conf /home/vault/backup/likewise/nsswitch.conf && nano /etc/nsswitch.conf
			change line "hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4" to "hosts:          files dns mdns4_minimal [NOTFOUND=return] mdns4"
		/opt/likewise/bin/lwsm restart lwio
		add to domain using "domainjoin-cli join 4ptsolutions.local amelongDOMAINUSER"

install Webmin

Code Block
	edit /etc/apt/sources.list
	add two lines:
		echo '#Webmin' >> /etc/apt/sources.list && echo 'deb http://download.webmin.com/download/repository sarge contrib' >> /etc/apt/sources.list
		cd /vault/
		wget http://www.webmin.com/jcameron-key.asc && apt-key add jcameron-key.asc
	apt-get update
	apt-get install webmin
	echo 'webmin ALL=(ALL) ALL' >> /etc/sudoers
	adduser webmin P@ssw0rdPASSWORD
add yourself
	echo 'amelong ALL=(root) /sbin/amelong' >> /etc/sudoers && echo 'sudo su -' > /sbin/amelong && chmod 0100 /sbin/amelong

...

Code Block
	configured root password as "P@ssw0rdWHATEVERYOUWANT"
		/etc/init.d/mysql stop
		mysqld_safe --skip-grant-tables &
		mysql -u root
			use mysql;
			update user set password=PASSWORD("P@ssw0rdWHATEVERYOUWANT") where User='root';
			flush privileges;
			quit
	apt-get install php5-mysql

...

Code Block
	cd /home/sites/www
	su www-data
	Downloaded from: http://www.phpmyadmin.net/home_page/downloads.php to /home/sites/www
	untar'ed, then mv'd the directory to phpmyadmin
	apt-get install mcrypt php5-mcrypt
	mkdir /home/sites/www/phpmyadmin/config && chmod o+rw /home/sites/www/phpmyadmin/config
	navigated to: http://LIN-SRV0#SERVER/phpmyadmin/setup/index.php
	setup the database root account password
	cp /home/sites/www/phpmyadmin/config/config.inc.php /home/sites/www/phpmyadmin/
	rm -rf /home/sites/www/phpmyadmin/config
	echo 'extension=mcrypt.so' >> /etc/php5/apache2/php.ini

...