Tampilkan postingan dengan label debian. Tampilkan semua postingan
Tampilkan postingan dengan label debian. Tampilkan semua postingan

Selasa, 15 Desember 2015

Proftpd

Install Proftp server
# opkg install proftpd
Edit /etc/proftpd.conf
# vi /etc/proftpd.conf
ServerName "ProFTPD Server" ServerIdent on "FTP Server ready." ServerType standalone DefaultServer on DefaultAddress 127.0.0.1 RequireValidShell off Port 21 UseIPv6 off Umask 022 MaxInstances 10 User nobody Group nogroup AuthUserFile /etc/passwd DefaultRoot /home AllowOverwrite on MaxClients 10 MaxClientsPerHost 10 MaxClientsPerUser 10 MaxHostsPerUser 10 DeleteAbortedStores on UserAlias anonymous ftp
Adding new user for ftp account by editing /etc/passwd, in my case i added user openwrt, copy paste configuration from user ftp, but change user ID number and group name.
# vi /etc/passwd-
root:$1$nvFplbd8$l05HR0mdTHcGprNaMg8QA1:0:0:root:/root:/bin/ash daemon:*:1:1:daemon:/var:/bin/false ftp:*:55:55:ftp:/home/ftp:/bin/false network:*:101:101:network:/var:/bin/false nobody:*:65534:65534:nobody:/var:/bin/false openwrt:*:65538:55:openwrt:/home:/bin/false

Adding password for user openwrt
# passwd openwrt
Change Otority
chmod o-rwx /etc/passwd
chmod o-rwx /etc/passwd-
chmod 777 /home
Enabling proftpd service upon start
# /etc/init.d/proftpd enable
To start proftpd service
# /etc/init.d/proftpd start
To stop proftpd service
# /etc/init.d/proftpd stop
Now start proftpd for debug and access it using ftp client and see if any errors
# proftpd -n -d 10
If everything ok, you should see something similar with this picture when accessing proftpd server

tutorial belong to : http://diantokam.blogspot.co.id/2012/11/openwrt-proftp-server.html

Rabu, 18 Februari 2015

LAMP on RASPBERRY Debian

sudo passwd root
---------------------STATIC IP ==============================================
sudo cp /etc/network/interfaces /etc/network/interfaces.sav
sudo vi /etc/network/interfaces

# The loopback interface
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
#your static IP
address 192.168.1.5
#your gateway IP
gateway 192.168.1.1
netmask 255.255.255.0
#your network address "family"
network 192.168.1.0
broadcast 192.168.1.255
sudo /etc/init.d/networking restart
sudo /etc/init.d/networking reload

------------APACHE / PHP==============================================
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache2 php5 libapache2-mod-php5 php-pear
sudo groupadd www-data
sudo usermod -g www-data www-data
sudo service apache2 restart
sudo rm -fr /var/www/index.html
sudo echo "<?php phpinfo();?>" >> /var/www/index.php
------------MYSQL ==============================================

sudo apt-get install mysql-server mysql-client php5-mysql
sudo apt-get install phpmyadmin
/etc/init.d/apache2 restart

------------VSFTPD==============================================

sudo chown -R pi /var/www
chmod -R 777 /var/www
chmod -R 777 /var/lib/mysql
sudo apt-get install vsftpd
sudo vi /etc/vsftpd.conf
Change anonymous_enable=YES to anonymous_enable=NO, 
Uncomment local_enable=YES 
Uncomment write_enable=YES
then go to the bottom of the file and add force_dot_files=YES
sudo service vsftpd restart
raspi-config

Rabu, 02 Oktober 2013

LAMP and PHPMYADMIN on debian 6

CHANGE SSH PORT
vi /etc/ssh/sshd_config
/etc/init.d/ssh restart
UPDATE
apt-get update
APACHE 2
apt-get install apache2
PHP 5
apt-get install apache2 php5 libapache2-mod-php5 php-pear 'php5-suhosin
service apache2 restart
rm -fr /var/www/index.html
echo "<?php phpinfo();?>" >> /var/www/index.php
MYSQL
apt-get install mysql-server mysql-client php5-mysql
mysql_secure_installation
service apache2 restart
RESET ROOT PASSWORD
apt-get install phpmyadmin
/etc/init.d/apache2 restart


REMOTE MYSQL
vi /etc/mysql/my.cnf 
bind-address            = 127.0.0.1
diganti menjadi 
bind-address            = 0.0.0.0
service mysql restart
VSFTPD
apt-get install vsftpd
useradd bowongs0
passwd bowongs0
vi /etc/passwd


dont forget to remove samba
apt-get remove samba