jump to navigation

Install pico editor and set as default editor through CentOS Maret 22, 2012

Posted by septafiansyah in CentOs, Linux Networking.
Tags: , , ,
add a comment

Ussualy for editing configuration at command line interface on linux server i’m using pico as favorite editor :D . Because pico editor is the best and simple editor for me. Many people around me are using pico instead too of other editor like vim which come with centos.

As you know, pico is not come together with centos and you may refer to this article and apply to your server.
yum install nano
cd /usr/bin/
ln -s nano pico
export EDITOR=”pico”

Now, try to pico and you will be able to use it. And pico can be using on My CentOs :D

Task Manager On Ubuntu-Server Februari 15, 2012

Posted by septafiansyah in Linux, Linux Networking, UPT- Puskom.
Tags: , , , , ,
add a comment

Selamat pagi rekan- rekan semua, kali ini saya akan mendokumentasikan tulisan saya, maaf tulisan ini sebenernya saya buat agar tidak lupa sama tools yang saya baru jumpai  ini :D ,

Kebetulan saya membutuhkan tools yang digunakan untuk memantau penggunaan memory dan proccesor pada CLI based, dan berjumpalah saya dengan namanya HTOP

definisi : This is htop, an interactive process viewer for Linux. It is a text-mode application (for console or X terminals) and requires ncurses.

nah itulahan mukadimah mengenai HTOP, lanjut ke proses intalasai :

root@web1:~# apt-get install htop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  htop
0 upgraded, 1 newly installed, 0 to remove and 64 not upgraded.
Need to get 58.7 kB of archives.
After this operation, 209 kB of additional disk space will be used.
Get:1 http://id.archive.ubuntu.com/ubuntu/ natty/universe htop i386 0.9-2 [58.7 kB]
Fetched 58.7 kB in 14s (3,940 B/s)
Selecting previously deselected package htop.
(Reading database ... 50446 files and directories currently installed.)
Unpacking htop (from .../archives/htop_0.9-2_i386.deb) ...
Processing triggers for man-db ...
Setting up htop (0.9-2) ...

selesai proses instalasi nya, jika ingin menggunakannya ketikan htop pada terminal anda ,

SNMP on Ubuntu 11.04 Januari 13, 2012

Posted by septafiansyah in Linux, Linux Networking, UPT- Puskom.
Tags: , , ,
add a comment

Introduction

SNMP is the Simple Network Management Protocol. You’ll find it on the more expensive routers, switches, and gadgets. It can allow you to keep an eye on various machines with tools like Nagios and Cacti. Watch for spikes of network activity, see how much memory is used in a day’s time, or do some customization and compare spams to hams.

A workstation can be watched, too. And that’s what I hope to show here.

I’m assuming you have a Dapper or Feisty release of Ubuntu, or something similar. This isn’t an involved project, it’s just hard to find a basic installation technique in one place. It’s hoped for this to be your starting point with SNMP, not an ending point.

Installing the software

root@ibsen:~# sudo apt-get install snmpd
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libmpich1.0gf libdc1394-22 genisoimage linux-headers-2.6.27-7 libgfortran2 dvd+rw-tools linux-headers-2.6.27-7-generic libcarp-clan-perl libxml-xql-perl libparse-yapp-perl
  rdate python-xml localechooser-data gcc-4.2-base libimage-size-perl libdebconfclient0 libvisual-0.4-0 libmyth-python perlmagick libvisual-0.4-plugins libavdevice52
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libperl5.10 libsensors3 libsnmp-base libsnmp15
Suggested packages:
  lm-sensors
The following NEW packages will be installed:
  libperl5.10 libsensors3 libsnmp-base libsnmp15 snmpd
0 upgraded, 5 newly installed, 0 to remove and 3 not upgraded.
Need to get 2463kB of archives.
After this operation, 7987kB of additional disk space will be used.
Do you want to continue [Y/n]?

answer y

2. Configuration

backup existing /etc/snmp/snmpd.conf configuration file to /etc/snmp/snmpd.conf.org

cp /etc/snmp/snmpd.conf  /etc/snmp/snmpd.conf.org

Create a new /etc/snmp/snmpd.conf file:

rocommunity  public
syslocation  "Gedung Analisis, Datacentre- UPT Puskom"
syscontact   septa@polinela.ac.id

Uncheck comment

agentAddress udp:161,udp6:[::1]:161

Make snmpd use the newly created file and make it listen to all interfaces:

Edit /etc/default/snmpd

Change from:

# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'

To:

# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'

and restart snmpd

/etc/init.d/snmpd restart

3. Test

Do a snmpwalk from another host against your newly configured host.

[root@op5 ~]  snmpwalk -c public -v1 192.168.1.12 | less
SNMPv2-MIB::sysDescr.0 = STRING: Linux ibsen 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (68869) 0:11:28.69
SNMPv2-MIB::sysContact.0 = STRING: septa@polinela.ac.id
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip

Yes it works!!

Install Webmin on Ubuntu 11.10/11.04 Server Desember 2, 2011

Posted by septafiansyah in Linux, Linux Networking, UPT- Puskom.
Tags: , , ,
add a comment

Webmin is a web-based interface based on Perl for system administration under Unix-based systems. With Webmin, you can easily set up, via your web browser, new user accounts, manage disk quotas, configure files, control the Apache server as well as MySQL and PHP. In this guide, we will see how to install Webmin on a server running Ubuntu 11.04 or 11.10.

Webmin Installation

Before we start, you should first install the LAMP web server on your system. Now follow these instructions to install Webmin on Ubuntu 11.10/11.04:

1. Open the Terminal and run this command:

sudo gedit /etc/apt/sources.list

At the end of the file, add these two lines, then save and close:

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

2. Import now the GPG key using these commands:

wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc
sudo apt-get update

3. Install now Webmin with this command:

sudo apt-get install webmin

Accessing Webmin

To start Webmin, open this address using your web browser:

https://ubuntu:10000/

To login to webmin, you need to use your root account details. If you still haven’t assigned a password to your root account, then create a root password using this command via the terminal:

sudo passwd

Enter a new password, then resubmit it to confirm. Then use your root account access details to login to webmin.

Refrence  : http://www.upubuntu.com/2011/09/how-to-install-webmin-on-ubuntu.html

Lupa password root???whatsss September 22, 2011

Posted by septafiansyah in Linux, Linux Networking.
Tags: , , ,
add a comment

ente admin ,trus lupa password root nya??tested on ubuntu server ,..keturunan debian,..jadi di debian sama aja kali ya :D

 

1.booting server dg mengunakan live cd

2.masuk console dan buatlah folder dg cara

mkdir  mnt/septa

3.ketik fdisk -l ( untuk melihat disk yg akan di mount ), pergunakan feeling anda   mana partisi linux anda yang menjadi /root sebelumnya :D

4. ketik: mount /dev/hda1 /mnt/septa tekan enter

5. chroot /mnt/septa  tekan enter

6. ketik: passwd root enter lalu masukan password yg baru.

 

beresssss :D

Ikuti

Get every new post delivered to your Inbox.