Linux Server – Server Gigabit Guide https://www.servergigabit.com/guide VPS Hosting | Dedicated Server Fri, 10 Mar 2023 08:26:43 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 https://www.servergigabit.com/guide/wp-content/uploads/2020/07/cropped-GIGABIT_logo-1-32x32.png Linux Server – Server Gigabit Guide https://www.servergigabit.com/guide 32 32 Where is vhost file on linux https://www.servergigabit.com/guide/kb/where-is-vhost-file-on-linux Mon, 06 Mar 2023 15:35:03 +0000 https://www.servergigabit.com/guide/?post_type=kb&p=2958 The location of the vhost file can vary depending on the web server you are using. For example, if you are using Apache, the virtual host configuration files are typically located in the /etc/apache2/sites-available/ directory (on Ubuntu or Debian-based systems) or /etc/httpd/conf.d/ (on CentOS, Fedora or RedHat-based systems). The files usually have a .conf extension. If you are using Nginx,…

The post Where is vhost file on linux appeared first on Server Gigabit Guide.

]]>
The location of the vhost file can vary depending on the web server you are using.

For example, if you are using Apache, the virtual host configuration files are typically located in the /etc/apache2/sites-available/ directory (on Ubuntu or Debian-based systems) or /etc/httpd/conf.d/ (on CentOS, Fedora or RedHat-based systems). The files usually have a .conf extension.

If you are using Nginx, the virtual host configuration files are typically located in the /etc/nginx/sites-available/ directory. These files also have a .conf extension.

It’s important to note that the exact location of the virtual host configuration files may be different on your specific Linux distribution or web server setup.

The post Where is vhost file on linux appeared first on Server Gigabit Guide.

]]>
How to install telnet in a Linux server https://www.servergigabit.com/guide/kb/how-to-install-telnet-in-a-linux-server Tue, 09 Jun 2020 14:20:39 +0000 https://www.wesbytes.com/guide/?post_type=kb&p=2282 How to install telnet in a Linux server  1) Shell access to the server by opening the Putty Configuration (which may be dowloaded from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) 2) Put in host name as the server IP and port should be either 8288 or 22 and click Open 3) Login as “root” and for the “password” put in the server password and press enter 4) To install telnet in the server , type the command as yum…

The post How to install telnet in a Linux server appeared first on Server Gigabit Guide.

]]>
How to install telnet in a Linux server 

1) Shell access to the server by opening the Putty Configuration (which may be dowloaded from
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)

2) Put in host name as the server IP and port should be either 8288 or 22 and click Open

3) Login as “root” and for the “password” put in the server password and press enter

4) To install telnet in the server , type the command as yum -y install telnet

5) You are done where the telnet function is successfully installed in the server

Please Follow to the following articles .How to in install Meta Trader to our Windows VPS

The post How to install telnet in a Linux server appeared first on Server Gigabit Guide.

]]>
How to Open Demo Account in MetaTrader 5 https://www.servergigabit.com/guide/kb/how-to-open-demo-account-in-metatrader-5 Tue, 09 Jun 2020 14:20:08 +0000 https://www.wesbytes.com/guide/?post_type=kb&p=2298 How to Open Demo Account in MetaTrader 5 1. Run the MetaTrader 5 Platform on your Server. 2. Click on “File” of the main menu. A drop-down menu will appear. Select “Open an Account” from there. 3. Select “Open a demo account to trade virtual money without rick and Click Next. 4. Fill out the fields of Opening a demo account…

The post How to Open Demo Account in MetaTrader 5 appeared first on Server Gigabit Guide.

]]>
How to Open Demo Account in MetaTrader 5

1. Run the MetaTrader 5 Platform on your Server.

2. Click on “File” of the main menu. A drop-down menu will appear. Select “Open an Account” from there.

MetaTrader 5-Demo Account-open an account

3. Select “Open a demo account to trade virtual money without rick and Click Next.

MetaTrader 5-Demo Account-Open a demo account to trade virtual money without rick

4. Fill out the fields of Opening a demo account and click “I agree with the terms and conditions…” and then Next.

MetaTrader 5-opening a demo acc-terms and condition

5. After that the registration is success and it will provide you the detail below, may save it and Finish.

MetaTrader 5-Demo Account-registration success

6. From here you can “Login to Trade Account” you have created.

MetaTrader 5-login to trade account

7. It will prompt below login that provide when creating the demo account and from here you will be accessing to the Server MetaQuotes-Demo.

MetaTrader 5-Demo Account-login page-Server MetaQuotes-Demo

 

 

 

Please refer to the following articles.How to connect to a Linux server using SSH?

The post How to Open Demo Account in MetaTrader 5 appeared first on Server Gigabit Guide.

]]>
How to in install Meta Trader to our Windows VPS https://www.servergigabit.com/guide/kb/how-to-in-install-metatrader-to-our-windows-vps Tue, 09 Jun 2020 14:06:00 +0000 https://www.wesbytes.com/guide/?post_type=kb&p=2297 Firstly you may need to have Windows SSDVPS in order to Install MetaTrader. Metatrader is a software developed by MetaQuotes Software for online trading. Most commonly used among forex traders as their trading platform. 1. Login to your Windows Server and open browser Internet Explorer or any browser available to install it and you will need to go to http://www.metatrader5.com/en/download and click on…

The post How to in install Meta Trader to our Windows VPS appeared first on Server Gigabit Guide.

]]>
Firstly you may need to have Windows SSDVPS in order to Install MetaTrader.

Metatrader is a software developed by MetaQuotes Software for online trading. Most commonly used among forex traders as their trading platform.

1. Login to your Windows Server and open browser Internet Explorer or any browser available to install it and you will need to go to http://www.metatrader5.com/en/download and click on Download MetaTrader 5.Windows VPS-Meta Trader-download MetaTrader 5

2. Once the MetaTrader download is complete, open the application to install, You will first be greeting with a Terms of License page. Click Yes, I agree with all terms of this license agreement and click Next.Windows VPS-Meta Trader-terms of License page

3. Afterwards it will download the required files, wait for the download to complete then hit Finish.

Windows VPS-Meta Trader-MetaTrader setup

4. Once installed, the page will directly prompt the Demo Account features as per below.Windows VPS-Meta Trader-demo account features

 

 

Please refer to the following articles How to set up private nameserver for Linux server

The post How to in install Meta Trader to our Windows VPS appeared first on Server Gigabit Guide.

]]>
How to set up private nameserver for Linux server https://www.servergigabit.com/guide/kb/how-to-set-up-private-nameserver-for-linux-server Tue, 09 Jun 2020 13:57:56 +0000 https://www.wesbytes.com/guide/?post_type=kb&p=2296 How to set up private nameserver for Linux server? Most users will want to use a domain name they already own, often the same domain name that is being used for the hostname of the server that will be running the private nameservers. For this example, we will use a fake domain called yourdomain.com. Our server is called host.yourdomain.com and…

The post How to set up private nameserver for Linux server appeared first on Server Gigabit Guide.

]]>
How to set up private nameserver for Linux server?

Most users will want to use a domain name they already own, often the same domain name that is being used for the hostname of the server that will be running the private nameservers.

For this example, we will use a fake domain called yourdomain.com. Our server is called host.yourdomain.com and we will be setting up ns1.yourdomain.com and ns2.yourdomain.com.

There are three parts to setting your private nameservers: Configuring the server to accept and process the DNS requests, registering your your new nameservers at the registrar who controls the domain name, and finally pointing domains at those new nameservers.

This article will guide on how to create private nameserver for Linux server.

For Linux server installed cPanel:

1. Log in to your WHM with URL : yourserverIPaddress/whm and find the navigation section on the left called Basic cPanel & WHM Setup, at the bottom, you will find the Nameservers section.

2. When you load this screen for the first time you may see that is two nameservers, using the same domain name as the server’s hostname are already in place. You may change the hostname and assign with the IP address for the nameserver.

3. Key in the new nameserver such as ns1.yourdomainname.com and assign the IP address. You need to have at least two nameserver names configured, so repeat this step to create your second nameserver.

4. When finished assigning IP addresses, make sure to click Save Changes (3).

5. If the domain name for example yourdomainname.com is yet to add in WHM , you may need to create a new cpanel account or add the DNS zone for the yourdomainname.com to enable the DNS for the domain name.

6. To add the DNS in WHM , go to DNS function and click on Add a DNS Zone.

7. Key in yourdomainname.com and add it with your server IP, then click on Add Zone.

8. Once the DNS zone successfully added, go to Edit DNS Zone , select yourdomainname.com from the list , add below A record for your nameserver under Add New Entries:

ns1: A record : your nameserver IP address

ns2: A record : your nameserver IP address

9. Click on Save to save the setting.

Please refer to the following articles How to set up private nameserver for Linux server

The post How to set up private nameserver for Linux server appeared first on Server Gigabit Guide.

]]>
How to connect to a Linux server using SSH? https://www.servergigabit.com/guide/kb/how-to-connect-to-a-linux-server-using-ssh Tue, 09 Jun 2020 13:57:30 +0000 https://www.wesbytes.com/guide/?post_type=kb&p=2295 Overview Secure Shell (SSH) is a UNIX-based command interface and protocol for securely getting access to a remote computer. SSH is actually a suite of three utilities slogin, ssh, and scp that are secure versions of the earlier UNIX utilities, rlogin, rsh, and rcp. SSH commands are encrypted and secured in several ways. Both ends of the client/server connection are…

The post How to connect to a Linux server using SSH? appeared first on Server Gigabit Guide.

]]>

Overview

Secure Shell (SSH) is a UNIX-based command interface and protocol for securely getting access to a remote computer. SSH is actually a suite of three utilities slogin, ssh, and scp that are secure versions of the earlier UNIX utilities, rlogin, rsh, and rcp. SSH commands are encrypted and secured in several ways. Both ends of the client/server connection are authenticated using a digital certificate, and passwords are protected by being encrypted.

WARNING : Please read our root access or Administrator access disclaimer below before you continue to read this article.

One of the greatest benefits of subscribing to our VPS or (Dedicated Server) plans is that you will have root or administrator’s access to the system. With this access, you are free to install or configure applications and scripts without the limitations of a shared environment and we encourage you to do so. However, having administrator rights also mean that files may be wrongly deleted or misconfigured which may result in a VPS (or Dedicated Server) going down. Do note that some of these changes are irreversible.

Our support team is always here to assist you when you need it. However, there are situations where even we are unable to undo, like the deletion of a database, or a deletion of an important system file. In such situations, we will have to re-install the OS which may result in a potential loss of data.

Initiate a SSH connection to the server

First, you need to choose a SSH client.

1.    Mac OS X includes the SSH client Terminal by default. Go to Application > Utilities > Terminal

Linux server-SSH-Application

Linux server-SSH-Terminal

Run below command to connect to your linux server via SSH (port 22):

[root@client ~]# ssh root@example.domain.com -p22 The authenticity of host 'example.domain.com (192.168.2.155)' can't be established. RSA key fingerprint is 45:83:45:4a:e3:29:7e:fa:f3:c3:7d:64:ea:3a:6f:58. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'example.domain.com,192.168.2.155' (RSA) to the list of known hosts. root@example.domain.com's password:

2.    Windows-based Operating Systems do not come with an SSH client by default. You can use PuTTY that can be downloaded from here.

  • Once you download Putty.exe to your windows machine, double click the putty.exe file

Linux server-SSH-Putty.exe file

  • Enter your connection settings. Host Name or server IP addressPort, and Connection Type(Leave it as default : SSH ). Then, Click Open to initiate the SSH connection.

Linux server-SSH-Putty configuration-connection settings

  • If this is your first time connecting to the server from this computer, you will see the following output. Accept the connection by clicking Yes.

Linux server-SSH-putty security alert

  • Once the SSH Connection is open, you should see a terminal prompt asking for your username. Type your username (i.e. root) and press Enter. Then, next it will asking you for the password. Type your password (you will NOT see your cursor moving, or any characters typed) and press Enter again.

Linux server-SSH-SSH connection-command prompt

  • You will see a prompt below if you succeed to connect to the server :[root@example ~]#

3.    Linux distributions include support it by default as well. Simply start up a terminal.

Run below command to connect to your linux server via SSH (port 22):

authenticity of host 'example.domain.com (192.168.2.155)' can't be established. RSA key fingerprint is 45:83:45:4a:e3:29:7e:fa:f3:c3:7d:64:ea:3a:6f:58. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'example.domain.com,192.168.2.155' (RSA) to the list of known hosts. root@example.domain.com's password:
Please refer to the following articles How to set up private nameserver for Linux server

The post How to connect to a Linux server using SSH? appeared first on Server Gigabit Guide.

]]>
5 Commands to check Linux Memory Usage https://www.servergigabit.com/guide/kb/5-commands-to-check-linux-memory-usage Tue, 09 Jun 2020 13:38:54 +0000 https://www.wesbytes.com/guide/?post_type=kb&p=2294 Linux Memory Usage There are commands for virtually everything on Linux, since the GUI may not always be available. Only shell access is available while operating on servers, so anything must be done from those commands. So today we are going to check commands that can be used on a Linux system to check memory use. Memory includes swap and…

The post 5 Commands to check Linux Memory Usage appeared first on Server Gigabit Guide.

]]>

Linux Memory Usage

There are commands for virtually everything on Linux, since the GUI may not always be available. Only shell access is available while operating on servers, so anything must be done from those commands. So today we are going to check commands that can be used on a Linux system to check memory use. Memory includes swap and RAM.
Checking the memory use and memory used per process on servers is also important so that resources are not shortened and users can access the server. For example a website. If you run a Webserver then the server must have enough memory to support the site visitors. If not, the site would become very slow or even go down when there is a traffic spike, simply because memory would fall short. It’s just like what happens on your desktop PC.

1. Free Command

The Free Command is the easiest and simplest command to use for checking memory use on Linux. Here’s just a short example:

$ free -m
             total       used       free     shared    buffers     cached
Mem:          7976       6459       1517          0        865       2248
-/+ buffers/cache:       3344       4631
Swap:         1951          0       1951

 

The m option displays all data in MBs. The total os 7976 MB is the total amount of RAM installed on the system, that is 8GB. The used column shows the amount of RAM that has been used by Linux, in this case around 6.4 GB. The output is pretty self-explanatory. The catch over here is the cached and buffers column. The second line tells that 4.6 GB is free. This is the free memory in the first line added with the buffers and cached amount of memory.
Linux has the habit of catching lots of things for faster performance, so that memory can be freed and used if needed.
The last line is the swap memory, which in this case is lying entirely free.

2. /proc/meminfo

The next way to check the use of memory is to read the “/proc/meminfo” file. Know that there are no actual files in /proc file system. These are rather virtual files which contain dynamic kernel and system information.

$ cat /proc/meminfo
MemTotal:        8167848 kB
MemFree:         1409696 kB
Buffers:          961452 kB
Cached:          2347236 kB
SwapCached:            0 kB
Active:          3124752 kB
Inactive:        2781308 kB
Active(anon):    2603376 kB
Inactive(anon):   309056 kB
Active(file):     521376 kB
Inactive(file):  2472252 kB
Unevictable:        5864 kB
Mlocked:            5880 kB
SwapTotal:       1998844 kB
SwapFree:        1998844 kB
Dirty:              7180 kB
Writeback:             0 kB
AnonPages:       2603272 kB
Mapped:           788380 kB
Shmem:            311596 kB
Slab:             200468 kB
SReclaimable:     151760 kB
SUnreclaim:        48708 kB
KernelStack:        6488 kB
PageTables:        78592 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6082768 kB
Committed_AS:    9397536 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      420204 kB
VmallocChunk:   34359311104 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB                 
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       62464 kB
DirectMap2M:     8316928 kB

Check the values of MemTotal, MemFree, Buffers, Cached, SwapTotal, SwapFree.
They indicate the same values of memory usage as the free command.

3. vmstat

The vmstat command with the s option lays out the memory usage statistics much like the proc command. Here is an example:

$ vmstat -s
      8167848 K total memory
      7449376 K used memory
      3423872 K active memory
      3140312 K inactive memory
       718472 K free memory
      1154464 K buffer memory
      2422876 K swap cache
      1998844 K total swap
            0 K used swap
      1998844 K free swap
       392650 non-nice user cpu ticks
         8073 nice user cpu ticks
        83959 system cpu ticks
     10448341 idle cpu ticks
        91904 IO-wait cpu ticks
            0 IRQ cpu ticks
         2189 softirq cpu ticks
            0 stolen cpu ticks
      2042603 pages paged in
      2614057 pages paged out
            0 pages swapped in
            0 pages swapped out
     42301605 interrupts
     94581566 CPU context switches
   1382755972 boot time
         8567 forks
$

The top few lines indicate total memory, free memory etc and so on.

4. top command

Typically, the top command is used to check the memory and CPU consumption per cycle. But it also records total use of memory and can be used to track total usage of RAM. The output header has the requisite information. The sample output here is:

top - 15:20:30 up  6:57,  5 users,  load average: 0.64, 0.44, 0.33
Tasks: 265 total,   1 running, 263 sleeping,   0 stopped,   1 zombie
%Cpu(s):  7.8 us,  2.4 sy,  0.0 ni, 88.9 id,  0.9 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   8167848 total,  6642360 used,  1525488 free,  1026876 buffers
KiB Swap:  1998844 total,        0 used,  1998844 free,  2138148 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND                                                                                 
 2986 enlighte  20   0  584m  42m  26m S  14.3  0.5   0:44.27 yakuake                                                                                 
 1305 root      20   0  448m  68m  39m S   5.0  0.9   3:33.98 Xorg                                                                                    
 7701 enlighte  20   0  424m  17m  10m S   4.0  0.2   0:00.12 kio_thumbnail

Check the KiB Mem and KiB Swap lines on the header. They indicate total, used and free amounts of the memory. The buffer and cache information is present here too, like the free command.

5. htop

Similar to the top command, the htop command also shows memory usage along with various other details.

Linux Memory Usage-command-htop

The header on top shows CPU usage along with RAM and swap usage with the corresponding figures.

RAM Information

To find out hardware information about the installed RAM, use the demidecode command. It reports lots of information about the installed RAM memory.

$ sudo dmidecode -t 17
# dmidecode 2.11
SMBIOS 2.4 present.

Handle 0x0015, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x0014
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 2048 MB
        Form Factor: DIMM
        Set: None
        Locator: J1MY
        Bank Locator: CHAN A DIMM 0
        Type: DDR2
        Type Detail: Synchronous
        Speed: 667 MHz
        Manufacturer: 0xFF00000000000000
        Serial Number: 0xFFFFFFFF
        Asset Tag: Unknown
        Part Number: 0x524D32474235383443412D36344643FFFFFF

Provided information includes the size (2048MB), type (DDR2) , speed(667 Mhz) etc.

Summary

All of the above commands operate from the terminal and have no interface. When dealing with a GUI on a desktop, use of a graphical display Interface tool is much simpler. Gnome-system-monitor on gnome and keyguard on KDE are the commonest tools. Both provide information about the resource use of CPU, RAM, swap, and network bandwidth in a graphical and easy to understand visual performance.

Please refer to the following articles How to set up private nameserver for Linux server

The post 5 Commands to check Linux Memory Usage appeared first on Server Gigabit Guide.

]]>