Difference between revisions of "Desktop Setup - Ubuntu 10.04"

From Vlsiwiki
Jump to: navigation, search
Line 1: Line 1:
 
Currently still testing the distribution, so please report any problems to Ian and Jose!!
 
Currently still testing the distribution, so please report any problems to Ian and Jose!!
  
* 0.0 - Install Ubuntu 10.04 x86_64
+
* 0 - Install Ubuntu 10.04 x86_64
 
NOTE: If you have trouble with Step 4, the partition selection, open a terminal in the trial mode and run:
 
NOTE: If you have trouble with Step 4, the partition selection, open a terminal in the trial mode and run:
 
  sudo dmraid -r -E /dev/sda
 
  sudo dmraid -r -E /dev/sda
  
* 0 - Enable root account
+
* 1 - Enable root account
 
  sudo su -  
 
  sudo su -  
 
  passwd
 
  passwd
 
Enter your new root password
 
Enter your new root password
  
* 1 - Install NVIDIA Drivers (as root!)
+
* 2 - Install NVIDIA Drivers (as root!)
 
  wget http://us.download.nvidia.com/XFree86/Linux-x86_64/256.53/NVIDIA-Linux-x86_64-256.53.run
 
  wget http://us.download.nvidia.com/XFree86/Linux-x86_64/256.53/NVIDIA-Linux-x86_64-256.53.run
 
  chmod 744 NVIDIA-Linux-x86_64-256.53.run
 
  chmod 744 NVIDIA-Linux-x86_64-256.53.run
 
  ./NVIDIA-Linux-x86_64-256.53.run
 
  ./NVIDIA-Linux-x86_64-256.53.run
  
* 2 - Setup the new repo
+
* 3 - Setup the new repo
 
  apt-get install -y emdebian-archive-keyring
 
  apt-get install -y emdebian-archive-keyring
 
  echo -e "\ndeb http://www.emdebian.org/debian/ lenny main" | tee -a /etc/apt/sources.list
 
  echo -e "\ndeb http://www.emdebian.org/debian/ lenny main" | tee -a /etc/apt/sources.list
Line 22: Line 22:
 
  apt-get update
 
  apt-get update
  
* 3 - Setup the cross package
+
* 4 - Setup the cross package
 
  apt-get install -y apt-cross dpkg-cross libncurses5-dev
 
  apt-get install -y apt-cross dpkg-cross libncurses5-dev
  
* 4 - Instal ARM packages
+
* 5 - Instal ARM packages
 
  apt-get install -y libc6-armel-cross libc6-dev-armel-cross
 
  apt-get install -y libc6-armel-cross libc6-dev-armel-cross
 
  apt-get install -y binutils-arm-linux-gnueabi gcc-4.3-arm-linux-gnueabi g++-4.3-arm-linux-gnueabi  
 
  apt-get install -y binutils-arm-linux-gnueabi gcc-4.3-arm-linux-gnueabi g++-4.3-arm-linux-gnueabi  
Line 31: Line 31:
 
  apt-get install -y uboot-mkimage
 
  apt-get install -y uboot-mkimage
  
* 5 - Install SPARC packages
+
* 6 - Install SPARC packages
 
  apt-get install -y libc6-sparc-cross libc6-dev-sparc-cross
 
  apt-get install -y libc6-sparc-cross libc6-dev-sparc-cross
 
  apt-get install -y binutils-sparc-linux-gnu gcc-4.3-sparc-linux-gnu g++-4.3-sparc-linux-gnu
 
  apt-get install -y binutils-sparc-linux-gnu gcc-4.3-sparc-linux-gnu g++-4.3-sparc-linux-gnu
 
  apt-get install -y linux-libc-dev-sparc-cross
 
  apt-get install -y linux-libc-dev-sparc-cross
  
* 6 - Adjust sysctl options
+
* 7 - Adjust sysctl options
 
mmap problem for qemu
 
mmap problem for qemu
 
  vim /etc/sysctl.d/10-zeropage.conf
 
  vim /etc/sysctl.d/10-zeropage.conf
Line 45: Line 45:
 
  echo -e "\nfs.inotify.max_user_watches = 65535" | tee -a /etc/sysctl.conf
 
  echo -e "\nfs.inotify.max_user_watches = 65535" | tee -a /etc/sysctl.conf
  
* 7 - Replicate the installation on Master machine (mascd12, dhcp-63-154.cse.ucsc.edu)
+
* 8 - Replicate the installation on Master machine (mascd12, dhcp-63-154.cse.ucsc.edu)
 
  ssh <username>@mascd12 dpkg --get-selections > mypackages.txt
 
  ssh <username>@mascd12 dpkg --get-selections > mypackages.txt
 
  dpkg --set-selections < mypackages.txt
 
  dpkg --set-selections < mypackages.txt
Line 53: Line 53:
 
  apt-get dselect-upgrade -y
 
  apt-get dselect-upgrade -y
  
  apt-get remove moonlight-plugin-mozilla
+
  apt-get remove moonlight-plugin-mozilla\
  
* 8 - Install autofs
+
* 9 - Install autofs
 
  mkdir /mada
 
  mkdir /mada
 
Get autofs files from another machine
 
Get autofs files from another machine
Line 62: Line 62:
 
  initctl reload autofs
 
  initctl reload autofs
  
* 9 - awk for cadence
+
* 10 - awk for cadence
 
  apt-get install -y ksh csh original-awk
 
  apt-get install -y ksh csh original-awk
 
  ln -s /usr/bin/awk /bin/awk
 
  ln -s /usr/bin/awk /bin/awk
  
* 10 - Set the firewall
+
* 11 - Set the firewall
 
  ufw enable
 
  ufw enable
 
  ufw default deny
 
  ufw default deny
Line 72: Line 72:
 
  ufw limit ssh/tcp
 
  ufw limit ssh/tcp
  
* 11 - Get tempcap from another ubuntu machine (mascd1, mascd12, ...)
+
* 12 - Get tempcap from another ubuntu machine (mascd1, mascd12, ...)
 
  scp <username>@mascd12:/usr/lib64/libtermcap.so.2.0.8 /usr/lib64/
 
  scp <username>@mascd12:/usr/lib64/libtermcap.so.2.0.8 /usr/lib64/
 
  ln -s /usr/lib64/libtermcap.so.2.0.8 /usr/lib64/libtermcap.so.2
 
  ln -s /usr/lib64/libtermcap.so.2.0.8 /usr/lib64/libtermcap.so.2
  
* 12 - LDAP
+
* 13 - LDAP
 
Install
 
Install
 
  apt-get install -y ldap-auth-client libpam-krb5 krb5-user libsasl2-modules-gssapi-mit
 
  apt-get install -y ldap-auth-client libpam-krb5 krb5-user libsasl2-modules-gssapi-mit
Line 96: Line 96:
 
Now you should be able to execute:  ldapsearch -x LLL
 
Now you should be able to execute:  ldapsearch -x LLL
  
* 13 - Lock SOE people out of your machine :)
+
* 14 - Lock SOE people out of your machine :)
 
  scp <username>@mascd12:/etc/security/access.conf /etc/security/access.conf
 
  scp <username>@mascd12:/etc/security/access.conf /etc/security/access.conf
  
Line 110: Line 110:
 
  -:ALL :ALL  
 
  -:ALL :ALL  
  
Now, you should see people with "getent passwd" but, calling "su - larrabee" should say "permission denied", but, calling "su - renau" should work.
+
Now, you should see people with "getent passwd" but, calling "su - cormac" should say "permission denied", but, calling "su - renau" should work.
  
* 14 - If you have problems with your display, reinstall the nvidia drivers
+
* 15 - If you have problems with your display, reinstall the nvidia drivers
 
Possibly can just rerun nvidia-xconfig, but not sure.
 
Possibly can just rerun nvidia-xconfig, but not sure.
  
* 15 - If you have problems logging in with  
+
* 16 - If you have problems logging in with  
 
NOTE: Removing ".config" may remove any saved passwords in your browser
 
NOTE: Removing ".config" may remove any saved passwords in your browser
 
  rm -rf .config .kde* .gconf* .gnome*
 
  rm -rf .config .kde* .gconf* .gnome*
  
* 16 - Add yourself to the sudoers list
+
* 17 - Add yourself to the sudoers list
 
  vim /etc/sudoers
 
  vim /etc/sudoers

Revision as of 22:00, 6 October 2010

Currently still testing the distribution, so please report any problems to Ian and Jose!!

  • 0 - Install Ubuntu 10.04 x86_64

NOTE: If you have trouble with Step 4, the partition selection, open a terminal in the trial mode and run:

sudo dmraid -r -E /dev/sda
  • 1 - Enable root account
sudo su - 
passwd

Enter your new root password

  • 2 - Install NVIDIA Drivers (as root!)
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/256.53/NVIDIA-Linux-x86_64-256.53.run
chmod 744 NVIDIA-Linux-x86_64-256.53.run
./NVIDIA-Linux-x86_64-256.53.run
  • 3 - Setup the new repo
apt-get install -y emdebian-archive-keyring
echo -e "\ndeb http://www.emdebian.org/debian/ lenny main" | tee -a /etc/apt/sources.list
apt-get update
apt-get upgrade
apt-get update
  • 4 - Setup the cross package
apt-get install -y apt-cross dpkg-cross libncurses5-dev
  • 5 - Instal ARM packages
apt-get install -y libc6-armel-cross libc6-dev-armel-cross
apt-get install -y binutils-arm-linux-gnueabi gcc-4.3-arm-linux-gnueabi g++-4.3-arm-linux-gnueabi 
apt-get install -y linux-libc-dev-armel-cross
apt-get install -y uboot-mkimage
  • 6 - Install SPARC packages
apt-get install -y libc6-sparc-cross libc6-dev-sparc-cross
apt-get install -y binutils-sparc-linux-gnu gcc-4.3-sparc-linux-gnu g++-4.3-sparc-linux-gnu
apt-get install -y linux-libc-dev-sparc-cross
  • 7 - Adjust sysctl options

mmap problem for qemu

vim /etc/sysctl.d/10-zeropage.conf

Edit the following value:

vm.mmap_min_addr = 4096

increase (add) the inotify watches in /etc/sysctl.conf

echo -e "\nfs.inotify.max_user_watches = 65535" | tee -a /etc/sysctl.conf
  • 8 - Replicate the installation on Master machine (mascd12, dhcp-63-154.cse.ucsc.edu)
ssh <username>@mascd12 dpkg --get-selections > mypackages.txt
dpkg --set-selections < mypackages.txt

Will give many options and take a long time for the upgrade (couple hours for me) Select all default options except, for ion3: acknowledge the lack of support (non-default)

apt-get dselect-upgrade -y
apt-get remove moonlight-plugin-mozilla\
  • 9 - Install autofs
mkdir /mada

Get autofs files from another machine

scp <username>@mascd12:/etc/auto.* /etc/
ln -s /mada/users /soe
initctl reload autofs
  • 10 - awk for cadence
apt-get install -y ksh csh original-awk
ln -s /usr/bin/awk /bin/awk
  • 11 - Set the firewall
ufw enable
ufw default deny
ufw reject auth
ufw limit ssh/tcp
  • 12 - Get tempcap from another ubuntu machine (mascd1, mascd12, ...)
scp <username>@mascd12:/usr/lib64/libtermcap.so.2.0.8 /usr/lib64/
ln -s /usr/lib64/libtermcap.so.2.0.8 /usr/lib64/libtermcap.so.2
  • 13 - LDAP

Install

apt-get install -y ldap-auth-client libpam-krb5 krb5-user libsasl2-modules-gssapi-mit

Create /ect/krb5.conf

scp <username>@mascd12:/etc/krb5.conf /etc/

Copy the ldap certificate

scp <username>@mascd12:/etc/ssl/certs/ /etc/ssl/certs/

Create "/etc/auth-client-config/profile.d/krb-ldap-config"

scp <username>@mascd12:/etc/auth-client-config/profile.d/krb-ldap-config /etc/auth-client-config/profile.d/krb-ldap-config
auth-client-config -a -p krb_ldap

Update ldap.conf

scp <username>@mascd12:/etc/ldap.conf /etc/ldap.conf
scp <username>@mascd12:/etc/ldap/ldap.conf /etc/ldap/ldap.conf

Now you should be able to execute: ldapsearch -x LLL

  • 14 - Lock SOE people out of your machine :)
scp <username>@mascd12:/etc/security/access.conf /etc/security/access.conf

You will need to add your local login to the machine, or you will lock yourself out

vim /etc/security/access.conf

Go to very bottom of file and add your local user account to the list below root Example of the last lines of the file:

+ : root : ALL
+ : ian_local : ALL
+ : (masc) : ALL
+ : (vlsi) : ALL
-:ALL :ALL 

Now, you should see people with "getent passwd" but, calling "su - cormac" should say "permission denied", but, calling "su - renau" should work.

  • 15 - If you have problems with your display, reinstall the nvidia drivers

Possibly can just rerun nvidia-xconfig, but not sure.

  • 16 - If you have problems logging in with

NOTE: Removing ".config" may remove any saved passwords in your browser

rm -rf .config .kde* .gconf* .gnome*
  • 17 - Add yourself to the sudoers list
vim /etc/sudoers