Kamis, 25 Februari 2016

Seputar Ubuntu

Ubuntu (/iconʊˈbʊnt/) merupakan salah satu distribusi Linux yang berbasiskan Debian dan didistribusikan sebagai perangkat lunak bebas. Nama Ubuntu berasal dari filosofi dari Afrika Selatan yang berarti "kemanusiaan kepada sesama"[9]. Ubuntu dirancang untuk kepentingan penggunaan pribadi, namun versi server Ubuntu juga tersedia, dan telah dipakai secara luas.
Proyek Ubuntu resmi disponsori oleh Canonical Ltd. yang merupakan sebuah perusahaan yang dimiliki oleh pengusaha Afrika Selatan Mark Shuttleworth. Tujuan dari distribusi Linux Ubuntu adalah membawa semangat yang terkandung di dalam filosofi Ubuntu ke dalam dunia perangkat lunak. Ubuntu adalah sistem operasi lengkap berbasis Linux, tersedia secara bebas, dan mempunyai dukungan baik yang berasal dari komunitas maupun tenaga ahli profesional.

Filosofi

Ubuntu mempunyai filosofi sebagai berikut :
  • bahwa perangkat lunak harus tersedia dengan bebas biaya
  • bahwa aplikasi perangkat lunak tersebut harus dapat digunakan dalam bahasa lokal masing-masing dan untuk orang-orang yang mempunyai keterbatasan fisik
  • bahwa pengguna harus mempunyai kebebasan untuk mendapatkan, mengubah, dan mendistribusikan perangkat lunak sesuai dengan apa yang mereka butuhkan tanpa halangan apapun[10]
Perihal kebebasan inilah yang membuat Ubuntu berbeda dari perangkat lunak berpemilik (proprietary); bukan hanya peralatan yang Anda butuhkan tersedia secara bebas biaya, tetapi Anda juga mempunyai hak untuk memodifikasi perangkat lunak Anda sampai perangkat lunak tersebut bekerja sesuai dengan yang Anda inginkan.

Sejarah dan Pengembangan

Ubuntu adalah salah satu proyek andalan Debian. Sasaran awal Ubuntu adalah menciptakan sistem operasi desktop Linux yang mudah dipakai. Ubuntu dijadwalkan dirilis setiap 6 bulan sehingga sistem Ubuntu dapat terus diperbarui.[11][12]
Ubuntu pertama kali dirilis pada 20 Oktober 2004. Semenjak itu, Canonical telah merilis versi Ubuntu yang baru setiap 6 bulan sekali. Setiap rilis didukung selama 18 bulan untuk pembaruan sistem, keamanan, dan kesalahan (bug). Setiap 2 tahun sekali (versi xx.04 dengan x angka genap) akan mendapatkan Long Term Support(LTS)[11] selama 3 tahun untuk desktop dan 5 tahun untuk edisi server. Namun Ubuntu 12.04 yang dirilis pada April 2012 mendapatkan pembaruan sistem selama 5 tahun[12]. Perpanjangan dukungan ini bertujuan untuk mengakomodasi bisnis dan pengguna IT yang bekerja pada siklus panjang dan pertimbangan biaya yang mahal untuk memperbarui sistem.[13]
Paket-paket software Ubuntu berasal dari paket tidak stabil Debian; Ubuntu memakai format paket dan manajemen paket Debian (APT dan Synaptic). Paket Debian dan Ubuntu seringkali tidak cocok. Paket Debian sering kali perlu dibuat ulang dari source agar dapat dipakai di Ubuntu[14], begitu juga sebaliknya. Ubuntu bekerja sama dengan Debian untuk berusaha agar perubahan-perubahan sistem Ubuntu mengarah kembali ke Debian[15], namun hal ini hampir tak terlaksana. Penemu Debian, Ian Murdock, pernah berkata bahwa paket Ubuntu berpotensi mengarah terlalu jauh dari Debian[16]. Sebelum setiap rilis Ubuntu, paket-paket diambil dari paket tidak stabil Debian dan digabung dengan modifikasi Ubuntu. Sebulan sebelum perilisan, pengambilan paket dihentikan dan kerja selanjutnya adalah memastikan paket-paket yang sudah diambil bekerja dengan baik.
Ubuntu sekarang dibiayai oleh Canonical Ltd. Pada 8 Juli 2005 Mark Shuttleworth mendirikan pendirian Ubuntu Foundation dan memberikan pendanaan awal sebesar US$10 juta. Tujuan dari pendirian yayasan ini adalah untuk memastikan pengembangan dan dukungan semua versi Ubuntu dapat terus berjalan.[17]
Pada 31 Oktober 2011, Mark Shuttleworth mengumumkan bahwa Ubuntu 14.04 akan mendukung smartphone, tablet, dan smart TV. Dan desain-desainnya pun sudah mulai dirancang.[18]

Fitur

Ubuntu terdiri dari banyak paket, kebanyakan berasal dari distribusi di bawah lisensi lisensi software bebas. Namun, beberapa software khususnya driver menggunakan Proprietary software[19]. Lisensi yang pada umumnya adalah GNU General Public License (GNU GPL) dan GNU Lesser General Public License (GNU LGPL), dengan tegas menyatakan bahwa pengguna dengan bebas dapat menjalankan, menggandakan, mempelajarai, memodifikasi, dan mendistribusikan tanpa pembatasan apapun. Namun tetap ada software proprietary yang dapat berjalan di Ubuntu. Ubuntu berfokus pada ketersediaan kegunaan pada orang disfungsi, keamanan dan stabilitas. Ubuntu juga berfokus pada internasionalosasi dan aksesibilitas untuk dapat menjangkau sebanyak-banyaknya orang[20]. Dalam hal keamanan, perangkat sudo dapat meningkatkan privilage secara sementara untuk melakukan tugas administratif, sehingga akun root dapat terus terkunci, dan mencegah orang tidak terauthorisasi melakukan perubahan sistem atau membuka kelemahan keamanan.[21]
Desktop Ubuntu memakai desktop environment graphis. Sebelum Ubuntu 11.04 interaksi grafis pengguna adalah GNOME Panel, namun setelah versi 11.04, berubah menjadi Unity. Unity adalah interface yang dikembangkan oleh Canonical yang awalnya dirancang untuk edisi Netbook.[22]
Ubuntu terinstall dengan banyak software multiguna diantaranya
dan beberapa software juga termasuk ke dalam CD installasi sebelum Ubuntu 11.04 sepert Transmision, GIMP. Namun software tersebut dihilangkan dari CD installasi karena ukurannya yang besar. Ubuntu juga dapat menjalankan program Windows lewat Wine atau Virtual Machine (seperti VMware workstation atau Virtual Box).
Ubuntu, tidak seperti Debian, mengompile paket mereka menggunakan fitur gcc seperti PIE dan proteksi Buffer Overflow untuk memproteksi software mereka. Fitur Ekstra tersebut menambah keamanan secara signifikan dengan pemakaian performance hanya 1% pada 32 bit dan 0,01% pada 64 bit.[23]


by : https://id.wikipedia.org/wiki/Ubuntu

Senin, 22 Februari 2016

Konfigurasi UbuntuServer14.40.3

1. Setting Root dan SSH
a. #sudo password root
     lalu masukkan password root.
     setelah itu login #su
    #reboot

b. setting ip address client


tes koneksi :

















c.  masuk putty

d. login


e.  root@ns10:/home/hyd# pico /etc/ssh/sshd_config

# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
#Port 22
Port 1734
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
ListenAddress ::
ListenAddress 0.0.0.0
....
....
# Authentication:
LoginGraceTime 120
#PermitRootLogin without-password
PermitRootLogin yes
StrictModes yes

e. lalu #reboot


2. Setting Router
a. root@ns10:# nano /etc/network/interfaces
....
....
# LAN Card pertama
auto p4p1
iface p4p1 inet static
address 172.16.3.1
netmask 255.255.255.128
network 172.16.3.0
broadcast 172.16.3.127
gateway 172.16.3.126
# LAN Card kedua
auto p4p2
iface p4p2 inet static
address 192.168.100.1
netmask 255.255.255.248
network 192.168.100.0
broadcast 192.168.100.7

b. #reboot
    #ifconfig (cek ip nya)
c. root@ns10:# nano /etc/rc.local
 #!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
iptables -t nat -A POSTROUTING -o p4p1 -j MASQUERADE
exit 0

d. root@ns10:# nano /etc/sysctl.conf
# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1 (hilangkan #)
# Uncomment the next line to enable packet forwarding for IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1

f. root@ns10:# pico /etc/resolv.conf
nameserver 192.168.100.1
nameserver 172.16.3.126
nameserver 8.8.4.4

g. #reboot
h. setting ip client




3. Setting DNS Server
a.  root@ns10:~# cd /etc/bind/
b. root@ns10:/etc/bind# named.conf.default-zones
   (copy scrip dari named.conf.default-zones )
    root@ns10:/etc/bind# pico named.conf.local
zone “sekolah10.web.id" {
type master;
file "/etc/bind/db.sekolah10";
};
zone "100.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
};

c. root@ns10:/etc/bind# cp db.local db.sekolah10
    root@ns10:/etc/bind# cp db.127 db.192

root@ns10:/etc/bind# pico db.sekolah10

d. root@ns10:/etc/bind# pico db.192

e. root@ns10:/etc/bind# pico named.conf.options
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
      forwarders {
               192.168.100.1;
               10.109.22.2;
     };
allow-query { any; };
//===================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//===================================================================
//dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};

f. root@ns10:/etc/bind# /etc/init.d/bind9 restart
g. root@ns10:/etc/bind# pico /etc/resolv.conf
nameserver 192.168.100.1
nameserver 172.16.3.126

h. root@ns10:/etc/bind# named-checkconf named.conf.local
    root@ns10:/etc/bind# named-checkconf named.conf.options
root@ns1:/etc/bind# named-checkconf -z
zone sekolah1.web.id/IN: loaded serial 2
zone 100.168.192.in-addr.arpa/IN: loaded serial 1
zone localhost/IN: loaded serial 2
zone 127.in-addr.arpa/IN: loaded serial 1
zone 0.in-addr.arpa/IN: loaded serial 1
zone 255.in-addr.arpa/IN: loaded serial 1

i.  root@ns10:/etc/bind# nslookup sekolah1.web.id
Server: 192.168.100.1
Address: 192.168.100.1#53
Name: sekolah1.web.id
Address: 192.168.100.1
   root@ns10:/etc/bind# nslookup www.sekolah1.web.id
Server: 192.168.100.1
Address: 192.168.100.1#53
www.sekolah1.web.id canonical name = sekolah1.web.id.
Name: sekolah1.web.id
Address: 192.168.100.1
    root@ns10:/etc/bind# nslookup student.sekolah1.web.id
Server: 192.168.100.1
Address: 192.168.100.1#53
student.sekolah1.web.id canonical name = sekolah1.web.id.
Name: sekolah1.web.id
Address: 192.168.100.1

j. pada client


4. Setting Web Server
root@ns10:/etc/bind# cd /var/www/html/
root@ns10:/var/www/html# mkdir sekolah10
root@ns10:/var/www/html# mkdir student
root@ns10:/var/www/html# ls
index.html sekolah1 student
root@ns10:/var/www/html# pico sekolah1/index.html
sekolah1.web.id
root@ns10:/var/www/html# pico student/index.html
student.sekolah1.web.id

root@ns10:/var/www/html# cd /etc/apache2/sites-available/
root@ns10:/etc/apache2/sites-available# ls
000-default.conf default-ssl.conf
root@ns10:/etc/apache2/sites-available# cp 000-default.conf sekolah1.conf
root@ns10:/etc/apache2/sites-available# cp 000-default.conf student.conf

root@ns10:/etc/apache2/sites-available# pico sekolah10.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
      ServerAdmin nia@sekolah10.web.id
      ServerName sekolah10.web.id
      ServerAlias www.sekolah1.web.id
      DocumentRoot /var/www/html/sekolah10
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


root@ns10:/etc/apache2/sites-available# pico student.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
     ServerAdmin nia@student.sekolah10.web.id
     ServerName student.sekolah10.web.id
     ServerAlias student.sekolah10.web.id
     DocumentRoot /var/www/html/student
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

root@ns1:/etc/apache2/sites-available# a2ensite sekolah1.conf
Enabling site sekolah10.
To activate the new configuration, you need to run:
service apache2 reload
root@ns1:/etc/apache2/sites-available# a2ensite student.conf
Enabling site student.
To activate the new configuration, you need to run:
service apache2 reload
root@ns1:/etc/apache2/sites-available# service apache2 reload


5. Install CMS Wordpress
  .Membuat database dan user baru untuk wordpress.
Sebelum anda menginstall wordpress di server ubuntu 14.04, anda memerlukan database untuk menyimpan dan mengelola data-data situs anda nantinya. Anda bisa membuat database dan user baru melalui phpmyadmin. Namun, jika anda belum install phpmyadmin di ubuntu 14.04 anda, silahkan anda buat database MySQL secara manual melalui terminal console dengan mengikuti langkah-langkah berikut ini :

a. root@ns10:# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 36
Server version: 5.5.44-0ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>

mysql> CREATE DATABASE wprstudent;
Query OK, 1 row affected (0.09 sec)
mysql> CREATE USER hyd@localhost IDENTIFIED BY 'passwordhyd';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON wprstudent.* TO hyd@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
root@ns10:~#

b. root@ns10:# cd /var/www/html
    root@ns10:/var/www/html# wget http://wordpress.org/latest.tar.gz
    root@ns10:/var/www/html# tar -zxvf latest.tar.gz
    root@ns10:/var/www/html# cd wordpress/
    root@ns10:/var/www/html/wordpress# cp wp-config-sample.php wp-config.php
    root@ns10:/var/www/html/wordpress# pico wp-config.php
(cari scrip berikut) :

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wprstudent');
/** MySQL database username */
define('DB_USER', 'nia');
/** MySQL database password */
define('DB_PASSWORD', 'passwordnia');

c. root@ns10:/var/www/html/wordpress# rsync -avP /var/www/html/wordpress/ /var/www/html/student/
   root@ns10:/var/www/html/wordpress# cd ../student/
   root@ns10:/var/www/html/student# rm index.html
   root@ns10:/var/www/html/student# adduser student
Adding user `student' ...
Adding new group `student' (1001) ...
Adding new user `student' (1001) with group `student' ...
Creating home directory `/home/student' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: (ini di isi)
Retype new UNIX password: (ini di isi)
passwd: password updated successfully
Changing the user information for student
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y

d. root@ns10:/var/www/html/student# gpasswd -a student sudo
Adding user student to group sudo
   root@ns10:/var/www/html/student# chown -R student:www-data *
   root@ns10:/var/www/html/student# mkdir wp-content/uploads
   root@ns10:/var/www/html/student# chown -R :www-data wp-content/uploads








>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>SELESAI<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>SEMOGA BERMANFAAT :-) SEMANGATTT......!!!!!!!!!!!!!!!!UPK'2016<<<<<<<<<<



Rabu, 17 Februari 2016

root@firman:~# nano /etc/bind/named.conf.local

zone "nia.sekolah.web.id" {
type master;
file "/etc/bind/db.domain";
};
zone "100.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.ip";
};

root@firman:~# cd /etc/apache2/sites-available/
root@firman:/etc/apache2/sites-available~# nano firman.conf

<VirtualHost *:80>
ServerName firman.sekolah.web.id
DocumentRoot /var/www/html/www-data/
</VirtualHost>