Skip to main content

Posts

Showing posts with the label ubuntu

Docker - Ubuntu - bash: ping: command not found

Docker images are pretty minimal, But you can install  ping  in your official ubuntu docker image via: apt-get update apt-get install iputils-ping Chances are you dont need  ping  your image, and just want to use it for testing purposes. Above example will help you out. But if you need ping to exist on your image, you can create a  Dockerfile  or  commit  the container you ran the above commands in to a new image. Commit: docker commit -m "Installed iputils-ping" --author "Your Name <name@domain.com>" ContainerNameOrId yourrepository/imagename:tag Dockerfile: FROM ubuntu RUN apt-get update && apt-get install -y iputils-ping CMD bash

PAE - Physical Address Extension

In  computing ,  Physical Address Extension  ( PAE ), sometimes referred to as  Page Address Extension ,  is a memory management feature for the x86 architecture. PAE was first introduced by Intel in the  Pentium Pro , and later by AMD in the  Athlon  processor.  It defines a  page table  hierarchy of three levels (instead of two), with table entries of 64 bits each instead of 32, allowing these CPUs to directly access a physical  address space  larger than 4  gigabytes  (2 32  bytes). The page table structure used by  x86-64  CPUs when operating in  long mode  further extends the page table hierarchy to four levels, extending the virtual address space, and uses additional physical address bits at all levels of the page table, extending the physical address space. It also uses the topmost bit of the 64-bit page table entry as a no-execute or  "NX" bit , indicating that code cannot be executed from the associated page. The NX feature is also available in  protected mode  when ...

pyDash – A Web Based Linux Performance Monitoring Tool

pydash  is a lightweight  web-based monitoring tool for Linux  written in  Python  and  Django  plus  Chart.js . It has been tested and can run on the following mainstream Linux distributions: CentOS, Fedora, Ubuntu, Debian, Arch Linux, Raspbian as well as Pidora. You can use it to keep an eye on your Linux PC/server resources such as CPUs, RAM, network stats, processes including online users and more. The dashboard is developed entirely using Python libraries provided in the main Python distribution, therefore it has a few dependencies; you don’t need to install many packages or libraries to run it. In this article, we will show you how to install  pyda sh to monitor Linux server performance. How to Install pyDash in Linux System 1.  First install required packages:  git  and  Python pip  as follows: -------------- On Debian/Ubuntu -------------- $ sudo apt-get install git python-pip -------------- On Ce...

pyDash – A Web Based Linux Performance Monitoring Tool

pydash is a lightweight web-based monitoring tool for Linux written in Python and Django plus Chart.js . It has been tested and can run on the following mainstream Linux distributions: CentOS, Fedora, Ubuntu, Debian, Arch Linux, Raspbian as well as Pidora. You can use it to keep an eye on your Linux PC/server resources such as CPUs, RAM, network stats, processes including online users and more. The dashboard is developed entirely using Python libraries provided in the main Python distribution, therefore it has a few dependencies; you don’t need to install many packages or libraries to run it. In this article, we will show you how to install pyda sh to monitor Linux server performance. How to Install pyDash in Linux System 1. First install required packages: git and Python pip as follows: -------------- On Debian/Ubuntu -------------- $ sudo apt-get install git python-pip -------------- On CentOS/RHEL -------------- # yum install epel-release # yum install git python-pip ------...

fswatch – Monitors Files and Directory Changes or Modifications in Linux

fswatch  is a cross-platform, file change monitor that gets notification alerts when the contents of the specified files or directories are altered or modified. It executes four types of monitors on different operating systems such as: A monitor build on the File System Events API of Apple OS X. A monitor based on  kqueue , a notification interface present in FreeBSD 4.1 also supported on many *BSD systems, OS X inclusive. A monitor based on File Events Notification API of the Solaris kernel plus its spin-offs. A monitor based on inotify, a kernel subsystem that shows file system modifications to apps. A monitor based on ReadDirectoryChangesW, a Windows API that records alters to a directory. A monitor that regularly check that status of file system, keeps file modification times in memory, and manually determine file system changes (which works anywhere, where stat can be used). Features of fswatch Supports several OS-specific APIs Allows recursive directory ...

fswatch – Monitors Files and Directory Changes or Modifications in Linux

fswatch is a cross-platform, file change monitor that gets notification alerts when the contents of the specified files or directories are altered or modified. It executes four types of monitors on different operating systems such as: A monitor build on the File System Events API of Apple OS X. A monitor based on kqueue , a notification interface present in FreeBSD 4.1 also supported on many *BSD systems, OS X inclusive. A monitor based on File Events Notification API of the Solaris kernel plus its spin-offs. A monitor based on inotify, a kernel subsystem that shows file system modifications to apps. A monitor based on ReadDirectoryChangesW, a Windows API that records alters to a directory. A monitor that regularly check that status of file system, keeps file modification times in memory, and manually determine file system changes (which works anywhere, where stat can be used). Features of fswatch Supports several OS-specific APIs Allows recursive directory monitoring ...

How to Trace Execution of Commands in Shell Script with Shell Tracing

In this article of the shell script debugging series, we will explain the third shell script debugging mode, that is shell tracing and look at some examples to demonstrate how it works, and how it can be used. The previous part of this series clearly throws light upon the two other shell script debugging modes:  verbose mode  and  syntax checking  mode with easy-to-understand examples of how to enable shell script debugging in these modes. Shell tracing simply means tracing the execution of the commands in a shell script. To switch on shell tracing, use the  -x  debugging option. This directs the shell to display all commands and their arguments on the terminal as they are executed. We will use the  sys_info.sh  shell script below, which briefly prints your system date and time, number of users logged in and the system uptime. However, it contains syntax errors that we need to find and correct. #!/bin/bash #script to print brief ...

How to List Files Installed From a RPM or DEB Package in Linux

Have you ever wondered where the various files contained inside a package are installed (located) in the Linux file system? In this article, we’ll show how to list all files installed from or present in a certain package or group of packages in Linux. This can help you to easily locate important package files like configurations files, documentation and more. Let’s look at the different methods of listing files in or installed from a package: How to List All Files of Installed Package in Linux You can use the  repoquery command  which is part of the  yum-utils to list files installed  on a CentOS/RHEL system from a given package. To install and use  yum-utils , run the commands below: # yum update # yum install yum-utils Now you can list files of an installed RPM package, for example  httpd  web server (note that the package name is case-sensitive). The  --installed  flag means installed packages and  -l  flags enabl...

Linux commands

sudo!! : Forgot to run a command with sudo? You need not re-write the whole command, just type "sudo!!" and the last command will run with sudo. 2. Python -m SimpleHTTPServer : Creates a simple web page for the current working directory over port 8000. 3. mtr : A command which is a combination of 'ping' and 'traceroute' command. 4. Ctrl+x+e : This key combination fires up, an editor in the terminal, instantaneously. 5. nl : Outputs the content of text file with lines Numbered. 6. shuf : Randomly selects line/file/folder from a file/folder. 7. ss : Outputs Socket Statistics. 8. Last: Want to know history of last logged in users? This command comes to rescue here. 9. curl ifconfig.me : Shows machine's external IP Address. 10. tree : Prints files and folders in tree like fashion, recursively. 11. Pstree : Prints running processes with child processes, recursively. 13. stat : Shows the status information of a file as well as of a file s...