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

Tutorials - Other

By editor , 13 June, 2018

Connect to a PPTP VPN Server from Linux Terminal

Tags

  • Linux
  • Services

Step 1 : Install pptp client.

sudo apt-get -y install pptp-linux


Step 2 : Setup PPTP Client

Add secret:

File : /etc/ppp/chap-secrets
You can use:
sudo nano /etc/ppp/chap-secrets

By editor , 11 June, 2018

rsync : Backup data on linux

Tags

  • Linux
  • Utility
  • Server

rsync is a powerfull tool to synchronize the files and directories. Can be use for local or remote using ssh.

Source Tutorial : https://www.thegeekstuff.com/2010/09/rsync-command-examples/

Syntax
rsync options source destination

By editor , 30 May, 2018

Mount LUKS encrypted volumes from command line

Tags

  • Linux

Mount a linux partition encrypted with LUKS using terminal

Install Crypsetup:

sudo apt-get install cryptsetup

To decrypt the volume:

sudo cryptsetup luksOpen /dev/sda1 my_encrypted_volume

By editor , 15 May, 2018

Add rc.local to Debian 9 Stretch

Tags

  • Linux
  • Server

/etc/rc.local is depricated on debian 9.

You can try this to add it. (Not tested)

 

1) Create the file : /etc/systemd/system/rc-local.service

# nano /etc/systemd/system/rc-local.service

2) Copy this text.

By editor , 11 May, 2018

Mount SAMBA NFS share folder on linux

Tags

  • Shell
  • Linux

Access to a SAMBA file share from a file explorer

Juste enter the address of your share like:
smb://<IP or HOST>/<Folder>
Example:
smb://192.168.0.1/DATA
smb://192.168.0.1/

By editor , 3 May, 2018

Install GitLab Community Edition

Tags

  • Server
  • Git
  • Linux

The official tutorial is hear : https://about.gitlab.com/installation/#debian?version=ce
CE or EE : https://about.gitlab.com/installation/ce-or-ee/?distro=debian

By nuwantha , 29 April, 2018

Setup PPTP VPN Server on Debian/Ubuntu Linux

Tags

  • Server
  • Linux

Setup PPTP Server

First we need to install pptp server using apt-get

# sudo apt-get install pptpd

Then we need to configure the pptpd.

# sudo nano /etc/pptpd.conf

By editor , 21 March, 2018

Completely reset GIT repository

Tags

  • Git
  • Code

Completely reset

Delete the .git directory locally.

Recreate the git repository:

$ cd (project-directory)
$ git init
$ (add some files)
$ git add .
$ git commit -m 'Initial commit'

By editor , 2 March, 2018

Create a Pagination with PHP

Tags

  • PHP
  • Code

Example of a pager (pagination) on php:

function showpager($currentIndex = 0, $buttons = 5, $totalPages = 50) {
  $currentPage = $lowerLimit = $upperLimit = min($currentIndex, $totalPages);
  //Search boundaries

By editor , 2 February, 2018

Tips for Webmin and Virtualmin

Tags

  • Server
  • Linux

Webmin and Virtualmin Change IP access control from shell terminal.

Edit file: /etc/webmin/miniserv.conf
vim /etc/webmin/miniserv.conf

Change:
allow=OLD_IP to New IP
Example:
allow=123.214.123.123 85.25.65.45 45.65.85.36

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page

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