Install Cacti server https://askubuntu.com/questions/1562890/install-cacti-server

I inherited a server on which there was installed an old Cacti server Version 0.8.8a. Now I have the task of creating a new cacti server with the newest version. Does anyone have any experience whether it is easier to create a new server or to move the old one? I don't have any experience. I believe that it would be easier to start from the new one. Does anyone have manual instruction of installation? I will use Ubuntu Server for it.

MicroCloud/LXD: Offline cluster memberFailed https://askubuntu.com/questions/1562887/microcloud-lxd-offline-cluster-memberfailed

I have a 3-node LXD cluster where the workload is currently negligible (only a single VM has been commissioned so far). However, I’m seeing repeated warnings for both non-leader nodes in the UI:

Offline cluster memberFailed to send heartbeat request: Put “https://:8443/internal/database”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Questions:

  1. Is there existing documentation or notes on investigating heartbeat timeouts in an LXD cluster?
  2. Any recommended starting points for debugging (networking, DB sync, certs, time drift, etc)?
  3. Could this be harmless under low load, or does it indicate an underlying connectivity issue?

Environment:

Cluster size: 3 nodes Nodes: 1 leader, 2 non-leaders Workload: minimal (1 VM)

Errors are intermittent and infrequent

Any advice, troubleshooting steps, or relevant references would be appreciated. Thanks!

Ubuntu user unable to login even though password is correct https://askubuntu.com/questions/1562886/ubuntu-user-unable-to-login-even-though-password-is-correct
2026-01-15 10:25:18 Looking up host "" for SSH connection
2026-01-15 10:25:18 Connecting to  port 22
2026-01-15 10:25:18 We claim version: SSH-2.0-PuTTY_Release_0.81
2026-01-15 10:25:18 Connected to
2026-01-15 10:25:18 Remote version: SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.13
2026-01-15 10:25:18 Using SSH protocol version 2
2026-01-15 10:25:18 No GSSAPI security context available
2026-01-15 10:25:18 Enabling strict key exchange semantics
2026-01-15 10:25:18 Doing ECDH key exchange with curve nistp256, using hash SHA-256 (unaccelerated)
2026-01-15 10:25:18 Server also has ssh-rsa host key, but we don't know it
2026-01-15 10:25:18 Host key fingerprint is:
2026-01-15 10:25:18 ecdsa-sha2-nistp256 256 SHA256:618XI+4Ui1JcLd/uv394rJ7hmbdbOERMZXefnRs24vQ
2026-01-15 10:25:18 Initialised AES-256 SDCTR (AES-NI accelerated) outbound encryption
2026-01-15 10:25:18 Initialised HMAC-SHA-256 (unaccelerated) outbound MAC algorithm
2026-01-15 10:25:18 Initialised AES-256 SDCTR (AES-NI accelerated) inbound encryption
2026-01-15 10:25:18 Initialised HMAC-SHA-256 (unaccelerated) inbound MAC algorithm
2026-01-15 10:25:42 Sent password
2026-01-15 10:25:44 Password authentication failed
2026-01-15 10:26:17 Remote side unexpectedly closed network connection
I logged out during a system upgrade from Ubuntu 20.04 to 22.04 https://askubuntu.com/questions/1562885/i-logged-out-during-a-system-upgrade-from-ubuntu-20-04-to-22-04

I recently tried to upgrade my Ubuntu system from the 20.04 to the 22.04 release, however while the upgrade was running, I logged out of my session as I had to leave my laptop at work overnight to complete the upgrade.

I am now stuck on the login screen. Either I get an authentication error without being able to enter my password or entering my password results in a yet endless loading.

I have previously experienced a login loop, which I managed to escape by reinstalling the display manager and rebooting my computer, however I am afraid that rebooting during a system upgrade breaks it.

If I remember correctly, I ran the upgrade through sudo apt update, sudo apt upgrade, sudo apt dist-upgrade, sudo apt-get autoremove and lastly sudo do-release-update, after some tweaking in the sources.list to comment out inaccessible links.

How to pass on env variables to .desktop file for a flatpak application? https://askubuntu.com/questions/1562883/how-to-pass-on-env-variables-to-desktop-file-for-a-flatpak-application

GNOME 42.9
X11 (thanks, Nvidia..)

I need to pass on an env variable inside a starter file for a specific flatpak application Fractal. Due to the Great Firewall of China, I need to use a SOCKS5 in order to access Matrix servers. I have copied the .desktop file over to .local/share/applications as usual, and tried to edit the Exec=... part accordingly.

When I run the flatpak application from terminal with the variable passed on, there is no problem and it runs fine: flatpak run --env=all_proxy=socks5h://127.0.0.1:8080 org.gnome.Fractal

Yet all my attempts to rewrite the Exec command in the desktop file do not yield any success. The application would start, but it apparently ignores the proxy. (It gets stuck at retrieving server side info)

Now, look at my pathetic attempts to somehow convince flatpak to at least consider my suggestion to go through the proxy. I have no clue about flatpak, what it isolates, which parties it launches inside of its container, and where it generously would use env variables.

Exec=fractal %U # initial start command
# failed pathetic attempts
Exec=env all_proxy=socks5h://127.0.0.1:8080 fractal %U
Exec=env all_proxy=socks5h://127.0.0.1:8080 org.gnome.Fractal
Exec=env ALL_PROXY=socks5h://127.0.0.1:8080 org.gnome.Fractal
Exec=flatpak run --env=all_proxy=socks5h://127.0.0.1:8080 org.gnome.Fractal
Exec=flatpak run --env=all_proxy=socks5h://127.0.0.1:8080 org.gnome.Fractal %U

I had followed another tutorial to create an .sh file to pass on the env variables and launch the application, calling it in the .desktop file to no avail:

# .desktop
Exec=/home/$USER/HereBeDragons.sh

# HereBeDragons.sh; 775; +x

#!/bin/sh
#export all_proxy=socks5h://127.0.0.1:8080
export ALL_PROXY=socks5h://127.0.0.1:8080
#exec /var/lib/flatpak/app/org.gnome.Fractal/current/active/files/bin/fractal "$@"
exec flatpak run org.gnome.Fractal "$@"

I do not want all my traffic going through this proxy, only this application. The proxy is intentionally not configured systemwide.

GPU randomly stops output https://askubuntu.com/questions/1562881/gpu-randomly-stops-output

I've been having this problem with 20.04.3 LTS as well as 25.10. My GPU seems to randomly stop outputting to the monitor as either the screen freezes up or the monitor reports no signal and goes blank. I have an XFX Radeon HD 7870 on ASUS TUF Gaming X-570-Plus WiFi motherboard with Ryzen 5600X. This issue has been on going for quite a while and was getting progressively worse recently to where it happened more and more often.

I took out the GPU a couple of times and vacuumed it because I thought maybe it was getting clogged with dust and that seemed to help and get it to work for a while, then it would fail - maybe only a month later, so that probably wasn't it. Hardinfo and Hardinfo2 does not report excessively high GPU temperatures (44° C) as I write this.

I assumed since the GPU is fairly old, maybe it was failing, and bought a brand new GeForce RTX 5050 GPU, but could not get that to work neither with 20.04.03 LTS nor 25.10 or even a live Ubuntu install stick with 25.10, so reverted to the old GPU last week, but then it started failing again this week. I built my system 5 years ago with the old GPU and didn't have problems with it freezing up until maybe the last 2 years, so don't think it's a driver issue.

Ubuntu 24.04 broken graphics and menu https://askubuntu.com/questions/1562880/ubuntu-24-04-broken-graphics-and-menu

My Ubuntu 24.04 just broke down. I'm installing Ubuntu on my external SSD and after updating the NVIDIA driver on my other laptop the animations are broken and the menu only shows power mode and dark style, no WiFi, Bluetooth and other selections. It also acts the same when switching the laptop.

GNOME Builder source code browser? https://askubuntu.com/questions/1562877/gnome-builder-source-code-browser

Does GNOME Builder have a source code browser (sometimes referred to a Symbols View)?

I would like to see the variables and functions in my Python file listed in the left panel. Clicking on an item in the panel should scroll my file in the right panel to the place in where the variable or function is defined.

Full upgrade to Ubuntu 24.04 on an HP Pavilion Desktop resulted in Disk Full errors and an immediate shutdown https://askubuntu.com/questions/1562873/full-upgrade-to-ubuntu-24-04-on-an-hp-pavilion-desktop-resulted-in-disk-full-err

I own a Pavilion HP desktop with Windows 10. I removed Windows 10 with Ubuntu 20.04 from a CD disk. worked well, so I used terminal commands to upgrade to Ubuntu 22.04. I tested this and worked with it for a sort time, then used terminal commands to upgrade to Ubuntu 24.04. The uploads and install appeared to work fine, but when I restarted to boot into Ubuntu 24.04 for the first time, I got the following error messages:

Could not create MokListRT: Volume Full
Could not create MokListXRF: Volume Full
Could not create SbatLevelRT: Volume Full
Could not create MokListTrustedRT: Volume Full
Something has gone seriously wrong: import_mok_state() failed: Volume Full

The computer shuts down a few seconds later.

The hard drive has 2TB space and I can't believe it's full. I attempted to do a full reinstall with Ubuntu 20.04 from a CD which I have done before, but this time I got the above errors again after restart to boot into the freshly loaded system. It did not happen the first time I installed Ubuntu 20.04 from a CD. I am truly stuck now.

KDE fullscreen issue https://askubuntu.com/questions/1562872/kde-fullscreen-issue

Specs:

   Kubuntu 24.04
   KDE Plasma version: 5.27.12
   Kernel version: 6.14.0-37generic (64-bit)
   Display server: X11
   Monitors count: 2

1- Dell TS35505

2- Built-in screen (Thinkpad)

The issue started when I removed GNOME packages as I recently switched to KDE Plasma and I wanted to free up some space as I will not be using them anymore. I ran:

sudo apt remove gnome-shell gnome-session gnome-settings-daemon gnome-control-center nautilus evolution gnome-terminal gnome-software libgnome\* gtk3-engines-unico

Then all of the sudden random fullscreen behavior on the active screen, for example if I'm on the terminal (Kconsole) not fullscreen as im typing normally it full screens for no reason. The same thing happens in other apps like brave browser and on the other screen.

Steps taken:

  1. Restarted my machine.
  2. Tried sudo apt install --fix-broken
Unable to connect to home wifi (some weird hardware issue?) https://askubuntu.com/questions/1562858/unable-to-connect-to-home-wifi-some-weird-hardware-issue

I have a weird situation which I do not understand. I have a router with network (A)lfonz, (P)hone with (H)otstpot, (L)aptop, and (D)esktop. Now:

  • My phone can connect to network Alfonz.

  • My laptop can connect both to Hotspot and network Alfonz.

  • My desktop can connect to Hotspot (and ELRS hotspots), but cannot connect to network Alfonz, neither from Linux nor from Windows.

How can this be? I have Kubuntu 25.10 and the latest TP-Link firmware on my router. I'm super extra sure that password/ssid are correct. I have WPA2 both on hotspots and network Alfonz.

I mean — I can connect to some network using desktops WiFi adapter, just not to router R. And R does not log any attempt of D 'logging in', we were against this, but everyone else can login to that network.

Here are some suspicious lines when looking into: journalctl -f | grep -E "wpa_supplicant|NetworkManager"

led 14 14:54:43 vbDesktop2 wpa_supplicant[1367]: wlp17s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="alfonz-faster" auth_failures=2 duration=20 reason=CONN_FAILED
led 14 14:54:56 vbDesktop2 NetworkManager[1364]: <warn>  [1768398896.2859] device (wlp17s0): Activation: (wifi) association took too long, failing activation
led 14 14:54:56 vbDesktop2 NetworkManager[1364]: <info>  [1768398896.2859] device (wlp17s0): state change: config -> failed (reason 'ssid-not-found', managed-type: 'full')
led 14 15:00:50 vbDesktop2 wpa_supplicant[1367]: MBO: Disable MBO/OCE due to misbehaving AP not having enabled PMF
What to do if accidently made a typo when doing an `echo` to `.bashrc`? https://askubuntu.com/questions/1562853/what-to-do-if-accidently-made-a-typo-when-doing-an-echo-to-bashrc

I accidentally wrote exort instead of export when setting CL_ALL=en_US. What I was trying to do was switch it from Japanese to English, thx ahead!

Here is what I did:

export LANG=en_US.utf8
export LC_ALL=en_US.utf8
echo 'export LANG=en_US.utf8'>>~/.bashrc
echo 'exort LC_ALL=en_US.utf8'>>~/.bashrc
source~/.bashrc
bash: source~/.bashrc: No such file or directory
source ~/.bashrc
bash: 警告: setlocale: LC_ALL: ロケールを変更できません (US.utf8)
exort: command not found
echo 'export LC_ALL=en_US.utf8'>>~/.bashrc
source ~/.bashrc
bash: 警告: setlocale: LC_ALL: ロケールを変更できません (US.utf8)
exort: command not found

How do I fix this?

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 backpack, it wakes up, and then I'm out of battery when I reach my destination. Tragic!

I think I have found a workaround: if I close the lid very quickly after clicking to start suspend, then the sleep stays on. This seems to be because the sleep takes a few seconds to start, so if I close the lid before it starts, the lid close event must happen before the sleep and does not affect it. But I'r really rather avoid this unreliable gymnastic each time!

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:

sudo sed -i '/HandleLidSwitch/d' /etc/systemd/logind.conf
echo 'HandleLidSwitch=ignore' | sudo tee -a /etc/systemd/logind.conf
sudo sed -i '/IgnoreLid/d' /etc/UPower/UPower.conf
echo 'IgnoreLid=true' | sudo tee -a /etc/UPower/UPower.conf

followed by reboot.

I also checked:

$ cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
GPP0      S0    *disabled
GPP1      S4    *disabled
GPP2      S3    *disabled
GPP5      S0    *enabled   pci:0000:00:02.1
GPP6      S4    *enabled   pci:0000:00:02.2
GP11      S4    *disabled
SWUS      S4    *disabled
GP12      S4    *enabled   pci:0000:00:04.1
SWUS      S4    *disabled
XHC0      S3    *enabled   pci:0000:64:00.3
XHC1      S4    *enabled   pci:0000:64:00.4
XHC2      S4    *disabled  pci:0000:66:00.0
NHI0      S3    *disabled
XHC3      S3    *enabled   pci:0000:66:00.3
NHI1      S4    *enabled   pci:0000:66:00.6
XHC4      S3    *enabled   pci:0000:66:00.4
LID       S4    *enabled   platform:PNP0C0D:00
SLPB      S3    *enabled   platform:PNP0C0E:00

and tried to disable them all with:

for d in `awk 'NR>1 && $3=="*enabled"{print $1}' /proc/acpi/wakeup`; do
  printf "$d\n" | sudo tee /proc/acpi/wakeup
done

and:

$ cat /sys/power/mem_sleep
[s2idle]

and it seems that deep sleep is not supported on my system?

$ echo deep | sudo tee /sys/power/mem_sleep
deep
tee: /sys/power/mem_sleep: Invalid argument (os error 22)

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

The problem did not happen on my ThinkPad P51 on a fresh 25.10 install from ISO.

Related:

Clean install Ubuntu 24.04 is stuck on a black screen boot loop https://askubuntu.com/questions/1543192/clean-install-ubuntu-24-04-is-stuck-on-a-black-screen-boot-loop

After I got the prompt to remove the USB drive and pressed Enter, this error message pops for a split second on the upper left corner of a black screen.

[10396.882335] blk_print_req_error: 25 callbacks suppressed
[10396.882341] I/O error, dev loop0, sector 20254 op 0x0:(READ) flags 0x800 phys
_seg 10 prio class 0
[10396.882369] SQUASHFS error: Failed to read block 0x9e3ff0: -5
[10396.882372] SQUASHFS error: Unable to read fragment cache entry [9e3ff0]
[10396.882379] SQUASHFS error: Unable to read fragment cache entry [9e3ff0]
[10396.882380] SQUASHFS error: Unable to read page, block 9e3ff0, size 8024
[10397.145031] shutdown[1]: Could not detach loopback /dev/loop2: Device or resource
[10397.145112] shutdown[1]: Could not detach loopback /dev/loop1: Device or resource
[10397.151177] shutdown[1]: Unable to finalize remaining loop devices, ignoring.

After this the laptop just gets stuck on a permanent black screen loop of restarting into a black screen.

I also tried dual booting with Windows. After the installation is finished the boot just ignores Ubuntu and jumps straight into Windows even if I manually select Ubuntu from the BIOS boot menu screen (F12).

Black screen on boot: can I use 24.04 without permanent "nomodeset" https://askubuntu.com/questions/1511762/black-screen-on-boot-can-i-use-24-04-without-permanent-nomodeset

I have a HP 17-cp1147ng notebook from the end of 2022.

I've just installed Kubuntu 24.04 on it.

I get a black screen after the HP logo on starting up (first time).

I followed this advice (section "Black/purple screen after you boot Ubuntu for the first time"): My computer boots to a black screen, what options do I have to fix it?

[An important edit: with (U)EFI-installed systems press the ESC key upon starting, not the SHIFT or RIGHT SHIFT as mentioned in this advice; SHIFT is for old BIOS installations).

It worked (once). So I followed the advice specified there, and went to: How do I set 'nomodeset' after I've already installed Ubuntu? (don't forget to update Grub after editing the file, folks; I forgot and spent some time looking for the problem on rebooting).

The notebook is going to go to someone else. The fix might get undone, leaving just a black screen.

Can I, for instance, update the graphics driver (AMD Radeon Graphics)?

Most help pages on the "nomodeset" problem seemed to be very old (2018 etc.) or were some complex dual boot setup.

I installed only Kubuntu on the entire hard disc, with no bells and whistles. The graphics GPU must also be at least 1.5 years old (sorry, I specified "end of 2023" at first; I've corrected that to "end of 2022", 1.5 years ago).

amdgpu is installed, I checked that.

And, by the way, the notebook worked "out of the box" with the same Kubuntu 22.04 setup. No black screen there. Seems to be a kind of regression.

Any absolutely permanent solution?

Additional hardware information:

Results of lspci -v | less:

VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo (rev c2) (prog-if 00 [VGA controller])
        DeviceName: AMD Radeon Integrated Graphics
        Subsystem: Hewlett-Packard Company Barcelo
        Flags: bus master, fast devsel, latency 0, IRQ 255, IOMMU group 11
        Memory at fce0000000 (64-bit, prefetchable) [size=256M]
        Memory at fcf0000000 (64-bit, prefetchable) [size=2M]
        I/O ports at 1000 [disabled] [size=256]
        Memory at d0400000 (32-bit, non-prefetchable) [size=512K]
        Capabilities: <access denied>
        Kernel modules: amdgpu

Results of sudo dmidecode -s bios-version:

F.03
Ubuntu starts in emergency mode every time I turn on my PC https://askubuntu.com/questions/1403275/ubuntu-starts-in-emergency-mode-every-time-i-turn-on-my-pc

Every time I start Ubuntu 21.10 it goes into emergency mode. I have already tried to do in fsck.ext4 -y /dev/sdb3 and nothing keeps entering that mode that bothers me.

Linux: clean, 1363248/28057600 files, 68026124/112212224 blocks   
You are in emergency mode. After logging in, type "journalctl -xb" to view  
system logs, "systemctl reboot" to reboot, "systemctl default" or "exit"  
to boot into default mode.  
Press Enter for maintenance.  
(or press Control-D to continue.)  
Get the color of a cell through a LibreOffice Calc formula https://askubuntu.com/questions/1372420/get-the-color-of-a-cell-through-a-libreoffice-calc-formula

I would like to get the color (background or foreground) of a particular cell in a formula (in LIBREOFFICE CALC) so that the result depends on that color.

I would be grateful for tips on how to accomplish this.

input/output error with external hard drive https://askubuntu.com/questions/1293335/input-output-error-with-external-hard-drive

I have a problem with my backup external drive. Can you help please ?

EDIT I ran chkdsk from a windows machine. There messages with sectors issues. Now I still have the display below with "?" when I list the directories from my linux machine. Is it possible to retrieve what's in BackupsmonPC ??

ro:LACIEBIG$ ll
ls: cannot access '.Trashes': Input/output error
ls: cannot access 'BackupsmonPC': Input/output error
ls: cannot access 'Results': Input/output error
total 42M
d????????? ? ?       ?          ?              ? BackupsmonPC
-rwxrwxrwx 1 louisro louisro  16K mars   8  2013 .DS_Store
drwxrwxrwx 1 louisro louisro 4,0K nov.  23  2019 MarieCas
drwxrwxrwx 1 louisro louisro 4,0K juin  27  2008 photos Digues StJean
drwxrwxrwx 1 louisro louisro  42M févr. 19  2013 recupSite
d????????? ? ?       ?          ?              ? Results
-rwxrwxrwx 1 louisro louisro   36 mars   8  2013 syncguid.dat
drwxrwxrwx 1 louisro louisro 4,0K févr.  4  2009 System Volume Information
drwxrwxrwx 1 louisro louisro    0 juin  24  2014 .Trash-1000
d????????? ? ?       ?          ?              ? .Trashes
-rwxrwxrwx 1 louisro louisro 4,0K mars   8  2013 ._.Trashes

The drive is in NTFS format.

Ntfsfix doens't see the drive:

ro$ sudo ntfsfix /dev/sdd
Failed to determine whether /dev/sdd is mounted: No such file or directory
Mounting volume... Failed to access '/dev/sdd': No such file or directory
Error opening '/dev/sdd': No such file or directory
FAILED
Attempting to correct errors... Failed to access '/dev/sdd': No such file or directory
Error opening '/dev/sdd': No such file or directory
FAILED
Failed to startup volume: No such file or directory
Failed to access '/dev/sdd': No such file or directory
Error opening '/dev/sdd': No such file or directory
Volume is corrupt. You should run chkdsk.

EDIT I ran this test:

ro:LACIEBIG$ sudo smartctl -a /dev/sdb -d sat
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-193-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     SAMSUNG SpinPoint T166
Device Model:     SAMSUNG HD501LJ
Serial Number:    S0MUJ13P709421
LU WWN Device Id: 5 0000f0 01b709421
Firmware Version: CR100-10
User Capacity:    500 107 862 016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 3b
SATA Version is:  SATA 2.5, 3.0 Gb/s
Local Time is:    Wed Nov 18 20:10:16 2020 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                    was never started.
                    Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                    without error or no self-test has ever 
                    been run.
Total time to complete Offline 
data collection:        ( 8924) seconds.
Offline data collection
capabilities:            (0x5b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No Conveyance Self-test supported.
                    Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                    power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                    General Purpose Logging supported.
Short self-test routine 
recommended polling time:    (   2) minutes.
Extended self-test routine
recommended polling time:    ( 152) minutes.
SCT capabilities:          (0x003f) SCT Status supported.
                    SCT Error Recovery Control supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   253   100   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0007   100   100   015    Pre-fail  Always       -       7104
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       292
  5 Reallocated_Sector_Ct   0x0033   253   253   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   253   253   051    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   253   253   015    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       634
 10 Spin_Retry_Count        0x0033   253   253   051    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x0012   253   253   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       272
187 Reported_Uncorrect      0x0032   253   253   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   253   253   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   078   052   000    Old_age   Always       -       22
194 Temperature_Celsius     0x0022   172   094   000    Old_age   Always       -       22
195 Hardware_ECC_Recovered  0x001a   100   100   000    Old_age   Always       -       40956
196 Reallocated_Event_Count 0x0032   253   253   000    Old_age   Always       -       0
197 Total_Pending_Sectors   0x0012   253   253   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   253   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x000a   253   100   000    Old_age   Always       -       0
201 Soft_Read_Error_Rate    0x000a   253   100   000    Old_age   Always       -       0
202 Data_Address_Mark_Errs  0x0032   253   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

and also this test:

$ sudo e2fsck -c /dev/sdb
e2fsck 1.42.13 (17-May-2015)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdb

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>
boot stuck on "load/save rf kill switch status" https://askubuntu.com/questions/1216878/boot-stuck-on-load-save-rf-kill-switch-status

I recently tried to install lubuntu on an old computer. After a successful install I installed updates however and restarted. But when the computer booted again I saw only a black screen.

After following the instructions here:
My computer boots to a black screen, what options do I have to fix it?
I edited grub menu to start OS with nomodeset.

The problem is that now while booting the computer is stuck on
[OK] started load/save RF kill switch status

The computer is an inspiron mini 1018

Any ideas?

How to turn off Nvidia GPU on a headless server? https://askubuntu.com/questions/1164934/how-to-turn-off-nvidia-gpu-on-a-headless-server

I am running a headless server with an Nvidia GPU. Even when the GPU is not doing any work, it is consuming about 25 Watts of power:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.26       Driver Version: 430.26       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 950     Off  | 00000000:01:00.0 Off |                  N/A |
|  0%   61C    P0    26W / 110W |      0MiB /  2001MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

Is there a way to completely turn off power delivery to the GPU when it is not in use?

I tried sudo prime-select intel Which does cause nvidia-smi to stop working, but a power meter connect to the wall shows exactly the same power consumption with either intel or nvidia selected.

Completely removing the GPU reduces the power consumption by about 30 Watts as expected.

The main purpose is to save power and costs during idle operations, with an option to spin up the GPU when it is needed (remotely via ssh).

Ubuntu 18.04 , XRDP, session will not log off or disconnect https://askubuntu.com/questions/1148935/ubuntu-18-04-xrdp-session-will-not-log-off-or-disconnect

So, I have been forced to press an Ubuntu box using 32-bit Wine packages to help someone keep an old application written for Windows NT running a little longer. (yes, I know, horrible idea, they should get new software, they have been warned). Multiple users are able to run the software via XRDP from Windows workstations, this is actually all working great, even better than I would have predicted. The glitch comes in when the user logs off, the system doesn't actually log off, it just refreshes the RDP session, no matter how many times you try to disconnect. Of course you can force a disconnect on the Windows side, but that leaves the user session still running at the other end, which sometimes becomes a problem. I've tried MATE, XFCE, and the default Unity desktop environment, same problem with each thus far. How can I make the logoff function actually trigger the end of the user session?

Starting IPSec Command Hangs https://askubuntu.com/questions/1074037/starting-ipsec-command-hangs

I am attempting to establish a VPN connection between two regions in AWS EC2 (two virtual machines) using StrongSwan within Docker. However, I am getting a ton of errors when trying to start the connection.

The commands sudo ipsec start --nofork and sudo ipsec restart give the following errors, respectively:

Starting strongSwan 5.3.5 IPsec [starter]...
ipsec_starter[374]: Starting strongSwan 5.3.5 IPsec [starter]...

00[LIB] expanding file pattern '/etc/strongswan.d/charon/*.conf' failed: Permission denied
00[LIB] expanding file pattern '/etc/strongswan.d/*.conf' failed: Permission denied
00[DMN] Starting IKE charon daemon (strongSwan 5.3.5, Linux 4.4.0-1065-aws, x86_64)
00[LIB] feature CUSTOM:libcharon in critical plugin 'charon' has unmet dependency: NONCE_GEN
00[LIB] feature CUSTOM:libcharon-receiver in critical plugin 'charon' has unmet dependency: HASHER:HASH_SHA1
00[LIB] feature CUSTOM:libcharon-sa-managers in critical plugin 
'charon' has unmet dependency: HASHER:HASH_SHA1 00[LIB] failed to load 3 critical plugin features
00[DMN] initialization failed - aborting charon
charon has quit: initialization failed
ipsec_starter[374]: charon has quit: initialization failed

charon refused to be started
ipsec_starter[374]: charon refused to be started

ipsec starter stopped
ipsec_starter[374]: ipsec starter stopped

and

Stopping strongSwan IPsec failed: starter is not running
Starting strongSwan 5.3.5 IPsec [starter]...
ipsec_starter[389]: Starting strongSwan 5.3.5 IPsec [starter]...

root@b65e01b190f6:/etc# ipsec_starter[408]: charon has quit: 
initialization failed

ipsec_starter[408]: charon refused to be started

ipsec_starter[408]: ipsec starter stopped

(The second one hangs after the last command and must be exited with Ctrl+C)

To fix some errors, I commented out the line:

load_modular = yes

in the file:

/etc/strongswan.conf

Now running the same commands output:

Starting strongSwan 5.3.5 IPsec [starter]...
ipsec_starter[413]: Starting strongSwan 5.3.5 IPsec [starter]...

00[LIB] expanding file pattern '/etc/strongswan.d/charon/*.conf' failed: Permission denied
00[LIB] expanding file pattern '/etc/strongswan.d/*.conf' failed: Permission denied
00[DMN] Starting IKE charon daemon (strongSwan 5.3.5, Linux 4.4.0-1065-aws, x86_64)
00[CFG] loading ca certificates from '/etc/ipsec.d/cacerts'
00[LIB] opening directory '/etc/ipsec.d/cacerts' failed: Permission denied
00[CFG]   reading directory failed
00[CFG] loading aa certificates from '/etc/ipsec.d/aacerts'
00[LIB] opening directory '/etc/ipsec.d/aacerts' failed: Permission denied
00[CFG]   reading directory failed
00[CFG] loading ocsp signer certificates from '/etc/ipsec.d/ocspcerts'
00[LIB] opening directory '/etc/ipsec.d/ocspcerts' failed: Permission denied
00[CFG]   reading directory failed
00[CFG] loading attribute certificates from '/etc/ipsec.d/acerts'
00[LIB] opening directory '/etc/ipsec.d/acerts' failed: Permission denied
00[CFG]   reading directory failed
00[CFG] loading crls from '/etc/ipsec.d/crls'
00[LIB] opening directory '/etc/ipsec.d/crls' failed: Permission denied
00[CFG]   reading directory failed
00[CFG] loading secrets from '/etc/ipsec.secrets'
00[CFG]   loaded IKE secret for B.B.B.B X.X.X.X
00[LIB] loaded plugins: charon test-vectors aes rc2 sha1 sha2 md4 md5 random nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey sshkey pem openssl fips-prf gmp agent xcbc hmac ccm gcm attr kernel-netlink resolve socket-default connmark stroke updown
00[LIB] dropped capabilities, running as uid 0, gid 0
00[JOB] spawning 16 worker threads
charon (426) started after 20 ms
ipsec_starter[413]: charon (426) started after 20 ms

11[CFG] received stroke: add connection 'A-to-B'
11[CFG] left nor right host is our side, assuming left=local
11[CFG] algorithm 'sha_256' not recognized
11[CFG] skipped invalid proposal string: aes256-sha_256-modp1024
11[CFG] added configuration 'A-to-B'
13[CFG] received stroke: initiate 'A-to-B'
13[IKE] initiating IKE_SA A-to-B[1] to X.X.X.X
13[IKE] configured DH group MODP_NONE not supported
13[MGR] tried to check-in and delete nonexisting IKE_SA

and

Stopping strongSwan IPsec failed: starter is not running
Starting strongSwan 5.3.5 IPsec [starter]...
ipsec_starter[444]: Starting strongSwan 5.3.5 IPsec [starter]...

root@b65e01b190f6:/etc# ipsec_starter[463]: charon (464) started after 20 ms

Now both commands hang there and so I'm not sure if commenting out that line helped at all.

The expanding file pattern '/etc/strongswan.d/charon/*.conf' failed: Permission denied lines likely cause many of my errors but I'm not sure how to fix that since I am already root within Docker.

I am including part of my Dockerfile as well incase that may help:

FROM ubuntu:16.04

RUN apt update && apt install -y --no-install-recommends apt-utils
RUN apt -y install sudo
RUN apt upgrade -y
RUN apt install strongswan -y
RUN apt install nano -y
RUN apt install openssh-client -y
RUN apt install kmod
RUN echo "IdentityFile ~/.ssh/id_rsa" >> /etc/ssh/ssh_config
RUN sudo rm /etc/ipsec.conf
RUN touch /etc/ipsec.conf
RUN echo "# basic configuration" >> /etc/ipsec.conf \
    && echo "config setup" >> /etc/ipsec.conf \
    && echo '    charondebug="all"' >> /etc/ipsec.conf \
    && echo "    uniqueids=yes" >> /etc/ipsec.conf \
    && echo "    strictcrlpolicy=no" >> /etc/ipsec.conf \
    && echo "" >> /etc/ipsec.conf \
    && echo "conn A-to-B" >> /etc/ipsec.conf \
    && echo "    authby=secret" >> /etc/ipsec.conf \
    && echo "    left=A.A.A.A" >> /etc/ipsec.conf \
    && echo "    leftid=B.B.B.B" >> /etc/ipsec.conf \
    && echo "    leftsubnet=A.C.C.C/16" >> /etc/ipsec.conf \
    && echo "    right=X.X.X.X" >> /etc/ipsec.conf \
    && echo "    rightsubnet=Y.Y.Y.Y/16" >> /etc/ipsec.conf \
    && echo "    ike=aes256-sha_256-modp1024!" >> /etc/ipsec.conf \
    && echo "    esp=aes256-sha2_256!" >> /etc/ipsec.conf \
    && echo "    keyingtries=0" >> /etc/ipsec.conf \
    && echo "    ikelifetime=1h" >> /etc/ipsec.conf \
    && echo "    lifetime=8h" >> /etc/ipsec.conf \
    && echo "    dpddelay=30" >> /etc/ipsec.conf \
    && echo "    dpdtimeout=120" >> /etc/ipsec.conf \
    && echo "    dpdaction=restart" >> /etc/ipsec.conf \
    && echo "    auto=start" >> /etc/ipsec.conf
RUN sudo rm /etc/ipsec.secrets
RUN touch /etc/ipsec.secrets
RUN echo "'B.B.B.B X.X.X.X : PSK "mykey"' >> /etc/ipsec.secrets
RUN echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
RUN sudo sysctl -p /etc/sysctl.conf

The Dockerfile on the other instance is pretty much the same thing with the IPs swapped.

EDIT: UPDATE (NOT PART OF ORIGINAL QUESTION)

I switched encryption algorithms because mod1024 is not strong enough for strongSwan's standards anymore. I am now using:

ike=aes128gcm16-prfsha256-ecp256,aes256gcm16-prfsha384-ecp384!
esp=aes128gcm16-ecp256,aes256gcm16-ecp384!

and that fixed a few errors. I also was using the command:

sudo docker run -itv ~:/mnt/ nameHere bash

but added the tag --cap-add=NET_ADMIN and all the pre-connecting errors have gone away. However, there is a new error when trying to connect where the connection will time out after 5 attempts.

root@aaaaaaaaaa:/etc# sudo ipsec start --nofork
Starting strongSwan 5.3.5 IPsec [starter]...
ipsec_starter[482]: Starting strongSwan 5.3.5 IPsec [starter]...

00[DMN] Starting IKE charon daemon (strongSwan 5.3.5, Linux 4.4.0-1065-aws, x86_64)
00[CFG] loading ca certificates from '/etc/ipsec.d/cacerts'
00[CFG] loading aa certificates from '/etc/ipsec.d/aacerts'
00[CFG] loading ocsp signer certificates from '/etc/ipsec.d/ocspcerts'
00[CFG] loading attribute certificates from '/etc/ipsec.d/acerts'
00[CFG] loading crls from '/etc/ipsec.d/crls'
00[CFG] loading secrets from '/etc/ipsec.secrets'
00[CFG]   loaded IKE secret for X.X.X.X Y.Y.Y.Y
00[LIB] loaded plugins: charon test-vectors aes rc2 sha1 sha2 md4 md5 random nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey sshkey pem openssl fips-prf gmp agent xcbc hmac gcm attr kernel-netlink resolve socket-default connmark stroke updown
00[LIB] dropped capabilities, running as uid 0, gid 0
00[JOB] spawning 16 worker threads
charon (495) started after 20 ms
ipsec_starter[482]: charon (495) started after 20 ms

11[CFG] received stroke: add connection 'A-to-B'
11[CFG] left nor right host is our side, assuming left=local
11[CFG] added configuration 'A-to-B'
13[CFG] received stroke: initiate 'A-to-B'
13[IKE] initiating IKE_SA A-to-B[1] to Y.Y.Y.Y
13[ENC] generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(HASH_ALG) ]
13[NET] sending packet: from X.X.X.X[500] to Y.Y.Y.Y[500] (284 bytes)
10[NET] error writing to socket: Invalid argument
15[IKE] retransmit 1 of request with message ID 0
15[NET] sending packet: from X.X.X.X (private ip)[500] to Y.Y.Y.Y (public ip of other connection)[500] (284 bytes)
10[NET] error writing to socket: Invalid argument
.
.
.
04[IKE] retransmit 5 of request with message ID 0
04[NET] sending packet: from X.X.X.X (private ip)[500] to Y.Y.Y.Y (public ip of other connection)[500] (284 bytes)
10[NET] error writing to socket: Invalid argument
03[IKE] giving up after 5 retransmits
03[IKE] establishing IKE_SA failed, peer not responding

And it is now hanging here until I kill it with another CTRL+C. Any ideas would be greatly appreciated.

Emergency mode, can't log in https://askubuntu.com/questions/930462/emergency-mode-cant-log-in

I am using Ubuntu 16.04 on VirtualBox, and I have been trying to move my home directory to a different partition today.

Now I can no longer log in. As it starts booting up, it goes through the standard process before kicking me back to 'Emergency Mode', which prompts me to either log in as root and check the logs, restart, or attempt to continue.

Continuing brings me back to the same issue, as does restart.

I ran journalctl -xb as prompted, and the only two lines that stood out in red were the following:

kernel: intel_rapl: no valid rapl domains found in package 0

and

systemd[1]: Timed out waiting for device dev-disk-by\x2dpartuuid-e559f076

I'm fairly new to Ubuntu and VirtualBox. What can I do to fix this (or find a deeper error to look into)?

User is not in passwd and shadow file but when getent passwd user it shows https://askubuntu.com/questions/916406/user-is-not-in-passwd-and-shadow-file-but-when-getent-passwd-user-it-shows

User is not in /etc/passwd and /etc/shadow file but when I "getent passwd userSec" it shows the account details.

[root@myServer systemadmin]# getent passwd userSec
userSec:sdfdgfdsge34gfdsgfdsgfdsgwerwrewd.:709:709:userSec_Account:/home/userSec:/bin/bash
[root@myServer systemadmin]# cat /etc/passwd | grep userSec
[root@myServer systemadmin]# cat /etc/shadow | grep userSec

Tried deleting and adding the user but still no luck.

[root@myServer systemadmin]# sudo /usr/sbin/userdel -r userSec
userdel: error deleting password entry
userdel: error deleting shadow password entry
userdel: error removing directory /home/userSec
[root@myServer systemadmin]# /usr/sbin/useradd -d /home/userSec -m -s /bin/bash userSec
useradd: user userSec exists
Problem installing Ubuntu 16.10 from a USB stick https://askubuntu.com/questions/882980/problem-installing-ubuntu-16-10-from-a-usb-stick

After recent problems I tried to download Ubuntu 16.10 manually and tried to install it using a USB stick. The 32GB USB stick is formatted to fat32. While trying to install it I get this this error and it happens in a loop. Please check the image of the problem here.

[    6.227360] scsi host6: runtime PM trying to activate child device host6 but parent (2-1.6:1.0)
[    7.435522] sd 6:0:0:0: [sdb] No Caching mode page found
[    7.435574] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[   12.430305] blk_update_request: I/O error, dev sr0, sector 0
[   19.241646] blk_update_request: I/O error, dev sr0, sector 0
[   19.241684] Buffer I/O error on dev sr0, logical block 0, async page read
[   26.056954] blk_update_request: I/O error, dev sr0, sector 0
[   26.056992] Buffer I/O error on dev sr0, logical block 0, async page read
[   32.868291] blk_update_request: I/O error, dev sr0, sector 0
[   32.868329] Buffer I/O error on dev sr0, logical block 0, async page read
[   39.679671] blk_update_request: I/O error, dev sr0, sector 0
[   39.679709] Buffer I/O error on dev sr0, logical block 0, async page read
[   46.491020] blk_update_request: I/O error, dev sr0, sector 0
[   46.491058] Buffer I/O error on dev sr0, logical block 0, async page read
[   53.302342] blk_update_request: I/O error, dev sr0, sector 0
[   53.302380] Buffer I/O error on dev sr0, logical block 0, async page read
[   60.117690] blk_update_request: I/O error, dev sr0, sector 0
[   60.117727] Buffer I/O error on dev sr0, logical block 0, async page read
[   66.929033] blk_update_request: I/O error, dev sr0, sector 0
[   66.929072] Buffer I/O error on dev sr0, logical block 0, async page read
[   73.740377] blk_update_request: I/O error, dev sr0, sector 0
[   73.740415] Buffer I/O error on dev sr0, logical block 0, async page read
[   80.551701] blk_update_request: I/O error, dev sr0, sector 0
[   80.551738] Buffer I/O error on dev sr0, logical block 0, async page read
[   87.367076] blk_update_request: I/O error, dev sr0, sector 0
[   87.367113] Buffer I/O error on dev sr0, logical block 0, async page read
[   94.178419] blk_update_request: I/O error, dev sr0, sector 0
[   94.178456] Buffer I/O error on dev sr0, logical block 0, async page read
[  100.989770] blk_update_request: I/O error, dev sr0, sector 0
[  100.989807] Buffer I/O error on dev sr0, logical block 0, async page read
[  107.801128] blk_update_request: I/O error, dev sr0, sector 0
[  107.801166] Buffer I/O error on dev sr0, logical block 0, async page read
[  114.612465] blk_update_request: I/O error, dev sr0, sector 0

My PC configuration can be seen here.

Problem installing Ubuntu 16.10 from an iso [closed] https://askubuntu.com/questions/848175/problem-installing-ubuntu-16-10-from-an-iso

I have a problem installing Ubuntu 16.10 from an iso. I keep getting this boot message.

Network boot from Intel E1000
Copyright (C) 2003-2014  VMware, Inc.
Copyright (C) 1997-2000  Intel Corporation

CLIENT MAC ADDR: 00 0C 29 5D 0C 24  GUID: 564D7613-CAB5-503B-2DB8-369C BA5D0924
PXE-E53: No boot filename received

PXE-M0F: Exiting Intel PXE ROM.
Operating System not found
_

This is a virtual machine using VMware.

How to reinstall Ubuntu using the same partitioning system? https://askubuntu.com/questions/800263/how-to-reinstall-ubuntu-using-the-same-partitioning-system

I recently installed Ubuntu 16.04 using the instructions from here.

I am a novice at the operating system and was trying to set up a VPN using the instructions from here, but I messed up mid-way and now I have no idea how to continue or go back. I changed some system files during the process and I couldn't find a way to restore them. Neither do I know which specific ones I changed, however it has only been 3 days since I installed the OS and I wanted to reinstall it so I can get back the default files.

Will I be able to use the same partitioning system I created the first time for the swap area, root and home space? And if so, how?

Also if you have any way I can restore the files I changed, it would be very much appreciated.

How to open Android Studio? https://askubuntu.com/questions/795533/how-to-open-android-studio

I have a problem with Android Studio under Xubuntu. I downloaded Android Studio from here and performed the steps on the site.

When I use Android Studio everything was ok, but when I close the program I can't start it again. I don't have an icon and I don't know how to start the program.

When I run studio.sh then applications begins to install Android Studio and downloads android-sdk again.

I am logged out immediately after logging in https://askubuntu.com/questions/367260/i-am-logged-out-immediately-after-logging-in

After I log in to my user account on Ubuntu 13.04, I get automatically logged out after 1 second of black screen. This happens only with 1 specific user, and I can log in to another account fine.

What could have gone wrong? In which log files should I find my answer?

I installed a VNC server and turned on desktop sharing, and last time I could log in - maybe that is an issue. How can I disable it without GUI?

Where's the default video monitor config file? https://askubuntu.com/questions/305473/wheres-the-default-video-monitor-config-file

When I boot my laptop, with an external video monitor attached, the LCD video screen on the laptop comes up in what looks like 1024x768... which I assume is because it's cloning displays, and that the most common setting that either will take is 1024x768.

I'd like it to come up with 1280x800 on the LCD laptop screen, and either no display on the external monitor, or 1920x1080 1024x768.

There used to be a xorg.conf file, which is where I assume that I might have set this up, but this file doesn't exist in Raring. So... how do I accomplish this?

Please advise.