Showing posts with label Linux commands. Show all posts
Showing posts with label Linux commands. Show all posts

Browse Usenet in KDE Linux With KNode

 Open TerminalUsenet, a few years ago, before message boards and web forums, “was” message boards and forums.  Long ago (back in the early 90s!), in the days before web browsers like we know them (with pictures, Flash games, embedded videos, etc.), the Internet was text-only.
You read your email with a program like Pan, and later basic text-only clients, and you browsed the web using software such as Gopher.  Usenet clients were similar to today’s message boards in that you could post messages to them, and anyone who wanted to read them was able to.  People could reply to messages so that everyone could read the reply (by simply posting a message to the same group), or email the individual poster.

Get the Path to an Icon in Linux with a Nautilus Script

Linux is nothing if not customizable.  And this is not to say that the customizability comes with a price (although who hasn’t spent far too much time trying to figure out exactly which wallpaper out of a pack of 300 would be perfect for a favorite combination of themes and icons?), but sometimes there’s just so much you can change that you begin to lose track of where things are!  “Did this icon set come with the theme?”  “Where did I download this?”  If I delete this theme, will the wallpaper disappear as well?”
This article doesn’t have the answers to all those questions, but it will help you with one specific task: finding an icon.

GNOME Linux uses Nautilus as its default file manager, and Nautilus can use scripts.  Scripts are little bits of code, tiny programs if you will, which can be accessed instantly from the scripts folder in your right-click contextual menu.  They’re almost always intended to act upon whatever you had highlighted when you clicked.  So, for instance, if you download a script that can convert music from one format to another, you would right-click on a music file (MP3, AAC, WMA, etc.), and the script would assume you wanted to convert that item.
The where-is-this-icon script works the same.  Right-click on any folder, file or desktop launcher, and it will give you the direct path to where the icon that item uses is stored on your computer.  This is great for when you see an icon you like, and might want to use with another file, but just don’t have a real good idea where the icon is located.

Downloading The Script

First you’ll need to head to the script’s home page on gtk-apps.org; the direct link is right here.
Script Page on GTK Apps
Once you’re there, simply scroll down to the download link and click it.
Click the Download Link
You’ll get the typical “wait 3 seconds” screen, and then the download should begin.
Wait three Seconds
The download, however, may not simply download as you’d expect; the script itself might load in your web browser window.
Script Downloads in Browser Window
If that’s the case, just save the page as plain text.  Go to the File menu of your browser (in Firefox, at least), and click the Save Page As option.
Save the Script
Then just choose a download location, and you’re done.

Installing and Using The Script

Once the script has downloaded, locate it on your computer and right-click it.  Choose the Properties option from the contextual menu.
View Properties
When the Properties window appears, select the Permissions Tab.
Permissions Tab
Then, at the bottom, make sure the Allow executing file as program option is checked.
Execute as Program
That accomplished, close the Properties window and open a Terminal; we need to properly install the script.
Open Terminal
Type the following:
mv /home/username/Desktop/where-is-this-icon /home/username/.gnome2/nautilus-scripts/
Note: make sure to substitute the actual path to the script (where you saved it), as well as replace “username” with your own username.  Also, if the nautilus-scripts folder doesn’t exist yet, this command will create it.
Now that we have the script installed, it’s fairly trivial to use.  As stated earlier, the script can show us the path to the icon for a file, folder or launcher.  Here’s what it looks like finding a launcher’s icon.  Right-click the item, then navigate down to the scripts folder, and choose the where-is-this-icon script.
Select Script
A new window should pop up, informing you that the item has no set icon (as is sometimes the case), or the path to the icon, as shown below:
Location of Icon
It’s that simple!  The where-is-this-icon script is truly a one-trick pony.  It doesn’t do anything more than this, and probably never will.  But it is certainly a nice time-saver for those moments when you love an icon… but you just don’t know where it’s located.  With where-is-this-icon installed, now you know!

Understanding the “top” command in Linux

If your computer seems to grind to a halt every once in a while, or your fans seem to be running often, and loudly, it’s a good idea to see if any particular program is causing the problem, or if your computer maybe just isn’t up to the tasks you’ve been giving it.
Maybe Firefox – with tons of tabs all running Flash games and YouTube videos – is the culprit, or maybe you have a “stuck” process from a program you thought you closed.  The causes can be varied, but there’s one program in Linux that can at the very least give you a glimpse into what’s happening.

That is the top command.  Using top is pretty simple.  First, open a Terminal.
Open Terminal

Basic Linux Commands

Here are some basic commands to get you started in the wonderful world of Linux and other UNIX variants. All of these commands should work from your command prompt (regardless which shell you’re using).You MUST press enter to invoke the command.All UNIX and Linux commands are case sensitive. There are of course thousands of Linux related commands and procedures.

You can also execute multiple commands by separating each one with a ; for example cd newdir; mkdir thatdir ; ls -la will first change directories to the newdir directory, then create a directory called thatdir, then list all the files in long format. You can string together as many commands as you like but caution should be used not to inadvertently do anything harmful.
If you think some thing need to be added to this list let me know.
access – determine whether a file can be accessed
Syntax
access -mode file