My WaR WiTh WoRdS

The AIM of one’s life is to become AIMLESS

Archive for the ‘Linux’ Category

Making Xml dump of MySQL

with one comment

Yesterday when i was trying/searching for a way to generate XML file from PHP so as to use it in Project 11, i came across a way to make a direct database/table dump from mysql and its damn easy all you have to do is type
mysqldump -u username -p --xml databasename > data.xml
and it will dump whole database into the data.xml file enjoy!!!!
PS:- Info about Project 11 coming up…..

Advertisements

Written by Ankur

March 18, 2008 at 3:50 pm

Posted in Life, Linux, Special

Configuring WiFi with Ndiswrapper on Debian

leave a comment »

Note :- If you want the way to make ndiswrapper work just skip the first paragraph its total crap

Well as i have a Broadcom BCM4312 on my HP 6515b laptop, i face a lot of problems with WiFi and the only solution that i know of is using ndiswrapper with makes the windows driver work on Linux, anyway i installed Debian on my laptop around 1 month ago and then never looked back at it, ya i love Fedora, so yesterday when i rebooted my laptop after around a week i saw the Debian entry on my grub i booted into it and tried to connect to the WiFi network which reminded me that i have not configured ndiswrapper and as i have all 3 DVD’s of Debian with me i was sure it wont be a problem, but it didnt work and i was left wondering what now, and i started searching the DVD for any other package then i thought ok lets try to build the driver and there i was with a working net in just 5 min

Ok so lets start, you need module-assistant as you have to build the ndiswrapper from the source saperately, so type
apt-get install module-assistant
then prepare the build environment
module-assistant prepare
this will download the kernel-header and setup the symbolic links, now install the ndiswrapper-source package
apt-get install ndiswrapper-source
if you have internet access only via WiFi the download the packages from http://packages.debian.org and then install them, next build ndiswrapper
module-assistant build ndiswrapper
now type
apt-get install ndiswrapper-utils-1.9
now you are ready to install the drivers for that follow this enjoy

Written by Ankur

February 27, 2008 at 11:53 pm

Enabling Wifi on Lenovo R60 in Linux

with one comment

So yesterday after hunting for the solution of the wifi problem in Lenovo R60 so quite sometime i finally decided to try DJays solution to build Madwifi and it worked like a charm. I was thinking that there will be a total Open Source solution of the problem but well i just hope that ath5k will replace madwifi soon, anyway here is something about MadWifi

MadWifi is one of the most advanced WLAN drivers available for Linux today. It is stable and has an established userbase. The driver itself is open source but depends on the proprietary Hardware Abstraction Layer (HAL) that is available in binary form only.

Ok so lets start, first you need to download the source of Madwifi, go to http://madwifi.org/wiki/UserDocs/GettingMadwifi and download tar.gz source package, extract it now open a terminal and login as root by typing su or sudo -i, then goto the madwifi directory and type
cd scripts
./find-madwifi-modules.sh $(uname -r)
cd ..

now you are ready to compile
make
now to install type
make install
Now load the module
/sbin/modprobe ath_pci
now you can easily connect to the net on your Lenovo R60 lappy
To enable the wifi led just edit /etc/sysctl.conf, type
gedit /etc/sysctl.conf
and add this at the end of the file and save
dev.wifi0.ledpin=1
dev.wifi0.softled=1

reboot and thats it enjoy!!!!!!!!!!!!!!

Written by Ankur

February 25, 2008 at 7:24 pm

LUG Manipal has a WIKI now

leave a comment »

LUG is a collaborative project with people coming from all walks of life to work to work together for a common project or cause. Inspired by Wikipedia’s success as a collaborative project we thought of having a wiki at our site so that we can have a platform for working together. We can have vast details and ideas put up on the wiki for everyone to view later.

The Wiki’s URL is http://wiki.lugmanipal.org

come on people lets make it WWW == Wild Wild Wiki

Written by Ankur

February 7, 2008 at 12:44 am

Posted in college, Linux

Fedora 8 Install Fest in MIT Manipal

with 7 comments

For the First time in History of Manipal a Linux ( Fedora 8 ) Install Fest took place on the Campus, it was organized by Linux user Group Manipal. It was Basically a 2 Day Fest, on 24th a Pre-Install Fest / Meet was there where participants were Informed about the requirements, advantages and Importance of GNU/Linux and what all we will be doing in the second day i.e. 25th , there were all information given about various events held by companies inviting students to innovate. The Day ended with the collection of DVD to be burned for 25th Main Fest and some 45+ DVD’s were collected with DVD’s still coming till start of Second day

LUG Manipal Fedora 8 Install Fest

Second day began with partitioning and distribution of DVD’s after which the main install fest began and all the steps were shown and explained, there was some DVD corruption / Improper burning but everything else was just fine, a script was prepared for upgrading Compiz and enabling 3D effects for the HP 6515b laptops, the script handled most of the task which were to be done in command line though all people were explained what it did but since most of the people were First Time users it really made the task of configuring the system very easy, rest laptops faced no problems so they directly booted in Graphical mode already being out of time the Install Fest was Finished with some problems still remaining which were solved

LUG Manipal Fedora 8 Install Fest
LUG Manipal Fedora 8 Install Fest
LUG Manipal Fedora 8 Install Fest

more photos here

Written by Ankur

January 28, 2008 at 11:40 pm

Posted in college, Life, Linux, Special

3D effects on ubuntu 7.10 on ati 1250

with 2 comments

Well after going through a large number of guides like this i finally thought about giving guide at cchtml a try, well the hings mentioned are really great but not all steps are needed so here is a simplified version

Here i assume that you have not done any of this step before and are doing it for the first time but if that is not the case then this might not work for you.
Ok so first step installation of drivers, there are two steps for this as mentioned in the cchtml wiki one automatic and other manual, for automatic you need to enable the restricted repositories by going to System>>Administration>>Software Sources, and the typing
sudo apt-get update
sudo apt-get install linux-restricted-modules-generic restricted-manager
sudo apt-get install xorg-driver-fglrx

which will install the drivers by downloading them from net, if you dont have the bandwidth to download that much you can go for the manual install where we will build those file, here i assumed that you have copy of the ati drivers .run file which if your Ubuntu is installed by me could be found at “/”, to build we need to install certain packages
sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-generic dkms
to build the packages type
sudo bash ati-driver-installer-8.443.1-x86.x86_64.run --buildpkg Ubuntu/gutsy
in the directory where you have the ati-driver-installer-8.443.1-x86.x86_64.run file, this is the latest file at the time of writing but you might have a different file this will work with any driver after 8.38, as they have AIGLX support anyway now we need to install the packages made type
sudo dpkg -i xorg-driver-fglrx_8.443.1-1*.deb fglrx-kernel-source_8.443.1-1*.deb fglrx-amdcccle_8.443.1-1*.deb
when you do that you might be asked
Configuration file `/etc/xdg/compiz/compiz-manager'
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** compiz-manager (Y/I/N/O/D/Z) [default=N] ?

just answer Y to the question and proceed, once this is done you now need to edit the xorg.conf file type (here — is [minus][minus] unlike a big [minus] as it appears to be )
aticonfig --initial
sudo gedit /etc/X11/xorg.conf

and replace
Section "Device"
Identifier "Generic Video Card"
Driver "vesa"
BusID "PCI:1:5:0"
EndSection

WITH
Section "Device"
Identifier "Generic Video Card"
#Driver "vesa"
BusID "PCI:1:5:0"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
EndSection
now just restart the X server but pressing Ctrl + ALT + Backspace, all done this will give you the Basic 3D effects but who is satisfied with that we need more so we will go for installing Compiz settings manager, for this type
sudo apt-get install compizconfig-settings-manager gcompizthemer subversion
svn ls https://svn.generation.no/emerald-themes

now accept the certificate and fetch the themes by going to System>>Preferances>>Emerald Themes Manager,
to enable 3D effects go to System>>Preferances>>Appearance then Visual Effects select Custom and edit your settings by Preferances
now you are all set to blow everyone up with your Linux box’s 3D effects enjoy

Written by Ankur

December 29, 2007 at 1:46 am

Posted in college, Linux, Special, Ubuntu

Tagged with , , , , , , ,

Making a local Ubuntu / Debian repository on Fedora

with 2 comments

So now i know how to make a local Ubuntu / Debian LAN repository on Fedora using apt-cacher, apt-cacher as the name says caches all the packages with it when ever any client requests a package from it, it checks if the package that is there with it is latest or not if it is then it serves that package else it downloads the package and serves it, but well i am not discussing what it does here but how to set it up on Fedora 8, so lets begin

for apt-cacher to work you need to have a apache server installed and the source of apt-cacher which can be downloaded from here just and extract it and follow the following step as root
mv apt-cacher-1.5.3 /usr/share/apt-cacher
here 1.5.3 was the latest package during my writing, then rename apache.conf to /etc/httpd/conf.d/apt-cacher.conf and set the permisions
cd /usr/share/apt-cacher
mv apache.conf /etc/httpd/conf.d/apt-cacher.conf
chmod 644 /etc/httpd/conf.d/apt-cacher.conf
chown root:root /etc/httpd/conf.d/apt-cacher.conf

now just restart apache
/etc/init.d/httpd restart
now rename apt-cacher2 to apt-cacher and move all the .conf files to /etc/apt-cacher/
mv apt-cacher2 apt-cacher
mkdir /etc/apt-cacher
mv *.conf /etc/apt-cacher/

now edit /etc/httpd/conf.d/apt-cacher.conf and edit user and group to apache
gedit /etc/httpd/conf.d/apt-cacher.conf
after doing that run install.pl
./install.pl
now make /var/cache/apt-cacher and /var/log/apt-cacher owned by apache
chown -R apache /var/cache/apt-cacher
chown -R apache /var/log/apt-cacher

all done just goto http://yourip/apt-cacher and every thing should work fine, if it does not then check /var/log/http/error_log for what went wrong and dont forget to forward the port 3142 (default) so that everyone can access it
you can see how to configure it here and since you are on Fedora you will have to modify some steps a little
enjoy
Ankur Shrivastava

Written by Ankur

December 24, 2007 at 10:26 pm