Browsed by
Category: Linux

Create your own video streaming server with Linux

Create your own video streaming server with Linux

Create your own video streaming server with Linux Set up a basic live streaming server on a Linux or BSD operating system. 08 Jan 2019 Aaron J. Prisk Feed  240 up 17 comments Image by : Opensource.com Live video streaming is incredibly popular—and it’s still growing. Platforms like Amazon’s Twitch and Google’s YouTube boast millions of users that stream and consume countless hours of live and recorded media. These services are often free to use but require you to have an account…

Read More Read More

How to Remotely Open a GUI Application With PuTTY

How to Remotely Open a GUI Application With PuTTY

Eny Setiyowati/Shutterstock.com Want to remotely access a Linux machine and launch a graphical application? PuTTY to the rescue, thanks to the “enable X11 forwarding” option. You can even do this from Windows—all you need to do is quickly install an X server. The PuTTY program was initially written for Windows, 20 years ago. It has been ported to many other platforms since. It is a graphical application that provides a terminal window and remote connection to other computers. Typically, the connection…

Read More Read More

RHEL7: Provide SMB network shares to specific clients.

RHEL7: Provide SMB network shares to specific clients.

RHEL7: Provide SMB network shares to specific clients. Configuration Procedure Install the Samba packages: # yum groupinstall -y “file-server” # yum install -y samba-client samba-winbind Create a new /etc/samba/smb.conf file and add the following lines (for a workgroup named MYGROUP, a server called MYSERVER, a local network with IP addresses in 192.168.1.0/24, a user named user01 and a share called shared): workgroup = MYGROUP server string = Samba Server Version %v netbios name = MYSERVER interfaces = lo eth0 192.168.1.0/24 hosts allow = 127. 192.168.1. log file = /var/log/samba/log.%m max…

Read More Read More

Red Hat 7 – Integrating Linux Systems with Active Directory Environments

Red Hat 7 – Integrating Linux Systems with Active Directory Environments

Windows Integration Guide – Red Hat Enterprise Linux 7 Integrating Linux Systems with Active Directory Environments Abstract Heterogeneous IT environments often contain various different domains and operating systems that need to be able to seamlessly communicate. Red Hat Enterprise Linux offers multiple ways to tightly integrate Linux domains with Active Directory (AD) on Microsoft Windows. The integration is possible on different domain objects that include users, groups, services, or systems. This guide also covers different integration scenarios, ranging from lightweight AD pass-through…

Read More Read More

RedHat 7 – Get Access to System During the Boot Process

RedHat 7 – Get Access to System During the Boot Process

RHEL7: Interrupt the boot process in order to gain access to a system. Note: This is a critical RHCSA 7 exam objective (if you can’t take control of a VM through a reboot at the beginning of the exam, you will fail it entirely). Presentation In RHEL 7, the procedure to get access to a system during the boot process and modify the root password has changed because of the adoption of Systemd. There were several procedures floating around to…

Read More Read More

Installing PowerShell on Linux

Installing PowerShell on Linux

CentOS 7 This package also works on Oracle Linux 7. Installation via Package Repository (preferred) – CentOS 7 PowerShell Core for Linux is published to official Microsoft repositories for easy installation (and updates). # Register the Microsoft RedHat repository curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo # Install PowerShell sudo yum install -y powershell # Start PowerShell powershell After registering the Microsoft repository once as superuser, you just need to use sudo yum update powershell to update PowerShell. Installation via Direct…

Read More Read More

DOSify Linux – Linux Alias (How make Linux less stupid) mkdir, rmdir …

DOSify Linux – Linux Alias (How make Linux less stupid) mkdir, rmdir …

Why would Linux people make commands longer than the Windows people ? How to fix it in Linux: alias dir=”ls” alias copy=”cp” alias rename=”mv” alias md=”mkdir” alias rd=”rmdir” alias del=”rm -i”   More Information About Alias:   The alias Command   The alias command makes it possible to launch any command or group of commands (inclusive of any options, arguments and redirection) by entering a pre-set string (i.e., sequence of characters).That is, it allows a user to create simple names…

Read More Read More

Learning Linux

Learning Linux

Website Training: https://linuxjourney.com/ https://training.linuxfoundation.org/free-linux-training http://www.tecmint.com/free-online-linux-learning-guide-for-beginners/ YouTube Introduction Training: (it is better to just do it rather than watch the video) https://www.youtube.com/watch?v=9t_gJWC32zk Free eBooks: http://www.rickyadams.com/wp/wp-content/uploads/2017/05/linuxfun.pdf http://www.rickyadams.com/wp/wp-content/uploads/2017/05/Introduction-to-Linux-Hands-On.pdf http://www.rickyadams.com/wp/wp-content/uploads/2017/05/Linux-Advanced-Administration.pdf Online Resources: http://www.rickyadams.com/wp/index.php/linux/ http://www.rickyadams.com/wp/?s=linux https://en.wikibooks.org/wiki/LPI_Linux_Certification http://linuxreviews.org/

Linux Processes

Linux Processes

My Favorites: ps, pgrep, pkill How to Manage Processes from the Linux Terminal: 10 Commands You Need to Know The Linux terminal has a number of useful commands that can display running processes, kill them, and change their priority level. This post lists the classic, traditional commands, as well as some more useful, modern ones. Many of the commands here perform a single function and can be combined — that’s the Unix philosophy of designing programs. Other programs, like htop,…

Read More Read More

How to setup cifs mounts in autofs using kerberos authentication on RedHat Linux

How to setup cifs mounts in autofs using kerberos authentication on RedHat Linux

How to setup cifs mounts in autofs using kerberos authentication Solution Verified – Updated March 6 2017 at 2:24 AM – English No translations currently exist. Environment Red Hat Enterprise Linux 6 Please Note: Kerberos support for CIFS mounts is considered Tech Preview in Red Hat Enterprise Linux 5. See 5.8 Technical Notes for more information. Issue How to setup cifs mounts in autofs using kerberos authentication? Configuration for authentication to cifs shares with a kerberos ticket. Resolution using sssd…

Read More Read More

Linux CIFS AutoFS (automount) using Kerberos Authentication and kinit

Linux CIFS AutoFS (automount) using Kerberos Authentication and kinit

Setup Linux CIFS AutoFS (automount) using kerberos authentication March 5, 2015 ~ tatroc2015 Written using CentOS 6, Windows 2012 Active Directory This guide was written assuming you already have Kerberos authentication working. In this post I will describe how to mount a Windows CIFS share from a Linux system using Kerberos authentication to a Windows Active Directory domain. In addition, the users credentials will be stored securely in a keytab file. Step 1. verify you can get a Kerberos ticket kinit…

Read More Read More

Linux CHMOD File Permissions Decoded from the 1980s

Linux CHMOD File Permissions Decoded from the 1980s

Linux File Permissions In Ubuntu / Linux everything is a file, so everything will have permissions also. File permissions define which user or system accounts have permissions to read, write, and execute specific files. These read, write, and execute permissions are defined for: user the user that owns the file group users in the files group other every other user There are also three other components when it comes to file mode bits, namely the setuid bit, the setgid bit,…

Read More Read More

Packer: In 10 minutes, from zero to bootable VirtualBox Ubuntu 12.04

Packer: In 10 minutes, from zero to bootable VirtualBox Ubuntu 12.04

Packer: In 10 minutes, from zero to bootable VirtualBox Ubuntu 12.04 Updated: June 21, 2016 Trying to build a simple VirtualBox Ubuntu image was not without digging around, even though the documentation at Packer would lead you to believe everything is quite straightforward. If you were looking for a concrete example of creating a VirtualBox Ubuntu 12.04 LTS image with Packer, this should be a straightforward guide to get you up and running fast. (Updated for packer v0.10.1) Packer is…

Read More Read More

Linux Script to Autostart a Background Process if not running

Linux Script to Autostart a Background Process if not running

# start a background process if it is not running, can also use in cron to check every hour or so #!/bin/sh if ! ps -elf | grep -v grep | grep processname ; then python processname.py >> /home/user/bin/spooler.log & ## #mailing program ## /home/user/bin/simplemail.php “Print spooler was not running… Restarted.” fi

Linux TarBall Create and Extract

Linux TarBall Create and Extract

Create a TarBall File tar -zcvf archive-name.tar.gz directory-name Where, -z : Compress archive using gzip program -c: Create archive -v: Verbose i.e display progress while creating archive -f: Archive File name For example, say you have a directory called /home/jerry/prog and you would like to compress this directory then you can type tar command as follows: $ tar -zcvf prog-1-jan-2005.tar.gz /home/jerry/prog Above command will create an archive file called prog-1-jan-2005.tar.gz in current directory. If you wish to restore your archive…

Read More Read More

KVM Installation on Linux

KVM Installation on Linux

KVM/Installation  Reference: https://help.ubuntu.com/community/KVM KVM Introduction   Ubuntu uses KVM as the back-end virtualization technology primarily for non-graphic servers and libvirt as its toolkit/API. Libvirt front ends for managing VMs include virt-manager (GUI) or virsh (CLI). Alternative management options include convirt (GUI) or convirt2 (WWW). Documentation   Installation – Installation and removal of KVM Networking – Network configuration; includes bridging Guest Creation – Creation of different kinds of guests Guest Management – Management of guests; command line or graphically Guest Console…

Read More Read More

Installing VMtools Linux Server with only a command line interface

Installing VMtools Linux Server with only a command line interface

Installing VMtools Linux (Ubuntu) Server with only a command line interface Go to Virtual Machine > Install VMware Tools (or VM > Install VMware Tools).Note: If you are running the light version of Fusion, or a version of Workstation without VMware Tools, or VMware Player, you are prompted to download the Tools before they can be installed. Click Download Now to begin the download. In the Ubuntu guest, run these commands: Run this command to create a directory to mount…

Read More Read More

Using the vi Text Editor in Linux

Using the vi Text Editor in Linux

How do I use the vi text editor? The vi text editor has three modes: command mode, input mode, and ex mode. Command mode When starting, vi begins in command mode. If you are ever unsure which mode you’re in, press Esc to return to command mode. In command mode, you can move around with the arrow keys, or by using the vi movement keys, as follows: h left j down k up l right Several vi commands are listed…

Read More Read More

Adding Users to sudo Access

Adding Users to sudo Access

Procedure 2.2. Configuring sudo Access Log in to the system as the root user. Create a normal user account using the useradd command. Replace USERNAME with the user name that you wish to create. # useradd USERNAME Set a password for the new user using the passwd command. # passwd USERNAME Changing password for user USERNAME. New password: Retype new password: passwd: all authentication tokens updated successfully. Run the visudo to edit the /etc/sudoers file. This file defines the policies applied by…

Read More Read More