Configuring Ubuntu style sudo privilege authorization on Debian Linux

The following lines will describe a procedure on how to mimic Ubuntu’s sudo privilege authorization system on Debian Linux. Sudo allows users to run programs with the authorization privileges of another user by supplying their own password for authentication.

If you have not done so yet, first install sudo package:

# apt-get install sudo

Once sudo is installed run:

# visudo

which allows you to edit the content of /etc/sudoers file. Change the content of this file as show below:

Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

root    ALL=(ALL:ALL) ALL
%admin ALL=(ALL) ALL
%sudo   ALL=(ALL:ALL) ALL

Read more

steam client installation updating debian 8 jessie linux

Installation of Steam Client on Debian Jessie 8 Linux 64-bit

This article describes an installation of the Valve Steam Linux client on Debian 8 Jessie 64bit. The article assumes that you have already installed your VGA drives required to run Steam client. Let’s start with steam client download:

$ wget http://media.steampowered.com/client/installer/steam.deb

Once you have client downloaded install the steam.deb package. Please not the below command requires root privileges and will show errors due to the dependency problems which we will address next:

# dpkg -i steam.deb
Selecting previously unselected package steam-launcher.
(Reading database ... 82762 files and directories currently installed.)
Preparing to unpack steam.deb ...
Unpacking steam-launcher (1.0.0.49) ...
dpkg: dependency problems prevent configuration of steam-launcher:
 steam-launcher depends on curl; however: 
  Package curl is not installed.
 steam-launcher depends on zenity; however:   
  Package zenity is not installed. 
                                            
dpkg: error processing package steam-launcher (--install): 
 dependency problems - leaving unconfigured
Processing triggers for mime-support (3.58) ...   
Processing triggers for hicolor-icon-theme (0.13-1) ...  
Processing triggers for man-db (2.7.0.2-5) ... 
Errors were encountered while processing:  
 steam-launcher   

Read more

Custom kernels in Ubuntu/Debian – how, when and why

So, you’ve decided to try out this thing you heard others talk about, called ‘compiling a custom kernel’. If you are trying this as a hobby, or because you want to learn a new skill, very well – read on.

However, before we start, we will try to explain situations when this need arises and how to deal with it. Note that this is an extensive subject which needs much more in terms of space than we will provide here. You will learn the basics, what you need, what to do and what you’ll achieve.

For more info, as usual, Google is your friend; also , the documentation resident in the kernel source tree will answer lots of questions. So, let’s start with the beginning, with a last note : if need arises, we will publish more articles related to kernel compiling pertaining to other distros.

Read more

installation of Firefox Web Browser on debian linux jessie 8

Simple Firefox Web Browser installation on Debian 8 Jessie Linux

There are many web browsers which comes from official Debian Jessie 8 repositories such as Iceweasel, Konqueror to name just few. For all reasons and intentions you should be able to do any work required a web browser using Iceweasel the official Debian Firefox clone. However, if you insists on using Firefox web browser you can install it easily by using Linux Mint’s imports repository. First edit your /etc/apt/sources.list file to include:

deb http://packages.linuxmint.com debian import

Update system repositories:

# apt-get update

Read more

Configure Supervisor to run Apache2 webserver on Ubuntu/Debian Linux

The idea about starting your services under Supervisor’s supervision is to be able to run multiple services under a single daemon. Depending on the Supervisor’s configuration it will be able to start,stop or restart any given service as a child process. In this config we show how to runapache2 as supervised service ( useful for docker images etc. ) on Ubuntu/Debian Linux.
First, install supervisor:

# apt-get install supervisor

Include apache2‘s supervisor configuration into /etc/supervisor/conf.d/. Supervisor will pick any configuration files from this directory where the only requirement is *.conf file extension. For example insert a following lines into a new file /etc/supervisor/conf.d/apache2.conf:

[program:apache2]
command=/usr/sbin/apache2ctl -DFOREGROUND

Read more

Nginx web server Docker image based on Debian GNU/Linux

About

The automated build docker Nginx image “linuxconfig/nginx” can be used as a basic testing environment for a static websites deployments.

Configuration

The image is build based on default Nginx webserver configuration running on Debian GNU/Linux. Nginx webserver run in foreground and listens on default port 80.

Usage

Create a directory and place your static website within.

$ mkdir html
$ echo "My Static Website" > html/index.html
OR
$ cp -r /path/to/your/static/website/* html/

Read more

Enable SSH root login on Debian Linux Server

After fresh system installation the root login on the Debian Linux is disabled by default. When you attempt to login as root user to your Debian Jessie Linux server the access will be denied eg.:

$ ssh root@10.1.1.12
root@10.1.1.12's password: 
Permission denied, please try again.
root@10.1.1.12's password: 
Permission denied, please try again.
root@10.1.1.12's password: 
Permission denied (publickey,password).

To enable SSH login for a root user on Debian Linux system you need to first configure SSH server. Open /etc/ssh/sshd_config and change the following line:

FROM:
PermitRootLogin without-password
TO:
PermitRootLogin yes

Read more

How to install and setup Debian 8 minimalist Docker Host

Author:Tobin Harding
Task is to configure x86 bare metal machine as a docker host using
Debian 8. You will need a network connection to the host to follow
this guide. Also a connected keyboard and monitor.

Prerequisites

  1. Host machine. I will be using an optiplex 760 but any machine will
    do.
  2. Internet connection. I will be using the net install Debian 8
    image.
  3. About half an hour.

Read more

Debian apt-get wheezy sources.list

Related sources.list repositories:
Wheezy,
Jessie,
Stretch,
Buster

Security Updates

# /etc/apt/sources.list :
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

Australia Mirror

# /etc/apt/sources.list :
deb http://ftp.au.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.au.debian.org/debian/ wheezy main contrib non-free

Read more