Showing posts with label linux mint. Show all posts
Showing posts with label linux mint. Show all posts

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! =)

Monday, September 30, 2013

[SOLVED] Share folders between Linux Mint computers

If you want to share a folder on a Mint machine, and to access it both from Windows and from Linux computer, you have to follow these simple steps:

INSTALLATION (on every Linux machine):
  • open a Terminal (CTRL+ALT+T)
  • install Samba:  sudo apt-get install samba
  • create a login to access shared folders:  sudo smbpasswd -a <whateverYouWant>  and insert a password for it when asked
FOLDER SHARING (on every Linux machine you want to share some folder of)
  • make a backup of the Samba configuration file on your home folder:  sudo cp /etc/samba/smb.conf ~
  • edit the configuration file:  sudo gedit /etc/samba/smb.conf
  • for every folder you want to share, append something like this at the very end of the file:
    [nameOfSharedFolder]
    path = /path/to/shared/folder
    available = yes
    valid users = theUserYouCreatedInTheStepAbove
    read only = no
    browsable=yes
    public = yes

    eventually changing the values on the right-hand side of the = sign, and the name in the square brackets.
  • if you want to share the folder with another linux machine, add this line just after the line starting with "workgroup = ...": name resolve order = bcast host lmhosts wins
  • save and close the text editor
  • restart Samba:  sudo service smbd restart
  • check that there are no errors:  sudo testparm
Wait some minutes and then everything should work. If you have other questions just post a comment, I'll answer as soon as possible.

Thursday, April 4, 2013

[SOLVED] Mint13 - Nvidia GeForce GT540M optimus (64 bit)

Nvidia graphic cards with Optimus technology (such as GeForce GT540M) may take to errors in case of installation through the official Nvidia .run file or apt-get install nvidia-current, and result in a horrible VGA screen resolution (in the best cases).

At write time there wasn't a single working solution, but many different forum discussions each solving a subpart of the problem. Now that I managed to solve it, I report here all and only the necessary steps to finally use your Nvidia graphic card on your Ubuntu/Mint OS.

Note: tested on Mint13 64bit.

Important: follow all the steps in order, inserting password when prompted, always confirming

REMOVE PREVIOUS NVIDIA INSTALLATION ATTEMPTS:


  • open a Terminal (CTRL+ALT+T)
  • type sudo apt-get purge nvidia- and press 2times TAB fast; with the arrow up key reselect the command and complete it with each of the found options
  • type sudo rm /etc/X11/xorg.* then enter
  • type sudo reboot then enter. The system will REBOOT! (close open programs/files before)

INSTALL BUMBLEBEE

  • open a Terminal (CTRL+ALT+T)
  • type sudo add-apt-repository ppa:bumblebee/stable then enter
  • type sudo apt-get update then enter
  • type sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic then enter
  • type sudo apt-get install virtualgl-libs:i386 then enter
  • type sudo usermod -a -G bumblebee $USER then enter
  • type sudo update-initramfs -u then enter
  • type sudo gedit /etc/init/bumblebeed.override then enter
    write:
        start on    (runlevel [2345])
        stop on     (runlevel [016])

    save and close;
  • type sudo reboot then enter. The system will REBOOT! (close open programs/files before)

TEST IT

  • open a Terminal (CTRL+ALT+T)
  • type optirun glxspheres then enter

Please let me know if it was successful for you. If some step gives you problem and you go on skipping it please let me know too! You don't need to register in order to comment!

Note: this guide solves also the following problems:
  • You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server.
  • Could not apply the stored configuration for monitors
  • The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect