BB1.png' alt='Install Imagemagick On Ubuntu Server Backup' title='Install Imagemagick On Ubuntu Server Backup' />How do I resolve unmet dependencies after adding a PPA Note All commands asked to be run must be run in the terminal, which can be opened by either CtrlAltT or searching for terminal in the dash.Is it really brokenYou see, in high school, my friends and I ran an underground ring of calculator game sharing.The process was simple.With a special cable you could install games you.Try running the following command and try to reinstall the software you were trying to installsudo apt get update.Pre Perfomance Steps Backing up Back up the following files etcaptsources.To do so, use these commandssudo cp etcaptsources.Clearing your apt cache apt keeps a cache of recently downloaded packages to save bandwidth when it is required to be installed.This can be counter productive in some cases.Now, to clean it, you have two optionssudo apt get clean.This will remove all cached packages belonging to the folder varcacheaptarchives and varcacheaptarchivespartial except the.Install Imagemagick On Ubuntu Server Backup' title='Install Imagemagick On Ubuntu Server Backup' />This is recommendedsudo apt get autoclean.This scans the folders varcacheaptarchives and varcacheaptarchivespartial and checks if the package is still in the repositories and removes the ones that arent Fixing dependencies Using apts fix broken mode sudo apt get f install.This will cause apt to scan for missing dependencies and fix them from the repositories.If the output states that nothing new was installed or upgraded, it has failed.Checking if all required sources are enabled Type gksu software properties gtk and youll get this window.Make sure all sources are enabled.Other software tab and check if the required PPAs for the software to be installed are there and are enabled.Also, try disabling some PPAs which might be having broken packagesnow, run sudo apt get update.Try installing the software now Selecting a better server to download from Type gksu software properties gtk and youll get this window.Click the Download from the Dropdown box and select other.Click Select Best Server.Run sudo apt get update.Try installing the softwarealso, try using sudo apt get install f PPA Purge This is a tool used to purge brokenunwanted ppas and their applications along with it.To install it, runsudo apt get install ppa purge.But, Considering the question apt is broken so the above command will fail.So use this commandmkdir ppa purge cd ppa purge wget http mirror.Now use ppa purgesudo ppa purge ppa someppappa.Y PPA Manager Y PPA Manager is a gui app that helps you manage PPAs and various problems assosiated with it.To install itsudo add apt repository ppa webupd.Considering the question, apt is broken so, use these command insteadsudo su.Bit mkdir y ppa manager cd y ppa manager wget https launchpad.Bit mkdir y ppa manager cd y ppa manager wget https launchpad.Now type in y ppa manager.Youll be presented with this window.Double click on advanced, and youll get this window.Do the following Tasks outlined in black.Prevention is better than cure.It is better to prevent than to search for this question on Ask.Ubuntu DSo, here are the guidelines to keep you safe Keep your system up to date always run the following command regularlysudo apt get update sudo apt get upgrade.Update Manager with this command gksu update manager.Using only trusted PPAs Only use PPAs meant to be used on Ubuntu also, only use PPAs with trusted sources.Infact, the package might already be in the ubuntu repositories Backing up when things are good and restoring it later For this you need Y PPA Manager.The steps to install it are given above.Caesar Ii Verification And Validation Manual Woodworkers there.Run this command to open Y PPA Managery ppa manager.Youll be presented with this window.Double click on advanced, and youll get this window.Run this Youll be asked to save a tar.Save it in another partition or a safe place.Later, when you need to restore it again, follow similar steps and when you get to the advanced dialog,Click on this Youll be asked to restore from the previous backup which you saved before with a dialog similar to the one below All In one Script Coming soon Still not working Package dependency errors are not always generic and depends on the package to be installed.If following all the steps given to fix the error does not work for you, you can always ask on Ask Ubuntu.Here are some commands which you need to post the output ofsudo apt get install packagename.Thanks to Basharat SialThere are also other filescommands that you need the output of that might be error specific, and users will probably prompt you in the comments to post the filecommand.Linux tips every geek should know.What separates average Linux users from the super geeks Simple years spent learning the kinds of hacks, tricks, tips and techniques that turn long jobs into a moments work.If you want to get up to speed without having to put in all that leg work, weve rounded up over 5.Linux tips to help you work smarter and get the most from your computer.Enjoy UPDATE If these tips arent enough and you want even more, make sure you check out More Linux tips every geek should know1 Check processes not run by you Difficulty Expert.Application bash.Imagine the scene you get yourself ready for a quick round of Crack Attack against a colleague at the office, only to find the game drags to a halt just as youre about to beat your uppity subordinate what could be happening to make your machine so slow It must be some of those other users, stealing your precious CPU time with their scientific experiments, webservers or other weird, geeky things OK, lets list all the processes on the box not being run by you Or, to be a little more clever, why not just list the top ten time wasters.It is probably best to run this as root, as this will filter out most of the vital background processes.Now that you have the information, you could just kill their processes, but much more dastardly is to run xeyes on their desktop.Repeatedly 2 Replacing same text in multiple files Difficulty Intermediate.Application findPerl.If you have text you want to replace in multiple locations, there are several ways to do this.To replace the text Windows with Linux in all files in current directory called testsomething you can run this.WindowsLinux test.To replace the text Windows with Linux in all text files in current directory and down you can run this.WindowsLinuxig Or if you prefer this will also work, but only on regular files.WindowsLinux.Saves a lot of time and has a high guru ratingFix a wonky terminal Difficulty Easy Application bash.Weve all done it accidentally used less or cat to list a file, and ended up viewing binary instead.This usually involves all sorts of control codes that can easily screw up your terminal display.There will be beeping.There will be funny characters.There will be odd colour combinations.At the end of it, your font will be replaced with hieroglyphics and you dont know what to do.Well, bash is obviously still working, but you just cant read whats actually going on Send the terminal an initialisation command.Creating Mozilla keywords Difficulty Easy.Application FirefoxMozilla.A useful feature in Konqueror is the ability to type gg onion to do a Google search based on the word onion.The same kind of functionality can be achieved in Mozilla by first clicking on Bookmarks Manage Bookmarks and then Add a New Bookmark.Add the URL as.Now select the entry in the bookmark editor and click the Properties button.Now enter the keyword as gg or this can be anything you choose and the process is complete.The s in the URL will be replaced with the text after the keyword.You can apply this hack to other kinds of sites that rely on you passing information on the URL.Alternatively, right click on a search field and select the menu option Add a Keyword for this Search.The subsequent dialog will allow you to specify the keyword to use.Running multiple X sessions Difficulty Easy.Application X.If you share your Linux box with someone and you are sick of continually logging in and out, you may be relieved to know that this is not really needed.Assuming that your computer starts in graphical mode runlevel 5, by simultaneously pressing the keys ControlAltF1 you will get a login prompt.Insert your login and password and then execute.To go back to the previous user session, press CtrlAltF7, while to get yours back press CtrlAltF8.You can repeat this trick the keys F1 to F6 identify six console sessions, while F7 to F1.X sessions.Caveat although this is true in most cases, different distributions can implement this feature in a different way.Faster browsing Difficulty Easy.Application KDE.In KDE, a little known but useful option exists to speed up your web browsing experience.Start the KDE Control Center and choose System KDE performance from the sidebar.You can now select to preload Konqueror instances.Effectively, this means that Konqueror is run on startup, but kept hidden until you try to use it.When you do, it pops up almost instantaneously.Bonus And if youre looking for more KDE tips, make sure you check out our article, 2.KDE 4. Can You Download Movies On Bearshare Pro more. Backup your website easily Difficulty Easy.Application Backups.If you want to back up a directory on a computer and only copy changed files to the backup computer instead of everything with each backup, you can use the rsync tool to do this.You will need an account on the remote computer that you are backing up from.Here is the command.Here we are backing up all of the files in homejonoimportantfiles on 1.Keeping your clock in time Difficulty Easy.Application NTP.If you find that the clock on your computer seems to wander off the time, you can make use of a special NTP tool to ensure that you are always synchronised with the kind of accuracy that only people that wear white coats get excited about.You will need to install the ntpdate tool that is often included in the NTP package, and then you can synchronise with an NTP server.A list of suitable NTP servers is available at www.If you modify your boot process and scripts to include this command you can ensure that you are perfectly in time whenever you boot your computer.You could also run a cron job to update the time.Finding the biggest files Difficulty Easy.Application Shell.A common problem with computers is when you have a number of large files such as audiovideo clips that you may want to get rid of.You can find the biggest files in the current directory with.Srh.The r causes the large files to be listed at the end and the h gives human readable output MB and such.You could also search for the biggest MP3MPEGs ls l.Srh mp You can also look for the largest directories with.Nautilus shortcuts Difficulty Easy.Application Nautilus.Although most file managers these days are designed to be used with the mouse, its also useful to be able to use the keyboard sometimes.Nautilus has a few keyboard shortcuts that can have you flying through files.Open a location CtrlL.Open Parent folder CtrlUp.Arrow keys navigate around current folder.You can also customise the file icons with emblems.These are little graphical overlays that can be applied to individual files or groups.Open the Edit Backgrounds and Emblems menu item, and drag and drop the images you want.Defrag your databases Difficulty Easy.Application My.SQL.Whenever you change the structure of a My.SQL database, or remove a lot of data from it, the files can become fragmented resulting in a loss of performance, particularly when running queries.Just remember any time you change the database to run the optimiser.You may also find it worth your while to defragment your database tables regularly if you are using VARCHAR fields these variable length columns are particularly prone to fragmentation.Quicker emails Difficulty Easy.Application KMail.Cant afford to waste three seconds locating your email client Cant be bothered finding the mouse under all those gently rotting mountains of clutter on your desk Whatever you are doing in KDE, you are only a few keypresses away from sending a mail.Press AltF2 to bring up the Run command dialog.Type.Press return and KMail will automatically fire up, ready for your words of wisdom.You dont even need to fill in the entire email address.This also works for Internet addresses try typing www.Konqueror.Parallelise your build Difficulty Easy.Application GCC.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |