User management in Ubuntu

Posted on Posted in Linux-Ubuntu, Programming

Show last user logins into the system lastlog | less Currently logged in users in the system who Add new user adduser username usergroupname (perl calling useradd) useradd username Delete user userdel username userdel -r username removing home directory deluser with /etc/deluser.conf (Debian and derivatives) deluser –remove-home    

Bash Reference

Posted on Posted in Linux-Ubuntu, Programming

The Shebang (#!) In the beginning, first line of the file, no spaces. Next, absolute path to the script interpreter (might change, but better to execute anywhere), in this case: /bin/bash Call to the script does not look in current directory, so ./ is necessary or it has to be included in PATH Special System […]

Check Ubuntu Hardware

Posted on Posted in Linux-Ubuntu, Programming

List summary of hardware: lshw -short List summary of PCI devices: lspci -v H/W path Device Class Description =========================================================== system PowerEdge R420 (SKU=NotProvided;ModelName=PowerEdge R420) /0 bus 0K29HN /0/0 memory 64KiB BIOS /0/400 processor Intel(R) Xeon(R) CPU E5-2403 v2 @ 1.80GHz /0/400/700 memory 128KiB L1 cache /0/400/701 memory 1MiB L2 cache /0/400/702 memory 10MiB L3 cache […]

PDFtk server

Posted on Posted in C++, Linux-Ubuntu, Programming

  Build PDFtk Server You can compile PDFtk Server from its source code. PDFtk Server is known to compile and run on Debian, Ubuntu Linux, FreeBSD, Slackware Linux, SuSE, Solaris and HP-UX. Download and unpack: pdftk-2.02-src.zip (~2MB) Review the pdftk license information in: license_gpl_pdftk/readme.txt. Review the Makefile provided for your platform and confim that TOOLPATH […]

Useful terminal commands in Ubuntu

Posted on Posted in Linux-Ubuntu, Programming

INSTALL COMMAND-LINE INTERFACE (CLI) SOFTWARESome of the commands listed below are not available in Ubuntu or Debian by default. To install the remaining CLI software, download the installation script install-additional-cli-software.sh, open your terminal, and execute it: bash install-cli-software.sh. 1. ESSENTIAL COMMANDS Navigation: pwd, ls, cd folder (folders are case sensitive!), cd … File manipulation: cat, […]

Byobu

Posted on Posted in Linux-Ubuntu, Programming

It allows for the execution of multiple shells in one terminal. Byobu now includes an enhanced profiles, convenient keybindings, configuration utilities, and toggle-able system status notifications. Invoke it simply with: byobu Now bring up the configuration menu. By default this is done by pressing the F9 key. This will allow you to: View the Help […]