Ubuntu HowTo: Can’t install windows 10 alongside ubuntu

Original Source Link

I have two storage in My laptop – 500gb ssd and 2tb harddrive, and I have ubuntu having 256gb in that 500gb ssd, I tried to install windows 10 on other half of ssd like 250ish gb…..and it’s not working……while installation of w10 it is saying that the partitions are formatted as NTFS and tells to format as fat32 even though I had already formatted in fat32 in gparted and also in cmd diskpart doesn’t show any partitions just that 500gb and 1tb thats all…..need helpenter image description here

Tagged : / / / /

Ubuntu HowTo: How to install Broadcom wireless drivers offline?

Original Source Link

I have installed Ubuntu alongside Windows 8.1. But the wifi is not working in Ubuntu (perhaps the drivers are not present), which worked fine in windows. Also I cant connect with Ethernet since my laptop does not have an Ethernet port. So is there any way for me to connect to the internet in ubuntu?
Edit: Output of the terminal command lspci -knn | grep Net -A2:

[email protected]:~$ lspci -knn | grep Net -A2
01:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)
    Subsystem: Dell Device [1028:0018]
    Kernel driver in use: bcma-pci-bridge
[email protected]:~$ 

I did what Pilot6 suggested. Here is the output:

[email protected]:~$ sudo dpkg -i *.deb
[sudo] password for vikram: 
Selecting previously unselected package bcmwl-kernel-source.
(Reading database ... 163804 files and directories currently installed.)
Preparing to unpack bcmwl-kernel-source_6.30.223.141+bdcom-0ubuntu2_amd64.deb ...
Unpacking bcmwl-kernel-source (6.30.223.141+bdcom-0ubuntu2) ...
Selecting previously unselected package dkms.
Preparing to unpack dkms_2.2.0.3-1.1ubuntu5.14.04_all.deb ...
Unpacking dkms (2.2.0.3-1.1ubuntu5.14.04) ...
Setting up dkms (2.2.0.3-1.1ubuntu5.14.04) ...
Setting up bcmwl-kernel-source (6.30.223.141+bdcom-0ubuntu2) ...
Loading new bcmwl-6.30.223.141+bdcom DKMS files...
First Installation: checking all kernels...
Building only for 3.16.0-30-generic
Building for architecture x86_64
Building initial module for 3.16.0-30-generic
ERROR (dkms apport): kernel package linux-headers-3.16.0-30-generic is not supported
Error! Bad return status for module build on kernel: 3.16.0-30-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.141+bdcom/build/make.log for more information.
modprobe: FATAL: Module wl not found.
update-initramfs: deferring update (trigger activated)
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-30-generic
[email protected]:~$ 

You need to install wireless driver.

Insert your Ubuntu installation disk or a flash drive and copy these files from the installation disk to your Home directory:

pool/main/d/dkms/dkms_XXXXX.deb
pool/restricted/b/bcmwl/bcmwl-kernel-source_XXXXX.deb

Then run the following in terminal:

sudo dpkg -i *.deb

If you have UEFI BIOS, you need to disable Secure Boot to load the driver.

18.04 update:

The solution won’t work on 18.04, because build-essential and its dependencies are not installed by default. The dpkg command will complain that dependencies are not installed.

You can manually find the required packages on the installation media (“pool” directory sorted by alphabet) and install them the same way as the dkms package. I hope nothing is missing there.

I recently needed to install the Wifi firmware for an older repurposed iMac 9,1. It had Broadcom 4322 Wifi, and Nvidia Ethernet, neither worked with 20.04. It found the card and tried the correct module (b43) but complained via dmesg “firmware not found.”

The following steps I found online worked:

  • Find the broadcom firmware on another machine:

  • Install ./pool/main/b43-fwcutter*.deb manually from Ubuntu Disc/Flash drive.

  • Run the following:

    • sudo b43-fwcutter -w /lib/firmware broadcom-wl-*.o # write to /lib
    • sync
    • sudo modprobe -r b43 # remove
    • sudo modprobe b43 # reload

With that Network manager noticed and started up Wifi. 😀

To automate the firmware update, this can be done now that the network is up:

  • Enable multiverse in software-properties-gtk or apt/sources
  • sudo apt-get install firmware-b43-installer
Tagged : / / /

Ubuntu HowTo: fatal IO error 22 (Invalid argument) on X server “:0”

Original Source Link

When trying to do openCV subplot on my Ubuntu 20.04 I get the following error

The X11 connection broke: Maximum allowed requested length exceeded (code 4)
XIO:  fatal IO error 22 (Invalid argument) on X server ":0"
      after 459 requests (455 known processed) with 0 events remaining.

This error appears only when using external , when using internal display I don’t get this error

Tagged : / /

Ubuntu HowTo: How to copy a folder from /home/kevin to /opt

Original Source Link

I have a new computer installed with Ubuntu 12.04. Then I want to install wireless driver named compat-wireless-3.5-3. Before that, the driver folder to /home/kevin.

I want to install it on /opt directory. Before install the driver, i want to copy the driver folder from /home/kevin to /opt. I try to use ordinary copy (Right Click Copy Paste), but the paste is blured.

After that, i tried using this on terminal:

sudo cp /home/kevin/compat-wireless-3.5-3 /opt

But I get this error:

cp: omitting directory `home/kevin/compat-wireless-3.5-3'

What does the command mean? I can’t copy the driver folder until now.

You have to use the -r flag when copying directories, in other words,

sudo cp -r /home/kevin/compat-wireless-3.5-3 /opt

-r means the directory will be copied recursively, content first, then the directory itself.

sudo cp -r <source> <dest>

Type –
man cp

for more options!… (:

Enter this line at terminal :

gksu nautilus

you will nautilus as root and it will open a folder you have a privileges to copy to, so just copy and paste the file inside it

*just be careful when copying files and be sure you won’t harm your device as you run as a root as mentioned

Or you can try

sudo cp /home/kevin/compat-wireless-3.5-3/* /opt

The “*” wildcard takes in the folder and the files in compat-wireless-3.5-3 and will copy them to /opt folder.

Tagged : /

Ubuntu HowTo: Create bootable macOS USB for a non Apple computer [closed]

Original Source Link

I tried several ways to create a bootable macOS USB for a non Apple personal computer. I expected it to work exactly like my bootable Ubuntu USB. macOS bootable USB seems to be working differently. It seems that it only works on Mac. My laptop does not detect my Mac bootable USB as a bootable one on startup.

Is it possible to create a bootable macOS USB for by Ubuntu 20.04 – Windows 10 dual boot HP laptop with persistence (optional) so that I can use it by just plugging it in during boot up for building my flutter projects?

Is it possible to create a bootable macOS USB, by using Ubuntu 20.04 – Windows 10 dual boot HP laptop, with persistence (optional) so that I can use it by just plugging it in during boot up for building my flutter projects?

Credits to David Anderson and Nimesh Nima for the answer.

Microsoft offers Windows to Go which can be run from a flash drive on different machines. Many Linux distributions offer a live version which also can be run from a flash drive on different machines. Some also offer persistence which allow data to be saved between boots. Apple’s MacOS can be installed on USB HDD and USB SSD which can be run on different Macs. AFAIK, MacOS is not designed to run from a flash drive.

MacOS doesn’t generally support installing and running on non supported hardware, i.e. non Apple computers. Apple, unlike Microsoft doesn’t license its operating system for running on commodity PCs.

It seems that it only works on Mac. My laptop does not detect my Mac bootable USB as a bootable one on startup.

This is by design. A MacOS bootable USB can only boot a compatible Apple Mac computer.

Is it possible to create a bootable MacOS USB for by Ubuntu 20.04 – Windows 10 dual boot HP laptop with persistence (optional) so that I can use it by just plugging it in during boot up for building my flutter projects?

Generally speaking, no.

Tagged : / / /

Ubuntu HowTo: Apply static IP address change in /etc/network/interfaces in Ubuntu 16.04

Original Source Link

TL;DR: In Ubuntu 14.04, If you change a static IP address in /etc/network/interfaces and apply the changes with ifdown and then ifup command everything works fine. But this sequence is not working in 16.04. What is the best alternative?

In ubuntu 16.04, after changing interfaces file and ifdown/ifup sequence, ip addr show <device> command shows both old and new static IP addresses for <device>. I used -v (verbose) argument with ifdown/ifup in both ubuntu 14.04 and 16.04. The difference was in ifdown. In ubuntu 14.04 ifdown executes this command:

ip -4 addr flush dev <device> label <device>

While in 16.04:

ip addr del <ip-address-in-network-interfaces>/<subnet> dev <device> label <device>

So I figured out, in 16.04, If I first run the ifdown command. Then change the IP address in /etc/network/interfaces file and then use the ifup command to bring the interface up again, the old IP address will be deleted correctly.

Another solution is running the ip addr flush command before ifdown/ifup:

ip addr flush dev <device>

It seems that I already answered my question, but I want to know what are the alternatives and what is the best solution to change a static IP address in Ubuntu 16.04?

you can add flush inside interfaces definition like

iface eth0 inet manual
post-down ip addr flush dev $IFACE

Tagged : / / /

Ubuntu HowTo: Ubuntu 18.04.4: audio suspended/idle not working

Original Source Link

Question

I am using Ubuntu 18.04.4. There is no sound.

As suggested here, audio device information obtained using sudo lspci -v is as follows:

00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
    Subsystem: Dell Sunrise Point-LP HD Audio
    Flags: bus master, fast devsel, latency 32, IRQ 146
    Memory at d1228000 (64-bit, non-prefetchable) [size=16K]
    Memory at d1200000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: [50] Power Management version 3
    Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel, snd_soc_skl

Tested methods

Following are the questions that I have looked into.

Q1 Following is the output of systemctl command

$ systemctl --user status pulseaudio.socket
pulseaudio.socket - Sound 
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.socket; enabled; vendor preset: enabled)
Active: inactive (dead)
Listen: /run/user/1000/pulse/native (Stream)

After this, as suggested I used the command systemctl --user enable pulseaudio.


Q2 As suggested here, I checked pactl list short sinks. Following is the outcome. It shows the device is suspended.

pactl list short sinks
0   alsa_output.pci-0000_00_1f.3.analog-stereo  module-alsa-card.c  s16le 2ch 48000Hz   SUSPENDED

Then, I used pactl set-default-sink alsa_output.pci-0000_00_1f.3.analog-stereo. The suspended status did not change. Hence, I searched for another solution.


Q3 As suggested here, I reinstalled pulseaudio and alsa-base. Following is output:

sudo apt-get remove --purge alsa-base pulseaudio
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
libwebrtc-audio-processing1
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
alsa-base* pulseaudio*
0 to upgrade, 0 to newly install, 2 to remove and 0 not to upgrade.
After this operation, 4,588 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 426510 files and directories currently installed.)
Removing alsa-base (1.0.25+dfsg-0ubuntu5) ...
Removing pulseaudio (1:11.1-1ubuntu7.7) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
(Reading database ... 426290 files and directories currently installed.)
Purging configuration files for pulseaudio (1:11.1-1ubuntu7.7) ...
Purging configuration files for alsa-base (1.0.25+dfsg-0ubuntu5) ...
Processing triggers for dbus (1.12.2-1ubuntu1.1) ...
(base) [email protected]:~$ sudo apt-get remove --purge alsa-base pulseaudio
Reading package lists... Done

Building dependency tree       
Reading state information... Done
Package 'alsa-base' is not installed, so not removed
Package 'pulseaudio' is not installed, so not removed
The following package was automatically installed and is no longer required:
  libwebrtc-audio-processing1
Use 'sudo apt autoremove' to remove it.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

(base) [email protected]:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libwebrtc-audio-processing1
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
After this operation, 691 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 426279 files and directories currently installed.)
Removing libwebrtc-audio-processing1:amd64 (0.3-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

(base) [email protected]:~$ sudo apt-get install alsa-base pulseaudio
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libwebrtc-audio-processing1
Suggested packages:
  apmd alsa-oss oss-compat pavumeter paman paprefs
The following NEW packages will be installed:
  alsa-base libwebrtc-audio-processing1 pulseaudio
0 to upgrade, 3 to newly install, 0 to remove and 0 not to upgrade.
Need to get 1,193 kB of archives.
After this operation, 5,279 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 alsa-base all 1.0.25+dfsg-0ubuntu5 [145 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libwebrtc-audio-processing1 amd64 0.3-1 [260 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 pulseaudio amd64 1:11.1-1ubuntu7.7 [788 kB]
Fetched 1,193 kB in 4s (307 kB/s)   
Selecting previously unselected package alsa-base.
(Reading database ... 426276 files and directories currently installed.)
Preparing to unpack .../alsa-base_1.0.25+dfsg-0ubuntu5_all.deb ...
Unpacking alsa-base (1.0.25+dfsg-0ubuntu5) ...
Selecting previously unselected package libwebrtc-audio-processing1:amd64.
Preparing to unpack .../libwebrtc-audio-processing1_0.3-1_amd64.deb ...
Unpacking libwebrtc-audio-processing1:amd64 (0.3-1) ...
Selecting previously unselected package pulseaudio.
Preparing to unpack .../pulseaudio_1%3a11.1-1ubuntu7.7_amd64.deb ...
Unpacking pulseaudio (1:11.1-1ubuntu7.7) ...
Setting up alsa-base (1.0.25+dfsg-0ubuntu5) ...
Setting up libwebrtc-audio-processing1:amd64 (0.3-1) ...
Setting up pulseaudio (1:11.1-1ubuntu7.7) ...
Adding user pulse to group audio
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for dbus (1.12.2-1ubuntu1.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
(base) [email protected]:~$ sudo apt-get -f install && sudo apt-get -y autoremove && sudo apt-get autoclean && sudo apt-get clean && sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
3

After takin these steps following is the outcome of the pactl:

(base) [email protected]:~$ pactl list short sinks
1   alsa_output.pci-0000_00_1f.3.analog-stereo  module-alsa-card.c  s16le 2ch 48000Hz   IDLE

Checked for additional drivers as suggested in an answer. Following is the screenshot.

additional drivers

No drivers are listed there.


Attempted to connect using a Bluetooth headset. Headset paired with the laptop but did not connect and hence did not show up in the device list.


Now, after restarting the laptop, following is the situation. But there is no sound.

pactl list short sinks
1   alsa_output.pci-0000_00_1f.3.analog-stereo  module-alsa-card.c  s16le 2ch 48000Hz   RUNNING

Another restart and it shows suspended again

pactl list short sinks
1   alsa_output.pci-0000_00_1f.3.analog-stereo  module-alsa-card.c  s16le 2ch 48000Hz   SUSPENDED

How to proceed to start the sound?

I updated the system from 18.04 to 19.04 and the sound issue resolved. I don’t know how.

Answer 1

just go to update app and then go to additional drives then choose the latest version of GPU it will work fine

don’t forget to use

sudo apt-get udpate 

Tagged : /

Ubuntu HowTo: How to install Winusb?

Original Source Link

I want to install winusb software on ubuntu 13.10. Installation via PPA method doesn’t work.

sudo add-apt-repository ppa:colingille/freshlight
sudo apt-get update 
sudo apt-get install winusb

To install do this. just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:colingille/freshlight
sudo apt-get update 
sudo apt-get install winusb

It has been tested, and it works OK. See image below

enter image description here
Before 13.10 was added to the PPA, a work around is to do the following:

sudo add-apt-repository ppa:colingille/freshlight
sudo nano /etc/apt/sources.list.d/colingille-freshlight-saucy.list
(change saucy to raring)
sudo apt-get update 
sudo apt-get install winusb

For Ubuntu 14.04, the repository is not current, but you can download the .deb and install with dpkg

Download the 64-bit .deb here,

or the 32-bit here,

and then go to this answer on Ask Ubuntu for complete installation instructions.

WinUSB doesn’t support current versions of Ubuntu, however WoeUSB which is an updated fork of the WinUSB application can be installed from Ubuntu Software or from the terminal with the following commands:

sudo snap install --edge woe-usb  
sudo snap connect woe-usb:removable-media

To launch the woe-usb snap package command line tool run the following command:

woe-usb.woeusb

Connect the woe-usb:removable-media plug to the woe-usb:removable-media slot in order to enable USB devices to be mounted automatically by WoeUSB.

  1. Search for woeusb in Ubuntu Software and click it to go to the woe-usb screen.

  2. Click the Permissions button.

  3. Toggle the Read/Write files on removeable storage devices slider from OFF to ON as shown in the below screenshot.

  4. Authenticate with your user password when the Authentication Required window pops up.

woe-usb Permissions

Tagged :

Ubuntu HowTo: Dual boot GRUB only boots windows into boot options

Original Source Link

I’ve been working on getting a dual boot setup going, and everything appears to be working fine; upon boot, grub shows Ubuntu and Windows Boot Manager to choose from, however upon choosing Windows, I am sent to the windows recovery screen/diagnostics/boot options, and have to shut down from there. The only way to boot into windows is manually through BIOS.

Tagged : / / / /

Ubuntu HowTo: Installation type empty on 16.04 for a dual boot

Original Source Link

I’m trying to install a dual boot (with Window 10) on my new XPS-15 (with a SSD 256Go).

Everything works well (following this tutorial) until I go on step “Installation type”.

Where I can’t select “Something else”, and I already have the partition table but completely empty. I can’t see any existing partition, or add new one.

enter image description here

It’s due to the XPS’s PCIE M2 drive configuration that is not recognised by the installer. I came across the same issue, in most cases this can be fixed by going to the BIOS (F2/F12 on boot up) and changing the SATA setting to AHCI. Save these changes and then reboot your Ubuntu boot drive and retry the install.

If the issue is still prevalent then see Dell’s full guidance below:

Add the following kernel argument at boot time: nvme_load=YES

Press 12 when you see the keyboard prompt:

Press Enter to select Language.
Press F6.
Press Esc.
Modify the boot option to add "nvme_load=YES" and remove "quiet splash ---"
Before:


After:


Press Enter.

You will now see the nvme drive available in the installer:

Controller: Nvme0
Port: N1
Partition: Px

To add to rjmd’s answer above, in case you get GRUB menu instead of the “keyboard prompt (Figure 2)” you can not press F12 or F6 to get into boot option menu. You can also tell the difference if the menu is using ugly block fonts to the left instead of nice fonts in the center of the screen and the top of the screen will say GRUB.

In such scenario highlight “Install Ubuntu” in the menu and press “e”. Then you can edit the boot options in the same way,

Modify the boot option to add "nvme_load=YES" and remove "quiet splash ---"

Tagged : / /