Kamis, Mei 21, 2009

Fix Problem Dual Boot Debian Lenny and Windows

Today I try install Debian Lenny on my Laptop, but after all any problem with my windows partition, because grub loader cant load windows system.

To fix it i try search at google and found same problem, from that information I do this step :

According to review from distrowatch, that any criticall packages is not installed why Debian Lenny install, the packages is HAL ( Hardware Abstraction Layer ). This meant that removable media was not automatically mounted. Simply installing the hal package solved this problem.

Just run : ~#apt-get install hal

Next step edit /boot/grub/menu.lst at this row :

title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

became :

title Microsoft Windows XP Professional
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1
just look at italic text, root change with rootnoverify. after that reboot your system and viola... bootloader running well dan you can choose windows boot option.

Selasa, Mei 19, 2009

.htaccess to protect mrtg with password

At the time of installation such as MRTG on the last post, only the entry on stage to create the look, how authentifikasi not have time to access and this will be prone to keep confidential : D . . then can use to . htaccess to give a password. But this is the step to do, but before apache condition must exist and running well :)

First off all we create a user using the passwd and htpasswd, now under the command like this:

$htpasswd -c /etc/apache2/apache-users admin
New password:
Re-type new password:

With the command that will be made with the user name admin and passwd now and there will be a file apache-users, the-c option above is included if you first create a user and passwd to .htaccess.

Then, create a file. Direktory htaccess in you will be protected, in this case is:

/var/www/mrtg/.htaccess

and the contents therein should kata2 this:

AuthName “Rahasia Sendiri”
AuthType Basic
AuthUserFile /etc/apache/apache-users
require valid-user

and make sure permission. htaccess can be accessed by the user will access the mrtg and order .htaccess authentication credentials to be allowed to mrtg, so I must have edited in:

vim /etc/apache/httpd.conf

with the change in part:

AllowOverride none

to be:

AllowOverride AuthConfig

and after disave do not forget to restart apache it. authconfig different settings for the apache and apache2. After that please try to access it with mrtg write: http://myserver/mrtg

Kamis, Mei 07, 2009

Debian Social Contract with the Free Software Community

ebian, the producers of the Debian GNU/Linux system, have created the Debian Social Contract. The Debian Free Software Guidelines (DFSG) part of the contract, initially designed as a set of commitments that we agree to abide by, has been adopted by the free software community as the basis of the Open Source Definition.


Social Contract with the Free Software Community

  1. Debian will remain 100% free

    We provide the guidelines that we use to determine if a work is free in the document entitled The Debian Free Software Guidelines. We promise that the Debian system and all its components will be free according to these guidelines. We will support people who create or use both free and non-free works on Debian. We will never make the system require the use of a non-free component.

  2. We will give back to the free software community

    When we write new components of the Debian system, we will license them in a manner consistent with the Debian Free Software Guidelines. We will make the best system we can, so that free works will be widely distributed and used. We will communicate things such as bug fixes, improvements and user requests to the upstream authors of works included in our system.

  3. We will not hide problems

    We will keep our entire bug report database open for public view at all times. Reports that people file online will promptly become visible to others.

  4. Our priorities are our users and free software

    We will be guided by the needs of our users and the free software community. We will place their interests first in our priorities. We will support the needs of our users for operation in many different kinds of computing environments. We will not object to non-free works that are intended to be used on Debian systems, or attempt to charge a fee to people who create or use such works. We will allow others to create distributions containing both the Debian system and other works, without any fee from us. In furtherance of these goals, we will provide an integrated system of high-quality materials with no legal restrictions that would prevent such uses of the system.

  5. Works that do not meet our free software standards

    We acknowledge that some of our users require the use of works that do not conform to the Debian Free Software Guidelines. We have created contrib and non-free areas in our archive for these works. The packages in these areas are not part of the Debian system, although they have been configured for use with Debian. We encourage CD manufacturers to read the licenses of the packages in these areas and determine if they can distribute the packages on their CDs. Thus, although non-free works are not a part of Debian, we support their use and provide infrastructure for non-free packages (such as our bug tracking system and mailing lists).

So lets Free software with Debian...

Selasa, Mei 05, 2009

Install MRTG on Debian

http://www.menalto.com/gallery/d/42433-2/mrtg-pronto.png
Sample mrtg interface

Finally I can also install mrtg on debian Etch. Mrtg is Multi Router Traffik Grapher, namely the graph to see traffik can do through us in the router.

Need to install some of the previous packet, namely:

  1. Snmp dan Snmpd SNMP and Snmpd
  2. Mrtg Mrtg

The step-step of installation is:

Because with debian, installation easy to do with how to:

#apt-get install snmp, snmpd, mrtg and let the process run to complete ..

because there is already at cron, so I only do we:

cp /etc/mrtg.cfg /etc/mrtg.cfg.old
cfgmaker passpublic@localhost > /etc/mrtg.cfg
indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html

note :

passpublic is a community you have in /etc/snmp/snmpd.conf and make sure that snmpd is running well.

To check whether SNMP works correctly, run the following command:
snmpwalk -Os -c passpublic -v 1 localhost system

The above command will produce output like the following:

sysDescr.0 = STRING: Linux frigg 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686
sysObjectID.0 = OID: netSnmpAgentOIDs.10
sysUpTimeInstance = Timeticks: (29668961) 3 days, 10:24:49.61
sysContact.0 = STRING: admin
sysName.0 = STRING: jenmannii

root@jenmanni:~# vim /etc/snmp/snmpd.conf

I must be edited in the command:

#sec.name source community
com2sec readonly localhost public12
com2sec readonly 203.190.40.0/24 public23
com2sec readonly 192.168.11.1/32 public23
com2sec readonly 192.168.13.2/32 public23

#sec.model sec.name
group MyROSystem v1 paranoid
group MyROSystem v2c paranoid
group MyROSystem usm paranoid
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite

then restart snmp with the command:

root@tyr:~# /etc/init.d/snmpd restart

root@tyr:~# cfgmaker public12@localhost > /etc/mrtg.cfg

root@tyr:~# snmpwalk -Os -c public12 -v 1 localhost system

sysDescr.0 = STRING: Linux tyr 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 2005 i686
sysObjectID.0 = OID: netSnmpAgentOIDs.10
sysUpTimeInstance = Timeticks: (430) 0:00:04.30
sysContact.0 = STRING: Root (configure /etc/snmp/snmpd.local.conf)
sysName.0 = STRING: tyr
sysLocation.0 = STRING: Unknown (configure /etc/snmp/snmpd.local.conf)
sysORLastChange.0 = Timeticks: (1) 0:00:00.01
sysORID.1 = OID: ifMIB
sysORID.2 = OID: snmpMIB
sysORID.3 = OID: tcpMIB
sysORID.4 = OID: ip
sysORID.5 = OID: udpMIB
sysORID.6 = OID: vacmBasicGroup
sysORID.7 = OID: snmpFrameworkMIBCompliance
sysORID.8 = OID: snmpMPDCompliance
sysORID.9 = OID: usmMIBCompliance
sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
sysORDescr.3 = STRING: The MIB module for managing TCP implementations
sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
sysORDescr.5 = STRING: The MIB module for managing UDP implementations
sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
sysORUpTime.1 = Timeticks: (0) 0:00:00.00
sysORUpTime.2 = Timeticks: (1) 0:00:00.01
sysORUpTime.3 = Timeticks: (1) 0:00:00.01
sysORUpTime.4 = Timeticks: (1) 0:00:00.01
sysORUpTime.5 = Timeticks: (1) 0:00:00.01
sysORUpTime.6 = Timeticks: (1) 0:00:00.01
sysORUpTime.7 = Timeticks: (1) 0:00:00.01
sysORUpTime.8 = Timeticks: (1) 0:00:00.01
sysORUpTime.9 = Timeticks: (1) 0:00:00.01

root@tyr:~# cfgmaker public12@localhost > /etc/mrtg.cfg
root@tyr:~# indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html

than open file /etc/mrtg.cfg and at:

# to get bits instead of bytes and graphs growing to the right
Options[_]: growright, bits <<>

to test, mrtg running well, please open browser and type url : http://ip_address/mrtg.

the grow traffik run from left to right.

Senin, Mei 04, 2009

Dial Telkom Speedy ADSL with Debian

Some time there are problems with a modem with TPLINK, namely difficult to PPPoE mode and when it is successful the next difficulty is, when the modem is Dead, he can not autoredial itself, making the resetting with the manual.

Then show him the idea to try using the debian etch, to create the first live one block ip in the router interface in the other one with Modem, and make sure the modem can pinging from debian and the mode of modem is : BRIDGE

The next step is to prepare the packages do support for the process dial adslnya later, while in the package you should install are: pppoe and pppoeconf, installnya enough to run the command:

# apt-get install pppoe pppoeconf (* let the process continue and tetep kelarkan installation *).

Furthermore, if already installed the next step is to configurasi and run the pppoe dial speedynya experiment.

Configurasi file in: /etc/ppp/peers/dsl-provider, nah dsl-provider file in the backup so that when the first dial fail and can be repeated again.

# cd /etc/ppp/peers
# cp dsl-provider dsl-provider.ori

Now we try to do configurasi internet connection, there are some things I needed to help expedite the process of installation, including:

  1. Login name given by ADSL Provider (Speedy).
  2. Password that's also from ADSL Provider (Speedy).
  3. If more than 2 interfaces ensure speedy interface you which direction and when the modem to dial UTP is connected.

Run 'pppoeconf' I have in/usr/sbin:

# cd /usr/sbin #
# pppoeconf # Pppoeconf

* if interface more than one he will choose the interface where you connect to the modem *

Live in only enter Yes, the device will scan information:

If detected you have a modem connected, the display will appear below:

Living in yes, a notification will appear again:

There is a notification message back, as follows:

The next step is to form fill user and passwd fromADSL Provider (Speedy).

view the content of password:

Well here DNS provides the option to add the DNS Speedy in / etc / resolv.conf and then restart each resolv akan still filled by DNS from speedy, that trouble you here I met when I want to make a connection between loadbalance Speedy with a wisp, as they can not rule created a local DNS manually and can not be in the perfect configuration, but if the debian pc to normal, this is not a problem :) . .


Just chooseYes on the recommendations.

Then there will be a message for the packet size, what if you want to stay in default then yes :

Next message mengenable redeal for speedy restart each debiannya:

The next message you need to be, below:

It is finished configurasi dial speedynya, and does not need to do the same because it has automatic redial speednya.

To prove there is not connection speednya, can diliat with the command:

# ip a or ifconfig

at interface list now we have interface with the name: ppp0, nah this is pppoenya interface.

Sabtu, Mei 02, 2009

Wifi Radar : Scan your Free hotspot

For linux dekstop at laptop, now we can use wireless interface to surf internet, much free hotspot area that we can use and happying browsing.

For scanning and show wireless hotspot signal you can use tools named : Wifi radar.

WiFi Radar is a Python/PyGTK2 utility for managing WiFi profiles on GNU/Linux.

It enables you to scan for available networks and create profiles for your preferred networks. You can drag and drop your preferred networks to arrange the profile priority.

WiFi Radar is tested to work with D-Link AirPlus G on Slackware 12.2 but should work just the same for any iwconfig interface. To use WiFi Radar you need to have the following:
If your laptop running with Debian, Ubuntu, LinuxMint or Operating system similar Debian base, you just install it with apt-get option, like this :

~# apt-get install wifi-radar

Feel free to wait till installing finished, after that you can run at gnome menu - Internet - Wifi Radar, or at console just run :

~# wifi-radar.

and will appear this menu list :

Jumat, Mei 01, 2009

Lin-X : Linux Like MacOs


Lin-X is an Ubuntu-based Linux distribution themed like Apple's Mac OS X. It shares the same repositories and update manager, along with the release dates. Unlike other Linux distributions, Lin-X comes jam-packed with loads of "i-candy". It comes with the Compiz Fusion customised and ready to go, providing outstanding graphics right after installation. Lin-X is fully functional when booting from the live DVD and runs fast without losing any features.

Lin-X is an OS based off of the most popular Linux distribution, Ubuntu.

Lin-X looks like Mac OSX and shares many of the same features. With Lin-X you get the security and stability of Ubuntu with the feel of OSX.

Because Lin-X is based off of Ubuntu it shares the same repositories and update manager, along with the release dates Unlike other Linux distributions Lin-X comes jam-packed with loads of “i-candy”.

It is one of the only OS that comes with the Compiz Fusion customized and ready to go right out of the box, giving you outstanding graphics right after installation. Lin-X is fully functional when booting from the live DVD and runs blazingly fast without loosing any features.

Lin-X is free to download off the web with only $15(USD) support (which enters you into the giveaway) and $20 (USD) for us to send you a DVD.

If you want try this OS, you can click here to download.