Ubuntu Startup slow problem (turn)

Source: Internet
Author: User

After using Ubuntu for a while, it turns out that Ubuntu is starting to slow down.

I'm looking for a reason to get some stuff.

This will cause the launcher to run in parallel, speeding up the startup process
Reference
Code:

sudo kate/etc/init.d/rc


(Note: Here with gedit Open may be garbled, change an editor, such as Nano,vi or something on the OK)

Locate and modify the line:

Concurrency=none

For:

Concurrency=shell

Make sure your spelling is correct and you write the wrong letter you will not be able to start ...

This approach works best if you're using SATA or SCSI, but even on a machine like ATA, it makes the GDM login interface faster.

If you use very old hardware, this method may also cause your machine to start slowing down.




1. Delete the residual Config package (not installed residual configuration) file.
Open System-System management-The new Package Manager, click on the bottom left corner of the "State", click on "Not Installed residual configuration" (if not, congratulations, your system is cleaner, see 2.), right click Item Tick "mark for complete deletion", click the "Apply" button above.

2. Remove the incomplete package. Open the terminal, enter

sudo apt-get AutoClean

This command deletes all packages that are incomplete (download not complete).

Deletes an orphaned library file. New Search to install Deborphan.

sudo deborphan

View orphaned (no dependencies) library files. Run the following command to delete them

sudo Deborphan | Xargs sudo apt-get-y remove--purge


sudo apt-get autoremove



Linux Desktop Slimming Acceleration Tool Group

Trans-purge is a friend of the other side. Hong Jin (also the author of PCMan File Manager) writes a set of gadgets that will make the Linux desktop thinner and enable the program to speed up its startup. This set of tools includes three Desktop-purge, Mime-purge and Gconf-purge. Among them, Desktop-purge can delete useless translation content from *.desktop file, Mime-purge can delete useless translation content in mime-database; Gconf-purge for gconf schema To remove the unwanted translations from the text. In general, the Trans-purge gadget is designed to make Linux leaner and faster for programs to start by removing useless multi-language translations from the system. After Trans-purge, the Linux system will be left with only English and the locale currently in use.

Trans-purge This set of gadgets uses the following procedure:

1. Download the source code:

wget http://pcman.sayya.org/desktop-purge.c
wget http://pcman.sayya.org/mime-purge.c
wget http://pcman.sayya.org/gconf-purge.c
2. Installation Compilation dependency:
sudo apt-get install Libglib2.0-dev
3. Compile the program:

GCC ' pkg-config glib-2.0--cflags--libs '-O desktop-purge desktop-purge.c
GCC ' pkg-config glib-2.0--cflags--libs '-O mime-purge mime-purge.c
GCC ' pkg-config glib-2.0--cflags--libs '-O gconf-purge gconf-purge.c
4. Installation program:

sudo cp desktop-purge/usr/bin/
sudo cp mime-purge/usr/bin/
sudo cp gconf-purge/usr/bin/
5. Perform cleanup:
1. Manual Cleaning:

sudo desktop-purge
sudo mime-purge
sudo gconf-purge
2. Automatic Cleaning:

Let the software automatically clean up every time the Apt-get is installed. Create the/etc/apt/apt.conf.d/99-transpurge file and add the following:

DPkg
{
Post-invoke {"If" $ (ps w-p "$PPID" | Grep-c remove)!= 1]; Then/usr/bin/desktop-purge >/dev/null; /usr/bin/mime-purge >/dev/null; /usr/bin/gconf-purge >/dev/null; else exit 0; Fi ";};
};

Warning: Useless translation can not be restored after the removal, if the use of the system damage, the author is not responsible.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.