tag:blogger.com,1999:blog-281202262024-03-08T22:35:42.267+05:30Sharing ICT experiencesArindamhttp://www.blogger.com/profile/11474043610074262212noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-28120226.post-6055986144382374872011-03-11T23:00:00.001+05:302011-03-11T23:03:42.601+05:30Red Hat Enterprise Linux 6 display problem with nVidia Graphics<div dir="ltr" style="text-align: left;" trbidi="on">We had installed Red Hat Enterprise Linux 6 Client Edition for testing and found out that display wouldn't come sometimes. The system had a nVidia Graphics Chipset (GeForce 6150). We found that there was some problem with the nouveau driver in the kernel. After many trial and error, we solved the problem in following steps :-<br />
<br />
Step 1 :- Edit the file /etc/grub.conf<br />
<br />
Step 2 :- To disable the nouveau driver in the kernel, add with a space <b>rdblacklist=nouveau </b>at last to the line beginning with the word <b>kernel</b>. <br />
<br />
Step 3 :- Download the latest driver for your chipset from <a href="http://nvidia.com/">nvidia.com</a>. We got ours at <a href="http://www.nvidia.co.in/object/linux-display-ia32-260.19.44-driver-in.html">http://www.nvidia.co.in/object/linux-display-ia32-260.19.44-driver-in.html</a> You can check first from <b>Supported products</b> tab of the link whether your product is supported by the driver we used for our desktop.<br />
<br />
Step 4 :- After you have downloaded the file <code class="filename">NVIDIA-Linux-x86-260.19.44.run</code>, change to the directory containing the downloaded file, and as the <code class="systemitem">root</code> user run the executable:<br />
# cd yourdirectory<br />
# sh NVIDIA-Linux-x86-260.19.44.run<br />
<pre class="screen" style="text-align: left;"> </pre>Step 5 :- After the installation, reboot the machine and hopefully the display will start functioning normally.<br />
<br />
<br />
</div>Arindamhttp://www.blogger.com/profile/11474043610074262212noreply@blogger.com0tag:blogger.com,1999:blog-28120226.post-64598976253491591622010-04-19T17:51:00.007+05:302010-04-23T23:19:16.780+05:30Running wireless internet services of BSNL/Airtel/Idea using Huawei E156G 3g Wireless USB Modem (Dongle) on Red Hat Enterprise Linux 5 (RHEL 5)<div style="font-family: Arial,Helvetica,sans-serif; text-align: justify;"><span style="font-size: small;">Huawei E156G 3G Wireless HSDPA USB modems (dongles) are very easy to install in Windows Operating System but many may find it difficult to operate it in Red Hat Enterprise Linux Client Edition 5.x. These dongles whether it comes packaged with BSNL, Airtel or Idea simcards are generally Huawei E156G Wireless USB 3G Modems.</span></div><div style="font-family: Arial,Helvetica,sans-serif; text-align: justify;"><span style="font-size: small;">Whenever we plugin the dongle in a system installed with Red Hat Enterprise Linux 5.x, it will recognize it as a disk drive. The kernel 2.6.18-x available with Red Hat Enterprise Linux is not able to recognize it as a modem (it can be checked using the command lsusb ). The kernel version 2.6.20 or higher have the capability to recognize it as a modem. Operating System like Ubuntu 9.10 and Fedora 11 have kernel version higher than 2.6.20 and these modems are detected smoothly in these OS. So what do we do? I have created a small and simple step by step guide for the impatient lot who can't wait for RHEL version 6 to release. Simply follow the steps below to recompile the kernel and use the wireless modem :-</span></div><div style="font-family: Arial,Helvetica,sans-serif;"><br />
</div><div style="font-family: Arial,Helvetica,sans-serif; text-align: justify;"><div style="text-align: justify;"><span style="font-size: small;"><u>Step 1</u>:- Login into the system as root and goto <a href="http://www.kernel.org/">www.kernel.org</a> and download the kernel version 2.6.27.46</span></div><div style="text-align: justify;"><span style="font-size: small;"><u>Step 2</u>:- Make sure that the package ncurses-devel, gcc, wvdial and kppp are installed.</span></div><span style="font-size: small;"><u>Step 3</u>:- Copy the linux-2.6.27.46.tar.bz2 file to /usr/src</span><br />
<span style="font-size: small;"><u>Step 4</u>:- Issue the command in terminal:- tar jxvf linux-2.6.27.46.tar.bz2 to untar and uncompress the file in the directory /usr/src</span><br />
<span style="font-size: small;"><u>Step 5</u>:- Goto the directory using cd </span><span style="font-size: small;">in terminal /usr/src/linux-2.6.27.46 and issue the command:- make menuconfig</span><br />
<span style="font-size: small;"><u>Step 6</u>:- Just save and come out and issue the command </span><span style="font-size: small;">in terminal :- make</span><br />
<span style="font-size: small;"><u>Step 7</u>:- Issue the command </span><span style="font-size: small;">in terminal:- make modules</span><br />
<span style="font-size: small;"><u>Step 8</u>:- Issue the command </span><span style="font-size: small;">in terminal:- make modules_install</span><br />
<span style="font-size: small;"><u>Step 9</u>:- Issue the command </span><span style="font-size: small;">in terminal:- make install</span><br />
<span style="font-size: small;"><u>Step 10</u>:- Reboot the system and you will see the new kernel appear in the grub bootloader list. Select the new kernel and boot.</span><br />
<span style="font-size: small;"><u>Step 11</u>:- Login as root user and plugin in the Huawei USB wireless modem (the dongle).</span><br />
<span style="font-size: small;"><u>Step 12</u>:- Issue the command </span><span style="font-size: small;">in terminal:- lsusb to view the device trail. You will find that OS has started detecting the dongle as a modem.</span><br />
<span style="font-size: small;"><u>Step 13</u>:- You will see that a device named ttyUSB0 is created in the folder /dev</span><br />
<span style="font-size: small;"><u>Step 14</u>:- At this stage we can use either wvdial or kppp program to connect to internet. You have to open a terminal each time to use wvdial whereas kppp is GUI based and has a neat graphical statistics display. Choice is yours.</span><br />
<br />
<span style="font-size: large;"><span style="font-weight: bold;">Using wvdial</span></span><br />
<span style="font-size: small;"><u>Step 15 (a)</u>:- Issue the command in terminal:- wvdial and you will see that the modem is detected.</span><br />
<span style="font-size: small;"><u>Step 15 (b)</u>:- </span><span style="font-size: small;">Issue the command in terminal:- wvdialconf /etc/wvdial.conf</span><br />
<span style="font-size: small;"><u>Step 15 (c)</u>:- Edit the file wvdial.conf in /etc folder using gedit or vi editor</span><br />
<span style="font-size: small;"><u>Step 15 (d)</u>:- Uncomment the lines having Phone, Username and Password by removing ;</span><br />
<span style="font-size: small;"><u>Step 15 (e)</u>:- </span><span style="font-size: small;">Change the Phone to *99#</span><br />
<span style="font-size: small;"><u>Step 15 (f)</u>:- Change the Username and Password to dummy or anything you like </span><span style="font-size: small;">as it doesn't authenticate with these parameters but it should be there.</span><br />
<span style="font-size: small;"><u>Step 15 (g)</u>:- Add a line below Init2 like:- Init3 = AT + CGDCONT=1,"IP","bsnlnet"</span><br />
<span style="font-size: small;">Note :- For Idea replace "bsnlnet" with "internet" and for Airtel replace "bsnlnet" with "airtelgprs".</span><br />
<br />
<br />
<span style="font-size: large;"><span style="font-weight: bold;">Using KPPP</span></span><br />
<span style="font-size: small;"><u>Step 16 (a)</u>:- Goto Applications -> Internet -> KPPP (Start KPPP)</span><br />
<span style="font-size: small;"><u>Step 16 (b)</u>:- Click on Configure and goto Modems and Select New</span><br />
<span style="font-size: small;"><u>Step 16 (c)</u>:- Give a new Modem name say 'Huawei'</span><br />
<span style="font-size: small;"><u>Step 16 (d)</u>:- Select Modem device as /dev/ttyUSB0</span><br />
<span style="font-size: small;"><u>Step 16 (e)</u>:- Select Connection Speed as 9600 bauds</span><br />
<span style="font-size: small;"><u>Step 16 (f)</u>:- Now goto Modem tab and click on Query Modem and you will see that the modem responds. Close the window.</span><br />
<span style="font-size: small;"><u>Step 16 (g)</u>:- Now click the Modem Commands button and for using BSNL services put the the following string in Initialization string 2 :- </span><span style="font-size: small;">AT + CGDCONT=1,"IP","bsnlnet"</span><span style="font-size: small;">. For Airtel services simply replace "bsnlnet" with </span><span style="font-size: small;">"airtelgprs" </span><span style="font-size: small;">and for Idea services replace the string "bsnlnet" with "internet". Press OK and come out.</span><br />
<span style="font-size: small;"><u>Step 16 (h)</u>:- Now goto Accounts tab and select New.</span><br />
<span style="font-size: small;"><u>Step 16 (i)</u>:- Select Manual Setup</span><br />
<span style="font-size: small;"><u>Step 16 (j)</u>:- Give a name to the new connection say 'BSNL'</span><br />
<span style="font-size: small;"><u>Step 16 (k)</u>:- Besides the Phone Number text box use the Add button to add a phone number as *99#</span><br />
<span style="font-size: small;"><u>Step 16 (l)</u>:- Put any value in Username and Password as it does not authenticate with these parameters. </span><span style="font-size: small;"><br />
</span><br />
<span style="font-size: small;"><u>Step 16 (m)</u>:- Save the configuration by pressing OK and click on Connect to use.</span><br />
<br />
<span style="font-size: small;">Thats it! Enjoy surfing internet!</span><br />
<br />
<br />
<span style="font-size: large;"><span style="font-weight: bold;">Disadvantages of using the technique of compiling new kernel :-</span></span></div><div style="font-family: Arial,Helvetica,sans-serif; text-align: justify;"><div style="text-align: justify;"><span style="font-size: small;">1. The system becomes slow as it is not an optimized kernel and may take more time to boot.</span><br />
<span style="font-size: small;">2. You may get 'no buffer' error while using any terminal command. Maybe some options have to be selected while using menuconfig which I have not figured out yet. (Any help will be appreciated).</span></div><span style="font-size: small;"><b></b></span></div>Arindamhttp://www.blogger.com/profile/11474043610074262212noreply@blogger.com0tag:blogger.com,1999:blog-28120226.post-7838728595937463242008-05-31T15:03:00.000+05:302008-05-31T15:04:19.473+05:30MySql 5 wouldn’t start in Fedora Core 4 with selinux enabled<div class="entry"> <div class="snap_preview"><p>I was trying to install mysql 5 in Fedora Core 4, I cannot recall the version but probably it was 5.0.19. The installation went off smoothly but mysql wouldn't start up. Then I figured out that it was due to selinux and after disabling it mysql would start working.</p> <p>In contrast Fedora Core 5 is very fast and mysql 5.0.18 comes packaged with it. It works flawlessly in FC 5.</p> </div> </div>Arindamhttp://www.blogger.com/profile/11474043610074262212noreply@blogger.com0tag:blogger.com,1999:blog-28120226.post-69065546268942896082008-05-31T15:01:00.000+05:302008-05-31T15:03:17.521+05:30Networking with Linux.<div class="entry"> <div class="snap_preview"><p>For the past 5-6 years I have been using Linux mostly Red Hat and Fedora Core Linux Distribution. The experience has been a very pleasant one. This operating system has been growing in features and performance in leaps and bounds. Today it has excellent gui for almost every work. This operating system can be used in conjunction with different opensource and free softwares to implement a very low cost networking solution for :-</p> <ul><li>Gateway Server (with iptables).</li><li>Firewalls (with iptables)</li><li>Proxy Server (with squid)</li><li>Gateway server with caching (iptables with squid).</li><li>Url filtering (squid guard with squid).</li><li>Name Server (with bind).</li><li>DHCP server.</li><li>Dial-up Server.</li><li>Web server.</li><li>Mail Server.</li><li>FTP Server.</li><li>LDAP Server.</li><li>Database Server.</li><li>Shared file system with NFS and Samba.</li><li>Logging.</li></ul> <p>The above table depicts few solutions that can be implemented using Linux and in reality Linux has much to offer. In short we can say Linux as System and Network Administrators' paradise. And I am sure in times to come it will have lot more to offer.</p> </div> </div>Arindamhttp://www.blogger.com/profile/11474043610074262212noreply@blogger.com0tag:blogger.com,1999:blog-28120226.post-1152964511098434732006-07-15T16:26:00.000+05:302006-07-15T18:05:35.763+05:30Configuring Wi-fi connection with BSNL DataOne Broadband on a laptop with RHEL 4 and Huawei WA1003A DSL RouterI had installed Red Hat Enterprise Linux 4 (WS or Desktop) in HP nx6130 with onboard Intel Pro 2200BG Wireless Card. Rpm ipw2200-firmware (for HP nx6130) is required to be installed in your laptop and can be found at <a href="http://rpm.pbone.net">http://rpm.pbone.net</a> If you are using any other card, then firmware for that particular should be installed.<br /><br />Start the network configuration fron System Settings -> Network. Add a New Device and then select Wireless Connection and press next, your card should be visible here (in my case it was "Intel Corporation PRO/Wireless 2200 BG (eth1)". Select this card and press forward and in the SSID just enter WA1003A and then press forward. In the next, screen you need to put in the network settings. Select static IP address and give the IP Adddress 192.168.1.2 with subnet mask 255.255.255.0 and gateway as 192.168.1.1 In the DNS setting, add the following two addresses 61.1.96.69 and 61.1.96.71 This is all you have to do in the laptop part.<br /><br />Now you have to configure you Huawei WA1003A DSL router. Connect the LAN (CAT5) cable between the laptop (in the other ethernet(eth0) port) and router. Open the network configuration setting and give the IP Address 192.168.1.3 to eth0 with subnet mask 255.255.255.0 Save the configuration and activate the eth0 Open browser and enter 192.168.1.1 as url and you will get Huawei Configurations page. Enter admin as user and admin as password. Goto Setup and click PVC0 link at the left hand corner. Change the connection type from Bridge to pppoe. You will get an option of username and password. Enter the user name and password you got from BSNL for accessing their DataOne service. Press Apply and goto Advanced and then Tools and press Save All and then press Restart. Ping the address 192.168.1.1 from the laptop after deactivating your eth0 connection and disconnecting your LAN cable. If you get a reply then your Wi-fi connection in the laptop is ready. Start browsing and ENJOY! This procedure may also work for Fedora but I haven't tested it.Arindamhttp://www.blogger.com/profile/11474043610074262212noreply@blogger.com0tag:blogger.com,1999:blog-28120226.post-1147674194109919922006-05-15T11:50:00.000+05:302006-05-15T11:53:14.116+05:30Problems faced in Fedora Core 5 for Adding and Removing Software.I had finished downloading the new Fedora Core 5 a few days back and was very excited to try it out. The installation went off very smoothly and was very pleasing to my eyes. The operating system loading was very fast and I presume it took half the time it used to be in Fedora Core 4.<br /><br />The problem with the system was the Add/Remove program (Pirut) in Fedora Core 5. It connects to the internet for adding any package or updating it. In my country the internet connectivity is a costly affair. So to make Pirut use the local packages in my CDs, I created a directory /var/yum/Fedora/RPMS and copied all the rpms in the CD nos. 1,2,3,4 and 5 to the folder /var/yum/Fedora/RPMS and the repodata folder in 1st disk to /var/yum/ folder.<br /><br />Then I edited the file named fedora-core.repo in /etc/yum.repo.d/ and inserted few lines like<br /><br />[Fedora-Core-5-local-install]<br />name=Fedora Core $releasever - $basearch<br />baseurl=file:///var/yum<br />enabled=1<br />gpgcheck=1<br />gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY<br /><br />and changed all the other enabled=1 to enabled=0 in this file and all the files with *.repo in /etc/yum.repos.d/ and then I have been able to install packages using Add/Remove Software (Pirut) ever since.<br /><br />Please note :- Don't forget to copy repodata folder in FC 5 disk 1 or you would be seeing repomd.xml error.Arindamhttp://www.blogger.com/profile/11474043610074262212noreply@blogger.com2