Friday, September 30, 2016

drivers - Can't get old Radeon HD graphics to work under Ubuntu

I have an old Pavilion Slimline with a Pentium Dual Core E2140, 2GB RAM and a Radeon HD2350 graphics card. I thought about giving new life to this machine with Linux.



At first I tried Elementary OS and directly installed it thinking it couldn't be performing worst than Windows, but I was wrong. The problem was clear: graphics card not being used properly. System speed was not unbareable, but the machine was generally unusable. A lot of sceen tearing, big problems in scrolling menus and browser pages, impossibility to watch video, sloppiness in moving and resizing windows.



Now I'm trying Xubuntu and Lubuntu live from USB, and they are even better in general system speed, but graphics problems are still there. The system is always able to properly recognize and name my card, so I don't think it's using generic drivers, software rendering or something. And if I go into Additional Drivers it gives me no third party drivers to install, so I really don't know what to possibly do to get an enjoyable desktop experience on this machine.



I find it really strange performance is THAT bad, I've always had excellent experiences with Linux on older hardware.




UPDATE: I found out that old 12.6 fglrx drivers works on my card on 12.04.1 or previous versions. So I installed Xubuntu 12.04.1 and got fglrx to work, but I still have bad performance. According to fglrxinfo command proprietary drivers seem to be working, so I can't really see what's the problem. Maybe this is the least linux-friendly graphics card in graphics card history and there's nothing that I can do other than binning this machine. :|

grub2 - How do I Fix Grub Error 15 on New Dual Boot Install

I just installed 12.04 to Dual Boot (separate partitions) with an existing Win 7.
Upon reboot after install things freeze after Grub 1.5 with a Grub Error 15 message.



Is there any easy way to fix this? (I am posting this from my second computer)



UPDATE: I managed to boot into both 12.04 and Win7 using BIOS:





  • Selected the disk with the Win7 'C' Partition: resulted in the same error message

  • Rebooted, tried the disk with the Ubuntu Partitions:
    *Grub Menu loaded:

  • Managed to boot 12.04, rebooted, used BIOS again:

  • Managed to boot Win 7



So, I have access to my computer again (thru BIOS), but this has been a pretty crappy install experience.




Garth



I used the the Final release 12.04 Ubuntu install disk, reformatted all Linux partitions, and expected a simple clean install.
Other than specifying the Ubuntu Partitions, I did a basic install of 12.04.
No way I did do anything to get this crap error failure!
I have no idea why my install resulted in a Grub-15 error.

nvidia - What is better driver for GeForce Gt 220 M?

Are three times that I format my notebook, and I play on Nexuiz online.
And I need what is the best driver for target device video GeForce Gt 220M.
I use Lubuntu 64 bit:




uname -a
Linux mrk 3.16.0-28-generic #38-Ubuntu SMP Fri Dec 12 17:37:40 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux


This is the image that there are 5 options:



enter image description here



I have the driver that is checked how in image and with this question, I want to know, which is the better driver for fast "reproduction video"?




Update:
Ok I compile ubuntu-drivers devices and the result is:



 ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
vendor : NVIDIA Corporation
modalias : pci:v000010DEd00000654sv00001043sd00002039bc03sc00i00
model : G96M [GeForce GT 220M]
driver : nvidia-304-updates - distro non-free

driver : nvidia-331-updates - distro non-free
driver : nvidia-331 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
driver : nvidia-304 - distro non-free


Then what is the better because I not understand distro or free or non-free

networking - Ubuntu 14.04 failed to detect USB modem [MTS Mblaze] after system update



My fresh Ubuntu 14.04 box was able to detect an USB modem and successfully connected to internet, though I found connection is sometime shaky. But the joy lasted only few days. Now, If I remember correctly, after having a regular system update the system is no more able to detect the USB modem. However the device is listed in the lsusb result. In the Network Management menu, I can't see the Enable Mobile Broadband option any more.



On the other hand, My laptop that also running Ubuntu 14.04 can still successfully connect the device to internet. Any diagnostic steps, suggestions are highly appreciated..thanks



The following solution worked well for me. I am jotting down the solution by hoping it could save the day of some other folks that having the same issue.





  1. Find out the name of your USB modem using the terminal command lsusb. I have got the following output



    Bus 002 Device 007: ID 12d1:1505 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard




note down the Vendor ID and Product ID of the modem. In my case it is 12d1 and 1505





  1. Create a config file in the /etc/usb_modeswitch.d directory. You can name the file as you wish. I have choosen the name as 12d1:1505.conf. Open the file in editor and add the following lines to it and save. You should use your Vendor ID and Product ID



    *DefaultVendor= 0x12d1
    DefaultProduct=0x1505



    MessageContent="55534243123456780000000000000011062000000100000000000000000000"*


  2. Run the following command



    sudo usb_modeswitch -I -W -c 12d1\:1505.conf





Now hopefully you should see the "Enable Mobile Broadband" option in the network manager menu. If not then try to reboot the machine. In my case I was lucky enough to get detected the device as soon as I run the command.


Why is Unity a "slow" desktop environment?


Background


First of all, this is not a question about opinions. I am assuming that we are talking about Unity 3D and on a computer with decent graphics configuration. By "desktop environment", I am assuming the most generally accepted definition of what a DE means.


I have seen lot of comparisons made and many people saying that Unity is the slowest desktop environment on Ubuntu (compared to others like Gnome, XFCE, LXDE etc.). I don't know whether people took KDE into consideration or not.


Question



  • Why is Unity slow compared to other desktop environments? Is it just because of the high graphics used in Unity or something else? (I don't know what in unity makes it run slow.).

  • What changes can be/ are being made to Unity in order to make it
    faster/ improve its perfomance?



The answer depends heavily on 3 major factors contributing to the feeling of "slow" or better yet, less FPS:



  • Version of Ubuntu (Updated, not just left as it came when it was released)

  • Video card (Ati, Intel, Nvidia)

  • Driver version (Proprietary, Open Source, Actual Version)


I'll explain each point:


Version of Ubuntu


For the version of Ubuntu, it is known that using 11.10 with Unity will suck. Literally make the PC suck at even opening Gedit or Nautilus in most cases. Trying to play a game in either OpenGL or through Wine with DirectX or OpenGL will result on less FPS than normal, even compared to any other DE. This drastically changes in 12.04 and then again in 12.10 where the FPS count starts to go up.


Since the latest is the 12.10, I should mention that for some, using 12.10 without upgrades does not address several key problems that were fixed in Compiz and Unity around a month after release. So any 12.10 user has to upgrade to receive this benefits. This is because the 2 most important parts that are talked about when FPS and OpenGL performance comes to mind are Unity and Compiz (Compiz being the most important one when it comes to a performance impact).


The benefits and enhancements that both, the Compiz project is getting throughout the 0.9.8 Series and the 0.9.9 Series and Unity is getting in the 7.x Series are actually very impressive.


Tests in Phoronix and some of my own showed that for Nvidia cards (The only tests I could actually do were with Nvidia cards) the performance has gone up. And not just 3 or 4 FPS but about 20 to 70 FPS depending on the Video card and Driver.


This is important, since, depending on the Ubuntu version the user is using, it will also depend on the Compiz and Unity version available for it, and the performance cost that comes with it.


Since Unity needs Compiz, this will be the biggest cause of low FPS count, but not much as before, or at least 2 versions ago. Running the Benchmark utility of Compiz while playing video games in Wine or Open Source ones gave me very good FPS in 12.10 and even more while I am testing 13.04 with the latest 313.xx series of Nvidia.


It should be noted that video performance is one of the points that will be dealt in 13.04 (And to some big degree in 12.10 and 12.04) because of a commitment that Ubuntu has for it's users and Steam (Valve). Not only is Ubuntu and Valve working on this, but Nvidia and Intel have joined also with many updates that have jumped the FPS count time and time again. If you are following the improvements that are coming to the 3.7 and 3.8 Kernel you will see some of them.


Video Card & Driver Version


It has been known that performance wise, Nvidia is on top of it, followed by Intel and Ati (This is not to be confused with ease of use, since Intel is much better at that). The latest drivers for Nvidia (For example the 306.64, 310.19 and 313.09) have all brought OpenGL performance improvements specifically for Unity. Specially the 313.09 which is used to improve Compiz even further.


Now, not only is Nvidia doing a lot of work to improve the road for Compiz/Unity. Intel is also hard working (Very hard) on several key features for Mesa, which should improve performance in general for all Intel video cards, specially the 965, 2000 HD, 3000 HD and 4000 HD Series. Lastly Ati/AMD has also several updates already made that will fix many bugs and issues with Compiz.


So in general, having the latest driver for each will improve performance but having an Nvidia card will enhance it more, followed by Intel and Ati.


After reading all of this, what changes are being made to improve the performance in general, well here are some:



  • Nvidia is working since several versions ago on improving Unity performance with more than a 50% enhancement in general over older versions


  • Intel is working with Mesa to improve Unity performance


  • Ubuntu and Valve are working on improving performance for Compiz and Unity


  • As seen in Launchpad, there are several fixed made to Compiz to improve responsiveness and better performance in general (Including memory and cpu usage)


  • As seen in Launchpad, Unity has received many fixes in regards to most problems encountered by end users


  • Compiz has lowered by more than 50% the amount of memory it used a year ago.


  • Unity feels faster and lighter compared to the version used a year ago.


  • There is some work done by Sams Spilsbury for the latest Compiz and Unity that will address some common problems known with Unity.


  • Kernel versions 3.7 and 3.8 will bring video improvements in general



So as you can see, there is much work that is being done to improve Unity and Compiz. To be fair, comparing Unity to Xfce or Lxde is not fair. This is like comparing a bike to a car. Both can do some things better. Compiz offers for example some very neat effects that Xfce or Lxde do not and even though most of us do not use them, they are an option (Like the cigar lighter inside the car).


Same goes for comparing KDE, Gnome3 and any other DE to low end DE. They are low end for a reason. They tend to avoid making huge changes that will impact performance, while high end DE will try to add features that might take more resources at the beginning. For example, having widgets, the ability to rotate a window to any degree possible, having a blur effect that hides the background or having an animated background at that. There are options that some uses enjoy that are offered by some Desktops that others DE do not need or use since they are more oriented towards a low end system.


With this in mind, anybody that has tested KDE since the 4.0 release knows what huge improvements it has received up till the latest 4.9 version. Huge ones indeed. Anybody that has tested Gnome 3.0 up to the latest 3.8 release knows of the huge changes in performance it has received and anybody that has tested Unity from the 3.x up to the 6.x (And soon 7.x) will know how the performance has jumped. I for one miss gnome2 for example, but there are several cases where I can't use gnome2 for since Unity is much friendlier and quicker in helping me achieve some of this cases.


So what tips I could give to improve performance?


Well install the Compiz Config Settings Manager (ccsm)


and play with the OpenGL plugin:


enter image description here


Some of this options will enhance performance, others I needed to avoid video problems. If anybody finds the question about this I will be happy if they edit this answer to include a link to it here. I can't find it right now but I know there was an answer that talked about this.


Other is updating the drivers and if possible, using Nvidia. Other than that, waiting for 13.04 will be a worthwhile.


For some reviews, here are benchmarks from Phoronix that check how Unity is performing on 11.04, 12.04, 13.04 and 13.10:


Desktop Benchmark 11.04


Desktop Benchmark 12.04


Desktop Benchmark 13.04


Desktop Benchmark 13.10


And this is what has happened with Nvidia over the past months


Also some articles about Ati/AMD HERE, HERE, HERE and HERE


Last, Intel, Mesa and Opengl HERE, HERE and HERE


unity - Upgraded to 14.10 - No longer prompted for Privilege Escalation

I upgraded from 14.04 to 14.10. The process was not exactly smooth. I had space errors on /boot so some of the updates failed. I was finally able to get everything update.




Now though nothing in Unity prompts for privilege escalation. Mounting files, editing users, creating folders, etc. I'll get get access denied, and no password prompt. I spent quite a bit of time googling this and only thing that seemed to make sense is maybe an issue with polkit. So I did the answer from this question:




sudo apt-get install --reinstall policykit-1 policykit-1-gnome



This did not fix the problem.

architecture - Difference between the i386 download and the amd64?



What is the difference between standard i386 download and the amd64 download of Ubuntu 11.04? I am currently running the i386 on an amd machine, would my system work better with the amd64 download instead? (my machine was running Windows 7 64bit, but I neglected to look at that prior to installing Ubuntu).



i386 refers to the 32-bit edition and amd64 (or x86_64) refers to the 64-bit edition for Intel and AMD processors.



Wikipedia's i386 entry:





The Intel 80386, also known as the i386, or just 386, was a 32-bit microprocessor introduced by Intel in 1985... This is termed x86, IA-32, or the i386-architecture, depending on context.




Wikipedia's x86_64 entry:




x86-64 is an extension of the x86 instruction set. It supports vastly larger virtual and physical address spaces than are possible on x86, thereby allowing programmers to conveniently work with much larger data sets... After launching the architecture under the "x86-64" name, AMD renamed it AMD64... x86-64 is still used by many in the industry as a vendor-neutral term, while others, notably Sun Microsystems (now Oracle Corporation) and Microsoft, use x64.





Even if you have an intel CPU, you should use AMD64 to install 64-bit on your computer (it uses the same instruction sets).



I highly recommend using it. For the most part you will not notice a difference but for large workloads (such as video editing, gaming, etc), the computer will perform faster (the computer has the ability to calculate 2+2+2=6 instead of having to do 2+2=4+2=6 in an example). In the Windows world, a 32-bit OS will not let you use more than 3.5 Gigs of RAM on your computer (even if you have 8!). You'd need to use a 64-bit OS in order to fully use all RAM. For Linux, however, there's no such limit (thanks, Uri).



Regardless, the world has shifted from 32 bit and it's only there to support older machines that are incapable of running 64 bit.


Thursday, September 29, 2016

Install Ubuntu Touch on Cheap ARM A8 Chip Tablet?


I was gifted an Le Pan TC 970 tablet (it was on sale and couldn't be passed up).
It is OMAP3, single core ARM A8, 500MB RAM & 1 GHz.
Would Ubuntu Touch be able to be installed, or even Kubuntu with plasma mobile?


Or, is this just a low end tablet that will remain as is?


Thank you for your time and answers.



I don't think OMAP3 is directly supported for Ubuntu-Touch.


However OMAP3 linux kernel is community supported and does boot somewhat recent Linux kernels and Android on BeagleBoard so I would think that it may work since the ubuntu-touch reuses a lot of Android guts. I have not tried this myself since I don't have one of these, so take this answer with a grain of salt.


system installation - Will Ubuntu work smoothly with these computer specifications?

Mainly I want a Linux system for web developing.



My system has following specifications:




  • Intel p4 2.66 GHz

  • 500MB ram

  • 160GB harddisk




I heard that with removing some features during installation, we can use Ubuntu smoothly.



So which kind of features should I remove to accomplish this?

updates - "gzip: stdout: No space left on device" error message when updating

My previous to last update was showing the following warning:



Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.



The last update was showing errors from this point on:



Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up libwnck-3-common (3.4.7-0ubuntu3.1) ...
Setting up libwnck-3-0:amd64 (3.4.7-0ubuntu3.1) ...
Setting up linux-image-3.13.0-52-generic (3.13.0-52.85) ...
Running depmod.

update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-52-generic /boot/vmlinuz-3.13.0-52-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-52-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-52-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1

Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-52-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-52-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up ppp (2.4.5-5.1ubuntu2.2) ...
Setting up dnsmasq-base (2.68-1ubuntu0.1) ...
Setting up gir1.2-wnck-3.0 (3.4.7-0ubuntu3.1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-52-generic:
linux-image-extra-3.13.0-52-generic depends on linux-image-3.13.0-52-generic; however:

Package linux-image-3.13.0-52-generic is not configured yet.

dpkg: error processing package linux-image-extra-3.13.0-52-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.13.0-52-generic; however:
Package linux-image-3.13.0-52-generic is not configured yet.
linux-image-generic depends on linux-image-extra-3.13.0-52-generic; however:
Package linux-image-extra-3.13.0-52-generic is not configured yet.


dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-headers-3.13.0-52 (3.13.0-52.85) ...
Setting up linux-headers-3.13.0-52-generic (3.13.0-52.85) ...
Setting up linux-headers-generic (3.13.0.52.59) ...
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.13.0.52.59); however:
Package linux-image-generic is not configured yet.


dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-libc-dev:amd64 (3.13.0-52.85) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Errors were encountered while processing:
linux-image-3.13.0-52-generic
linux-image-extra-3.13.0-52-generic
linux-image-generic
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)



Results of df -h :



Filesystem                  Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root 291G 16G 261G 6% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 1,4G 4,0K 1,4G 1% /dev
tmpfs 288M 1,2M 287M 1% /run
none 5,0M 0 5,0M 0% /run/lock

none 1,5G 272K 1,5G 1% /run/shm
none 100M 48K 100M 1% /run/user
/dev/sda1 236M 208M 16M 94% /boot
/home/mama/.Private 291G 16G 261G 6% /home/mama


Any help please?

16.04 - Can I consolidate lines in /etc/apt/sources.list



I am guessing -- but would like to confirm -- that, in the /etc/apt/sources.list file, there is no reason why one cannot replace these three lines:



deb http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/ xenial-security restricted main

deb http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/ xenial-security universe


deb http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/ xenial-security multiverse


with this one line:



deb http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/ xenial-security main restricted universe multiverse


Is this (as long as the lines have the same repository-URL and distribution type) correct? Or is there some purpose to having them as separate lines with the component-type spread among the different lines?




Your assumption is right - as is your example. Consolidation can be done and sources are often defined that way.



So far, the only reason that crossed my mind for splitting them up is that universe and multiverse are pretty big repos that take time to update and influcence the size of the resulting database - and thus the risk something breaks. If you have single lines they are easy to comment out :))



One might think that is does not make a big difference. But once you start automating an infrastructure the automation tools tend to do apt-get update a lot and it makes sense to reduce that time if the packages involved are not needed.



But apart from that I can only think of better documentation targeting in the original sources.list file :))


hard drive - can i recover my windows xp files after ubuntu install?

i installed ubuntu 10.04 on windows xp sp3, it used all the space in the of 320 gb in the hard drive. I had 200 gb data on hard disk on this hard disk under windows xp. is it all lost?
can i get it back?




my system- 2 gb ram, 320 gb hard disk, intel core 2 duo processor
can give more details if there is any hope of recovery



best
Giri

ppa - How can I set up a filter in Synaptic that finds all packages not installed from official repositories?


The custom filter options in Synaptic are kind of cryptic to me. I know over the last year and a half (I haven't fresh-installed since 10.04) I've installed several .debs and packages from PPAs.


How can I set up a filter in Synaptic that finds just these packages, so that I can downgrade or remove them?



It's actually not as hard as I thought it might be - and it's probably quite a valuable filter to have!


First you select which status you want to show. I selected "Installed" amongst a couple of others but that's probably all you need.


enter image description here


The real nuts and bolts come from the properties screen. In there you can set the origin requirements. All I did was exclude anything from archive.ubuntu.com (which is the mirror I use). If you're using another mirror, change that string.


enter image description here


The alternative would be to disable all the PPAs in sources and then look at the local section.


12.04 - Grub rescue rescue error on boot even after trying a "Boot Repair"

I tried to load Ubuntu 12.04 onto an old machine from a CD and the installation went fine, but I got the boot error: no such device: grub rescue.



I looked into the issue with a CD live boot (unsure of the terminology, but I selected the option to try Ubuntu Desktop) and found this forum post suggesting a Boot Repair program. I installed it from the terminal. I ran the program, it said it was fixed, and I tried to start it up no no avail. It gave me an Ubuntu Pastebin and to ask if I had any troubles.



What should I try now to fix this?




I am not very educated in programming or Linux type operating systems yet. But I would appreciate any help and will try to give as much information as necessary.



So far the only way my access desktop is using the installation disk.

Wednesday, September 28, 2016

Why one would use default Ubuntu kernel instead of latest stable kernel?



I've been using Ubuntu for long time. However, I'm still confused about one issue.




Why one would use default Ubuntu kernel(3.16 atm) instead of latest stable kernel(3.18 atm)? Is this only because of stability?



I know that there could be issues with newest beta NVIDIA drivers when you use latest rc kernels, but when kernel goes stable it should be safe to use. Why Ubuntu ships its own kernel instead of latest stable build? I've searched about this, but I was unable to find valuable information.



So the question you need to ask is 'Who decided "latest stable kernel" is 3.18?'. Wat that decided by The Kernel People or by Canonical? (the answer: the Kernel People).




Why Ubuntu ships its own kernel instead of latest stable build?





The Ubuntu kernel configuration files need to be added, tested and tweaked to the new kernel. That will cost time and resources (the idea is that it is better spent on the next Ubuntu release). So the latest stable release according to the Ubuntu Kernel Team is currently 3.16.



Kernel/dev/extended stable and mainlinebuilds should be an interesting read.



Besides that:



We will get a kernel update every 6 months that is tested and stable so it is not a long wait (less if you assume the kernel release is not out on the day a new Ubuntu appears).



How many end-users do you believe are waiting for kernel 3.18? Unless you are a developer (and you will know how to upgrade the kernel; and you will know where to find an upgrade method) there should be hardly any need to upgrade your kernel. Yes, there are some interesting features in any new release but those are not to interesting for the mainstream users of Ubuntu.




And we will get those features in 3 months anyways.


Unable to update thunderbird


I recently installed Thunderbird 3.1 from some source that wasn't the ubuntu repos. I can't remember right now where I got it from (I think it was packaged as a deb), but I'm having a problem when it tries to auto-update.


Unlike the versions that manage their updates via the repos, this one is supposed to update itself whenever it needs to, which seemed fine, but whenever it tries, it pops up an error:



A recommended security and stability update is available, but you do not have the system permissions required to install it. Please contact your system administrator, or try again from an account that has permission to install software on this computer. You can always get the latest version of Thunderbird at: http://mozillamessaging.com/en-US/thunderbird



Is there a way to give TB the permissions it needs short of opening it as root?



Nope. The only way to allow Thunderbird to update itself is to launch it as root, or to find yet another source that built Thunderbird in such a way that you can install it entirely within your own home folder.


A better option, if you want to run cutting-edge apps, is to try to find someone making builds on the in a Launchpad PPA. These can update through the normal Synaptic/Upgrade system, which means you won't end up with corner cases like this. As it happens, the Mozilla team maintains a PPA of newer versions of Firefox and Thunderbird, including even nightlies. If you install Thunderbird 3.1 from there, you should be golden.


Autorun windows share mount script after login as root


I have looked everywhere for a solution that lets me run CIFS automount script after login with around 20 second delay.
What I have tried.
Added the script to visudo:


rait ALL=(ALL) NOPASSWD: /home/rait/Downloads/Testing/mount.sh, /bin/mount

After that added the script to Startup applications, but it does not work.
Also I tried adding it to .bash_profile and rc.d. In rc.d it works but that does not run it after login. I need it after login because it will ask people for their AD user and password via GUI.
The script itself looks like this:


    #!/bin/bash
MOUNTDIR=Public
DIRNAME=Avalik
DOMAIN=Domain
SERVER=server_adr
SHARE=shares
if [ ! -d ${HOME}/Documents/${DIRNAME} ]; then
mkdir ${HOME}/Documents/${DIRNAME}
fi
# get the windows username
wUsername=`zenity --entry --width=300 --title="Mount $MOUNTDIR" --text="Kasutaja
nimi:"`
if [ $? -ne 0 ]; then
exit 1
fi
# get the windows password
wPassword=`zenity --entry --width=300 --title="Mount $MOUNTDIR" --text="Parool:"
--hide-text`
if [ $? -ne 0 ]; then
exit 1
fi
mount -t cifs //$SERVER/$SHARE ${HOME}/Documents/${DIRNAME} -o username=${wUsern
ame},password=${wPassword},domain=${DOMAIN}
if [ $? -eq 0 ]; then
zenity --info --title="Mount OK!" --text="Mount OK!"
else
zenity --error --title="Mount Failed!" --text="Mount Failed!"
fi

I hope that someone knows how to do it.


PS: After I edited the visudo now it asks for root password after I open terminal. So terminal asks me for sudo password when ever I open it after login. Once I remove the line that should run the script in visudo it does not ask for password anymore.


Please help :)



Fixed it by adding this to sudoers:


%sudo   ALL=(ALL) NOPASSWD: /bin/mount, /bin/umount

And the Startup Applications command was edited so it was /home/user/script/path/script.sh and it started to work. Also added sudo infront of the mount command in the script as well.


Thanks for you help guys :)


customization - How to customize distribution with predefined user and automatic installation/configuration


I am working on Ubuntu customization for production level. The setup environment is explained below:


I have some Ubuntu machines (12 to be more precise) that runs a software made by myself for this business. It boots directly to the X, automatic log-in, then opens right away mysoftware GUI.


I would like to have a custom Ubuntu installation image (for USB stick, etc...) with predefined user, variable hostname and some customization that I have already made on those machines.


So, What is the best tool to create this customized distribution (based on my needs on customization, easy deployment/customization/creation)


My problem is, I have to turn the installation process more easy. Because the HDD clone process is wasting so much time for me. And with different hardwares, I have about three different HDD clones to match them.


What I would like to accomplish on this customization:



  • predefined username to log into automatically with

  • predefined session customizations ($HOME customizations for OpenBox, .ssh,.compton, etc...)

  • runs software right after automatic login

  • automatic predefined software packages installed (from apt-get, but without internet need)

  • variable hostnames (sales00, sales01, sales02, and so on...)

  • set of customized permission of system calls/programs (such as chmod 4755 on /bin/date)

  • customized /etc/skel for new user (just in case)

  • disable automatic updates

  • fresh network adapters configuration (today I have a mess on network adapters from each machine like eth49, eth88,). I wish they have all the same numbers

  • network adapters predefined static IP: I have three network adapters: one has a fixed IP for all machines (the same IP 1.1.1.1 for this, though), second and third network adapters are configured through my software. So I wish I have a custom installation that configures automatically this 1.1.1.1 IP for that network adapter


And so, again, What is the best Ubuntu custom distribution creator (studio?) to work with?


P.S.: I used to try PinGuyBuilder once, but it changed to default the permissions customization (like chmod 4755 on /bin/date) and has limitations like predefined username/hostname
Best Regards




What is the best Ubuntu custom distribution creator (studio?) to work with?



All of them lack some (if not most) of the features you list.


I would do this myself (manually). The way to do this is to download an ISO, create a "chrooted" environment with that ISO, hack away, burn ISO to a DVD and boot from it. I have to AU topics that have good info:


The 2nd one is very generic (works across different releases) since it does not have a desktop and you can add it yourself on top of the server.


Your list with comments, without providing actual methods on how to do each though. I leave that up to you ;-)


(comment: a kickstart file is a redhat feature for automated installers. Ubuntu has limited support for it but it can be a starter to get going).



  • predefined username to log into automatically with



    • This can be done from a kickstart file and is pretty normal to change for a personal installer/ISO. So most will have this but is also easily done manually.


  • predefined session customizations ($HOME customizations for OpenBox, .ssh,.compton, etc...)



    • Doubt any of those kits can do this. But the manual method can be used to add packages into your own install so you can also create configurations files. Problem here is that you probably will need to recompile from source since the default configs are not human readable.


      If possible a far easier method would be to drop a config file from your own machine into /etc/skel/ and move it to the correct location after install.



  • runs software right after automatic login



    • Configuration of "startup applications". You only need to edit a text file.


  • automatic predefined software packages installed (from apt-get, but without internet need)



    • can also be done from a kickstart file. Or manually: when you create your own ISO you add your files to the DVD yourself using "apt-get" or by copying the archive cache from your machine into the ISO.


  • variable hostnames (sales00, sales01, sales02, and so on...)



    • If you already have a host set up like this it will be as easy as copying that file over to your ISO.


    • set of customized permission of system calls/programs (such as chmod 4755 on /bin/date)


    • Yuck ;-) You can chmod the file on the ISO. Of course you can also add your own post-install script file to the ISO.



  • customized /etc/skel for new user (just in case)



    • Easy with a manual method since that is the method to set up your user. That dir is used to create your user home and files like ".bashrc" with the options/parameters/etc set in /etc/skel.


  • disable automatic updates



    • that is a setting ... so can't be more than an edit of "gsettings". By the way: should already be set to "off" so doubt you need to do anything for this.


  • fresh network adapters configuration (today I have a mess on network adapters from each machine like eth49, eth88,). I wish they have all the same numbers



    • this one I am not sure about. I would assume these things get created during boot(?!) so doubt it will be something you can set up upfront. But if this is configurable during install I you will be able to add/edit the files you need for this (/etc/network/interfaces or dhcclient )


  • network adapters predefined static IP: I have three network adapters: one has a fixed IP for all machines (the same IP 1.1.1.1 for this, though), second and third network adapters are configured through my software. So I wish I have a custom installation that configures automatically this 1.1.1.1 IP for that network adapter



    • you can set this up on the ISO in the same fashion as you would with a normal install.



kernel - Why does my 'Caps Lock' diode blink when my system freezes?



I noticed a peculiar behavior of my Ubuntu 13.04 (although possibly it's also present in previous versions): when my system freezes completely (I do not ask for troubleshooting this) so that even X does not respond to Ctrl+Alt+FX keys, the CapsLock toggle diode on my keyboard blinks (with frequency of ~1Hz), although the system is completely unresponsive.




  • What is the cause of this phenomena? Is it caused by some internal kernel mechanisms? Is this specific to Ubuntu (is it caused some custom Ubuntu additional software)? Does it has anything to do with HAL?

  • What is the purpose of it?


  • Can I customize this behavior on Ubuntu?



This feature is implemented in the kernel. It is not specific to Ubuntu, and has been present since kernel 2.4.19 (what, 2002?). I don't remember what kernel is in raring, but for a modern implementation, see for example https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/input/serio/i8042.c?id=refs/tags/v3.9-rc1 .



The rationale given in that file:



 * i8042_panic_blink() will turn the keyboard LEDs on or off and is called
* when kernel panics. Flashing LEDs is useful for users running X who may
* not see the console and will help distingushing panics from "real"

* lockups.

11.10 - Which ATI driver should I use for a Radeon Xpress 200M?


So my laptop that I'm using with Ubuntu 11.10 so far is working great. The thing is that in the driver on my system info says its using Gallium 0.4 on ATI RS480.
My Laptop is old and is using the IGP of the ATI Radeon Xpress 200M.


I looked around and not understanding whats going on, but it seems there is 2 versions. The xerver-xorg-video-ati and the fglrx.


Question 1:
Is the Gallium driver showing in the system info is the open source driver (xerver-xord-video-ati) mentioned?


Question 2:
Is there a point in using the fglrx version?


Question 3:
Should I stay with what I have or should I get fglrx?


Side note: Upon checking one of the questions recommended, I did run the unity support test and Unity 3d supported does show "yes" along with every other test.



Uri Herrera's answers are correct.


Note that some Xpress 200M have weird oddball bugs and glitches, that are only solved by adjusting the AGP values in BIOS. But sounds like -ati is working fine so no worries.


grub2 - Unable to boot into Windows 8.1 after installing on separate partition (not preinstalled)

I have decided to give Ubuntu a try, so I decided to install it alongside my Windows 8.1 (not preinstalled - It was delivered with Win7), though I had to make a custom install (had the "no system detected" or something upon installation). So I installed Ubuntu on a separate partition.


Anyways, when I booted up after installation, the PC booted directly up into Ubuntu, so I downloaded the Boot-Repair tool and ran it. When I boot up now, I reach the GRUB menu with Ubuntu as the only entries. Boot-Repair gave me this log.


How do I correctly add my Windows 8.1 to GRUB? I have just a little experience with Ubuntu (and Linux systems in general), so I am not sure what to do.
Thank you in advance!

Tuesday, September 27, 2016

gui - How to run Redshift, and Redshift Plasmoid in Ubuntu 12.04?


Redshift briefly appears on the taskbar at startup or when run and pops out of existence. I've installed Redshift Plasmoid for a GUI, but I can't get that to run either, and won't show up when I check my software.



I should have followed the instructions more closely (specifically the "cp" bit) for KDE, installed eclipse and it's cdt, and installed the plasma desktop itself.


Unable to use package manager due to "exclusive lock" error

My synaptic package manager in ubuntu10.10 is giving error:


  Unable to get exclusive lock
This usually means that another package management application(like apt-get or
aptitude) is already running. Please close that application first.

Please resolve my problem for opening synaptic package manager

Unity doesn't load, no Launcher, no Dash appears


When I login, nothing happens.


I am presented with my desktop wallpaper.


Blank desktops suck


No Dash, no Launcher, nothing.




This answer applies to versions of Ubuntu running Compiz.


This answer assumes Unity is being run through Compiz. If you don't have compiz installed (ex: on non-Unity versions of Ubuntu, such as the Gnome-based Ubuntu 18.04 and later) this answer doesn't apply to you.



You just need to turn the Unity plugin back on. The problem is this is a pain in the bottom because you've now got no graphical method to do this. So:



  1. Try to open a terminal with Ctrl+Alt+T.
    This may not work but you can try right clicking on the desktop and selecting "Open terminal here." Otherwise, you may need to change to a "hard" terminal by pressing
    Ctrl+Alt+F1 and log in.


  2. Install compizconfig-settings-manager by running


    sudo apt-get install compizconfig-settings-manager

  3. Then run it with this:


    DISPLAY=:0 ccsm &

    The first part tells the terminal which display you want it to load on (otherwise it won't have a clue).


  4. If you switched to a TTY in step 1, switch back to the graphical server by pressing Ctrl+Alt+F7 (or Ctrl+Alt+F8 sometimes).
    There there should be a CompizConfig Settings Manager waiting for you.


  5. Find the Unity plugin. Enable it (detailed instructions just below). You will be asked "Ubuntu Unity Plugin requires the plugin OpenGL. Enable Ubuntu Unity Plugin / Enable OpenGL"



    • 1) To enable the Unity Plugin: Click "Desktop" (left side) --> Ubuntu Unity Plugin. You can also type "unity plugin" into the "Filter" search box. Screenshot:
      enter image description here

    • From here, click the checkbox for "Enable Ubuntu Unity Plugin":
      enter image description here

    • 2) To enable OpenGL: click "General" (left side) --> then check the box for "OpenGL", as shown below. You can also type "opengl" into the "Filter" search box to bring it up.
      enter image description here


  6. Everything should spring into life but if it doesn't, you might have to restart. You can do that by going back to the terminal and running sudo reboot.



apt - How to fix "Failed to download repository information" error while updating?


How can I fix this? I can't update anything at all.


I've tried to switch to my best server in the options.


When I do sudo apt-get update, this is what I get:



W: Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/quantal/Release Unable to find
expected entry 'universe/binary-1386/Packages' in Release file (Wrong
sources.list entry or malformed file) E: Some index files failed to
download. They have been ignored, or old ones used instead.*



When I do sudo apt-get upgrade, I get this:



Reading package lists... Done


Building dependency tree


Reading state information... Done


0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



the contents of my source.list:



deb http://ubuntu.mirror.rafal.ca/ubuntu/ quantal universe restricted main



....update: when I update, it looks for 'universe/binary-1386/Packages'


however, if I go to: ubuntu.mirror.rafal.ca/ubuntu/dists/quantal/Release with Google Chrome, I see that the file is actually named "universe/binary-i386/Packages" (it's with an i, not a 1) . how can I fix this and make it expect the proper package?



It sounds like you've run dpkg --add-architecture 1386 at some point. If dpkg --print-foreign-architectures shows 1386, running dpkg --remove-architecture 1386 should fix the problem.


16.04 - I am unable to install latest version of R


I am trying to install the latest version of R into Ubuntu 16.04.


But somehow it installs 3.4.4 even though latest version of R is 3.6.1. I have also read some articles that state "To obtain the latest R 3.6 packages, add an entry like":


deb https://cloud.r-project.org/bin/linux/ubuntu disco-cran35/

But still I don't understand what should I do with this link.



First, remove the installed version of R using


sudo apt purge r-base

You should also uninstall any other R packages that you may have installed.


As stated in the R installation guide, for 16.04 you need to add the repository deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ to /etc/apt/sources.list. There is a longer and a shorter way to do this.


Longer way: To add the repository open a terminal and run


sudo nano /etc/apt/sources.list

Copy and paste deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ at the end of the file (paste is Ctrl+Shift+V for nano).


Then add the public key for the repository running the following command:


sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

Finally, update your system to enable the repository:


sudo apt update

Shorter way: You can add the repository, key and update using a single terminal command:


sudo bash -c 'echo "deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/" >> /etc/apt/sources.list' && sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 && sudo apt update

Now you should be able to install R 3.6.


canonical - Is the software center safe?

Is there anyway someone could get some sort of malware onto the Ubuntu Software Center? Or is it all checked thoroughly before being added to the official repositories?

partitioning - Can I safely create a new partition between two others?

I am about to install Ubuntu alongside Windows.
My disc is partitioned like this:



/dev/hda1 - system reserved (windows)




/dev/hda2 - ntfs windows users



unallocated space 100Gb



/dev/hda3 - FAT other data 60Gb



Can I create an extended partition in the space BETWEEN hda 2 and 3?
Will hda3 be renamed and if so, will that lead to data loss?
Data is backed-up.

gnome - Freeze after login Ubuntu 18.04


Before the upgrade I was using gnome on Ubuntu 16.04 with lightdm and it worked fine. After upgrading to Ubuntu 18.04 I switched to gnome gdm3. On the first day I could login to my user account, configure gnome and so on. However on the next day when I tried to login for the first time, the login screen just comes back again and when I try it for a second time it just freezes. Can someone help me with this problem?


In advance thanks for help.


UPDATE: I switched back to lightdm and it works just fine. However I would still like to use gdm3 because I like it more. How could I do this?



You need to install your graphics drivers.


On your login page, press CTRL+ALT+F2


Enter your credentials and use the below commands (if you're using Nvidia graphics card)


sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-390

If you're using some other graphics card then use


sudo ubuntu-drivers devices

to find out your recommended driver - as suggested by Joe.


How to boot to root shell when GRUB recovery menu fails to load a shell?




Can't seem to boot into root shell in recovery mode from GRUB. I try booting into recovery mode from the GRUB menu and don't ever get a shell, just log messages from the kernel bootup. Ctrl+Alt+F1-F12 don't really give me anything important either.



u can manually edit ur grub file.
For example, when booting up, press Shift to get into grub2, and press e to edit
the commandline, change the commandline:
append init=/bin/sh



linux init=/bin/sh




and if you are lucky, you can get in a shell.
How to boot GRUB2 into the simplest Linux shell ?


Monday, September 26, 2016

Difference between launchpad.net/ubuntu and packages.ubuntu.com?

What are the difference between launchpad.net/ubuntu and packages.ubuntu.com? Are they both for ubuntu packages?
Thanks.

Installing latest nVidia Driver on Ubuntu 17.10



I recently partitioned my hard drive to install ubuntu 17.10 and to use CUDA.
I have run into a non-resolving problem. I have




  • Followed the exact steps as stated in How can I install CUDA 9 on Ubuntu 17.10.

    The message I keep on receiving is (after rebooting in insecure mode, and then running the CUDA run file):



    ***WARNING: Incomplete installation! This installation did not install the CUDA Driver. 
    A driver of version at least 384.00 is required for CUDA 9.0 functionality to
    work.


    This makes no sense, as I have successfully installed 384.111 previously. My output when I run



    $ nvidia-smi 



    is



     NVIDIA-SMI 384.111                Driver Version: 384.111                   |
    |-------------------------------+----------------------+----------------------+
    | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
    | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
    |===============================+======================+======================|
    | 0 GeForce GT 740M Off | 00000000:01:00.0 N/A | N/A |

    | N/A 54C P0 N/A / N/A | 261MiB / 2004MiB | N/A Default |
    +-------------------------------+----------------------+----------------------+

    +-----------------------------------------------------------------------------+
    | Processes: GPU Memory |
    | GPU PID Type Process name Usage |
    |=============================================================================|
    | 0 Not Supported |
    +-----------------------------------------------------------------------------+


  • So naturally my next step was to try another method of updating my driver. Attempting to run the run file for the latest driver(I made it executable and ran it with sudo) yielded the error:



    ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in  
    your kernel. This may be because it is in use (for example, by an X
    server, a CUDA program, or the NVIDIA Persistence Daemon), but this
    may also happen if your kernel was configured without support for
    module unloading. Please be sure to exit any programs that may be
    using the GPU(s) before attempting to upgrade your driver. If no
    GPU-based programs are running, you know that your kernel supports
    module unloading, and you still receive this message, then an error

    may have occured that has corrupted an NVIDIA kernel module's usage
    count, for which the simplest remedy is to reboot your computer.


    So I rebooted and still received the same error. So its either an X server or the NVIDIA Persistence Daemon.


  • From there I followed the steps from How to install NVIDIA.run? except I stopped the service gdm3 instead of lightdm, this was to disable the X server. After this I attempted to run my driver file again, but got the same error.

  • My next attempt was to blacklist the



    nvidia_drm
    nvidia_modeset

    nvidia_uvm
    nvidia
    drm_kms_helper


    modules but after rebooting and then running the driver executable, the same error as in bullet 2 occurred.


  • I have also tried using the preinstalled software Additional Drivers in software and drivers. This seemed to work fine until the same error as in bullet 1 popped up again, after trying to run the CUDA run file.


  • Where do I go from here? Is there anyway to disable the NVIDIA Persistence Daemon?





You can install the Nvidia drivers from the Ubuntu preinstalled program called Additional Drivers. Search into dash or whatever your DE search has and open it. Then spot the list of available drivers for your graphics card and select the driver you want. After that click apply, type your password and maybe you need a reboot or a logout-login before you use the drivers.


networking - wifi card not recognizable at ubuntu 14.04 3.19.0-61-lowlatency

I installed a new partition in my PC with ubuntu 14.04 with lowlatency kernel:
uname -a:
3.19.0-61-lowlatency #69~14.04.1-Ubuntu SMP PREEMPT Thu Jun 9 10:15:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux



The wifi card works and is recognizable at the other partition and even in the normal kernel, but with lowlatency kernel:



rfkill list:
0:hcio: Bluetooth
soft blocked: no
Hard blocked: no

without giving the wifi informations.



Ps: I can't connect my computer to Internet via Ethernet.



And the wlan0 config gives:
wlan0: error fetching interface information: Device not found.



I tryied to add the wlan0 interface on the interfaces files:
auto wlan0
iface wlan0 inet dhcp

And still does'nt working.



lspci -knn | grep Net -A3



02:00.0 Network controller [0280]: Intel Corporation Wireless 8260 [8086:24f3] (rev 3a) 
Subsystem: Intel Corporation Dual Band Wireless-AC 8260 [8086:0010]
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Opal XT [Radeon R7 M265] [1002:6604] (rev ff)
Kernel driver in use: radeon



Please help me.
Best regards.

compiz - Unity doesn't load, no dasher but can see desktop icons and home ubuntu 13.10

I am using ubuntu 13.10 since 8-9 months and I had never faced problem as such. Yesterday I installed some regular updates of ubuntu 13.10 ..everything was working fine but this morning when I started my laptop, I was not able to see unity nor dasher. I followed all the steps mentioned in this link. Unity doesn't load, no Launcher, no Dash appears . But no luck.



I can see my desktop icons. I installed compiz settling manager and when i go and enable unity plugin, screen blinks as it's loading something but nothing turns up.
(unity is already installed, ccsm is also already installed and unity plugin is enabled)



this didnt work I tried other thins like.




sudo dconf reset -f /org/compiz/

setsid unity

rm -rf ~/.compiz-1 ~/.config/compiz-1


and also deleted .Xautority



I also installed




sudo apt-get install --reinstall unity ubuntu-desktop

dconf reset -f /org/compiz/ && unity --reset-icons &disown


but nothing seems to work.

apt - Installed wrong teamvierer package now I have unmet dependency problems, how to revert back?



Package management is broken after a mistaken attempt to install TeamViewer (I selected the wrong TeamViewer package from the TeamViewer web site).



I have tried:




sudo apt-get clean
sudo apt-get update


Then if I do:



sudo apt-get install -f



I get:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
language-pack-kde-en kde-l10n-engb language-pack-kde-en-base
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:

libsane:i386
Suggested packages:
hpoj:i386 hplip:i386 libsane-extras:i386 sane-utils:i386
The following NEW packages will be installed
libsane:i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/3,554 kB of archives.
After this operation, 8,503 kB of additional disk space will be used.
Do you want to continue [Y/n]?

(Reading database ... 479536 files and directories currently installed.)
Unpacking libsane:i386 (from .../libsane_1.0.22-7ubuntu1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libsane_1.0.22-7ubuntu1_i386.deb (--unpack):
'./lib/udev/rules.d/40-libsane.rules' is different from the same file on the system
Errors were encountered while processing:
/var/cache/apt/archives/libsane_1.0.22-7ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Removing the problem package doesn't seem to work:




sudo apt-get remove libsane:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libsane:i386 is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
ia32-libs-multiarch:i386 : Depends: libsane:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).



And removing ia32-libs-multiarch:i386 doesn't work either:



sudo apt-get remove ia32-libs-multiarch:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.

ia32-libs : Depends: ia32-libs-multiarch
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


Ubuntu software center now can't be used as it continually gives me an error dialog saying "Items cannot be installed or removed until the package catalog is repaired. Do you want to repair it now?" - however the repair fails as follows:



(Reading database ... 479536 files and directories currently installed.)
Unpacking libsane:i386 (from .../libsane_1.0.22-7ubuntu1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libsane_1.0.22-7ubuntu1_i386.deb (--unpack):
'./lib/udev/rules.d/40-libsane.rules' is different from the same file on the system

Errors were encountered while processing:
/var/cache/apt/archives/libsane_1.0.22-7ubuntu1_i386.deb
Error in function:
dpkg: dependency problems prevent configuration of ia32-libs-multiarch:i386:
ia32-libs-multiarch:i386 depends on libsane; however:
Package libsane:i386 is not installed.
dpkg: error processing ia32-libs-multiarch:i386 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ia32-libs:
ia32-libs depends on ia32-libs-multiarch; however:

Package ia32-libs-multiarch is not installed.
Package ia32-libs-multiarch:i386 is not configured yet.
dpkg: error processing ia32-libs (--configure):
dependency problems - leaving unconfigured


I also get a notification saying "An error occurred, Please run Package Manager from the right-click menu or apt-get in a terminal to see what is wrong. The error message was: 'Error: BrokenCount > 0'. This usually means that your installed packages have unmet dependencies".



Any advice on how to get out of this mess? Thanks very much.




I finally resolved this. There was a circular dependency: ia32-libs-multiarch:i386 depends on libsane:i386 and vice versa. apt-get refuses to remove either one because it depends on the other. Also it refuses to remove them both, if you specify both on the same command line. For example:



sudo apt-get remove libsane:i386 ia32-libs-multiarch:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libsane:i386 is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
ia32-libs : Depends: ia32-libs-multiarch

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


However it will allow you to install both if you specify them on the same command line:



sudo apt-get install libsane:i386 ia32-libs-multiarch:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
ia32-libs-multiarch:i386 is already the newest version.

The following packages were automatically installed and are no longer required:
language-pack-kde-en kde-l10n-engb language-pack-kde-en-base
Use 'apt-get autoremove' to remove them.
Suggested packages:
hpoj:i386 hplip:i386 libsane-extras:i386 sane-utils:i386
The following NEW packages will be installed
libsane:i386
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
2 not fully installed or removed.
Need to get 0 B/3,554 kB of archives.

After this operation, 8,503 kB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 479536 files and directories currently installed.)
Unpacking libsane:i386 (from .../libsane_1.0.22-7ubuntu1_i386.deb) ...
Setting up libsane:i386 (1.0.22-7ubuntu1) ...
Setting up ia32-libs-multiarch:i386 (20090808ubuntu36) ...
Setting up ia32-libs (20090808ubuntu36) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place



After that things are back working and I can remove ia32-libs-multiarch:i386 again.


14.04 - Problem extracting tar.gz files

Recently I encountered a problem while trying to install Quantum Espresso 5.2.0, a Linux-based software, in Ubuntu 14.04. The source was a compressed tar.gz file. I typed the following command to extract the files contained in it :



tar - zxvf espresso-5.2.0.tar.gz


But the Terminal showed the following message :




tar: You must specify one of the '-Acdtrux', '--delete' or '--test-label' options
Try 'tar --help' or 'tar --usage' for more information.


I followed the suggestions but couldn’t solve the problem. Could anybody help me with this?

system installation - how can I install Ubuntu on my old computer

I've been trying to download and install Ubuntu on my Dell Inspiron 6000 laptop computer with no luck.
It's an old computer about 9 years old.
It has intel 1.6g processor and 2 gigs of memory.
I had tried to install one of the Ubuntu but I got a message that says I need an x86-64.


I have a 32bit laptop.


I have only one hard drive with windows XP on it,


How can I purchase a Ubuntu O.S. or download the correct Ubuntu for my particular computer but a current system where I can get support.

Sunday, September 25, 2016

dual boot - How to set Windows bootloader as default bootloader?



I have a Win 7/11.10 dual boot system with Grub 2 as the default bootloader. However, I want to make Windows bootloader the default bootloader (grub 'dos' like interface scrares the hell out of my sister) so when I start the PC I will have the following boot options:
1. Windows 7
2. Ubuntu




NB: A process to reverse this operation so Grub can be the default bootloader again will also be appreciated



There is a programm for windows called easy bcd. Install it when running windows and the proceed a described in the following link:



how to use easy bcd



Nevertheless I think also the other answers are valid as the question was basically how to avoid that the sister is scared by grub to choose windows if necessary.


nvidia - Ubuntu 18.04: graphics card driver fails

I recently installed Ubuntu 18.04 and the installation process went very well but when trying to change the brightness of the screen and I was unable to do that so I opened Software and update center to install graphics card driver and I found two proprietary drivers and one is nouveau X.ORG (this was enabled by default) so I chose to install the latest and the recommended one (Nvidia driver 390 as you can see in the picture)

screenshot 1
so after successfully installing the driver I rebooted the system but nothing was changed, I still unable to change the brightness and also can't change between the Intel graphics and Nvidia using the Nvidia X server configuring program so I deleted the driver and tried manually installing it from Nvidia website but I got the same result with no luck but when I tried to change the installed driver from software and update center I got a new option saying continue using manually installed driver and the other options were disabled (see the picture) screenshot2so I had to remove the installed driver using the terminal (I did this using purge Nvidia*) then tried to install an old driver (Nvidia driver 340) but after rebooting the system was unable to boot up so removed driver and now I feel frustrated because I don't know what to do.
I have MSI GE60 laptop with the following specifications:
CPU:i7 3630QM
GPU:Nvidia GTX660M
RAM:8 GB

updates - apt-get dist-upgrade doesn't fix 'The following packages have been kept back'

I'm on ubuntu 12.04.Running sudo apt-get dist-upgrade is not upgrading some packages. I can't upgrade them with graphical Update Manager too.





sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libavdevice53 libavformat53 libpostproc52 libswscale2
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.




LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise

networking - Cannot detect wireless driver

I just installed Ubuntu Gnome 16.10 on my Acer Inspire M laptop but it could not detect the wireless card. I found my earlier post:


Cannot locate wireless networks on Acer Aspire M5 laptop


but it did not completely help me here.


Upon trying:


sudo dpkg -i *.deb

I get:


dkms depends on gcc; however: Package gcc is not installed. dkms depends on make | build-essential _ dpkg-dev; however Package make ... is not installed.

The results of


sudo lshw -class network

are:


    *-network
description: Network controller
product: BCM4352 802.11ac Wireless Network Adapter
vendor: Broadcom Limited
physical id: 0
bus info: pci@0000:04:00.0
version: 03
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=bcma-pci-bridge latency=0
resources: irq:18 memory:b0600000-b0607fff memory:b0400000-b05fffff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0.1
bus info: pci@0000:05:00.1
logical name: enp5s0f1
version: 14
serial: c4:54:44:69:85:14
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8411-2_0.0.1 07/08/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:45 ioport:3000(size=256) memory:b0704000-b0704fff memory:b0700000-b0703fff

The results of


lsusb

are:


Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 011: ID 0781:5575 SanDisk Corp.
Bus 002 Device 010: ID 04f3:0085 Elan Microelectronics Corp.
Bus 002 Device 003: ID 04ca:200a Lite-On Technology Corp.
Bus 002 Device 002: ID 04f2:b3f6 Chicony Electronics Co., Ltd HD WebCam (Acer)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

and the results of


lspci

are:


00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
04:00.0 Network controller: Broadcom Limited BCM4352 802.11ac Wireless Network Adapter (rev 03)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
05:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 14)

upgrade - How to restore the default repositories in 12.04?




My repositories are screwed. I need a fresh copy because my old one has a lot of problems. I've already tried http://repogen.simplylinux.ch/ but I don't know what to select and the list it generated doesn't allow me to upgrade. So please give me the original repositories so that I can replace this one. I am from India.



I'm dumping my /etc/apt/śources.list. It only contains repositories that come with Ubuntu. Some of them are deactivated in the default configuration but I don't know which ones. Anyway this list shouldn't give you problems. You should also empty the folder /etc/apt/sources.list.d where all ppas you have added are saved.


So here comes the list:


# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Beta amd64 (20120328)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Beta amd64 (20120328)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Beta amd64 (20120328)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu precise main restricted
# deb-src http://de.archive.ubuntu.com/ubuntu/ precise main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
# deb-src http://de.archive.ubuntu.com/ubuntu/ precise-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu precise universe
# deb-src http://de.archive.ubuntu.com/ubuntu/ precise universe
deb http://archive.ubuntu.com/ubuntu precise-updates universe
# deb-src http://de.archive.ubuntu.com/ubuntu/ precise-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu precise multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://archive.ubuntu.com/ubuntu precise-updates multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ precise-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu precise-security main restricted
# deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://archive.ubuntu.com/ubuntu precise-security universe
# deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://archive.ubuntu.com/ubuntu precise-security multiverse
# deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main

ati - How do I get AMD/Intel Hybrid Graphics drivers to work?


On Ubuntu 12.04 my Sony Vaio VPCSE with Intel® HD Graphics 3000 and AMD Radeon™ HD 6630M worked fine with the Catalyst Control Center version 12.6. Also the switching between integrated and discrete graphic card was working.


In both cases, I followed this tutorial.


But it is not working on Ubuntu 12.10.


I tested the tutorial with the Catalyst Control Center from the Ubuntu Software Center, the version 12.8 and version 12.9. Always the same problem: After installation process I am able to boot in the login-screen. But after entering the password for my username, only the background-image appears. Unity seems not to be starting. I am only able to reach the context-menu by right clicking the mouse button.


I also tried his fix, but is also does not work for me.


Any ideas what to do to fix this problem?


Update:
Same problem on Ubuntu 13.04!


Update:
Solution for 13.04 ist not working on Ubuntu 13.10!



For 13.10


it works without tweaking on a fresh Ubuntu 13.10 install:


1) Open the terminal and type


sudo apt-get install fglrx fglrx-pxpress

2) and reboot


graphics - Installed Bumblebee... how do I get Unity 3D running on Nvidia?

I installed Bumblebee following the instructions on the wiki: https://wiki.ubuntu.com/Bumblebee#Installation


It is working! I checked out glxspheres and then optirun glxspheres, and I got 55fps and 133fps respectively. Hot.


I also got the "Unity 3D" Ubuntu interface working after I installed Bumblebee. However, here's the output of /usr/lib/nux/unity_support_test -p:



adityamenon@jaguar:~$ /usr/lib/nux/unity_support_test -p
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile x86/MMX/SSE2
OpenGL version string: 3.0 Mesa 9.0.3
Not software rendered: yes
Not blacklisted: yes
GLX fbconfig: yes
GLX texture from pixmap: yes
GL npot or rect textures: yes
GL vertex program: yes
GL fragment program: yes
GL vertex buffer object: yes
GL framebuffer object: yes
GL version is 1.4+: yes
Unity 3D supported: yes

So it appears I'm still on the Intel card for my 3D-effects interface. I'm sure running on the nVidia card instead would make the experience faster... how do I do that?


This is my laptop: http://www.samsung.com/in/support/model/NP300V5A-S0CIN-techspecs


Pertinent specs being:



Processor Intel® Core™ i7 Processor2670QM (2.20GHz, 6MB L3 Cache)
Graphic Processor NVIDIA® GeForce® GT 520MX Graphics, Optimus™ technology
Main Chipset Intel HM65

EDIT: Just read this question from the sidebar: Can I set my Optimus Nvidia card to run Unity3D with bumblebee?


I didn't think of optirun /usr/lib/nux/unity_support_test -p... so I did that, and here's the output:



OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GT 520MX/PCIe/SSE2
OpenGL version string: 4.2.0 NVIDIA 304.88
Not software rendered: yes
Not blacklisted: yes
GLX fbconfig: yes
GLX texture from pixmap: no
GL npot or rect textures: yes
GL vertex program: yes
GL fragment program: yes
GL vertex buffer object: yes
GL framebuffer object: yes
GL version is 1.4+: yes
Unity 3D supported: no

So unfortunately, it says Unity 3D isn't supported on this... the answers on the other question only advise selling this laptop and buying a new one with discrete graphics :D Is there any other way?

live usb - How to install adobe flash into bootable USB




Let me explain a couple things before my question...I am running Ubuntu from my flash drive because my hard drive crashed and I am waiting on some parts to come in. Since i cannot install Ubuntu onto the hard drive it makes it a real pain to install adobe flash. What I am wondering is it possible to take the flash.so file and put it into the files that the USB drive uses to run Ubuntu, so in other words I install flash and it works when the computer boots up and I launch firefox.



My understanding is that when creating a USB drive with Ubuntu's Live USB Creator application, it is possible to reserve some space to store data and packages installed "on top" of the ISO image. I.e. chances are all you need to do is actually install flash while booted from your USB drive.



See Ubuntu wiki for details.



In case your USB drive was created without this option (i.e. something like "discard changes on shutdown" has been chosen) - I'm afraid the easiest would be to re-create the drive, because it's basically an ISO filesystem (i.e. a CD image) and it's not supposed to be written to once created.


drivers - What if I upgrade Ubuntu 16.04 with AMDGPU-PRO to Ubuntu 18.04

I'm trying to make AMDGPU-PRO driver working in Ubuntu 18.04, but without success. So I'm wondering, what would happen if I upgrade a fully working Ubuntu 16.04 with AMDGPU-PRO installed to Ubuntu 18.04?



Will I lose the AMDGPU-PRO? Or maybe will it work?



Thanks in advance for answers.

mount - changed permission of 'usr' to 700

I changed the permissions of /usr in Ubuntu to 700.



Graphics are not working. In a tty I have no access to sudo to change permissions back again.




I tried to access root from 'advanced boot option' and run the command chmod 755 /usr but it said something like 'read only file' and the permissions didn't change.



One of my friends also tried by mounting the drive and changing owner, but nothing seems to be working.

Saturday, September 24, 2016

networking - Wireless not working on HP15q-bu005tu 16.04 - tried all available solutions

I have a new HP15Q-BU00TU laptop that came with free DOS. I have installed Windows 8. The wireless connection on Windows works fine.



Here is the result of lspci:




00:00.0 Host bridge: Intel Corporation Device 2280 (rev 35)
00:02.0 VGA compatible controller: Intel Corporation Device 22b1 (rev 35)
00:0b.0 Signal processing controller: Intel Corporation Device 22dc (rev 35)
00:13.0 SATA controller: Intel Corporation Device 22a3 (rev 35)
00:14.0 USB controller: Intel Corporation Device 22b5 (rev 35)
00:1a.0 Encryption controller: Intel Corporation Device 2298 (rev 35)
00:1b.0 Audio device: Intel Corporation Device 2284 (rev 35)
00:1c.0 PCI bridge: Intel Corporation Device 22c8 (rev 35)
00:1c.2 PCI bridge: Intel Corporation Device 22cc (rev 35)
00:1c.3 PCI bridge: Intel Corporation Device 22ce (rev 35)

00:1f.0 ISA bridge: Intel Corporation Device 229c (rev 35)
00:1f.3 SMBus: Intel Corporation Device 2292 (rev 35)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)


Here is the result of lshw, that shows an unclaimed Wireless network:



 *-pci:1
description: PCI bridge

product: Intel Corporation
vendor: Intel Corporation
physical id: 1c.2
bus info: pci@0000:00:1c.2
version: 35
width: 32 bits
clock: 33MHz
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:18 ioport:2000(size=4096) memory:91100000-911fffff

*-network UNCLAIMED
description: Network controller
product: Realtek Semiconductor Co., Ltd.
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list

configuration: latency=0
resources: ioport:2000(size=256) memory:91100000-9110ffff


I installed Realtek driver from the Realtek website, no luck yet.



I have read through all possible solutions and have tried all of them.



lspci -knn | grep Net -a3




 00:1f.3 SMBus [0c05]: Intel Corporation Device [8086:2292] (rev 35)
Subsystem: Hewlett-Packard Company Device [103c:832c]
Kernel modules: i2c_i801
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:d723]
DeviceName: Tiffany
Subsystem: Hewlett-Packard Company Device [103c:8319]
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)


I gather from another post that d723 is not yet supported by Linux. Is this true?

ati - AMD drivers install

I recently installed ubuntu 14.04.1 on laptop HP g62-b10sv.I tried to install the ati drivers from additional drivers (fglrx) but it crashes at startup screen so i reinstall ubuntu.Any idea of what drivers to install?my graphic card is ATI Mobility Radeon HD 5470 Graphics (switchable).Thanks



My gpus Mobility Radeon HD 4225/4250 and Mobility Radeon HD 5430/5450/5470.
this is the results of



lspci | grep VGA

package management - How do I enable the "Universe" repository from the command line?


How do you use terminal to enable Universe source?
Or any those 4 from Software Sources: Main, Universe, Restricted, Multiverse
Main is on by default and Restricted is on if durring Ubuntu installation i tick Enable Restricted Formats.
Answer with line where version checked so it auto detects it.
Like command I know for partner but that goes to Other Software tab sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"



I finally found answer myself.
To put all ubuntu sources to work without clicking them just enter in terminal


sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"

So for just "Universe" would be


sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

You can then check in Software sources it will show it works now.
You can delete manually from sudo gedit /etc/apt/sources.list line http://archive.ubuntu.com/ubuntu lucid main universe restricted multiverse and save and see in Software sources nothing is ticked. Then do


 sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

& that makes Just universe ticked.
For all enabled do


sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"

you can add also partner repository with different link (see difference is ubuntu to canonical)


sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"

$(lsb_release -sc) makes checking your Ubuntu version and putting its name in link. Since 10.04 is called lucid then you can test in terminal lsb_release -sc gives word lucid Thats makes added repository link precise name of your ubuntu Release in Software sources. Wrong word and noting will work.


for all differences in repositories read https://help.ubuntu.com/community/Repositories/Ubuntu


I've got a Radeon R5 graphics card - what drivers do I need?

What drivers do I need to make my graphics card work? My details are below.




VGA compatible controller Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R5 Graphics]

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...