Wednesday, January 21, 2015

Wheezy aja

install deb6 minimal

apt-get update -y && apt-get upgrade -y

--upgrade ke 7
echo "
deb http://mirrors.kernel.org/debian/ wheezy main
deb-src http://mirrors.kernel.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://mirrors.kernel.org/debian/ wheezy-updates main
deb-src http://mirrors.kernel.org/debian/ wheezy-updates main
" > /etc/apt/sources.list

To update the package list, enter:
apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y

reboot

apt-get install mc -y

apt-get -y --force-yes -f install apache2
apt-get -y --force-yes -f install php5 mysql-client mysql-server
apt-get install -y php5-common php5-curl php5-gd php5-mysql php-apc 
mysql_secure_installation
 
 
--matikan inno db
--stop dulu MySQL nya = /etc/init.d/mysql stop 
# cat > /etc/mysql/conf.d/lowendbox.cnf
[mysqld]
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
ignore_builtin_innodb
default_storage-engine=MyISAM
(tekan ^D)


---
adduser afei
cd /etc/ssh
edit sshd_config
PermitRootLogin no

install bind dns : apt-get -y --force-yes -f install bind9

---install mail
Install Exim and mailutils:
# apt-get -y install exim4 
Run configurator:
# dpkg-reconfigure exim4-config
Select the following options:
  • General type of mail configuration: internet site; mail is sent and received directly using SMTP
  • System mail name: playground
  • IP-addresses to listen on for incoming SMTP connections: 127.0.0.1 ; ::1
  • Other destinations for which mail is accepted: playground; localhost
  • The "Domains to relay mail for:" option is empty.
  • The "Machines to relay mail for:" option is empty.
  • Keep number of DNS-queries minimal (Dial-on-Demand)? no
  • Delivery method for local mail: Maildir format in home directory
  • Split configuration into small files? no
Test Exim:
# echo "Testing Exim" | mail -s Test  
 
 
 
 
 
 
--install lxde = utk vnc
 apt-get install -y lxde

 
 
--install vnc4server
 apt-get install -y vnc4server nano


# We need to start then stop the server to generate a configuration file

vncserver :1; vncserver -kill :1

# After we've generated the configuration file, we must edit it so that LXDE is loaded when we connect

nano ~/.vnc/xstartup

# Edit the file or replace its contents so that they look like the code below and save

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
lxsession -s LXDE &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# x-window-manager &

====end




 
 

No comments:

Post a Comment