Tuesday, July 7, 2015

Indonesia Debian Repository (Wheezy)

Instruction
1. copy this configuration to /etc/apt/sources.list
2. choose only one from the options, depend on your location and server availability
3. commented not used options

Configuration source
# do not change
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# option 1
deb http://kambing.ui.ac.id/debian/ wheezy main
deb-src http://kambing.ui.ac.id/debian/ wheezy main
deb http://kambing.ui.ac.id/debian/ wheezy-updates main
deb-src http://kambing.ui.ac.id/debian/ wheezy-updates main

# option 2
#deb http://kartolo.sby.datautama.net.id/debian/ wheezy main
#deb-src http://kartolo.sby.datautama.net.id/debian/ wheezy main
#deb http://kartolo.sby.datautama.net.id/debian/ wheezy-updates main
#deb-src http://kartolo.sby.datautama.net.id/debian/ wheezy-updates main

# option 3
#deb http://kebo.pens.ac.id/debian/ wheezy main
#deb-src http://kebo.pens.ac.id/debian/ wheezy main
#deb http://kebo.pens.ac.id/debian/ wheezy-updates main
#deb-src http://kebo.pens.ac.id/debian/ wheezy-updates main

# option 4
#deb http://suro.ubaya.ac.id/debian/ wheezy main
#deb-src http://suro.ubaya.ac.id/debian/ wheezy main
#deb http://suro.ubaya.ac.id/debian/ wheezy-updates main
#deb-src http://suro.ubaya.ac.id/debian/ wheezy-updates main

# option alternate 
#deb http://http.debian.net/debian wheezy main
#deb-src http://http.debian.net/debian wheezy main
#deb http://http.debian.net/debian wheezy-updates main
#deb-src http://http.debian.net/debian wheezy-updates main

# Debian 7 (flash player adobe)
#deb http://ftp.de.debian.org/debian wheezy main contrib

# Non Free Repository
deb http://ftp.de.debian.org/debian wheezy main non-free

Installing XFCE4 on Debian Wheezy x64

The steps to install XFCE4 on Debian Wheezy x64 are:
  1. To install Xfce, do the following
    # apt-get install xfce4
  2. There are many useful utilities that come with Xfce, to install these
    # apt-get install xfce4-goodies
  3. You also can install xdm to login in start Xfce
    # apt-get install xdm

Configuring LAN in Debian 7 x64 Minimal CLI Only

For dynamic ip address (DHCP), edit file /etc/network/interfaces, add these lines:
auto eth0
iface eth0 inet dhcp
For static ip address, edit file /etc/network/interfaces, add these lines:
auto eth0
iface eth0 inet static
  address 192.168.1.11 -> change with your lan
  netmask 255.255.255.0 -> 
change with your lan
  gateway 192.168.1.1 -> 
change with your lan
  
dns-nameservers 8.8.8.8, 8.8.4.4 -> change or add with your name server
Restart your network service run:
# /etc/init.d/networking restart 

Personal linux command references (Debian command)

Note: these are command references for personal usage, you may use them as references freely with your own responsible. No warranty for any damages causing bay these references.

To show model

# dmidecode -s system-version
IdeaPad Gaming 3 15ARH7
16GB DDR5-4800 each slot manufacture tested

To show ram slot

# lshw -class memory
or
# dmidecode -t memory
dmidecode show maximum memory

Using ssh : remote to server using secure channel

$ ssh -l [user_name] [servername_or_ip]
scp : upload to server using secure channel (secure copy)
$ scp [file_source_to_upload] [user_name]@[servername_or_ip]:[full_path_destination_folder]

Using tar.gz 

To compress
$ tar -cvf [file_name.tar] [folder_to_archive]
To decompress from tar.gz
$ tar -xvf [file_name.tar]
$ tar -czvf BoyerMoore.tar.gz  ./BoyerMooreCopyPaste

Using p7zip

decompress
$ p7zip -d ./Kramaning.4.3.7z
compress folder
$ 7z a kramaning.7z ./Kramaning/*

Restart lightdm xfce desktop server

# systemctl start lightdm
# systemctl status lightdm


Install apt-cacher-ng

Server configuration and test
Install apt-cacher-ng
 # apt-get install apt-cacher-ng
Check your server using browser and enter URL 
http://localhost:3142/apt-cacher

Client configuration
Configure apt by creating a new file 01proxy at directory /etc/apt/apt.conf.d/ and add a line Acquire::http::Proxy "http://<IP address or hostname of the apt-cacher server>:3142";
For example, file /etc/apt/apt.conf.d/01proxy contain:
Acquire::http { Proxy "http://192.168.1.10:3142"; };