"; */ ?>

linux


2
Feb 08

Discover Owners of SVCHOST.EXE

Microsoft Windows (any flavor) is known to be very secretive and dishonest when it comes to telling its user/client/owner what is taking up sooo much system resources, and answer the question “why is my Windows so slow?“.

If you take a closer look at your Windows system you will notice that many CPU cycles and megabytes of RAM belongs to the process with very non-descriptive name “svchost.exe“. You can go to windows task manager by pressing “Ctrl+Alt+Del” and choosing task manager (if it does not come up by itself), or by running “taskmgr” command in your run window “Start -> Run” (more about the second approach in this arcticle “Windows Commands: Think You Know It All !?). So here is an example of a Windows Task Manager:

windows task manager processes

(click on “Processes” tab to get to the same view)

This is a snapshot of a “clean” Windows that has just started with NO custom applications running (well besides “mspaint.exe” to get a snapshot, which is ultra small). And already you can see there are 6(!) “svchost.exe” processes that take up RAM and will take up a lot of CPU when you start your Internet Browser, e-mail client, MS Office, Games, etc…

But if you ask what these “svchost.exe” processes responsible for, who started them, and who is their owner, Windows will say: “You are an average Windows user, we exposed everything you need through window managers, if you are unhappy, well.. tough luck”. And that happens to most of people who use Windows, because most people who are technical enough will use something like Linux or if budget allows people would go for Mac.

So here is a simple howto, for all people who are still on Windows, on identifying and disabling owners of “svchost.exe”.

To see the owners follow these two simple steps:

  • Go to “Start->Run”
  • Type “cmd” and press “Enter”. Black command screen will pop up. (Don’t be afraid of it – it is your friend :) )
  • In this back command prompt (what people call it) type “tasklist /svc” and press “Enter”

You should see something similar to the picture below:

tasklist /svc - Discover owners of svchost.exe

Now you can actually see the “services” that are hidden behind this meaningless name “svchost.exe”. Well, that is one step forward, but now what?

Now you can go to Windows Service manager and read about each service that is using “svchost.exe”. Let’s do together:

  • Go to “Start->Run”
  • Type “services.mcs” and press “Enter”

windows start->run services.mcs

After you press “Enter”, you should see windows services manager:windows services manager

Browsing through the services you can read their description and decide whether or not you want the service to run.

There is another quicker way to enable/disable services, but without their descriptions:

  • Go to “Start->Run”
  • Type “msconfig” and press Enter

windows start->run msconfig

After pressing “Enter”, you should see “System Configuration Utility”:

msconfig -> System Configuration Utility

Click on “services” tab to get the above view. As you can see you can “check/uncheck” desired services to change their state from “Running” to “Stopped”. But if you unfamiliar with a particular service, read its description first in “windows services manager”, or google it, if it is not there.

Keep up a “clean” and fast Windows system, and good luck!


7
Dec 07

X11 Forwarding with SSH

xorg
Here is how to configure X11 forwarding with ssh.
Takes under a minute to configure:

1. On the SERVER: set “X11Forwarding yes” in your

	/etc/ssh/sshd_config

2. On the SERVER in the USER’s home dir:

	sudo rm -f .Xauth*

3. On the client:

	ssh -2 -4 -C -X -v USER@SERVER

4. Once logged in to the SERVER run “xclock” to confirm

done :)


5
Dec 07

Russian Roulette in Bash

russian roulette in bash

# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live”

* You either live or …. rm -rf / :)


21
Nov 07

Add Launcher to “Avant Window Navigator”

    Lately it has become a very painful experience for many people (according to forums/articles/open tickets) to add new launchers to Avant Window Navigator. I have taken a look at it and figured out a rather hacky approach to make it work.

    First I will manually create a "desktop" launcher.

( If you already have one, open it with any text editor (vi, gedit, etc..) and make sure it follows the structure of my "desktop" launcher )

   In order to create the launcher, I have to know two things:

       – the path to the file we would like to launch

       – the path to the icon we would like to use

    In this example, I am going to create a launcher to some program called Aptana, in your case it may be any other program. I know that Aptana executable file is located here: "/opt/aptana/Aptana". I also found an icon I would like to use for it, and put it here: "/home/user/icons/aptana_48x48.png".

    Now by knowing two these things, I can open my favorite text editor (vi, gedit, your favorite.. ) and type the following:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name[en_US]=aptana
Exec=/opt/aptana/Aptana
Comment[en_US]=+ RadRails
Icon[en_US]=/home/user/icons/aptana_48x48.png
Name=aptana
Comment=+ RadRails
Icon=/home/user/icons/aptana_48x48.png

    Notice the Exec and Icon parameters are populated with those two things. Name and Comment can be whichever you’d like them to be, in this case I just like them to make sense.

    Now I will save the file (you can save it on your desktop, or anywhere you want your launchers to live) as "aptana.desktop" (permissions could be "-rw-r–r–", or you can make it less restrictive if you like).

    And.. I am ready for the final step "drag & drop" (!). For this I go to the directory where I saved the "aptana.desktop" file using Nautilus/Konqueror/Other GUI browser, click on the file, drag it to Avant’s launcher bar, and drop it there. Tam tam tam – it is there -> I am done! So do you!

    Make sure your "desktop" file is the format shown above, since it is tested and works.


16
Oct 07

Ubuntu Gutsy Gibbon Parties all over the World

Ubuntu LogoAccording to Ubuntu once Ubuntu 7.10 (Gutsy Gibbon) is out, there will be plenty to celebrate, whether you were directly involved in the release process or just rejoice because the next iteration of the best distribution is finally out.

    Thursday, 18th of October ‘2007 is the tentative date for Ubuntu 7.10. Many parties will be on this date, or you can pick your own date! Go ahead and put down your favorite pub, park or cafe and celebrate getting Gutsy Gibbon out of the door!

   Ubuntu Feisty Fawn

    get it while its hot :)

    Come and join Ubuntu parties all over the Globe! The schedule of already "Confirmed Parties" are here

picture’s source