20 August, 2009

Install rpm packages in Ubuntu

Open the terminal window from accessories

sudo apt-get install alien


Use the following command to install your rpm file

sudo alien -i name_of_rpm_file.rpm


You can also convert rpm file to deb file

sudo alien -k name_of_rpm_file.rpm


for install deb file use

sudo dpkg -i name_of_created_deb_file.deb

Read rest of entry

18 August, 2009

Sending sms from google

You can now send SMS text messages to anyone in your Gmail address book right from the Gmail website.

Go to your Gmail Labs settings and enable the “Text Messaging (SMS) in Chat” feature. The facility is currently available only for US phone numbers.

gmailsms

gmailtextmessages


You can send (and receive) text messages via the embedded chat in Gmail website but not from the standalone Google Talk client. Yahoo! Mail, Windows Live Messenger and AOL AIM service have had the SMS messaging feature for quite some time now.

sendsms

Read rest of entry

TOP 10 DOS COMMANDS

Below is a listing of the top 10 MS-DOS commands most commonly used and that you will most likely use during a normal DOS session.

1. cd
2. dir
3. copy
4. del
5. edit
6. move
7. ren (rename)
8. deltree
9. cls
10. format
Read rest of entry

An A-Z Index of the Windows XP command line

   ADDUSERS Add or list users to/from a CSV file
ARP Address Resolution Protocol
~ ASSOC Change file extension associations
ASSOCIAT One step file association
AT Schedule a command to run at a later time
ATTRIB Change file attributes
b
BOOTCFG Edit Windows boot settings
BROWSTAT Get domain, browser and PDC info
c
CACLS Change file permissions
~ CALL Call one batch program from another
~ CD Change Directory - move to a specific Folder
CHANGE Change Terminal Server Session properties
CHKDSK Check Disk - check and repair disk problems
CHKNTFS Check the NTFS file system
CHOICE Accept keyboard input to a batch file
CIPHER Encrypt or Decrypt files/folders
CleanMgr Automated cleanup of Temp files, recycle bin
CLEARMEM Clear memory leaks
CLIP Copy STDIN to the Windows clipboard.
~ CLS Clear the screen
CLUSTER Windows Clustering
CMD Start a new CMD shell
~ COLOR Change colors of the CMD window
COMP Compare the contents of two files or sets of files
COMPACT Compress files or folders on an NTFS partition
COMPRESS Compress individual files on an NTFS partition
CON2PRT Connect or disconnect a Printer
CONVERT Convert a FAT drive to NTFS.
~ COPY Copy one or more files to another location
CSCcmd Client-side caching (Offline Files)
CSVDE Import or Export Active Directory data
d
~ DATE Display or set the date
Dcomcnfg DCOM Configuration Utility
DEFRAG Defragment hard drive
~ DEL Delete one or more files
DELPROF Delete NT user profiles
DELTREE Delete a folder and all subfolders
DevCon Device Manager Command Line Utility
~ DIR Display a list of files and folders
DIRUSE Display disk usage
DISKCOMP Compare the contents of two floppy disks
DISKCOPY Copy the contents of one floppy disk to another
DISKPART Disk Administration
DNSSTAT DNS Statistics
DOSKEY Edit command line, recall commands, and create macros
DSADD Add user (computer, group..) to active directory
DSQUERY List items in active directory
DSMOD Modify user (computer, group..) in active directory
e
~ ECHO Display message on screen
~ ENDLOCAL End localisation of environment changes in a batch file
~ ERASE Delete one or more files
~ EXIT Quit the current script/routine and set an errorlevel.
EXPAND Uncompress files
EXTRACT Uncompress CAB files
f
FC Compare two files
FIND Search for a text string in a file
FINDSTR Search for strings in files
~ FOR /F Loop command: against a set of files
~ FOR /F Loop command: against the results of another command
~ FOR Loop command: all options Files, Directory, List
FORFILES Batch process multiple files
FORMAT Format a disk
FREEDISK Check free disk space (in bytes)
FSUTIL File and Volume utilities
FTP File Transfer Protocol
~ FTYPE Display or modify file types used in file extension associations
g
GLOBAL Display membership of global groups
~ GOTO Direct a batch program to jump to a labelled line
h
HELP Online Help
i
~ IF Conditionally perform a command
IFMEMBER Is the current user in an NT Workgroup
IPCONFIG Configure IP
k
KILL Remove a program from memory
l
LABEL Edit a disk label
LOCAL Display membership of local groups
LOGEVENT Write text to the NT event viewer.
LOGOFF Log a user off
LOGTIME Log the date and time in a file
m
MAPISEND Send email from the command line
MBSAcli Baseline Security Analyzer.
MEM Display memory usage
~ MD Create new folders
MKLINK Create a symbolic link (linkd)
MODE Configure a system device
MORE Display output, one screen at a time
MOUNTVOL Manage a volume mount point
~ MOVE Move files from one folder to another
MOVEUSER Move a user from one domain to another
MSG Send a message
MSIEXEC Microsoft Windows Installer
MSINFO Windows NT diagnostics
MSTSC Terminal Server Connection (Remote Desktop Protocol)
MUNGE Find and Replace text within file(s)
MV Copy in-use files
n
NET Manage network resources
NETDOM Domain Manager
NETSH Configure network protocols
NETSVC Command-line Service Controller
NBTSTAT Display networking statistics (NetBIOS over TCP/IP)
NETSTAT Display networking statistics (TCP/IP)
NOW Display the current Date and Time
NSLOOKUP Name server lookup
NTBACKUP Backup folders to tape
NTRIGHTS Edit user account rights
p
~ PATH Display or set a search path for executable files
PATHPING Trace route plus network latency and packet loss
~ PAUSE Suspend processing of a batch file and display a message
PERMS Show permissions for a user
PERFMON Performance Monitor
PING Test a network connection
~ POPD Restore the previous value of the current directory saved by PUSHD
PORTQRY Display the status of ports and services
PRINT Print a text file
PRNCNFG Display, configure or rename a printer
PRNMNGR Add, delete, list printers set the default printer
~ PROMPT Change the command prompt
PsExec Execute process remotely
PsFile Show files opened remotely
PsGetSid Display the SID of a computer or a user
PsInfo List information about a system
PsKill Kill processes by name or process ID
PsList List detailed information about processes
PsLoggedOn Who's logged on (locally or via resource sharing)
PsLogList Event log records
PsPasswd Change account password
PsService View and control services
PsShutdown Shutdown or reboot a computer
PsSuspend Suspend processes
~ PUSHD Save and then change the current directory
q
QGREP Search file(s) for lines that match a given pattern.
r
RASDIAL Manage RAS connections
RASPHONE Manage RAS connections
RECOVER Recover a damaged file from a defective disk.
REG Registry: Read, Set, Export, Delete keys and values
REGEDIT Import or export registry settings
REGSVR32 Register or unregister a DLL
REGINI Change Registry Permissions
~ REM Record comments (remarks) in a batch file
~ REN Rename a file or files.
REPLACE Replace or update one file with another
~ RD Delete folder(s)
RMTSHARE Share a folder or a printer
ROBOCOPY Robust File and Folder Copy
ROUTE Manipulate network routing tables
RUNAS Execute a program under a different user account
RUNDLL32 Run a DLL command (add/remove print connections)
s
SC Service Control
SCHTASKS Create or Edit Scheduled Tasks
SCLIST Display NT Services
~ SET Display, set, or remove environment variables
~ SETLOCAL Control the visibility of environment variables
SETX Set environment variables permanently
SHARE List or edit a file share or print share
~ SHIFT Shift the position of replaceable parameters in a batch file
SHORTCUT Create a windows shortcut (.LNK file)
SHOWGRPS List the NT Workgroups a user has joined
SHOWMBRS List the Users who are members of a Workgroup
SHUTDOWN Shutdown the computer
SLEEP Wait for x seconds
SOON Schedule a command to run in the near future
SORT Sort input
~ START Start a program or command in a separate window.
SU Switch User
SUBINACL Edit file and folder Permissions, Ownership and Domain
SUBST Associate a path with a drive letter
SYSTEMINFO List system configuration
t
TASKLIST List running applications and services
TASKKILL Remove a running process from memory
~ TIME Display or set the system time
TIMEOUT Delay processing of a batch file
~ TITLE Set the window title for a CMD.EXE session
TLIST Task list with full path
TOUCH Change file timestamps
TRACERT Trace route to a remote host
TREE Graphical display of folder structure
~ TYPE Display the contents of a text file
u
USRSTAT List domain usernames and last login
v
~ VER Display version information
~ VERIFY Verify that files have been saved
~ VOL Display a disk label
w
WHERE Locate and display files in a directory tree
WHOAMI Output the current UserName and domain
WINDIFF Compare the contents of two files or sets of files
WINMSD Windows system diagnostics
WINMSDP Windows system diagnostics II
WMIC WMI Commands
x
XCACLS Change file permissions
XCOPY Copy files and folders
~ :: Comment / Remark

Commands marked ~ are Internal commands only available within the CMD shell, all other commands may be used under PowerShell.
Many internal commands such as COPY and DEL are available under Powershell as cmdlets but with different syntax / options.

Read rest of entry

How to shut down ur system at a specific time

U may be very much familiar with the option in your television such as on timer and off timer.

What is the main advantage of that?
If u r watching a cricket match during the night and start sleeping infront of the TV
after some time… Simply u r wasting the power… There comes the off timer to help you…

If u set the off time in the timer the TV automatically shuts down when the specified time arrives. Similarly there is an option in windows to do the same purpose. you can do it easily with the “at” command combined with the shutdown command. Just use the following syntax, the computer will shut down at 2pm.
(it uses military time).

at 14:00 shutdown -s

Read rest of entry

Some Nokia tricks : (java based phones only)

Here i am going to share some of the tips that had worked well for my Nokia 5200 mobile phone.
I think it may be applicable to your phone also if it is a Nokia phone running on Java Operating System.

Hiding a folder in your phone without any 3rd party software..
What u have to do is just rename the folder that u want to hide such that it’s name ends with .otb
Example : name —> name.otb
U can not perfectly hide the folder with this tweak. The folder that is made hidden cannot be seen until the phone cursor is brought over that..


Changing the appearence of the folder
...
U can change the appearence of the folder in your phone memory or MMC.
This can also done by simply by renaming…Rename the folder such that the new name ends with .nth

Read rest of entry

02 June, 2009

The way to Multibooting: VMware & VirtualBox

This is all for those who try many operating systems at the same time... and those who want to test a dose of the newly released operating system...with out making any changes to ur Master Boot Record or to ur current system... VMware is having only windows versions, but virtual box is available in windows and linux.

U don't need to worry about partitioning if u r not aware of it. Here u can specify any of your harddisk drives for the purpose of storage for the other operating systems... The guest operating systems will use the free space available in the windows without harming anything to your files...

  • u don't specifically need the installation cd/dvd of the operating system... an image file in .iso format will also do the same...

  • u can create the files in the guest and can restrict the amount of HDD occupied by them...

  • u can allocate no: of processors for the guest operating system out ur dual/quad core processor...

  • u can specify the amount of RAM for the guest since this ...

so a lot of freedom and customization... no risks of careless paritioning....

u can download vmware from a torrent or online sharing website....
Read rest of entry

Let ur system boot: fixing MBR

Usually after installation of linux probably the chain loader of the previous windows XP will be overwritten by the bootloader of the linux. That's not a problem... liinux will take care of ur windows... If the situation is just opposite... ie u are installing Windows after linux...

u will get a headache, coz u can't boot to your liinux....This post is not the solution for this problem.. To boot all the Operating systems u may need to reinstall the grub..This topic is already discussed in the previous post.

Here i will explain the steps to reload your boot loader of the windows XP after the deletion of the linux OS....ie u have only windows as the OS. all u need is the installation disk of Windows XP.

>> To restore the MBR, boot ur machine using windows XP CD. Choose 'Rescue mode' when asked, and get to the command prompt when asked.

eg.. In rescue mode the operating systems in the machine are listed as follows..

1. C:\WINDOWS

press 1 to get the command prompt of the windows. Then execute the following commands..

FIXMBR [Enter]
FIXBOOT [Enter]

Once you're done reboot your computer and everything should be fine....

In the cases when ur grub is corrupted, u can recover ur grub with any of the live distribution of the linux. This already discused in the post

To Reinstall grub 2.0 (for ubunu versions)
:
http://1024bitez.blogspot.com/2009/05/to-reinstall-grub-20-for-ubunu-versions.html

Read rest of entry

improve the speed & load time of firefox



These are tricks that will improve the speed & load time of firefox. And you will be able to surf faster..especially in dialup connections

Type about:config in the address bar, Then look for the following
entries, and make the corresponding changes.

1.network.http.max-connections = 64
2.network.http.max-connections-per-server =32
3.network.http.max-persistent-connections-per-proxy =16
4.network.http.max-persistent-connections-per-server = 10
5.network.http.pipelining = true
6.network.http.pipelining.maxrequests = 200
7.network.http.proxy.pipelining = true
8.network.http.proxy.version = 1.0
9.network.http.request.max-start-delay = 0



Lastly right-click anywhere and select New > Integer. Name it
nglayout.initialpaint.delay and set its value to 0. This value is
the amount of time the browser waits before it acts on information it recieves...

.......................................................................................................................

You might have noticed that Firefox performs poorly when you surf for a long time or open lots of tabs at once. Many wrongly believe that this is due to some memory leak caused by extensions (even, I used to believe this).This is actually caused because Firefox stores 50 most recently visited websites in a memory session inorder to speed up the pageload of the previously visited site.Average web surfer tend to visit only 3 – 5 websites out of the previously visited websites, so you can reduce the resource hog by changing the memory threshold to 6 (or anything below 50).

This can be done by typing "about:config" in your Firefox address bar and search for

browser.sessionhistory.max_entries

Right click on that entry and choose modify. Now set the value for 5 (or anything lower than 50).

...............................................................................................................................

Reduce RAM usage when Firefox is minimized

This setting will move Firefox to your hard drive when you minimize it, taking up much less memory. And there is no noticeable difference in speed when you restore Firefox, so it’s definitely worth a go.

Again, go to about:config, right-click anywhere and select New > Boolean. Name it

config.trim_on_minimize and set it to TRUE.

You have to restart Firefox for these settings to take effect.
............................................................................................................................
* try ths at ur risk


Limit RAM usage

If Firefox takes up too much memory on your computer, you can limit the amount of RAM it is allowed to us.
Again, go to about:config, filter

browser.cache and select

browser.cache.disk.capacity...... It’s set to 50000,

but you can lower it, depending on how much memory you have. Try 15000 if you have between 512MB and 1GB ram.
Read rest of entry

22 May, 2009

The addressable amount of RAM....

Usually RAM is not at all a headache for nowadays computers since it is cheaper and comes as a single modules with multy GBs... U dont need to buy 2 RAMs with 1GB each for a total of 2 GB... Instead u will get a 2GB in a single module with a price difference of ~ 500 /- from 1 GB...We usually hear upto 4GB commonly. But dont think that a heavy amount of RAM can boost your system performance to a supersonic speed... Understand the maximum byte addressibility of the operating system that u are going to use before u choose the amount of the RAM...

For instance see the following case...

Usually the operating that we are using in our home or office are 32 bit..The 32bit version of the Windows XP / Vista are mainly used in almost all computers except high-end ones..32 bit versions of Windows vista and XP can address only 3.5K main memory....That is even if u have 4 or 5 or 6 or greater GBs plugged in your system, the opeating system will read only 3.5Gb.... The operating system uses only 3.5 GB out of the 4 or 5 or greater GB of the RAMs...

In this cases, if u see the properties tag of windows u may see only 3.5 GB while ur BIOS shows the correct amount of main memory plugged in...

If u need to make use of the full amount of the RAM, choose to install 64 bit versions of the operating systems which can handle upto 128 GB of the RAM...
Read rest of entry

21 May, 2009

customization for linux...themes...wallpapers....

To find what u need in linux for customizing and to enhance the appearence....

log on to....

http://www.gnome-look.org
http://www.ubuntu-art.org


go with your bag...to download....it worth no paisa...
Read rest of entry

applying the security and encryption to folders from admin to user

U may be bored of trying some third party software for the purpose of providing some encryption to the folders and files. But in vista it can be simlpy done with the help of windows security system...First of all u have to create a different user account other than your administrator account... Login to your administrator account and move to the folder which u want to encrypt.

Right click and select the properties tag... move onto the security tab...
[fig 1] there u will see some accounts like administrator,user ...
Click on the Advanced button.......................................


If list will not have the user account... click the add button and type in the name of the user u want...

Select the user [fig 2]... click on the edit button [fig3] to change the security previlages,
Another window will be opened and u can do any thing u wish at that window...
[fig4]



Thier u can provide/deny full control or provide read only access or something like that u see their... as u wish...

thats all ...

Now logout out from the administrator account and login as the user... and try to access that folder...

you cant access it......
Read rest of entry

15 May, 2009

C++ program to scroll a line of text


c++ program to scroll a line of text......
can u scroll a line of text horizontally over the screen.... like in power point
presentations...
here s how i have done it using turbo c++... if u have any new & simple idea...comment

hint: actually we feel the text as scrolling due to the persistence of vision...
what you have to do is
pass1: move the entire text after removing the first character to one position left..
pass2: move the entire text after removing the next character to one position left..
.
.
pass n


// code is follows

Read rest of entry

Package managers in Ubuntu

To install an application in linux we have some architecture that is different from the windows. Ubuntu uses some package installer programs like Synaptic package manager for this purpose...

What u have to do is just right click on the package file select 'open with' search for the
Synaptic package manager or GDebi Package manager... That's all....
The package manager automatically installs the package. It may show some dependancies...ie to install 'this' u must remove 'that'.... That's not at all a matter of fact... continue...

Some programs may active only before u restart the system....
Read rest of entry

Packages and applications for Ubuntu

U may be having a linux as well as windows in your computer... Most probably the linux inside your computer may be just only for a show... I bet, most of u be login to that account one/two times in a week.

y this happens... here is one important answer and a nice solution to that....
probably the linux system that will be getting to you after the installation consist of ony basic softwares...

u may have many of the media files in your system cannot be played using those applications provided....,

can't compile your java/c++ programs due to no compiler associated with ur terminal...,

u can't customize the appearence to a great extent...

u can't connect to a wifi link in ur college/railway station/hotel room with ur network tool.

The solution...
There are a vast range of applications are available for installing in the linux...
These applications are called packages...and can be installed from some commands using ur linux terminal. Also their are available as packages itself from the websites.

eg: www.appnr.com

U just download it and install them by using ur webbrowser to login to appnr... I'm sure u will get a sexy OS never before.

To install a package in ubuntu look for the next post....
Read rest of entry

14 May, 2009

How To Reinstall grub in Ubuntu (upto Ubuntu 9.04)

1. Put the ubuntu installation disk in your drive and boot it with the live cd option.
2. Open gnome terminal and type the following commands...

$ sudo grub

~ find /boot/grub/stage1

then the terminal will show you the partitions with stage 1
for the time being let it be the following..

hd(0,5)

~ setup hd(0,5) or ~ install hd(0,5)

3. Exit terminal.

It's the time to restart your system and see the reloaded grub !!!
Read rest of entry

Tricks for vi editor: (for linux)


vi editor is one of the file editors in linux systems.

here's some tricks for exploiting it:
configure line no: on the go

$set number-causes the line numbers to be displayed.

$set nonumber-to turn off the line numbers


$set ignorecase-causes searches to be case insensitive


$help- to list other such commands along with their usage and parameters.


To spell check in a vi editor:

To do spell check without leaving the vi session, try the following key sequence
inside the vi:

$w !spell -b

This command will give u the list of the commands that are mispelled.
Read rest of entry

01 January, 2009

test






Read rest of entry
 

Terminal Diary | techblog Copyright © 2009 Gadget Blog is Designed by jintu jacob Powered by Blogger