You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 26 Next »

install openssh-server

enable  VNC from console http://news.metaparadigma.de/linux-setting-up-a-debian-vnc-server-237/

configure sudo

echo 'user ALL=(root) /sbin/randomfilename' >> /etc/sudoers
echo 'sudo su -' > /sbin/randomfilename && chmod 0100 /sbin/randomfilename

Secure sessions and enable colour

nano /etc/skel/.bash_logout
	insert "echo '' > ~/.bash_history"
nano /etc/profile
	uncomment force_color_prompt=yes
	edit PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ to
		PS1='${debian_chroot:+($debian_chroot)}\[\033[00m\]\u\[\033[01;33m\]@\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$
nano /etc/profile
        #Custom Attributes Added by Admin
        linux_logo
        echo '' > ~/.bash_history
        cd ~
dircolors -p > /etc/skel/.dircolors
nano /etc/skel/.dircolors
	edit DIR 01;34 # directory to
	DIR 01;36 # directory

install ntpd
open /etc/ntp
configured time to point to "server ntpsource"
restart Daemon
type "date" to confirm

create Data Vault

mkdir /home/vault && chmod 0700 /home/vault && mkdir /home/vault/config_backups

install Webmin

	echo '#Webmin' >> /etc/apt/sources.list && echo 'deb http://download.webmin.com/download/repository sarge contrib' >> /etc/apt/sources.list
	cd /home/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

install apache2
install php5
install mysql-server-5.0

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

Setup phpMyAdmin

	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://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

Setup Samba

	apt-get install samba smbclient cifs-utils samba-common

Install Linux Logo

apt-get install linuxlogo
nano /etc/linux_logo.conf 
        Insert -L 14 -F"You have Accessed a Secure Unauthorized System. Please disconnect now. \n#H \n#O Kernel #V \n#X #T #M #P \n#R RAM \n#U \n#L"
mv /etc/motd.tail /etc/motd.tail.orig
mv /etc/motd /etc/motd.orig 

Install Mltimedia Support

echo '' >> /etc/apt/sources.list && echo '#Debian Multimedia' >> /etc/apt/sources.list && echo 'deb http://www.deb-multimedia.org wheezy main non-fee' >> /etc/apt/sources.list
apt-get update
apt-get install deb-multimedia-keyring
apt-get update

 

 

install build-essential

install kernel headers

  • No labels