Frequently Asked Questions - BMC-IT


windows ubuntu macos xibo network zenworks android storage
  1. How do I connect a private computer to the department network?     [jump in page]   2019-05-08
  2. How does the reinstallation of Windows computers work at BMC-IT?     [jump in page]   2019-05-03
  3. How do I set up eduPrint for a Linux server?     [jump in page]   2019-04-26
  4. What should be done to introduce a new system administrator at BMC?     [jump in page]   2019-04-09
  5. How do I access my scans for eduPrint in Linux?     [jump in page]   2019-03-11
  6. How do I find specific files like the last updated, the one with the longest file name, or the largest one?     [jump in page]   2019-01-17
  7. We need more storage! Do you have a file server we can use?     [jump in page]   2019-01-11
  8. How do I find all the mounts in Linux?     [jump in page]   2018-12-11
  9. How do I mount an ISO and install MATLAB in Linux?     [jump in page]   2018-10-05
  10. How do I install Ubuntu?     [jump in page]   2018-09-06
  11. How do I access my work-computer from home?     [jump in page]   2018-08-21
  12. How do I connect to the VPN using Ubuntu?     [jump in page]   2018-08-13
  13. How do I install the OCS Inventory agent for Linux?     [jump in page]   2018-06-04
  14. How do I set firewall rules in Linux to block SSH?     [jump in page]   2018-06-04
  15. How to transfer web hosting for a domain     [jump in page]   2018-06-04
  16. How do I convert an image from RGB to CMYK?     [jump in page]   2018-06-04
  17. How do I convert EPS to PDF in Windows and macOS?     [jump in page]   2018-06-04
  18. How do I mount SMB share in Linux?     [jump in page]   2018-04-09
  19. After my employment at the university has finished, may I bring home my old computer?     [jump in page]   2018-01-11
  20. What is the point with the zone files.uu.se?     [jump in page]   2017-12-07
  21. I have installed R in another location. How do I use it in a script?     [jump in page]   2017-06-22
  22. How do I access my work-computer from home?     [jump in page]   2016-01-22
  23. Add a printer in Ubuntu 14.04     [jump in page]   2015-06-04
  24. Print using UserCode for Ubuntu     [jump in page]   2015-06-04




1. How do I connect a private computer to the department network?

See also: What is my IP-address and MAC-address?
See also: How do I find the serial number on macOS?
See also: How do I change the Mac computer name, host name and NetBIOS-name?

The most common way to connect private computers to the university network is to use the wireless network Eduroam. Read more about Eduroam on the central university support pages. Printing is done via eduPrint.

Some departments allow connecting private computers directly on the department internal LAN, because it might be the only way to use the internal department printers not connected to eduPrint.

When that is the case, the following information is needed to be put in the inventory. Please send the answers in a mail (in the body (text) of the mail not as an attachment) to helpdesk@bmc.uu.se.

  1. Full name of user and e-mail address
  2. Research group leader
  3. Serial number
  4. Computer name (hostname - what you are calling the computer)
  5. Computer manufacturer and model
  6. Operating system (Windows 10, macOS 10.12.6, Ubuntu 17.04 etc)
  7. Procurement date
  8. Name of anti-virus software (if any)
  9. Current firewall settings - enabled or disabled or something else? (Are there any open services on the computer? Please close any file shares, printers and similar services that are not needed and keep a password on those that must be open. No anonymous guest login should be possible for the services on the the computer.)
  10. Computer MAC-address on the LAN port
  11. Has the computer installed the latest updates for the operating system (Windows, macOS, Ubuntu etc) and major applications (Microsoft Office, Firefox, Google Chrome, anti-virus etc)?

The information is needed because the security division at Uppsala University must be able to trace security incidents, virus and similar activity. The university rules require every computer to run adequate anti-virus software. We also need too know if too old and insecure operating systems are being used (Windows XP) and who we should contact if there are any questions.

When the computer is registered it can be used on any network socket connected to the department network.

How to find some of this in Windows (type in command line)

  1. wmic csproduct get IdentifyingNumber
  2. hostname
  3. wmic csproduct get name
  4. ver && echo %PROCESSOR_ARCHITECTURE%
  1. getmac
    ipconfig /all (find the physical address for the ethernet adapter)

How to find some of this in macOS (type in command line)

  1. ioreg -l | grep IOPlatformSerialNumber (Also see How do I find the serial number on macOS? )
  2. hostname
  3. sysctl hw.model
  4. sw_vers -productVersion
  1. ifconfig en0 | grep ether




2. How does the reinstallation of Windows computers work at BMC-IT?

See also: What is the BMC-IT computer platform and how does it work?

These are instructions for installing Windows 10 x64 Enterprise via MDT 2013.

  1. Prepare installation
    1. Create USB flash drive
    2. Configuration for network boot
    3. Configuration of router filter
    4. Permissions for autojoin domain
    5. Hardware support
  2. Configure BIOS
  3. Starting install via USB flash drive
  4. Starting install via network
  5. Clearing partitions
  6. Continue with installing
    1. Select task sequence
    2. Fill in computer name and join domain
    3. Select applications
    4. Wait while installing
    5. Administrator password

Prepare installation

Create USB flash drive

  1. Get access to the installation directory through User-AD group bmc-autoadmin-group. Mail a mail to BMC-IT (helpdesk@bmc.uu.se) with your username and what you want.
  2. Get one or several 32 GB USB flash drives.
  3. Login on a Windows 10 computer with USB-ports as administrator.
    IMPORTANT: DO NOT HAVE A NETWORK DRIVE MAPPED TO G: H: I: OR J:!
  4. Reformat the USB flash drive with FAT32 file system
  5. Insert the USB flash drives (max 4 at the same time) in Windows 10 computer.
  6. Start a command prompt as administrator cmd (use CTRL and SHIFT to run as administrator from the prompt in the start menu)
  7. Run command: net use n: \\uuit-nasutus.its.uu.se\BMCIT-Common /user:user\account and login using your university account and password A.
  8. Run command: \\uuit-nasutus.its.uu.se\BMCIT-Common\MDT\scripts\MDT_FormatUSB.cmd \\uuit-nasutus.its.uu.se\BMCIT-Common\MDT\MDT-MediaMT

    This will format and erase all USB flash drives inserted in computer!

  9. Wait a long time. The faster the USB flash drives the better.
  10. Done!

Update USB flash drive

  1. If you already have done the above steps on a USB flash drive, you can choose to only update the USB flash drive by running command: \\uuit-nasutus.its.uu.se\BMCIT-Common\MDT\scripts\MDT_FormatUSB.cmd \\uuit-nasutus.its.uu.se\BMCIT-Common\MDT\MDT-MediaMT sync
    This will not format, just update the sticks with changed files.

Configuration for Network boot

For Windows DHCP it looks like this:


For ISC dhcpd it looks like this: from dhcpd.conf (this is using the central tftp.its.uu.se server)

 filename "bmc/pxelinux.0";
 next-server "130.238.7.37";
/tftpboot/pxelinux.cfg/default (already done)
PROMPT 1
TIMEOUT 100
DEFAULT l
DISPLAY msgs/boot.msg

LABEL l
      MENU LABEL ^Local Boot (default)
      LOCALBOOT 0

LABEL mdtmt
  MENU LABEL Windows MDT LiteTouchPE x64
  KERNEL memdisk
  APPEND iso initrd=LiteTouchPE_x64.iso raw

/tftpboot/msgs/boot.msg (already done)
Displaying tftp://tftp.its.uu.se/bmc/msgs/boot.msg from 130.238.7.37

 l        Local Boot (default)
 mdtmt    Windows 10 Enterprise x64

Pxelinux is coming from syslinux.org. It is included in most Linux-distributions.

The LiteTouchPE_x86.iso is located at \\BMCIT-Common.files.its.uu.se\BMCIT-Common\MDT\Boot\LiteTouchPE_x64.iso

Configuration of router filter

TFTP is using UDP. The request to the TFTP-server is sent on port 69/udp from any port. The TFTP-server at tftp.its.uu.se (130.238.7.37) is using UDP source ports 6900-6999 for responding.

Open up UDP, both directions, from host 130.238.7.37 to your clients. Usually this is all of your subnets. Send a request for this to netsupport@its.uu.se.

Permissions for autojoin domain

The account USER\bmc-autoadmin-mdt must at least have permission to Create Computer objects in the correct OU to be able to join automatically.

Hardware support

MDT 2013 based on Windows 10 have these requirements:

Microsoft has for Windows 8.1 dropped support for CPUs without the PrefetchW-feature. This includes the Pentium D 8xx CPUs hich are used in for example many Dell Optiplex GX620 desktops. So even if they have 4 GB RAM they cannot run the installation.

Some other Dell Optiplex with the slightly faster Intel Pentium D 9xx are working fine.

Check model with wmic csproduct get vendor, version

Configure BIOS

  1. Make sure you have the latest BIOS for the computer.
  2. Press F12 or F10 or whatever to enter BIOS. It depends on the computer model.

  3. To use UEFI-mode and install from USB flash drive, select:
    • Secure boot: OFF
    • Legacy boot: OFF
    • SATA mode: AHCI (not RAID)
    • UEFI boot order: Deselect USB flash drive

  4. To use Legacy-mode and install from network, select:
    • Legacy option ROMs: ENABLED
    • Secure boot: OFF

Starting install via USB flash drive

  1. Press F12 or F10 or whatever it is to be able to select boot source. It depends on the computer model.
  2. Choose to boot via USB. Some older computers might be limited to boot from an USB2-port. USB3 might not work on older computers.
  3. Continue with installing.

Starting install via network

  1. Press F12 when starting computer to boot via Network. If the Network adapter do not show PXE-booting may have to be enabled in BIOS.
  2. Choose to start MDT by typing M D T M T and pressing ENTER

  3. This will boot the netinstallation ISO over TFTP.
    If it do not work, boot via USB flash drive instead.
  4. Continue with installing (next section below).

Clearing partitions

If the installation stops because of a previous installation attempt or if something else is weird with the partition table, previously created partitions may be cleared manually.
  1. Press F8 during installation to start a command prompt
  2. diskpart
  3. sel dis 0
  4. cle
  5. exit
Diskart can also be used for unmounting a drive:
  1. Press F8 during installation to start a command prompt
  2. diskpart
  3. list volume
  4. sel dis 0
  5. remove all dismount
  6. exit

Continue with installing

  1. Select task sequence:
    • W10E is the normal Win10 Enterprise x64 deploy.

  2. Fill in computer name. The new computer name standard is first three letters for institution, then a dash and the computer serial number. The serial number is automatically read from the computer BIOS.
    USER\bmc-autoadmin-for-mdt must be given privileges to create new computer accounts in the USER-AD.
  3. If you are using a Virtual Machine then name the computer TLA - VM USERNAME. For me at BMC withe the username jny25782 I would name my first virtual machine BMC-VMJNY25782.

  4. Select what applications or other packages to install during installation:

  5. Wait up to two hours, but normally 20-30 minutes while the computer is running MDT for installing OS and applications.
  6. For computers in USER-AD at BMC the local administrator password is set by a GPO to a unique hash for each computer. Any locally set password will be overwritten.

    Without the GPO SetLocalPassAsMD5 the password will be set to bytgenast which means that you are responsible to CHANGE PASSWORD when the installation is done.

    Currently the algorithm looks like this: The serial number is upper case, cut to 11 characters, and padded by zeroes until 12 characters length, and then a secret password is added. The following works at the command line at macOS or Linux to create the password.

    macOS:

    echo -n SERIAL000000SECRET | md5 | head -c 12

    Scientific Linux, Ubuntu etc:

    echo -n SERIAL000000SECRET | md5sum | head -c 12






3. How do I set up eduPrint for a Linux server?

See also: How do I access my scans for eduPrint in Linux?
See also: What should I think about when adding my own network printer?
See also: How do I print on EduPrint with LPD on Windows 10?
See also: How do I print to eduPrint using LPD on macOS?

Printing via mail (Scientific Linux, Ubuntu, Debian)

In this example the file FILE_TO_PRINT.pdf is sent to a fictive user.

echo "please print me" | mailx -r passivo.agressivo@department.uu.se -a FILE_TO_PRINT.pdf print@uu.onricoh.se

Printing via CUPS on Linux (Ubuntu 16.04 / 17.10) or macOS (10.12.6)

  1. Get the PPD.

    Download and save the PPD as /tmp/eduPrint-UU.ppd on your local computer. If you use another file name then change the commands below appropriately.

  2. Make sure you are using the Employee-ID accounts on the computer. The easiest way to assure this is to use the Active Directory, but it works as long as the names are identical.
  3. Configure the printer queue:

    sudo lpadmin -p eduPrint-UU -v lpd://edp-uu-prn01.user.uu.se/eduPrint-UU -P /tmp/eduPrint-UU.ppd -u allow:all -o printer-is-shared=false -E

  4. Set this as the default printer queue if you want:

    sudo lpadmin -d eduPrint-UU

  5. Print like this:

    lp -d eduPrint-UU HELLO.pdf

If you are using unique local user account names

You want to configure the print queue to use the correct user name.

lpadmin -p QUEUENAME -v lpd://UU-USERNAME@edp-uu-prn01.user.uu.se/eduPrint-UU -P /tmp/eduPrint.ppd -u allow:LOCAL_USERNAME -o printer-is-shared=false -E

You can let everything printed on the computer go to a specific users queue.

lpadmin -p QUEUENAME -v lpd://UU-USERNAME@edp-uu-prn01.user.uu.se/eduPrint-UU -P /tmp/eduPrint.ppd -u allow:all -o printer-is-shared=false -E

Please note that the environment variable CUPS_USER may be used instead of specifying a specific user. This may be used on a multi user system if the variable is set in the login scripts.



4. What should be done to introduce a new system administrator at BMC?

There are several different systems a new employee may get access to. This is not a complete list of all systems that should be given access to but rather a list of external systems that one should at least be aware of.

Some of these things have to be done before an employee start.

Some of this applies to more than just BMC so you are more than welcome to take a look. Please let us know if there are things we are missing.

Personal computer and work space

Get an office. Chair, table, network. Do you need an ergonomic adjustable table? Make a raid down to the BMC campus office supply cabinet and get some pens, a notebook, a scissor and other office stuff that you might need.

If you have a Mac, get an external hard drive to run local Time Machine backups.

Get a standard PC and/or Mac up and running with the standard installation. When you have a UU account, make sure you are a local administrator.

If you need to, get two USB-sticks, one with Windows (with MDT) and one with latest macOS so that you can reinstall computers. Be familiar with the instructions regarding reinstallation of Windows and macOS.

There is a Mac installation server available on the BMC-Data network. There is a PXE boot menu available on almost all networks where legacy (not UEFI) installations of Windows can be done. Also basic network boot options for installing CentOS, installing Ubuntu and running Memtest86 etc are available there.

Configure the computer to work with eduroam and duPrint. Make sure it works.

Order a home directory at My Rudbeck and use the Medfarm voucher to get it for free. Make sure you can access this storage on your computer.

Try out Filr the file sync system. Install the Filr client on your computer. Understand where data is stored. Make sure you can access the data both via Filr and directly.

Let your boss order a phone, either fixed phone or mobile.

Activate your access to the VPN service by following the instructions.

Work clothing

You may get your own fancy BMC/UU hoodie at Grolls. Or whatever work clothing you need for doing your job.

Administrator access

Apply for administrator access to the Local IT organisation in the Active Directory. This will control access to USER.UU.SE\BMC and USER.UU.SE\LocalIT\BMCI in the Active Directory. The terminalserver to use is called dcts.user.uu.se.

The group BMC Computing Department in USER-AD (sorry for the odd name of this group) control some access to different systems, including the file share \\BMCIT-Common.files.uu.se\BMCIT-Common aka \\USER.UU.SE\BMCI\Common.

The Zenworks system for management of Windows (just FYI)

The Munki system for managemnt of Mac (just FYI)

The Symantec server (just FYI).

Physical access

You need an employee key card. This will grant access to the corridors at BMC but not to other campuses.

You need a key to your office. Almost all offices at BMC campus management share the same lock and key.

After instructions, you may get access to the BMC computer room at D11:0.

The cross connect cabinets of BMC are locked with a special key which could be granted access via the BMC-administration if needed. There exists an extra key in the Nyckelpiga at the basement so one do not need a physical key all the time.

Network management systems

There are some network administrative systems that one should be aware of and maybe given access. This includes:

  1. NetDB (for IP / VLAN / Mac / Switch-port information) (Ask Netsupport for access)
  2. NetReg (for Vlan and router and router filter configuration)
  3. Bluecat (the IPAM system for DNS DHCP information) (Ask Servicedesk for access)

Medarbetarportalen

Login at Medarbetarportalen. Here you can find for example:

  1. Sympa - mailing list server. You may want to join these mailing lists:
    • bmc-it@lists.uu.se
    • da-info@lists.uu.se
    • it-forum@lists.uu.se
    Someone at BMC-IT have to add you to:
    • bmc-it@lists.uu.se
    You will be automatically added to:
    • bmc-int@lists.uu.se
  2. Primula Web - wage, vacation, sick leave, parental leave etc.
  3. Product Web - procurement
  4. Progdist - software licence server
  5. Akka-self service - how to change password and create guest accounts
  6. eduPrint - the printing system
  7. EasIT - the helpdesk system. This is the tool to handle support requests.

Documentation to read

Read the docs in the FAQ at http://it.bmc.uu.se/faq/ and SOPs at http://it.bmc.uu.se/sop/. You do not have to read everything but it is good to have an idea of what it is. Of special interest may be how to reinstall computers with Windows and macOS.

There are more docs at the INV-Common share as well.

Take a look at the central IT helpdesk documentation at mp.uu.se/web/info/stod/it-telefoni

Take a look at the environment and security web pages at BMC. Make sure you know the way to the recycle rooms and to the container for the combustible fraction.

New employee introduction

The university has intrductions to new employees. Book in the next scheduled event!

Wellness, waste and environment at BMC

There are a gym, table tennis room, showers and sauna at BMC. Read more at BMC - health. Please note that employees at Uppsala University get a small wellness subsidy every year which can be used for gym membership and other similar activites. Also when job allows you may have one hour of wellness activities every week on paid time.

There are a couple of in-service bikes at BMC, two normal and two are electical. Lend them at the reception.

In order to learn on how to handle waste on BMC, please read the documentation.

Please note that no smoking is allowed closer than 15 meters from any university entrance.

Welcome! :-)





5. How do I access my scans for eduPrint in Linux?

See also: How do I set up eduPrint for a Linux server?

Where are the scans stored

The DFS-path to the directory where your scans are stored is smb://user.uu.se/eduPrint/Scan/USERNAME. This path works fine in macOS but may or may not work in Linux. The other official path is smb://eduprint.its.uu.se/scan.

How to access via user-space tool smbclient

Use smbclient to access your directory. But use your own username instead of mine. smbclient works like a very old school FTP-client if you remember those. It may be convenient because it is all in userspace and do not require any special privileges except access to the smbclient binary and network access.

smbclient -W USER -U jny25782 -m SMB3 //eduprint.its.uu.se/scan/ cd jny25782 ls

This works as well, without specifying a higher version of the SMB-protocol.

smbclient -W USER -U jny25782 -I eduprint.its.uu.se ///scan/ cd jny25782 ls

How to access them in Linux via kernel mount

You can mount directly on the command line like this. Use your own username and password.

sudo mount -t cifs -o username=jny25782,password=PASSWORDA,domain=user //eduprint.its.uu.se/scan/jny25782 /mnt/

You may exclude your password and be prompted instead. This works in Scientific Linux 6 (compatible with RHEL6) and CentOS 7 (compatible with RHEL7).

sudo mount -t cifs -o username=jny25782,domain=user //eduprint.its.uu.se/scan/jny25782 /mnt/

The default settings in Ubuntu 17.10 do not work. Try SMB version 2.1 like this. (Not needed anymore in 2019-03-11.)

sudo mount -t cifs -o username=jny25782,domain=user,vers=2.1 //eduprint.its.uu.se/scan/jny25782 /mnt/





6. How do I find specific files like the last updated, the one with the longest file name, or the largest one?

See also: How do I compare the content of two directories?
These tools work on Linux (Ubuntu/CentOS/etc) and probably on macOS too.

Find the most recently updated file

Here is a small script that displays the most recently updated files in a directory. In the example this FAQ entry was the most recently updated!

$ find . -type f -print0 | xargs -0 -P 1 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head -3 2018-04-27 08:55:47.517999369 +0200 ./last.updated.file.txt 2018-04-27 08:54:07.277999790 +0200 ./last.updated.file.txt~ 2018-04-27 08:51:50.658000281 +0200 ./compare.directories.txt $ _

Find the number of files and the file with the longest file name

This little script display the number of files in the current directory, the character length of the longest file name and the name of that file. There were in total 219 files and the longest filename has 49 characters in the path was ./how.to.map.network.drive.via.SMB.on.Windows.txt.

$ find . -type f | awk 'BEGIN{N=0} {N=N+1; if ( length > L ) { L=length ;s=$0 } }END{ print N" "L" "s }' 219 49 ./how.to.map.network.drive.via.SMB.on.Windows.txt $ _

Find the files with the longest file names

This little snippet just find print the files with the longest names:

$ find . -type f | while read ; do echo ${#REPLY} $REPLY ; done | sort -nr | head -3 45 ./how.to.map.network.drive.via.SMB.on.Windows 33 ./windows.office.force.activation 30 ./win.default.printer.settings $ _

Find the largest files

This will list the largest files. It will print a list of all files, in parallell do a stat on them, sort the list and then print the largest ones.

$ find . -print0 -type f | xargs -0 stat -c "%s %n" | sort -rn | head -3 23637 ./network.8021x 20285 ./platform 18051 ./network.help $ _





7. We need more storage! Do you have a file server we can use?

See also: How do the different types of storage compare to each other?
See also: How do I mount my home directory or shared storage at HNAS?
See also: How do I map a network drive via SMB on Windows?
See also: What is the cost of a PC file server?
See also: Backing up via Rsync to Btrfs snapshots
See also: How do I use an Apple AirPort Time Capsule?
See also: What is the BMC-IT computer platform and how does it work?
See also: What about the GDPR?

UUIT HDS NAS file server (HNAS)

K R T
332

The university has a common file server service run by IT-division running Hitachi NAS called file area (filarea)

In general order by contacting IT-division or contact helpdesk@bmc.uu.se if your department is already using the service.

BMC-IT PC file server (PCFS)

K R T
221

The PC file server storage service is a cost-efficient storage solution for mostly high volume archive data. It is built of commodity PC hardware (which means the hardware can be replaced with equipment from other vendors) and open source software (no hidden costs or support agreements). This gives us freedom and a low price but it also means that we are on our own.

The concept is from around 2010 where it was used for two departments. The service was originally built in 2016 for users at BMC who do not have to own their storage but since it is self-sustained it may be used by everyone at the university.

The setup is fully documented in SOP - Install PC file server, SOP - Common service PC file server and SOP - Rsync backup to Btrfs snapshots. This means you can set up a very similar setup using the same concept on your own if you want to.

Order by contacting BMC-IT at helpdesk@bmc.uu.se.

RBL-IT EMC Isilon file server (Argos)

K R T
331

(The KRT-value 332 requires Gold-level.)

Everyone at the university may use the Rudbeck-IT file servers running EMC Isilon. Technical Specifications Guide - Dell EMC Isilon OneFS and IsilonSD Edge.

For ordering please contact RBL-IT helpdesk@rudbeck.uu.se with this information:

Connect use Windows: \\argos.rudbeck.uu.se\MyGroups$

Connect use Mac OSX: smb://argos.rudbeck.uu.se/MyGroups$

UPPMAX

K R T
???

Uppmax has storage which is free if you have applied for and been granted resources. Please go to www.uppmax.uu.se to figure out what UPPMAX can do for you.






8. How do I find all the mounts in Linux?

Please try the command findmnt to show what mounts the computer have. This example is from a plain Ubuntu. Also the commands df and mount and looking into the file /proc/mounts may help.

The command lsblk, which lists block devices and their mount point instead of mounts, may also be of interest.



9. How do I mount an ISO and install MATLAB in Linux?

See also: I would like MATLAB on my computer please!

This has been tested in Ubuntu 18.04.

  1. Download the ISOs:

    $ wget ftp://flexlmtmw1.uu.se/Matlab_R2018a/R2018a_glnxa64_dvd1.iso ... $ wget ftp://flexlmtmw1.uu.se/Matlab_R2018a/R2018a_glnxa64_dvd2.iso ...

  2. Mount the ISO with disc1 on the /mnt directory:

    $ sudo mount -o loop R2018a_glnxa64_dvd1.iso /mnt

    The mount will warn you that this is a read-only image but that as it should be. This is a ISO 9660 file system built for being used read only on optic media.

  3. Navigate to that file system:

    $ cd /mnt

  4. List the files:

    $ ls -la

  5. Run the installation program:

    $ sudo ./install

    You need to download the license file from the Matlab Support Page. Put it in your home directory. When you are asked for the file, navigate to the file in the setup program. You also need to supply the key from the file to the setup program. (Yes it is a a bit strange that both the key and the file is needed, both from the same file.)

  6. After a while the installation program may ask for disc2. Eject the old ISO and mount the new one:

    $ sudo umount -l -f /mnt $ sudo mount -o loop R2018a_glnxa64_dvd2.iso /mnt

  7. Click OK in the setup program to continue installing from disc.
  8. When the installation is complete, start MATLAB with this command:

    $ /usr/local/MATLAB/R2018a/bin/matlab





10. How do I install Ubuntu?

See also: Add a printer in Ubuntu 14.04
See also: Print using UserCode for Ubuntu
See also: How do I mount SMB share in Linux?
See also: Do you have a virtual machine (server) I can use?
See also: How do I configure my resolver on a Linux machine?

This is documentation for a network installation of Ubuntu on the BMC network using the BMC-IT network boot menu over PXE. This applies to physical PCs or VirtualBox.

You can always do a manuall installation. Just download the DVD from Ubuntu and install. Skip a few steps in the instructions below.

  1. Netboot the computer, usually by pressing F12 at BIOS boot time.
  2. In the PXE-boot men, start the latest and greatest Ubuntu installation. For example start a text installation of Ubuntu 18.04 Bionic Beaver x64 Mini:

    l Local Boot (default) m Memtest86 mdtmt Windows 10 Enterprise x64 (Mediatek network) c74 CentOS 7.4 x64 Netboot c73iso CentOS 7.3 x64 Minimal ISO debian74 Debian Netinstall 7.4 AMD64 sl65 Scientific Linux 6.5 x64 sl65kick Scientific Linux 6.5 x64 kickstart u1604live Ubuntu 16.04 "Xenial Xerus" x64 Mini Remix Live u1704mini Ubuntu 17.04 "Zesty Zapus" x64 Mini u1710mini Ubuntu 17.10 "Artful Aardvark" x64 Mini u1804mini Ubuntu 18.04 "Bionic Beaver" x64 Mini boot: u1804mini_

  3. Step through the text installation. Activate automatic updates.
  4. Please name the computer TLA-SERIALNUMBER where TLA is your department unique three letter ancronym and SERIALNUMBER is the computer serial number.
  5. If you want to keep the Windows installation, if there is one on the computer, you can resize the existing partitions.
  6. You can choose several different desktop environments, but I recommend to begin with the standard Ubuntu desktop. This is how the Xubuntu desktop looks like in VirtulaBox running in macOS:

Installing in VirtualBox

If you install in VirtualBox, remember to install the VirtualBox Guest Additions to enable shared clipboard and files between the host and guest OS.
  1. The CD is mounted automatically by VirtualBox. If everything works fine Ubuntu will find the CD and ask you for permission to install the guest additions. Just go ahead.
  2. Otherwise, tro to mount the CD via the menu in VirtualBox with Devices - Insert Guest Additions CD image.... Continue as above.
  3. And finally if the autorun does not execute but the CD has been mounted, you can manually run the installation:
    cd /media/jerker/VBOXADDITIONS_4.3.28_1003095
    sudo ./VBoxLinuxAdditions.run




11. How do I access my work-computer from home?

See also: How to connect with VPN using AnyConnect in Windows
See also: How do I mount my home directory or shared storage at HNAS?
  1. Find out if you need access to the files or the actual computer running programs on it.
  2. If you only need access to the files, then it might be easier to store the files on a file server. Access the files in a secure way from home over VPN connecting to the file server.
  3. If you need access to the computer to be able to run programs on the computer, then:
    1. Allow someone to connect to your computer using Remote Desktop Connection. (Read HOWTO in Swedish or Read HOWTO in English)
    2. Lock the computer to a specific IP (Contact your Local IT, computer name, your current IP and MAC-address)
    3. .. and open in the router filter so that you can run remote desktop from the VPN to the computer. (This is also done by your Local IT.)

Mac

In Mac, get Microsoft Remote Desktop which is free in the App Store.

Add a new host hosts with login (with the windows domain) and password and then Start!

Remember to add the Windows domain in for example the format username@domain, if the host is connected to a Windows domain.

Windows

In Windows, start Remote Desktop Connection and enter the details and then Connect.

Linux Ubuntu

Install rdesktop and run for example this command:

rdesktop -p MySecretPassword -u _jny25782-T -d USER -x 0x80 -g 1800x1100 -k sv dcts.user.uu.se





12. How do I connect to the VPN using Ubuntu?

See also: How to connect with VPN using AnyConnect in Windows
See also: How do I set firewall rules in Linux to block SSH?
See also: What is my IP-address and MAC-address?
  1. First apply for the VPN-service. Go to VPN service at Medarbetarportalen and follow instructions in the section Application for VPN service.

  2. Then install the openconnect client:

    sudo apt-get install network-manager-openconnect-gnome

  3. From the menu choose Edit connections...

  4. Select Add

  5. Select the Cisco AnyConnect Compatible VPN (openconnect) connection type.

  6. Edit your connection by naming it (VPN.UU.SE in this example) and then enter the gateway vpn.uu.se:

  7. The new connection will now show up in the Network Manager menu. Open it.

  8. Enter your username and password A and if you dare select Save passwords.

  9. It worked!

  10. Check your new IP-address:

    ip addr list vpn0

  11. You can also go to websites like www.whatismyip.com to see where you are connecting from.




13. How do I install the OCS Inventory agent for Linux?

See also: How do I use the UUPEL repository?

OCS Inventory is an open source inventory system for computer hardware and software.

The OCS Inventory server at BMC currently (2017-08-10) is running version 2.2 but the latest version is 2.3. So the client must be version 2.2 or lower.

Ubuntu 17.04

Ubuntu currently has the 2.0.5 version in their repositories which works fine but cannot check certificates.

  1. Install package

    apt-get install ocsinventory-agent

  2. Answer that the inventory should be generated over http.
  3. Enter the server name https://inv.bmc.uu.se/ocsinventory
  4. Fix configuration.

    cat <<EOF >>/etc/ocsinventory/ocsinventory-agent.cfg tag = BMC logger = Stderr logfile = /var/log/ocsinventory-client/ocsinventory-agent.log EOF

  5. Run the agent every hour instead of every day:

    mv /etc/cron.daily/ocsinventory-agent /etc/cron.hourly/.

  6. Test that everything is working.

    ocsinventory-agent cat /var/log/ocsinventory-client/ocsinventory-agent.log

  7. The computer should now show up at https://inv.bmc.uu.se/ocsreports/!

CentOS 6 (Scientific Linux 6 and RHEL 6)

CentOS has the 2.3 version in the EPEL repository which is to new. Install the older 2.1 version instead.

  1. Add the EPEL repo.

    yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

  2. Install the monitir-edid package.

    yum -y install http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/monitor-edid-2.1-1.el6.rf.x86_64.rpm

  3. Go to https://pkgs.org/download/ocsinventory-agent and download and install the version 2.1.1 of ocsinventory-agent and perl-Ocsinventory-Agent. This will add a lot of dependant packages.

    yum -y install http://rpms.famillecollet.com/enterprise/6/remi/x86_64//perl-Ocsinventory-Agent-2.1.1-1.el6.remi.noarch.rpm http://rpms.famillecollet.com/enterprise/6/remi/x86_64//ocsinventory-agent-2.1.1-1.el6.remi.x86_64.rpm

  4. Add the server to the configuration files at /etc/ocsinventory/ocsinventory-agent.cfg

    sed -i 's/^local = /###local = /' /etc/ocsinventory/ocsinventory-agent.cfg cat <<EOF >>/etc/ocsinventory/ocsinventory-agent.cfg server = https://inv.bmc.uu.se/ocsinventory ssl = 1 ca = /etc/ocsinventory/inv.bmc.uu.se.public.pem tag = BMC logger = Stderr logfile = /var/log/ocsinventory-agent/ocsinventory-agent.log EOF

  5. Download and put the public certificates from the webserver into the /etc/ocsinventory/inv.bmc.uu.se.cacert.pem file. This way the client is sure just to contact the OCS server.

    openssl s_client -showcerts -connect inv.bmc.uu.se:443 </dev/null 2>/dev/null | openssl x509 -outform PEM >/etc/ocsinventory/inv.bmc.uu.se.public.pem

  6. Activate the cronjob

    sed -i 's/=none/=cron/' /etc/sysconfig/ocsinventory-agent

  7. Test that everything is working.

    ocsinventory-agent cat /var/log/ocsinventory-agent/ocsinventory-agent.log

  8. The computer should now show up at https://inv.bmc.uu.se/ocsreports/!

CentOS 7 (Scientific Linux 7 and RHEL 7)

CentOS has the 2.3 version in the EPEL repository which is to new. Install the older 2.1 version instead. Certificate check seem to be broken, maybe due to missing perl package.

  1. Add the EPEL repo.

    yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

  2. Go to https://pkgs.org/download/ocsinventory-agent and download and install the version 2.1.1 of ocsinventory-agent and perl-Ocsinventory-Agent. This will add a lot of dependant packages. Also add monitor-edid and libx86.

    yum -y install http://rpms.famillecollet.com/enterprise/7/remi/x86_64//perl-Ocsinventory-Agent-2.1.1-1.el7.remi.noarch.rpm http://rpms.famillecollet.com/enterprise/7/remi/x86_64//ocsinventory-agent-2.1.1-1.el7.remi.x86_64.rpm http://rpms.famillecollet.com/enterprise/7/remi/x86_64//monitor-edid-3.0-6.el7.remi.x86_64.rpm http://rpms.famillecollet.com/enterprise/6/remi/x86_64//libx86-1.1-9.el6.remi.x86_64.rpm perl-LWP-Protocol-https

  3. Add the server to the configuration files at /etc/ocsinventory/ocsinventory-agent.cfg. Something is not working with certificate validation.

    sed -i 's/^local = /###local = /' /etc/ocsinventory/ocsinventory-agent.cfg cat <<EOF >>/etc/ocsinventory/ocsinventory-agent.cfg server = https://inv.bmc.uu.se/ocsinventory ssl = 0 ### broken ca = /etc/ocsinventory/inv.bmc.uu.se.public.pem tag = BMC logger = Stderr logfile = /var/log/ocsinventory-agent/ocsinventory-agent.log EOF

  4. Download and put the public certificates from the webserver into the /etc/ocsinventory/inv.bmc.uu.se.cacert.pem file. This way the client is sure just to contact the OCS server.

    openssl s_client -showcerts -connect inv.bmc.uu.se:443 </dev/null 2>/dev/null | openssl x509 -outform PEM >/etc/ocsinventory/inv.bmc.uu.se.public.pem

  5. Activate the cronjob

    sed -i 's/=none/=cron/' /etc/sysconfig/ocsinventory-agent

  6. Test that everything is working.

    ocsinventory-agent cat /var/log/ocsinventory-agent/ocsinventory-agent.log

  7. The computer should now show up at https://inv.bmc.uu.se/ocsreports/!




14. How do I set firewall rules in Linux to block SSH?

See also: How to connect with VPN using AnyConnect in Windows
See also: How do I connect to the VPN using Ubuntu?

This is an example on how to set firewall rules in Linux. The command iptables below first open incoming on port 22/tcp (SSH) for the university network and then drop all other.

The first command (iptables) adds a rule (-A) to the input-chain (INPUT) for protcol tcp (-p tcp) on the incoming (--destination-port) port 22 for SSH (22) which has a source (-s) from the university (130.238/16) that it should accept the packets (-j ACCEPT).

The second command just drops everything else.

# iptables -A INPUT -p tcp --destination-port 22 -s 130.238/16 -j ACCEPT # iptables -A INPUT -p tcp --destination-port 22 -j DROP

How to save the rules is different between different distributions. In CentOS 7 I use the command service iptables save. In Ubuntu/Debian, install the package iptables-persistent and then run the command iptables-save > /etc/iptables/rules.v4. Reboot computer to see that the firewall rules stick.

To see the current firewall rules run this command:

# iptables -L -n

Also, to limit which accounts can login via SSH you can use the AllowUsers keyword in /etc/ssh/sshd_config like this:

AllowUsers myaccount

To allow more users:

AllowUsers firstaccount secondaccount

Restart or reload sshd or restart computer to use the new configuration for sshd.

Read more about iptables at the Netfilter homepage.



15. How to transfer web hosting for a domain

  1. Add the correct virtual host to the webserver
  2. Check to whom the mail to change in DNS should be sent
  3. Send a mail to domainmaster and request the change

Step 1. Add the correct virtual host to the webserver

In order to get the new webserver to respond the new name. Usually one must must add the virtual host to the web server configuration.

Check that the new service is working at the new host. Change the the hosts-file on a client computer. On Ubuntu (Linux) and macOS it is called /etc/hosts and Windows %SystemRoot%\system32\drivers\etc\hosts usually c:\windows\system32\drivers\etc\hosts.

If the webserver is called www.department.uu.se and will be moved to the new IP-address 130.238.39.248 then add the following line:

130.238.39.248 www.department.uu.se

Or if you wish to use both www.department.uu.se and department.uu.se you need to put them both in the hosts-file:

130.238.39.248 www.department.uu.se department.uu.se

Now restart the local webbrowser (Firefox, Internet Explorer etc) and open the website (http://www.department.uu.se/). Your webbrowser will now contact the new IP-address (picked from the hosts-file).

If the website has two names (www.department.uu.se and department.uu.se), you need to test them both.

If the the web browser shows an page like this you need to activate the web site on the new web server. If you run Apache you need to create the correct VirtualHost. Contact the responsible person for the webserver or the web site and let them fix the problem before you proceed.

When everything is OK proceed to the next step. Also, remember to remove your changes to your hosts-file.

Step 2. Check to whom the mail to change in DNS should be sent

Then check the SOA field of the domain. The SOA record contain information on what what the contact person is for the domain. When querying for SOA also authoritative nameserver may be shown.

Use the command Dig for this. Dig is included in macOS and Linux and may be downloaded for free for Windows.

The output may look like this:

$ dig soa bmc.uu.se ; <<>> DiG 9.4.3-P3 <<>> soa bmc.uu.se ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35450 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 7 ;; QUESTION SECTION: ;bmc.uu.se. IN SOA ;; ANSWER SECTION: bmc.uu.se. 14400 IN SOA ddns.uu.se. domainmaster.uu.se. 2015021900 3600 600 2592000 1800 ;; AUTHORITY SECTION: bmc.uu.se. 1078 IN NS dns2.uu.se. bmc.uu.se. 1078 IN NS dns3.uu.se. bmc.uu.se. 1078 IN NS dns1.uu.se. bmc.uu.se. 1078 IN NS dns.uu.se. ;; ADDITIONAL SECTION: dns.uu.se. 13974 IN A 130.238.7.10 dns.uu.se. 13974 IN AAAA 2001:6b0:b:242:130:238:7:10 dns1.uu.se. 13974 IN A 130.238.4.133 dns1.uu.se. 13974 IN AAAA 2001:6b0:b:215:130:238:4:133 dns2.uu.se. 13974 IN A 130.238.164.6 dns2.uu.se. 13974 IN AAAA 2001:6b0:b:732:130:238:164:6 dns3.uu.se. 13974 IN A 193.11.12.166 ;; Query time: 4 msec ;; SERVER: 130.238.39.248#53(130.238.39.248) ;; WHEN: Fri Feb 27 17:43:03 2015 ;; MSG SIZE rcvd: 304 $ _

There are two interesting things in this output.

  1. The contact person is domainmaster@uu.se. The first unescaped . (dot) in the field is substituted to an @.
  2. There are DNS-servers on uu.se.

Step 3. Send a mail to domainmaster and request the change

The main part of the mail may look like this:

To: domainmaster@uu.se From: me@department.uu.se Subject: change webserver www.department.uu.se Hello, Please make www.department.uu.se a CNAME to www.service.uu.se like this: www.department.uu.se. IN CNAME www.service.uu.se. Kind regards, My contact information

Or, if you wish to change both http://www.department.uu.se and http://department.uu.se it may look like this with only IPv4 addresses.

To: domainmaster@uu.se From: me@department.uu.se Subject: change webserver www.department.uu.se department.uu.se Hello, Please remove the old A-record for department.uu.se and any record for www.department.uu.se. Add the following: department.uu.se. IN A 130.238.39.248 department.uu.se. IN A 130.238.39.252 www.department.uu.se. IN A 130.238.39.248 www.department.uu.se. IN A 130.238.39.252 Kind regards, My contact information.

If you have any questions contact helpdesk@bmc.uu.se or domainmaster@uu.se.





16. How do I convert an image from RGB to CMYK?

See also: How do I convert EPS to PDF in Windows and macOS?

The software ImageMagick can do this. This can also be done in Photoshop and other tools. But ImageMagick works in both Windows, macOS and Linux (Ubuntu etc) and also has an interface in plenty of programming languages. And it is free.

  1. As an example we have a small sRGB PNG.

    $ identify start.image.png start.image.png PNG 448x54 448x54+0+0 8-bit sRGB 4101B 0.000u 0:00.009 $

  2. First convert the sRGB PNG into a sRGB TIFF.

    $ convert start.image.png start.image.tiff $

  3. Then convert the sRGB TIFF into a CMYK TIFF.

    $ convert start.image.tiff -colorspace CMYK output.image.tiff $

  4. Confirm that the resulting image is a CMYK TIFF.

    $ identify output.image.tiff output.image.tiff TIFF 448x54 448x54+0+0 8-bit CMYK 2376B 0.000u 0:00.000 $

The command line tool seems to work fine in Windows as well:





17. How do I convert EPS to PDF in Windows and macOS?

See also: How do I merge PDF documents with PDF-Xchange in Windows?
See also: How do I merge documents with Preview in macOS?
See also: How do I convert an image from RGB to CMYK?
See also: How do I create binary packages with MacPorts?

Mac OS X

  1. Open in Preview.
  2. Save as PDF.

Windows

There seems to be no built in way to convert EPS to PDF in Windows.

Use Adobe Acrobat Pro.

  1. Open the file.
  2. Save as PDF.

Use some external service like Cloudconvert

  1. Upload file
  2. Download PDF
  3. If you want to import a vector image into Word then convert into EMF instead.

Linux (Ubuntu, CentOS etc) / Windows / macOS

The software ImageMagick can do this.

convert fish.eps fish.pdf





18. How do I mount SMB share in Linux?

See also: How do I mount my home directory or shared storage at HNAS?
See also: How do I install Ubuntu?
See also: How do I access PCFS over SMB using smbclient?

Command line

  1. If you are running Ubuntu make sure the package cifs-utils is installed by running the command:

    apt-get install cifs-utils

  2. To mount an SMB-share on the command line in Linux, first create a directory where to mount the share: example like this:

    mkdir /mnt/myfiles

  3. Then mount:

    mount -t cifs -o domain=USER,username=jny25782,password=XXX '//inv-users.files.uu.se/inv-users$/jny25782' /mnt/myfiles

    If you want to be prompted for a password try this instead where the password is not specified.

    mount -t cifs -o domain=USER,username=jny25782 '//inv-users.files.uu.se/inv-users$/jny25782' /mnt/myfiles

  4. Newer versions of Ubuntu do not fall back to older versions of the SMB protocol. Then please specify what version you want to use. In this example Ubuntu 17.10 is used connecting to the Hitachi NAS service at UU.

    mount -t cifs //inv-users.files.uu.se/INV-Common$/ /mnt/myfiles -o domain=USER,username=jny25782,password=XXX,vers=2.0

Permanently

To do this permanently add the following line (as a root user) in the file /etc/fstab

  1. First check your uid (uidNumber) as your normal user:

    id -u

  2. Then enter this line as an administrator in the file /etc/fstab.

    //inv-users.files.uu.se/inv-users$/jny25782 /mnt/myfiles cifs domain=USER,username=jny25782,password=XXX,uid=1000,iocharset=utf8 0 0

  3. Now the normal user with id 1000 should be able to access the files in /mnt/myfiles

Temporarily on an Ubuntu desktop

  1. Start the file browser and open Connect to server...
  2. Enter the path:

  3. Enter your credentials





19. After my employment at the university has finished, may I bring home my old computer?

See also: After my employment at the university has finished, may I keep my old e-mail address?
See also: How do I buy a new computer?
See also: What do I do with old computers or phones?

Unfortunately no. The computer belongs to the university even if you bought it with your research money through the university. This is the general rule.

In certain cases, if you move your employment to another government facility, like another university, it may be ok if all of the following rules match:

  1. It has to be a government facility (like a university). The computer may not be brought to a private company even if the private company do research.
  2. There has to be an agreement (understanding) between the old employer (head of department) and the new employer.
  3. The equipment has to be removed from the university (department) inventory and added to the new employers (department) inventory. The equipment will not belong to the individual but follow the normal rules of the new employer.

Also be aware that the storage of the computer usually contain sensitive data. Before scrapping or repurposing equipment you have two options;

  1. Remove the permanent storage and send it to destruction. Permanent storage may be a hard drive (HDD), a solid state drive (SSD) etc.
  2. Overwrite the whole of the permanent storage with other data on the block level. (This may take a couple of hours.)

    Please note that even block level wipe of the storage does not delete bad blocks. If the data is so sensitive that this is not acceptable the storage has to be destroyed and cannot be repurposed.

Contact BMC-IT for help with this.

From time to time, the department, campus or university may sell old equipment to the employees. But it has to be sold at market value and the costs involved have to be covered. All software licensed to the university have to be removed. For example all our versions of Windows and Office have to be removed. Instead of Windows for example Ubuntu or any other free operating system or software may be installed. In practice all of this makes it very hard to sell old equipment in an usable state at a reasonable price.

Read more in Regler för försäljning av inventarier UFV 2008/159 (local copy)


Old equipment may sometimes be valuable in itself. The computer in the picture is a PDP-12 belonging to the Update computer club at Uppsala University.






20. What is the point with the zone files.uu.se?

See also: What is Rrsync (restricted rsync)? How do I access PCFS storage over rsync?
See also: How do I access PCFS over SMB using smbclient?
See also: How do I mount my home directory or shared storage at HNAS?

The initiative for the domain files.uu.se was taken in 2015-05 by BMC in order to get an aliases to file server shares with unique names.

For example, the file server share is named with the TLA-SHARENAME, like INV-Common. Then the CNAME will be TLA-SHARENAME.files.uu.se or INV-Common.files.uu.se pointing to the current file server where the share is located.

The reasoning behind this is the following:

  1. Get a unique name in DNS to each file server share. This will faciliate migration of file server shares to new servers.

    We (the university) had a lot of troubles with migration from the old NetApp file server to the new HNAS file servers. This zone with an extra level of abstraction in front of the real file server names was intended as a proactive way of eliminating one part of the problem in preparation for the next file server migration. It also makes it easier for those users users (research groups or department) that wish to or have to move their share from one storage system to another.

  2. Make it work for all operating systems. There is a function in the Microsoft Active Directory (with a similar goal) called the DFS that put all file server shares in a single name space. This however do not work all the time in all operating systems, like non-AD connected Windows-clients, macOS (not all of the time), Linux (it depends a lot on the configuration it do not work for example in Ubuntu out of the box).
  3. Network agnostic Get access to the servers even from other networks where needed when the USER-AD (user.uu.se) is not accessible due to using split DNS and access restrictions, like UAS, SLU, UPPMAX, HPC-centers in Sweden and maybe mobile data. It is also not a requirement to use the university resolvers, it should work even if the local resolvers are down.




21. I have installed R in another location. How do I use it in a script?

If you are running macOS or Ubuntu and have installed R in for example in /opt/local64/R/3.1.1/ and have /opt/local64/R/3.1.1/bin in your path would like to write scripts that use this location, and any other location where you install new versions of R, you may use /bin/env to start R.

The general idea in Unix is that the operating system and the packaging system install software in /bin and /usr/bin. The user install for a local system manually in /usr/local/bin. Shared software over a distributed file system (NFS, Lustre, CepFS..) usually resides in /sw /opt /srv. A packaging system external to the OS (like MacPorts) usually resides in /opt/local.

$ which R
/opt/local64/R/3.1.1/bin/R
$ cat >test.r <<EOF
> #!/bin/env Rscript
>
> print('hello')
>
> EOF
$ cat test.r
#!/bin/env Rscript

print('hello')

$ chmod +x test.r
$ ./test.r
[1] "hello"
$ _




22. How do I access my work-computer from home?

See also: How to connect with VPN using AnyConnect in Windows
See also: How do I mount my home directory or shared storage at HNAS?
  1. Find out if you need access to the files or the actual computer running programs on it.
  2. If you only need access to the files, then it might be easier to store the files on a file server. Access the files in a secure way from home over VPN connecting to the file server.
  3. If you need access to the computer to be able to run programs on the computer, then:
    1. Allow someone to connect to your computer using Remote Desktop Connection. (Read HOWTO in Swedish or Read HOWTO in English)
    2. Lock the computer to a specific IP (Contact your Local IT, computer name, your current IP and MAC-address)
    3. .. and open in the router filter so that you can run remote desktop from the VPN to the computer. (This is also done by your Local IT.)

Mac

In Mac, get Microsoft Remote Desktop which is free in the App Store.

Add a new host hosts with login (with the windows domain) and password and then Start!

Remember to add the Windows domain in for example the format username@domain, if the host is connected to a Windows domain.

Windows

In Windows, start Remote Desktop Connection and enter the details and then Connect.

Linux Ubuntu

Install rdesktop and run for example this command:

rdesktop -p MySecretPassword -u _jny25782-T -d USER -x 0x80 -g 1800x1100 -k sv dcts.user.uu.se





23. Add a printer in Ubuntu 14.04

See also: How do I install Ubuntu?
See also: Print using UserCode for Ubuntu
  1. Find System Settings.

  2. Open System Settings

  3. Open Printers in System Settings

  4. Add a New Printer

  5. Expand the Network tree and see if it is browsable. Choose a way to connect. It usually does not matter. If the printer has dynamic DHCP (different IP from time to time) then use DNS-SD (Bonjour).

  6. Many printers are automatically found correct drivers for, but if not, see if you can find it in the driver database. You need to know:
    • Manufacturer
    • Model
    • Perhaps the IP-address of the printer

  7. If not found automatically, pick Maker

  8. If not found automatically, pick Model

  9. Give it a name. We recommend room number and model.

  10. Ok! Lets go! Print Test Page and press Ok.

  11. Done!





24. Print using UserCode for Ubuntu

See also: Add a printer in Ubuntu 14.04
See also: Print using locked print on macOS
See also: Print using locked print on Windows

Some printers are set up using UserCode for internal billing purposes. If no UserCode is used one cannot print on the printer.

After adding a printer in Ubuntu, using the correct driver, select Properties for the printer.

  1. In the Printer Options set User Code to Custom UserCode.

  2. In the Job Options add a new option called UserCode.

  3. Enter the code here in the new UserCode option.

This documentation is covered by GNU Free Documentation License. 36 ms