Speech:Unix


 * Home
 * Semesters - Project Work by Semester
 * Information
 * Experiments - List of speech experiments

Project Notes

 * [Unix Notes]
 * Active Directory
 * Backups
 * Network Bridge
 * Speech S/W Installation
 * Speech Corpus Setup
 * Switchboard Data Notes
 * Experiment Setup
 * Scripts Page
 * Model Building
 * Step 2: Run a Train
 * Step 2: Create the Language Model
 * Step 3: Run the Decode

Useful Unix Commands

 * To find out which hosts are on use command cat /etc/hosts
 * To find out what release version you have use command cat /etc/*-release on the machine you are currently on.

Basic Unix Commands

 * ls or dir will show you the files in the directory you are in.
 * ls -al with show all of the files in directory(even hidden files)
 * cd changes the directory you are in. Example would be cd / which will take you to the root or top directory.
 * pwd is the command that tells you where you are in the hierarchy of the system
 * whoami will tell you what profile you are using
 * man and a command will take you to the man pages. To exit a man page use Shift Q.
 * If you get stuck Ctrl C might work.
 * ssh and computer name or IP address will secure shell you into the machine.
 * exit will close the session you are on or exit you from a machine you ssh into.

Detailed Unix Commands
Hardware and System

hwinfo - extended hardware informationar hwinfo --short --wlan - hardware info hwinfo --short --gfxcard lspci - pci information ethtool - Ethernet card settings free -m - available memory ps - process status top - list processes and their usage who - usernames of whoever is currently logged in   uname -r - check kernel version ls -l /dev/disk/by-id df -h - used disk space dmidecode -t memory - memory configuration to include type and bank location

Networking

arp - check host network netstat - networking info netstat | head - summary network information netstat -rn - show routes nslookup - query name servers ping - ICMP request ip - configure a network interface route - routing information ip route - find your gateway cat /etc/resolv.conf - find your DNS servers ethtool - configure ethernet settings

File System

ls -a - lists hidden files dir - list directory contents vdir - verbose directory info fdisk -l - list all disk and partitions cfdisk - partition table manipulation fscheck - file system consistency check and repair <<< only run if you suspect problems with the drives format - format disks mount cat /proc/mounts - lists mounted file systems mount caesar:/mnt/main /mnt/main - to mount shared file system from caesar

SSH Password Override
Using SSH, log in to your account created for you on Caesar. When you log in you should be directed to your home directory.

Now that you are at the home directory for your user you want to do the following command to make an SSH key for your user.

It will prompt the questions below:
 * Leave the file name the same.
 * Leave the passphrase empty by simply pressing "Enter".

Now we want to go into the SSH folder:

You should have the following files in your .ssh folder: id_rsa and id_rsa.pub. To get the key to work so that you do not need a password on the batch machines you need to copy the .pub file to a new file called authorized_keys.

Since all the machines share the same drive then when you try to SSH into another machine you will not need a password to log into the system.