Tag Info

Hot answers tagged

32

Steam ships with it's own gcc libraries, which are outdated and do not work on distributions with newer libraries. For further information, check out: https://wiki.archlinux.org/index.php/steam#Steam_runtime_issues To solve your problem on Ubuntu 14.04, close Steam and run: rm ...


12

It seems to work for me in Ubuntu 14.04 with 2 flash keys & android phone as storage and usb network adapter & webcam as other type. (I couldn't test placing a usb hub) Check USB port (which is a parent device for the plugged device) $ udevadm info --name=/dev/sdc --attribute-walk looking at parent device ...


11

How to know if a python module is installed or not in the system: You can do a very easy test in terminal, $ python -c "import math" $ echo $? 0 # math module exists in system $ python -c "import numpy" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named numpy $ ...


10

In case we do not want to unwantedly import a module in question (which would happen in a try statement) we can make use of sys.modules to test modules that are installed and were imported before. In the python shell issue: >>> import sys Then test for installed modules: >>> 'numpy' in sys.modules True >>> 'scipy' in ...


10

That software checks /etc/lsb-release and that is a text file we can edit ourself so it might be fairly easy to circumvent. Make a backup first though if you do not know what this means. From a command line: sudo cp /etc/lsb-release /etc/lsb-release.backup And then edit the file ... sudo gedit /etc/lsb-release And change the lines that look like ...


10

Here's what I do (via PPA): I add a xorg-edgers PPA first: sudo add-apt-repository -y ppa:xorg-edgers/ppa Then I either install from command line or from additional drivers section. First, update your package list: sudo apt-get update Additional drivers are now updated with newer packages. And alternatively, from terminal, install nvidia-331 (for ...


10

As you get the following error: Error: alternatives are not set up properly You may try to set the alternatives yourself. When I switch to Intel I see: update-alternatives: using /usr/lib/nvidia-331-prime/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in manual mode update-alternatives: using ...


9

Ok, so after a lot of hair pulling and googling, I finally got my fingerprint sensor to work: EDIT (03/01/2015): Building the package from source (You might need to set up a build environment first): Script for auto build and install (written by me and shared from my Dropbox). cd to wherever you downloaded the script to and and run it with superuser: $ ...


9

Nvidia 343.22 added support for GeForce GTX 970 and GTX 980. It's not available in the official repositories. This repository is meant to be used only for testing, not on daily basis, please make sure to read the following link to understand the risk. https://launchpad.net/~xorg-edgers/+archive/ubuntu/ppa and follow the instruction on the above link as ...


9

The reason of the poor performance The problem will be this: GLX Renderer: Gallium 0.4 on AMD KABINI GLX Version: 3.0 Mesa 10.1.3 Unfortunately the KABINI APUs still have quite poor open source driver support, so I suggest installing the proprietry fglrxdriver, which yields better 3D support. Gallium is the open source radeon driver, if this was not ...


8

On some computers the new versions that are installed with the intel-linux-graphics-installer have those exact same issues, I had it happen with two netbooks so it dosn't seem to be a conflict between nouveau/intel but a problem with the newer graphics installed from Intel. First you need to remove the source that Intel installed automatically when you ran ...


8

The root of the problem described above is probably a lightdm bug: https://bugs.launchpad.net/ubuntu/+source/unity-greeter/+bug/1292467. I had this problem on an Atom Mini-ITX motherboard with Intel NM10 graphics which includes an internal LVDS display port. The Boot with "video=LVDS-1:d" workaround solved it for me. Instructions for making the boot option ...


8

This is a bug (LP #1214508). You can switch using: sudo prime-select intel sudo prime-select nvidia Also, Bumblebee is still supported so you can install it if you prefer. You'll have to remove nvidia-prime then as you can't use both.


8

I think I found the fix. Source: https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1314367/comments/22 so far so good. I'll update this if it starts flickering again. For those that are wondering, you need to install compizconfig-settings-manager first from terminal. sudo apt-get install compizconfig-settings-manager Open it and go to workarounds and ...


7

After 1st boot failure and switching to console (Ctrl+Alt+F1 or any to F6). Build driver modules for the current kernel (which just installed) sudo sh ./<DRIVER>.run -K Reboot: sudo reboot No need to reboot multiple times and switch adapters. Reference: Ubuntu Wiki: Nvidia Manual - Kernel and Mesa Updates To be complete, For driver release ...


7

Holy crap, I finally got it to work. Okay, so here's what I did. From the last line of lspci it was clear that I needed the RTS5227 driver. However, I really couldn't find this anywhere online. Instead, I took the RTS5229 driver from the Realtek website and did the following. I uploaded these files to use as the RTS5227 driver for anyone else in need. ...


7

Another way is the pkgutil module. Works with both Python 2 & 3: python -c 'import pkgutil; print(1 if pkgutil.find_loader("module") else 0)' You need to replace module with the name of your module, example: $ python -c 'import pkgutil; print(1 if pkgutil.find_loader("math") else 0)' 1


6

What is going on? Most of your problems can be summed up with one statement: AMD's closed source driver is awful. And the open source one isn't very much better. It's probably better than the Nvidia open driver but it still has plenty of flaws and spotty hardware support. Often finding an acceptable outcome means manually balancing driver and kernel ...


6

I had the same problem as you and, I found out the only way to fix this problem was to install the third-party driver and then config blacklist option. Then you can remove the third-party driver and install the official driver from Nvidia. I recommend the beta since it has better support, but if you want you can use, the 343 instead of 346 beta. Both worked ...


6

I suggest you get a temporary internet connection, ethernet, tethered or whatever is available. Then do: sudo apt-get install linux-headers-generic build-essential git sudo apt-get install git git clone https://github.com/porjo/mt7601.git cd mt7601/src make sudo make install sudo mkdir -p /etc/Wireless/RT2870STA/ sudo cp RT2870STA.dat ...


6

Just to sum up to the Brenden's answer, the real problem is with the libsdl1.2 package, as stated in this bug report. The solution is ready, but somehow isn't available on default Ubuntu package sources yet (at least not for me). So, a way to solve this is to import the developer PPA and install the patched package directly: sudo apt-add-repository ...


5

Lets focus on getting you connected, things will be easier then. Wireless The chipset of your laptop should be supported. Could you paste the output of lspci and iwconfig Wired Ethernet There should be a LAN port on your laptop, but it seems to have an additional cover. Have you had a look at the port between your VGA and DisplayPort. Can that be ...


5

OK, so I finally fixed this :D First here's what I learnt in the process: NEVER ram your OS with different drivers or modules haphazardly until your problem gets fixed, at least not without a) Knowing what / why you are doing, and b) MOST IMPORTANTLY How to undo the same. Whenever you try a different driver, module, or package, first uninstall the package ...


5

The recipe to build a custom module might need to be split in thee sections. Setup once $ cd ~ $ apt-get source linux-source-3.13.0 I am too lazy to copy the mvsas specific driver source files, just copy them all to your current working directory. $ cd linux-3.13.0 $ make oldconfig $ make prepare $ make scripts This will prepare some files necessary ...


5

I installed a Lenovo Z50-70 laptop two days ago with an Intel HD 4400 integrated and with this Nvidia Geforce 840M GPU. I installed an Ubuntu 14.04 trusty thar on it (from an usb stick with UEFI boot). The system worked with the intel vga by default, yes, a current nouveau driver can't recognise the Geforce 840M. The easiest sollution to work with it: In ...


5

Uninstall the NVIDIA proprietary graphics driver. Find the file you used to install the NVIDIA graphics driver from the NVIDIA website. It's in whatever folder you downloaded it to (your Downloads folder, for example). It should be named something like NVIDIA-Linux-x86_64-340.58.run. If so, the command to uninstall it is: sudo ...


5

Here is how you install it in about five minutes. Krato: "Hey, friend, can I borrow your ethernet connection for just a few minutes? I brought along six of your favorite beverage." Friend: "Sure, Krato, glad to help you! Let me put a couple of those beverages on ice." You then open a terminal and do: sudo apt-get install linux-headers-generic ...


5

I know the OP originally asked for a solution after starting Python, but outside of python I use pip. On ubuntu: sudo apt-get install python-pip, if it's not already installed. Then to see what third party modules are available, just run: pip freeze Or even pip list And both will show you all modules installed and their versions. If the module you're ...


5

You could put the code inside try, except block. $ python3 -c "\ try: import cow print('\nModule is installed') except ImportError: print('\nThere is no such module installed')" There is no such module installed $ python3 -c "\ try: import regex print('\nModule is installed') except ImportError: print('\nThere is no such ...


4

To provide another answer, for completion's sake: You can (ab)use the -m option. From Python's manpage: -m module-name Searches sys.path for the named module and runs the correspond‐ ing .py file as a script. Which will give us: $ python2 -m numpy /sbin/python2: No module named numpy.__main__; 'numpy' is a package and cannot be ...



Only top voted, non community-wiki answers of a minimum length are eligible