Hosting Gratis man Static Blog Generator

Mejuah-juah,

Man banta siapai pe si perlu hosting gratisen ingen nimpan file-file static (css, js, html, rsd) nggo lit sediaken kami space hardisk-na 100 MB per jelma, space enda adina man blog, contoh bagi tulisen i Erban Blog Alu Pelican (Statik Blog Generator), piga-piga MB pe nggo bias.

Cara erbansa banci nenndu bas Erban Blog Alu Pelican (Statik Blog Generator). Space hosting enda la terbatas man Pelican saja, siapai pe banci banndu, ntah Jelky, Nanoc, ntah sidebanna banci pakendu.

Siperlu i pesikapndu emekap : Domain ntah subdomain, adina la lit domain/subdomain-ndu banci pakendu subdomain gratis arah Afraid. Ngata kam bas komentar saja, ntah arah email ku staff@karo.or.id

– salam

Sentabi

Erban Blog Alu Pelican (Statik Blog Generator)

blog sipemena

Gundari seh ka kita bas cara erban blog salu Pelican, adina lenga pernah begindu kerna Pelican enda banci ogendu bas website getpelican.com.

Bas tutorial enda aku pake Fedora 20. Tapi labo ndauh bedana adina pakendu distro Linux sideban. man instalasi enda perlu koneksi ku internet.

1. Persiapen ras Instalasi
Pertama-tama pastiken sistem si pakendu nggo i update alu ndalanken perintah

su -c "yum clean all;yum update -y"

install paket Python

yum install python3-devel pytz python-blinker python-devel python-jinja2 python-docutils python-pygments python-markdown2 python-unidecode

dung kenca e, install python3-pip, pip enda bali ras yum ntah apt-get, tapi khusus man Python.

su -c "yum install python3-pip;  pip install Markdown"

install Pelican simbaruna alu

su -c "pip install pelican"

bas jenda instalasina nggo dung, gundari masuk kita ku konfigurasi.

2. Erban Rangka Blog
Pertama siban lebe kerangka blogna, jenda kari siban misalken bas direktori /home/$USER/blog, $USER enda sesuai ras loginndu si pakendu, bagi aku contohna /home/sentabi/blog. Pedalan perintah di teruh enda lanai perlu akses root, pake user biasa saja erbansa. Pedalan perintah

pelican-quickstart

sindarat ras si kupilih settingenna banci nenndu bas teruh enda

Welcome to pelican-quickstart v3.3.0.
 
This script will help you create a new Pelican-based website.
Please answer the following questions so this script can generate the files
needed by Pelican.
 
> Where do you want to create your new web site? [.] blog
> What will be the title of this web site? Blog Sipemena
> Who will be the author of this web site? Sentabi 
> What will be the default language of this web site? [en] ID
> Do you want to specify a URL prefix? e.g., http://example.com   (Y/n) n
> Do you want to enable article pagination? (Y/n) Y
> How many articles per page do you want? [10] 
> Do you want to generate a Fabfile/Makefile to automate generation and publishing? (Y/n) n
> Do you want an auto-reload & simpleHTTP script to assist with theme and site development? (Y/n) n
Done. Your new project is available at /home/sentabi/blog

3. Erban Posting Blog
Enggo kenca siban rangka blogta ndai gundari siban me isi blogta enda (posting ntah pe page). Adina lenga tehndu kai bedana posting ras page enda oge ka ulihi bas link Pelican ndai ;).
Gundari stuktur /home/sentabi/blog

/home/sentabi/blog
├── content
├── output
├── pelicanconf.py
└── publishconf.py
2 directories, 2 files

isi blogta kari siban bas folder content. Mari siban postingenta si pertama, editor si kupake emekap vim, enda banci gantindu alu pico, nano, gedit ras sidebanna. Siban me gelarna postingenna si pemena erban-blog-sipemena.md isi file enda ndai

$ vim content/erban-blog-sipemena.mdtitle: Erban Blog Sipemena
date: 2013-12-20 09:56
author: Sentabi
category: Berita
tags: blog
slug: erban-blog-sipemena
 
Enda me isi berita simeriah ndai, mbaru denga aku erban blog deh corah, ajak kerina temanndu sada kuta ngoge blog enda, ula er Facebook saja ngenca pendahinndu tep-tep wari.

Kai Category, Tags, Slug nen bas Writing content using Pelican

4. Generate Blog
Gundari waktuna si generate blogta ndai, gelahna banci si buka bas browser, perintahna emekap

pelican

dung kenca i pedalan perintah sidatas, bas terminal tampil

WARNING: Could not process output/index.html
'NoneType' object has no attribute 'lower'
WARNING: Could not process output/tags.html
'NoneType' object has no attribute 'lower'
WARNING: Could not process output/categories.html
'NoneType' object has no attribute 'lower'
WARNING: Could not process output/authors.html
'NoneType' object has no attribute 'lower'
WARNING: Could not process output/archives.html
'NoneType' object has no attribute 'lower'
Done: Processed 1 articles and 0 pages in 0.17 seconds.

gelahna banci i buka i browser, sekali nari pedalan perintah

cd output && python -m SimpleHTTPServer

buka alamat http://localhost:8000 ntah pe http://127.0.0.1:8000, tampilenna bagi gambar teruh enda
blog sipemena

Seh jenda enggo dung cara erban blog enda ndai, bas tulisen selanjutna pagi emekap carana upload ku Github Pages ras ngganti tampilenna (Theme)

Erlajar Erban Script Pake Bash Bas Linux

gelar linux karo

Umumna distro-distro Linux make Bash jadi shell babanna, cara ngecek adina bas Linux si pakendu pake bash ntah lang

[sentabi@lomok2]$ echo $SHELL

adina pake bash kam sindarat

/bin/bash

Logika erban script Bash enda bali saja nge ras logika erban script bas pemrogramen sidebanna, si perlu sieteh emekap uga cara Bash enda nimpan variable ras uga syntax penulisenna. Gelahna ermenukahna si ban sada contoh script buat input (labo impu*) arah user, i proses lebe, dungna i tampilken man user tampilenna.. Contoh gelarna siban Atengena Br Ginting. Simpan script enda bas sada file ban me gelarna gelar.sh

#!/bin/sh
echo "Gelarndu emekap : " $1

Adina ndalahken file gelar.sh, sambari permissionna gelahna banci i dalanken alu perintah chmod +x gelar.sh contoh script enda i dalanken

// cara 1 ndalanken script
./gelar.sh "Atengena Br Ginting"
// cara 2 ndalanken script
sh gelar.sh "Atengena Br Ginting"

si ndarat bagi bas teruh enda

Gelarndu emekap :  Atengena Br Ginting

Adina pedarat atendu pesan lebe, jadi banci i ketikken gelarndu banci i sambari sitik script sidatas jadi bagenda

#!/bin/sh
echo -e 'Ise gelarndu? ' 
read gelar
echo "Gelarndu emekap : " $gelar

hasilna sindarat bagi bas teruh enda

Ise gelarndu? 
Atengena Br Ginting
Gelarndu emekap :  Atengena Br Ginting

adina nulis gelarna atendu dungkensa penungkunen, tading sambari -e jadi -n bas scriptta sidata, jadi

#!/bin/sh
echo -n 'Ise gelarndu? ' 
read gelar
echo "Gelarndu emekap : " $gelar

bagenda ka dungna si ndarat

[sentabi@lomok2]$ ./gelar.sh 
Ise gelarndu? Atengena Br Ginting
Gelarndu emekap :  Atengena Br Ginting
[sentabi@lomok2$

gelar linux karo
Sibar jem lebe tutorial sekalenda, adina lit penungkunenndu banci tamakenndu bas komentar, adina lahang bujur melala.

Ulang Tahun Linux Seharusna 17 September

Melala enggo beredar bas Internet singataken ulang tahun Linux emekap tanggal 25 Agustus, piga-piga wari silepus. Enda ku kutip status Linus Torvald bas G+

It’s been 22 years since (one of) the original announcement(s) so I wanted to try to come up with some interesting numbers…
But in the end, it’s just that single number: 22 years. More than half my life, and things have certainly changed since then.
Now to be fair, today isn’t the only birthday: Aug 25, 1991 was the date for that original pre-announcement, but there’s a few other relevant dates that may be even more relevant as “birthdays of Linux”.
The actual 0.01 code release was September 17. But while it was uploaded to a public site, there was no public announcement of it. So in that sense Oct 5 might be the true “coming out” date – that is when 0.02 was done, announcement and all.
But you know what? You can have cake on any of those three days (or eat it continuously for the whole range). Go wild.

Tanggal 25 e pertama i umumkenna ku jelma sienterem, tapi codena pedaratna bas tanggal 17 September, piga-piga wari enca pedaratna pengumumenna e.

Cara Ngenen File Siterakhir I Ubah bas Wari X

Bas linux lit sada tools si erguna man ndarami file, gelarna find. Find enda melala gunana, banci ka pake man ndarami file alu gelar, file permission, ntah pe bas piga wari terakhir i ubah. Adina usur kam ngedit-ngedit file konfigurasi linux dung e lanai ingetndu kai gelar filena, perban alu la sengaja terdalankenndu perintah history -c ntah pe sebab sideban, enda tools si pas man bandu, carana bagi bas teruh enda

find /etc -mtime -1

keterangen perintah sidatas :
/etc enda me direktori si man daramenta, banci i sambari jadi /home / /tmp ntah pe sidebanna, ba ja ateta sidarami file e.
-mtime -1 : enda ertina darami file si i ubah bas 1 wari terakhir, banci gantindu jadi 7, 9, 20 ntah pe sidebanna.

Sibar jem lebe tulisen enda, kari si sambung ka :)

Script Bash Man Ngenen Informasi Komputer

tampilen informasi.sh

Script enda i bas guna nampati si mbaru denga nandai Linux, gelahna etehna informasi komputerna, bagi ukuren hardisk, resolusi monitor, memory ras sidebanna. Buka terminal dung e ban sada file gelarna informasi.sh

nano informasi.sh

copy paste script sibas teruh enda kubas informasi.sh

#!/bin/bash
# (c) 2013 Kacibang Kerangen
# Dibawah lisensi : Kera Tonggal
echo "Resolusi Monitor  : " $(xdpyinfo  | grep 'dimensions:' | tr -s ' '|cut -c14-21)
echo "Distro            : " $(cat /etc/redhat-release)
echo "Hostname          : " $(hostname)
echo "DE                : " $DESKTOP_SESSION
echo "Direktori Home    : " $HOME
echo "User ID           : " $USER
echo "GROUP             : " $(id -Gn)
echo "Total Memory      : " $(sed -n -e '/^MemTotal/s/^[^0-9]*//p' /proc/meminfo)
echo "Hardisk           : " $(df | grep '^/dev/[hs]d' | awk '{s+=$2} END {print s/976562.5}') "GB"

Adina la atehndu latih download saja salu perintah

wget https://raw.github.com/sentabi/scripts/master/informasi.sh

dung e, ubah file permission-na gelahna banci i dalanken script enda.

chmod +x informasi.sh

kenca bage, dalanken script enda alu perintah

./informasi.sh

bas komputerku, tampilen si ndarat arah script sidatas ah

Resolusi Monitor  :  1366x768
Distro            :  Fedora release 19 (Schrödinger’s Cat)
Hostname          :  surbakti
DE                :  xfce
Direktori Home    :  /home/tommy
User ID           :  tommy
GROUP             :  tommy vboxusers
Total Memory      :  3941904 kB
Hardisk           :  306.234 GB

gambarna bas teruh enda
tampilen informasi.sh

cataten : script enda ku dalanken bas Distro Fedora, adina dalankenndu bas Distro sideban banci la erdalan piga-piga perintah bas script ah.

Erban Proxy SQUID Guna Percepat Akses Website

setting squid proxy fedora firefox

Judulna enda situhuna mesera erbansa hahaha, tapi bage pe anggap lah enggo siangka kai tujunna. Adina usur kita browsing website lit me piga-piga file sibas website e si jarang i sambari, ban lah contohna file gambar, css, javascript ntah pe text. I bas file-file si jarang i ganti endai me banci si ban cache na bas komputer local, jadi akses ku website si rusur sinen banci ercepatna, perban file-file si statik ah ndai enggo i buat arah komputer ntah pe proxy local.

Cara instalasi Squid enda i ban ibas distro Fedora 18, carana mirip nge ras distro-distro linux sidebanna. Mari si mulai tutorialta enda, buka terminal, ketik

su -

dung e ketikken password root linuxndu, dung e install squid na, i jenda perlu koneksi internet.

yum install squid

dung instalasi enda hapus file squid.conf bas /etc/squid/, bas squid.conf enda me si tamaken file-file man konfigurasi squid enda ndai

rm -f /etc/squid/squid.conf

perban isi squid.conf ndai enggo si sasapken, sambari alu script i teruh enda

acl localnet src 10.0.0.0/8	# RFC1918 possible internal network
acl localnet src 172.16.0.0/12	# RFC1918 possible internal network
acl localnet src 192.168.0.0/16	# RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines
 
acl SSL_ports port 443
acl Safe_ports port 80		# http
acl Safe_ports port 21		# ftp
acl Safe_ports port 443		# https
acl Safe_ports port 70		# gopher
acl Safe_ports port 210		# wais
acl Safe_ports port 1025-65535	# unregistered ports
acl Safe_ports port 280		# http-mgmt
acl Safe_ports port 488		# gss-http
acl Safe_ports port 591		# filemaker
acl Safe_ports port 777		# multiling http
acl CONNECT method CONNECT
 
#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager
 
# Deny requests to certain unsafe ports
http_access deny !Safe_ports
 
# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports
 
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
 
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
 
# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost
 
# And finally deny all other access to this proxy
http_access deny all
 
# Squid normally listens to port 3128
http_port 3128
 
# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern -i (/cgi-bin/|\?) 0	0%	0
refresh_pattern .		0	20%	4320
cache_dir ufs /home/squid 4000 16 256

sope lenga i pedalan squid enda, ban lebe folder /home/squid perban bas jenda kari i simpan file-file statis squid ndai

mkdir /home/squid

ganti permission na gelahna banci i akses squid-ta kari

chown squid:squid -R /home/squid

enggo kenca dung tahap sidatas, masuk kita ku tahap akhir, generate folder-folder man nyimpan cachena ku /home/squid alu perintah

cd /home/squid; squid -z

Enggo dung tutorial erban Squid Proxy bas Fedora 18 enda ndai, adina make proxy enda atendu bas firefox carana
Klik Edit -> Preferences -> Advanced -> Network klik settings ban bagi gambar teruh enda
setting squid proxy fedora firefox

Tips-Tips Perintah Linux arah CLI

Perintah-perintah enda i ketikken arah CLI ras, adina lit si akapndu kurangna banci i tambahindu arah komentar bas teruh tulisen enda.

Cara pindah akses ku root :

su -

ntah pe

su

dung perintah si datas i ketik, tekan enter bas keyboard, dung e ketik passwordna
Meteh ndigan terakhir kita reboot :

last reboot | head -1

si ndarat ibas terminal mirip-mirip ras teruh enda

reboot   system boot  3.8.9-200.fc18.x Tue May 28 15:59 - 12:32  (-3:-26)

ntah pe alu perintah

who -b

sindarat bagi teruh enda

system boot  2013-05-28 15:59

Meteh piga jam enggo nggeluh komputerta, arah terakhir kali i reboot

uptime

tampilenna si ndarat

12:36:25 up  3:36,  5 users,  load average: 0.86, 1.09, 1.11

Meteh piga kalak si login bas komputerta

w

tampilenna

 12:36:22 up  3:36,  5 users,  load average: 0.94, 1.10, 1.11
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
sentabi  tty1      16:00     ?    13:24   0.08s /bin/sh /etc/xdg/xfce4/xinitrc
sentabi  pts/0     09:05    0.00s  0.17s  3.07s /usr/bin/Terminal
sentabi  pts/3     09:43    2:52m  0.09s  0.09s /bin/bash
sentabi  pts/4     09:50    2:45m  0.07s  0.01s ssh ikoer@xxxxx
sentabi  pts/5     10:34    3:37   0.11s  0.11s bash

Meteh piga memory si bas komputerta :

free -m

tampilenna si ndarat

             total       used       free     shared    buffers     cached
Mem:          5946       5780        166          0       1647        792
-/+ buffers/cache:       3339       2607
Swap:         5951          1       5950

Meteh processor si pake :

cat /proc/cpuinfo

contoh si ndarat

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 42
model name	: Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz
stepping	: 7
microcode	: 0x28
cpu MHz		: 800.000
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4390.30
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:
 
processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 42
model name	: Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz
stepping	: 7
microcode	: 0x28
cpu MHz		: 800.000
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4390.30
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:
 
processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 42
model name	: Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz
stepping	: 7
microcode	: 0x28
cpu MHz		: 800.000
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4390.30
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:
 
processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 42
model name	: Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz
stepping	: 7
microcode	: 0x28
cpu MHz		: 800.000
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4390.30
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

Hardware si terpasang bas komputerta

lspci

tampilenna si ndarat kurang lebih bagi teruh enda

00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 520M] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)
03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 06)

Erban repository Git bas Linux Debian

git pertamaku

Piga-piga layanen populer si make git emekap github.com ras bitbucket, aminna gia enggo lit layanen si bagenda rupana, me labo lit salahna adina siban ka server man git-ta sisada, ntah enda man keperlunta sekalak ntah pe man proyek internal, alu git enda, banci ka si backup ku piga-piga repository online langsung, jadi la perlu nari manual backup data-data proyekta enda, kecuali file databasena (tapi banci kang siban scriptna gelahna otomatis backup tiap x waktu sekali).

Man si langa meteh kerna git enda, banci cuba ogendu bas manual git. Ibas tutorial enda si ni pake emekap Debian 7, saja ban Debian 6 ntah Debian 5 pe banci erdalan.

Bas proses instalasi enda, si i perluken emekap koneksi internet ras komputer si enggo i install Debian 7. Buka terminal, login ku akun root

su -

dung ngetik perintah sidatas tekan enter, dung e ketikken password root-ndu.

Dung cara sidatas, gundari si install git enda ndai

apt-get install apache2 git-core nano gitweb -y

kenca bage pedalan service apache

/etc/init.d/apache2 restart

Dung erdalan service apache, buka alamat http://localhost/gitweb ntah pe http://127.0.0.1/gitweb adina la lit si salah, tampilenna kurang lebih bagi gambar si bas teruh enda
git repo

File konfigurasi gitweb enda bas

/etc/gitweb.conf

Misalken si ban alamat $projectroot (nen bas file sidatas) bas /var/www/proyek maka ganti gitweb.conf jadi bagi si teruh enda

$projectroot = "/var/www/proyek";

dung e restart apache

/etc/init.d/apache2 restart

buka mulihi alamat http://localhost/gitweb.

Dung tahap-tahap sidatas, simulai ka erban file git ta si pemena. Arah terminal denga, ketik

git config --global user.name "Atengena Br Surbakti"
git config --global user.email "atengenabr@surbakti.net"

ganti Atengena Br Surbakti alu gelarndu ras atengenabr@surbakti.net alu emailndu. Ban folder web bagi si enggo siban bas konfigurasina ndai.

mkdir /var/www/proyek

dung e, pindah ku /var/www/proyek

cd /var/www/proyek

ban folder man proyek mbaruta, misalken siban gelarna kai

mkdir kai

dung e struktur folder seharusna enggo bagi

#pwd
/var/www/proyek/kai

Pindah ku folder kai, ras ban sada file gelarna info.php

cd kai;
nano info.php

bas info.php enda ndai tamaken script bagi si teruh enda

<?php
phpinfo();
?>

dung e save, alu cara ctrl + x dung e tekan Y bas keyboard.

Gundari si ban repo gitna, ketik perintah

git init

hasilna si ndarat

Initialized empty Git repository in /var/www/proyek/kai/.git/

Ngubah deskripsi proyek enda banci salu cara, buka file .git/description

nano .git/description

ganti tulisen

Unnamed repository; edit this file 'description' to name the repository.

jadi misalken Git pertama bas serverku

Git pertama bas serverku

File info.php si ndai sibahan, lenga i tandai si git enda, gelahna i tandaina tambahken alu

git add info.php

dung e tambahken file info.php ndai ku web

git commit -a -m "file info.php gitta"

dung perintah sidatas i pedalan, ndarat me kurang lebih tulisen

 1 file changed, 3 insertions(+)
 create mode 100644 info.php

File info.php enggo masuk ku repositorita, banci cuba i cekndu arah http://127.0.0.1/gitweb/ tampilenna bagi gambar i teruh enda
git pertamaku

Sibar jem lebe tulisen enda, adina lit kritik, saran ntah kai lah gia banci tamakenndu ibas komentar teruh enda. Bujur.