WHAT'S NEW?
Loading...
You just need to add these two lines to the .service file. Under the [Service] section in the file you must add the following 2 lines:
Restart=always
RestartSec=3
After saving the file we need to reload the daemon configurations to ensure systemd is aware of the new file
systemctl daemon-reload
Then restart the service to enable the changes.
systemctl restart yourservicename

I just upgraded from Visual Studio 2013 to 2017 and now I am having trouble with breakpoints.
It's a hit or a miss where break points will actually work and if I set one while debugging I get the error:

The breakpoint failed to bind.
I solved it disabling "Optimize code" option in project properties Build tab.

more info here:

https://stackoverflow.com/questions/31732944/breakpoint-failed-to-bind-visual-studio-2015
For Android Studio 3 I need to update two files to fix the error:--
1. app/build.gradle
buildscript {
    repositories {
        jcenter()
        mavenCentral()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
    }
}
2. app/gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
The preferred location for JAVA_HOME or any system variable is /etc/environment.
Open /etc/environment in any text editor like nano or gedit and add the following line:
JAVA_HOME="/usr/lib/jvm/open-jdk"
(java path could be different)
Use source to load the variables, by running this command:
source /etc/environment
Then check the variable, by running this command:
echo $JAVA_HOME
Swap is space on the hard disk that is reserved to use as virtual memory. When a Cloud Server runs out of memory the Linux kernel moves inactive processes into swap to make room for active ones in working memory.

In this example we will create 2GB swap file on external disk /media/hhd/

dd if=/dev/zero of=/media/hhd/2GB.swap bs=2048 count=1048576 status=progress

This command will create a file of size count*bs bytes, which in the above case will be 2GB


This process take a lot of minutes!

Format the swap file with the command:

mkswap /media/hhd/2GB.swap

add the file to the system, enable the swap file immediately but not automatically at boot time:

swapon /media/hhd/2GB.swap

After adding the file to the system, add this line in /etc/fstab (to edit /etc/fstab run this command nano /etc/fstab). The next time the system boots, it enables the new swap file:

/media/hhd/2GB.swap none swap sw 0 0

After adding the new swap file and enabling it, verify it is enabled by viewing the output of the command cat /proc/swaps or free

The Linux kernel provides a tweakable setting that controls how often the swap file is used, called swappiness. A swappiness setting of zero means that the disk will be avoided unless absolutely necessary (you run out of memory), while a swappiness setting of 100 means that programs will be swapped to disk almost instantly. Most Linux system comes with a default of 60, meaning that the swap file will be used fairly often if the memory usage is around half of my RAM. You can check your own system's swappiness value by running:

cat /proc/sys/vm/swappiness

I'd like to turn that down to 10 or 15. The swap file will then only be used when my RAM usage is around 80 or 90 percent.

You can change the value while your system is still running with:
sysctl vm.swappiness=10
You can also clear your swap by running swapoff -a and then swapon -a as root instead of rebooting to achieve the same effect.

Reboot the server and after rebooting chmod the file to take effect.

chmod 600 /media/hhd/2GB.swap

We can check the swap file by using

swapon -s

You successfully created a swap file in Linux.
Please upgrade your putty. It will work after the putty upgrade.
The latest version of putty is Release 0.70.

https://www.chiark.greenend.org.uk/~sgtatham/putty/releases/0.70.html

After installing CentOS 7 minimal, you may not able to connect network in that machine. This will happen because Ethernet/Wifi interfaces are not enabled by default.

First of all setup your keyboard mapping

To permanently change keymap on CentOS 7 to eg. us keymap run the localectl command:
# localectl set-keymap us

(if you use Italian layout put 'it', for USA use 'us' and so on... )

To get the server hostname, type:
# nmcli g hostname
server.example.com
To assign a new hostname (here desktop.example.com) to the server, type:
# nmcli g hostname desktop.example.com
To get the general status of radio, type:
# nmcli radio
WIFI-HW WIFI WWAN-HW WWAN
enabled enabled enabled disabled
To get the status of wifi, type:
# nmcli radio wifi
enabled

To get the list of available wifi access points, type:


# nmcli d wifi
* SSID MODE CHAN RATE SIGNAL BARS SECURITY
AAA Infra 11 54 MB/s 55 ▂▄__ WPA2 802.1X
BBB Infra 11 54 MB/s 54 ▂▄__ WPA1
CCC Infra 1 54 MB/s 49 ▂▄__ WPA1
DDD Infra 11 54 MB/s 44 ▂▄__ WPA1 802.1X
EEE Infra 11 54 MB/s 92 ▂▄▆█ WEP
To connect to a wifi access point specified by a SSID (here EEE), type:
# nmcli d wifi connect EEE password '12345678901234567890123456'

To request that NetworkManager rescans for available access points, type:
# nmcli d wifi rescan


If you want to set a static IP address

Type “nmtui” command in your terminal to open Network manager. After opening Network manager chose “Edit connection” and press Enter (Use TAB button for choosing options).