Monday, July 22, 2013

Essential and Influential Readings(Textbooks and Research Papers) in Operating Systems, Computer Architecture, and Computer Networks

If you are a new researcher in the Systems area of Computer Science , you might ask yourself how you should get started. First off is to define what Systems is. A good description from Stanford University is given below:
"Systems is the study of the design and implementation of computer systems such as compilers, databases, networks, and operating systems. Topics include the hardware/software interface, the networking stack, digital architecture, memory models, optimization, concurrency, privacy, security, distributed and large-scale systems, reliability and fault tolerance, and related algorithms and theoretical topics." -http://csmajor.stanford.edu/Tracks.shtml

In this post, I will list some of the books and research papers that will introduce you to the area. Some items were taken from http://thor.cs.ucsb.edu/~ravenben/papers/coreos/. Reading these books/papers is important because they will introduce you to the vocabulary used in the field. There are three subareas that I'd like to emphasize: Computer Architecture/Organization, Operating Systems, Computer Networks. Each of these subareas may also have subareas.


Texbooks
  • Computer Organization and Design: The Hardware/Software Interface by Patterson and Hennessy
  • Operating Systems Concepts by Silberschatz, Galvin, Gagne
  • Computer Architecture: A Quantitative Approach
  • Database System Concepts by Silberschatz, Forth, and Sudarshan
  • Advanced Programming in the Unix Environment by Stevens
  • The Design of the UNIX Operating System by Bach
  • Readings in Computer Architecture by Hill et al

Research Papers

 (more to follow)

Tuesday, December 4, 2012

LDAP+NFS+Kerberos on Ubuntu 12.04

I always wanted to have a setup in our teaching laboratories with the following requirements:
  1. A centralized authentication server where student accounts are stored.
  2. A remote server where user home directories are located.
Once a student has been authenticated in the authentication server, the remote user home directory is mounted on the machine the student logged in. This setup will allow the student to access his/her files on any machine in the laboratory.

A good guide on how to achieve this is available here. Although I followed the steps presented in the guide, it took me a few days to make it work.










Figure 1. Topology

Server Machine
  • eth0: 10.0.4.x (via DHCP, provides Internet access)
  • eth1: 192.168.9.254  (local network)
  • server name: server9
  • domain name: server9.pclab9.ics.uplb.edu.ph
Some tips:
  • If a "Permission denied." error occurs when creating/editing files, remove the "sec=krb5" option in the NFS settings (both in the /etc/exports on the server and in the /etc/auto.home on the client.)
  • In order for users to login to Unity, install the nscd package.

Tuesday, August 7, 2012

System information commands in Linux

General CPU Information


$cat /proc/cpuinfo
$lscpu


Processor Utilization


$top
$sudo apt-get install sysstat
$mpstat -P ALL
$sar
$iostat

Memory Information/Usage


$cat /proc/meminfo
$free


Network Startistics


$netstat


Security camera in Ubuntu

Using Motion you can setup a security camera using an ordinary web camera and Ubuntu.
1. First we need to install Motion.


$sudo apt-get install motion


2. Insert the USB camera and check if was properly detected.


$lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 Webcam


3. Edit /etc/motion/motion.conf and specify the target directory where to dump the images and videos. Also enable daemon mode.


# Start in daemon (background) mode and release terminal (default: off)
daemon on

...

# Target base directory for pictures and films
# Recommended to use absolute path. (Default: current working directory)
target_dir /home/jachermocilla/motion



4. Start the Motion daemon.


$sudo /etc/init.d/motion start


5. Sample output from the setup is shown below.













6. The above setup works if we have plenty of disk space. If we have limited disk space, we need to delete some old files from target_dir. This script does just that. However, we need to make some customization in the script because it works using the df command.

Replace 

   USAGE=`df -h | grep "$MOUNT" | awk '{ print $5 }' | sed s/%//g`

with

   USAGE=`du "$MOUNT" | awk '{ print $1 }' | sed s/M//g`


7. Run the script on a separate terminal.


$chmod u+x deleteoldfiles.sh
$./deleteoldfiles.sh /home/jachermocilla/motion 40000


Sunday, July 15, 2012

My Ubuntu linux post-install app checklist

(Last Update: 31 July 2023)

I mainly use Ubuntu Desktop now as my main OS. I upgrade to the latest LTS after a year of its release.  

Currently in use: 22.04 LTS

What packages do I add after installing a new version?
  • gnome-shell-extensions, gnome-shell-extension-manager
  • wget
  • curl
  • VLC
  • OpenVPN
  • GVim
  • Git, GitHub CLI
  • net-tools
  • msttcorefonts 
  • ubuntu-restricted-extras
  • TexStudio/TexMaker
  • Pandoc
  • build tools (build-essential, gcc-multilib, gcc, automake, autoconf, perl, python, nasm ) 
  • Java Development Kit
  • Open SSH server
  • Zotero
  • Mendeley
  • Calibre
  • xchm
  • Gimp
  • Sound Recorder
  • Wireshark
  • Oracle VirtualBox
  • Transmission
  • KeePass2
  • Unison (use release from github instead of from apt)
  • Master PDF Editor
  • Docker and Docker Compose
  • Python venv for
    • Sphinx
    • Pelican
    • Flask
  • Android Studio
  • NVM and node
  • Terminator
  • Tmux
  • GNU Screen
  • Freemind
  • Google Chrome
  • Brave Browser
  • Tor Browser
  • Zoom
  • OBS
  • Slack
  • Discord
  • Peek (GIF Recorder)
  • virt-manager
  • LibreOffice (calc,writer,impress)
  • Clockify
  • VSCode 
  • custom dotfiles (posh, terminator, vim, bash)
  • VeraCrypt
  • Putty
  • Bibtex2html
  • youtube-dl
  • Network monitoring: iftop, nethogs
  • ShotCut
  • QasMixer
  • Postgres and PGAdmin
  • Xournal
  • Remmina
  • Nerd Fonts
  • ..more to be added


--- DROPPED/DEPRECATED/ON DEMAND ---
  • tightvncserver, xtightvncviewer
  • BurpSuite
  • Wine
  • Dropbox
  • pdfedit
  • Samba
  • Flash plugin
  • Acrobat Reader
  • Subversion
  • ftp
  • Microsoft Office 
  • display drivers
  • audio drivers
  • gnome-shell-extension-system-monitor
-- FOR HISTORICAL PURPOSES --

Ubuntu specific
  • build-essentials
  • Installing acrobat-reader
    • sudo add-apt-repository "deb http://archive.canonical.com/ precise partner"
    • sudo apt-get update
    • sudo apt-get install acroread
Fedora specific

Monday, July 9, 2012

Timeline of Registration Systems in UPLB

(Last update: 24 November 2022)

pre 1998 - Manual
1998 - REGIST c/o Dr. Ricolindo L. Carino
2004 - SystemOne v1 c/o Prof. Rodolfo Duldulao Jr.
2007 - SystemOne v2 (Decaf) c/o Prof. Rodolfo Duldulao Jr.
2016 (January) - SystemOne v3 (Reborn) c/o Prof. Rommel Bulalacao
2016 (August) - Student Academic Information System (SAIS)
2022 (September) - DX Academic Management Information System (DX AMIS) + SAIS

As a student of UPLB, you might be wondering how the physical machines that run SystemOne looks like. Below are some pictures of Eduardo, Discoro, and Eliezer (database server).