Anda di halaman 1dari 11

agung@agung-Vostro-3350:~$ sudo su

[sudo] password for agung:


root@agung-Vostro-3350:/home/agung# /opt/lampp/lampp status
Version: XAMPP for Linux 1.8.1
Apache is not running.
MySQL is not running.
ProFTPD is not running.
root@agung-Vostro-3350:/home/agung# /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.1...
XAMPP: Another web server daemon is already running.
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
root@agung-Vostro-3350:/home/agung# service apache2 stop
* Stopping web server apache2
apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1 for ServerName
... waiting
[ OK ]
root@agung-Vostro-3350:/home/agung# /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.1...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: XAMPP-MySQL is already running.
XAMPP: XAMPP-ProFTPD is already running.
XAMPP for Linux started.
root@agung-Vostro-3350:/home/agung# /opt/lampp/lampp status
Version: XAMPP for Linux 1.8.1
Apache is running.
MySQL is running.
ProFTPD is running.
root@agung-Vostro-3350:/home/agung# sudo postgresql start
sudo: postgresql: command not found
root@agung-Vostro-3350:/home/agung# sudo postgresql start
sudo: postgresql: command not found
root@agung-Vostro-3350:/home/agung# service postgresql start
* Starting PostgreSQL 9.1 database server
[ OK ]
root@agung-Vostro-3350:/home/agung# cd /opt/lampp/
root@agung-Vostro-3350:/opt/lampp# ls
bin
etc lampp licenses moodledata RELEASENOTES tmp
cgi-bin htdocs lib
logs
php
sbin
var
error icons libexec modules phpmyadmin share
root@agung-Vostro-3350:/opt/lampp# cd etc/
root@agung-Vostro-3350:/opt/lampp/etc# ls
extra
magic
pear.conf
ssl.crt
freetds.conf mime.types php.ini
ssl.key
httpd.conf
my.cnf
php.ini~
webalizer.conf
httpd.conf.bak openldap php.ini-pre1.7.2 webalizer.conf.sample
lampp
openssl.cnf pool.conf
locales.conf original proftpd.conf
root@agung-Vostro-3350:/opt/lampp/etc# gedit php.ini
root@agung-Vostro-3350:/opt/lampp/etc# gedit php.ini
root@agung-Vostro-3350:/opt/lampp/etc# dpkg -s php5-pgsql
Package: php5-pgsql
Status: install ok installed
Priority: optional
Section: php
Installed-Size: 188
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: php5
Version: 5.3.10-1ubuntu3.13

Depends: libc6 (>= 2.4), libpq5 (>= 8.4~), phpapi-20090626+lfs, php5-common (= 5.3.10-1ubuntu3.13)
Conffiles:
/etc/php5/conf.d/pgsql.ini 7e22591414efe6e8ee5f1ed280b6f673
/etc/php5/conf.d/pdo_pgsql.ini 5c01f54fca3c1bd069dcfc8182cee069
Description: PostgreSQL module for php5
This package provides a module for PostgreSQL database connections
directly from PHP scripts. It also includes the pdo_pgsql module for
use with the PHP Data Object extension.
.
PHP5 is a widely-used general-purpose scripting language that is
especially suited for Web development and can be embedded into HTML.
The goal of the language is to allow web developers to write
dynamically generated pages quickly.
Homepage: http://www.php.net/
Original-Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
root@agung-Vostro-3350:/opt/lampp/etc# apt-get install php5-pgsql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-pgsql is already the newest version.
php5-pgsql set to manually installed.
The following package was automatically installed and is no longer required:
openjdk-7-jre-lib
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@agung-Vostro-3350:/opt/lampp/etc# service posgresql restart
posgresql: unrecognized service
root@agung-Vostro-3350:/opt/lampp/etc# service postgresql restart
* Restarting PostgreSQL 9.1 database server
[ OK ]
root@agung-Vostro-3350:/opt/lampp/etc# lipapache2-mod-php
lipapache2-mod-php: command not found
root@agung-Vostro-3350:/opt/lampp/etc# apt-get isntall lipapache2-mod-php
E: Invalid operation isntall
root@agung-Vostro-3350:/opt/lampp/etc# apt-get isntall lipapache2-mod-php php4-pgsql
E: Invalid operation isntall
root@agung-Vostro-3350:/opt/lampp/etc# apt-get isntall lipapache2-mod-php php5-pgsql
E: Invalid operation isntall
root@agung-Vostro-3350:/opt/lampp/etc# apt-get install php-pear
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
openjdk-7-jre-lib
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
autoconf automake autotools-dev libltdl-dev libtool m4 php5-dev shtool
Suggested packages:
autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool-doc
automaken gfortran fortran95-compiler gcj
The following NEW packages will be installed:
autoconf automake autotools-dev libltdl-dev libtool m4 php-pear php5-dev
shtool
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,817 kB of archives.
After this operation, 11.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com/ubuntu/ precise/main m4 i386 1.4.16-2ubuntu1 [195 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu/ precise/main autoconf all 2.68-1ubuntu2 [560 kB]
Get:3 http://id.archive.ubuntu.com/ubuntu/ precise/main autotools-dev all 20120210.1ubuntu1 [42.4 kB]

Get:4 http://id.archive.ubuntu.com/ubuntu/ precise/main automake all 1:1.11.3-1ubuntu2 [571 kB]


Get:5 http://id.archive.ubuntu.com/ubuntu/ precise/main libltdl-dev i386 2.4.2-1ubuntu1 [203 kB]
Get:6 http://id.archive.ubuntu.com/ubuntu/ precise/main libtool i386 2.4.2-1ubuntu1 [302 kB]
Get:7 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main php-pear all 5.3.10-1ubuntu3.13 [371 kB]
Get:8 http://id.archive.ubuntu.com/ubuntu/ precise/main shtool all 2.0.8-6 [149 kB]
Get:9 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main php5-dev i386 5.3.10-1ubuntu3.13 [423 kB]
Fetched 2,817 kB in 30s (93.0 kB/s)
Selecting previously unselected package m4.
(Reading database ... 674310 files and directories currently installed.)
Unpacking m4 (from .../m4_1.4.16-2ubuntu1_i386.deb) ...
Selecting previously unselected package autoconf.
Unpacking autoconf (from .../autoconf_2.68-1ubuntu2_all.deb) ...
Selecting previously unselected package autotools-dev.
Unpacking autotools-dev (from .../autotools-dev_20120210.1ubuntu1_all.deb) ...
Selecting previously unselected package automake.
Unpacking automake (from .../automake_1%3a1.11.3-1ubuntu2_all.deb) ...
Selecting previously unselected package libltdl-dev.
Unpacking libltdl-dev (from .../libltdl-dev_2.4.2-1ubuntu1_i386.deb) ...
Selecting previously unselected package libtool.
Unpacking libtool (from .../libtool_2.4.2-1ubuntu1_i386.deb) ...
Selecting previously unselected package php-pear.
Unpacking php-pear (from .../php-pear_5.3.10-1ubuntu3.13_all.deb) ...
Selecting previously unselected package shtool.
Unpacking shtool (from .../shtool_2.0.8-6_all.deb) ...
Selecting previously unselected package php5-dev.
Unpacking php5-dev (from .../php5-dev_5.3.10-1ubuntu3.13_i386.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 2 added doc-base files...
Registering documents with scrollkeeper...
Setting up m4 (1.4.16-2ubuntu1) ...
Setting up autoconf (2.68-1ubuntu2) ...
Setting up autotools-dev (20120210.1ubuntu1) ...
Setting up automake (1:1.11.3-1ubuntu2) ...
update-alternatives: using /usr/bin/automake-1.11 to provide /usr/bin/automake (automake) in auto mode.
Setting up libltdl-dev (2.4.2-1ubuntu1) ...
Setting up libtool (2.4.2-1ubuntu1) ...
Setting up php-pear (5.3.10-1ubuntu3.13) ...
Setting up shtool (2.0.8-6) ...
Setting up php5-dev (5.3.10-1ubuntu3.13) ...
update-alternatives: using /usr/bin/php-config5 to provide /usr/bin/php-config (php-config) in auto mode.
update-alternatives: using /usr/bin/phpize5 to provide /usr/bin/phpize (phpize) in auto mode.
root@agung-Vostro-3350:/opt/lampp/etc# apt-get install php5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-dev is already the newest version.
php5-dev set to manually installed.
The following package was automatically installed and is no longer required:
openjdk-7-jre-lib
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@agung-Vostro-3350:/opt/lampp/etc# apt-get install libcurl3-openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libcurl4-openssl-dev' instead of 'libcurl3-openssl-dev'
The following package was automatically installed and is no longer required:

openjdk-7-jre-lib
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
comerr-dev krb5-multidev libgcrypt11-dev libgnutls-dev libgnutls-openssl27
libgnutlsxx27 libgpg-error-dev libgssrpc4 libidn11-dev libkadm5clnt-mit8
libkadm5srv-mit8 libkdb5-6 libkrb5-dev libldap2-dev libp11-kit-dev
librtmp-dev libtasn1-3-dev
Suggested packages:
krb5-doc libcurl3-dbg libgcrypt11-doc gnutls-doc gnutls-bin krb5-user
The following NEW packages will be installed:
comerr-dev krb5-multidev libcurl4-openssl-dev libgcrypt11-dev libgnutls-dev
libgnutls-openssl27 libgnutlsxx27 libgpg-error-dev libgssrpc4 libidn11-dev
libkadm5clnt-mit8 libkadm5srv-mit8 libkdb5-6 libkrb5-dev libldap2-dev
libp11-kit-dev librtmp-dev libtasn1-3-dev
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,985 kB of archives.
After this operation, 11.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libgssrpc4 i386 1.10+dfsg~beta1-2ubuntu0.3 [57.7 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libkadm5clnt-mit8 i386 1.10+dfsg~beta1-2ubuntu0.3 [38.4
kB]
Get:3 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libkdb5-6 i386 1.10+dfsg~beta1-2ubuntu0.3 [37.7 kB]
Get:4 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libkadm5srv-mit8 i386 1.10+dfsg~beta1-2ubuntu0.3 [54.5
kB]
Get:5 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutls-openssl27 i386 2.12.14-5ubuntu3.8 [21.6 kB]
Get:6 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutlsxx27 i386 2.12.14-5ubuntu3.8 [23.4 kB]
Get:7 http://id.archive.ubuntu.com/ubuntu/ precise/main comerr-dev i386 2.1-1.42-1ubuntu2 [42.4 kB]
Get:8 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main krb5-multidev i386 1.10+dfsg~beta1-2ubuntu0.3 [125 kB]
Get:9 http://id.archive.ubuntu.com/ubuntu/ precise/main libidn11-dev i386 1.23-2 [635 kB]
Get:10 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libkrb5-dev i386 1.10+dfsg~beta1-2ubuntu0.3 [11.0 kB]
Get:11 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libldap2-dev i386 2.4.28-1.1ubuntu4.4 [503 kB]
Get:12 http://id.archive.ubuntu.com/ubuntu/ precise/main libgpg-error-dev i386 1.10-2ubuntu1 [23.1 kB]
Get:13 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libgcrypt11-dev i386 1.5.0-3ubuntu0.2 [361 kB]
Get:14 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libtasn1-3-dev i386 2.10-1ubuntu1.1 [355 kB]
Get:15 http://id.archive.ubuntu.com/ubuntu/ precise/main libp11-kit-dev i386 0.12-2ubuntu1 [45.6 kB]
Get:16 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutls-dev i386 2.12.14-5ubuntu3.8 [530 kB]
Get:17 http://id.archive.ubuntu.com/ubuntu/ precise/main librtmp-dev i386 2.4~20110711.gitc28f1bab-1 [67.1 kB]
Get:18 http://id.archive.ubuntu.com/ubuntu/ precise-updates/main libcurl4-openssl-dev i386 7.22.0-3ubuntu4.8 [1,054 kB]
Fetched 3,985 kB in 1min 1s (65.2 kB/s)
Selecting previously unselected package libgssrpc4.
(Reading database ... 675227 files and directories currently installed.)
Unpacking libgssrpc4 (from .../libgssrpc4_1.10+dfsg~beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libkadm5clnt-mit8.
Unpacking libkadm5clnt-mit8 (from .../libkadm5clnt-mit8_1.10+dfsg~beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libkdb5-6.
Unpacking libkdb5-6 (from .../libkdb5-6_1.10+dfsg~beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libkadm5srv-mit8.
Unpacking libkadm5srv-mit8 (from .../libkadm5srv-mit8_1.10+dfsg~beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libgnutls-openssl27.
Unpacking libgnutls-openssl27 (from .../libgnutls-openssl27_2.12.14-5ubuntu3.8_i386.deb) ...
Selecting previously unselected package libgnutlsxx27.
Unpacking libgnutlsxx27 (from .../libgnutlsxx27_2.12.14-5ubuntu3.8_i386.deb) ...
Selecting previously unselected package comerr-dev.
Unpacking comerr-dev (from .../comerr-dev_2.1-1.42-1ubuntu2_i386.deb) ...
Selecting previously unselected package krb5-multidev.
Unpacking krb5-multidev (from .../krb5-multidev_1.10+dfsg~beta1-2ubuntu0.3_i386.deb) ...
Selecting previously unselected package libidn11-dev.
Unpacking libidn11-dev (from .../libidn11-dev_1.23-2_i386.deb) ...
Selecting previously unselected package libkrb5-dev.

Unpacking libkrb5-dev (from .../libkrb5-dev_1.10+dfsg~beta1-2ubuntu0.3_i386.deb) ...


Selecting previously unselected package libldap2-dev.
Unpacking libldap2-dev (from .../libldap2-dev_2.4.28-1.1ubuntu4.4_i386.deb) ...
Selecting previously unselected package libgpg-error-dev.
Unpacking libgpg-error-dev (from .../libgpg-error-dev_1.10-2ubuntu1_i386.deb) ...
Selecting previously unselected package libgcrypt11-dev.
Unpacking libgcrypt11-dev (from .../libgcrypt11-dev_1.5.0-3ubuntu0.2_i386.deb) ...
Selecting previously unselected package libtasn1-3-dev.
Unpacking libtasn1-3-dev (from .../libtasn1-3-dev_2.10-1ubuntu1.1_i386.deb) ...
Selecting previously unselected package libp11-kit-dev.
Unpacking libp11-kit-dev (from .../libp11-kit-dev_0.12-2ubuntu1_i386.deb) ...
Selecting previously unselected package libgnutls-dev.
Unpacking libgnutls-dev (from .../libgnutls-dev_2.12.14-5ubuntu3.8_i386.deb) ...
Selecting previously unselected package librtmp-dev.
Unpacking librtmp-dev (from .../librtmp-dev_2.4~20110711.gitc28f1bab-1_i386.deb) ...
Selecting previously unselected package libcurl4-openssl-dev.
Unpacking libcurl4-openssl-dev (from .../libcurl4-openssl-dev_7.22.0-3ubuntu4.8_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 4 added doc-base files...
Registering documents with scrollkeeper...
Processing triggers for install-info ...
Setting up libgssrpc4 (1.10+dfsg~beta1-2ubuntu0.3) ...
Setting up libkadm5clnt-mit8 (1.10+dfsg~beta1-2ubuntu0.3) ...
Setting up libkdb5-6 (1.10+dfsg~beta1-2ubuntu0.3) ...
Setting up libkadm5srv-mit8 (1.10+dfsg~beta1-2ubuntu0.3) ...
Setting up libgnutls-openssl27 (2.12.14-5ubuntu3.8) ...
Setting up libgnutlsxx27 (2.12.14-5ubuntu3.8) ...
Setting up comerr-dev (2.1-1.42-1ubuntu2) ...
Setting up krb5-multidev (1.10+dfsg~beta1-2ubuntu0.3) ...
Setting up libidn11-dev (1.23-2) ...
Setting up libkrb5-dev (1.10+dfsg~beta1-2ubuntu0.3) ...
Setting up libldap2-dev (2.4.28-1.1ubuntu4.4) ...
Setting up libgpg-error-dev (1.10-2ubuntu1) ...
Setting up libgcrypt11-dev (1.5.0-3ubuntu0.2) ...
Setting up libtasn1-3-dev (2.10-1ubuntu1.1) ...
Setting up libp11-kit-dev (0.12-2ubuntu1) ...
Setting up libgnutls-dev (2.12.14-5ubuntu3.8) ...
Setting up librtmp-dev (2.4~20110711.gitc28f1bab-1) ...
Setting up libcurl4-openssl-dev (7.22.0-3ubuntu4.8) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@agung-Vostro-3350:/opt/lampp/etc# apt-get install php5-pgsql
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-pgsql is already the newest version.
The following package was automatically installed and is no longer required:
openjdk-7-jre-lib
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@agung-Vostro-3350:/opt/lampp/etc# apt-get install opejdk-7-jre-lib
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package opejdk-7-jre-lib
root@agung-Vostro-3350:/opt/lampp/etc# ls
extra
magic
pear.conf
ssl.crt
freetds.conf mime.types php.ini
ssl.key

httpd.conf
my.cnf
php.ini~
webalizer.conf
httpd.conf.bak openldap php.ini-pre1.7.2 webalizer.conf.sample
lampp
openssl.cnf pool.conf
locales.conf original proftpd.conf
root@agung-Vostro-3350:/opt/lampp/etc# gedit php.ini
root@agung-Vostro-3350:/opt/lampp/etc# /opt/lampp/lampp restart
Stopping XAMPP for Linux 1.8.1...
XAMPP: Stopping Apache with SSL...
XAMPP: Stopping MySQL...
XAMPP: Stopping ProFTPD...
XAMPP stopped.
Starting XAMPP for Linux 1.8.1...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
root@agung-Vostro-3350:/opt/lampp/etc# sudo postgres
sudo: postgres: command not found
root@agung-Vostro-3350:/opt/lampp/etc# service postgresql start
* Starting PostgreSQL 9.1 database server
[ OK ]
root@agung-Vostro-3350:/opt/lampp/etc# exit
agung@agung-Vostro-3350:~$ sudo su postgres
[sudo] password for agung:
Sorry, try again.
[sudo] password for agung:
Sorry, try again.
[sudo] password for agung:
postgres@agung-Vostro-3350:/home/agung$ createdb -U openerp moodle1
createdb: could not connect to database postgres: FATAL: Peer authentication failed for user "openerp"
postgres@agung-Vostro-3350:/home/agung$ createdb moodle -U postgres
postgres@agung-Vostro-3350:/home/agung$ exit
exit
agung@agung-Vostro-3350:~$ ssh @128.199.139.250
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-I pkcs11] [-i identity_file]
[-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-W host:port] [-w local_tun[:remote_tun]]
[user@]hostname [command]
agung@agung-Vostro-3350:~$ ssh root@128.199.139.250
root@128.199.139.250's password:
Permission denied, please try again.
root@128.199.139.250's password:
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Thu Jul 17 21:33:52 EDT 2014
System load: 0.0
Processes:
70
Usage of /: 4.3% of 29.40GB Users logged in: 1
Memory usage: 5%
IP address for eth0: 128.199.139.250
Swap usage: 0%
Graph this data and manage this system at:
https://landscape.canonical.com/

Last login: Thu Jul 17 21:33:52 2014 from 182.253.203.138


root@belajar-erp:~# cd /opt/
root@belajar-erp:/opt# ls
root@belajar-erp:/opt# cd /home/
root@belajar-erp:/home# ls
root@belajar-erp:/home#
root@belajar-erp:/home# cd /home/
root@belajar-erp:/home# ls
root@belajar-erp:/home# cd ..
root@belajar-erp:/# cd /etc/
root@belajar-erp:/etc# ls
acpi
init.d
python3.4
adduser.conf
initramfs-tools
rc0.d
alternatives
inputrc
rc1.d
apm
insserv
rc2.d
apparmor
insserv.conf
rc3.d
apparmor.d
insserv.conf.d
rc4.d
apport
iproute2
rc5.d
apt
iscsi
rc6.d
at.deny
issue
rc.digitalocean
at-spi2
issue.net
rc.local
bash.bashrc
kbd
rcS.d
bash_completion
kernel
resolvconf
bash_completion.d
kernel-img.conf
resolv.conf
bindresvport.blacklist landscape
rmt
blkid.conf
ldap
rpc
blkid.tab
ld.so.cache
rsyslog.conf
byobu
ld.so.conf
rsyslog.d
ca-certificates
ld.so.conf.d
sane.d
ca-certificates.conf legal
screenrc
calendar
libaudit.conf
securetty
chatscripts
libnl-3
security
colord.conf
locale.alias
selinux
console-setup
localtime
services
cron.d
logcheck
sgml
cron.daily
login.defs
shadow
cron.hourly
logrotate.conf
shadowcron.monthly
logrotate.d
shells
crontab
lsb-release
skel
cron.weekly
ltrace.conf
smi.conf
dbus-1
magic
ssh
debconf.conf
magic.mime
ssl
debian_version
mailcap
subgid
default
mailcap.order
subuid
deluser.conf
manpath.config
sudoers
depmod.d
mime.types
sudoers.d
dhcp
mke2fs.conf
sysctl.conf
digitalocean
modprobe.d
sysctl.d
dpkg
modules
systemd
drirc
mtab
terminfo
environment
nanorc
timezone
fonts
network
ucf.conf
fstab
networks
udev
fstab.d
newt
ufw
fuse.conf
nsswitch.conf
updatedb.conf
gai.conf
opt
update-manager
groff
os-release
update-motd.d
group
pam.conf
update-notifier
grouppam.d
upstart-xsessions

grub.d
passwd
vim
gshadow
perl
vtrgb
gshadowpm
w3m
gtk-3.0
polkit-1
wgetrc
hdparm.conf
popularity-contest.conf wireshark
host.conf
ppp
wpa_supplicant
hostname
profile
X11
hosts
profile.d
xdg
hosts.allow
protocols
xml
hosts.deny
python
zsh_command_not_found
ifplugd
python2.7
init
python3
root@belajar-erp:/etc# gedit resolv.conf
The program 'gedit' is currently not installed. You can install it by typing:
apt-get install gedit
root@belajar-erp:/etc# nano resolv.conf
root@belajar-erp:/etc# ls
acpi
init.d
python3.4
adduser.conf
initramfs-tools
rc0.d
alternatives
inputrc
rc1.d
apm
insserv
rc2.d
apparmor
insserv.conf
rc3.d
apparmor.d
insserv.conf.d
rc4.d
apport
iproute2
rc5.d
apt
iscsi
rc6.d
at.deny
issue
rc.digitalocean
at-spi2
issue.net
rc.local
bash.bashrc
kbd
rcS.d
bash_completion
kernel
resolvconf
bash_completion.d
kernel-img.conf
resolv.conf
bindresvport.blacklist landscape
rmt
blkid.conf
ldap
rpc
blkid.tab
ld.so.cache
rsyslog.conf
byobu
ld.so.conf
rsyslog.d
ca-certificates
ld.so.conf.d
sane.d
ca-certificates.conf legal
screenrc
calendar
libaudit.conf
securetty
chatscripts
libnl-3
security
colord.conf
locale.alias
selinux
console-setup
localtime
services
cron.d
logcheck
sgml
cron.daily
login.defs
shadow
cron.hourly
logrotate.conf
shadowcron.monthly
logrotate.d
shells
crontab
lsb-release
skel
cron.weekly
ltrace.conf
smi.conf
dbus-1
magic
ssh
debconf.conf
magic.mime
ssl
debian_version
mailcap
subgid
default
mailcap.order
subuid
deluser.conf
manpath.config
sudoers
depmod.d
mime.types
sudoers.d
dhcp
mke2fs.conf
sysctl.conf
digitalocean
modprobe.d
sysctl.d
dpkg
modules
systemd
drirc
mtab
terminfo
environment
nanorc
timezone
fonts
network
ucf.conf
fstab
networks
udev

fstab.d
newt
ufw
fuse.conf
nsswitch.conf
updatedb.conf
gai.conf
opt
update-manager
groff
os-release
update-motd.d
group
pam.conf
update-notifier
grouppam.d
upstart-xsessions
grub.d
passwd
vim
gshadow
perl
vtrgb
gshadowpm
w3m
gtk-3.0
polkit-1
wgetrc
hdparm.conf
popularity-contest.conf wireshark
host.conf
ppp
wpa_supplicant
hostname
profile
X11
hosts
profile.d
xdg
hosts.allow
protocols
xml
hosts.deny
python
zsh_command_not_found
ifplugd
python2.7
init
python3
root@belajar-erp:/etc# nano resolv.conf
root@belajar-erp:/etc# nano host.conf
root@belajar-erp:/etc# apt-get install bind9
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bind9utils
Suggested packages:
bind9-doc
The following NEW packages will be installed:
bind9 bind9utils
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 432 kB of archives.
After this operation, 1,632 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.digitalocean.com/ubuntu/ trusty/main bind9utils amd64 1:9.9.5.dfsg-3 [145 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu/ trusty/main bind9 amd64 1:9.9.5.dfsg-3 [287 kB]
Fetched 432 kB in 0s (757 kB/s)
Preconfiguring packages ...
Selecting previously unselected package bind9utils.
(Reading database ... 59014 files and directories currently installed.)
Preparing to unpack .../bind9utils_1%3a9.9.5.dfsg-3_amd64.deb ...
Unpacking bind9utils (1:9.9.5.dfsg-3) ...
Selecting previously unselected package bind9.
Preparing to unpack .../bind9_1%3a9.9.5.dfsg-3_amd64.deb ...
Unpacking bind9 (1:9.9.5.dfsg-3) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Setting up bind9utils (1:9.9.5.dfsg-3) ...
Setting up bind9 (1:9.9.5.dfsg-3) ...
Adding group `bind' (GID 114) ...
Done.
Adding system user `bind' (UID 106) ...
Adding new user `bind' (UID 106) with group `bind' ...
Not creating home directory `/var/cache/bind'.
wrote key file "/etc/bind/rndc.key"
#
* Starting domain name service... bind9

[ OK ]

Processing triggers for ureadahead (0.100.0-16) ...


Processing triggers for ufw (0.34~rc-0ubuntu2) ...
root@belajar-erp:/etc# cd /bin/
root@belajar-erp:/bin# ls
bash
chvt
fgconsole lesspipe nc
ntfstruncate
sed
umount
bunzip2
cp
fgrep
ln
nc.openbsd
ntfswipe
setfacl
uname
busybox
cpio
findmnt loadkeys netcat
open
setfont
uncompress
bzcat
dash
fuser
login
netstat
openvt
setupcon
unicode_start
bzcmp
date
fusermount loginctl nisdomainname pidof
sh
vdir
bzdiff
dbus-cleanup-sockets getfacl lowntfs-3g ntfs-3g
ping
sh.distrib
which
bzegrep
dbus-daemon
grep
ls
ntfs-3g.probe ping6
sleep
whiptail
bzexe
dbus-uuidgen
gunzip
lsblk
ntfs-3g.secaudit plymouth
ss
ypdomainname
bzfgrep
dd
gzexe
lsmod
ntfs-3g.usermap plymouth-upstart-bridge static-sh
zcat
bzgrep
df
gzip
mkdir
ntfscat
ps
stty
zcmp
bzip2
dir
hostname mknod
ntfsck
pwd
su
zdiff
bzip2recover dmesg
ip
mktemp ntfscluster
rbash
sync
zegrep
bzless
dnsdomainname
kbd_mode more
ntfscmp
readlink
tailf
zfgrep
bzmore
domainname
kill
mount
ntfsdump_logfile red
tar
zforce
cat
dumpkeys
kmod
mountpoint ntfsfix
rm
tempfile
zgrep
chacl
echo
less
mt
ntfsinfo
rmdir
touch
zless
chgrp
ed
lessecho mt-gnu
ntfsls
rnano
true
zmore
chmod
egrep
lessfile mv
ntfsmftalloc
running-in-container udevadm
znew
chown
false
lesskey nano
ntfsmove
run-parts
ulockmgr_server
root@belajar-erp:/bin# nano domainname
root@belajar-erp:/bin# nano dnsdomainname
root@belajar-erp:/bin# cd ..
root@belajar-erp:/# cd etc/
root@belajar-erp:/etc# ls
acpi
cron.hourly gtk-3.0
ld.so.conf.d nsswitch.conf
rc.digitalocean sudoers.d
adduser.conf
cron.monthly hdparm.conf legal
opt
rc.local
sysctl.conf
alternatives
crontab
host.conf
libaudit.conf os-release
rcS.d
sysctl.d
root@belajar-erp:/etc/bind# lsb
host.conf
libaudit.conf os-rele
bind.keys db.2
db.root
named.conf.local
db.0
db.255 named.conf
named.conf.options
db.1
db.empty named.conf.default-zones
rndc.key
db.127 db.local named.conf.default-zones.old zones.rfc1918
root@belajar-erp:/etc/bind# nano db.2
root@belajar-erp:/etc/bind# nano /etc/resolv.conf
root@belajar-erp:/etc/bind# /etc/init.d/bind9 restart
* Stopping domain name service... bind9
waiting for pid 2311 to die
[ OK ]
* Starting domain name service... bind9
[ OK ]
root@belajar-erp:/etc/bind# ping ns1.belajar-erp.com
PING ns1.belajar-erp.com.com (54.183.52.48) 56(84) bytes of data.
^C
--- ns1.belajar-erp.com.com ping statistics --37 packets transmitted, 0 received, 100% packet loss, time 36288ms
root@belajar-erp:/etc/bind# nano db.1
root@belajar-erp:/etc/bind# nano db.2
root@belajar-erp:/etc/bind# /etc/init.d/bind9 restart
* Stopping domain name service... bind9
* Starting domain name service... bind9
[ OK ]
root@belajar-erp:/etc/bind# ping 128.199.139.250
PING 128.199.139.250 (128.199.139.250) 56(84) bytes of data.
64 bytes from 128.199.139.250: icmp_seq=1 ttl=64 time=0.074 ms
64 bytes from 128.199.139.250: icmp_seq=2 ttl=64 time=0.068 ms
64 bytes from 128.199.139.250: icmp_seq=3 ttl=64 time=0.101 ms
^C

[ OK ]

--- 128.199.139.250 ping statistics --3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.068/0.081/0.101/0.014 ms
root@belajar-erp:/etc/bind# ping belajar-erp.com
PING belajar-erp.com (127.0.1.1) 56(84) bytes of data.
64 bytes from belajar-erp.com (127.0.1.1): icmp_seq=1 ttl=64 time=0.029 ms
64 bytes from belajar-erp.com (127.0.1.1): icmp_seq=2 ttl=64 time=0.043 ms
64 bytes from belajar-erp.com (127.0.1.1): icmp_seq=3 ttl=64 time=0.044 ms
64 bytes from belajar-erp.com (127.0.1.1): icmp_seq=4 ttl=64 time=0.045 ms
64 bytes from belajar-erp.com (127.0.1.1): icmp_seq=5 ttl=64 time=0.043 ms
^C
--- belajar-erp.com ping statistics --5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.029/0.040/0.045/0.010 ms
root@belajar-erp:/etc/bind# nano db.1
root@belajar-erp:/etc/bind# ls
bind.keys db.2
db.root
named.conf.local
db.0
db.255 named.conf
named.conf.options
db.1
db.empty named.conf.default-zones
rndc.key
db.127 db.local named.conf.default-zones.old zones.rfc1918
root@belajar-erp:/etc/bind# nano named.conf.default-zones
root@belajar-erp:/etc/bind#

Anda mungkin juga menyukai