Wednesday, February 19, 2014

Changing GRUB options

If you want to change some options of the GRUB boot loader, like for example the timeout for the default option, or the order of the various options, this is what you have to do:

  • type  sudo gedit /etc/default/grub  in a Terminal (CTRL+ALT+T) and insert your password
  • edit the timeout expressed in seconds at "GRUB_TIMEOUT" or the default option at "GRUB_DEFAULT" (the number is the position of the desired option in the boot loader, starting from 0)
  • in the Terminal type  sudo update-grub  to update the GRUB configuration file

Automatically mount NFTS partition

In order to automatically mount an NTFS partition on Ubuntu/Mint you just need to know where it is located on the file system: to do that, open "Disk utility" from the Menu, select the hard disk containing the desired partition, select the partition and look what is written near the label "Device", usually it's something like /dev/sdaN with a number instead of N.

Assume it is for example /dev/sda4, and that you want to mount it in a folder named "Files", then:

  • type  sudo gedit /etc/fstab  in a Terminal (CTRL+ALT+T) and insert your password
  • at the end of the file add two lines as follows:
    # My automatically mounted partition
    /dev/sda4 /media/Files ntfs defaults,uid=1000,gid=1000 0 1
  • save and close
The next time you'll reboot, it will be automatically mounted! =)

Friday, January 10, 2014

[SOLVED] Could not download all repository indexes

If updating your software gives you one of the following problems

Could not download all repository indexes
The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.


Could not refresh the list of packages
ERROR###ERROR###ERROR###ERROR###ERROR###ERROR###ERROR
W:Failed to fetch http://packages.medibuntu.org/dists/precise/Release.gpg  Could not connect to packages.medibuntu.org:80 (67.215.66.132). - connect (110: Connection timed out),
W:Failed to fetch http://packages.medibuntu.org/dists/precise/free/binary-amd64/Packages
Unable to connect to packages.medibuntu.org:http:

Ign http://packages.medibuntu.org precise Release          
Ign http://packages.medibuntu.org precise/free amd64 Packages/DiffIndex
Err http://packages.medibuntu.org precise/free amd64 Packages
  Unable to connect to packages.medibuntu.org:http:
W: Failed to fetch http://packages.medibuntu.org/dists/precise/Release.gpg  Could not connect to packages.medibuntu.org:80 (67.215.66.132). - connect (110: Connection timed out)
W: Failed to fetch http://packages.medibuntu.org/dists/precise/free/binary-amd64/Packages  Unable to connect to packages.medibuntu.org:http:
E: Some index files failed to download. They have been ignored, or old ones used instead.

it's because medibuntu packages are no more available, and thus can't be updated, but are not automatically removed from the packages which have to be updated. With this single command that I found here you can definitively eliminate this annoying problem: in a terminal type

sudo sed -i '/^deb http:\/\/packages.medibuntu.org*/d' /etc/apt/sources.list /etc/apt/sources.list.d/*.list

insert your login password, and it's done! =)