October 25, 2018

Run Tasks/Jobs in the Background while closing the SSH Session

We usually run imports and exports for our email marketing software using PHP-CLI (Command-line Interface). The problem comes when we want to work on something else. Instead of opening multiple terminal sessions, we use this little application called Screen. This little application is quite handy when it comes to keeping those sessions alive by running tasks/jobs in the background. Screen is a console application that allows you to have multiple terminal sessions within a single window.

If you don’t have it installed, you can install it by using the following command:

sudo apt-get update
sudo apt-get install screen

To use:

screen -dmSL [session name] [commands]

d – starts a session and immediately detaches from it
m – forces the creation of a new session
S – lets you give the session a friendly name
L Рturns on logging to ~/screenlog.0

To detach and keep the processes running:

Ctrl + A + D

To resume the session:

Screen -x "session-name"
October 17, 2018

Spirit Lead Me

LYRICS
This is my worship
This is my offering
In every moment
I withhold nothing
I’m learning to trust You
Even when I can’t see it
And even in suffering
I have to believe it

[Chorus]
If You say “it’s wrong”, then I’ll say “no”
If You say “release”, I’m letting go
If You’re in it with me, I’ll begin
And when You say to jump, I’m diving in
If You say “be still”, then I will wait
If You say to trust, I will obey
I don’t wanna follow my own ways
I’m done chasing feelings
Spirit lead me

[Verse 2]
It felt like a burden
But once I could grasp it
You took me further
Further than I was asking
And simply to see You
It’s worth it all
My life is an altar
Let Your fire fall
– Read More –

July 25, 2018

Easy Way to Keep Your Ubuntu/Debian Instances Updated

While updating our proxy servers, I had to create a new Ubuntu instance for testing. I also realized most of our instances were outdated. Having an outdated instance poses a security risk. New updates generally patch up any vulnerabilities discovered and new features are added to your instance which may prove beneficial.

I’ve always found it a hassle to update instances and automating the update isn’t necessarily good as sometimes it requires a manual restart. Most people update by using sudo apt-get update && sudo apt-get upgrade command to catch anything available for their system. These two commands may not actually catch everything or may leave behind outdated files that could lead to problems down the road. Ofcourse, you can always use apt-get autoremove and apt-get clean but what if I told you there is a single command that could do all this.

Say Hi to uCareSystem. With a single command, it does the following…

  • Update all available packages
  • Update your Ubuntu system
  • Download and install updates
  • Check for the list of old Linux Kernels and uninstall them
  • Clear the apt cache folder
  • Uninstall packages that are obsolete and no longer needed
  • Uninstall orphaned packages
  • Delete package settings (from software you have previously uninstalled)

Installation

1) Login to your server
2) Add the necessary repository

sudo add-apt-repository ppa:utappia/stable

3) Update apt

sudo apt-get update

4) Install the software

sudo apt-get install ucaresystem-core

Once complete, you are good to go!

Usage

Type in the following…

sudo ucaresystem-core

You will see something like this when its all done.

Hope this will help in keep your instances updated. Good luck!

Newer Posts
Older Posts