Posted on July 16, 2008 by fawadnazir
http://www.ubuntugeek.com/upgrade-ubuntu-610-edgy-eft-to-ubuntu-704-feisty-fawn-2.html
Method 2 – Using apt-get
Edit your /etc/apt/sources.list as root. Change every occurrence of edgy to feisty.
Use any prefered editor. If you have a CD-ROM line in your file, then remove it.
sudo vi /etc/apt/sources.list
or
use the following Simple command
sudo sed -e ’s/\edgy/ feisty/g’ -i /etc/apt/sources.list
Now you need to update the source list using the following command
sudo apt-get [...]
Filed under: Uncategorized | Leave a Comment »
Posted on June 18, 2008 by fawadnazir
Time Analyzed: 2004-09-01 to 2004-11-30
Query to check the most active users within this time period:
mysql> select person_oid,count(distinct device_oid) as count from devicespan where device_oid in (select oid from device where person_oid>0) and (starttime > ‘2004-09-07 00:00:00′ and endtime < ‘2005-05-04 24::00′) group by person_oid order by count desc limit 10;
+————+——-+
| person_oid | count |
+————+——-+
| [...]
Filed under: Uncategorized | Leave a Comment »
Posted on February 26, 2008 by fawadnazir
fawad@Ubuntu-01:/etc/hotplug$ echo ‘blacklist orinoco’ | sudo tee -a
/etc/modprobe.d/my_blacklist
blacklist orinoco
fawad@Ubuntu-01:/etc/hotplug$ echo ‘blacklist orinoco_cs’ | sudo tee
-a /etc/modprobe.d/my_blacklist
blacklist orinoco_cs
Where orinoco_cs & orinoco are the modules names.
The above tutorial will blacklist the kernel modules at the starup. But you modules might be loaded which anything is hotplugged into your computer.
For that i could not actually come-up with a [...]
Filed under: Uncategorized | Leave a Comment »
Posted on February 26, 2008 by fawadnazir
fawad@Ubuntu-01:~$ more /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with “#” are ignored.
lp
mousedev
psmouse
Filed under: Uncategorized | Leave a Comment »
Posted on February 26, 2008 by fawadnazir
Web Page With All Linux Commands…
Command to find what all files are open: $lsof
Command to see what is done when a command is executed: $strace , e.g. $strace ls
Command to change the file system of a disk
$sudo mkfs.ext3 -cv -L usbdisk2 /dev/sdc1
dpkg – a medium-level package manager for Debian
————————————————
This is like an rpm for Red-hat [...]
Filed under: Uncategorized | Leave a Comment »
Posted on February 26, 2008 by fawadnazir
S#1: Machine A Master Mode and Machine B Managed Mode.
Machine A:
$sudo iwconfig wlan0 mode Master
$sudo iwconfig wlan0 essid “Hello-1″
Set the Static IP Address: 10.10.5.2 Mask: 255.0.0.0
root@Ubuntu-01:/etc/network# iwconfig wlan0
Warning: Driver for device wlan0 has been compiled with version 19
of Wireless Extension, while this program supports up to version 18.
Some things may be broken…
wlan0 [...]
Filed under: Uncategorized | Leave a Comment »
Posted on February 26, 2008 by fawadnazir
1. Install Ubuntu 5.10.
2. To setup the root password, reboot the machine and press ESc to go into grub mode.
To to the recovery mode of Linux and press enter.
You will get to # prompt.
Type #passwd root, enter new password and reboot #init 6.
3. Goto System -> Administrator -> Networking and enable the eth0 card for [...]
Filed under: Uncategorized | Leave a Comment »
Posted on February 26, 2008 by fawadnazir
Creating a Library File .a and .so
.a
26 gcc -c bar.c foo.c
28 gcc -c program.c
33 gcc -o program program.o foo.o bar.o
36 ar crv libfoo.a bar.o foo.o
.so
39 gcc -fPIC -g -c -Wall bar.c
40 gcc -fPIC -g -c -Wall foo.c
42 gcc -shared -Wl,-soname,libfoo.so.1 -o libfoo.so.0.1 foo.o bar.o -lc
My First Makefile:
——————
myapp: program.o [...]
Filed under: Uncategorized | Leave a Comment »
Posted on February 26, 2008 by fawadnazir
http://ubuntuguide.org/wiki/Ubuntu_Edgy#How_to_install_Java_Development_Kit_.28JDK.29_v5.0
How to install Java Development Kit (JDK) v5.0
Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed
* Read #General Notes
* Read #How to add extra repositories
sudo apt-get install sun-java5-jdk
* Accept the licence agreement that appears.
* Set Sun’s JVM as default Java version:
sudo update-java-alternatives -s java-1.5.0-sun
* Edit /etc/jvm and [...]
Filed under: Uncategorized | Leave a Comment »