How to prevent Ubuntu 25.10 from waking up from suspend when I close the laptop lid? https://askubuntu.com/questions/1560258/how-to-prevent-ubuntu-25-10-from-waking-up-from-suspend-when-i-close-the-laptop

I think this is a new feature, I can enter suspend on my Lenovo ThinkPad P14s either via GUI menu or:

sudo systemctl suspend -f

I know it is suspended because when in suspend the LED blinks slowly.

But then if I close the lid it wakes up! So if I suspend and close to put it into my backup, it wakes up.

I think I have tried everything from How can I tell Ubuntu to do nothing when I close my laptop lid? but nothing helped including:

sed -i '/HandleLidSwitch/d' /etc/systemd/logind.conf >/dev/null 1&>2
echo 'HandleLidSwitch=ignore' >> /etc/systemd/logind.conf >/dev/null 1&>2
sed -i '/IgnoreLid/d' /etc/UPower/UPower.conf >/dev/null 1&>2
echo 'IgnoreLid=true'>> /etc/UPower/UPower.conf

followed by reboot.

Logs after I start suspend: https://gist.github.com/cirosantilli/dfe4082c1cfd2b50d92638732cc84ce5

Shame that after all these years they still haveng figured out how to add a working setting for this on the main settings GUI...

Related:

Disable presentation mode for Dolphin, to allow sleep and screen locking https://askubuntu.com/questions/1560257/disable-presentation-mode-for-dolphin-to-allow-sleep-and-screen-locking

Since recently, I have a message "dolphin is currently blocking sleep and screen locking (Running in presentation mode)" that appears on the "battery and brightness" popup in the KDE tray.

I have not been able to find any presentation mode setting anywhere in Dolphin, nor in the docs.

Does anybody know how to deactivate this?

How to install spss in my ubuntu machine https://askubuntu.com/questions/1560254/how-to-install-spss-in-my-ubuntu-machine

I am trying to install IBM SPSS software in my ubununtu machine. But it is not installing. I tried all the alternatives but didn't work. what to do?

Printing Service is not available after software update on 24.04 https://askubuntu.com/questions/1560253/printing-service-is-not-available-after-software-update-on-24-04

After receiving a system wide software update suddenly printing services are not available. At this point, cups appears to be unable to run.

cupsd -t shows an error for unknown directive

JobPrivateAccess on line 137 of /etc/cups/cupsd.conf

By commenting out four lines and restarting cups, my print services seem to be running normally. Those four line have to do with JobPrivateAccess/Values and SubscriptionPrivateAccess/Values all four being set to default

What happened? Also What have I done by commenting those four lines? Is there a more appropriate correction for those four offending lines?

Cannot install or remove packages https://askubuntu.com/questions/1560252/cannot-install-or-remove-packages

I installed some LaTeX packages and then tried to remove them. After that, whenever I try to install or remove anything using apt, I get this error:

fmtutil failed. Output has been stored in /tmp/fmtutil.zrNxVshH.
Please include this file if you report a bug.

dpkg: error processing package tex-common (--configure):
 installed tex-common package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 tex-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can one save "Startup Application Preferences" GUI entries as text files to be loaded on other computers https://askubuntu.com/questions/1560249/can-one-save-startup-application-preferences-gui-entries-as-text-files-to-be-l

One can hit the Super key, and search for "Startup Application Preferences" where one can specify applications that need to run automatically at startup. Below is the interface

enter image description here

On clicking Add, we get the option to add a startup program, provide name, command and comment.

Where are these entries stored behind the scenes on the hard disk? Is it possible to save these file entries and load them on a different computer without having to type out these entries again afresh?

Is there .deb distribution for the latest GnuCash (5.13)? https://askubuntu.com/questions/1560246/is-there-deb-distribution-for-the-latest-gnucash-5-13

I installed on Ubintu 24.04 using
sudo apt-get -y install gnucash
which gave me version 5.5, and this version seems to not work.
Is there a .deb file somewhere that I can get the latest instead?
I don't want to have to build it.

How do I disable MAC address randomization as a whole/fix mt7921e https://askubuntu.com/questions/1560245/how-do-i-disable-mac-address-randomization-as-a-whole-fix-mt7921e

I am using Ubuntu 24.04.3 LTS and have had trouble with the Wifi driver, mt7921e. It is installed but has issues that cause Ubuntu to say that there is 'no Wifi driver available'

Following the recommendation of others, I have disabled Fast Boot on the BIOS (There are relevant no Wifi related options), used USB-Tethering to gain temporary Internet access and update my system and kernel, but neither of these things worked.

The last thing I have in mind to try is disabling MAC address randomization, but what I've found and tried hasn't worked. What is the surefire way to disable MAC address randomization and, ideally, fix the driver issue?

Change passwords on login https://askubuntu.com/questions/1560234/change-passwords-on-login

I am trying to force a user to change their password every time they log in. For example, if it is their first login, they will be asked for a new password, and when they log out and try to log back in, they will have to change their password again.

Why does restoring from hibernation goes to login screen, not lockscreen https://askubuntu.com/questions/1560094/why-does-restoring-from-hibernation-goes-to-login-screen-not-lockscreen

using "lockscreen extension" to customize my lock screen - looks and runs GREAT with Linux 6.8.0-85-generic kernel, but every other kernel since then (6.8.0-86, 6.8.0-87, and latest 6.8.0-88) restoring goes to the grub-customizer fancy login screen instead (bummer) ~ WHY?

All the newer kernels do fine resuming from suspend and going to my fancy lock screen, just restoring using them has this weird 'BUG'.

The other 'BUG' these newer kernels seem to be afflicted with is when restoring, my USB wifi gets rerouted (from router) to the one my PCI wifi uses (an extender) - normally this only happens upon initial boot, even with my favorite Linux 6.8.0-85-generic kernel. But upon restoring it stays with router... but not with newer kernels that reroute it to the extender :-\ They do fine leaving it alone resuming...

assumed it would be understood based on kernels used 24.04lts and kernels are indicated above... 'flavor'? like wayland? Other kernels that 'worked well' was 6.8.0-53, 6.8.0-79 and 6.8.0-84 - no issues with those...

I read askubuntu.com/help/how-to-ask and took the tour - so, couldn't find anything 'violated'... what gives? ...such zeal to close ~ wow!

should I just use forum.linuxconfig.org instead of askubuntu?

Ubuntu 24.04.3 LTS on VirtualBox VM gives error ID:BLKCACHE_IOERR when creating new partition in free space https://askubuntu.com/questions/1560070/ubuntu-24-04-3-lts-on-virtualbox-vm-gives-error-idblkcache-ioerr-when-creating

I have a VM (VirtualBox) I use for school and need to install a new program. My VM ran out of space so I increased the storage size (from 25gb to 50gb). I saw this did nothing at first and learned I had to add a partition in the VM to use the new space, but when I attempt to I get an error message and the VM is paused. (I am using the Disks program to add the partition and have also tried using the erase data option when creating the partition)

An error has occurred during virtual machine execution! The error details are shown below. You may try to correct the error and resume the virtual machine execution. The I/O cache encountered an error while updating data in medium "ahci-0-0" (rc=VERR_INVALID_PARAMETER). Make sure there is enough free space on the disk and that the disk is working properly. Operation can be resumed afterwards. Error ID:BLKCACHE_IOERR Severity:Non-Fatal Error - Google Search

I have no idea how to proceed as from what I can find this is telling me my host lacks the space but I have 477gb free. It seems to want me to handle this on my host as unpausing makes the error appear again and the VM gets paused.

In my sporadic tests and constant turning off and on of the VM I did have some states where the partition appeared to be added but was unusable. I also had times where I had to choose to boot ubuntu instead of just being met with the login screen. I have stopped trying to get this to work out of fear of breaking my VM and loosing my schoolwork so far. If it has any impact I have a few snapshots of the VM and have reverted to the last snapshot a few times when trying to get this to work.

This is my first VM and I was unable to find helpful info online as people with similar issues are running windows.

How do I properly update Python? https://askubuntu.com/questions/1538584/how-do-i-properly-update-python

I am on Python 3.10 and would like to upgrade to 3.13.1. I have been trying to figure out how to do this, and have managed to get it installed, but it uses the python3.13 alias instead of the python alias.

Ubuntu 22.04 unexpected shutdown https://askubuntu.com/questions/1501335/ubuntu-22-04-unexpected-shutdown

I am using a Lenovo Thinkcentre mini desktop. I upgraded Ubuntu 18.04 to Ubuntu 22.04. Now, once a week, sometimes twice a week, the computer completely shuts down unexpectedly. Naturally, it happens when I am in the middle of some important business.

Based on a suggestion, I ran the following command:

journalctl -b -1 -g 'systemd' -r --no-pager | head -n200 > shutdown.txt

and I have the file.

Can't access windows 10 partition after update to 23.10 https://askubuntu.com/questions/1492900/cant-access-windows-10-partition-after-update-to-23-10

I used to be able to access a separate ssd for windows, but after updating to Ubuntu 23.10 it gives me the following error :

Unable to access location Error mounting /dev/sdb1 at /media/abdelrahman/2A907C5D907C3185: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error

Also there is another partition on that ssd that is accessible without issues.

How to solve this issue without formatting the other drive ?

image of the error msg

Ubuntu 22.04 infrequent random key sticking on Dell G15 5521, that immediately clears on pressing a different key https://askubuntu.com/questions/1446583/ubuntu-22-04-infrequent-random-key-sticking-on-dell-g15-5521-that-immediately-c

Setup:

  • Ubuntu 22.04, clean install.
  • Dell G15 5521 Laptop
  • Latest firmware
  • 6.0.8-060008-generic
  • Nvidia 525.60.11
  • X11 Ubuntu flavour of Gnome

Very randomly and very infrequently (probably once a day for me) a key appears to get stuck and auto-repeats. Pressing any other key stops the auto repeat.

This happens with the default kernel and with 6.0.8.

The problem does not occur on Windows 11. The problem does not occur when running the pre-post keyboard tests (fn key held down when powering on).

The problem occurs on multiple G15 laptops. I have one for work, one for personal use and work has 3 more. All exhibit the same random infrequent problem, but frequently enough to be complained at...

The problem does not always occur when the system is under load. Typing speed does not appear to have any influence on the issue.

dmesg does not show any thing related to keyboard or USB when the issue occurs.

I do not want to turn off key repeat (xset -r).

A bit more information on input devices:

$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ DELL0B56:00 06CB:CE81 Mouse               id=10   [slave  pointer  (2)]
⎜   ↳ DELL0B56:00 06CB:CE81 Touchpad            id=11   [slave  pointer  (2)]
⎜   ↳ PS/2 Generic Mouse                        id=17   [slave  pointer  (2)]
⎜   ↳ Logitech MX Ergo Multi-Device Trackball   id=18   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Video Bus                                 id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Integrated_Webcam_HD: Integrate           id=9    [slave  keyboard (3)]
    ↳ Intel HID 5 button array                  id=12   [slave  keyboard (3)]
    ↳ Intel HID events                          id=13   [slave  keyboard (3)]
    ↳ Dell Privacy Driver                       id=14   [slave  keyboard (3)]
    ↳ Dell WMI hotkeys                          id=15   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=16   [slave  keyboard (3)]

$ uname -a
Linux Dell-G15-Special-Edition-5521 6.0.8-060008-generic #202211101901 SMP PREEMPT_DYNAMIC Thu Nov 10 20:44:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Is there anything I can try to narrow down where this problem is occurring?

I have looked at numerous different posts and questions but the advice is limited.

Edit 20 September 2023

We now have 8 of the Dell G15's, all up to date. All have the same issue.

The problem does not occur when running Windows.

External drive not showing in Dolphin https://askubuntu.com/questions/1439535/external-drive-not-showing-in-dolphin

I'm running Ubuntu 22.04 Desktop system. I have a number of external USB drives that I connect as needed. Usually, on plugging in the drive and powering them up they appear in Nautilus and Dolphin (File Manager) within a few seconds.

One drive however does not appear in Dolphin. It appears in Nautilus and is usable from there, but despite my best efforts of restarting the program and such, it will not show in the Removable Devices list in Dolphin. Other drives do so without problems.

Anyone have any idea how to solve the issue? Thanks.

How do I fix high memory usage on Ubuntu 20.04.3 LTS? https://askubuntu.com/questions/1379148/how-do-i-fix-high-memory-usage-on-ubuntu-20-04-3-lts

Ubuntu 20.04.3 LTS is using a lot of memory, (10.1GB out of 12GB of RAM). The RAM fills up over time and reaches dangerously high levels of usage, even when I am using only 2 applications.

I've tried to follow the other suggestions posted on this forum about similar issues. I've run htop and top but they don't return useful information, ie it shows Chrome and Discord using the most amount of RAM - just 2-4% each. Java, MySQL, Apache, I've read are usually the culprits of high RAM usage, but Java isn't even running, and the other listed processes are barely using 0.1% of RAM.

Another thing I've noticed is, upon closing Chrome, the memory usage instantly drops from 10.1GB to only 1.7-2GB of usage. I dont understand this because according to htop, Chrome is using only 2% or so of memory.

2-4% should not be hogging up the entire memory, so I ran free -m and found out that buff/cache and shared usage is very high - 8.8GB and 7.2GB respectively. What are these and why are they using up so much memory? The system freezes and behaves very slowly during use. CPU usage is not very high either - hitting a max of 22% occasionally.

Here are my free -m results

free -m

On opening System Monitor,

System Monitor

My htop and top results respectively,

htop

top

As mentioned before, I'm running Ubuntu 20.04.3 LTS. Kernel version is 5.11.0-41-generic

Please help. My computer is becoming increasingly difficult to use.

Route traffic from host to docker container permanently https://askubuntu.com/questions/1328411/route-traffic-from-host-to-docker-container-permanently

I need to route the traffic destinated to 10.0.0.0/16 to a container (172.17.0.2).

I'm able to do it once everything is running using ip route add 10.0.0.0/16 via 172.17.0.2 and everyting is working as expected.

However, how can I make it persistent to reboot?

I tried using nmcli but it seems docker recreate a docker0 connection with another uuid wich doesn't keep the settings

$ nmcli con show docker0 | grep 'ipv4.routes\|uuid\|interface-name'
connection.uuid:                        b7dc86cd-2025-4288-bf3b-2535f2d0ee3c
connection.interface-name:              docker0
ipv4.routes:                            { ip = 10.0.0.0/16, nh = 172.17.0.2 }
connection.uuid:                        d0ea574b-3849-4eea-80e2-07406f68ae0e
connection.interface-name:              docker0
ipv4.routes:                            --

(PS: I can't use netplan)

Thanks!

Showing <urlopen error [Errno 111] Connection refused> not able to use localhost for multiple applications! https://askubuntu.com/questions/1141267/showing-urlopen-error-errno-111-connection-refused-not-able-to-use-localhost

I have been unable to install a number of applications including anaconda and druid on my ubuntu 16.04 system because whenever they try to open a url using localhost it flashes a message: urlopen error [Errno 111] Connection refused

I am unable to even use curl as whenever I try something like,

curl -X OST' -H 'Content-Type:application/json' -d @quickstart/tutorial/wikipedia-index.json http://localhost:8090/druid/indexer/v1/task

It flashes the message: curl: (7) Failed to connect to localhost port 8090: Connection refused

As this problem has propagated across multiple applications I think there is some problem with my localhost and ports connection. I really need help, I'm not able to do anything on ubuntu!

Cannot install RTX 2080 Ti in Ubuntu 18.04 LTS https://askubuntu.com/questions/1134168/cannot-install-rtx-2080-ti-in-ubuntu-18-04-lts

Cannot install Nvidia driver for RTX 2080 Ti in Ubuntu 18.04 LTS !!!!

I am trying to install nvidia driver with RTX 2080 Ti in Ubuntu 18.04 LTS

After Installing nvidia-driver (version 418.57) , the system will not boot . The following output comes and the screen stays blinking :

[code]/dev/sda4: recovering journal /dev/sda4: clean, some numbers / some numbers file, some numbers / some numbers blocks [/code]

Output after boot and the following screen blinks and get stuck

Please find the nvidia-bug report in following link https://b24-2wuuf9.bitrix24.com/~XxAYb

Output of following commands are :

lspci |grep -i nvidia

[code]65:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti Rev. A] (rev a1) 65:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio Controller (rev a1) 65:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Controller (rev a1) 65:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU102 UCSI Controller (rev a1)[/code]

uname -m && cat /etc/*release

[code]x86_64 DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS" NAME="Ubuntu" VERSION="18.04.2 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.2 LTS" VERSION_ID="18.04" 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" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic[/code]

gcc --version

[code]gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.[/code]

uname -r

[code]4.18.0-15-generic[/code]

I tried installing Nvidia driver through two different following methods :

Using PPA :

sudo add-apt-repository ppa:graphics-drivers/ppa sudo ubuntu-drivers autoinstall sudo apt install nvidia-418

Also through Nvidia site directly :

downloaded the display driver for Linux from https://www.nvidia.com/download/driverResults.aspx/138279/en-us

chmod +x NVIDIA-Linux-x86_64–410.57.run

sudo ./NVIDIA-Linux-x86_64–410.57.run --no-x-check


In both cases the result is same and the system would not boot and gets stuck at the error mentioned before .


Configuring a VNC Desktop: Upgrading GUI from classic gnome desktop to newest gnome desktop https://askubuntu.com/questions/1097566/configuring-a-vnc-desktop-upgrading-gui-from-classic-gnome-desktop-to-newest-gn

I have a vnc system, I was able to build. It leverages the classic gnome desktop GUI.

enter image description here

I would like to upgrade the .vnc/xstartups file, to use the newest Gnome Desktop Environment. The Ubuntu Gnome Desktop featured as the official Ubuntu 18.04 desktop.

Here is my current ~/.vnc/xstartups file.

#!/bin/sh

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-session &
gnome-panel &
gnome-settings-daemon &
metacity &
gnome-terminal &

Thank you, please keep the comments and answer to the topic.

  • This question assumes a working VNC connection, with no errors.
  • This question is specific, as in no question to the purpose of this is necessary, I believe it's clear that the point is to have a newer GUI desktop environment.
  • If you don't know (A.K.A. "It's not possible"), join the club. Let's wait, for the person who does know how, to give the answer.

Any help is appreciated.

Allow port 53 for a DNS server https://askubuntu.com/questions/1059182/allow-port-53-for-a-dns-server

I am trying to use my ubuntu machine as DNS server. I have installed the bind 9 package.

I am using dig to check the DNS server. However I am getting a ICMP type 3 code 3 message on the client.

This is the message for an unavailable port. However port 53 is listening for DNS connections.

Here is output for UFW.

root@server:/etc/bind# ufw status
Status: active

To                         Action      From
--                         ------      ----
80                         ALLOW       Anywhere
20/tcp                     ALLOW       Anywhere
21/tcp                     ALLOW       Anywhere
22                         ALLOW       Anywhere
443                        ALLOW       Anywhere
Anywhere                   ALLOW       20.20.20.0/24
20                         ALLOW       Anywhere
514                        ALLOW       Anywhere
Anywhere                   ALLOW       21.21.21.0/24
554                        ALLOW       Anywhere
53                         ALLOW       Anywhere
80 (v6)                    ALLOW       Anywhere (v6)
20/tcp (v6)                ALLOW       Anywhere (v6)
21/tcp (v6)                ALLOW       Anywhere (v6)
22 (v6)                    ALLOW       Anywhere (v6)
443 (v6)                   ALLOW       Anywhere (v6)
20 (v6)                    ALLOW       Anywhere (v6)
514 (v6)                   ALLOW       Anywhere (v6)
554 (v6)                   ALLOW       Anywhere (v6)
53 (v6)                    ALLOW       Anywhere (v6)

20.20.20.0/24 is the subnet of the client, and I am allowing all packets from that subnet.

Here is the output of netstat:

root@server:/etc/bind# netstat -nlpu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
udp        0      0 0.0.0.0:51139           0.0.0.0:*                           913/avahi-daemon: r
udp     6144      0 127.0.1.1:53            0.0.0.0:*                           1236/dnsmasq
udp        0      0 0.0.0.0:69              0.0.0.0:*                           1427/in.tftpd
udp     2176      0 0.0.0.0:53671           0.0.0.0:*                           1236/dnsmasq
udp        0      0 0.0.0.0:514             0.0.0.0:*                           918/rsyslogd
udp        0      0 0.0.0.0:631             0.0.0.0:*                           1165/cups-browsed
udp    14848      0 0.0.0.0:5353            0.0.0.0:*                           913/avahi-daemon: r
udp6       0      0 :::69                   :::*                                1427/in.tftpd
udp6       0      0 :::45412                :::*                                913/avahi-daemon: r
udp6       0      0 :::514                  :::*                                918/rsyslogd
udp6   17152      0 :::5353                 :::*                                913/avahi-daemon: r

Port 53 is on listening on localhost. Could that be the issue ?

Edit---

The bind9 config file is set up to listen on port 53 for remote IP addresses.

named.conf

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";


forwarders {
                8.8.8.8;
                8.8.4.4;
           };

listen-on port 53 { 127.0.0.1; 21.21.21.1; };

allow-query { 127.0.0.1; 20.20.20.0/24; };

zone "1.168.192.in-addr.arpa" {
        type master;
        file "/etc/bind/db.192";
};
~

Thanks

How to get screen output from a background python program https://askubuntu.com/questions/949467/how-to-get-screen-output-from-a-background-python-program

I'm running a home heating system monitor on a BeagleBoard xM (arm7) using Ubuntu 16.04.2 and Python 2.7.12. My Python program auto runs on boot via a cron job. The board runs headless. I access it using WinSCP to get my data file and Putty to check on things.

Everything is working fine, but I would like to have my current sensor readings auto print to a screen. I'm not sure how to do this, since my program runs headless in the background.

By screen, I mean either a small hdmi monitor I could attach to the board (in which case it would be in a different session without a keyboard) or a new terminal session I would start via Putty.

So, my question is there a way to get screen output from a background program automatically to a screen in a different terminal session?

How can I add drives to increase the capacity of a software raid 5 without losing data? https://askubuntu.com/questions/690751/how-can-i-add-drives-to-increase-the-capacity-of-a-software-raid-5-without-losin

So I built a server for all my media streaming and storage needs. It's got three 3TB WD Reds in it configured in a RAID 5. I'm running Ubuntu 14.04.4 LTS. I had a friend set up the raid for me (I'm not too Linux savvy) about a year ago. Well, I'm running low on space. So I bought 3 more WD reds, same size to add to this machine. The motherboard supports up to 6 drives so that should be good (Ubuntu is running off a thumb drive). I have backed up everything critical (pictures and home movies). If I lose the rest of the data I'll be sad and have lost a LOT of work but it won't be the end of the world. Still, if there's a way to add these new drives to the array without losing everything that'd be great. Can anyone point me to an idiot's guide? Thanks! Any questions about the setup just let me know!

How do I install a different Python version using apt-get? https://askubuntu.com/questions/682869/how-do-i-install-a-different-python-version-using-apt-get

How can I install a different version of Python using apt-get?

Obviously I realise I can install using the source tar ball, however I would prefer not to install from source and instead use the package manager, as that's what it's there for. Surely somewhere reputable builds .deb files for the latest Python releases (why python.org don't is beyond me) that I can reference.

What do I need to do to reference them and what issues might it create when upgrading to the next version?

If there is no way except for building from source, is there a (pseudo) package that I can can install that will provide all of the dependencies needed without having to find and install each individually? So that I don't get:

The necessary bits to build these optional modules were not found:
_bz2                  _curses               _curses_panel      
_dbm                  _gdbm                 _lzma              
_sqlite3              _ssl                  _tkinter           
readline              zlib  
How do I use the latest GCC on Ubuntu? https://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu

I want to compile my program with the latest version of gcc.

Ubuntu 14.04 comes with gcc 4.8.2, however there's 4.9.0 available, moreover, I see that it is available as a package: gcc-4.9. I tried to install it

sudo apt-get install gcc-4.9

but it says

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'gcc-4.9-base' for regex 'gcc-4.9'
gcc-4.9-base is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Looks like it is already installed, just not as the default one? How do I utilize it to build my program?

How to add Active Directory users as sudoers https://askubuntu.com/questions/455265/how-to-add-active-directory-users-as-sudoers

I'm following this article. What I've done:

  • I can connect to Active Directory
  • I can login to the Active Directory

Now what I'm looking for is a way to make any active directory user a sudoer. I'm using Ubuntu 14.04 and Active Directory 2008r2

How do I prevent immediate wake up from suspend and/or hibernation from PCI devices? https://askubuntu.com/questions/148481/how-do-i-prevent-immediate-wake-up-from-suspend-and-or-hibernation-from-pci-devi

For a few days, my Ubuntu 12.04 desktop computer has mysteriously been waking up immediately after going to suspend mode.

Since installation, my Ubuntu 12.10 laptop computer has also been resuming immediately after suspend and hibernation.

How to prevent those?

Related:

How can I tell Ubuntu to do nothing when I close my laptop lid? https://askubuntu.com/questions/15520/how-can-i-tell-ubuntu-to-do-nothing-when-i-close-my-laptop-lid

I would like closing the laptop lid to be a no-op. How can I do that?

How can I suspend/hibernate from command line? https://askubuntu.com/questions/1792/how-can-i-suspend-hibernate-from-command-line

How can I suspend or hibernate my laptop using command line, without installing additional software?