Skip to content

Cheatsheet IGELOS General

apparmor_status

Lists all services protected by apparmor

1
apparmor_status
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
apparmor module is loaded.
18 profiles are loaded.
18 profiles are in enforce mode.
   /sbin/dhclient
...
   /{dev/.mnt-system/ro/,dev/.mnt-system/ro/sys/,}usr/sbin/tcpdump
0 profiles are in complain mode.
8 processes have profiles defined.
7 processes are in enforce mode.
   /sbin/dhclient (12496)
...
   /{dev/.mnt-system/ro/,dev/.mnt-system/ro/sys/,dev/.mnt-system/rw/,dev/.mnt-system/rw/sys/,}services/fbrw/firefox/{,*[^s][^h]} (14061)
0 processes are in complain mode.
1 processes are unconfined but have a profile defined.
   /usr/sbin/haveged (366)

chromium-browser

Start Chromium browser in App Mode for Citrix Storefront and similar pages - to use with Custom App function

1
chromium-browser --app=https://storefront-url.domain.org --start-maximized

curl

Check for trusted certificate or download files

Download script from Github and save it:

1
curl -O https://raw.githubusercontent.com/IGEL-Community/IGEL-Custom-Partitions/master/CP_Source/Unified_Communications/Zoom/build/build-zoom-cp.sh
1
2
3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   982  100   982    0     0   3494      0 --:--:-- --:--:-- --:--:--  3494

florence

Onscreen keyboard

Sample settings in configuration file: /wfs/user/florence.store

1
2
3
window_xpos=9
window_ypos=71
window_zoom=33

get

Read variable from registry

Read variable system.remotemanager.ums_structure_tag:

1
get system.remotemanager.ums_structure_tag
1
Building1

get_unit_id

Get the Unit ID

get the Unit-ID:

1
get_unit_id && echo
1
85641000F615234423

reset the original Unit-ID:

1
get_unit_id -m
1
2
3
4
5
6
7
8
Manually set new Unit ID

    0 abort setting Unit ID
    1 UD Pocket Unit ID 85641000F615234423
    2 eth0: Unit ID 002326FC34DE, connected via PCI, wired, has no license
    3 wlan0: Unit ID 002314200E4, connected via PCI, wireless, has no license

Choose number to abort or set new Unit ID:

reset it to the correct ID, Reboot, and then license it.

1
get_unit_id -if

getmyip

show device IP

1
getmyip && echo
1
192.168.1.2

icg-config

IGEL Cloud Gateway config; with url and mass deployment key

1

1

kinit

Active Directory login

Kinit command explained

klist

Display kerberos tickets

resetvalue_tree

Reset defined section of the IGEL registry

  • Reset all settings under each of the registry classes back to default but do not include network
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
/bin/resetvalue_tree auth
/bin/resetvalue_tree awsc
/bin/resetvalue_tree browserglobal
/bin/resetvalue_tree chromiumglobal
/bin/resetvalue_tree custom_partition
/bin/resetvalue_tree debug
/bin/resetvalue_tree devices
/bin/resetvalue_tree evidian
/bin/resetvalue_tree fwtools
/bin/resetvalue_tree ibm
/bin/resetvalue_tree ica
/bin/resetvalue_tree igel-sound-control
/bin/resetvalue_tree imprivata
/bin/resetvalue_tree jabra
/bin/resetvalue_tree java
/bin/resetvalue_tree monitoring_agent
/bin/resetvalue_tree multimedia
#/bin/resetvalue_tree network
/bin/resetvalue_tree pcoip
/bin/resetvalue_tree pcom
/bin/resetvalue_tree print
/bin/resetvalue_tree printerlogic
/bin/resetvalue_tree product
/bin/resetvalue_tree rdp
/bin/resetvalue_tree scard
/bin/resetvalue_tree services
/bin/resetvalue_tree sessions
/bin/resetvalue_tree speechwrite
/bin/resetvalue_tree spice
/bin/resetvalue_tree stratusphere_ux
/bin/resetvalue_tree system
/bin/resetvalue_tree thinlinc
/bin/resetvalue_tree twox
/bin/resetvalue_tree update
/bin/resetvalue_tree userinterface
/bin/resetvalue_tree vmware
/bin/resetvalue_tree vmwarevdmapp
/bin/resetvalue_tree voip
/bin/resetvalue_tree windowmanager
/bin/resetvalue_tree wvd
/bin/resetvalue_tree x
/bin/resetvalue_tree xen
/bin/killwait_postsetupd
/sbin/write_rmsettings

setparam

Write variable to registry

Write variable system.remotemanager.ums_structure_tag with Value Building1:

1
2
setparam system.remotemanager.ums_structure_tag "Building1"
write_rmsettings

Write and read variable system.remotemanager.ums_structure_tag with MAC Address of all network interfaces:

1
2
3
setparam system.remotemanager.ums_structure_tag $(ip a | grep ether | tr -s ' ' | cut -d " " -f 3 | paste -d " "  - -)
write_rmsettings
get system.remotemanager.ums_structure_tag

vdm_client0

After creating a VMware Horizon session, you can get it to run fully as User from command line with the following command.

1
su -c "XDG_RUNTIME_DIR=/run/user/777 /config/sessions/vdm_client0" user &

xrandr

Controls the Screens from command line

Scale down a 4k-monitor in conference room to match laptop display resolution.

  • Find the outputs
1
su user -c xrandr
  • Example 1:
1
su user -c xrandr --output DISPLAY1 --rate 60 --mode 1920x1080 --fb 1920x1080 --panning 1920x1080* --output DISPLAY2 --mode 1920x1080 --same-as DISPLAY1
  • Example 2:
1
su user -c xrandr —output HDMI-1 —rate 60 —mode 1920x1080 —fb 1920x1080 —panning 1920x1080* —output eDP-1 —mode 1920x1080 —same-as HDMI-1

Create a virtual monitor to be used for applications, such as VMware Horizon, that expect a monitor to be attached. This can be added to Setup > System > Firmware Customization > Custom Commands > Desktop > Final desktop command

1
xrandr --setmonitor virtual 640/64x480/48+1680+0 none

Rotate window 90 degrees

1
xrandr -o left

To revert back

1
xrandr -o normal