Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Shell

By editor , 16 June, 2017

Linux shell output - Handle StdOut

Tags

  • Linux
  • Shell

The linux shell/bash terminal default behaviour is print output to the terminal (StdOut : Standard output). But sometimes we need to change this behaviour like save toi a file, display noting ... Here some exaple of user case.

By editor , 9 February, 2017

Create interactive shell script. Prompt for Yes / No input

Tags

  • Linux
  • Shell

Prompt for Yes/No/Cancel input in a Linux shell / bash script

Example:

#!/bin/bash

echo "This script will ask a question.";

By editor , 27 August, 2016

Perl warning Setting locale failed

Tags

  • Server
  • Shell
  • Linux

For that, regenerate locals and setup locale settings.

Generate locals

Ex:# locale-gen en_US.UTF-8
Or :# locale-gen fr_FR.UTF-8

An also you can use # localedef -i en_US -f UTF-8 en_US.UTF-8

By editor , 8 August, 2016

Mysql Tips. Useful commands

Tags

  • Shell
  • Server
  • Database

Show all columns of a table.

Syntax: SHOW COLUMNS FROM the_table_name;
Example: Show all columns of the mysql user table.
mysql> SHOW COLUMNS FROM mysql.user;

By editor , 19 July, 2016

Create a CIFS - SAMBA Network Share on Linux

Tags

  • Server
  • Shell

Samba Server

Simple way to create a cifs on debian linux based systems via command line interface (CLI).

1. If not already insttalled, install SAMBA
sudo apt-get update
sudo apt-get install samba

By editor , 6 July, 2016

Command Line Editors on Linux (vim & nano)

Tags

  • Linux
  • Shell

Vi - Vim Ccommand line editor's Usefull commands

vim filename.txt (to create or open a file)

By editor , 3 July, 2016

Set file Permissions on Linux and ACL

Tags

  • Server
  • Shell
  • Linux

Using chmod, chown chgrp

Change File / Directories permissions.

chmod 0777 . -R #
chmod g+s /var/www #
chmod +x *.sh #

Change File / Folder Owner.

chown www-data:www-data -R .

Change File / Directories Group.

By nuwantha , 2 July, 2016

Install PHP 5 (5.4, 5.5, 5.6) and PHP 7 on Linux

Tags

  • Server
  • Shell
  • PHP

Via PPA

Install PHP 5.4 On linux (Debian, Ubuntu, Mint ...)

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5-oldstable
sudo apt-get update
sudo apt-get install -y php5

By editor , 1 July, 2016

Install LAMP On Debian based Linux

Tags

  • Linux
  • Shell
  • Server

Install Apache 2 server

sudo apt-get install apache2

#Test Apache 2
#Open : http://localhost/

By editor , 27 June, 2016

MySQL Recover / Change root Password

Tags

  • Server
  • Shell
  • Database

1. Stop the MySQL service of started

sudo /etc/init.d/mysql stop #On Debian based linux systems (Ubuntu, Mint ...)
sudo /etc/init.d/mysqld stop #On Red Hat Enterprise based Linux systems (CentOS, Fedora, Suse ...)

Pagination

  • Previous page
  • 2
  • Next page
Shell

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer