ssh.service failed to start “start-limit-hit” after dist-upgrade and restart

I was updating my Ubuntu 16.04 server with apt-get update and apt-get upgrade and then I restarted the server with sudo reboot. Since then, I can’t login via putty. I connected via console that my hosting provider gives and running the command sudo service ssh status i got the following :

enter image description here

Any advise how can I handle this?

Ajax result gone after reload

I’m making a following system. If the user clicks on the follow button an ajax function is triggerd. The ajax function sends data to the actions.php file and this file checks if there is data in the database. Based on this info the code inserts the follower or deletes it from the database. This works fine! But for example if one user starts following the other person and than refresh the page the buttons html changes back to follow.

I have tried to do the result in php but it didn’t work out

ajax:

   $  (".toggleFollow").click(function() {          var id = $  (this).attr("data-userId");          $  .ajax({             type: "POST",             url: "actions.php?action=toggleFollow",             data: "userId=" + id,             success: function(result) {                  if (result == "1") {                      $  ("a[data-userId='" + id + "']").html("Follow");                  } else if (result == "2") {                      $  ("a[data-userId='" + id + "']").html("Unfollow");                  }             }          })      }) 

actions.php:

session_start(); require 'dbh.inc.php'; $  id = $  _SESSION['userId']; $  userId = $  _POST['userId']; if ($  _GET['action'] == 'toggleFollow') {      $  query = "SELECT * FROM isFollowing WHERE follower = ". mysqli_real_escape_string($  conn, $  _SESSION['userId'])." AND isFollowing = ". mysqli_real_escape_string($  conn, $  _POST['userId'])." LIMIT 1";         $  result = mysqli_query($  conn, $  query);         if (mysqli_num_rows($  result) > 0) {              $  row = mysqli_fetch_assoc($  result);              mysqli_query($  conn, "DELETE FROM isFollowing WHERE id = ". mysqli_real_escape_string($  conn, $  row['id'])." LIMIT 1");              echo "1";          } else {              mysqli_query($  conn, "INSERT INTO isFollowing (follower, isFollowing) VALUES (". mysqli_real_escape_string($  conn, $  _SESSION['userId']).", ". mysqli_real_escape_string($  conn, $  _POST['userId']).")");              echo "2";           }  } 

I expect that the follow/unfollow button doesn’t change after an refresh! PS This is my first question on stackoverflow!

Black screen after wake up and wrong resolution with the fix

I’m trying to fix the Nouveau driver bug. When I wake up my computer from sleep, the screen remain black, no image. So I added the nouveau.modeset=0 in the grub file and after a reboot, the screen resolution is on 800×600. And there is no other options available in the config menu.

I also tried to install the last nVidia driver from the PPA but the computer become extremly laggy after a reboot. I have a nVidia 980M with Ubuntu 18.04.

How can I fix the nouveau bug while the usual fix creates other bugs?

Do I need an entry stamp when returning the the Schengen after a three month absence?

I stayed in Germany for three months, summer of 2018 but my Schengen visa was soon to expire and I needed to exit for a minimum of three months. I went to the UK and was stamped in for 6 months. Then I went to Ireland and was stamped in for 3 months. When I left Ireland and returned to England none of us on the plane went through any passport control leaving Ireland nor entering England. I asked a fellow traveller who lives there and she said it was abnormal. I asked an airport employee and he laughed and said “We let anybody in these days.” I stayed for Christmas and returned to Germany in the Schengen zone after being absent the required three months. Again when I departed England there was no one inspecting or stamping passports and when I arrived in Germany, in a small airport, I was warmly greeted and welcomed by the customs officer but he also did not stamp my passport. Is this usual? Will I run into any problems down the road? Do I need a stamp?

What happens to (just) the software availability in Ubuntu after EOL?

I’ve gone through a lot of articles, over this, throughout the internet and knows what EOL (End of Life) does to Ubuntu support and other things.

But my question is that whether someone has ever tried using it afterwards?

Let me present an example for explaining the situation :-

Ubuntu 14.04 LTS is about to reach it’s EOL in April 2019. If today I use the command :-

sudo apt-get update sudo apt-get install vlc

This will install VLC. But if I use this command after EOL, supposedly July 2019, will this command be still functional. For someone might be just interested in the very basic use of Ubuntu & it’s softwares like for multimedia, typing, managing data on PC (like movies, documents, music, videos), PDF (document) reading, browsing (obviously might be unsecured and prone to attacks due to lack of security updates).

I hope I’m making situation clear. In simple language, someone might not be interested in the very advance use of Ubuntu and just on very basic use for which he is not very concerned about the security patches and stuff.

Q. Will these usual commands still be functional and if not what could be done? Q. I read somewhere Editing :- /etc/apt/sources.list and change ‘archive.ubuntu.com’ to ‘old-releases.ubuntu.com’

Has anyone tried this method? Does it worked? What could be alternative.

Thanks

PS:- Else I’ve to, like before, rely on third-party softwares which could actually save the .deb files (to a definite location that can be even migrated) of the all the downloaded softwares, along with dependencies, and install it anytime without the internet.

network issue after using macchanger. no internet, no ipv4

So I used macchanger with these commands:

sudo ifconfig eth0 down sudo macchanger -r eth0 sudo ifconfig eth0 up

I never had issue with that before, how ever now once I do that I loose internet.

ifconfig show no ipv4 for eth0, restarting network-manager does not help. using -e flag with macchanger does not help, dhclient eth0 does not help.

I even tried to use a different machine with a fresh install of kali on a different network and got the same problem,

I tried everything I’ve found on the internet without success, any help?

Apache constantly crashing every few hours after php update

Server Details:
Ubuntu 16.0.4.5 LTS
Server version: Apache/2.4.18 (Ubuntu)
PHP Version: PHP 7.2.14-1+ubuntu16.04.1+deb.sury.org+1
Server with 16GB of RAM, 8 Core CPU

Server Logs/Setup Configs will be posted at bottom of post.

I currently run PHP using the PHP-FPM. I have had it working just fine, until recently I believe, when PHP had some updates, and I updated it a few days ago.

Now, every few hours, it just seems that Apache crashes and I just have to start it back up. The server…

Apache constantly crashing every few hours after php update

chkdsk produces different errors every time after 40 tries

I was getting a BSOD even when trying to boot into safe mode, so I booted from the Windows 7 install disk, pressed Shift+F10 to enter command prompt mode right away (because I have several operating systems on this system, the infinitely despicable so-called “Repair Mode” — what a misnomer! — takes about 40 minutes searching for operating systems to “repair”).

Then I determine which drive letter is associated with the system disk in question, then enter CHKDSK /F

It found errors the first couple of times and claimed to have repaired them, and eventually it reported that it had found no errors. But I’ve learned over the years that this can be a lie, so I’ve gotten in the habit of running the command again and again until it claims it found no errors twice in a row.

I’ve now run it about 40 times, and every single time now it reports errors, typically first the same one or two (corrupted attribute record x), then always one or more different error(s) every single time! Sometimes it reports that the volume is in use by a different process and asks if I want to dismount it first (to which I answer yes), but what other process could possibly have it attached at this point? Perhaps the infinitely stupid “searching for operating system” process, that’s still running after all this time?

Anyway, what the heck do I do now?