I had dual-boot with Ubuntu 14.04 and Windows 10. After last Win10 update, my grub disappeared and I am booting straight to Windows. I wanted to repair it, but I also wanted to update my Ubuntu to 16.04. I updated Ubuntu from USB but it still booted straight to Win. I went to live ubuntu and tried boot-repair, but no luck. I also tried the procedure described here. I did not get any error messages but the system still loads directly to Windows. I have secure boot disabled and I have HDD partition first in boot order in BIOS before Windows Boot Manager. I have also run the bcdedit command in Windows. Any ideas?
Wednesday, August 22, 2018
sudo - Gnome How do I Run a Command as root?
I'm new to Linux and just installed the Gnome on Ubuntu 15.04 Vivid Vervet (or something similar). Once inside the Gnome GUI, there is a terminal prompt but typing commands does not do anything. I've searched for hours and cannot figure out how I can start running commands as root again, so I can begin installing programs.
I've tried the following: Alt+F2 (does not work)
sudo -i
gnome-terminal
gksu gnome-terminal
sudo -H gnome-terminal
the above commands do not print out any text, just do not run.
networking - How to properly update the kernel
According to this page, the BCM43340 Broadcom chipset is supported in kernel 4.0+. After booting this kernel on a machine, the network card was still not detected.
On the other hand, it seems that the firmware for the network card is provided by linux-firmware:
$ dpkg -S /lib/firmware/brcm/b*
linux-firmware: /lib/firmware/brcm/bcm4329-fullmac-4.bin
linux-firmware: /lib/firmware/brcm/bcm43xx-0.fw
linux-firmware: /lib/firmware/brcm/bcm43xx_hdr-0.fw
linux-firmware: /lib/firmware/brcm/brcmfmac43143.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43143-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43236b.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43241b0-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43241b4-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43242a.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4329-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4330-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4334-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4335-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43362-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4339-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4354-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43569.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43570-pcie.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43602-pcie.ap.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43602-pcie.bin
How should I properly update the kernel, so that I get the support for the network card? Is there a version of linux-firmware which matches the 4.1.2 kernel
EDIT: I have a newer 4.1.2 kernel, built against Trusty (it's older, so it should be no problem)
I modprobe'd brcmfmac and these are the mentions of brcm
$ dmesg | grep brcm
[ 4.263584] brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done for chip 43340 rev 2 pmurev 20
[ 4.267389] usbcore: registered new interface driver brcmfmac
[ 4.278197] brcmfmac_sdio mmc1:0001:1: Direct firmware load for brcm/brcmfmac43340-sdio.bin failed with error -2
[ 7.287580] brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[ 8.296113] brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
The brcmfmac43340-sdio.bin firmware piece is missing:
$ find /lib -name brcmfmac*
/lib/modules/4.1.2-040102-generic/kernel/drivers/net/wireless/brcm80211/brcmfmac
/lib/modules/4.1.2-040102-generic/kernel/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko
/lib/modules/3.19.0-15-generic/kernel/drivers/net/wireless/brcm80211/brcmfmac
/lib/modules/3.19.0-15-generic/kernel/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko
/lib/firmware/brcm/brcmfmac4354-sdio.bin
/lib/firmware/brcm/brcmfmac4335-sdio.bin
/lib/firmware/brcm/brcmfmac43143-sdio.bin
/lib/firmware/brcm/brcmfmac43241b4-sdio.bin
/lib/firmware/brcm/brcmfmac43143.bin
/lib/firmware/brcm/brcmfmac4329-sdio.bin
/lib/firmware/brcm/brcmfmac43241b0-sdio.bin
/lib/firmware/brcm/brcmfmac43236b.bin
/lib/firmware/brcm/brcmfmac4334-sdio.bin
/lib/firmware/brcm/brcmfmac43362-sdio.bin
/lib/firmware/brcm/brcmfmac4330-sdio.bin
brcmfmac43340-sdio.bin seems to be in linux-firmware 1.146 (from Wily) but I'm not sure if I can so simply install a random package on Wily, being on Vivid.
As asked,
$ lspci -knn | grep Net -A2; uname -r
4.1.2-040102-generic
installation - AMD Graphic installition error
i got this error when i try to install the amd grapich
Supported adapter detected.
Check if system has the tools required for installation.
fglrx installation requires that the system have kernel headers. /lib/modules/3.5.0-26-generic/build/include/linux/version.h cannot be found on this system.
One or more tools required for installation cannot be found on the system. Install the required tools before installing the fglrx driver.
Optionally, run the installer with --force option to install without the tools.
Forcing install will disable AMD hardware acceleration and may make your system unstable. Not recommended.
how can i fix it please replay fast ..
Seems like you are running Ubuntu 12.10 which is missing Headers. try installing header file and then installing the driver
sudo apt-get install linux-headers-generic
Tuesday, August 21, 2018
apt - Can not add repositories in Ubuntu GNOME 17.04
I have tried adding various third party repositories, and I get the same error with all of them.
When I try to add third party repositories through the GUI "Other Software" section, I can open the box to add it, but it does not get added to the list.
When I try to add repositories from Terminal, I get the following output.
pal@pal-Vostro-3546:~$ sudo apt-add-repository -y ppa:teejee2008/ppa
[sudo] password for pal:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 358, in get_ppa_info
ret = get_ppa_info_from_lp(user, ppa)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 94, in get_ppa_info_from_lp
return get_info_from_lp(lp_url)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 88, in get_info_from_lp
return _get_https_content_py3(lp_url)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 112, in _get_https_content_py3
lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)
File "/usr/lib/python3.5/urllib/request.py", line 153, in urlopen
capath=capath)
File "/usr/lib/python3.5/ssl.py", line 478, in create_default_context
context.load_verify_locations(cafile, capath, cadata)
ssl.SSLError: unknown error (_ssl.c:3172)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/apt-add-repository", line 122, in
shortcut = shortcut_handler(line)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 864, in shortcut_handler
ret = factory(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 430, in shortcut_handler
return PPAShortcutHandler(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 387, in __init__
info = get_ppa_info(self.shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 370, in get_ppa_info
_get_suggested_ppa_message(user, ppa))
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 327, in _get_suggested_ppa_message
lp_user = get_info_from_lp(LAUNCHPAD_USER_API % user)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 88, in get_info_from_lp
return _get_https_content_py3(lp_url)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 112, in _get_https_content_py3
lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)
File "/usr/lib/python3.5/urllib/request.py", line 153, in urlopen
capath=capath)
File "/usr/lib/python3.5/ssl.py", line 478, in create_default_context
context.load_verify_locations(cafile, capath, cadata)
ssl.SSLError: unknown error (_ssl.c:3172)
What is the reason for this error, and how can I solve it?
Updates in 12.04 mess up nvidia drivers
I am using the proprietary nVidia CUDA developer's drivers on my Ubuntu 12.04 Gnome 3 shell, from here:
http://developer.download.nvidia.com/compute/cuda/4_2/rel/drivers/devdriver_4.2_linux_64_295.41.run
Everything works well until I perform an update to the system (via the update manager).
Whenever something (I think xorg server) gets an update, the gnome shell boots only to 'Classic Mode'. Booting to recovery console and reinstalling the proprietary drivers solves the problem.
Is there any way to tell the update manager to never update/overrun the devdrivers?
It's really a pain having to reinstall the drivers every time I update the system.
openstack devstack - Unable to stop service using screen
I need to stop the nova services which is running in openstack devstack.
So as per the previous guidance I have tried using Screen for the same.
Actually I can see that services currently running were getting displayed.
When I try to stop the same by pressing ctrl + C , Nothing is happening , It simply stays in the same screen.
Anyone please help me out regarding the same.
Have a look at image attached.
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 (...
-
Hey guys i am using ubuntu 11.10 and i have been using ubuntu for about 6 months now, i saw in a few videos about ubuntu and found out about...
-
The File & Folders lens and default Applications lens is missing from my dock. How can I get them back? I attempted the guide here: http...
-
After one of the last updates, when I turn on my eeePC with Ubuntu 12.04, I see an error message saying that the system is in low graphics m...