Tuesday, July 29, 2008

Rarely used but important Command in LInux

For fastest searching in linux

locate' and 'updatedb' are the front runners in searching for the existence of any file on a Linux system.

In order to operate efficiently, 'locate' uses a database rather than hunting individual directory paths.

For this to operate, and remain current, it means the database itself must be updated.

To do to this, 'updatedb' is invoked.


#updatedb //updatedb created indexing

#locate *.jpg //locate to serch file



-------------------------------------------------------------------------------
To detach command from terminal or run command as daemon

#nohup script.sh > /dev/null &
or
#nohup ./script/server webrick -p 3001 > /dev/null &

--------------------------------------------------------------------------------
//to choose correct path of installed java

#sudo update-alternatives --config java

-----------------------------------------------------------------------------
For remotet connection

rdesktop -u administrator -g 1280x1024 -T Broadwing -a 16 -x I -r sound:remote 192.168.1.4

The parameters I have set are:
-u username to use on teh login screen (you can also specify password and domain)
-g Screen size (can be also represented by a percentage - I use specific due to my Xinerama dual monitor setup)
-T Title of window (doesn't affect anything but I can quickly find my rdesktop on my taskbar
-a Color depth
-x Experience (similar to the Experience tab on the Windows RDP client) I use I due to a LAN connection
-r Device redirection (used to map client device from the remote computer) I have the sound playing on the laptop due to my softphone application with my headset. Most common would be mapping your Linux printer to the computer you are connected to

The most likely cause of your connection refused is a Windows issue. Check to ensure the remote computer is accepting remote connections. This is verifed through right-click My Computer>Properties>Remote Tab.

Keep in mind that only XP Pro or Windows 2000 and 2003 server support remote desktop. If the remote computer is running Xindows XP Home, it doesn't support remote desktop.

No comments: