Monitors connected to dock only work if dock is hot-plugged to laptop after login https://askubuntu.com/questions/1564628/monitors-connected-to-dock-only-work-if-dock-is-hot-plugged-to-laptop-after-logi

I have a laptop connected to a dock and two monitors connected to the dock. The monitors don't turn on unless I power on and log in without the dock connected to the laptop, and then I hot-connect the dock to the laptop.

Laptop:

  • ThinkPad P16v Gen 1, with NVIDIA GPU, BIOS updated and reset to factory default.
  • Ubuntu 24.04.4 fresh install with updates, using X11.
  • Kernel 6.17.0-14-generic
  • Driver in use: NVIDIA driver (open kernel) metapackage from nvidia-driver-590-open (proprietary, tested).

Dock: ThinkPad Universal Thunderbolt 4 Dock - Type 40B0, with firmware updated.

After I have connected the dock to the laptop and the monitors have turned on, these two new entries appear in xrandr:

DP-4-1-5 connected [...]
DP-4-2 connected [...]

Observations:

  • If I boot from the live USB Ubuntu installer, the monitors turn on instantly without intervention.
  • Even when the monitors don't work, the other ports of the dock (USB, Ethernet) work fine without intervention.
Headset mic (HyperX Cloud Alpha 3.5mm jack) doesn't work https://askubuntu.com/questions/1564627/headset-mic-hyperx-cloud-alpha-3-5mm-jack-doesnt-work

The headset itself is working, but the microphone isn't picking up any sounds. It shows up as an input device.

I've tried adding options snd-hda-intel model=dell-headset-multi line to the alsa-base.conf file. This added a new microphone input option, but it also doesn't pick up any sound.

I know there was a similar bug in a previous version of the kernel, but it should be fixed in my version (Linux 6.17.0-14-generic).

My laptop is a Lenovo Legion 7 15IMH05

Some specs:

  • CPU: Intel Core i7-10750H × 12
  • GPU: NVIDIA GeForce RTX 2070 Super with Max-Q Design
  • OS: Ubuntu 25.10

What should I try next?

Redirection vs. command line substitution in heredocs https://askubuntu.com/questions/1564626/redirection-vs-command-line-substitution-in-heredocs

Heredocs exhibit two different behaviors. With redirection the redirection occurs on the opening line. With command line substitution it happens on the line following the end marker. Consider the following example, where the redirection of output to heredoc.txt occurs on the first line of the command, before the contents of the heredoc itself:

cat <<EOL > heredoc.txt
Line 1: This is the first line of text.
Line 2: This is the second line of text.
Line 3: This is the third line of text.
EOL

Now consider the following command where the closing of the command line substitution occurs after the heredoc is closed:

tempvar=$(cat <<EOL
Line 1: This is the first line of text.
Line 2: This is the second line of text.
Line 3: This is the third line of text.
EOL
)

I don't understand the (apparent) inconsistency between the two examples. Why shouldn't the closing of the command line substitution happen on the opening line, in the same way that the redirection of the command happens on the opening line?

help me i want a important question [closed] https://askubuntu.com/questions/1564625/help-me-i-want-a-important-question

I have a laptop with a fairly recent Ryzen 7730U processor with integrated graphics.

I want to know:

I'm having trouble with the terminal; I don't want to use it on Ubuntu. Do I absolutely need to know how to use it?

Will it Works with my Ryzen processor?

Thanks to anyone who can help me with this.

Need help with Ubuntu 24.04 on Dell Inspiron 5410 with cursor sticking and view jumping and moving around on their own https://askubuntu.com/questions/1564624/need-help-with-ubuntu-24-04-on-dell-inspiron-5410-with-cursor-sticking-and-view

My issue is with the cursor sticking, moving on its own, or the window scrolls to a different spot, or the zoom changes on its own.

  1. Moving the cursor around it will suddenly stop. I have to hit ESC or Left Click to get it to move again. Sometimes that means I have to click on what it is stuck on.

  2. While typing in Firefox, LibreCalc, Zim, the screen will scroll up or down on its own or the zoom will change. Especially in LibreCalc.

  3. While typing the cursor will move to a different place. When I started the cursor would also select and delete text while typing. I've found some instructions to change Grub which have eliminated the text being deleted but still have issues with the cursor moving, especially in LibreOffice Calc. LibreOffice Calc is better if I select a cell then put the cursor on the formula area and click there. Then it seems to stay on that cell better.

I've tried:

  • Disabling Gestures. As many as possible but suspicious that there are more.

  • Set Touch pad to use extreme right edge.

  • Tried two finger right click.

  • Currently back to just lower right right-click.

  • Changed Grub using:bb

      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.reset i8042.nomux i8042.nopnp i8042.noloop"
    

sudo libinput list-devices shows:

Device:           DELL0A7D:00 27C6:0D41 Touchpad  
Kernel:           /dev/input/event5  
Group:            5  
Seat:             seat0, default  
Size:             113x67mm  
Capabilities:     pointer gesture  
Tap-to-click:     disabled  
Tap-and-drag:     enabled  
Tap drag lock:    disabled  
Left-handed:      disabled   
Nat.scrolling:    disabled   
Middle emulation: disabled  
Calibration:      n/a    
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger   
Disable-w-typing: enabled  
Disable-w-trackpointing: enabled  
Accel profiles:   flat *adaptive custom  
Rotation:         n/a  

Also shows this for mouse, but I do not have a mouse connected.

Device:           DELL0A7D:00 27C6:0D41 Mouse
Kernel:           /dev/input/event4
Group:            5
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   *button
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   flat *adaptive custom
Rotation:         n/a

I assume I'm running Wayland as there is not Xorg Log file.

I've removed Firefox snap version and installed it with apt. Browsing is better. The text entry is slightly better. At least I'm not deleting what I just typed.

I'm updating from Windows 10. I had none of these issues before updating to Ubuntu. Also I tried Pop!_OS 24.04 first as I'm using that on my Desktop and these issues made it unusable.

System Details:

Hardware Information:

  • Hardware Model: Dell Inc. Inspiron 14 5410
  • Memory: 16.0 GiB
  • Processor: 11th Gen Intel® Core™ i7-11370H × 8
  • Graphics: Intel® Iris® Xe Graphics (TGL GT2)
  • Disk Capacity: 512.1 GB

Software Information:

  • Firmware Version: 2.27.0
  • OS Name: Ubuntu 24.04.4 LTS
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 46
  • Windowing System: Wayland
  • Kernel Version: Linux 6.17.0-14-generic
Remote browsing a samba share fast indexing problem [duplicate] https://askubuntu.com/questions/1564622/remote-browsing-a-samba-share-fast-indexing-problem

I connect through a VPN to my private network. If i what to browse through the files it take a very long time to load folders with a lot of files and sub-folders. If i am on the LAN it is not super fast but OK. I don't understand why it takes so long to open a folder. What information will be transmitted during this process and can i index/save this locally without mirroring the whole share?

I tried to use the search options in KDE system settings and added the share. The indexing is doing something but the index file size is not changing. So at least nothing of the operation was saved.

Ubuntu 24.04 laptop freezes and crashes occasionally https://askubuntu.com/questions/1564621/ubuntu-24-04-laptop-freezes-and-crashes-occasionally

My Ubuntu laptop freezes occasionally, and can only be fixed with forced turning off (i.e., holding the button for several seconds). This seems to happen with more intense usage, e.g., several browser tabs open including a logged in account, or two different browsers open, or a browser and Steam open. Sometimes the system won't respond at all. Sometimes I can still use one window but not others for a while. I can't however access anything new including the system, so I can't reboot the laptop from the controls, for example. Nor can I close a frozen window.

Any advice appreciated. Non-technical language if you can, please!

System Details Report


Report details

  • Date generated: 2026-03-07 13:24:24

Hardware Information:

  • Hardware Model: Lenovo ThinkPad P14s Gen 5 AMD
  • Memory: 32.0 GiB
  • Processor: AMD Ryzen™ 7 PRO 8840HS w/ Radeon™ 780M Graphics × 16
  • Graphics: AMD Radeon™ 780M Graphics
  • Disk Capacity: 1.0 TB

Software Information:

  • Firmware Version: R2LET36W (1.17 )
  • OS Name: Ubuntu 24.04.4 LTS
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 46
  • Windowing System: Wayland
  • Kernel Version: Linux 6.17.0-1011-oem
Issue with VirtualBox https://askubuntu.com/questions/1564619/issue-with-virtualbox

I can't install VirtualBox. I have this error message:

Reading package list... Done
Creating dependency tree... Done
Reading status information... Done
Virtualbox is already at its latest version (7.0.16-dfsg-2ubuntu1.1).
The package indicated below was installed automatically and is no longer necessary.
libllvm19
Use "sudo apt autoremove" to delete it.
0 updated, 0 new will be installed, 0 to be deleted and 8 not updated.
1 not installed or removed.
0 B of additional disk space will be used after this operation.
Do you want to continue? [Y/n] y
Configuring virtualbox-dkms (7.0.16-dfsg-2ubuntu1.1) ...
Removing old virtualbox-7.0.16 DKMS files...
Deleting module virtualbox-7.0.16 completely from the DKMS tree.
Loading new virtualbox-7.0.16 DKMS files...
Building for 6.17.0-14-generic
Building initial module for 6.17.0-14-generic
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
dpkg: error while processing the virtualbox-dkms package (--configure):
The installed thread package virtualbox-dkms script post-installation returned an error code (10)
Errors were found while processing:
virtualbox-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
Samba mounts freeze dolphin https://askubuntu.com/questions/1564618/samba-mounts-freeze-dolphin

I connect through a VPN to my private network. This connections is sometimes not stable.

I have mounted samba shares from my private network. If i lose the connection dolphin and some times the full KDE desktop is not responding. If the network is reconnected i can work again.

How can I avoid this behavior, but still use the shares. Of course only if i have a connection:)

I would expect that the open dolphin windows that points to the share is showing me a not available message, but the rest is working normal.

This is what i found but, i am not happy with the work around. I am looking for a real solution.

Dolphin file manager stops working after mounted samba server was turned off (unexpected action?)

I also tried the solution in from here:

Mounting Samba share whenever it's available, unmounting when it's not

My fstab entry is the following:

//192.168.168.1/abc /home/abc/abc  cifs _netdev,guest,iocharset=utf8,file_mode=0777,dir_mode=0777

But it is not disconnecting if i lose the connection.

Firefox does not start because of snap cgroup error https://askubuntu.com/questions/1564617/firefox-does-not-start-because-of-snap-cgroup-error

On a brand new ASUS GX10 which has Ubuntu 24.04 installed, just setting up a user and installing the MATE desktop manager and x2go for remote access, after using x2go to open a remote MATE session, this is what I get when trying to run firefox:

/user.slice/user-1001.slice/session-87.scope is not a snap cgroup for tag snap.firefox.firefox

How to fix this?

Recover Windows partition https://askubuntu.com/questions/1564616/recover-windows-partition

After doing things I wasn't 100% sure of, I seem to have lost my Windows partition.

BIOS boot order

My laptop currently boots into Ubuntu only, with no grub displayed upon boot. I seem to be able to see the files relating to the Windows install and also the Windows partition.

In the BIOS Boot Sequence I can only see Partition 3.

enter image description here

Partial results of sudo fdisk -l:

Device         Boot     Start        End   Sectors   Size Id Type
/dev/nvme0n1p1  \*       2048     104447    102400    50M  7 HPFS/NTFS/exFAT
/dev/nvme0n1p2         104448  740090834 739986387 352.9G  7 HPFS/NTFS/exFAT
/dev/nvme0n1p3      740091902  999176191 259084290 123.5G  5 Extended
/dev/nvme0n1p4      999176192 1000210431   1034240   505M 27 Hidden NTFS WinRE
/dev/nvme0n1p5  \*  740091904  741142527   1050624   513M ef EFI (FAT-12/16/32)
/dev/nvme0n1p6      741144576  999176191 258031616   123G 83 Linux

Partition table entries are not in disk order.

Any suggestions on how could I recover and make this Windows partition boot would be appreciated (what/how to mount, how to load grub, whether to have UEFI safe mode on/off in the BIOS).

I have attempted the boot-repair, however the recommended repair option does not seem to return anything on the default settings.

I also attempted to install another Ubuntu version from a live USB, but it does not offer the option "keep Windows", only to remove everything or to install next to the existing Ubuntu.

The other thing I tried was to boot a live Windows USB thumb drive, but it will not boot.

Updates to original question. I did attempt to follow steps suggested in a previous question. As previously, neither boot-repair or Windows thumb-drive attempt solved issue. The boot-repair GUI does not return any feedback on neither "Recommended repair" or "Create summary", so I am not sure what it does exactly.

As recommended, I did try to install another Ubuntu using legacy boot option, and I can now see a second Ubuntu install (as partition 7) in both my "disks" GUI, and in the sudo fdisk -l output:

enter image description here

enter image description here

If attempting to boot in UEFI mode, I now do have a GRUB, however still without a Windows option.

enter image description here

enter image description here

Boot in legacy mode stops at the below error.

enter image description here

I do not require any Ubuntu partitions in the end, only my Windows partition.

The man page for date is missing some options https://askubuntu.com/questions/1564611/the-man-page-for-date-is-missing-some-options

I am testing with Ubuntu 25.10 and tried the date command. The man pages don't contain the explanation of %M and so on anymore. Is that the intention? In version 24.04 it is still there.

Kind regards, Frédéric

VirtualBox VM launch error message https://askubuntu.com/questions/1564604/virtualbox-vm-launch-error-message

I am running Ubuntu 24.04. I installed VirtualBox by following these instructions.

Here are the error messages that I receive when launching my Windows VM:

VT-x is being used by another hypervisor (VERR_VMX_IN_VMX_ROOT_MODE).
VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {...}
re-install of the operating system but do not format and just 'overwrite' [duplicate] https://askubuntu.com/questions/1563988/re-install-of-the-operating-system-but-do-not-format-and-just-overwrite

Trying to use this:

A third option is to do a re-install of the operating system but do not format and just 'overwrite' your existing installation. Boot to the install media and go through the install process as usual.When you get to the partitioner to allocate drive space, depending on the version you are installing check the box marked 'Manually select partitions' or 'Something else' and click forward. Use the SAME user name and password as the existing account when setting up again. Find your existing installation and you must UNCHECK all the 'format' boxes and mount the partitions in the same place they are now. As long as no 'format' boxes are checked, no data will be lost in your home folder and the system files will be overwritten with the originals. You should then complete all system updates again.

but I get to here using Ubuntu 24.04.3 Desktop AMD64 iso on bootable USB:

Manual Partition

and can go no further using these instructions... my Ubuntu location to reinstall to is sda5, which I can mount at /, but it won't let me uncheck the format box - so probably the wrong mount point to do this.

Other options are:

/boot

/home

/tmp

but are not where it needs to be reinstalled to.

Reading on below, it appears format is forced due to Ubuntu not fixing their installer glitch and instead resorting to this inconvenience...

Well, except for the ‘nautilus, and nautilus type window pop-up corruption”, my Ubuntu Desktop 24.04.3LTS AMD64 system runs perfect - can still manipulate files via terminal and bypass nautilus, just click on the download link in my email (which just defaults to my Downloads folder, instead of save as which tries to pop-up the nautilus type window that crashes)… and the more complex work can be done using my Windows 10 laptop that works really great :-P

Some community members have suggested a similar question that may solve your problem.

Do any of these answer your question?

How to reinstall Ubuntu in the easiest way?

this link How to reinstall Ubuntu in the easiest way? goes to something (ie the question) written eleven years ago (geeze!) and does not apply to 24.04 and thus provides no answer, three or otherwise - CURRENT 24.04 dos not permit re-install - forces format to get around ubuntu glitch, so the answers in the link are counter to this reality - see notes in my 'answer' (which is hidden, but inserted below, and is essentially praying for ubuntu to fix their desktop installer to permit non-destructive re-install!)

As stated by the magnificent @guiverc in the posting at How to reinstall Ubuntu in the easiest way?, here are very relevant quotes made that are indeed profound regarding the loss of re-install feature using ubuntu-desktop-installer and hopes/doubts that ubuntu will restore this critical feature:

It is hoped in time this type of re-install will return to ubuntu-desktop-installer, but resources need to be available to correct the issue that is currently avoided by a forced format

When the ubuntu-desktop-provision fix has been completed; you'll be able to take advantage of it using existing ISOs (eg. 24.04 Desktop) by updating installer prior to starting the install, however the fix doesn't yet exist..

The Ubuntu team decided (awhile back) to not fix the ubuntu-desktop-provision, and non-destructive installs (where a single partition install exists) is likely not to be possible into the future.

How to install libtinfo5 on Ubuntu24.04 https://askubuntu.com/questions/1531760/how-to-install-libtinfo5-on-ubuntu24-04

Please help me for installing libtinfo5 into 24.04.1 LTS.

I almost build a program for AWE in Ubuntu 22.04.2 LTS but a new version Ubuntu 24.04.1 LTS \n \l suddenly encountered (I installed with no doubt) without libtinfo5. Then my work stopped suddenly.

Your help would be much appreciated if you could please let me know any information on the installation of libtinfo5 into the new version Ubuntu 24.04.1 LTS.

How to effectively to set a global static ipv6 by `addr-gen-mode=eui64`? https://askubuntu.com/questions/1487082/how-to-effectively-to-set-a-global-static-ipv6-by-addr-gen-mode-eui64

I see there are a lot of questions about static ipv6, and privacy (like here, here, here, here and here), and I believe I have tried most of the available solutions (or at least those I was able to understand). But it appears old posts comprises some outdated information, and even after implementing the solutions they provide, I am not getting UIE-64 address generation format to work. So I would like to know what is the current best practice to set static ipv6, or what I am missing about it that makes UIE-64 address generation not working in my Ubuntu 22.04 PC.


The context: I want to access an Ubuntu PC remotely via SSH. It’s an Ubuntu 22.04.3 LTS system I am already aware:

  • my ISP allocate dynamic IP (ipv4).
  • it appears the prefix for ipv6 is static.
  • In the router menu, I see dhcp6 is disabled.

Currently, I am already able to ssh access it in my local network using the temporary IPs (both ipv4 and ipv6), by accessing the PC physically (and typing ip addr), copy the IP and using it to access remotely… So, thought the idea is to make it work as headless server, I am not yet able to do so… I am aware of alternatives like searching all IPs in my network (for ipv4 at least) from the remote PC, but I would prefer to have it static. Because later I want to access it from outside my local network.

I noticed it has ipv6 privacy settings set as default in this Ubuntu version, though older posts/questions refer as being off by default. So the ipv6 changes in a periodic basis (one day as default) and comprise random characters and numbers after initial constant prefix.

So I have already learned a lot regarding ipv4. Ipv6, UIE-64 mode, etc. but it appears I am yet missing a lot about the subject.


I am very confused because there are several alternative (complementary? Conflicting?) ways to set the configurations… but I have tried the following:

  • editing the <networkName>.nmconnection file at /etc/NetworkManager/system-connections/. Like described here, editing
    • at [ipv6]
    • modifying addr-gen-mode from stable-privacy to addr-gen-mode=eui64
  • nmcli connection edit <network> following instructions here
    • set ipv6.addr-gen-mode 0
    • set ipv6.ip6-privacy 1
  • edited /etc/sysctl.d/10-ipv6-privacy.conf
    • net.ipv6.conf.all.use_tempaddr = 0
    • net.ipv6.conf.default.use_tempaddr = 0
    • net.ipv6.conf.<wlanCode>.accept_ra = 0
    • net.ipv6.conf.<wlanCode>.autoconf=1
    • net.ipv6.conf.<wlanCode>.use_tempaddr=2
    • I have also tried without the last two lines, or with 0 at the last line (net.ipv6.conf.<wlanCode>.use_tempaddr=0)
  • Edited the .yaml file at /etc/netplan (as described here and here)
    • network: * version: 2 * ethernets: * <WLancode>: * dhcp6: false * ipv6-privacy: off * ipv6-address-generation: eui64 * accept-ra: false * renderer: NetworkManager

I saw some posts manually setting static global ipv6 addresses in the netplan file. I have not yet tried it... Can it be any arbitrary final values (I get the prefix must be the same of the provided by ISP)? I read something about non-temporary Ipv6 being deducted from MAC address…

I understand we do not necessarily need to deactivate ipv6-private, as we can have random/temporary and static global ipv6 at the same time. I have included such configurations after just setting address-generation to eui64 did not work, but did not solve the issue also...

The system was already restarted, and I verified all the definitions above are stored after restarting. But with ip addr, I see yet all ipv6 addresses (except the link local one) are temporary, they have valid_lft set in sec, not forever.

What I understood is that with the configurations above, I am getting a MAC-associated IPv6 link (I got a different link IPv6, it changed), but not a global static IPv6, possibly because of default privacy settings...


So, how can I enable the generation of global eui-64 ipv6 at my Ubuntu 22.04? From the discussion on the posts I have consulted, I suppose it can be solved from Ubuntu side... But if ends up being not an Ubuntu's related question, I am sorry... I can be missing something from router or ISP side that block such settings, as my knowledge on the subject is yet basic...

Any help is appreciated.

Fingerprint Sensor not getting detected (Asus) (Ubuntu 20.04) https://askubuntu.com/questions/1413560/fingerprint-sensor-not-getting-detected-asus-ubuntu-20-04

I installed my finger print software using the command

sudo apt-get install fprintd libpam-fprintd

But, when I try to enroll my finger print using

fprintd-enroll

It throws an error saying infinity@infinity:~$ fprintd-enroll Impossible to enroll: GDBus.Error:net.reactivated.Fprint.Error.NoSuchDevice: No devices available

The device I am using is

ASUS VivoBook 15 (2022) Core i3 11th Gen - (8 GB/1 TB HDD/256 GB SSD) X515EA-EJ332WS

SR9700 Core Chips driver for Xubuntu https://askubuntu.com/questions/1360618/sr9700-core-chips-driver-for-xubuntu

I have usb to ethernet adapter by Core Chips. In my Xubuntu I can't get ethernet connection. lsusb or ip commands dosn't show me any informations.

➜  ~ lsusb
     Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
     Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
     Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
     Bus 001 Device 004: ID 0bda:385a Realtek Semiconductor Corp. Bluetooth Radio
     Bus 001 Device 003: ID 0408:5365 Quanta Computer, Inc. HP TrueVision HD Camera
     Bus 001 Device 002: ID 09da:2403 A4Tech Co., Ltd. 2.4G Device
     Bus 001 Device 006: ID 0fe6:9702 ICS Advent Bluetooth Radio
     Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. Hub
     Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Please any solutions)

Getting error "pathname cannot be converted from utf-8 to current locale" while extracting a zip file in ubuntu 20.04 https://askubuntu.com/questions/1283523/getting-error-pathname-cannot-be-converted-from-utf-8-to-current-locale-while

When I am trying to unzip a file "Desktop.zip" I am getting below error as shown in figure:

err_msg

I have made this zip file in ubuntu 20.04. Then downgraded to 18.04 and tried to unzip here.

I am not able to understand what and why is this problem occuring.

Although I am able to extract by using terminal command: $ unzip Desktop.zip

But not by GUI, I am interested to know how can I solve it, if possible.

netplan default gateway / route Internet traffic to WiFi https://askubuntu.com/questions/1149395/netplan-default-gateway-route-internet-traffic-to-wifi

I need help with a (simple) network configuration with netplan. It is very simple, I have 2 NICs: enp5s0 is ethernet and give access to the company network, and wlp4s0 is WiFi and give access to Internet via a router.

I just want the Internet traffic to be routed via the WiFi connection. The netplan configuration should be something like:

network:
  version: 2
  renderer: NetworkManager
  ethernets:
    enp5s0:
      dhcp4: true
      routes:
        - to: 192.168.1.0/24
          via: 192.168.1.1
  wifis:
    wlp4s0:
      dhcp4: true
      access-points:
        "My WiFi Network":
          password: "foobar"
      gateway4: 10.128.128.128
      routes:
        - to: 0.0.0.0/0
          via: 10.128.128.128

But it is not working. Surprisingly it is very easy to add the routes from the command line:

sudo route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 dev enp5s0
sudo route del default gw 192.168.1.1
sudo route add default gw 10.128.128.128

And this works like a charm. I just want to do that with netplan...

multi-core CPU usage https://askubuntu.com/questions/1119737/multi-core-cpu-usage

I am using the Windows Subsystem for Linux (WSL), and I am unexperimented in the capabilites of linux. Recently, I've been wanting to get better insight in the CPU usage of processes, but I am getting well confused. I am on a computer with 2 cores and 4 logical cores.

In the example of CPU usage that I want to discuss, I launched 2 independant serial calculations from a DFT code (physics stuff) from 2 terminals. I have other smaller processes opened in my Windows system ( internet tabs, Thunderbird...).

if I check the CPU usage from windows' task manager, it tells me that I am using ~70% of CPU, wich seem evenly spread over the 4 logical processors.

When I use top command on Linux, it shows me two "pw.x" processes (the calculations I was referring to) using ~100% of CPU each (!). I do not understand what those "100%" values refer to; 100% of what ? I thought it was the average over all cores being displayed. My computer is still running very smoothly, so the CPU units can not all be used up by the DFT code

If I look it up with mpstat -P ALL, I get yet other results: it tells me that each of the 4 processors are used to ~20%-30%... How is that consistent with the Windows diagnostic ? Or with the top command ?

Cf Screenshot below for a summary (sorry for the french language on Windows):

Screenshot of conflicting (?) CPU reports

Basically my questions are the following:

  • Are these different diagnostics coherent with each other ?

  • can someone point me out to a reference for beginners clearly explaining the use of those monitoring commands, and what the reported quantities refer to exactly ?

  • Is there a command that would allow me to know which core is doing what ? I am running serial calculations (non-parallelized), and it was my understanding that the calculations are therefore processed on a single core each, but I might be wrong. If it is the case, I would like to know which core each of the calculation goes to, and how much it uses

Thank you very much in advance and apologies for the beginner questions

Can't change permission of folders: read-only file system error https://askubuntu.com/questions/979174/cant-change-permission-of-folders-read-only-file-system-error

The owner only has permissions to Access files. Why can't I change the permission of this folder?

Error setting permissions: Read-only file system

screenshot with properties dialog and popup saying permissions could not be changed

My hard disk partition has disappeared https://askubuntu.com/questions/874207/my-hard-disk-partition-has-disappeared

I tried to reinstall Ubuntu, so I used a bootable USB drive, but I think that I made a mistake.

I checked icon which named "Linux LVM", and I wanted to check which partition is good to install, so I chose "Something else", however then every partition disappeared. I don't know what to do.

I had 5 partitions:

   2 for Windows
   1 for Windows system reserved
   1 for Ubuntu
   1 for Swap partition

and this is my situation now. I use my Ubuntu USB drive and sudo fdisk -l

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x2e1f958d

Device     Boot   Start        End    Sectors  Size Id Type
/dev/sda1          2048     999423     997376  487M 83 Linux
/dev/sda2       1001470 1953523711 1952522242  931G  5 Extended
/dev/sda5       1001472 1953523711 1952522240  931G 8e Linux LVM

How can I recover my hard drive partition? Is it right that I deleted LVM?

TestDisk

Current situation:

enter image description here

What I want to recover:

What i want to recover

Unable to merge partitions using GParted in Ubuntu 16.04 [closed] https://askubuntu.com/questions/831377/unable-to-merge-partitions-using-gparted-in-ubuntu-16-04

I want to merge /dev/sda2 into /dev/sda6 and the remaining partitions in /dev/sda5.

I have unsuccessfully tried to follow instructions on various forums. I have deleted and recreated partition, used Ubuntu USB to boot and merge partitions from there, but have been unsuccessful.

GParted:

ScreenShot of gParted

Results of fdisk:

Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 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: 0x000afeaa

Device     Boot      Start       End   Sectors   Size Id Type
/dev/sda1  * 316934142  378374143  61440002  29.3G  5 Extended
/dev/sda2              2048   316932095 316930048 151.1G 83 Linux
/dev/sda4         379381760  625139711 245757952 117.2G  7 HPFS/NTFS/exFAT
/dev/sda5         316934144  355995647  39061504  18.6G 83 Linux
/dev/sda6         355997696  373573631  17575936   8.4G 83 Linux
/dev/sda7         373575680  378374143   4798464   2.3G 82 Linux swap / Solaris

Partition table entries are not in disk order.

root@ssr:/#

I am not using a dual boot.

How to delete unknown partitions https://askubuntu.com/questions/813527/how-to-delete-unknown-partitions

Several months ago, I installed Ubuntu 16.04 but wrecked my grub due to using a 3rd-party boot menu editor. I had to reinstall Windows and Ubuntu. Now sdb5 and sdb6 are unknown partitions. I tried deleting them with gparted but get a message saying I must delete any partitions above sdb6 first, but sdb7 & sdb8 are my primary linux. How can I get rid of these two partitions without losing my os?

GParted Partitions

Where can I find linux-backports-modules-wireless-cw package for ubuntu 14.04, kernel 3.19? https://askubuntu.com/questions/801773/where-can-i-find-linux-backports-modules-wireless-cw-package-for-ubuntu-14-04-k

Here is what I've done so far which has the output to many commands for diagnosing the issue. The wifi on my Ubuntu 14.04 laptop broke after (I think) this kernel update I don't remember doing.

I've followed the solution in that question and after disabling secure boot, restarting, then running sudo modprobe iwlwifi there were no errors and no output. Then I ran dmesg whose output is here.

The helpful people in #linux pointed me to me needing the linux-backports-modules-wireless-cw package for ubuntu 14.04, kernel 3.19, but there were too many matches and we weren't sure which one to download/install. I am hoping for some guidance on this. Thanks.

Installing Ubuntu 14.04 with Windows 7 - delete recovery/hibernation partitions https://askubuntu.com/questions/520236/installing-ubuntu-14-04-with-windows-7-delete-recovery-hibernation-partitions

I've installed dual-boot setups of Ubuntu before and have never run into any major problems (with the installation) until now.

It started when I tried to run the "Install Ubuntu" option from the Live USB I created. It didn't recognize the Win 7 OS already installed (I just did a clean install yesterday) so it didn't give me the option to "Install Alongside". I did some searching on this site and the Ubuntu Forums and just Google in general, but most of it applied to UEFI systems (which I do not have).

The best option seems to be to shrink the main C: drive (/dev/sda5 in the screenshot below), then install Ubuntu on the newly freed up space. My question, though, is can I get rid of the Recovery (sda1), System Reserved (sda2) and Hibernation (sda6) partitions as well? This is a desktop so I don't need hibernation and I have recovery disks that work fine. But will the deletion of these prevent me from using my Windows 7 partition?

GParted:

enter image description here

Results of fdisk:

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xee650a20

Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    39847935    19922944   27  Hidden NTFS WinRE
/dev/sda2   * 39847936    40052735      102400    7  HPFS/NTFS/exFAT
/dev/sda3        40052736  3907026943  1933487104    f  W95 Ext'd (LBA)
/dev/sda5        40054784  3890208767  1925076992    7  HPFS/NTFS/exFAT
/dev/sda6      3890210816  3907026943     8408064   84  OS/2 hidden C: drive

Disk /dev/sdb: 2063 MB, 2063597568 bytes
64 heads, 62 sectors/track, 1015 cylinders, total 4030464 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
Disk identifier: 0x0005234d

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   * 62     4027519     2013729    c  W95 FAT32 (LBA)
ubuntu@ubuntu:~$ █

Other questions related to mine:

What is the best way to set all this up? If I shrink then install will GRUB be able to find my Windows 7 installation?

How do I install a .so file? - newbie https://askubuntu.com/questions/491401/how-do-i-install-a-so-file-newbie

I downloaded freeverb.tar.gz which contains a plugin library (freeverb.so) for Audacity.

I extracted the .tar.gz file to my downloads folder but I don't know what to do next. There is no Readme file or any other info contained in the .tar.gz file, just freeverb.so

Can you advise me how to get the freeverb.so installed into the correct folder for Audacity to pick it up?

Open-source, free Java Decompiler https://askubuntu.com/questions/272189/open-source-free-java-decompiler

Is there any open source Java Decompilers for Ubuntu, preferably in the repositories and/or GPL'ed?

Both JAD and JD, the most popular decompilers I've found after a bit of googling, seems to be available only in binary form. And they are both proprietary.

It's hard to believe there is no such software in Ubuntu (or Linux in general).

If there is more than one, which you recommend, and why?

How can I change the TTY colors? https://askubuntu.com/questions/147462/how-can-i-change-the-tty-colors

How can I change the standard 8 colors (16 if you count the bright versions) that are used in the various TTYs in Ubuntu 12.04? I'm not talking about the Terminal or XTerm applications, I'm talking about the TTYs that you access via Ctrl+Alt+F1 through Ctrl+Alt+F6.

I don't want to change what colors are being used in which places, I want to tweak what the colors look like. For example, I don't want to change what red is used for, I just want to change what the red looks like--such as using #FF6C60 as red instead of #FF0000.