User Tools

Site Tools


computers:ubuntu_workstation_basic_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computers:ubuntu_workstation_basic_setup [2015/01/11 02:04] rubisco0319computers:ubuntu_workstation_basic_setup [2023/03/06 16:50] (current) – [Java] hcyen
Line 1: Line 1:
 ===== Ubuntu Workstation Basic Setup ===== ===== Ubuntu Workstation Basic Setup =====
  
-==== v14.04 (2015/01/07) ==== + 
-   Basic installation +==== BIOS ==== 
-     Put the Ubuntu14.04 DVD into the DVD-drive+  * before installing Ubuntu, power on the workstation, enter the BIOS setting, and update the boot settingCD/DVD-ROM should be listed as the 1st choice, following by the hard drive for Ubuntu installation 
-     Restart the computer and boot the computer through that DVD. + 
-     Follow the instruction to insatll Ubuntu  +==== Ubuntu ==== 
-  * Network+   Use the latest long-term support (LTS) version 
 +   Install the system on the smaller/faster SSD; use the larger/slower HDD for '/backup' and/or '/scratch' 
 + 
 +==== SSH ==== 
 +  * Install the OpenSSH server  
 +    * The OpenSSH client is installed by default (so you can ssh into other computers)The OpenSSH server is required for connection into this machine (e.g., auto backup from the lab server). Use ''sudo apt-get install openssh-server'' to install. 
 +  * SSH security 
 +     Once the OpenSSH server is installed, it is important to increase the security 
 +     see more info here: [[computers:ssh_security|SSH security]] 
 +     * Minimally, update the ''/etc/hosts.deny'' and ''/etc/hosts.allow'' files to allow only the IPs that should have access 
 +     Install Fail2ban: ''sudo apt-get install fail2ban'' 
 + 
 + 
 + 
 +==== Network ====
     * The system administrator requires the HWaddr of the Network Interface Controller (NIC) to add the new machine to the DHCP server.     * The system administrator requires the HWaddr of the Network Interface Controller (NIC) to add the new machine to the DHCP server.
     * In Terminal, type "ifconfig" to get the HWaddr of eth0 (format = XX:XX:XX:XX:XX:XX). Write down this string and send it to the administrator.     * In Terminal, type "ifconfig" to get the HWaddr of eth0 (format = XX:XX:XX:XX:XX:XX). Write down this string and send it to the administrator.
Line 12: Line 26:
     * Note: this only has to be done once (no need for re-installation unless the Network Interface Controller has been changed)     * Note: this only has to be done once (no need for re-installation unless the Network Interface Controller has been changed)
  
-  * Additional steps 
-     * Install the OpenSSH server  
-       * The OpenSSH client is installed by default (so you can ssh into other computers). If you want connect to this new machine from other machines (e.g., other workstations, lab server, home computer), the OpenSSH server package is required. 
-       * sudo apt-get install openssh-server  
  
-===== Nvidia drivers =====+==== Nvidia drivers ====
   * official drivers of nvidia graphic card (gnu) is required for better performance.   * official drivers of nvidia graphic card (gnu) is required for better performance.
-  * check nvidia graphic card+  * check nvidia graphic card information 
 <code> <code>
 $ lspci -vnn | grep -i VGA -A 12 $ lspci -vnn | grep -i VGA -A 12
Line 37: Line 47:
 $ sudo apt-get install nvidia-340 $ sudo apt-get install nvidia-340
 </code> </code>
 +Change nvidia settings
 +  * [[http://manpages.ubuntu.com/manpages/lucid/en/man1/nvidia-xconfig.1.html|nvidia-xconfig]]
 +  * [[http://manpages.ubuntu.com/manpages/precise/en/man1/alt-nvidia-current-settings.1.html|nvidia-settings]]
  
  
-===== Java =====+==== Java ====
 <code> <code>
 $ sudo apt-get install icedtea-7-plugin openjdk-7-jre $ sudo apt-get install icedtea-7-plugin openjdk-7-jre
Line 59: Line 72:
 <code> <code>
 $ java -version $ java -version
 +</code>
 +Check installed java
 +<code>
 +$ update-java-alternatives -l
 </code> </code>
 Switch between Oracle Java 8 and Java 7 Switch between Oracle Java 8 and Java 7
Line 66: Line 83:
 </code>  </code> 
  
-   +==== Mount disk ==== 
 +To mount a disk manually 
 +<code> 
 +# Find path to disk 
 +$ sudo fdisk -l 
 +   Device Boot      Start         End      Blocks   Id  System 
 +/dev/sdb2        501758   976771071   488134657    5  Extended 
 +/dev/sdb5          501760   976771071   488134656   8e  Linux LVM 
 +$ sudo mkdir -p /backup 
 +$ sudo mount /dev/sdb5 /backup/ 
 +# check disk info 
 +$ df -h 
 +</code> 
 + 
 +if necessary, format the new disk 
 +<code> 
 +$ mkfs -t ext4 /dev/device_name 
 +</code> 
 + 
 +To mount a disk automatically during start-up, find the UUID using ''blkid'' and add the disk to ''/etc/fstab'' 
 +<code> 
 +$ blkid -s UUID 
 +/dev/sda1: UUID="2cf0b317-a030-4cb4-a78a-4f4893ac16d1"  
 +/dev/sdb1: UUID="f5d3494d-2d43-485f-97e8-2f9b1b967d90"  
 +/dev/sdb2: UUID="ce1496b4-bb74-4861-b2bb-ef8e6405a905"  
 +$ cat /etc/fstab 
 +# /etc/fstab: static file system information. 
 +
 +# Use 'blkid' to print the universally unique identifier for a 
 +# device; this may be used with UUID= as a more robust way to name devices 
 +# that works even if disks are added and removed. See fstab(5). 
 +
 +# <file system> <mount point>   <type>  <options>       <dump>  <pass> 
 +# / was on /dev/sdb2 during installation 
 +UUID=ce1496b4-bb74-4861-b2bb-ef8e6405a905 /               ext4    errors=remount-ro 0       1 
 +# /backup was on /dev/sda1 during installation 
 +UUID=2cf0b317-a030-4cb4-a78a-4f4893ac16d1 /backup         ext4    defaults        0       2 
 +# swap was on /dev/sdb1 during installation 
 +UUID=f5d3494d-2d43-485f-97e8-2f9b1b967d90 none            swap    sw              0       0 
 +</code>
  
-   
      
        
computers/ubuntu_workstation_basic_setup.1420913044.txt.gz · Last modified: 2015/01/11 02:04 (external edit)