Linux/Citrix Virtual Environment Documentation

Similar documents
PL-I Assignment Broup B-Ass 5 BIOS & UEFI

Using grub to Boot various Operating Systems

CSE 265: System and Network Administration

CSE 265: System and Network Administration

Chapter 6. Boot time configuration. Chapter 6 Boot time configuration

System Administration. Startup Process

RHCE BOOT CAMP. The Boot Process. Wednesday, November 28, 12

Booting up and Shutting down A primer for troubleshooting

Oracle 1Z Enterprise Linux System Administration. Download Full Version :

Cdboot Cannot Boot From Cd Error Code 5 Windows 7

The kernel is not to be confused with the Basic Input/Output System (BIOS).

Instructor. Suleiman Muhammad citp(mcpn,mncs) Institute of Computing and ICT, Ahmadu Bello University, Zaria.

CST8177 Linux II. Linux Boot Process

How To Force Restore A Computer That Won Boot Up After System

Virtual Data Center (vdc) Manual

How To Reinstall Grub In Windows 7 Without Losing Data And Programs

Booting Up and Shutting Down. lctseng / Liang-Chi Tseng

Certification. System Initialization and Services

HOW LINUX BOOTS. As it turns out, there isn t much to the boot process:

Lab E2: bypassing authentication and resetting passwords

Boot Process in details for (X86) Computers

Chapter 2 Booting Up and Shutting Down

How To Startup Windows Service Windows 7. Repair Dual Boot >>>CLICK HERE<<<

Usb Port On Manually Create Bootable Windows Xp Install Driver

Installation of Fedora 12 with CD

Manually Mount Usb Flash Drive Ubuntu Server

Ftp Get Command Line Win 7 Boot Repair

Exporting a VM to a USB Mass Storage Device

Windows Xp Installation User Manually Create Bootable Usb Flash Drive

Recovering GRUB: Dual Boot Problems and Solutions

Boot. How OS boots

JetFlash User s Manual

About the XenClient Enterprise Solution

(Ubuntu 10.04), the installation command is slightly different.

DUAL OS INSTALLATION

The Early System Start-Up Process. Group Presentation by: Tianyuan Liu, Caiwei He, Krishna Parasuram Srinivasan, Wenbin Xu

How to Dual-Boot OS X and Ubuntu

The Linux IPL Procedure

Flash Drive Won't Mount Windows 7

Overview of USB Flash Drive Based Install Instructions

Ftp Get Command Line Windows 7 Bootable Usb

Manually Mount Usb Flash Drive Ubuntu Server Command Line

Your Own Virtual Playground. CS 1585 :: Doug McGeehan

Ubuntu installation alongside windows 8/8.1 and 10

How To Reinstall Grub In Windows 7 Without Cd Dell

Manually Mount Usb Flash Drive Linux Command Line Redhat

CIS 191A Final Exam. Fall CIS 191 Final Exam

Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

A Kernel Compiling Adventure By Grant Nelson

Linux Manually Mount External Hard Drive Ntfs 3g Could Not

Grub Manual Install Ubuntu Without >>>CLICK HERE<<<

Disk Imaging with Knoppix

Linux Manually Mount External Hard Drive Ntfs-3g Could Not

Womp Howto. William Daniau 1st January 2004

Linux-Kurs Themen - Lilo-GRUB 19. November 2005 Michel Bisson. Types of Boot Loaders: LILO,GRUB,SILO,Loadlin,ELILO,QUIK,VMELILO,ZIPL

Some reasons to repair your boot-loader might include installing Microsoft Windows after you have installed Ubuntu, adding or removing a hard drive.

CREATION OF A MINIMAL STAND ALONE RTAI SYSTEM ================================================

How To Reinstall Grub In Windows 7 With Cd Bootcamp Partition

Mac Os X Manually Mounted Usb Drive Read Only

MODULE 02. Installation

Initial Bootloader > Flash Drive. Warning. If not used carefully this process can be dangerous

Ubuntu Remove Manually Install Software From Windows 7 Without Disk

NEC Versa 500D/550D Windows 98 Upgrade Information

TinyNet. Creating Virtual Machines

Sun VirtualBox Installation Tutorial

Net Start Error Code 5 Windows 7 Boot From Disk

grub-md5-crypt --help Usage: grub-md5-crypt [OPTION] Encrypt a password in MD5 format.

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 16 Fixing Windows Problems

Manually Mount Usb Flash Drive Ubuntu Server 12.04

Perl Install Module Windows Xp Without Cd >>>CLICK HERE<<<

Exam : Title. : A+ OS Technologies

Do A Manual System Restore On Windows 8 From Startup Repair

Fedora 12 Essentials

Macrorit Partition Expert 4.3.5

A+ Guide to Software: Managing, Maintaining, and Troubleshooting, 5e. Chapter 7 Fixing Windows Problems

Manually Installation Windows Updates Xp From Usb Drive Bootable

Perform Manual System Restore Windows 8 Hp

Usb Port On Manually Create Bootable Windows Xp Install From Iso

University of Pennsylvania Zachary Goldberg. CIS c. More Kernel Bits. 10/03/09 Slide 1

Installation Tools for Clusters. Rajesh K., Computer Division, BARC

Net Start Error Code 5 Windows 7 Boot Cdboot Cannot Boot From Cd

How to Back-Up a fit-pc2 Using Only a USB Stick (and some creative partitioning)

Ftp Get Command Line Windows 7 Bootable Usb

Guide to using Simply Web

Lab #5 Guide: Installing Ubuntu as a Virtual Machine

The Lecture's aim A preparation for the installation party: Prepare your computer for the installation Know what's going to happen Understand what's g

DriveClone Workstation. Users Manual

Fedora Core: Made Simple

Open Task Manager Windows Xp Without Ctrl Alt Del

VI-CENTER EXTENDED ENTERPRISE EDITION GETTING STARTED GUIDE. Version: 4.5

AOEMI Backupper V4.0

Installing New External Hard Drive Windows 7 Upgrade Blank >>>CLICK HERE<<<

How To Eject Cd Using Command Prompt >>>CLICK HERE<<<

Installing Linux (Chapter 8) Note packet # 4. CSN 115 Operating Systems Ken Mead Genesee Community College. Objectives

Lionstracs Groove X-R

Flash Drive Won T Mount Windows 7 Won T Recognize

Secure Browser Installation Manual For Technology Coordinators

Booting Up and Shutting Down

Manual Format Windows 7 Using Usb Drive Fat32

The Linux Boot Process

Transcription:

Linux/Citrix Virtual Environment Documentation Purpose This document provides information on creating a bootable Ubuntu flash drive, customizing the interface, and using basic commands. Contents Bootable Drive Install Citrix Receiver Remove Workplace Icon Launch Startup Programs Firefox Startup Hide Desktop Icons Auto-hide Launcher Modify Boot Menu Printing Chromebook Common Errors Create Scripted Buttons Keyboard Shortcuts Scripting Systems Tested On Quirks Repair USB Drive Cloning USB Drives 1

Build Bootable Drive Ubuntu_Desktop ISO - recommended 0. Download Ubuntu_Desktop.ISO 0. Download/Run unetbootin-windows-583.exe 1. Select Distribution Ubuntu 10.12 Live 2. Select Diskimage ISO -> Ubuntu_Desktop.ISO 3. Select 500MB of space for file preservation between reboots 4. Verify Type is USB Drive 5. Verify Drive is your USB 6. Select OK 7. Wait for drive setup and select Reboot Now when done Build Bootable Drive XenClient ISO - experimental 0. Download XenClient ISO 0. Download/Run unetbootin-windows-583.exe 1. Select Distribution Ubuntu 10.12 Live 2. Select Diskimage ISO -> XenClient ISO 3. Select 500MB of space for file preservation between reboots 4. Verify Type is USB Drive 5. Verify Drive is your USB 6. Select OK 7. Wait for drive setup and select Reboot Now when done 2 How to Install the Citrix Client download.deb icaclient files from http://www.citrix.com/downloads/citrixreceiver/receivers-by-platform/receiver-for-linux-121.html Install from Ubuntu Software Center or command (to be used in scripting): wget -c http://nl.archive.ubuntu.com/ubuntu/pool/multiverse/o/openmotif/libmotif3_2.2.3-4_i386.deb sudo dpkg -i libmotif*i386.deb sudo ln -s /usr/lib/libxm.so.3 /usr/lib/libxm.so.4

How to Remove Workplace Icon - (virtual desktops) Note: Ubuntu 12.04/12.10 workaround (does not work in Unity 2D): 1. Install Compiz Config Settings Manager from the Ubuntu Software Center 2. Open Compiz Config Settings Manager from Dash 3. Goto General Options and Desktop Size tab 4. Change Horizontal Virtual Size to '1' 5. Change Vertical Virtual Size to '1' 6. Restart (if necessary) Unity by opening Run Command (Alt-F2) and typing unity How to Launch Startup Programs DashboardSelect Startup Applications IconAdd Program Path/Command for Firefox when Loading at Startup Just add firefox as the command 3 How to Hide Desktop Icons command: gsettings set org.gnome.desktop.background show-desktop-icons false How to Auto-hide the Launcher DashboardAppearanceBehaviorselect Auto-hide the Launcher How to Modify the Boot Menu Access the syslinux.cfg on the USB drive. Make modifications. Printing Tested Local USB printing was tested, and works without any errors. Drivers automatically installed. Network printing/printing from session to user s local printer worked without any errors. Google Chromebook Tested Chromebook would not boot to USB drive. The USB drive must be prepared with Google s OS kernel. The default Ubuntu setup will not work without hacking the Chrome OS.

Common Errors error An error (1) occurred while executing syslinux. Your USB won't be bootable. solution move to computer without Company operating system anti-virus, Credant, LANDesk, GPO settings, policies. error panic error while booting from USB Drive solution Using Unetbootin, re-apply the ISO to the USB drive; this error happens due to missing files. error SSL trust error in Mozilla solution command: sudo ln -s /usr/share/ca-certificates/mozilla/* <space> /opt/citrix/icaclient/keystore/cacerts 4 Create Scripted Launcher Buttons Note: 3 things need to be done to add a scripted shortcut to the Launcher. 1. A script must be created and properties set to Allow executing file as program. See Scripting/Commands. 2. A.desktop, or for example Shutdown.desktop, must be created (see desktop file below) 3. You must drag and drop the Shutdown.desktop to the Launcher. Shutdown.desktop [Desktop Entry] Version=1.0 Name=Shutdown Comment=This will shutdown your computer Exec=/home/ubuntu/shutdown.sh Icon=/home/ubuntu/Pictures/shutdown.jpeg Terminal=false Type=Application

Categories=Utility;Application; Keyboard Shortcuts Alt-F2 Alt-F4 Ctrl-Alt-T Run Command Close Window Open Terminal Window 5

Scripting/Commands * to create a script, save command into a file named NameOfScript.sh * to authorize the script, set to Allow executing file as program Shutdown sudo shutdown -h 0 Reboot sudo reboot Make folder mkdir /home/eddie/desktop/new_folder Deleting files rm /home/eddie/file_to_be_deleted Deleting folder and their sub-folders rm -rf /home/eddie/useless_parent_folder 6 Backup your files cp source_file dest_file Backtup your directories cp -r /directory/to/be/copied/ /where/to/copy/to/ Show network information ip addr (wireless is iwconfig) Systems Tested On * sound, video, networking, apps, and printing tested PASSED - HP 8470p Laptop PASSED - HP 8440p Laptop PASSED - HP 6930p Laptop PASSED - HP dc7900 Desktop PASSED - Dell OptiPlex 755 Desktop, works even better than the 745 PASSED - Dell OptiPlex 745 Desktop, a little slow, but everything works PASSED - Dell OptiPlex GX520 Desktop, a little slow, but everything works FAILED - Dell D620 Laptop, sound card caused crash FAILED - Dell GX280 Desktop too slow to be useful FAILED - Samsung Chromebook, not compatible

Quirks Sometimes it takes a few tries when logging into the Citrix Desktop. The Citrix Receiver may come up in restore mode you just click restore and it works. If the Citrix Receiver login falls into a loop and will not login, just close the browser, and re-launch it from the launcher. If a Report Problem box comes up, just select Cancel. Repair USB Drive (due to partitioning or formatting corruption) If you can't get the full capacity of your USB drive back with the Lexar tool (I couldn't with a Patriot Memory X-Mini 8GB), you can use DISKPART from Vista/Win7 to do so. Warning: DISKPART is dangerous - do not use if you don't feel comfortable with it! Insert your USB disk, make sure it is recognized by Windows (with the lower capacity), and then do the following: 7 1) Type "DISKPART" from the Command Prompt (accessible by clicking on Start and then typing "cmd" into the open field); you will then see the following prompt: DISKPART> 2) Type "LIST DISK" to see what number your USB drive is listed as. 3) Type "SELECT DISK 2" (if your USB is disk 2; replace # with your disk #); Diskpart will confirm that "Disk 2 is now the select disk." 4) Type "SELECT PARTITION 1" (this command selects what should be the only partition on your USB drive, the small one that you want to delete to get back the larger, full partition size). Diskpart will confirm with "Partition 1 is now the selected partition." 5) Type "DELETE PARTITION". This will delete the old partition. There are no warning prompts if you have existing data - make sure you have copied everything off before doing this! (note: if there are MANY partitions to be deleted, just "CLEAN" instead). 6) Type "CREATE PARTITION PRIMARY" to create a new, full-size partition. Diskpart will confirm with message of "Diskpart succeeded in creating the specified partition." You can type in "LIST PARTITION" to confirm the new, full-size. 7) Type "EXIT" to leave Diskpart. You can now format your USB drive by using the standard Windows formatting process.

Clone USB Drive 0) Download USB Image Tool 1.61 1) Plug in USB Drive to be cloned 2) Launch USB Image Tool.exe 3) Select USB Drive from left panel 4) Select [Backup] and file name 5) Once complete, plugin the target USB Drive 6) Select USB Drive from left panel 7) Select [Restore] and file name 8) Drive will be ready to use once complete 8

Technical Material 6 Stages of Linux Boot Process (Startup Sequence) Press the power button on your system, and after few moments you see the Linux login prompt. Have you ever wondered what happens behind the scenes from the time you press the power button until the Linux login prompt appears? The following are the 6 high level stages of a typical Linux boot process. 9 1. BIOS BIOS stands for Basic Input/Output System Performs some system integrity checks Searches, loads, and executes the boot loader program. It looks for boot loader in floppy, cd-rom, or hard drive. You can press a key (typically F12 of F2, but it depends on your system) during the BIOS startup to change the boot sequence. Once the boot loader program is detected and loaded into the memory, BIOS gives the control to it. So, in simple terms BIOS loads and executes the MBR boot loader.

2. MBR MBR stands for Master Boot Record. It is located in the 1st sector of the bootable disk. Typically /dev/hda, or /dev/sda MBR is less than 512 bytes in size. This has three components 1) primary boot loader info in 1st 446 bytes 2) partition table info in next 64 bytes 3) mbr validation check in last 2 bytes. It contains information about GRUB (or LILO in old systems). So, in simple terms MBR loads and executes the GRUB boot loader. 3. GRUB GRUB stands for Grand Unified Bootloader. If you have multiple kernel images installed on your system, you can choose which one to be executed. GRUB displays a splash screen, waits for few seconds, if you don t enter anything, it loads the default kernel image as specified in the grub configuration file. GRUB has the knowledge of the filesystem (the older Linux loader LILO didn t understand filesystem). Grub configuration file is /boot/grub/grub.conf (/etc/grub.conf is a link to this). The following is sample grub.conf of CentOS. #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-194.el5PAE) root (hd0,0) kernel /boot/vmlinuz-2.6.18-194.el5pae ro root=label=/ initrd /boot/initrd-2.6.18-194.el5pae.img 10 As you notice from the above info, it contains kernel and initrd image. So, in simple terms GRUB just loads and executes Kernel and initrd images. 4. Kernel Mounts the root file system as specified in the root= in grub.conf Kernel executes the /sbin/init program Since init was the 1st program to be executed by Linux Kernel, it has the process id (PID) of 1. Do a ps -ef grep init and check the pid. initrd stands for Initial RAM Disk. initrd is used by kernel as temporary root file system until kernel is booted and the real root file system is mounted. It also contains

necessary drivers compiled inside, which helps it to access the hard drive partitions, and other hardware. 5. Init Looks at the /etc/inittab file to decide the Linux run level. Following are the available run levels o 0 halt o 1 Single user mode o 2 Multiuser, without NFS o 3 Full multiuser mode o 4 unused o 5 X11 o 6 reboot Init identifies the default initlevel from /etc/inittab and uses that to load all appropriate program. Execute grep initdefault /etc/inittab on your system to identify the default run level If you want to get into trouble, you can set the default run level to 0 or 6. Since you know what 0 and 6 means, probably you might not do that. Typically you would set the default run level to either 3 or 5. 11 6. Runlevel programs When the Linux system is booting up, you might see various services getting started. For example, it might say starting sendmail. OK. Those are the runlevel programs, executed from the run level directory as defined by your run level. Depending on your default init level setting, the system will execute the programs from one of the following directories. o Run level 0 /etc/rc.d/rc0.d/ o Run level 1 /etc/rc.d/rc1.d/ o Run level 2 /etc/rc.d/rc2.d/ o Run level 3 /etc/rc.d/rc3.d/ o Run level 4 /etc/rc.d/rc4.d/ o Run level 5 /etc/rc.d/rc5.d/ o Run level 6 /etc/rc.d/rc6.d/ Please note that there are also symbolic links available for these directory under /etc directly. So, /etc/rc0.d is linked to /etc/rc.d/rc0.d. Under the /etc/rc.d/rc*.d/ directories, you would see programs that start with S and K. Programs starts with S are used during startup. S for startup. Programs starts with K are used during shutdown. K for kill. There are numbers right next to S and K in the program names. Those are the sequence number in which the programs should be started or killed. For example, S12syslog is to start the syslog deamon, which has the sequence number of 12. S80sendmail is to start the sendmail daemon,

which has the sequence number of 80. So, syslog program will be started before sendmail. 12