Campus, Linux, Networking, Opensource, Server

Samba Server Centos

Yang digunakan centos 6.3 dengan ip 192.168.56.101

Cek SELinux enble / disable dengan command

…………………………………………………………………….

# selinuxenabled && echo enabled || echo disabled

enabled

…………………………………………………………………….

Kalo SELinux nya enable, harus di disable ‘in dengan command

.................................
# nano /etc/selinux/config 
.................................
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
................................
Selanjut nya restart system dengan  command
...................
#init 6
...................
Install Samba kalo belom ada di centos lo
......................
# yum install samba samba-common cups-libs samba-client
......................
Next Config Samba
......................
# vi /etc/samba/smb.conf
......................
Cari bagian ini lalu sesuaikan.
..............................
# ----------------------- Standalone Server Options ------------------------
#
# Scurity can be set to user, share(deprecated) or server(deprecated)
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.

        security = user 
        passdb backend = tdbsam
................................
Lalu masukkan command berikut ini pada bagian paling bawah smb.conf
................................
[samba share folder]
  comment = All Users
  path = /path/yang/akan/dishare/
  valid users = @users
  force group = users
  create mask = 0660
  directory mask = 0771
  writable = yes
.................................
Restart samba
....................................
#Service smb restart
....................................
Selanjut nya Membuat User Samba
....................................
#useradd ibolobolo-m -G users
#smbpasswd -a 123456
....................Setting sisi Centos DONE.........................
Buka windows explores ketik pada address bar : \\192.168.56.101\user
centosSMB

Standard
Linux, Server

Best Linux Server distributions for 2012 – Top 5

We recently reviewed the Top 5 Linux distributions for 2012 focusing on desktop (workstation) tailored distributions. But if there is an area where Linux is a king, this is certainly the server area. The internet is at this point populated by servers running Linux that a word was created for them: LAMP, designing the most used software association on these servers ( Linux Apache MySQL PHP ). The popularity of these Linux servers is not only due to their low cost, but also to their stability — most have not been rebooted in years.

What usually makes a Linux server oriented distribution different to its workstation counterpart is long term support, focus on stability of offered packages, as well as optimization of network performances.

Red Hat Enterprise Linux

Red Hat Enterprise Linux is, as you could guess, a server distribution commercially supported by Red Hat. Being enterprise oriented, this distribution is aiming to suit the needs of medium to big enterprises. Red hat Enterprise Linux comes with long term support (at least 7 years) , is optimized for multicored systems, and supports a large variety of hardware.

Download Red Hat Enterprise Linux

CentOS / ClearOS

If the subscription costs of Red Hat Enterprise Linux support, ranging from few hundred dollars to thousands, can be an insurmountable obstacle for small business or independent entrepreneur, there are fortunately similar distributions available.

CentOS is without doubt the most known of these free alternatives. Being 100% binary compatible, frequently updated, and supported by a large user community, it is an obvious choice.
Download CentOS

ClearOS is a little more than a free alternative, providing unique features, like cloud connection and an easy to use web-based administration interface. In addition to a free community edition, ClearOS also offers a professional edition.
Download ClearOS

Ubuntu / Debian

As there are Red Hat based Linux distribution, there are Debian based ones, Ubuntu Server Edition being one of the most popular.

A nice thing about Debian based Linux servers is that you never need to install a new distribution, as their package manager lets you upgrade your system easily and indefinitely.

Download Ubuntu

Download Debian

source :http://www.icewalkers.com/articles/best-linux-server.html

Standard
Linux, Server

Install Squid Proxy Server on CentOS / Redhat enterprise Linux 5

Tested by ibalabala

#Centos 6

…………………….

Step 1 install squid

# yum install squid

 

…………..Output………….

Loading “installonlyn” plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies –> Populating transaction set with selected packages. Please wait. —> Package squid.i386 7:2.6.STABLE6-4.el5 set to be updated –> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: squid i386 7:2.6.STABLE6-4.el5 updates 1.2 M Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 1.2 M Is this ok [y/N]: y Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: squid ######################### [1/1] Installed: squid.i386 7:2.6.STABLE6-4.el5 Complete!

………………………………………………………………………………………

Step 2 Configurasi squid.conf

# vi /etc/squid/squid.conf *ket : vi bisa disesuaikan sama text editor lo, misalkan mw pake gedit,nano,leafepad dll. tinggal di ganti depan nya ja.

 

Step 3

tambah kan ini kalo mau ngebypass ip lokal

acl our_networks src 192.168.1.0/24 192.168.2.0/24

http_access allow our_networks

 

Step 4 , Aktifin squid

# chkconfig squid on

# /etc/init.d/squid start

 

…….output…….

init_cache_dir /var/spool/squid… Starting squid: .       [  OK  ]

…………………………………..

 

Step 5. Membuka port 3128 pada firewall

# vi /etc/sysconfig/iptables

 

//Masukin pengaturan dibawah

-A RH-Firewall-1-INPUT -m state –state NEW,ESTABLISHED,RELATED -m tcp -p tcp –dport 3128 -j ACCEPT

 

Step 6. Restart Firewall

# /etc/init.d/iptables restart

…………………………………………………………..

Standard