Kodi fails to start if run as non-root user https://askubuntu.com/questions/1564687/kodi-fails-to-start-if-run-as-non-root-user

OS is Kubuntu 24.04, fresh install on Lenovo Yoga 7, Aura edition, with gen 13 Intel Core 7 cpu. 1 user created, member of sudo, video, audio, plugdev groups. Tried Kodi installs from official Ubuntu repo (sudo apt install kodi). I tried also installing from the official Kodi source, as well compiling from source. In all cases, it is impossible to start kodi as this normal user.

Starting as: sudo kodi works normally, but as expected, starting from desktop application launcher fails.

The kodi.log gives this:

2026-03-06 14:27:09.712 T:61797    info <general>: CreateNewWindow: Starting full screen size 2880x1800
2026-03-06 14:27:09.713 T:61797    info <general>: UpdateSizeVariables: Surface size changed: 0x0 -> 2880x1800
2026-03-06 14:27:09.713 T:61797    info <general>: UpdateSizeVariables: Buffer size changed: 0x0 -> 2880x1800
2026-03-06 14:27:09.713 T:61797    info <general>: UpdateSizeVariables: Configured size changed: 0x0 -> 2880x1800
2026-03-06 14:27:09.714 T:61797    info <general>: UpdateSizeVariables: Surface size changed: 2880x1800 -> 1920x1200
2026-03-06 14:27:09.714 T:61797    info <general>: UpdateSizeVariables: Buffer size changed: 2880x1800 -> 1920x1200
2026-03-06 14:27:09.714 T:61797    info <general>: UpdateSizeVariables: Configured size changed: 2880x1800 -> 1920x1200
2026-03-06 14:27:09.719 T:61797   error <general>: failed to create platform window surface (EGL_SUCCESS)
2026-03-06 14:27:09.719 T:61797 critical <general>: CApplication::Create: Unable to create window
2026-03-06 14:27:09.719 T:61797    info <general>: Stopping the application...

This is the only application that has this issue.

Of course, I created desktop entry called kodi-sudo, set it to run as root, then updated entries and added to application launcher, but I don't like it. Kodi logs, and userdata folder is in /root/.kodi/.

Does anyone has any experience with such problem and how to solve it?

How do I use USB tethering on 16.04 with an iPhone on iOS 26 [closed] https://askubuntu.com/questions/1564684/how-do-i-use-usb-tethering-on-16-04-with-an-iphone-on-ios-26

I need help and have no other option because there is no built in WiFi card

Broadcom driver problems, can't install some software https://askubuntu.com/questions/1564682/broadcom-driver-problems-cant-install-some-software

After a problem with an SSD on my ancient Dell desktop, I reinstalled Ubuntu 24.04 and then reinstalled user files from a backup. Trying to reinstall some software (UrBackup Server, e.g.) the install process failed, apparently because the Broadcom wireless driver couldn't be compiled due to a missing header file.

There's an incredible amount of stuff on the web related to Broadcom driver issues, and after several days of trying to make sense of it all, I'm stuck. I can't even delete the Broadcom driver without the process failing due to the missing header file.

The wireless module is a BCM4313 (14e4:4727). My kernel is 6.17.0-14-generic. At the moment there is no driver reported for the wireless interface. I can live without wireless if I must, but I'd really like to be able to install software again.

Given the unknown configuration of my system now, maybe the output from lshw -C network would be a good starting point:

# lshw -c network
*-network UNCLAIMED       
       description: Network controller
       product: BCM4313 802.11bgn Wireless Network Adapter
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:fe500000-fe503fff
"probe with driver iwlwifi failed with error -110" https://askubuntu.com/questions/1564676/probe-with-driver-iwlwifi-failed-with-error-110

To preface this, I am just a hobbiest tinkerer, please be gentle.
Been trying to use ChatGPT to fix this, but can't seem to get it working.

Just purchased a used Lenovo X13 Gen3. Removed the SSD and put the SSD in from my 6 year old XPS, running Linux.
Everything spooled up perfectly, except Wifi. (Yes, wifi was working on the other SSD with windows)

jordan@Ubuntu-Laptop:\~$ lspci -nnk | grep -A3 -i network 
00:14.3 Network controller \[0280\]: Intel Corporation Alder Lake-P PCH CNVi WiFi \[8086:51f0\] (rev 01) Subsystem: Intel Corporation Alder Lake-P PCH CNVi WiFi \[8086:0090\] Kernel modules: iwlwifi 
00:15.0 Serial bus controller \[0c80\]: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 \[8086:51e8\] (rev 01) jordan@Ubuntu-Laptop:\~$ 
jordan@Ubuntu-Laptop:\~$ rfkill list 0: tpacpi_bluetooth_sw: Bluetooth Soft blocked: no Hard blocked: no 1: hci0: Bluetooth Soft blocked: no Hard blocked: no jordan@Ubuntu-Laptop:\~$  
jordan@Ubuntu-Laptop:\~$ nmcli device DEVICE TYPE STATE CONNECTION enx6045bdfb902b ethernet connected Wired connection 1 tailscale0 tun connected (externally) tailscale0 lo loopback connected (externally) lo lxcbr0 bridge connected (externally) lxcbr0 jordan@Ubuntu-Laptop:\~$        
jordan@Ubuntu-Laptop:\~$ sudo dmesg | grep iwlwifi  
\[ 4.110173\] iwlwifi 0000:00:14.3: probe with driver iwlwifi failed with error -110  

Any help would be appreciated...

Cannot run, install, update, or uninstall python3 from ubuntu 24.04 https://askubuntu.com/questions/1564673/cannot-run-install-update-or-uninstall-python3-from-ubuntu-24-04

I'm currently trying to install python3 onto ubuntu24.04.3. I only realized that python came preinstalled with ubuntu after attempting sudo apt install python3.

I have now seemed to have permanently borked python and apt on my system. When I try to run any python operation, the system cannot find the python3command. When I try to run sudo apt install python3, I get the following output:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python3 : Depends: libpython3-stdlib (= 3.12.3-0ubuntu2.1) but 3.12.3-0ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I tried to run sudo apt install libpython3-stdliband got the following output:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python3 : PreDepends: python3-minimal (= 3.12.3-0ubuntu2) but 3.12.3-0ubuntu2.1 is to be installed
           Depends: libpython3-stdlib (= 3.12.3-0ubuntu2) but 3.12.3-0ubuntu2.1 is to be installed
 python3-dev : Depends: python3 (= 3.12.3-0ubuntu2.1) but 3.12.3-0ubuntu2 is to be installed
 python3-venv : Depends: python3 (= 3.12.3-0ubuntu2.1) but 3.12.3-0ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I thought that there might have been an issue with my apt repos, so I ran a sudo apt update. It resulted in this error:

Hit:6 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Fetched 6,581 B in 1s (11.3 kB/s)
sh: 1: /usr/lib/cnf-update-db: Permission denied
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code

Getting pretty frustrated at this point, I decided I'd try to run --fix-broken as it suggested.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libllvm19
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libpython3-stdlib python3
Suggested packages:
  python3-doc python3-tk
The following packages will be upgraded:
  libpython3-stdlib python3
2 upgraded, 0 newly installed, 0 to remove and 347 not upgraded.
3 not fully installed or removed.
Need to get 0 B/33.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up python3-minimal (3.12.3-0ubuntu2.1) ...
/var/lib/dpkg/info/python3-minimal.postinst: 5: py3compile: Permission denied
dpkg: error processing package python3-minimal (--configure):
 installed python3-minimal package post-installation script subprocess returned error exit status 126
Errors were encountered while processing:
 python3-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm completely stuck at this point. And I'd much rather avoid doing a completely fresh ubuntu install. Does anyone know of a fix for this?

Thanks in advance!

Edit:

Here is my list of installed python packages:

libpython3-dev/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed,automatic]
libpython3-stdlib/now 3.12.3-0ubuntu2 amd64 [installed,upgradable to: 3.12.3-0ubuntu2.1]
libpython3.12-dev/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
libpython3.12-minimal/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
libpython3.12-stdlib/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
libpython3.12t64/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python-apt-common/now 2.7.7ubuntu5 all [installed,upgradable to: 2.7.7ubuntu5.2]
python-babel-localedata/noble,now 2.10.3-3build1 all [installed,automatic]
python3-apport/noble-updates,noble-security,now 2.28.1-0ubuntu3.8 all [installed,automatic]
python3-apt/now 2.7.7ubuntu5 amd64 [installed,upgradable to: 2.7.7ubuntu5.2]
python3-aptdaemon.gtk3widgets/noble,now 1.1.1+bzr982-0ubuntu44 all [installed,automatic]
python3-aptdaemon/noble,now 1.1.1+bzr982-0ubuntu44 all [installed,automatic]
python3-attr/noble,now 23.2.0-2 all [installed,automatic]
python3-babel/noble,now 2.10.3-3build1 all [installed,automatic]
python3-blinker/noble,now 1.7.0-1 all [installed,automatic]
python3-bpfcc/noble,now 0.29.1+ds-1ubuntu7 all [installed,automatic]
python3-brlapi/noble,now 6.6-4ubuntu5 amd64 [installed,automatic]
python3-cairo/noble,now 1.25.1-2build2 amd64 [installed,automatic]
python3-certifi/noble,now 2023.11.17-1 all [installed,automatic]
python3-cffi-backend/noble,now 1.16.0-2build1 amd64 [installed,automatic]
python3-chardet/noble,now 5.2.0+dfsg-1 all [installed,automatic]
python3-click/noble,now 8.1.6-2 all [installed,automatic]
python3-colorama/noble,now 0.4.6-4 all [installed,automatic]
python3-commandnotfound/noble,now 23.04.0 all [installed,automatic]
python3-configobj/noble,now 5.0.8-3 all [installed,automatic]
python3-cryptography/noble-updates,noble-security,now 41.0.7-4ubuntu0.1 amd64 [installed,automatic]
python3-cups/noble,now 2.0.1-5build6 amd64 [installed,automatic]
python3-cupshelpers/noble,now 1.5.18-1ubuntu9 all [installed,automatic]
python3-dateutil/noble,now 2.8.2-3ubuntu1 all [installed,automatic]
python3-dbus/noble,now 1.3.2-5build3 amd64 [installed,automatic]
python3-debconf/noble,now 1.5.86ubuntu1 all [installed,automatic]
python3-debian/noble,now 0.1.49ubuntu2 all [installed,automatic]
python3-defer/noble,now 1.0.6-2.1ubuntu1 all [installed,automatic]
python3-dev/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed,automatic]
python3-distro-info/noble,now 1.7build1 all [installed,automatic]
python3-distro/noble,now 1.9.0-1 all [installed,automatic]
python3-distupgrade/now 1:24.04.27 all [installed,upgradable to: 1:24.04.28]
python3-dnspython/noble,now 2.6.1-1ubuntu1 all [installed,automatic]
python3-gdbm/noble,now 3.12.3-0ubuntu1 amd64 [installed,automatic]
python3-gi/noble,now 3.48.2-1 amd64 [installed,automatic]
python3-gpg/noble,now 1.18.0-4.1ubuntu4 amd64 [installed,automatic]
python3-httplib2/noble,now 0.20.4-3 all [installed,automatic]
python3-ibus-1.0/noble,now 1.5.29-2 all [installed,automatic]
python3-idna/noble-updates,noble-security,now 3.6-2ubuntu0.1 all [installed,automatic]
python3-jinja2/noble-updates,noble-security,now 3.1.2-1ubuntu1.3 all [installed,automatic]
python3-json-pointer/noble,now 2.0-0ubuntu1 all [installed,automatic]
python3-jsonpatch/noble,now 1.32-3 all [installed,automatic]
python3-jsonschema/noble,now 4.10.3-2ubuntu1 all [installed,automatic]
python3-jwt/noble,now 2.7.0-1 all [installed,automatic]
python3-launchpadlib/noble,now 1.11.0-6 all [installed,automatic]
python3-lazr.restfulclient/noble,now 0.14.6-1 all [installed,automatic]
python3-lazr.uri/noble,now 1.0.6-3 all [installed,automatic]
python3-ldb/now 2:2.8.0+samba4.19.5+dfsg-4ubuntu9.3 amd64 [installed,upgradable to: 2:2.8.0+samba4.19.5+dfsg-4ubuntu9.4]
python3-louis/noble,now 3.29.0-1build1 all [installed,automatic]
python3-markdown-it/noble,now 3.0.0-2 all [installed,automatic]
python3-markdown/noble,now 3.5.2-1 all [installed,automatic]
python3-markupsafe/noble,now 2.1.5-1build2 amd64 [installed,automatic]
python3-mdurl/noble,now 0.1.2-1 all [installed,automatic]
python3-minimal/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed,auto-removable]
python3-netaddr/noble,now 0.8.0-2ubuntu1 all [installed,automatic]
python3-netifaces/noble,now 0.11.0-2build3 amd64 [installed]
python3-netplan/now 1.1.2-2~ubuntu24.04.2 amd64 [installed,upgradable to: 1.1.2-8ubuntu1~24.04.1]
python3-oauthlib/noble,now 3.2.2-1 all [installed,automatic]
python3-olefile/noble,now 0.46-3 all [installed,automatic]
python3-pexpect/noble,now 4.9-2 all [installed,automatic]
python3-pil/noble-updates,noble-security,now 10.2.0-1ubuntu1 amd64 [installed,automatic]
python3-pip-whl/noble-updates,noble-security,now 24.0+dfsg-1ubuntu1.3 all [installed,automatic]
python3-pip/noble-updates,noble-security,now 24.0+dfsg-1ubuntu1.3 all [installed]
python3-pkg-resources/noble-updates,noble-security,now 68.1.2-2ubuntu1.2 all [installed,automatic]
python3-problem-report/noble-updates,noble-security,now 2.28.1-0ubuntu3.8 all [installed,automatic]
python3-ptyprocess/noble,now 0.7.0-5 all [installed,automatic]
python3-pygments/noble,now 2.17.2+dfsg-1 all [installed,automatic]
python3-pyparsing/noble,now 3.1.1-1 all [installed,automatic]
python3-pyrsistent/noble,now 0.20.0-1build2 amd64 [installed,automatic]
python3-requests/noble-updates,noble-security,now 2.31.0+dfsg-1ubuntu1.1 all [installed,automatic]
python3-rich/noble,now 13.7.1-1 all [installed,automatic]
python3-samba/now 2:4.19.5+dfsg-4ubuntu9.3 amd64 [installed,upgradable to: 2:4.19.5+dfsg-4ubuntu9.4]
python3-serial/noble,now 3.5-2 all [installed,automatic]
python3-setuptools-whl/noble-updates,noble-security,now 68.1.2-2ubuntu1.2 all [installed,automatic]
python3-setuptools/noble-updates,noble-security,now 68.1.2-2ubuntu1.2 all [installed,automatic]
python3-six/noble,now 1.16.0-4 all [installed,automatic]
python3-software-properties/now 0.99.49.3 all [installed,upgradable to: 0.99.49.4]
python3-speechd/noble,now 0.12.0~rc2-2build3 all [installed,automatic]
python3-sss/noble-updates,now 2.9.4-1.1ubuntu6.3 amd64 [installed,automatic]
python3-systemd/noble,now 235-1build4 amd64 [installed,automatic]
python3-talloc/noble,now 2.4.2-1build2 amd64 [installed,automatic]
python3-tdb/noble,now 1.4.10-1build1 amd64 [installed,automatic]
python3-typing-extensions/noble,now 4.10.0-1 all [installed,automatic]
python3-tz/noble,now 2024.1-2 all [installed,automatic]
python3-update-manager/noble-updates,now 1:24.04.12 all [installed,automatic]
python3-urllib3/now 2.0.7-1ubuntu0.2 all [installed,upgradable to: 2.0.7-1ubuntu0.6]
python3-venv/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed]
python3-wadllib/noble,now 1.3.6-5 all [installed,automatic]
python3-wheel/noble,now 0.42.0-2 all [installed,automatic]
python3-xdg/noble,now 0.28-2 all [installed,automatic]
python3-xkit/noble,now 0.5.0ubuntu6 all [installed,automatic]
python3-yaml/noble,now 6.0.1-2build2 amd64 [installed,automatic]
python3.12-dev/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3.12-minimal/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3.12-venv/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3.12/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3/now 3.12.3-0ubuntu2 amd64 [installed,upgradable to: 3.12.3-0ubuntu2.1]

Edit 2:

I was referred to this post and tried running sudo apt install --reinstall python3 python python3-minimal --fix-broken. After which I got this error:

Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  2to3 python-is-python3

So I tried running the same command without python sudo apt install --reinstall python3 python3-minimal --fix-broken and got the following error:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python3 : Depends: libpython3-stdlib (= 3.12.3-0ubuntu2.1) but 3.12.3-0ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Still stuck on this.

Okular snap won't start, gives error https://askubuntu.com/questions/1564653/okular-snap-wont-start-gives-error

When I try to start Okular to view PDFs, I get this error:

/snap/okular/173/usr/bin/okular: error while loading shared libraries: libPlasmaActivities.so.6: cannot open shared object file: No such file or directory

Also, I'm not sure if this is related, but when I start the Snap Store and click on "Installed" to try to view the installed applications, the page is completely blank. Nothing ever loads.

If I run

snap list

on the command line I can see all the installed applications and okular shows up.

I tried running

sudo snap refresh
sudo snap remove okular && sudo snap install okular

to fix ocular, but it still gives the error above. On the command line after running that last command I get:

okular removed (snap data snapshot saved)
okular 25.04.3 from KDE✓ installed 
Downgrade kernel 5.19 to 5.15 https://askubuntu.com/questions/1453219/downgrade-kernel-5-19-to-5-15

I'm having issues with my GPU on my laptop after installing Ubuntu 22.10 with the 5.19 kernel ("VM_L2_PROTECTION_FAULT_STATUS:0x00140051"). My laptop freezes after a while and I'm also not sure when or how to reproduce this because these freezes come in randomly. Apparently it's a common problem known for IdeaPad 3 laptops with AMD GPUs. One suggestion was to downgrade the kernel. Does anybody know a well-explained guide, something beginner friendly on how to downgrade the kernel from 5.19 to 5.15 without deleting the entire SSD and clean installing an LTS version of the OS?

Related to the freezes i experience, this is the error/warning I get:

amdgpu 0000:03:00.0: amdgpu: [mmhub0] retry page fault (src_id:0 ring:0 vmid:1 pasid:32776, for process spotify pid 13673 thread spotify:cs0 pid 13735)
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:   in page starting at address 0x0000800106a20000 from IH client 0x12 (VMC)
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00140051
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          Faulty UTCL2 client ID: MP1 (0x0)
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          MORE_FAULTS: 0x1
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          WALKER_ERROR: 0x0
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          PERMISSION_FAULTS: 0x5
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          MAPPING_ERROR: 0x0
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          RW: 0x1
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu: [mmhub0] retry page fault (src_id:0 ring:0 vmid:1 pasid:32776, for process spotify pid 13673 thread spotify:cs0 pid 13735)
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:   in page starting at address 0x0000800106a20000 from IH client 0x12 (VMC)
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00140051
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          Faulty UTCL2 client ID: MP1 (0x0)
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          MORE_FAULTS: 0x1
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          WALKER_ERROR: 0x0
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          PERMISSION_FAULTS: 0x5
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          MAPPING_ERROR: 0x0
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:          RW: 0x1
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu: [mmhub0] retry page fault (src_id:0 ring:0 vmid:1 pasid:32776, for process spotify pid 13673 thread spotify:cs0 pid 13735)
Feb 02 22:37:26 kernel: amdgpu 0000:03:00.0: amdgpu:   in page starting at address 0x0000800106a20000 from IH client 0x12 (VMC)
How to get rid of Ubuntu Pro advertisement when updating apt? https://askubuntu.com/questions/1434512/how-to-get-rid-of-ubuntu-pro-advertisement-when-updating-apt

Recently, whenever I run apt update/upgrade, I get the following message in the terminal:

Try Ubuntu Pro beta with a free personal subscription on up to 5 machines.
Learn more at https://ubuntu.com/pro

Does anyone know any way to get rid of this?

syslog is filled with IPv6: MLD: clamping QRV from 1 to 2! https://askubuntu.com/questions/1353666/syslog-is-filled-with-ipv6-mld-clamping-qrv-from-1-to-2

My /var/log/syslog file is taking a lot of space and getting filled with an error message

 IPv6: MLD: clamping QRV from 1 to 2!  

and lots of other messages.

How can I find out what's causing this error and fix it?

How to Duplicate Displays on Ubuntu? https://askubuntu.com/questions/1326168/how-to-duplicate-displays-on-ubuntu

I have my laptop and Two monitors. I just want to use my two monitors as two separate displays, and don't care about my laptop. Under Settings -> Displays, when I select Join Display, I would have my laptop as display1 and two monitors as display2, so I can not use two monitors as two separate displays. Any Suggestion?

Ubuntu touch on a usb stick https://askubuntu.com/questions/1323828/ubuntu-touch-on-a-usb-stick

I'm trying to install Ubuntu touch on a USB stick, then plug it into a windows machine and just boot Ubuntu from there.

I have downloaded Rufus and now I'm trying to find an .iso of ubuntu touch.

I downloaded the files from here but there was no .iso. I did find this post but it hasn't helped.

Where could I find the .iso?

My Ubuntu doesn't start. What happened? [duplicate] https://askubuntu.com/questions/1294845/my-ubuntu-doesnt-start-what-happened

This morning my Ubuntu doesn't start. It gets stuck at a black screen with no error messages.

[  OK  ] Started ACPI event daemon.
         Starting System Logging Service...
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Set the CPU Frequency Scaling governor.
         Starting LSB: Speech Dispatcher...
[  OK  ] Started D-Bus System Message Bus.
         Starting Modem Manager...
[  OK  ] Started Run anacron jobs.
         Starting Thermal Daemon Service...
         Starting WPA supplicant...
[  OK  ] Started irqbalance daemon.
         Starting Dispatcher daemon for systemd-networkd...
[  OK  ] Started CUPS Scheduler.
         Starting Accounts Service...
         Starting Network Manager...
         Starting LSB: automatic crash report generation...
         Starting LSB: Record successful boot for GRUB...
         Starting Login Service...
         Starting Restore /etc/resolv.conf if the system crashed before the ppp link was shut down...
         Starting Disk Manager...
         Starting Save/Restore Sound Card State...
[  OK  ] Started Regular background program processing daemon.
         Starting Snap Daemon...
[  OK  ] Started System Logging Service.
[  OK  ] Started Detect the available GPUs and deal with any system changes.
[  OK  ] Started Save/Restore Sound Card State.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Make remote CUPS printers available locally.
[  OK  ] Started LSB: Speech Dispatcher.
[  OK  ] Started Restore /etc/resolv.conf if the system crashed before the ppp link was shut down.
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Started LSB: Record successful boot for GRUB.
[  OK  ] Started Login Service.
         Starting Authorization Manager...
[  OK  ] Started WPA supplicant.
On a dual boot after some days it crashes when booting https://askubuntu.com/questions/1217982/on-a-dual-boot-after-some-days-it-crashes-when-booting

I installed Windows 10 and Ubuntu on a dual boot (two drives, SSD for OS).

Some days it runs fine, but suddenly it goes like the screenshot shows.
If I restart the PC it goes directly to the BIOS (no grub or anything).

It says:

/dev/sda5: clean, 198072/656... files, ...../..... blocks
[ 67.73... ] systemd-journalID[342]: failed to write entry (28 items ...) ignoring: read-only file system

Boot problem screenshots:

/dev/sda1: clean, 288372/5847432 files, 24779831/58464256 blocks
[   67.730125] systemd-journald[342]: Failed to write entry (28 items, 745 bytes), ignoring: Read-only file system
[   67.730623] systemd-journald[342]: Failed to write entry (22 items, 541 bytes), ignoring: Read-only file system
[   67.730703] systemd-journald[342]: Failed to write entry (22 items, 747 bytes), ignoring: Read-only file system
[   67.730773] systemd-journald[342]: Failed to write entry (22 items, 637 bytes), ignoring: Read-only file system
[   67.730854] systemd-journald[342]: Failed to write entry (22 items, 641 bytes), ignoring: Read-only file system
[   67.730930] systemd-journald[342]: Failed to write entry (22 items, 747 bytes), ignoring: Read-only file system
[   67.731003] systemd-journald[342]: Failed to write entry (22 items, 614 bytes), ignoring: Read-only file system
[   67.731074] systemd-journald[342]: Failed to write entry (22 items, 747 bytes), ignoring: Read-only file system
[   67.731144] systemd-journald[342]: Failed to write entry (22 items, 641 bytes), ignoring: Read-only file system
[   67.731195] systemd-journald[342]: Failed to write entry (22 items, 747 bytes), ignoring: Read-only file system
_
[24531.174641] systemd-journald[339]: Failed to write entry (22 items, 641 bytes), ignoring: Read-only file system
[24531.175140] systemd-journald[339]: Failed to write entry (22 items, 747 bytes), ignoring: Read-only file system
[24531.175643] systemd-journald[339]: Failed to write entry (22 items, 641 bytes), ignoring: Read-only file system
[24531.176378] systemd-journald[339]: Failed to write entry (22 items, 747 bytes), ignoring: Read-only file system
[24531.177553] systemd-journald[339]: Failed to write entry (13 items, 335 bytes), ignoring: Read-only file system
[24531.178470] systemd-journald[339]: Failed to write entry (13 items, 371 bytes), ignoring: Read-only file system
[24531.179366] systemd-journald[339]: Failed to write entry (13 items, 335 bytes), ignoring: Read-only file system
[24535.179944] EXT4-fs error (device sda1): __ext4_find_entry:1540: inode #5904952: comm systemd-udevd: checksumming directory block 0
[24535.180554] EXT4-fs error (device sda1): __ext4_find_entry:1540: inode #5904952: comm systemd-udevd: checksumming directory block 0
[24535.181119] systemd-journald[339]: Failed to write entry (24 items, 746 bytes), ignoring: Read-only file system
[24535.181640] EXT4-fs error (device sda1): __ext4_find_entry:1540: inode #5904952: comm systemd-udevd: checksumming directory block 0
[24535.182245] systemd-journald[339]: Failed to write entry (24 items, 746 bytes), ignoring: Read-only file system
[24535.182874] EXT4-fs error (device sda1): __ext4_find_entry:1540: inode #5904952: comm systemd-udevd: checksumming directory block 0
[24535.183122] EXT4-fs error (device sda1): __ext4_find_entry:1540: inode #5904952: comm systemd-udevd: checksumming directory block 0
[24535.183595] systemd-journald[339]: Failed to write entry (9 items, 270 bytes), ignoring: Read-only file system
[24535.184128] systemd-journald[339]: Failed to write entry (9 items, 332 bytes), ignoring: Read-only file system
[24535.184628] systemd-journald[339]: Failed to write entry (9 items, 270 bytes), ignoring: Read-only file system
[24535.185183] EXT4-fs error (device sda1): __ext4_find_entry:1540: inode #5904952: comm systemd-udevd: checksumming directory block 0
[24535.185133] systemd-journald[339]: Failed to write entry (9 items, 332 bytes), ignoring: Read-only file system
[24535.186143] systemd-journald[339]: Failed to write entry (9 items, 270 bytes), ignoring: Read-only file system
[24535.186156] systemd-journald[339]: Failed to write entry (9 items, 270 bytes), ignoring: Read-only file system
[24535.187844] EXT4-fs error (device sda1): __ext4_find_entry:1540: inode #5904952: comm systemd-udevd: checksumming directory block 0
[24548.167018] systemd-journald[339]: Failed to write entry (22 items, 745 bytes), ignoring: Read-only file system
[24548.167818] systemd-journald[339]: Failed to write entry (22 items, 541 bytes), ignoring: Read-only file system
[24548.169725] systemd-journald[339]: Failed to write entry (22 items, 747 bytes), ignoring: Read-only file system
[24548.171019] systemd-journald[339]: Failed to write entry (22 items, 637 bytes), ignoring: Read-only file system
[24548.172462] systemd-journald[339]: Failed to write entry (22 items, 641 bytes), ignoring: Read-only file system
[24548.172913] systemd-journald[339]: Failed to write entry (22 items, 747 bytes), ignoring: Read-only file system
[24548.173428] systemd-journald[339]: Failed to write entry (22 items, 614 bytes), ignoring: Read-only file system
[24548.173663] systemd-journald[339]: Failed to write entry (22 items, 747 bytes), ignoring: Read-only file system
[24548.174366] systemd-journald[339]: Failed to write entry (22 items, 641 bytes), ignoring: Read-only file system
[24548.174864] systemd-journald[339]: Failed to write entry (22 items, 747 bytes), ignoring: Read-only file system
[24548.175413] systemd-journald[339]: Failed to write entry (22 items, 747 bytes), ignoring: Read-only file system
[24548.683058] mt7601u 1-4:1.0: Invalid firmware image
[24548.683058] systemd-journald[339]: Failed to write entry (25 items, 627 bytes), ignoring: Read-only file system
[24563.686787] systemd-journald[339]: Failed to write entry (25 items, 627 bytes), ignoring: Read-only file system
[24563.687220] systemd-journald[339]: Failed to write entry (25 items, 627 bytes), ignoring: Read-only file system
[24563.688175] systemd-journald[339]: Failed to write entry (25 items, 729 bytes), ignoring: Read-only file system
prime-select nvidia not reflected in "about" Ubuntu 18.04 https://askubuntu.com/questions/1090919/prime-select-nvidia-not-reflected-in-about-ubuntu-18-04

I have a Dell XPS 15 9570 with both intel graphics and nvidia grpahics. Currently I am running Wayland (to avoid screen tearing issues) and the nvidia 410 driver.

I want to always know whether I am using intel or nvidia and be able to switch between the two.

If I run the commands

 sudo prime-select nvidia
 prime-select query

the terminal returns in fact

 nvidia 

However when I go to "About", under graphics it continues to list "Intel HD Graphics (Coffeelake 3x8 GT2)".

What gives?

Update: I suspect the issue is that "About" is not reflecting correctly what my computer is using. The reason being that if

 prime-select query 

returns

 nvidia

Then I cannot even log into Ubuntu Xorg (Gnome crashes immediately and returns me to login screen), but if it returns

 intel 

then I have no problem (FYI Wayland allows me to log on regardless). So something must be changing...

Error while booting Ubuntu 18.04 LTS with Kernel Version 4.18.8 https://askubuntu.com/questions/1076145/error-while-booting-ubuntu-18-04-lts-with-kernel-version-4-18-8
[    0.077858] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)

[    0.077858] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)

[    0.077957] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)

[    0.078621] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)

[    0.078965] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)

[    0.079046] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)

[    0.088229] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    0.093582] ACPI: Dynamic OEM Table Load:
[    0.093582] ACPI: SSDT 0xFFFF8F06757AB800 0005CD (v02 PmRef  Cpu0Ist  00003000 INTL 20160422)

[    0.093582] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)

[    0.093582] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)

[    0.093582] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)

[    0.093582] ACPI: \_PR_.PR00: _OSC native thermal LVT Acked
[    0.093582] ACPI: Dynamic OEM Table Load:
[    0.093582] ACPI: SSDT 0xFFFF8F06753BD000 0003FF (v02 PmRef  Cpu0Cst  00003001 INTL 20160422)
[    0.093582] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.093582] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.093582] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.093582] ACPI: Dynamic OEM Table Load:
[    0.093582] ACPI: SSDT 0xFFFF8F06757FD900 0000BA (v02 PmRef  Cpu0Hwp  00003000 INTL 20160422)
[    0.093582] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.093582] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.093582] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.093602] ACPI: Dynamic OEM Table Load:
[    0.093606] ACPI: SSDT 0xFFFF8F0675000800 000628 (v02 PmRef  HwpLvt   00003000 INTL 20160422)
[    0.093752] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.096004] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.096012] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.096407] ACPI: Dynamic OEM Table Load:
[    0.096413] ACPI: SSDT 0xFFFF8F0674C5A000 000D14 (v02 PmRef  ApIst    00003000 INTL 20160422)
[    0.097177] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.097198] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.097205] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.097226] ACPI: Dynamic OEM Table Load:
[    0.097226] ACPI: SSDT 0xFFFF8F0675330000 000317 (v02 PmRef  ApHwp    00003000 INTL 20160422)
[    0.097226] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.097226] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.097226] ACPI Error: No pointer back to namespace node in package (____ptrval____) (20180531/dsargs-303)
[    0.097226] ACPI: Dynamic OEM Table Load:
How to update Docker version in a Linux environment? https://askubuntu.com/questions/1072759/how-to-update-docker-version-in-a-linux-environment

I need to update my Docker version as the older version has some issue related to Go code. My Linux machine runs in AWS.

A start job is running for wait for network to be configured. Ubuntu server 17.10 https://askubuntu.com/questions/972215/a-start-job-is-running-for-wait-for-network-to-be-configured-ubuntu-server-17-1

i just installed ubuntu server on my laptop and everything works fine except for the fact that at boot if the laptop is not connected to ethernet or in range of my wi-fi i get this message "A start job is running for wait for network to be configured" that stays for about 2 minutes. I looked up online for solutions and i tried to:

  • Disable network manager
  • Edit timeout settings in /etc/systemd/system.conf
  • Disable systemd.networkd-wait-online.service

None of these solutions worked for me. Any possible fixes?

Ubuntu 16.04 takes too long to boot (almost 2 minutes) https://askubuntu.com/questions/864708/ubuntu-16-04-takes-too-long-to-boot-almost-2-minutes

I have a Acer Aspire 5741G and I installed Ubuntu 16.04 LTS recently. I have windows 7 pro as the other OS (dual boot). I get really slow boot times. It takes roughly 2 minutes to show all the icons on my desktop.

When I try running systemd-analyze , it shows around a minute mostly (screenshot attached). Screenshot for systemd-analyze blame also attached. Can the boot time be possibly reduced? Also, my screen flashes few times before the purple loading screen while booting. After some searches, people said it has something to do with the graphic card. Can I make this right?

first image
Click image to enlarge it.

second image

third image

abdrk00@abdrk00:~$ sudo blkid
/dev/sda1: LABEL="System Reserved" UUID="6AA22426A223F56B" TYPE="ntfs" PARTUUID="984fa07f-01"
/dev/sda2: UUID="266C2B2C6C2AF5E9" TYPE="ntfs" PARTUUID="984fa07f-02"
/dev/sda3: LABEL="New Volume" UUID="D8C83904C838E284" TYPE="ntfs" PARTUUID="984fa07f-03"
/dev/sda5: LABEL="Ubuntu" UUID="72DA65F3DA65B3CF" TYPE="ntfs" PARTUUID="984fa07f-05"
/dev/sda6: UUID="9291cbb1-9bde-470f-9ff7-2b4f93b5198c" TYPE="swap" PARTUUID="984fa07f-06"
/dev/sda7: UUID="c65b0f2c-5d08-4785-8a7f-a947640f3234" TYPE="ext4" PARTUUID="984fa07f-07"

abdrk00@abdrk00:~$ cat /etc/fstab
# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=c65b0f2c-5d08-4785-8a7f-a947640f3234 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=9291cbb1-9bde-470f-9ff7-2b4f93b5198c none            swap    sw              0       0

abdrk00@abdrk00:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk
├─sda1   8:1    0   100M  0 part
├─sda2   8:2    0   244G  0 part
├─sda3   8:3    0  36.1G  0 part
├─sda4   8:4    0     1K  0 part
├─sda5   8:5    0  67.5G  0 part
├─sda6   8:6    0   3.8G  0 part [SWAP]
└─sda7   8:7    0 114.2G  0 part /
sr0     11:0    1  1024M  0 rom

abdrk00@abdrk00:~$ swapon
NAME      TYPE      SIZE USED PRIO
/dev/sda6 partition 3.8G   0B   -1

abdrk00@abdrk00:~$
How to mount my HDD https://askubuntu.com/questions/816798/how-to-mount-my-hdd

Just installed Ubuntu on my SSD and reconnected my other HDD, however it shows up in the BIOS, but when Ubuntu boots it isn't showing up in the file system.

sdb is the SSD
sda is an HDD
sdc is another HDD

Only the SSD is showing.

Here's some of the output from sudo fsdisk -l:

Disk /dev/sda: 596.2 GiB, 640135028736 bytes, 1250263728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd8000117

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sda1  *          2048 1233487871 1233485824 588.2G 83 Linux
/dev/sda2       1233489918 1250263039   16773122     8G  5 Extended
/dev/sda5       1233489920 1250263039   16773120     8G 82 Linux swap / Solaris


Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xabd9c2b1

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *         2048 471623679 471621632 224.9G 83 Linux
/dev/sdb2       471625726 488396799  16771074     8G  5 Extended
/dev/sdb5       471625728 488396799  16771072     8G 82 Linux swap / Solaris


Disk /dev/sdc: 74.5 GiB, 80026361856 bytes, 156301488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdab2cc78


daniel@daniel-GA-MA785G-UD3H:~$ df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  3.9G     0  3.9G   0% /dev
tmpfs          tmpfs     799M  9.6M  789M   2% /run
/dev/sdb1      ext4      222G  6.0G  205G   3% /
tmpfs          tmpfs     3.9G  4.9M  3.9G   1% /dev/shm
tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
tmpfs          tmpfs     3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs          tmpfs     799M   60K  799M   1% /run/user/1000

I added a screenshot of the disk management GUI I see the gear but the only options are 'Format Partition', 'Edit Partition', 'Create Partition Image', 'Restore Partition Image', and 'Benchmark Partition'.

GParted Screenshot of me six50GB SSD drive:

Gparted Screenshot of 650GB SATA drive

GParted Screenshot of 250GB SSD drive:

Gparted Screenshot of 250GB SSD drive

Reached target shutdown https://askubuntu.com/questions/781740/reached-target-shutdown

1 out of 8 times Ubuntu freezes at shutdown. When I click on Esc I see the log and it gets stuck at Reached target shutdown, but it never shuts down. I read somewhere that it's a bug and tried to follow the step of pressing Alt+Prnt screen and then typing REISUB, but nothing happened.

installing php-gettext using --with-gettext https://askubuntu.com/questions/774626/installing-php-gettext-using-with-gettext

At the moment I'm figuring out how to install php gettext on Ubuntu 14.04,

the documentation tells me I should use --with-gettext http://php.net/manual/en/gettext.installation.php#119139

and I wonder how am I using the command parameter(flag) I'm pretty new to usage of gettext and installation of it.

What I know already is that I need to enable it in the php.ini file

extension=gettext.so

and add the gettext.ini file with the same line.

I have tried sudo apt-get install php-gettext also.

Any help is appreciated :)

Cheers!

Where to put configuration to turn off multicast snooping on bridges? https://askubuntu.com/questions/724859/where-to-put-configuration-to-turn-off-multicast-snooping-on-bridges

This question does not have anything to do with multicast DNS, multicast UPNP or anything but multicast snooping.

I know for a fact that if I do not turn off multicast snooping on my 15.10 system where the primary network interface is br0 bridge any attempt to reach an IPv6 destination will be thwarted by multicast snooping which is there to prevent flooding the network with multicast packets that most systems aren't interested. This is as simple as:

  1. Boot computer into Ubuntu 15.10 with br0 as the primary interface (where "primary interface" is the interface with default route).
  2. Try ping6 an IPv6 address and watch it fail.
  3. Run sudo sh -c "echo -n 0 > /sys/class/net/br0/bridge/multicast_snooping"
  4. Try ping6 again and it is magically working.

You can read about it in the answer here too. There are many other sources as well.

The following manual pages are silent about multicast snooping: interfaces(5), brctl(8), bridge-utils-interfaces(5)

The man page for bridge(8) says bridge link set fastleave off is the default and the CISCO documentation for the same name (which is way better than the bridge(8) manual page IMHO) says that setting fastleave on will induce not alleviate my issue with IPv6. I haven't experimented with it yet to see if any of that is true or not.

I know that there is /etc/network/if-pre-up.d/bridge

But it says:

# You don't usually need to touch this file at all, the full configuration
# of the bridge can be done in a standard way on /etc/network/interfaces.

So is it true? Is there a way to put that in /etc/network/interfaces?

Will enabling ufw through ssh disrupt current session? https://askubuntu.com/questions/681595/will-enabling-ufw-through-ssh-disrupt-current-session

I have an ubuntu server that I access through SSH. I've changed standart port (22) to something else. I want to enable ufw on this machine. However, I'm afraid of the possibility of the following scenario occuring: as soon as I enable ufw, it'll start with default settings blocking connections and kicks me from server, especially since I'm connecting through non-standart port. Will that happen? Should I prepare some configuration first or start ufw right away? SSH is the only way of accessing my server, so loosig this due to firewall would be a disaster.

I also have some applications using some ports for UDP and TCP connections. Will these ports be automatically blocked after I enable ufw? Will I need to add exceptions for them after enabling it?


I've probably found what I wanted, but I need a confirmation from somebody.

I haven't enabled ufw yet, but I've ran some configuration commands. First I did sudo ufw ssh Second sudo ufw my_new_ssh_port_here

Then I had a look at /lib/ufw/user.rules

This is part of the file:

### RULES ###

### tuple ### allow any 22 0.0.0.0/0 any 0.0.0.0/0 in
-A ufw-user-input -p tcp --dport 22 -j ACCEPT
-A ufw-user-input -p udp --dport 22 -j ACCEPT

### tuple ### allow any 1111 0.0.0.0/0 any 0.0.0.0/0 in
-A ufw-user-input -p tcp --dport 1111 -j ACCEPT
-A ufw-user-input -p udp --dport 1111 -j ACCEPT

### END RULES ###

Have I set it up to allow ssh connection through my new port successfully? Is it safe to start now or do I need to configure anything else?

I'm still not sure, because sudo ufw show raw doesn't seem to show anything helpful and sudo ufw status verbose still shows Status: inactive only

How to install the Epson L350 printer in Ubuntu 14.04? https://askubuntu.com/questions/585017/how-to-install-the-epson-l350-printer-in-ubuntu-14-04

How to install the Epson L350 printer step by step in Ubuntu 14.04? I am just a normal user, not a programmer.

Configure Xorg to work from integrated GPU https://askubuntu.com/questions/547769/configure-xorg-to-work-from-integrated-gpu

I am using Ubuntu 14.04LTS, with an Intel CPU + integrated graphics, with a GTX650 GPU. I asked this question on SO but they said it was offtopic.

I want to use my GPU for debugging CUDA code and for that I need to change display to integrated only. This is the error I get when I try to debug it currently:

"All cuda devices are used for display and cannot be used while debugging"

I went into the BIOS and switched primary display to iGPU (the integrated one, HD4600). Nothing came out of the GPU ports anymore (in terms of display) and I plugged my monitors into the motherboard. Only one of the monitors works. Normally I have them like:

|[Monitor 1, VGA]| |[Monitor 2, DVI]|

In that configuration, with iGPU, nothing is displayed on Monitor 1 (it's black, but the computer knows it's there - the green light is on and all my windows open on it). The only way to get it to work is to swap Monitor 2 to VGA and Monitor 1 to DVI.

If I enter lspci | grep VGA into Terminal, I get this:

00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GTX 650] (rev a1)

Running xrandr gives me:

Screen 0: minimum 8 x 8, current 3360 x 1050, maximum 16384 x 16384
DVI-D-0 disconnected primary (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
VGA1 connected 1680x1050+0+0 474mm x 296mm
   1680x1050      60.0*+
   1600x1000      60.0 +
   1280x1024      75.0     72.0     60.0  
   1440x900       75.0     59.9  
   1152x864       75.0  
   1024x768       75.1     70.1     60.0  
   800x600        72.2     75.0     60.3  
   640x480        75.0     72.8     66.7     60.0  
   720x400        70.1  
DP1 disconnected
HDMI1 disconnected
HDMI2 connected 1680x1050+1680+0 474mm x 296mm
   1680x1050      60.0*+
   1600x1000      60.0 +
   1280x1024      75.0     72.0     60.0  
   1440x900       75.0     59.9  
   1152x864       75.0  
   1024x768       75.1     70.1     60.0  
   800x600        72.2     75.0     60.3  
   640x480        75.0     72.8     66.7     60.0  
   720x400        70.1  
HDMI3 disconnected
VIRTUAL1 disconnected

It isn't an HDMI connection, I don't know why it thinks it is. With the GPU, it knows it's DVI. Anyway...

This is the xorg.conf (if I change it, it just overwrites it):

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "intel"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "SNA"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection

This is my 10-monitors.conf file in /usr/share/X11/xorg.conf.d/:

  GNU nano 2.2.6                                      File: /usr/share/X11/xorg.conf.d/10-monitors.conf                                                                                   

Section "Monitor"
    Identifier     "VGA1"
EndSection

Section "Monitor"
    Identifier     "HDMI2"
EndSection

Section "Device"
   Identifier      "intel0"
   Driver          "intel"
   BusID           "PCI:0@0:2:0"
EndSection

Section "Device"
   Identifier      "intel1"
   Driver          "intel"
   BusID           "PCI:0@0:2:0"
EndSection

Section "Screen"
   Identifier     "Screen0"
   Device         "intel0"
   Monitor        "VGA1"
   DefaultDepth   24
   SubSection     "Display"
      Depth       24
      Modes       "1680x1050" "1920x1080"
   EndSubSection
EndSection

Section "Screen"
   Identifier     "Screen1"
   Device         "intel1"
   Monitor        "HDMI2"
   DefaultDepth   24
   SubSection     "Display"
      Depth       24
      Modes       "1680x1050" "1920x1080"
   EndSubSection
EndSection

This still doesn't permit my CUDA code to be debugged. If I run lsof /dev/nvidia* I get:

COMMAND  PID     USER   FD   TYPE  DEVICE SIZE/OFF  NODE NAME
compiz  1659 cinnamon  mem    CHR 195,255          11805 /dev/nvidiactl
compiz  1659 cinnamon  mem    CHR   195,0          11806 /dev/nvidia0
compiz  1659 cinnamon   11u   CHR 195,255      0t0 11805 /dev/nvidiactl
compiz  1659 cinnamon   12u   CHR   195,0      0t0 11806 /dev/nvidia0
compiz  1659 cinnamon   13u   CHR   195,0      0t0 11806 /dev/nvidia0
compiz  1659 cinnamon   14u   CHR   195,0      0t0 11806 /dev/nvidia0

So I guess Compiz (X server?) is using it still. How do I stop it from using it?

Kubuntu 14.04 hangs at startup after installing fglrx https://askubuntu.com/questions/474456/kubuntu-14-04-hangs-at-startup-after-installing-fglrx

After installing the new AMD Catalyst beta driver (14.6), my system hangs at the boot screen, however I am able to access the TTY terminals.

I installed fglrx as follows:

  1. Downloaded the drivers from AMD's official site
  2. Generated the .deb packages using the --buildpkg option
  3. Installed the generated packages
  4. Ran sudo amdconfig --initial

I have also tried deleting and modifying the xorg.conf file, but for some reason it gets overwritten on every reboot.

Does anyone have an idea on how to solve this issue? I am very frustrated with this problem and would greatly appreciate any help.

I do not want to use the open source drivers. I am trying to install and run the proprietary AMD driver, nothing else.

how to get optimal performance from Centrino Advanced-N 6205 wifi card https://askubuntu.com/questions/414654/how-to-get-optimal-performance-from-centrino-advanced-n-6205-wifi-card

I've just had my home internet upgraded to 50Mb/s down, but I can only get about 25 Mb/s down on my laptop over wifi. My phone gets about 45 Mb/s down over the same wifi and I get the full 50 Mb/s down when connected via Ethernet cable to the router, so I'm fairly sure the problem is on my laptop.

lspci says:

03:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] [8086:0085] (rev 34)

This makes me think that for some reason iwlwifi isn't driving the card as hard as it can go:

mwhudson@narsil:~$ iwlist wlan0 rate wlan0 unknown bit-rate information. Current Bit Rate:54 Mb/s

(The card can do 300Mb/s according to Intel's pages, as can my router). I see similar performance on the 2.4Ghz and 5Ghz bands (my phone only does 2.4Ghz).

I'm running up to date Ubuntu Saucy.

"Could not import runpy module" when running apt-get on Xubuntu 12.10 https://askubuntu.com/questions/270720/could-not-import-runpy-module-when-running-apt-get-on-xubuntu-12-10

Just installed Xubuntu 12.10, on first apt-get update and upgrade I got Could not import runpy module and all installs seem to stop there.

E.g. sudo apt-get --reinstall install python gives the following

[...]
running python rtupdate hooks for python3.2...
Could not import runpy module
Traceback (most recent call last):
  File "/usr/bin/py3compile", line 289, in <module>
    main()
  File "/usr/bin/py3compile", line 283, in main
    process.communicate()
  File "/usr/lib/python3.2/subprocess.py", line 809, in communicate
    self.stdin.close()
IOError: [Errno 32] Broken pipe
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 64, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 4, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>
    import subprocess, tempfile, os.path, re, pwd, grp, os
EOFError: EOF read where not expected<br/>
[...]
dpkg: error processing python3-aptdaemon.pkcompat (--configure):
 dependency problems - leaving unconfigured
Setting up python (2.7.3-0ubuntu7) ...
Errors were encountered while processing:
 python3
 python3-dbus
 python3-distupgrade
 python3-update-manager
 python3-gi
 ufw
 python3-problem-report
 python3-apport
 python3-aptdaemon
 python3-aptdaemon.gtk3widgets
 python3-aptdaemon.pkcompat
E: Sub-process /usr/bin/dpkg returned an error code (1)
[...]

All help in solving this is very much appreciated. matti

How do i fix problem with Ubuntu 11.10 server and gitweb? https://askubuntu.com/questions/133622/how-do-i-fix-problem-with-ubuntu-11-10-server-and-gitweb

Hi and sorry for bad english first :(...

i have one ubuntu 11.10 server and i wanna make gitweb server. i refered to this site - http://www.snowfrog.net/2011/08/02/setting-up-gitweb-on-your-ubuntu-workstation/.

so, i tried to install gitweb and restart apache server.

(as root account)
$ apt-get install gitweb
$ service apache2 restart

and i tried to connect my gitweb server, but i can't connect - Internal Server Error. i was searching for a lot of time and tried to solve this problem, i coudn't.

this is my gitweb and my server infomation -

  1. installed 'mediawiki' and working now.
  2. installed 'apache2' and working too.
  3. git is working too. i tried to clone git repo to my desktop, and success connected.
  4. installed 'gitweb' and... not working. - Internal Server Error.
  5. i checked my apache2 log.

    [error] [client ---.---.---.---] (13)Permission denied: exec of '/usr/share/gitweb/index.cgi' failed
    [error] [client ---.---.---.---] Premature end of script headers: index.cgi
    
  6. gitweb was installed to /usr/share/gitweb.

  7. this is permission for /usr/share/gitweb forlder.

    -rwxr-xr-- 1 root root 221331 2012-05-08 02:24 gitweb.cgi
    lrwxrwxrwx 1 root root     10 2011-06-11 18:17 index.cgi -> gitweb.cgi
    drwxrwxrwx 2 root root   4096 2012-05-07 19:36 static
    
  8. this is result to 'perl /usr/share/index.cgi'.

    Status: 404 Not Found^M
    Content-Type: text/html; charset=utf-8^M
    ^M
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
    <!-- git web interface version 1.7.5.4, (C) 2005-2006, Kay Sievers <kay.sievers@vrfy.org>, Christian Gierke -->
    <!-- git core binaries version 1.7.5.4 -->
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="generator" content="gitweb/1.7.5.4 git/1.7.5.4"/>
    <meta name="robots" content="index, nofollow"/>
    <title>Untitled Git</title>
    <link rel="stylesheet" type="text/css" href="static/gitweb.css"/>
    <link rel="shortcut icon" href="static/git-favicon.png" type="image/png" />
    </head>
    <body>
    <div class="page_header">
    <a title="git homepage" href="http://git-scm.com/"><img class="logo" height="27" src="static/git-logo.png" alt="git" width="72" /></a><a href="/">projects</a> / </div>
    <div class="page_body">
    <br /><br />
    404 - No projects found
    <br />
    </div>
    <div class="page_footer">
    <a class="rss_logo" href="?a=opml">OPML</a> <a class="rss_logo" href="?a=project_index">TXT</a>
    </div>
    <script type="text/javascript" src="static/gitweb.js"></script>
    </body>
    </html>
    
  9. /etc/gitweb.conf

    # path to git projects (<project>.git)
    $projectroot = "/home/git/repositories";
    
    # directory to use for temp files
    $git_temp = "/tmp";
    
    # target of the home link on top of all pages
    #$home_link = $my_uri || "/";
    
    # html text to include at home page
    #$home_text = "indextext.html";
    
    # file with project list; by default, simply scan the projectroot dir.
    $projects_list = "/home/git/projects.list";
    
    # stylesheet to use
    @stylesheets = ("static/gitweb.css");
    
    # javascript code for gitweb
    $javascript = "static/gitweb.js";
    
    # logo to use
    $logo = "static/git-logo.png";
    
  10. /etc/apache2/conf.d/gitweb

    Alias /gitweb /usr/share/gitweb
    
    <Directory /usr/share/gitweb>
      Option FollowSymLinks +ExecCGI
      AddHandler cgi-script .cgi
    <Directory>
    
  11. i excuted this command - "a2enmod cgi, a2enmod perl" and already enabled.

What is the best way to configure a Thinkpad's TrackPoint? https://askubuntu.com/questions/37824/what-is-the-best-way-to-configure-a-thinkpads-trackpoint

The previously useful ThinkWiki pages appear quite outdated. I am trying to permanently change my TrackPoint sensitivity and speed settings and enable middle mouse button scrolling. I have tried configure-trackpoint in the past, but the settings were not saved permanently (they are lost after restart).

I have tried gpointing-device-settings. Using it, I can get middle mouse button scrolling to work, but I cannot change the speed or sensitivity settings of the trackpoint. All methods on the ThinkWiki page that I've tried do not work as directed in Ubuntu 11.04. Can someone explain how to permanently edit the TrackPoint settings so that I can use it correctly?