sudo rm /var/crash/*
Then hit Enter.
This will remove any old crashes, that might still be reported (in error). After a reboot/re-starting, any further pop-ups still need to be investigated.
Ubuntu has an error reporting system called apport which tries to catch all program crashes in the background and report them to help the developers.
It seems that after a dist-upgrade there are stuck some reports that are tried to be resubmitted somehow, but disabling apport is not a desirable solution.
Remove old crash-reports
Open a terminal and remove all old crash-reports that might exist in the crash-report directory:
sudo rm /var/crash/*
After a reboot the popups are gone.
If you don't want to reboot, you can close all open popups with:
killall system-crash-notification
(Any further new pop-ups still should be investigated. If you want to see the details,
look in /var/crash/ for any new reports)
Here's how to disable Apport,
The system that reports errors to Canonical:
Open your terminal and type:
gksudo gedit /etc/default/apport
And hit Enter.
Change enabled=1 to enabled=0, then save and exit.
My Journey Learning Linux.
Sunday, September 13, 2015
Friday, August 28, 2015
Ubuntu Command Line Interface (CLI) Find Command - How to Find FIles In Ubuntu With Terminal.
The Fantastic Find Command:
Ubuntu and most Linux distributions (called distro's) come standard with a GUI (graphic user interface) file management system. In other words this file manager may look pretty, and is even almost adequately functional to the casual user. From a power-users perspective though, the GUI is notoriously more frustrating then practical. Querries are often incomplete, and because of the open source nature of Linux files and packages are often installed incorrectly.Besides... if you wanted a pretty, bloated, function less, overpriced, virus magnet, by all means Windows 10 is coming out....but that's not you or me, is it?
The real power of Linux lies in the CLI... so lets start looking for nerd-zen and bust through that learning curve.
Locate
The Locate command will not show files that you don't have access to. (examples would be hidden system files, protected user files etc)
locate -i file.extension
eg: locate -i kdenlive.desktop
{note: the "-i" tells Linux to turn off case sensitivity....unlike Windows, Linux is case sensative}
Find
To find files that are hidden and/or assign modifiers to your querries use the: find commandTo gain access to hidden files, directories and packages you need to log in as super user.
Open up Terminal
sudo find / -type f -mmin -10
{sudo = super user, find = find, / = which directory to explore, this / tells Linux to look in the root directory, -type f = normal file type's, -mmin -10 = finding files that were modified less then 10 minutes ago. the 10 can be substituted with any time you need that fits your situation}
Find and Execute a command at the same time
How to find a file/package/directory/etc and execute a command to it at the same time
Open up Terminal
find ~ -iname "*xxx*" -exec mv -v {} /media/pr
{find =find, ~ = in home directory, -iname = ignore case ,"*xxx*" package containing "xxx", -exec = execute, mv -v {} /media/pr }
Thursday, August 27, 2015
Installing and Maintenance of Packages and Apps in Ubuntu
"Program" Package Management in Linux/Ubuntu- 101
This is the clear explanation I never found on the web, and once I understood this concept, Linux became less of a mystery. Before, Linux was as mysterious to me as a Woman's mind. After I embraced what I am about to hopefully explain as correctly and simply as possible, Linux became much less mysterious... say somewhere along the lines of the Great Pyramids of Giza...
APT
Linux manages software through packages, individual units of software that contain user interfaces, modules, and libraries. Most applications link several co-dependent packages together, and still others allow you to choose which packages to install and which to leave out at your own discretion. This can get confusing, so there’s a package manager at your disposal to help
Each Linux distribution has its own package management system. For our own near and dear Ubuntu, it’s the Advanced Packaging Tool. It has a family of commands that allows you to add repositories; search for, install, and remove packages; and even simulate upgrades and such. The commands are fairly easy to remember and use, so you’ll be managing your system’s software in no time at all!
APT requires super-user permissions, as it deals with core aspects of the system, so in Ubuntu you’ll need to preface most commands with “sudo.”
Searching for Packages
The command to search for software is:
apt-cache search [search term 1] [search term 2] … [search term n]
Replace [search terms] but don’t use brackets. You’ll get an output like this:
You can search for terms in the description of packages, say for a solitaire game, or by package name. Some searches may yield a ton of results, so you can scroll through the list with the following command:
apt-cache search [search terms] | less
There’s a pipe in the middle of that command (it shares a key with \). The less command will allow you to scroll through your list with the arrow keys, page up/down keys, and space, b, and enter. Hit q to exit the list and go back to the prompt.
Adding Repositories
You can find more software in repositories found online. Take, for instance, Ubuntu Tweak, a program that lets you change some hidden or otherwise difficult-to-change settings for your system. It’s hosted at another repository. If you add the repository instead of downloading and installing just the package, the system will notify you of updates and automatically keep it up-to-date for you.
You can manually add and change repositories by editing APT’s sources file:
sudo add-apt-repository [repository name here]
Let’s look at Ubuntu Tweak’s repo to see what it’ll look like in practice:
sudo add-apt-repository ppa:tualatrix/ppa
After adding repositories, you have to update your package list.
sudo apt-get update
That will update the package lists from all repositories in one go. Remember to do this after every added repository!
Installation
Now that you’ve added your software repository and updated your package list, and found the package name you need, you can install it.
This will download and install all of the packages listed. If there are dependencies – other prerequisite packages – they will also be installed. Sometimes you’ll also see a list of recommended but optional packages to go along with your selection. Sometimes, you’ll also see a confirmation prompt, though not always.
Often, you’ll see a core package with other linked packages, so installing this one will automatically install the dependencies and sometimes its associated packages, too.
sudo apt-get remove [package name 1] [package name 2] … [package name n]
If you want to get rid of the configuration files and associated directories (usually in the user’s home directory), you’ll want to add the purge option:
sudo apt-get remove –purge [package name 1] [package name 2] … [package name n]
There are two dashes there. This will come in handy if a program isn’t working properly. By purging upon removal, you’ll can have a “clean” install.
Most of the time, you can just choose the core package and the associated ones will be removed as well. If it doesn’t, you can use the following command:
sudo apt-get autoremove
This will automatically remove any packages that aren’t used or associated with any installed program. For example, if you got rid of a core package, autoremove will get rid of it’s associated packages and any dependencies it had, so long as no other program is using them. It’s a great way to clean up any unused libraries and packages you don’t need.
Upgrading Software
So, what if your packages need upgrading? You can upgrade individual programs with the following command:
sudo apt-get upgrade [package name 1] [package name 2] … [package name n]
Or, you can upgrade all packages by having no further arguments:
sudo apt-get upgrade
This will tell you how many and which packages need updating and will ask for a confirmation before it continues.
Remember, you may need to update first. Upgrade will replace older versions of programs with their newer versions. This is a replacement process; the same package name is required and the older version is replaced with a newer version. No completely new packages are installed and no packages are uninstalled.
Some programs don’t quite work that way. They require a package with a slightly different name to be removed and a new one with a different name to be installed. Sometimes a program’s new version has a new required package. In these cases, you’ll need to use dist-upgrade.
sudo apt-get dist-upgrade [package name 1] [package name 2] … [package name n]
sudo apt-get dist-upgrade
Now, all of the dependencies will be satisfied no matter what. If you aren’t into micro-managing your packages, then this is the command you’re going to use.
If you only want to see which packages will be upgraded if you were to hypothetically run the command, you can simulate an upgrade with the –s option.
sudo apt-get –s upgrade
This is really useful if you aren’t sure if upgrading one package will mess up other programs, which happens occasionally with things like PHP and mail server libraries.
sudo apt-get clean
If you want to get rid of your cache, but save the newest versions of what packages you have, then use this instead:
sudo apt-get autoclean
This will get rid of the older versions which are pretty much useless, but still leave you with a cache.
Checking What’s Installed
You can see a list of all your installed packages with dpkg.
sudo dpkg –list
You can also use less to scroll through this list.
sudo dpkg –list | less
You can also search through the list with the grep command.
dpkg –list | grep [search term]
If something is installed, you’ll see a package name and a description.
You can also search through a more compact method:
dpkg –l ‘search term’
That option is a lowercase letter L, and your search term must be inside single quotes. You can use wildcard characters to search better as well.
Removing Packages
If you want to get rid of a program, you can uninstall its associated packages.sudo apt-get remove [package name 1] [package name 2] … [package name n]
If you want to get rid of the configuration files and associated directories (usually in the user’s home directory), you’ll want to add the purge option:
sudo apt-get remove –purge [package name 1] [package name 2] … [package name n]
There are two dashes there. This will come in handy if a program isn’t working properly. By purging upon removal, you’ll can have a “clean” install.
Most of the time, you can just choose the core package and the associated ones will be removed as well. If it doesn’t, you can use the following command:
sudo apt-get autoremove
This will automatically remove any packages that aren’t used or associated with any installed program. For example, if you got rid of a core package, autoremove will get rid of it’s associated packages and any dependencies it had, so long as no other program is using them. It’s a great way to clean up any unused libraries and packages you don’t need.
Upgrading Software
So, what if your packages need upgrading? You can upgrade individual programs with the following command:
sudo apt-get upgrade [package name 1] [package name 2] … [package name n]
Or, you can upgrade all packages by having no further arguments:
sudo apt-get upgrade
This will tell you how many and which packages need updating and will ask for a confirmation before it continues.
Remember, you may need to update first. Upgrade will replace older versions of programs with their newer versions. This is a replacement process; the same package name is required and the older version is replaced with a newer version. No completely new packages are installed and no packages are uninstalled.
Some programs don’t quite work that way. They require a package with a slightly different name to be removed and a new one with a different name to be installed. Sometimes a program’s new version has a new required package. In these cases, you’ll need to use dist-upgrade.
sudo apt-get dist-upgrade [package name 1] [package name 2] … [package name n]
sudo apt-get dist-upgrade
Now, all of the dependencies will be satisfied no matter what. If you aren’t into micro-managing your packages, then this is the command you’re going to use.
If you only want to see which packages will be upgraded if you were to hypothetically run the command, you can simulate an upgrade with the –s option.
sudo apt-get –s upgrade
This is really useful if you aren’t sure if upgrading one package will mess up other programs, which happens occasionally with things like PHP and mail server libraries.
Cleaning
When you download packages, Ubuntu caches them in case it needs to refer to them further. You can delete this cache and get back some hard drive space with the following command:sudo apt-get clean
If you want to get rid of your cache, but save the newest versions of what packages you have, then use this instead:
sudo apt-get autoclean
This will get rid of the older versions which are pretty much useless, but still leave you with a cache.
Checking What’s Installed
You can see a list of all your installed packages with dpkg.
sudo dpkg –list
You can also use less to scroll through this list.
sudo dpkg –list | less
You can also search through the list with the grep command.
dpkg –list | grep [search term]
If something is installed, you’ll see a package name and a description.
You can also search through a more compact method:
dpkg –l ‘search term’
That option is a lowercase letter L, and your search term must be inside single quotes. You can use wildcard characters to search better as well.
Monday, August 24, 2015
1) I cannot add workspaces
1) I cannot add workspaces in Ubuntu running cairo dock
https://answers.launchpad.net/cairo-dock-core/+question/253206
https://answers.launchpad.net/cairo-dock-core/+question/253206
Tuesday, August 18, 2015
Windows 8 Virus and Malware Removal Procedure
There are literally thousands upon thousands of tools and utilities that all claim to clean your system up with the push of a button...
This is rarely the case of course. So I set out to develop my own procedure, and in the spirit of open source I am posting my procedure and notes, and invite you to critique what you see in the comments below.
1: You suspect your system has contracted a bug.
The car analogy: Think of your computer system as if it were a car. A car requires regular and consistent maintenance to keep it up and running safely and efficiently. Pay attention to things that your computer has either all of a sudden stopped doing, like failing to open I E or Firefox. Perhaps your system has either noticeably slowed down or sped up (some virus's will actually make the computer ran faster.
2:Disable "Windows System Restore"
The reason to disable system restore is to prevent the bugs from hiding out.
Open the start menu,
RC on Computer
LC Properties
LC system protection
LC on the C drive (the drive that Windows is usually store on)
1: You suspect your system has contracted a bug.
The car analogy: Think of your computer system as if it were a car. A car requires regular and consistent maintenance to keep it up and running safely and efficiently. Pay attention to things that your computer has either all of a sudden stopped doing, like failing to open I E or Firefox. Perhaps your system has either noticeably slowed down or sped up (some virus's will actually make the computer ran faster.
2:Disable "Windows System Restore"
The reason to disable system restore is to prevent the bugs from hiding out.
Open the start menu,
RC on Computer
LC Properties
LC system protection
LC on the C drive (the drive that Windows is usually store on)
Monday, August 17, 2015
Subscribe to:
Posts (Atom)