Browsing the archives for the ai-tee category.

SSH Server Administration

linux, server

Having several Linux Servers, SSH access is mandatory communication between me and those servers. These are several tips for SSH Server administration that save the day:

Add these line on /etc/ssh/sshd_config:

  • Allow only specific user (never use root login for remote SSH access)
    AllowUsers username
    DenyUsers All
  • Disable DNS and GSSAPI (solving slow login respond, especially from private network)
    UseDNS no
    GSSAPIAuthentication no

Make sure to restart SSH service after changing sshd_config:

# service ssh restart

or

# /etc/init.d/ssh restart

Additional tip:

  • Add this options on /etc/resolv.conf (solving slow login respond on RHEL/CentOS)
options single-request-reopen

Source:

http://injustfiveminutes.com/2013/03/13/fixing-ssh-login-long-delay/

Comments Off on SSH Server Administration

SquidAnalyzer Installation

linux, server

Environment:
– Linux Debian 7.7 (amd64)
– Squid Cache 3.1.20

Preparation:
– Download SquidAnalyzer-6.1 from http://sourceforge.net/projects/squid-report/

Installation:

# tar -zxvf squidanalyzer-6.1.tar.gz
# cd squidanalyzer-6.1
# perl Makefile.PL
# make
# make install
# vim /etc/apache2/sites-enabled/000-default
    ...[add to 000-default file]...
        <Directory /var/www/squidanalyzer>
            Options -Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    ...[add to 000-default file]...
# service apache2 restart
# /usr/local/bin/squid-analyzer
# crontab -e
    ...[edit crontab]...
    0 2 * * * /usr/local/bin/squid-analyzer > /dev/null 2>&1
    ...[edit crontab]...

Note:
– use .htaccess to protect page

Source:
http://squidanalyzer.darold.net/install.html

Comments Off on SquidAnalyzer Installation

SARG (Squid Analysis Report Generator) Installation

linux, server

Environment:
– Linux Debian 7.7 (amd64)
– Squid Cache 3.1.20

Preparation:
– Get the latest update from repository #apt-get update

Installation:

# apt-get install sarg
# vim /etc/sarg/sarg.conf
    ...[edit sarg.conf]...
    access_log /var/log/squid3/access.log
    date_format e
    overwrite_report yes
    output_dir /var/www/sarg
    ...[edit sarg.conf]...
# /usr/bin/sarg -x
# crontab -e
    ...[edit crontab]...
    0 2 * * * /usr/bin/sarg -x
    ...[edit crontab]...

Note:
– Open http://Server-IP-Address/sarg to operate SARG

Source:
http://www.tecmint.com/sarg-squid-analysis-report-generator-and-internet-bandwidth-monitoring-tool/

Comments Off on SARG (Squid Analysis Report Generator) Installation

Bug in Zimbra 8.5.0 GA

server

Zimbra 8.5.0 GA has bug that can make WebApp Service won’t start.
Solution can be met with these steps:

$ zmprov -l ms `zmhostname` +zimbraServiceEnabled service
$ zmprov -l ms `zmhostname` +zimbraServiceEnabled zimbra
$ zmprov -l ms `zmhostname` +zimbraServiceEnabled zimbraAdmin
$ zmprov -l ms `zmhostname` +zimbraServiceEnabled zimlet
$ zmmailboxdctl restart

Source:
https://bugzilla.zimbra.com/show_bug.cgi?id=95265

Comments Off on Bug in Zimbra 8.5.0 GA

Root Samsung Galaxy Note 8 N5100 (4.4.2 KitKat Firmware)

android

How to Root Samsung Galaxy Note 8 GT-N5100 (4.4.2 KitKat Firmware):

1. Files needed

  • USB Driver
    http://downloadcenter.samsung.com/content/SW/201410/20141017131240597/SAMSUNG_USB_Driver_for_Mobile_Phones.exe
  • CF-Auto-Root Package (for Samsung GT-N5100)
    http://download.chainfire.eu/317/CF-Root/CF-Auto-Root/CF-Auto-Root-kona3g-kona3gxx-gtn5100.zip
  • Odin3
    (included in CF-Auto-Root Package)

2. Preparation

  • [on Note8] Enable USB Debugging
    Settings => About Device => Tap “Build Number” repeatedly (7 times)
    [Developer Options Menu will appear]
    Settings => Developer Options => USB Debugging [enabled]
  • [on Note8] Check battery percentage
    At least 50% remain
  • [on PC] Install USB Driver

3. Rooting:

  • [on PC] Extract CF-Auto-Root-kona3g-kona3gxx-gtn5100.zip
  • [on PC] Run Odin3-v3.07.exe
    From CF-Auto-Root-kona3g-kona3gxx-gtn5100.zip extraction
  • [on Note8] Reboot Note8 to Download Mode
    Press “Volume Down + Home + Power” buttons until “Warning!!” screen appear
    Press “Volume Up” to continue
  • [on PC] Plug Note8 to PC with USB Data Cable
    Make sure Odin3 detect Note8 by “Added!!” message appear
  • [on Odin3] Press “PDA” button in Odin3
    And select CF-Auto-Root-kona3g-kona3gxx-gtn5100.tar.md5 file from CF-Auto-Root-kona3g-kona3gxx-gtn5100.zip extraction
  • [on Odin3] Press “Start”
    Flashing kernel started
  • [on Note8] Note8 will be rooted and reboot
    Unplug USB Data Cable
    After Note8 start, check that SuperSU has been installed
    Check with Root Checker application
  • Congratulation, Note8 has been rooted successfully

Source:

http://androidcentral.us/2014/05/root-galaxy-note-8-0-n5100-4-4-2-kitkat/

http://www.wugfresh.com/faq/6/

 

Comments Off on Root Samsung Galaxy Note 8 N5100 (4.4.2 KitKat Firmware)

Winbox on Linux Debian 7 Wheezy

linux, mikrotik

Winbox on Linux Debian 7 Wheezy 64bit

1. Install Wine
For amd64 Linux-Distro

# dpkg --add-architecture i386
# apt-get update
# apt-get install wine-bin:i386

For i386 Linux-Distro

# apt-get install wine

2. Download WinBox

# wget http://www.mikrotik.com/download/winbox.exe

3. Run WinBox

# wine winbox.exe

Sumber:
http://mikrotikindo.blogspot.com/2013/07/cara-menjalankan-winbox-mikrotik-Linux-Mint-ubuntu.html
http://opensource.telkomspeedy.com/wiki/index.php/Menjalankan_winbox.exe_di_Linux

Comments Off on Winbox on Linux Debian 7 Wheezy

Intel Wireless Driver on Debian 7 Wheezy

linux

1.Idenfity Wireless Card

# lspci -nn | grep Wireless
06:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection [8086:4237]


2. Add “non-free” component to repository

# echo "deb http://http.debian.net/debian/ wheezy main contrib non-free" >> /etc/apt/sources.list


3. Install firmware-iwlwifi

# apt-get update && apt-get install firmware-iwlwifi


4. Load module iwlwifi

# modprobe -r iwlwifi ; modprobe iwlwifi

Source:
https://wiki.debian.org/iwlwifi
https://wiki.debian.org/HowToIdentifyADevice/PCI
https://wiki.debian.org/WiFi

Comments Off on Intel Wireless Driver on Debian 7 Wheezy

Debian Wheezy Repository

linux

Debian 7 (Wheezy) Repository Indonesia

# security
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

# kambingUI
deb http://kambing.ui.ac.id/debian/ wheezy main contrib non-free
deb-src http://kambing.ui.ac.id/debian/ wheezy main contrib non-free
deb http://kambing.ui.ac.id/debian/ wheezy-updates main contrib non-free
deb-src http://kambing.ui.ac.id/debian/ wheezy-updates main contrib non-free

# keboVLSM
deb http://kebo.vlsm.org/debian/ wheezy main contrib non-free
deb-src http://kebo.vlsm.org/debian/ wheezy main contrib non-free
deb http://kebo.vlsm.org/debian/ wheezy-updates main contrib non-free
deb-src http://kebo.vlsm.org/debian/ wheezy-updates main contrib non-free

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

Source:
http://www.garasiku.web.id/igam/index.php/debian-micro-tips/35-indonesia-debian-repository
http://dnaite.blogspot.com/2013/06/daftar-mirror-repository-lokal-debian-7.html

Comments Off on Debian Wheezy Repository

SSH Server di BackTrack 5

linux

Cara menyalakan SSH Server di Backtrack 5:

1. Berikan password untuk user root
# passwd

2. Generate SSH keys
# sshd-generate

3. Jalankan SSH
# /etc/init.d/ssh start

Catatan: user root sejatinya tidak direkomendasikan untuk bisa akses remote.

Sumber: http://www.backtrack-linux.org/wiki/index.php/Basic_Usage

No Comments

Recover Word Deleted File

ai-tee

Beberapa bulan ini sibuk dengan mengisi Borang Akreditasi Program Studi dari BAN-PT.
Malam ini lembur mengisi bagian-bagian yang masih belum sempurna.
Saat mau pulang dan simpan file versi terakhir, ternyata saya malam menimpa versi terbaru dengan versi 6 jam sebelumnya.
Wah wah wah, kerjaan 6 jam jadi terbuang sia-sia…

Akhirnya inget program GetDataBack for NTFS, dicoba deh untuk recovery dan perlu 2 jam.
Sambil menunggu, cari-cari tutorial dan ternyata ada cara yang jauh lebih singkat dengan mencari file backup dari MS Word di folder

C:\Users\*YOURUSER*\AppData\Roaming\Microsoft\Word

Ada banyak file *.wbk yang merupakan file hasil autorecovery dari MS Word.
Langsung saya sort by “Date modified” dan buka yang terbaru, YES… ketemu deh file yang tadi tertimpa.
Setelah save-as file .wbk tersebut jadi .docx kembali, saya bisa pulang dengan tenang.
Ah, ternyata autorecovery yang kadang menjengkelkan karena sering menginterupsi pekerjaan, sesekali memang sangat berguna 😀

Sumber: http://superuser.com/questions/107143/how-to-open-recovered-files-in-word

No Comments
« Older Posts
Newer Posts »