Difference between revisions of "Linux - Troubleshooting"

From The TinkerNet Wiki
Jump to navigation Jump to search
(Created page with "= '''<span style="color:#c0392b">One of my Mint 19.1 machines seems to regularly refuse to acknowledge mouse clicks...</span>''' = = Mint 19 Update Manager occasionally seems...")
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
= '''<span style="color:#c0392b">One of my Mint 19.1 machines seems to regularly refuse to acknowledge mouse clicks...</span>''' =
+
==Boot Problems==
 +
===Mint fails to boot. Lands in BusyBox with an '''(initramfs)''' prompt===
  
= Mint 19 Update Manager occasionally seems to have an issue where it cannot refresh the update list. =
+
This is most commonly caused by corruption of the filesystem (Either a bad shutdown or a failing drive...)
 +
 
 +
Run the <code>fsck</code> command to repair the filesystem ('''Note''': it might be a partition other than '''sda1''', you can do an <code>ls /dev/sd*</code> & see if there are more partitions...)
 +
 
 +
*<code>fsck -y /dev/sda1</code>
 +
 
 +
Sit back & watch all the confusing stuff scroll by.
 +
 
 +
Then tell the machine to reboot.
 +
 
 +
*<code>reboot</code>
 +
 
 +
=='''<span style="color:#c0392b">One of my Mint 19.1 machines seems to regularly refuse to acknowledge mouse clicks...</span>'''==
 +
 
 +
==Mint 19 Update Manager occasionally seems to have an issue where it cannot refresh the update list.==
 
Most likely, it is a repository problem that will resolve itself if you just wait a bit & try again.
 
Most likely, it is a repository problem that will resolve itself if you just wait a bit & try again.
  
= Mint is trying to eliminate Samba... =
+
==Mint is trying to eliminate Samba...==
* [https://forums.linuxmint.com/viewtopic.php?t=272334 [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager]
 
* [https://forums.linuxmint.com/viewtopic.php?f=42&t=270442 Mint 19 and Samba File Sharing Changes]
 
* [https://forums.linuxmint.com/viewtopic.php?f=42&t=88146&start=0 HowTo: Samba Browsing Problems Checklist]
 
* [https://forums.linuxmint.com/viewtopic.php?f=42&t=192794?f=42&t=192794 Resetting Mint's Default umask to 002]
 
  
= [https://forums.linuxmint.com/viewtopic.php?t=282973#p1561928 Unable to launch "cinnamon-session-cinnamon"] =
+
*[https://forums.linuxmint.com/viewtopic.php?t=272334 [SOLVED]Mint 19 Network SAMBA shares not shownin File Manager]
 +
*[https://forums.linuxmint.com/viewtopic.php?f=42&t=270442 Mint 19 and Samba File Sharing Changes]
 +
*[https://forums.linuxmint.com/viewtopic.php?f=42&t=88146&start=0 HowTo: Samba Browsing Problems Checklist]
 +
*[https://forums.linuxmint.com/viewtopic.php?f=42&t=192794?f=42&t=192794 Resetting Mint's Default umask to 002]
 +
 
 +
==[https://forums.linuxmint.com/viewtopic.php?t=282973#p1561928 Unable to launch "cinnamon-session-cinnamon"]==
 
<code>apt install mint-meta-cinnamon</code>
 
<code>apt install mint-meta-cinnamon</code>
  
= "You have ''X'' broken package on your system! =
+
=="You have ''X'' broken package on your system!==
 
I was updating, upgrading Thunderbird from the Update Manager. I got a message:
 
I was updating, upgrading Thunderbird from the Update Manager. I got a message:
 
  "You have 1 broken package on your system!
 
  "You have 1 broken package on your system!
Line 19: Line 35:
  
 
What is that, how do I run it?
 
What is that, how do I run it?
* <code>sudo apt-get install -f</code>
+
 
 +
*<code>sudo apt-get install -f</code>
 
    
 
    
= I was removing unwanted software from my Linux Mint machine and went too far... =
+
==I was removing unwanted software from my Linux Mint machine and went too far...==
* <span style="color:#c0392b">'''Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" not found; Falling back to default session'''</span>
+
 
* aaarrrggg...
+
*<span style="color:#c0392b">'''Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" not found; Falling back to default session'''</span>
* Open an SSH session to the machine  
+
*aaarrrggg...
** <code>apt install mint-meta-cinnamon</code>
+
*Open an SSH session to the machine  
* aaahhh...&nbsp;&nbsp; :)
+
**<code>apt install mint-meta-cinnamon</code>
 +
*aaahhh...&nbsp;&nbsp; :)
 +
 
 +
==RDP==
 +
 
 +
In order to access a machine through RDP, the user MUST have a valid '''.xsession''' file.
 +
 
 +
----
 +
 
 +
[https://forums.linuxmint.com/viewtopic.php?t=231342#p1225436 Re: Linux Mint 18 Remote Desktop (No Security types supported)]
 +
<div class="postbody"><div id="post_content1225436"><div class="content" style="margin-left: 40px">It wouldn't matter if the box you're coming from is Windows 7/8/10, MacOS, or Linux, or if you're running RealVNC, tightVNC, or Remmina--you'll have the same problem. The encryption used by Vino-server on Ubuntu/LM seems to be incompatible with that used by anything else and the result is no security type (0) instead of off/none (1) or normal (2). The only way to make it work is to diable its incompatible encyrption. One way is:<br /> <br /> '''gsettings set org.gnome.Vino require-encryption false'''<br /> <br /> Once you do that, you want to ensure VNC/5900+ is not open in your firewall (gufw). You can then tunnel VNC through ssh ([[Software - SSH|install OpenSSH Server]]) or use RDP (install xrdp) for security. However, if you do the latter, you'll find Vino also doesn't spawn on port 5910+ as xrdp expects. So you'll have to edit the xrdp config file and replace port=-1 with port=5900 to get it to work. You'll also have to have a logged in session running on the server for this VNC to work.<br /> <br /> Install xrdp on a Raspberry Pi and it just works.I have several running headless for various functions. sessman runs on 3350 and xrdp on 3389. Upon connection, Xvnc wakes up on 5910 for xrdp to link to.</div> <div class="signature" id="sig1225436" style="margin-left: 40px">Desktop: HP Z240 Quad-Core Xeon, 32GB RAM, 500GB SSD, Nvidia graphics, 27" monitor<br /> Laptop:::: HP Zbook Quad-Core i7,,,,, 32GB RAM, 500GB SSD, Nvidia graphics, 15" display<br /> OS Both: Linux Mint 18 Sarah Cinnamon, kernel 4.4.0-45.66</div>
 +
 
 +
==Mint 19.3 machine periodically fails to properly use my local DNS server==
 +
</div>I'm thinking it's related to the machine it happens to being due for a complete rebuild...
 +
</div>Dunno what's causing this, but a quick fix seems to be:
 +
 
 +
*<code>sudo service systemd-resolved restart</code>
 +
 
 +
But not always...  :(
 +
 
 +
==Dealing with Cinnamon Crashes==
 +
 
 +
===Restarting Cinnamon from the command line===
 +
 
 +
If you can SSH into the machine (I most commonly have to deal with this on VMs...), you can often restart Cinnamon by:
 +
 
 +
* <code>cinnamon --replace --display=:0 &</code>
 +
 
 +
(This came from [https://forums.linuxmint.com/viewtopic.php?t=159772 a discussion on the Linux Mint forums])

Latest revision as of 15:10, 12 November 2021

Boot Problems

Mint fails to boot. Lands in BusyBox with an (initramfs) prompt

This is most commonly caused by corruption of the filesystem (Either a bad shutdown or a failing drive...)

Run the fsck command to repair the filesystem (Note: it might be a partition other than sda1, you can do an ls /dev/sd* & see if there are more partitions...)

  • fsck -y /dev/sda1

Sit back & watch all the confusing stuff scroll by.

Then tell the machine to reboot.

  • reboot

One of my Mint 19.1 machines seems to regularly refuse to acknowledge mouse clicks...

Mint 19 Update Manager occasionally seems to have an issue where it cannot refresh the update list.

Most likely, it is a repository problem that will resolve itself if you just wait a bit & try again.

Mint is trying to eliminate Samba...

Unable to launch "cinnamon-session-cinnamon"

apt install mint-meta-cinnamon

"You have X broken package on your system!

I was updating, upgrading Thunderbird from the Update Manager. I got a message:

"You have 1 broken package on your system!
Use the "Broken" filter to locate it."

What is that, how do I run it?

  • sudo apt-get install -f

I was removing unwanted software from my Linux Mint machine and went too far...

  • Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" not found; Falling back to default session
  • aaarrrggg...
  • Open an SSH session to the machine
    • apt install mint-meta-cinnamon
  • aaahhh...   :)

RDP

In order to access a machine through RDP, the user MUST have a valid .xsession file.


Re: Linux Mint 18 Remote Desktop (No Security types supported)

It wouldn't matter if the box you're coming from is Windows 7/8/10, MacOS, or Linux, or if you're running RealVNC, tightVNC, or Remmina--you'll have the same problem. The encryption used by Vino-server on Ubuntu/LM seems to be incompatible with that used by anything else and the result is no security type (0) instead of off/none (1) or normal (2). The only way to make it work is to diable its incompatible encyrption. One way is:

gsettings set org.gnome.Vino require-encryption false

Once you do that, you want to ensure VNC/5900+ is not open in your firewall (gufw). You can then tunnel VNC through ssh (install OpenSSH Server) or use RDP (install xrdp) for security. However, if you do the latter, you'll find Vino also doesn't spawn on port 5910+ as xrdp expects. So you'll have to edit the xrdp config file and replace port=-1 with port=5900 to get it to work. You'll also have to have a logged in session running on the server for this VNC to work.

Install xrdp on a Raspberry Pi and it just works.I have several running headless for various functions. sessman runs on 3350 and xrdp on 3389. Upon connection, Xvnc wakes up on 5910 for xrdp to link to.
Desktop: HP Z240 Quad-Core Xeon, 32GB RAM, 500GB SSD, Nvidia graphics, 27" monitor
Laptop:::: HP Zbook Quad-Core i7,,,,, 32GB RAM, 500GB SSD, Nvidia graphics, 15" display
OS Both: Linux Mint 18 Sarah Cinnamon, kernel 4.4.0-45.66

Mint 19.3 machine periodically fails to properly use my local DNS server

I'm thinking it's related to the machine it happens to being due for a complete rebuild...

Dunno what's causing this, but a quick fix seems to be:

  • sudo service systemd-resolved restart

But not always... :(

Dealing with Cinnamon Crashes

Restarting Cinnamon from the command line

If you can SSH into the machine (I most commonly have to deal with this on VMs...), you can often restart Cinnamon by:

  • cinnamon --replace --display=:0 &

(This came from a discussion on the Linux Mint forums)