Home > Ubuntu > Pulizia Ubuntu 12.10 da teminale con output e qualche commento

Pulizia Ubuntu 12.10 da teminale con output e qualche commento

New_icons_17   Pulire e ottimizzare Ubuntu risorse

Inizio generazione post in data 08/02/2012 postato in febbraio per non sporcare troppo il blog

Manolo ha incontrato problemi nell’attuare i comandi Clean up and optimize Ubuntu 12.10 Quantal Quetzal. La procedura non dovrebbe generare problema ecco di seguito l’output dei comandi  della macchina principali che utilizzo. La macchina ha installato oltre ai programmi che danno problemi a Manolo ( virtualbox e ksysguard)  kvm-qemu, wine e ksysguard e molti altri pacchetti.  Opererò un taglia incolla dei comandi presenti nel   che viene visualizzato con Chromium-browser (Version 24.0.1312.56 Ubuntu 12.10 (24.0.1312.56-ubuntu0.12.10.3)). Si inizia sarà un post un po’ lungo.

Cleaning up Ubuntu using the terminal

maurizio@lub12-10-i2c:~$ df -a
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda1       34268912  27630268   4897844  85% /
....
/dev/sda13      98776684  92737976   1021108  99% /media/Backup
/dev/sda14     347591084 304232344  25702064  93% /media/VM
....

Controllo dimenione cartelle

maurizio@lub12-10-i2c:~$ sudo du -sxm  /[^p]* | sort -nr   | head -n 15
8152	/boot
7549	/home
4593	/usr
1247	/var
742	/homeconfig
534	/lib
212	/opt
85	/etc
12	/sbin
9	/bin
4	/root
4	/lib32
2	/run
1	/tmp
1	/srv
------------------------

Noto che ho una directory di troppo /homeconfig  che non dovrebbe essereci la eliminiamo.  La cartella boot è grande pechè contiene diverse iso. Questo mi consete l’avvio delle distribuzioni direttamente da disco anche per installazione.
Home va svuotata un po’.
Rimuovo /homeconfig attenzione ai comandi di rimozione  con sudo molto pericolosi

maurizio@lub12-10-i2c:~$ sudo rm -r /homeconfig

Remove unnecessary libraries and packages:

Interveniamo sui pacchetti per una pulizia

maurizio@lub12-10-i2c:~$ sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get purge && sudo apt-get clean
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Del transmission-common 2.61-0ubuntu2.1 [268 kB]
Del handbrake-gtk 5263svnppa1~quantal1 [5,171 kB]
Del transmission-gtk 2.61-0ubuntu2.1 [358 kB]
Del handbrake-gtk 5262svnppa1~quantal1 [5,171 kB]
Del handbrake-gtk 5267svnppa1~quantal1 [5,172 kB]
Del handbrake-gtk 5275svnppa1~quantal1 [5,188 kB]
Del transmission 2.61-0ubuntu2.1 [1,138 B]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Qui abbiamo gaudagnato poco spazio del resto è una pulizia che effettuo periodicamente  e /var  non era particolarmente ampia tenuto del molto software installato

Now, check and resolve any errors or broken dependencies with:

Controlliamo le dipendenze dei pacchetti mancava il ;   nel post corretto 

maurizio@lub12-10-i2c:~$ sudo apt-get check ; sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Remove orphaned libraries

Rimuoviamo le librerie orpane

maurizio@lub12-10-i2c:~$ sudo apt-get remove --purge `deborphan`; sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bluez-alsa:i386 glib-networking:i386 gstreamer0.10-plugins-good:i386 gstreamer0.10-x:i386 gtk2-engines:i386
  gtk2-engines-murrine:i386 gtk2-engines-oxygen:i386 gtk2-engines-pixbuf:i386 ibus-gtk:i386 libaa1:i386 libaio1:i386
  libao4:i386 libatk1.0-0:i386 libaudiofile1:i386 libavc1394-0:i386 libcaca0:i386 libcairo-gobject2:i386 libcairo2:i386
  libcanberra-gtk-module:i386 libcanberra-gtk0:i386 libcanberra0:i386 libcap2:i386 libcroco3:i386 libcupsimage2:i386
  libcurl3:i386 libdbus-glib-1-2:i386 libdv4:i386 libesd0:i386 libgail-common:i386 libgail18:i386 libgconf-2-4:i386
  libgdbm3:i386 libgdk-pixbuf2.0-0:i386 libgettextpo0:i386 libgnome-keyring0:i386 libgtk2.0-0:i386 libgudev-1.0-0:i386
  libibus-1.0-0:i386 libidn11:i386 libiec61883-0:i386 libjasper1:i386 libmad0:i386 libmikmod2:i386 libnspr4:i386
  libnss3:i386 libodbc1:i386 libpango1.0-0:i386 libpixman-1-0:i386 libproxy1:i386 libpulse-mainloop-glib0:i386
  libpulsedsp:i386 libqt4-designer:i386 libqt4-opengl:i386 libqt4-qt3support:i386 libqt4-scripttools:i386 libqt4-svg:i386
  libqt4-test:i386 libraw1394-11:i386 librsvg2-2:i386 librsvg2-common:i386 librtmp0:i386 libsdl-image1.2:i386
  libsdl-mixer1.2:i386 libsdl-net1.2:i386 libsdl-ttf2.0-0:i386 libsdl1.2debian:i386 libshout3:i386 libsoup-gnome2.4-1:i386
  libsoup2.4-1:i386 libspeex1:i386 libssl0.9.8:i386 libstdc++5:i386 libtag1-vanilla:i386 libtag1c2a:i386 libtdb1:i386
  libunistring0:i386 libvorbisfile3:i386 libwavpack1:i386 libwebp2:i386 libxaw7:i386 libxcb-render0:i386 libxcb-shm0:i386
  libxft2:i386 libxmu6:i386 libxp6:i386 libxtst6:i386 odbcinst1debian2:i386 xaw3dg:i386
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  ia32-libs-multiarch:i386*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 39.9 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 233835 files and directories currently installed.)
Removing ia32-libs-multiarch ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  bluez-alsa:i386 glib-networking:i386 gstreamer0.10-plugins-good:i386 gstreamer0.10-x:i386 gtk2-engines:i386
  gtk2-engines-murrine:i386 gtk2-engines-oxygen:i386 gtk2-engines-pixbuf:i386 ibus-gtk:i386 libaa1:i386 libaio1:i386
  libao4:i386 libatk1.0-0:i386 libaudiofile1:i386 libavc1394-0:i386 libcaca0:i386 libcairo-gobject2:i386 libcairo2:i386
  libcanberra-gtk-module:i386 libcanberra-gtk0:i386 libcanberra0:i386 libcap2:i386 libcroco3:i386 libcupsimage2:i386
  libcurl3:i386 libdbus-glib-1-2:i386 libdv4:i386 libesd0:i386 libgail-common:i386 libgail18:i386 libgconf-2-4:i386
  libgdbm3:i386 libgdk-pixbuf2.0-0:i386 libgettextpo0:i386 libgnome-keyring0:i386 libgtk2.0-0:i386 libgudev-1.0-0:i386
  libibus-1.0-0:i386 libidn11:i386 libiec61883-0:i386 libjasper1:i386 libmad0:i386 libmikmod2:i386 libnspr4:i386
  libnss3:i386 libodbc1:i386 libpango1.0-0:i386 libpixman-1-0:i386 libproxy1:i386 libpulse-mainloop-glib0:i386
  libpulsedsp:i386 libqt4-designer:i386 libqt4-opengl:i386 libqt4-qt3support:i386 libqt4-scripttools:i386 libqt4-svg:i386
  libqt4-test:i386 libraw1394-11:i386 librsvg2-2:i386 librsvg2-common:i386 librtmp0:i386 libsdl-image1.2:i386
  libsdl-mixer1.2:i386 libsdl-net1.2:i386 libsdl-ttf2.0-0:i386 libsdl1.2debian:i386 libshout3:i386 libsoup-gnome2.4-1:i386
  libsoup2.4-1:i386 libspeex1:i386 libssl0.9.8:i386 libstdc++5:i386 libtag1-vanilla:i386 libtag1c2a:i386 libtdb1:i386
  libunistring0:i386 libvorbisfile3:i386 libwavpack1:i386 libwebp2:i386 libxaw7:i386 libxcb-render0:i386 libxcb-shm0:i386
  libxft2:i386 libxmu6:i386 libxp6:i386 libxtst6:i386 odbcinst1debian2:i386 xaw3dg:i386
0 upgraded, 0 newly installed, 88 to remove and 0 not upgraded.
After this operation, 60.7 MB disk space will be freed.
Do you want to continue [Y/n]? Y  
(Reading database ... 233831 files and directories currently installed.)
Removing bluez-alsa:i386 ...
Removing gstreamer0.10-plugins-good:i386 ...
Removing libsoup-gnome2.4-1:i386 ...
Removing libsoup2.4-1:i386 ...
Removing glib-networking:i386 ...
Removing gstreamer0.10-x:i386 ...
Removing gtk2-engines:i386 ...
Removing gtk2-engines-murrine:i386 ...
Removing gtk2-engines-oxygen:i386 ...
Removing gtk2-engines-pixbuf:i386 ...
Removing ibus-gtk:i386 ...
Removing libaa1:i386 ...
Removing libaio1:i386 ...
Removing libao4:i386 ...
Removing libgail-common:i386 ...
Removing libgail18:i386 ...
Removing libcanberra-gtk-module:i386 ...
Removing libcanberra-gtk0:i386 ...
Removing libgtk2.0-0:i386 ...
Removing libatk1.0-0:i386 ...
Removing libesd0:i386 ...
Removing libaudiofile1:i386 ...
Removing libavc1394-0:i386 ...
Removing libsdl-ttf2.0-0:i386 ...
Removing libsdl-net1.2:i386 ...
Removing libsdl-mixer1.2:i386 ...
Removing libsdl-image1.2:i386 ...
Removing libsdl1.2debian:i386 ...
Removing libcaca0:i386 ...
Removing libcairo-gobject2:i386 ...
Removing librsvg2-common:i386 ...
Removing librsvg2-2:i386 ...
Removing libpango1.0-0:i386 ...
Removing libcairo2:i386 ...
Removing libcanberra0:i386 ...
Removing libcap2:i386 ...
Removing libcroco3:i386 ...
Removing libcupsimage2:i386 ...
Removing libcurl3:i386 ...
Removing libgconf-2-4:i386 ...
Removing libdbus-glib-1-2:i386 ...
Removing libdv4:i386 ...
Removing libgdbm3:i386 ...
Removing libgdk-pixbuf2.0-0:i386 ...
Removing libgettextpo0:i386 ...
Removing libgnome-keyring0:i386 ...
Removing libgudev-1.0-0:i386 ...
Removing libibus-1.0-0:i386 ...
Removing libidn11:i386 ...
Removing libiec61883-0:i386 ...
Removing libjasper1:i386 ...
Removing libmad0:i386 ...
Removing libmikmod2:i386 ...
Removing libnss3:i386 ...
Removing libnspr4:i386 ...
Removing libodbc1:i386 ...
Removing libpixman-1-0:i386 ...
Removing libproxy1:i386 ...
Removing libpulse-mainloop-glib0:i386 ...
Removing libpulsedsp:i386 ...
Removing libqt4-qt3support:i386 ...
Removing libqt4-designer:i386 ...
Removing libqt4-opengl:i386 ...
Removing libqt4-scripttools:i386 ...
Removing libqt4-svg:i386 ...
Removing libqt4-test:i386 ...
Removing libraw1394-11:i386 ...
Removing librtmp0:i386 ...
Removing libshout3:i386 ...
Removing libspeex1:i386 ...
Removing libssl0.9.8:i386 ...
Removing libstdc++5:i386 ...
Removing libtag1c2a:i386 ...
Removing libtag1-vanilla:i386 ...
Removing libtdb1:i386 ...
Removing libunistring0:i386 ...
Removing libvorbisfile3:i386 ...
Removing libwavpack1:i386 ...
Removing libwebp2:i386 ...
Removing libxaw7:i386 ...
Removing libxcb-render0:i386 ...
Removing libxcb-shm0:i386 ...
Removing libxft2:i386 ...
Removing xaw3dg:i386 ...
Removing libxmu6:i386 ...
Removing libxp6:i386 ...
Removing libxtst6:i386 ...
Removing odbcinst1debian2:i386 ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for libglib2.0-0:i386 ...
Processing triggers for install-info ...
install-info: warning: no info dir entry in `/usr/share/info/smbc.info.gz'
Processing triggers for man-db ...
To search and cleaning unused configurations

Visualizziamo ed eliminiamo le configurazioni inutilizzate

maurizio@lub12-10-i2c:~$ dpkg -l | egrep "^rc" | cut -d ' ' -f3
gstreamer0.10-plugins-good:i386
libaa1:i386
libaio1:i386
libao4:i386
libatk1.0-0:i386
libaudiofile1:i386
libavc1394-0:i386
libcaca0:i386
libcairo-gobject2:i386
libcairo2:i386
libcanberra-gtk0:i386
libcanberra0:i386
libcap2:i386
libcroco3:i386
libcupsimage2:i386
libcurl3:i386
libdbus-glib-1-2:i386
libdv4:i386
libesd0:i386
libgail18:i386
libgconf-2-4:i386
libgdbm3:i386
libgdk-pixbuf2.0-0:i386
libgnome-keyring0:i386
libgtk2.0-0:i386
libgudev-1.0-0:i386
libibus-1.0-0:i386
libidn11:i386
libiec61883-0:i386
libjasper1:i386
libmad0:i386
libmikmod2:i386
libnspr4:i386
libnss3:i386
libodbc1:i386
libpango1.0-0:i386
libpixman-1-0:i386
libproxy1:i386
libpulse-mainloop-glib0:i386
libqt4-designer:i386
libqt4-opengl:i386
libqt4-qt3support:i386
libqt4-scripttools:i386
libqt4-svg:i386
libqt4-test:i386
libraw1394-11:i386
librsvg2-2:i386
librtmp0:i386
libsdl-image1.2:i386
libsdl-mixer1.2:i386
libsdl-net1.2:i386
libsdl-ttf2.0-0:i386
libsdl1.2debian:i386
libshout3:i386
libsoup-gnome2.4-1:i386
libsoup2.4-1:i386
libspeex1:i386
libssl0.9.8:i386
libstdc++5:i386
libtag1-vanilla:i386
libtdb1:i386
libunistring0:i386
libvorbisfile3:i386
libwavpack1:i386
libwebp2:i386
libxaw7:i386
libxcb-render0:i386
libxcb-shm0:i386
libxft2:i386
libxmu6:i386
libxp6:i386
libxtst6:i386
odbcinst1debian2:i386
xaw3dg:i386

Remove Old Kernel

Controlliamo qual’è il kernel corrente

maurizio@lub12-10-i2c:~$ uname -r
3.5.0-25-generic

Elenchiamo i kernels presenti

maurizio@lub12-10-i2c:~$ dpkg --list | grep linux-image
ii  linux-image-3.5.0-23-generic          3.5.0-23.35                               amd64        Linux kernel image for version 3.5.0 on 64 bit x86 SMP
ii  linux-image-3.5.0-24-generic          3.5.0-24.37                               amd64        Linux kernel image for version 3.5.0 on 64 bit x86 SMP
ii  linux-image-3.5.0-25-generic          3.5.0-25.39                               amd64        Linux kernel image for version 3.5.0 on 64 bit x86 SMP
ii  linux-image-extra-3.5.0-23-generic    3.5.0-23.35                               amd64        Linux kernel image for version 3.5.0 on 64 bit x86 SMP
ii  linux-image-extra-3.5.0-24-generic    3.5.0-24.37                               amd64        Linux kernel image for version 3.5.0 on 64 bit x86 SMP
ii  linux-image-extra-3.5.0-25-generic    3.5.0-25.39                               amd64        Linux kernel image for version 3.5.0 on 64 bit x86 SMP
ii  linux-image-generic                   3.5.0.25.31                               amd64        Generic Linux kernel image

Abbiamo tre kernel a disposizione due li tengo rimuoverò il 3.0.5.23 prima però controlliamo gli headers installati:

maurizio@lub12-10-i2c:~$ ls /usr/src | grep 'linux-headers'
linux-headers-3.5.0-24
linux-headers-3.5.0-24-generic
linux-headers-3.5.0-25
linux-headers-3.5.0-25-generic

Non è presente il linux-headers per il kernel 3.5.0-23. Qiundi rimuovimao il solo kernel.

maurizio@lub12-10-i2c:~$ sudo apt-get purge linux-image-3.5.0-23-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-image-3.5.0-23-generic* linux-image-extra-3.5.0-23-generic*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 153 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 233712 files and directories currently installed.)
Removing linux-image-extra-3.5.0-23-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic
update-initramfs: Deleting /boot/initrd.img-3.5.0-23-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-25-generic
Found initrd image: /boot/initrd.img-3.5.0-25-generic
Found linux image: /boot/vmlinuz-3.5.0-24-generic
Found initrd image: /boot/initrd.img-3.5.0-24-generic
Found linux image: /boot/vmlinuz-3.5.0-23-generic
Found memtest86+ image: /boot/memtest86+.bin
  No volume groups found
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda15
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda3
Found Ubuntu 12.10 (12.10) on /dev/sda6
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda7
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda8
Found Ubuntu 11.10 (11.10) on /dev/sda9
Found Windows 7 (loader) on /dev/sdb1
Found Ubuntu 11.10 (11.10) on /dev/sdb4
done
Purging configuration files for linux-image-extra-3.5.0-23-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic
Removing linux-image-3.5.0-23-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic
dkms: removing: fglrx 9.000 (3.5.0-23-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  fglrx
Version: 9.000
Kernel:  3.5.0-23-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

fglrx.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.5.0-23-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
dkms: removing: virtualbox 4.1.18 (3.5.0-23-generic) (x86_64)

-------- Uninstall Beginning --------
Module:  virtualbox
Version: 4.1.18
Kernel:  3.5.0-23-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.5.0-23-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.5.0-23-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.5.0-23-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.5.0-23-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic
update-initramfs: Deleting /boot/initrd.img-3.5.0-23-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-25-generic
Found initrd image: /boot/initrd.img-3.5.0-25-generic
Found linux image: /boot/vmlinuz-3.5.0-24-generic
Found initrd image: /boot/initrd.img-3.5.0-24-generic
Found memtest86+ image: /boot/memtest86+.bin
  No volume groups found
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda15
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda3
Found Ubuntu 12.10 (12.10) on /dev/sda6
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda7
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda8
Found Ubuntu 11.10 (11.10) on /dev/sda9
Found Windows 7 (loader) on /dev/sdb1
Found Ubuntu 11.10 (11.10) on /dev/sdb4
done
Purging configuration files for linux-image-3.5.0-23-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic
maurizio@lub12-10-i2c:~$

Ricontrollamo l’occupazione spazio usiamo

maurizio@lub12-10-i2c:~$ df 
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda1       34268912  26264532   6263580  81% /
....
/dev/sda13      98776684  92737976   1021108  99% /media/Backup
/dev/sda14     347591084 304232344  25702064  93% /media/VM
...

Remove unnecessary location data packets

Salto momentaneamemente la pulizia dei dati di localizzazione in questa macchina non solo al momento interessato alla eliminazione di questi dati. E’ comunque una macchina con 8GB di Ram e dischi capienti.

To save space: remove o shrink files

Solo un 1.3 GB recuperati ma abbiamo una home  consistente qui possiamo recuperare bene

maurizio@lub12-10-i2c:~$ du -sm * .[^.]* | sort -nr   | head -n 15
2284	Downloads
2104	.local
1015	.cache
960	Videos
284	.config
232	Music
123	.wine
88	Pictures
70	Les Medievales de Quebec - A La Via!
64	130202-2024.mp3
47	.thumbnails
37	.mozilla
35	Beethoven-Varie
28	.x2go
25	.java

Allora a colpo d’occhio

  • Downloads 2GB si può far pulizia secondo le proprie esigenze si può recuperare molto.
  • .local  2GB qui c’è il cestino si può recuperare  di seguito la procedura per la pulizia del cestino
  • .cache qui c’è la cache dei browsers

Svuotiamo il cestino

La cartella .local contiene anche i dati del cestino quindi controlliamo il cestino e lo svuotiamo Calcolare la dimensione e svuotare il cestino da terminale in ubuntu/linux

maurizio@lub12-10-i2c:~$ du -hs ~/.local/share/Trash/* | sort -h
4.0K	/home/maurizio/.local/share/Trash/expunged
392K	/home/maurizio/.local/share/Trash/info
900M	/home/maurizio/.local/share/Trash/files

per controllare i file che possono essere cancellati con sicurezza

du -hs ~/.local/share/Trash/* | sort -h

Prestare la massima attenzione anche se svuotiamo il cestino in sicurezza quando si usa rm ( remove ).

maurizio@lub12-10-i2c:~$ rm -rf  ~/.local/share/Trash/files/*

recuperati .9 GB

controlliamo il file .xsession-errors

maurizio@lub12-10-i2c:~$ ls -lh .xsession-errors*
-rw------- 1 maurizio maurizio 378 Mar  9 08:38 .xsession-errors
-rw------- 1 maurizio maurizio 378 Mar  8 23:09 .xsession-errors.old

nessun problema

controlliamo la cache dei browsers

491	chromium
307	google-chrome
103	winetricks
103	FlashPeak
12	epiphany-browser
2	thumbnails
1	vlc
1	usb-creator.log
1	update-manager-core
1	transmission
1	simple-scan
1	openbox
1	menus
1	mc
1	lxsession

la pulizia dei browsers può essere fatta in modo più personalizzato e specifico utilizzo le opzioni dei browsers.

Sospendo momentaneamente riprenderò il post in un secondo momento.
Riavviato e le applicazioni segnalate ksysguard e virtualbox funzionano correttamente e anche il resto al momento abbiamo recuperato oltre due 2GB ma si può fare ancora molto nella home vedi cartella Download etc…

da Continuare ….

Categorie:Ubuntu
  1. Non c'è ancora nessun commento.
  1. No trackbacks yet.

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

%d blogger hanno fatto clic su Mi Piace per questo: