This is an article written just to show how to install npm. Basically the installation executed in the command line interface where the npm installed will be intended to be executed in the Linux operating system. Basically the installation of ‘npm’ itself is actually performed using a command executed in the terminal or any command line interface.
In an operating system based on Ubuntu Linux for an example, the installation is actually done by using a command executed in a command line interface. For a start, there is a certain command that can be executed to check whether an utiltiy called npm has already been installed or not. It can be retrieved from an information in an article titled ‘Ubuntu Search Installed Packages’ which exist in this link .
Continue reading “How to install npm”
Mount Sharing Folder in a other Server, Workstation running Linux Samba Shared Directory or Folder
mount -t cifs //xxx.xxx.xxx.xxx/shared_name /mnt/mount_point_name/ -o username=samba_username_for_access
user@hostname:~# mount -t cifs //10.0.0.17/shared /mnt/test/ -o username=mike
Password for mike@//10.0.0.17/shared ****************
This article is written to show how to do the thing specified in the title of this article. It is about how to check operating system name and also the version of it. In order to achieve the purpose or the goal, the exact or the suitable command is needed to be performed. It is actually a command performed in any terminal or any tool which is considered as text or command line interface. Any host, workstation or server which is running in a GUI (Graphical User Interface) or in a CLI (Command Line Interface) doesn’t matter at all. As long as the operating system has any command line interface in order execute a command for printing or showing the operating system name. Below is the command :
Continue reading “How to Check Operating System Name and Version in Linux”
This article where the title is ‘How to Check hard disk Size in Linux’, as described in the title, it is an article which is written to show how to check the hard disk size in Linux operating system. It is utilizing a certain command available in the Linux operating system. The command is executed in the bash shell prompt. So, to be able to perform the command, either the operating system runs in GUI (Graphical User Interface) or in CLI (Command Line Interface), a terminal or any command line interface is needed.
Those commands are shown as follows :
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 238,5G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 230,1G 0 part /
└─sda3 8:3 0 7,9G 0 part [SWAP]
Continue reading “How to Check hard disk Size in Linux”
This is an article related on the administration of Linux operating system specifically on how to SSH automatically without password using a public key. Sometimes, network administrator or any professions or roles related which need a remote access to a specific host, server or workstation must have an automatic access without having to entry the password.
For an instance, if there is a certain file which is generated daily as a backup mechanism executed by a cron task scheduler and it need to be moved or it need to be duplicate as soon as possible without having to be interfered or done by someone manually, the process of the file duplication where the destination exist in a remote host, server or workstation or any other storage media, it is important to connect or to copy remotely in a non-interactive mode. In other words, no password is needed to do the task described above.
The protocol utilized to accomplish the tasks is a remote access protocol known as SSH (Secure Shell). It is a network protocol for permitting remote access securely so that the means for accessing remote host, server or workstation is provided securely. Below are the steps taken to accomplish the task :
- Generate public key from the server, host or workstation which is going to remote the destination server, host or workstation as shown below :
Continue reading “How to SSH Automatically without Password using Public Key”
The article in this occasion is written on how to run shell script in background process via command line. Basically the example of the shell script run in the context of this article is a Wildfly Java Application Server shell script. The shell script is normally ended with the file extension of .sh and as the example given in this article, the shell script is located in the folder of /opt/wildfly-10.1.0-Final/bin :
user@hostname:/$ tree /opt/wildfly-10.1.0.Final/bin/
1 directory, 49 files
The shell script is ‘standalone.sh’ and it must be executed without any chances to be terminated accidentally after the script itself is executed. For an example, below is the normal execution of the shell script :
Continue reading “Run Shell Script in Background Process via Command Line”
This is an article which inform how to reset the file sudoers which is located in etc folder. In other means, this article will inform how to edit file in /etc/sudoers without having to edit it. This case is also effective for a condition which is not allowing to execute the ‘visudo’ command to be executed and furthermore edit file sudoers located in etc folder or the /etc/sudoers file.
Normally, editing file /etc/sudoers or executing the ‘visudo’ command will allow and enable any user to be added in order for an example having a security privilege of another user such as ‘root’. The information about this case can be retrieved by reading the article titled ‘Cannot switch to root because username is not in the sudoers file Ubuntu’ in this link.
Continue reading “Cannot sudo Ubuntu”