/etc/wvdial.conf  

Posted by Unknown

[Modem0]
Modem=/dev/ttyS0
Baud=115200
Dial Command = ATDT
init1=ATZ
init2=AT+CRM=1
Flow Control= Hardware (CRTSCTS)
[Dialer reliance]
Username = ""
Password = ""
Phone = #777
Stupid Mode = 1
Inherits= Modem0

How to configure apache web server in Solaris 10  

Posted by Unknown in , ,

Here are the steps...

  1. svcadm enable apache (or apache2)
  2. mv /etc/apache[2]/httpd.conf-example /etc/apache[2]/httpd.conf
  3. /usr/apache/bin/apachectl start

Then open your browser
http://localhost or http://127.0.0.1

For other IP address , you have to open your httpd.conf
then modify the default address 127.0.0.1 using your x.x.x.x IP address or your host name ( for valid dns )in " Server Name" line:

ServerName x.x.x.x

Check the current status: 'svcs -l apache[2]'

Restarting/reloading can be done through apachectl (/usr/apache[2]/bin/apachectl) but 'svcadm refresh apache[2]' is the preferred method.

How to transfer your existing dual boot system to a new bigger, better hard-disk  

Posted by Unknown in , ,

Here are the steps-->

  1. First of all boot into windows and clean unnecessary files from all partitions. You can use any disk cleanup utility.
  2. Then run disk checking software (chkdsk /p /r) on each partition and reboot twice to make sure the disk is error free.
  3. BACKUP YOUR DATA.
  4. Download GPARTED live cd from here and burn it on a disk.
  5. Now shutdown your system and attach your new hard-disk. Remove any unnecessary media form your system (e.g. pen drive).
  6. Boot into gparted live cd. Please wait while it detects all your disks and partitions.
  7. Now select the windows partition from your old harddisk and click copy button.
  8. Select your new hard-disk. Select Device-->Set Disklabel. Click create.
  9. Now paste your copied partition to the new hard-disk.
  10. Make it bootable. (Right click --> Manage Flags --> Boot)
  11. You can also increase the size of your new partion.
  12. Create an extended partion.
  13. Repeat Steps 7 and 9 for other partitions.
  14. Detach old hard-disk. (Don't reboot without detaching your old hard-disk. It can cause big problems.)
  15. Reboot
You may face some problems, some of which are given below.

1. In case of a boot failure. Reboot into any Linux cd and try to update grub boot loader.
  • sudo grub
  • find /boot/grub/stage1
  • root (hdx,y) [here x,y denotes your hard-disk and partion number]
  • setup (hd0)
  • quit
2. You may also try to boot into recovery mode from your windows xp cd and run fixboot/fixmbr commands.

How to enable compositing in Gnome without using compiz  

Posted by Unknown in ,


Do you want to decorate your desktop but don't want to use compiz (or your system don't support it). With latest Gnome you can achieve this without affecting your system's performance. You don’t even need accelerated graphics to run Metacity with compositing. It even works well inside VirtualBox! If your computer can’t run Compiz, give this a try. Here are the steps...

1) Run Gnome configuration editor ( gconf-editor )
2) Navigate to Apps-->metacity-->general
3) Check the compositing_manager box, and Metacity will immediately restart with compositing!
4) Now you can install Screenlets, AWN etc. to decorate your desktop.

Some Websites  

Posted by Unknown

Some of My Favourite Linux Apps  

Posted by Unknown in , ,

Htop - Htop is an ncursed-based process viewer similar to top, but it allows to scroll the list vertically and horizontally to see all processes and their full command lines. Tasks related to processes (killing, renicing) can be done without entering their PIDs.

Twitux
- Twitter client for Linux.

GWget
- wget GUI frontend.

CHM Viewer - .chm file viewer for Linux.

VMware - Advanced virtualization software

Wine - Run Windows apps in Linux.

StarDict - One of the best dictionary software.

Terminator - Multiple terminal windows or tabs at once.

Mozilla Prism - Cross-platform application that lets you integrate web applications with your desktop.


How to Recover and Undelete files in Ubuntu the easy way!  

Posted by Unknown in , , ,

Ok I accidentally deleted my /etc/network/interfaces file and didnt have my access point connected to a pc, its just wireless now, so what I did to recover the file was this, please note if you delete the file shutdown your pc immediately or unmount your drive as fast as possible to avoid overwriting the deleted data. This method can be used to find unencrypted passwords and interesting information as well. This works best from a livecd/unmounted filesystem:

  • grep --binary-files=text -300 "Unique String in Text file" /dev/hda1 > output.txt

The -300 option tells grep to report the 300 lines before the string you choose
Basically this will take quite a while depending on the size of your hard drive and may output a ton of irrelevent information to the output.txt file, you may want to edit the -300 line variable and do man grep to see further usage options.

This method worked for me only because I shutdown my pc immediately and booted into my Hardy Livecd and the file was still available, I just copied/pasted the relevant output to my interfaces file.

[update]
Alternatively you can use the strings command to dump all the text on a partition then grep the strings output for the relevent output, Here is an example:

  • strings /dev/hda1 > bigtxtfile
  • grep -i "information" bigtxtfile >grepoutputfile

[update 2]
I ran into another program that should streamline this a bit, havnt had much time to play with it but let me introduce you to "foremost"
Grab foremost:

  • sudo apt-get install foremost

Have Foremost audit your drive for recoverable files:

  • sudo foremost -w -i /dev/hda -o /recovery/foremost

Have foremost recover jpg files:

  • sudo foremost -t jpg -i /dev/hda -o /recovery/foremost

Here is the complete list of recoverable filetypes for usage with the "-t type" switch:
Available types:

jpg Support for the JFIF and Exif formats including implementations
gif
png
bmp Support for windows bmp format.
avi
exe Support for Windows PE binaries, will extract DLL and EXE files
along with their compile times.
mpg Support for most MPEG files (must begin with 0x000001BA)
wav
riff This will extract AVI and RIFF since they use the same file for‐
mat (RIFF). note faster than running each separately.
wmv Note may also extract -wma files as they have similar format. mov
pdf
ole This will grab any file using the OLE file structure. This includes PowerPoint, Word, Excel, Access, and StarWriter
doc Note it is more efficient to run OLE as you get more bang for your buck. If you wish to ignore all other ole files then use this.
zip Note is will extract .jar files as well because they use a simi‐
lar format. Open Office docs are just zip’d XML files so they are extracted as well. These include SXW, SXC, SXI, and SX? for undetermined OpenOffice files.
rar
htm
cpp C source code detection, note this is primitive and may generate documents other than C code.
all Run all pre-defined extraction methods. [Default if no -t is specified]



If you have additional suggestions or methods to restore files please comment and share your knowledge

Source