How do I keep a program from always opening in "always-on-top" mode? [closed] https://askubuntu.com/questions/1564533/how-do-i-keep-a-program-from-always-opening-in-always-on-top-mode

I'm using KeePassXC 2.6.6 on Ubuntu 22.04 Cinnamon.

For the past 6 months or so, when I first start KeePassXC its window always starts in the "Always on top" mode. It blocks other windows until I right-click its title bar and uncheck "Always on top" in its context menu. This is obnoxious, and I want it to stop.

A web search gives nothing but this, Change default "Always on top" setting for a specific application, which has no useful information.

I turn to ChatGPT.

First it suggests checking global window rules in the system settings. Open Menu > Preferences > Windows.

There is nothing here about new windows always being on top, and it only happens with the one program. This is a dead end.

The next step is to check the window state in Muffin. Muffin is Cinnamon's window manager.

First, I try to check for a global Muffin setting /org/cinnamon/muffin/always-on-top. This does not exist, however.

$ dconf read /org/cinnamon/muffin/always-on-top
{no output}

That's not unexpected. Since this happens with only one program, it's unlikely to be a global setting.

Now we check for per-application window states being remembered by Muffin.
I check the following places in order, but they don't exist on my system.

  • ~/.config/cinnamon/window-state.json (~/.config/cinnamon/ does not exist)
  • ~/.config/cinnamon/spices/*.json (~/.config/cinnamon/ does not exist)
  • ~/.config/muffin/ (This whole directory does not exist)

Now we check to see if that rule is stored in dconf, instead. First, the muffin/ subcategory.

$ dconf list /org/cinnamon/muffin/
attach-modal-dialogs
resize-threshold
workspace-cycle

Nothing about windows being always-on-top there.

Check the whole Cinnamon subcategory.

$ dconf list /org/cinnamon/
alttab-switcher-delay
cinnamon-session/
command-history
desktop/
enabled-applets
launcher/
muffin/
next-applet-id
panel-edit-mode
panel-zone-icon-sizes
panel-zone-symbolic-icon-sizes
panel-zone-text-sizes
panels-height
settings-daemon/
show-media-keys-osd
workspace-expo-view-as-grid

Nothing obvious there. Maybe the desktop window manager subcategory.

$ dconf read /org/cinnamon/desktop/wm/preferences/
/org/cinnamon/desktop/wm/preferences/focus-mode 
/org/cinnamon/desktop/wm/preferences/min-window-opacity 

Nothing there. Dead end.

  • Check to see if it's actually Compiz. I have neither Muffin nor Compiz processes:
$ ps aux | grep -E 'muffin|compiz' | grep -v grep
{no output}

So it doesn't appear to be a system setting of any kind, global or application-specific.

Our next guess is that the application itself, in this case KeePassXC, is specifically requesting to be always-on-top. I run $ xprop | grep ABOVE; the cursor turns into a crosshair. I click on KeePassXC. It returns this:

$ xprop | grep ABOVE
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW

Evidently I'm looking for the _NET_WM_STATE_ABOVE directive, which I guess indicates the application is requesting always-on-top. It isn't there.

ChatGPT concludes that KeePassXC itself is requesting the stay-on-top flag at startup via Qt, not via X11 hints. There are no internal KeePassXC settings that control this in any obvious manner. The KeePassXC configuration at ~/.config/keepassxc/keepassxc.ini has no content with any bearing on an always-on-top setting.

I'm not sure what else I can do. I'm still not even certain if this is a Linux problem or a KeePassXC problem. This behavior just started within the past few months. I'm certain it didn't used to do that. This is KeePassXC. How do I get KeePassXC to stop opening itself always-on-top?

Keyboard model on IdeaPad https://askubuntu.com/questions/1564532/keyboard-model-on-ideapad

I have installed LTS 24.04 on IdeaPad 1 15 amn7 and while was setting the computer accidentally lost keyboard model. It was something like 104 key PC or Lenovo something--I don't remember and couldn't determine what was it or, say, what it must be for this computer and system?

Tabs reordering in taskbar on Ubuntu 24 https://askubuntu.com/questions/1564531/tabs-reordering-in-taskbar-on-ubuntu-24

Problem description: I have a bunch of Cursor, Chrome and Slack tabs open, when I try reordering the Cursor tabs in the taskbar, after sometime there is an animation where the taskbar disappears as if there is a popup about to open up, and then the tabs are again arranged to the original random order in the taskbar. I am not sure what could be causing this.

OS info:

kkumargupta@kkumarguptalinux:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
automatic upgrade of kernel caused network problem [closed] https://askubuntu.com/questions/1564528/automatic-upgrade-of-kernel-caused-network-problem

Thank you for your excellent free operating system!

I had the following problem today. I was running Ubuntu with linux kernel version 6.14.0-15 and the system automatically upgraded it to 6.14.0-37.

On reboot, I discovered that I had no network connection. The problem turned out to be that I am using a laptop with no onboard network card, so I have a Realtek USB Ethernet adapter, and the upgrade did not install the kernel module for this hardware.

I was able to reboot into 6.14.0-15 and install the linux-modules-extra-6.14.0-37-generic package, and on reboot, my network was back.

I think that many users would not have the knowledge to do what I did, so it would be much better to include the "extra" modules on any automatic upgrade of the kernel.

Ephraim Yawitz

Stardock Groupy 2 Alternative or something similar? https://askubuntu.com/questions/1564525/stardock-groupy-2-alternative-or-something-similar

I wanted to ask if there was a Stardock Groupy software or something similar that works on Ubuntu 24.04 LTS.

Primarily what I want is the ability to group my windows into one icon on the taskbar while they're open so I have something for example for one subject at school that I'm looking at while another group is dedicated for my worklife, and when I'm done I can just close it. Ideally, if it had browser like tabs, as well, that'd be awesome.

But, looking at some other threads on Reddit, people say that the software is not really needed on Ubuntu because of shortcuts that are used which are favored. I am not exactly sure what they are so if the above doesn't at all exist, I'd be happy to learn to it! ^^

Trying to override haproxy systemd service : [/etc/systemd/system/haproxy.service.d/override.conf:2] Invalid environment assignment, ignoring: - https://askubuntu.com/questions/1564521/trying-to-override-haproxy-systemd-service-etc-systemd-system-haproxy-servic

I'm try to override the haproxy.service Environment line :

Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "EXTRAOPTS=-S /run/haproxy-master.sock"

By this line :

Environment="CONFIG=/etc/haproxy" "PIDFILE=/run/haproxy.pid" "EXTRAOPTS=-S /run/haproxy-master.sock"

Because I want haproxy to read all my .cfg files in the /etc/haproxy/ directory using the haproxy -f <cfgfile|cfgdir> option.

So I ran sudo systemctl edit haproxy.service and it create the /etc/systemd/system/haproxy.service.d/override.conf file with the following content :

[Service]
Environment=-
Environment="CONFIG=/etc/haproxy" "PIDFILE=/run/haproxy.pid" "EXTRAOPTS=-S /run/haproxy-master.sock"

And after a sudo systemctl daemon-reload, I get this error :

mars 03 14:35:34 systemd[1]: [/etc/systemd/system/haproxy.service.d/override.conf:2] Invalid environment assignment, ignoring: -

How can I make this service override work ?

EDIT0 : @Daniel-T In the system haproxy.service, section [Service], I see these 2 EnvironmentFile lines, what do they mean ? :

EnvironmentFile=-/etc/default/haproxy
EnvironmentFile=-/etc/sysconfig/haproxy
Deleting a reference to a repository on 25.10 [duplicate] https://askubuntu.com/questions/1564520/deleting-a-reference-to-a-repository-on-25-10

I am running Ubuntu 25.10.

I am looking clean up my 'apt' packages.

I ran sudo apt update and my system returned:

Err:5 http://repo.mysql.com/apt/ubuntu questing InRelease 
  The following signatures were invalid: EXPKEYSIG B7B3B788A8D3785C MySQL Release Engineering <mysql-build@oss.oracle.com>
Hit:6 https://dl.google.com/linux/chrome/deb stable InRelease
Warning: OpenPGP signature verification failed: http://repo.mysql.com/apt/ubuntu questing InRelease: The following signatures were invalid: EXPKEYSIG B7B3B788A8D3785C MySQL Release Engineering <mysql-build@oss.oracle.com>
Error: The repository 'http://repo.mysql.com/apt/ubuntu questing InRelease' is not signed.
Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
Notice: See apt-secure(8) manpage for repository creation and user configuration details.

The question is: how do I delete the reference to http://repo.mysql.com/apt/ubuntu from my system

Customize output area of pam_fprintd on the lock screen https://askubuntu.com/questions/1564519/customize-output-area-of-pam-fprintd-on-the-lock-screen

I've recently purchased USB fingerprint scanner and configured fprintd for unlock screen and some other authorizations.

Here is my /etc/pam.d/kde file

auth    sufficient      pam_fprintd.so max-tries=10 timeout=10
auth    sufficient      pam_unix.so nullok try_first_pass

The issue is that when fprintd fails to recognize my finger, its messages flush password entry line out of the screen, like in the photo below.

enter image description here

Is there any way to customize the area, where messages from fprintd appear? For example, add scroll-bar?

I use KDE, desktop theme is Breeze.

Versions:

Kubuntu: 24.04.4LTS

package kubuntu-desktop: 1.451.2

package sddm-theme-breeze: 4:5.27.12-0ubuntu0.1

UPD. I understand that I can reduce max-tries. However, matching algorithm is still experimental, it gives too much false negatives. Therefore I'd like to enlarge output area.

Reading files in /usr/share/sddm/themes/breeze I've found that this message is accessible in the field root.notificationMessage.

Unfortunately, I'm totally newbie in KDE theme development, therefore, I have no idea how to add style to this component.

UPD2. It also seems that files from /usr/share/sddm/themes/<theme_name> are compiled. I've changed a message string in the part, related to "Capslock is on", however, this didn't have any effect.

Help required installing mysql-connector for python3 in Ubuntu 25.10 https://askubuntu.com/questions/1564518/help-required-installing-mysql-connector-for-python3-in-ubuntu-25-10

I am running Ubuntu 25.10 which has Python installed out of the box.

Trying to import mysql.connector in a Python script results in the following error:

ModuleNotFoundError: No module named 'mysql'

Following advice from stack overflow I attempted to take the most simple approach to install the python3-mysql-connector and ran:

sudo apt-get install python3-mysql.connector

This gave me:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Solving dependencies... Done
The following packages were automatically installed and are no longer required:
  exo-utils libexo-2-0 libexo-common libexpat1-dev libgtk-layer-shell0 libjs-sphinxdoc
  libpython3-dev libpython3.13-dev libthunarx-3-0 libxfce4panel-2.0-4 libxfce4ui-2-0
  libxfce4ui-common libxfce4windowing-0-0 libxfce4windowing-common libxfconf-0-3
  python3-dev python3-packaging python3-wheel python3.13-dev thunar-data xfconf
  zlib1g-dev
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  python3-mysql.connector
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 229 kB of archives.
After this operation, 2,032 kB of additional disk space will be used.
Err:1 http://gb.archive.ubuntu.com/ubuntu questing/universe amd64 python3-mysql.connector all 9.3.0-1
  403  Forbidden [IP: 185.125.190.81 80]
E: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/pool/universe/m/mysql-connector-python/python3-mysql.connector_9.3.0-1_all.deb  403  Forbidden [IP: 185.125.190.81 80]
E: Unable to fetch some archives, maybe run apt update or try with --fix-missing?

What I get from this is that I am forbidden from accessing some archives.

I also tried

sudo apt update 
sudo apt install python3-pip 
pip3 install mysql-connector-python

Which gave me:

The following packages were automatically installed and are no longer required:
  exo-utils   libexo-common        libthunarx-3-0       libxfce4ui-2-0     libxfce4windowing-0-0     libxfconf-0-3     thunar-data
  libexo-2-0  libgtk-layer-shell0  libxfce4panel-2.0-4  libxfce4ui-common  libxfce4windowing-common  python3-protobuf  xfconf
Use 'sudo apt autoremove' to remove them.

    Installing:
      python3-pip
    
    Summary:
      Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 2
      Download size: 1,416 kB
      Space needed: 10.4 MB / 349 GB available
    
    Err:1 http://gb.archive.ubuntu.com/ubuntu questing/universe amd64 python3-pip all 25.1.1+dfsg-1ubuntu2
      403  Forbidden [IP: 185.125.190.83 80]
    Error: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/python3-pip_25.1.1%2bdfsg-1ubuntu2_all.deb  403  Forbidden [IP: 185.125.190.83 80]
    Error: Unable to fetch some archives, maybe run apt update or try with --fix-missing

Thankyou

Text Editor Spaces per Tab setting is not working https://askubuntu.com/questions/1564516/text-editor-spaces-per-tab-setting-is-not-working

I am using Text Editor 46.3 in Ubuntu 24.04. I prefer to keep the "Spaces per Tab" setting at 4, however even after changing the setting, I still get 2 spaces per tab.

Is this a glitch or am I missing something?

How do I launch Thunderbird in Terminal? https://askubuntu.com/questions/1564505/how-do-i-launch-thunderbird-in-terminal

I can run Thunderbird from the menu. I want to create a shortcut to assign to the mail button on my keyboard. I put in "thunderbird" for the command and pressing the button did nothing. I decided to test the command in Terminal. As you can see from this screen shot, I tried several ways but none launched Thunderbird.

enter image description here

I copied the menu entry to my desktop and opened it with a text editor. I found this in it:

Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64
--command=thunderbird --file-forwarding org.mozilla.Thunderbird @@u %u @@ Terminal=false Type=Application Icon=org.mozilla.Thunderbird
Categories=Network;Email;

I searched for the executable file (it may be a snap installation) using the "which" command. I got no results: Screenshot of Terminal

Errors when trying to update Ubuntu 24.04.4 https://askubuntu.com/questions/1564469/errors-when-trying-to-update-ubuntu-24-04-4

New Ubuntu user here and first time poster looking for help with errors while attempting to update. The system seems to be stable and running fine however I am just experiencing problems with updates and deciphering the logs, the results appear to be the same whether using the software updater to command line. It may be a compatibility issue between kernel revision but I have no idea why and how to recover from this situation. Any assistance gratefully appreciated, thanks.

System details: Ubuntu 24.04.4 LTS, Kernel 6.14.0-37-generic running on an AMD Ryzen 7 8745HS.

Error logs:

$:/var/log/apt$ sudo apt update
Hit:1 http://gb.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu noble-updates InRelease                  
Hit:3 http://gb.archive.ubuntu.com/ubuntu noble-backports InRelease                
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease                   
Hit:5 https://repo.protonvpn.com/debian stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up-to-date.
N: Ignoring file 'virtualbox.list.temp' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

$:/var/log/apt$ sudo apt-get upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
* synosnap dpkg pre hook check
dumping distro info
Setting up linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
Setting up linux-headers-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.17.0-14-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script:
generating configurations for kernel-6.17.0-14-generic
performing configure test: HAVE_BIO_BI_BDEV - not present
performing configure test: HAVE_BIO_ALLOC_BIOSET_5 - not present
performing configure test: HAVE_BDEV_FREEZE - not present
performing configure test: HAVE_BDEV_OPEN_BY_PATH - not present
performing configure test: HAVE_BDOPS_OPEN_INT - not present
performing configure test: HAVE_BDEVNAME - not present
performing configure test: HAVE_BDEV_STACK_LIMITS - not present
performing configure test: HAVE_ALLOC_DISK - not present
performing configure test: HAVE_BD_HAS_SUBMIT_BIO - not present
performing configure test: HAVE_BIO_BI_BDEV_BD_DISK - not present
performing configure test: HAVE_BD_SUPER - not present
performing configure test: HAVE_BDOPS_OPEN_GENDISK - not present
performing configure test: HAVE_BIO_ALLOC_2 - not present
performing configure test: HAVE_BIO_BI_OPF - not present
performing configure test: HAVE_BDOPS_SUBMIT_BIO - not present
performing configure test: HAVE_BDOPS_OPEN_INODE - not present
performing configure test: HAVE_BIO_BI_POOL - not present
performing configure test: HAVE_BIO_ENDIO_1 - not present
performing configure test: HAVE_BIO_BLKG - not present
performing configure test: HAVE_BIO_FREE_PAGES - not present
performing configure test: HAVE_BIO_LIST - not present
performing configure test: HAVE_BIO_REMAPPED - not present
performing configure test: HAVE_BIO_FOR_EACH_SEGMENT_ALL_2 - not present
performing configure test: HAVE_BIO_BI_REMAINING - not present
performing configure test: HAVE_BIOSET_INIT - not present
performing configure test: HAVE_BIOSET_NEED_BVECS_FLAG - not present
performing configure test: HAVE_BIO_ENDIO_INT - not present
performing configure test: HAVE_BIO_COPY_DEV - not present
performing configure test: HAVE_BIO_FOR_EACH_SEGMENT_ALL_1 - not present
performing configure test: HAVE_BIO_SET_DEV - not present
performing configure test: HAVE_BIO_SET_OP_ATTRS - not present
performing configure test: HAVE_BIOSET_CREATE_3 - not present
performing configure test: HAVE_BLK_ALLOC_DISK - not present
performing configure test: HAVE_BIO_THROTTLED - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_1 - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_MK_REQ_FN_NODE_ID - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_2 - not present
performing configure test: HAVE_BLKDEV_GET_BY_PATH - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_RH_2 - not present
performing configure test: HAVE_BLKDEV_GET_BY_PATH_4 - not present
performing configure test: HAVE_BLK_CLEANUP_QUEUE - not present
performing configure test: HAVE_BLK_MQ_MAKE_REQUEST - not present
performing configure test: HAVE_BLK_MQ_SUBMIT_BIO - not present
performing configure test: HAVE_BVEC_ITER_ALL - not present
performing configure test: HAVE_BLKDEV_PUT_1 - not present
performing configure test: HAVE_BLKDEV_PUT_HOLDER - not present
performing configure test: HAVE_BLK_STATUS_T - not present
performing configure test: HAVE_BLK_SET_STACKING_LIMITS - not present
performing configure test: HAVE_BVEC_ITER - not present
performing configure test: HAVE___DENTRY_PATH - not present
performing configure test: HAVE_COMPOUND_HEAD - not present
performing configure test: HAVE_BVEC_MERGE_DATA - not present
performing configure test: HAVE_DENTRY_PATH_RAW - not present
performing configure test: HAVE_ENUM_REQ_OPF - not present
performing configure test: HAVE_FMODE_T - not present
performing configure test: HAVE_D_UNLINKED - not present
performing configure test: HAVE_ENUM_REQ_OP - not present
performing configure test: HAVE_FILE_INODE - not present
performing configure test: HAVE_FTRACE_REGS - not present
performing configure test: HAVE_FREEZE_SB - not present
performing configure test: HAVE_GD_OWNS_QUEUE - not present
performing configure test: HAVE_GENHD_FL_NO_PART_SCAN - not present
performing configure test: HAVE_GENHD_FL_NO_PART - not present
performing configure test: HAVE_FOPS_FALLOCATE - not present
performing configure test: HAVE_IOPS_FALLOCATE - not present
performing configure test: HAVE_INODE_LOCK - not present
performing configure test: HAVE_HD_STRUCT - not present
performing configure test: HAVE_GET_SUPER - not present
performing configure test: HAVE_KERNEL_READ_PPOS - not present
performing configure test: HAVE_MAKE_REQUEST_FN_IN_QUEUE - not present
performing configure test: HAVE_KERNEL_WRITE_PPOS - not present
performing configure test: HAVE_KERN_PATH - not present
performing configure test: HAVE_MERGE_BVEC_FN - not present
performing configure test: HAVE_MAKE_REQUEST_FN_INT - not present
performing configure test: HAVE_MNT_IDMAP_ARGS - not present
performing configure test: HAVE_MAKE_REQUEST_FN_VOID - not present
performing configure test: HAVE_NONVOID_ADD_DISK - not present
performing configure test: HAVE_NOOP_LLSEEK - not present
performing configure test: HAVE_NONVOID_SUBMIT_BIO_1 - not present
performing configure test: HAVE_MNT_WANT_WRITE - not present
performing configure test: HAVE_PATH_PUT - not present
performing configure test: HAVE_PROC_CREATE - not present
performing configure test: HAVE_NOTIFY_CHANGE_2 - not present
performing configure test: HAVE_SB_START_WRITE - not present
performing configure test: HAVE_PROC_OPS - not present
performing configure test: HAVE_PART_NR_SECTS_READ - not present
performing configure test: HAVE_STRSCPY - not present
performing configure test: HAVE_SUBMIT_BIO_WAIT - not present
performing configure test: HAVE_SUBMIT_BIO_1 - not present
performing configure test: HAVE_SYS_OLDUMOUNT - not present
performing configure test: HAVE_THAW_BDEV_INT - not present
performing configure test: HAVE_TASK_STRUCT_TASK_WORKS_CB_HEAD - not present
performing configure test: HAVE_STRUCT_PATH - not present
performing configure test: HAVE_USER_NAMESPACE_ARGS - not present
performing configure test: HAVE_TASK_STRUCT_TASK_WORKS_HLIST - not present
performing configure test: HAVE_UAPI_MOUNT_H - not present
performing configure test: HAVE_VFS_FALLOCATE - not present
performing configure test: HAVE_UUID_H - not present
performing configure test: HAVE_USER_PATH_AT - not present
performing configure test: HAVE_VZALLOC - not present
performing configure test: HAVE_VFS_UNLINK_2 - not present
performing configure test: HAVE_WRITE_ZEROES - not present
performing configure test: HAVE_WITHIN_MODULE - not present
performing sys_mount lookup
performing sys_umount lookup
performing sys_oldumount lookup
performing sys_call_table lookup
performing blk_mq_submit_bio lookup
performing blk_alloc_queue lookup
performing kfree lookup
performing printk lookup
performing x64_sys_call lookup
performing __x64_sys_mount lookup
performing __x64_sys_umount lookup
performing __arm64_sys_mount lookup
performing __arm64_sys_umount lookup
performing __x64_sys_mount_setattr lookup
performing __x64_sys_move_mount lookup
performing __x64_sys_fsconfig lookup
performing __arm64_sys_mount_setattr lookup
performing __arm64_sys_move_mount lookup
performing __arm64_sys_fsconfig lookup
performing namespace_sem lookup

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.17.0-14-generic modules...(bad exit status: 2)
ERROR (dkms apport): binary package for synosnap: 0.11.6 not found
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/virtualbox/7.0.16/build...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
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.
dkms autoinstall on 6.17.0-14-generic/x86_64 failed for synosnap(10) virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.17.0-14-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.17.0-14-generic (--configure):
 installed linux-headers-6.17.0-14-generic package post-installation script subprocess returned error exit status 11
Setting up linux-headers-6.8.0-101-generic (6.8.0-101.101) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-101-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script:
* System map at /boot/System.map-6.8.0-101-generic does not contain valid symbol table, and 
* we are trying to install synosnap driver for a differnt kernel than the one currently running.
* Synosnap driver will encounter error during installation.
* We will try to install/build driver when next booting into new kernel.
* After rebooting into the new kernel, if the backup process still fails,
* please uninstall and reinstall Active Backup for Business Linux Agent.

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.8.0-101-generic -C /lib/modules/6.8.0-101-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.8.0-101-generic modules...(bad exit status: 2)
ERROR (dkms apport): binary package for synosnap: 0.11.6 not found
Error! Bad return status for module build on kernel: 6.8.0-101-generic (x86_64)
Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information.
dkms autoinstall on 6.8.0-101-generic/x86_64 succeeded for virtualbox
dkms autoinstall on 6.8.0-101-generic/x86_64 failed for synosnap(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-101-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.8.0-101-generic (--configure):
 installed linux-headers-6.8.0-101-generic package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-24.04:
 linux-headers-generic-hwe-24.04 depends on linux-headers-6.17.0-14-generic; however:
  Package linux-headers-6.17.0-14-generic is not configured yet.

dpkg: error processing package linux-headers-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                                                            No apport report written because MaxReports has already been reached
                                                                                                                                                                                dpkg: dependency problems prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-6.8.0-101-generic; however:
  Package linux-headers-6.8.0-101-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-24.04:
 linux-generic-hwe-24.04 depends on linux-headers-generic-hwe-24.04 (= 6.17.0-14.14~24.04.1); however:
  Package linux-headers-generic-hwe-24.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    Processing triggers for linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.17.0-14-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script:
generating configurations for kernel-6.17.0-14-generic
performing configure test: HAVE_BDOPS_SUBMIT_BIO - not present
performing configure test: HAVE_BDOPS_OPEN_INODE - not present
performing configure test: HAVE_BIO_BI_BDEV - not present
performing configure test: HAVE_BDEV_STACK_LIMITS - not present
performing configure test: HAVE_BIO_BI_OPF - not present
performing configure test: HAVE_BDEV_FREEZE - not present
performing configure test: HAVE_BD_HAS_SUBMIT_BIO - not present
performing configure test: HAVE_BDOPS_OPEN_GENDISK - not present

{some items removed here to get within body character limit}

performing configure test: HAVE_WRITE_ZEROES - not present
performing sys_mount lookup
performing sys_umount lookup
performing sys_oldumount lookup
performing sys_call_table lookup
performing blk_mq_submit_bio lookup
performing blk_alloc_queue lookup
performing kfree lookup
performing printk lookup
performing x64_sys_call lookup
performing __x64_sys_mount lookup
performing __x64_sys_umount lookup
performing __arm64_sys_mount lookup
performing __arm64_sys_umount lookup
performing __x64_sys_mount_setattr lookup
performing __x64_sys_move_mount lookup
performing __x64_sys_fsconfig lookup
performing __arm64_sys_mount_setattr lookup
performing __arm64_sys_move_mount lookup
performing __arm64_sys_fsconfig lookup
performing namespace_sem lookup

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.17.0-14-generic modules...(bad exit status: 2)
ERROR (dkms apport): binary package for synosnap: 0.11.6 not found
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/virtualbox/7.0.16/build...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
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.
dkms autoinstall on 6.17.0-14-generic/x86_64 failed for synosnap(10) virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.17.0-14-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.17.0-14-generic (--configure):
 installed linux-image-6.17.0-14-generic package post-installation script subprocess returned error exit status 11
No apport report written because MaxReports has already been reached
                                                                    Errors were encountered while processing:
 linux-headers-6.17.0-14-generic
 linux-headers-6.8.0-101-generic
 linux-headers-generic-hwe-24.04
 linux-headers-generic
 linux-generic-hwe-24.04
 linux-image-6.17.0-14-generic
* synosnap dpkg post hook check
dumping distro info
compare distro info
check for file trigger
N: Ignoring file 'virtualbox.list.temp' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code (1)

Update - I have tried to remove the Synology synosnap package but this fails with similar errors:

$ sudo apt-get purge --auto-remove synosnap [sudo] password for steve: Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED synosnap* 0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade. 5 not fully installed or removed. After this operation, 1,292 MB disk space will be freed. N: Ignoring file 'virtualbox.list.temp' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension Do you want to continue? [Y/n] y

  • synosnap dpkg pre hook check dumping distro info (Reading database ... 265747 files and directories currently installed.) Removing synosnap (0.11.7) ... removed '/usr/share/initramfs-tools/hooks/synosnap' removed '/usr/share/initramfs-tools/scripts/init-premount/synosnap' Found synosnap installed by dkms in the following kernel versions: 6.14.0-37-generic 6.17.0-14-generic 6.8.0-101-generic Start updating initrd and try to remove backup initrd for these kernel versions... Configuring update-initramfs for 6.14.0-37-generic, please wait... update-initramfs: Generating /boot/initrd.img-6.14.0-37-generic Removing old backup initrd /boot/initrd.img-6.14.0-37-generic.old-syno removed '/boot/initrd.img-6.14.0-37-generic.old-syno' Module synosnap-0.11.7 for kernel 6.8.0-101-generic (x86_64). Before uninstall, this module version was ACTIVE on this kernel.

synosnap.ko:

  • Uninstallation
    • Deleting from: /lib/modules/6.8.0-101-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version. depmod... Module synosnap-0.11.7 for kernel 6.14.0-37-generic (x86_64). Before uninstall, this module version was ACTIVE on this kernel.

synosnap.ko.zst:

  • Uninstallation
    • Deleting from: /lib/modules/6.14.0-37-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version. depmod... Module synosnap-0.11.7 for kernel 6.17.0-14-generic (x86_64). Before uninstall, this module version was ACTIVE on this kernel.

synosnap.ko.zst:

  • Uninstallation
    • Deleting from: /lib/modules/6.17.0-14-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version. depmod... Deleting module synosnap-0.11.7 completely from the DKMS tree. Setting up linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) ... Setting up linux-headers-6.17.0-14-generic (6.17.0-14.14~24.04.1) ... /etc/kernel/header_postinst.d/dkms:
  • dkms: running auto installation service for kernel 6.17.0-14-generic Sign command: /usr/bin/kmodsign Signing key: /var/lib/shim-signed/mok/MOK.priv Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script: generating configurations for kernel-6.17.0-14-generic performing configure test: HAVE_BDEV_FREEZE - not present performing configure test: HAVE_BDOPS_OPEN_INODE - not present

{some items removed here to get within body character limit}

performing x64_sys_call lookup performing __x64_sys_mount lookup performing __x64_sys_umount lookup performing __arm64_sys_mount lookup performing __arm64_sys_umount lookup performing __x64_sys_mount_setattr lookup performing __x64_sys_move_mount lookup performing __x64_sys_fsconfig lookup performing __arm64_sys_mount_setattr lookup performing __arm64_sys_move_mount lookup performing __arm64_sys_fsconfig lookup performing namespace_sem lookup

Building module: Cleaning build area... make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.17.0-14-generic modules...(bad exit status: 2) ERROR (dkms apport): binary package for synosnap: 0.11.6 not found Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64) Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information. Sign command: /usr/bin/kmodsign Signing key: /var/lib/shim-signed/mok/MOK.priv Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module: Cleaning build area... make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/virtualbox/7.0.16/build...(bad exit status: 2) ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash' 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. dkms autoinstall on 6.17.0-14-generic/x86_64 failed for synosnap(10) virtualbox(10) Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information.

  • dkms: autoinstall for kernel 6.17.0-14-generic ...fail! run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11 dpkg: error processing package linux-headers-6.17.0-14-generic (--configure): installed linux-headers-6.17.0-14-generic package post-installation script subprocess returned error exit status 11 dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-24.04: linux-headers-generic-hwe-24.04 depends on linux-headers-6.17.0-14-generic; however: Package linux-headers-6.17.0-14-generic is not configured yet.

dpkg: error processing package linux-headers-generic-hwe-24.04 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic-hwe-24.04: linux-generic-hwe-24.04 depends on linux-headers-generic-hwe-24.04 (= 6.17.0-14.14~24.04.1); however: Package linux-headers-generic-hwe-24.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-24.04 (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates it's a follow-up error from a previous failure. No apport report written because the error message indicates it's a follow-up error from a previous failure. Errors were encountered while processing: linux-headers-6.17.0-14-generic linux-headers-generic-hwe-24.04 linux-generic-hwe-24.04 sh: 1: /opt/synosnap/hooks/dpkg-post-hook.sh: not found E: Sub-process /usr/bin/dpkg returned an error code (1) E: Problem executing scripts DPkg::Post-Invoke '/opt/synosnap/hooks/dpkg-post-hook.sh' E: Sub-process returned an error code

PXE boot timeouts setting https://askubuntu.com/questions/1374560/pxe-boot-timeouts-setting

I trying to set up a PXE boot server. Everything is working, but when the client is booting after the pxelinux.0 is loaded there is a boot: prompt.

BOOT SERVER IP: 192.168.1.4  

PXELINUX 6.04 PXE 20200016 Copyright (C) 1994-2015 H. Peter Anvin et al
NO MESSAGE TO SHOW
boot: _
  1. When I press Enter to the pxelinux.cfg/default enter the next menu where is another Automatic boot in 120s countdown.
  2. If I don't press Enter after 1-2 mins it goes to the same menu as above.

It will be cool if somebody will share with us how to set up these two timeouts.

Automatic boot timeout

PROMPT 0
TIMEOUT 50
# Default boot option to use
DEFAULT menu.c32
How to change the default directory that WSL Ubuntu terminal (on Windows 10) opens with https://askubuntu.com/questions/1372064/how-to-change-the-default-directory-that-wsl-ubuntu-terminal-on-windows-10-ope

I installed the WSL Bash on Windows 10 so it can act as my terminal in VScode, but the default directory is ~/home/USERNAME

I would like it to be /mnt/c/Users/USERNAME (so on my windows domain side)

I've looked at so many different angles on how to change the default from adding a command to .bashrc that manually changes the directory on startup, to going to the registry editor and trying to change the default directory for CMD, (turns out even that's a challenge as the file I needed to alter doesn't even exist but that's a problem for another day)

Any ideas on how I can change the WSL ubuntu18.04 terminal so that the default directory on startup is different?

Postfix Send-Only SMTP Server domain name configuration https://askubuntu.com/questions/1313330/postfix-send-only-smtp-server-domain-name-configuration

I found 2 ways of sending mails from Linux/bash :

  1. through a service , like sSMTP, which implies using an external SMTP server, like gmail
  2. through Postfix server, which configures the Linux server to act as it's own SMTP server ( I think )

I pretty much found documentation for how to configure each. From what I've seen then are security issues ( which I can't afford since I want to configure this in an IT production environment ) when using a sSMTP service, plus you have to have access to Internet. So this leaves us with Postfix server.

I know how to configure Postfix, except for the domain part. When you first configure this, it asks you for a domain name ( like example.com ). I don't know where to get this. Don't you have to buy a domain ? or should I ask my IT department if they have one so I can use it ? or I can just type anything like domain.com . I want to configure this on a Linux server. On the other hand , I have another Linux server on another network , which has Postfix server configured, so you can send mails , with the following config. file :

cat /etc/postfix/main.cf | grep -v "^#" | grep -v "^$"
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = server2.backup
inet_interfaces = localhost
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 168*.0/28, 127.0.0.0/8,localhost
relayhost = [10.*]:25
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases


debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES 

I modified the IP adresses with a * for security purposes. What domain was configured here on Postfix ? I just see here localhost.$mydomain, but this doesn't tell me anything. Thank your so much for your patience.

note 1: I found out server 2 uses a relay server in order to send mails, I still don't know what is the domain name it has

How can I configure things so that Jmeter finds the JDK of Java? https://askubuntu.com/questions/1156012/how-can-i-configure-things-so-that-jmeter-finds-the-jdk-of-java

I have jdk installed, in /usr/lib/jvm/jdk1.8.0_212/

I wanna run Jmeter, but this finds java in

./jmeter: 128: [: Illegal number: 
./jmeter: 192: ./jmeter: /usr/bin/java/bin/java: not found

env shows this:

JAVA_HOME=/usr/bin/java

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk1.8.0_212/bin:/usr/lib/jvm/jdk1.8.0_212/bin/java:/usr/bin/java"

/etc/environment contains

JAVA_HOME="/usr/lib/jvm/jdk1.8.0_212"

'#' JRE_HOME=$JAVA_HOME/jre

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk1.8.0_212/bin:/usr/lib/jvm/jdk1.8.0_212/bin/java:/usr/bin/java"

How can I fix?

Thanks.

Ubuntu 18.10, Samba 4.8.4 smb.conf - what are the valid values for fruit:model? https://askubuntu.com/questions/1109810/ubuntu-18-10-samba-4-8-4-smb-conf-what-are-the-valid-values-for-fruitmodel

I'm accessing a fresh install of Ubuntu 18.10 and Samba 4.8.4 from macOS clients running Mojave. When connected via SMB, I want the Finder icon to look like a Mac Mini (because that's what Ubuntu 18.10 is running on).

In /etc/samba/smb.conf ([global] section), these values for fruit:model worked:

  • Xserve
  • MacPro
  • iMac

All of these values also work, but resulted in the default icon (that looks like an Apple Cinema Display):

  • MacBook
  • MacMini
  • MacSamba
  • TimeCapsule
  • RackMac

Saw a post recommending model names from /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist on a Mac. While there are many there, the ones I tried didn't work.

Re: avahi-daemon, Samba 4.8.4 can set the icon for connected macOS clients without avahi-daemon running (worked for the three models above). While having avahi-daemon helps the server be perpetually visible in the Finder, I'm trying to understand only the working values for fruit:model in the smb.conf.

Anyone have any insight?

psensor not showing sensor data in label in Xubuntu 18.04 https://askubuntu.com/questions/1051270/psensor-not-showing-sensor-data-in-label-in-xubuntu-18-04

I have three machines running Xubuntu: two on 16.04 and one on 18.04.

psensor is installed on all machines, and the sensor preferences for CPU core temp (or whatever) on all machines has the setting Display sensor info in the label (experimental) enabled.

The sensor info is properly displayed in the label for both 16.04 machines, but not for 18.04. All required dependencies have been installed for psensor (lm-sensors hddtemp etc).

Xubuntu 16.04 has been installed on the currently 18.04 machine previously, and psensor properly worked.

According to the Xubuntu 18.04 release notes, there have been some changes or updates to panel plugins, including the "Status Notifier Plugin" and a new "Notification Plugin". Since psensor displays in the "Notification area" plugin (systray-4), I'm guessing that some of these changes has affected the way psensor and likely other applications are displayed?

I've included a screencap of psensor in label, that shows how psensor label displays in the panel, as well as the psensor settings. As you can see, it shows the temperature icon in the panel, but no actual sensor information. Furthermore, when you click on the temp icon, it no longer displays the summary/preview of temperatures and info, but instead opens the "Psensor - Temperature Monitor" graph.

This is the only issue I've had with Xubuntu 18.04 so far that bothers me (some other weird issues like file text persisting after you eject a drive), and really the only reason I have not updated my other machines to 18.04 already.

I haven't seen anyone else talk about this issue with psensor on 18.04, so either this is an isolated problem, or more likely, just a Xubuntu/XFCE issue rather than a Ubuntu 18.04 issue.

Any ideas?

How do I let Ubuntu find the install path for tcl? https://askubuntu.com/questions/844836/how-do-i-let-ubuntu-find-the-install-path-for-tcl

I am running Ubuntu 16.04. I am trying to install the R package tcltk. When I run install.packages('tcltk'), I get the following error:

Installing package into ‘/home/esander/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Error: .onLoad failed in loadNamespace() for 'tcltk', details:
  call: fun(libname, pkgname)
  error: Can't find a usable init.tcl in the following directories: 
    /opt/anaconda1anaconda2anaconda3/lib/tcl8.5 ./lib/tcl8.5 ./lib/tcl8.5 ./library ./library ./tcl8.5.18/library ./tcl8.5.18/library

My first thought was to uninstall and reinstall tcl. I did so, and now if I run sudo apt-get install tcl, it says that it is at the newest version (8.6.0+9). Ok, so it seems that R is looking for tcl in strange places (and is looking for tcl 8.5), so I want to find the path and somehow link R to it. But when I run whereis tcl, I get:

tcl:

Apparently Ubuntu can't find the install path. I tried to find it the brute-force way, running find / -name tcl 2> /dev/null, and I got:

/usr/share/ruby-rouge/demos/tcl
/usr/share/doc/tcl
/home/esander/anaconda3/lib/python3.5/site-packages/notebook/static/components/codemirror/mode/tcl
/home/esander/anaconda3/pkgs/notebook-4.2.1-py35_0/lib/python3.5/site-packages/notebook/static/components/codemirror/mode/tcl
/home/esander/.conda/envs/my_root/lib/python3.5/site-packages/notebook/static/components/codemirror/mode/tcl

These locations either seem like documentation, or things specific to ipython notebooks. I don't fully understand this, but clearly there are linking/installation problems of some kind. How do I find tcl or install it so that a normal install path appears?

Unlocking LUKS partition with keyfile on USB does not work https://askubuntu.com/questions/839288/unlocking-luks-partition-with-keyfile-on-usb-does-not-work

I partially followed this

What is /lib/cryptsetup/scripts/passdev actually doing?

/etc/crypttab

2tb UUID=... /dev/disk/by-label/STICK:/logfile luks,nofail,keyscript=/lib/cryptsetup/scripts/passdev,tries=2

I have a stick plugged in formatted ext2, label STICK with the logfile with the passphrase in it. I used the "normal" method before reading the passphrase from my first disk that I am description with keyboard input.

2tb UUID=.. /etc/luks-keys/2tb luks,nofail,tries=1

And yes I did sudo update-initramfs -u -k all && systemctl reboot endlessly but this just does not work.

I am trying to get this to work to eventually unlock my entire system with just a USB stick pluged in but its not working.

I am in a UEFI system with secure boot disabled if that matters. I have read something about a module on a related topic. Do I need anything special loaded?

Also where is the log for this?

Enabling VSYNC with Nvidia drivers https://askubuntu.com/questions/774416/enabling-vsync-with-nvidia-drivers

I am running Ubuntu 16.04 with a Nvidia GeForce GT 630M graphics card using the 361.42 Nvidia proprietary driver.

I am trying to enable sync to vblank for OpenGL applications, but to no avail. The output of glxgears runs at about 2000 FPS, for example; more importantly, my OpenGL homework assignment exhibits significant screen tearing :(

Please note that my built-in Intel GPU has vsync enabled by default.

I have looked through the forums, but none of the proposed solutions have worked for me. CompizConfig settings manager already has sync to vblank enabled; nvidia-settings does not have a sync to vblank option; and adding export __GL_YIELD="USLEEP" to /etc/profile did nothing. The output of nvidia-settings --query=SyncToVBlank --verbose is

WARNING: Attribute 'SyncToVBlank' specified in query 'SynctoVBlank' is not available on newton:0.0.

EDIT: It appears that Nvidia drivers do not support vsync when used in a laptop with an Intel GPU. Bumblebee can supposedly help the "cooperation" between the two GPUs, but installing bumblebee-nvidia resulted in very poor graphics rendering.

can't install or update any program, dpkg: error https://askubuntu.com/questions/741838/cant-install-or-update-any-program-dpkg-error

every time I try to install or update anything it gives this error

    dpkg: error: failed to open package info file `/var/lib/dpkg/available' for reading: No such file or directory
    E: Sub-process /usr/bin/dpkg returned an error code (2)
Move files preserving symbolic links https://askubuntu.com/questions/663990/move-files-preserving-symbolic-links

I have some files on an external hard drive, to which I keep soft symlinks in my home folder (many links, not just one). I need to move some of the original files to another hard drive, and I want to have the symlinks pointing to their new location.

Is there a way to achieve this, other than re-creating the links after moving the files?

Can't get to desktop after login https://askubuntu.com/questions/573312/cant-get-to-desktop-after-login

I need some help: I shut down my laptop (Ubuntu 14.04), forgetting I was installing software, and now I can't get to unity after logging in. I just see my background picture.

Logging in a guest works, so I suspect the session in my account is corrupted.

Can anybody help me?

Make a grid of images, then rotate and crop it https://askubuntu.com/questions/506240/make-a-grid-of-images-then-rotate-and-crop-it

So I have a few thousand thumbnails that I want to stitch together in a slightly tilted grid. I figure that's not going to be the most obvious thing in the world to understand so here's an artists impression of the final output, sans images.

enter image description here

I've been using ImageMagick so far to create the 17×8 grid. It's simple enough but here's a version with the rose dummy image that will display to screen:

montage -mode concatenate $(printf 'rose: %.0s' {1..136}) -resize 100x80 -tile 17x out.jpg

roses

But now I want to rotate and crop. If I chuck -rotate 1.5, each image is rotated separately. If I save it and then rotate I compound compression artefacts and lose quality. How do I rotate and crop this grid in the same command?

I'll happily take an alternative to ImageMagick but this has to be command-line as it's going to run on a regular basis on a server.

Samba share is not accessible with AD user https://askubuntu.com/questions/497245/samba-share-is-not-accessible-with-ad-user

I tried to install a samba server for active directory authentication and shares.

I managed to configure kerberos (kinit klist works) I configured smb.conf.

wbinfo -u<br>
wbinfo -g<br>
getent group *showing all domain groups)<br>
getent users (showing all domain users)<br>
net join was successful

Modifing nsswitch and common-session did work as well. I can log into the machine using AD credentials, locally and over ssh. Even adding domain administrator group to sudoer worked. So I assume the authentication is configured correctly.

I now wanted to create a share. One with [homes] and one with access for an AD group.

If I now connect to the share from a Windows 7 computer I get prompted user/password. If I enter the data from the initial local account that was created during the installation process, I see both shares, the public one and the home directory of the local user.

If I use the AD credentials, I only get access denied.

I even tried to enable guest access and deactivation any access control, but nothing changes. The local user can connect, but the AD user doesn't even get to see the shares.

If I enable logging level 10 I see that the computer is trying to authenticate, but fails.

What am I missing?

Update:

I found the problem. I don't really understand why that caused that effect, but now the share is working nearly as I want it to.

I did use:

idmap uid = 10000-20000<br>
idmap gid = 10000-20000

from the tutorial at http://wiki.ubuntuusers.de/Samba_Winbind I didn't think the warning, that these lines are deprecated will cause problems, as deprecation normally means still supported. That's true for local login, but shares get broken. I replaced these two lines with:

idmap config * : range = 10000-20000

and now the share is working.

The only problem left is in order to connect to the [homes] share I need to use COMPUTERNAME\USERNAME, but I wanted homes to work with DOMAIN\USERNAME?

If anyone knows how to change that it would appreciate it, but as I can just use a normal home share with username subdirectory, I don't consider that to be a real problem.

Remove vocals from mp3 and get only instrumentals https://askubuntu.com/questions/456021/remove-vocals-from-mp3-and-get-only-instrumentals

How can I get the instrumentals only from a file and remove the vocals?

I understand this is called karaoke.

How do I get an Asound-cm106 (USB) sound card to work? https://askubuntu.com/questions/334757/how-do-i-get-an-asound-cm106-usb-sound-card-to-work

I have a USB sound device asound-cm106 which apparently has the cm6206 chipset.

I want to use it because I give the hell up trying to get my built in soundcard to work with my current setup (it was always fine before) I can sudo modprobe snd-hda-intel to get the refusing-to-do-anything built in card to appear in the sound card list but I have been left feeling like a useless idiot trying to figure out my way around this unity thing to try and make the USB device show up short of virgin sacrifice and prayers to dark gods. Clearly sound is a lot more complicated than, say, running my companies Apache servers and coding OO-PHP.

The forums have been unusually unhelpful with every thread having wildly different answers which all seem to consist of downloading stuff, writing epics scripts in sub-voodoo languages, replacing the entire sound stack, patching the kernel or otherwise doing stuff that is so far over my head as to be incomprehensible.

Threads I've found:

All I want is to plug the silly thing in and get sound out of my speakers. Could someone offer me a solution that any fool could follow. You may collect my geek card on your way through.

I am using Ubuntu 12.04 LTS (64bit) with an AMD Phenom(tm) II X2 555 Processor.

Ubuntu 12.04 & Mac Os X - GRUB Rescue prompt SET commands made permanent? https://askubuntu.com/questions/128780/ubuntu-12-04-mac-os-x-grub-rescue-prompt-set-commands-made-permanent

I recently re-installed my Mac OS X partition. This somehow messed up my entire partition scheme it seems.

First I got dropped to the Grub rescue> prompt when trying to boot Ubuntu. I had never having seen it before and help command was not recognized, so I started googling. I ended up reading most of the grub recovery documentation.

I made it boot by using the set command to set root and prefix variable, then loaded normal mode plugin and ran it. It Presented me with the normal grub boot menu, and I booted Ubuntu just fine. As the documentation also states these changes are not permanent and I have to edit /boot/grub/grub.cfg - more specifically it states that I have to ensure variables search, linux and intrd variables.

My problem is with trying to edit this file, my Ubuntu installation fails to reboot. After some wait time, I shut it down the hard way. When I then try to boot again, i'm back at the grub rescue> prompt again...

So to make ubuntu boot I use these commands:

set prefix=(hd0,gpt6)/boot/grub
set root=(hd0,gpt6)
insmod normal
normal -> select ubuntu

When editing /boot/grub/grub.cfg the section I'm supposed to edit I edit like this (I think it's the search line making the screw up, but i cannot figure out what i may delete):

EDIT: REMOVED LINES TO MAKE THE EDITED LINES MORE READABLE!

Unedited entry :

set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root ebba50e2-d298-4764-afb5-463c47532158
linux   /boot/vmlinuz-3.2.0-23-generic root=UUID=ebba50e2-d298-4764-afb5-463c47532158 ro acpi_backlight=vendor acpi_osi=Linux  quiet splash pcie_aspm=force $vt_handoff
    initrd  /boot/initrd.img-3.2.0-23-generic

EDITED entry:

set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root ebba50e2-d298-4764-afb5-463c47532158
echo    'Loading Linux 3.0.0-14-generic ...'
linux   /boot/vmlinuz-3.0.0-14-generic root=/dev/sda6 ro acpi_backlight=vendor acpi_osi=Linux
echo    'Loading initial ramdisk ...'
initrd  /boot/initrd.img-3.0.0-14-generic

I think that I edited the last section in (the Ubuntu recovery menu entry) correctly. The first entry looks (Ubuntu normal mode) like the grub.cfg file itself wants it to look ? which is correct? My question now is, is this change correct? - And will I have to do the same for every menu entry? ;)

NB. after this not working I tried sudo grub-install /dev/sda6 - but I get an error saying this is a partition, and embedding is not supported - this is noob info since I have not researched this part enough yet, just thought it might bring some useful information..

How to use integrated Intel graphics instead of Nvidia graphics on MacBook Pro? https://askubuntu.com/questions/126862/how-to-use-integrated-intel-graphics-instead-of-nvidia-graphics-on-macbook-pro

I am running Ubuntu 12.04 64bit on MacBook Pro 15" 2010 (MacBookPro6,2) and I would like to use the integrated Intel graphics instead of the dedicated Nvidia graphics Ubuntu boots with on this machine.

I am booting with UEFI, not REFIT or similar. I managed to switch to UEFI with the help of this page.

This wiki page also contains tips on switching to Intel graphics which include some (for me) cryptic boot commands to grub. However if I follow the guide, my display stays just black.

Currently, I am only looking for solution to use Intel graphics for Ubuntu to save power and keep my MacBook cool. Dynamic switching or stuff like that is not required.