IIITMk-LUG:Knowledgebase
From IIITM-k-wiki
FAQs (pronounced as FACTS)
Debian
How can I set the http proxy server whose name is proxy.myorg.com and port 8080 in my terminal?
Run the command export http_proxy="http://proxy.myorg.com:8080"
How to search a package using aptitude? say vpn but I dont know whats the name of the software
aptitude search vpn will print all the results matching vpn.
How do I download and install a package using aptitude? say iaxcomm
aptitude install iaxcomm
How can I install a mypack-0.9.8.i386.deb package?
dpkg -i mypack-0.9.8.i386.deb
Can I install rpm on debian?
The answer is yes. It is recommended that you convert the .rpm into .deb and install. The tool used for converting .rpm to .deb and vice versa is clalled alien installed. Once you have alien installed and you have rpm on your filesystem, run the command alien -k myrpm.rpm. This will generate the .deb file.
How can I configure my wireless to get an ip automatically?
here is a sample /etc/network/interfaces file :
# always put auto commands after iface ath0 inet dhcp auto ath0
iface eth0 inet dhcp auto eth0
iface lo inet loopback auto lo
How to restore Linux grub for a dual-boot system (viz. Windows 2000/XP & Ubuntu Edgy) after re-installation of Windows?
Put Ubuntu Edgy cd into the disk drive and boot from cd and get into LiveCD mode.
Invoke the terminal and type sudo -i
Type grub which will return with grub> prompt
Now type root which will return something like (hd0,2) or similar. Note it down somewhere.
To setup the boot partition, type root (hd0,2). This is the hard drive and the partition your Linux is installed on...
And then configure grub by typing setup (hd0)
Now you're done, so type quit & reboot and don't forget to remove the CD prior to next boot up process.
How to monitor CPU, GPU temperatures, fan speeds and voltages?
Install hddtemp first to monitor hard drive temperatures by typing sudo apt-get install hddtemp
To run the program type Click Applications -> System Tools -> GKrellM
For configuring the settings Right click on GKrellM -> Configuration
For adding user-defined audible alert(s) for the above event(s) do the following:
Record (using Audacity) or find appropriate audio alert files.
Then go to Configuration -> Builtins folder (Left side)-> Sensors -> Temperatures folder (Right side)-> CPU -> Alerts Button
Paste the following lines into a Terminal window first to test the sound.
mplayer /home/myfolder/alert_messages/heat_alert.mp3
If you can hear the sound, then copy that line to a command line text field on the GKrellM's Alerts window.
How Can I Make the ntfs file system writable?
The ntfs file systems were read only on Linux. On the 14th of July 2006, a developer of the linux-ntfs team, Szabolcs Szakacsits, revolution this area by releasing a new driver ntfs-3g which claimed to provide full read/write support for all NTFS partition. After months of successful testing by hundreds of thousands of users in beta status, ntfs-3g is now fully stable.
For mounting NTFS you can use one small tool called NTFS-3G this is very powerfull and simple tool.
For those who are using Ubuntu 7.04 Feisty Fawn
Open the terminal and type $ sudo apt-get install ntfs-3g ntfs-config . This will make your windows ntfs partitions writable.
For those who are using Ubuntu 6.10 Edgy Ft.
Go to CLI . Then there type $ sudo gedit /etc/apt/sources.list
Then the gedit will open and there you have to add teh following lines in the last. Then save the file and exit.
deb http://givre.cabspace.com/ubuntu/ edgy main deb http://ntfs-3g.sitesweetsite.info/ubuntu/ edgy main deb http://flomertens.keo.in/ubuntu/ edgy main
Now update the source list by using the command $ sudo apt-get update
If you want to install ntfs-3g run the following command from your terminal $ sudo apt-get install ntfs-3g
How can You Install Oracle client in ubuntu
First you have to get the Debian file. You will get it from the link : http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html
Here you have to download the Oracle database 10g express client. If ou are using ubuntu then you have to get the *.deb file.You may have to make an account and get a username and password in that site For installing double click on the file you have downloaded.And follow the procedure. Then it will get installed and you can access the SQL CLI from the Applications --> Oracle client 10g Express edition.
If it is showing some error when you try to connect to the server, as shown in the figure.
Then you have to open the file nls_lang.sh. And in that file there will be some bugs. In that file make sure that in the lines 106 & 108 there is only single brackets. This will clear the bug and you can get it running.
How can you increase your swap space
For some application sometimes you will need more swap space than that what you have now. In my case I was having only 840 MB and when I tried to install Oracle 10g server i couldn't install it as it requires more swap space. So I had to increase my swap space. First you have to see how much swap space you are having now. For that go to terminal and type swapon -s which will show you the swap space and it will show you something like this
asha@asha:~$ swapon -s Filename Type Size Used Priority /dev/sda4 partition 979956 313344 -1
Now you can take some space from one of your partitions. And if you are having another partition other than / then better to take from that. And one warning is there.If you have some important data you better back up.
In order to create supplementary swap file you are using dd (data dump) command.You have to do it in the root.
So type in the terminal
dd if=/dev/zero of=/extra-swap bs=1M count=1024
We'll use the mkswap command to make our file swap-consumable for the Linux kernel.
mkswap /extra-swap
To turn on the swap file run
swapon /extra-swap
Now swapon -s will show the new file also.
And to make this swap on even after booting your machine you have to
cp /etc/fstab /etc/fstab.mybackup
Now its done. And you can continue with the installation.
How to increase the root partition from windows partition
Boot up the system with Ubuntu Live CD
from the root run the application gparted( gparted is a GUI based disk partitioning and partition resizing program.)
sudo gparted
now you can use this GUI tool for moving and resizing the partitons...
this can be used for increasing the swap space also..
How to use C compiler in Ubuntu Linux ?
gcc libraries doesn't come with the installation, so in that case including header files and thereby compiling with gcc will result in errors like as no such or directory. In that case, do the following:
apt-get install libc6-dev
How can I know version of Linux am I using ?
Just type lsb_release -a
What kernel am I using ?
Just type uname -r


