Thursday, November 2, 2017

wireless - Cannot see my wifi [10ec:d723] when trying Ubuntu

I am having an issue with wifi; it seems when I'm trying Ubuntu without installing, it only detects connection via the ethernet cable.



I can't connect and none of the available wifi networks are detected.



$ lspci
00:00.0 Host bridge: Intel Corporation Device 5904 (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 02)
00:08.0 System peripheral: Intel Corporation Sky Lake Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)

00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1)
00:1f.0 ISA bridge: Intel Corporation Device 9d4e (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)

01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330] (rev 83)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723





$ lspci -knn | grep Net -A3
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:d723]
DeviceName: Hanksville Gbe Lan Connection

Subsystem: Hewlett-Packard Company Device [103c:8319]

apache2 - Ubuntu Xenial 16.04 libapache2-mod-php5.6 NO PPA

Problem description:



My intention is to enable PHP5 on Xenial 16.04 for an Apache2-related project




I have compiled PHP v5.6 from official source and am currently trying to install package libapache2-mod-php5.6 using https://launchpad.net/ubuntu/xenial/amd64/libapache2-mod-php5.6/5.6.18+dfsg-4ubuntu1



After attempting to resolve dependencies, I end up with php5.6-common from https://launchpad.net/ubuntu/xenial/amd64/php5.6-common/5.6.18+dfsg-4ubuntu1 depending on php-common, however, after installing said php-common via apt, I keep getting following message:



    The following packages have unmet dependencies:
php5.6-common : Depends: php-common (>= 18~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.



Do I also need some outdated version of php-common?



Should I also build libapache2-mod-php5.6 from source (and if so, are there any code packages suited to compile properly on Xenial)?



NOTE: I am NOT supposed to use Ondrej's ppa due to company policy

16.04 - Why does my custom launcher file create two icons on the launcher bar?



I made a .desktop file to be able to launch my python script from the launcher bar.



I set the python script as an executable and it runs fine if I double click and run it from the file manager. It also runs fine from terminal.



The desktop file is located in /.local/share/applications/ and looks like:



[Desktop Entry]

Version=1.0
Name=Simple Timer
Comment=Timer
Exec=python3 /home/user/app/timer.py
Icon=/home/user/app/icon/timer.png
Path=/home/user/app/timer/
Terminal=false
Type=Application
Categories=Utility;Application;



If I search "Timer" in Dash, it shows up. I can run it from there. Running it would create two duplicate icons on the launcher bar as pictured.



enter image description here




  • First icon will pulsate for about 10 seconds and then disappear. This icon is lockable to the launcher. If this icon is locked to the launcher bar, it will also pulsate for a few seconds after the application window closes, during which, it will be unclickable.

  • Second icon is not lockable to the launcher and will only disappear if the application window is closed.




If I run the script from file manager. It creates 1 launcher icon that behaves normally.



I have verified that there are no duplicate .desktop files in /usr/share/applications/. My created .desktop file only exists in /.local/share/applications/ and if removed, I will no longer be able to search for my timer on Dash or lock it to launcher bar.



How can I fix both the pulsating/unclickable issue and the double icon issue here?



Launcher does not recognize the window as "his"



Specifically Tkinter windows do not recognize their "own" window (class). This makes the icon blink in vain, waiting for its window. Once the window appears, the launcher doesn't recognize its own window and pops out of the launcher when timeout has passed.
Since a "normal" window is always represented by an icon in the launcher, you are left with a generic icon (usually, if there is no duplicate launcher) or a different one (see further below).




You can simply fix that by adding:



StartupWMClass=Tk


to your launcher (since it is a Tkinter window)



Look at the difference (I gave the launcher the firefox icon for testing):





  1. without the line, when opening multiple windows. Watch the three generic icons + a blinking firefox icon, disappearing after 10 seconds or so.



    enter image description here


  2. Now I add the line StartupWMClass=Tk, all windows are grouped in the same icon:



    enter image description here




Why no generic icon in your case?




Adding the WM_CLASS to your .desktop file will fix your issue. I am pretty sure however, you accidentally created an extra launcher (or have Unity created one automatically). Look in /.local/share/applications/ and make your launchers executable. The icon will show. Most likely, your dupe will have "unity" in its name.



In general, how to find the WM_CLASS of a window?




  • Open a terminal, type



     xprop WM_CLASS


  • Subsequently click on the window. two strings appear, separated by a comma. The one in Title case is the one yoiu need to add.




Notes



Not your issue, but:



You don't need to set the lines below:





  • Version=1.0 (no harm, but not needed)

  • Since your script is executable, you don't need python3 (you can have the script call the interpreter directly)

  • Path=/home/user/app/timer/ (unnecessary)

  • Terminal=false (this is the default)


application development - How to get my software into Ubuntu?



As a developer of free software, I want to get my application into Ubuntu.




Should I provide a source tarball and ask for packaging? Or should I create a package myself? Should I target Ubuntu directly, or should I try to get into Debian and then into Ubuntu automatically?



There are a number of paths that a package can take to enter Ubuntu. The overview of Ubuntu development targeted at "upstream" developers like yourself might be a useful place to start, but I'll try to give you some pointers as well.



Through Debian



Generally, if you are publishing free and open source software going through Debian first is the best path. This way ensures that your package will have a dedicated maintainer. It also will reach the largest number of users as it will be available in not just Debian and Ubuntu but all of their derivatives as well. Some useful links for requesting/providing new packages in Debian:





  • Work-Needing and Prospective
    Packages
    - Information on how to
    file "Intent to Package" and "Request
    for Package" bugs as well as list of
    open ITPs and RFPs.


  • Debian Mentors
    FAQ
    - debian-mentors is for the
    mentoring of new and prospective
    Debian Developers. It is where you can
    find a sponsor to upload your package to the archive.



  • Debian Developer's Reference - Debian Developer's Reference's section on new packages. The entire document is invaluable for both Ubuntu and Debian packagers.




Directly into Ubuntu



In some cases, it might make sense to go directly into Ubuntu first. Some helpful links:




  • The Ubuntu App Developer site - for lightweight desktop applications, you can submit them directly on the My Apps section of developer.ubuntu.com, the App Review Board will review them and they will be published in the Software Center.


  • Packaging Guide - an introduction to how to package for Ubuntu.



  • REVU - a web-based tool to which Ubuntu contributors can upload new packages for review by Ubuntu Developers for inclusion into Ubuntu.


  • Sponsorship Process - After entering Ubuntu, you can maintain your package through the sponsorship process.




Personal Package Archives



Beyond the official Ubuntu and Debian channels, Launchpad offers you the ability to distribute Debian packages directly to your users through its Personal Package Archives or PPAs for short. One particularly useful aspect of a PPA is that you can provide daily builds of your software for testing purposes.


dual boot - Installing persistent Ubuntu on USB flash drive alongside internal SSD with Windows 10

I have a laptop with Windows 10 installed on the internal SSD. I wish to install Ubuntu on a 64 GB USB 3.0 external flash drive. I already have a separate bootable flash drive with ubuntu 17.04 on it. When I go through the installation process the partition manager detects all my drives and partitions but refuses to let me install onto the external USB drive without modifying the SSD windows boot partition. Several years ago I had a set up where booting a machine without an Ubuntu 14 USB would take me straight to windows and booting with the USB would take me into a persistent Ubuntu 14 that behaved just like a normal internal drive installation (no file or program or setting loss like live versions). I wish to replicate this. Thank you for your time.



TLDR; I have windows on an internal drive. I want ubuntu on a USB flash drive without touching the internal windows drive in any way. UEFI bios boot order is already configured.

Wednesday, November 1, 2017

14.04 - Ethernet Connection issues




I have a similar problem to this one:



Ethernet connection not working after installing Ubuntu 14.04 LTS



I also have a dual boot with windows 7 and ubuntu 14.04. My ethernet connection has always been fine in ubuntu. I recently booted to windows 7 for the first time, and connection was still fine. The problem came when I booted back into ubuntu, with no connection being picked up.



Unfortunately I can't post the diagnosis info since I can't connect the machine to the internet, but from what I can tell the only major difference is that when I run




sudo lshw -class bridge





my "driver" comes up as e1000e and not as "forcedeth".



Hence, when I try @ElderGeek's solution (as root in the recovery mode), the line




rmmod forcedeth





returns something like




ERROR: Forcedeth not currently loaded




most likely since that's not even a driver.



I imagine that the answer is probably just to instead try





rmmod e1000e



modprobe e1000e msi=0 msix=0



exit




but I don't want to run commands that I don't fully understand in case I break something.




(Although I suppose it wouldn't matter if it's booted into recovery mode?)



EDIT - additional information



 ~ $ lspci | grep Ethernet

00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 04)

~ $ ifconfig eth0


eth0 Link
encap:Ethernet HWaddr 64:00:6a:4d:d0:dc
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:20 Memory:f7d00000-f7d20000

~ $ sudo lshw -class bridge


*-pci
description: Host bridge
product: 4th Gen Core Processor DRAM Controller
vendor: Intel Corporation
physical id: 100
bus info: pci@0000:00:00.0
version: 06
width: 32 bits
clock: 33MHz

configuration: driver=hsw_uncore
resources: irq:0
*-pci
description: PCI bridge
product: Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller
vendor: Intel Corporation
physical id: 1
bus info: pci@0000:00:01.0
version: 06
width: 32 bits

clock: 33MHz
capabilities: pci pm msi pciexpress normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:26 ioport:e000(size=4096)
memory:f7c00000-f7cfffff ioport:e0000000(size=268435456)
*-isa
description: ISA bridge
product: Q87 Express LPC Controller
vendor: Intel Corporation
physical id: 1f

bus info: pci@0000:00:1f.0
version: 04
width: 32 bits
clock: 33MHz
capabilities: isa bus_master cap_list
configuration: driver=lpc_ich latency=0
resources: irq:0

~ $ sudo lshw -class network


*-network DISABLED
description: Ethernet interface
product: Ethernet Connection I217-LM
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eth0
version: 04
serial: 64:00:6a:4d:d0:dc
size: 100Mbit/s

capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.3.3-NAPI duplex=full firmware=0.13-4 latency=0 link=no multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:29 memory:f7d00000-f7d1ffff memory:f7d3d000-f7d3dfff ioport:f080(size=32)

~ $ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu Description:
Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty


So in the end I managed to solve the problem by adding the following lines to /etc/network/interfaces:



auto eth0
iface eth0 inet dhcp



(I believe this is essentially the same as clicking on the connections icon -> edit settings -> change the relevant interface setting)



The internet now works, the only minor snag is that the "connections" icon on the tab on the top of the page does not seem to recognise that there is a working connection.


12.04 - Can I make Ubuntu boot from a SD card?

Is it possible to download Ubuntu 12.04 to an SD card and then use that to install or to boot directly from it, rather than using a USB stick?



The plan is to install Ubuntu on an old Toshiba Portege M200 laptop, which does not have a CD drive.

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 (...