Megatest

Changes To lxd_test_cluster
Login

Changes to "lxd_test_cluster" between 2017-03-23 18:57:26 and 2017-03-23 19:03:08

78
79
80
81
82
83
84
85
86


87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102

103
104
105
106
107
108
109
110
111
112
113
114
115


116
117
118
119
120
121
122
123
124
125
126
127
128
129
130

131
132
133
134
135
136
137
78
79
80
81
82
83
84


85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

102
103
104
105
106
107
108
109
110
111
112
113


114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129

130
131
132
133
134
135
136
137







-
-
+
+















-
+











-
-
+
+














-
+








    host# lxc exec container1 /bin/bash
    container1# su - mtuser
    % ssh-keygen

-   leave password blank, take all defaults

    % cat .ssh/id_rsa.pub > .ssh/authorized_keys
    % chmod go= .ssh/authorized_keys
    % cat .ssh/id\_rsa.pub > .ssh/authorized\_keys
    % chmod go= .ssh/authorized\_keys
    % tar czvf /lxd-shared/mtuser-ssh.tgz .ssh
    % ssh container2 tar xzvf /lxd-shared/mtuser-ssh.tgz
    % ssh container3 tar xzvf /lxd-shared/mtuser-ssh.tgz

-   ssh between all pairs to initialize host keys.  should be passwordless now.

## pick a container and setup X / vnc<a id="orgheadline7"></a>

    container# apt-install vnc4server xfce4
    container# su -c mtuser
    % vncpasswd
    put following in .vnc/xstartup
     #!/bin/sh
     
     # Uncomment the following two lines for normal desktop:
     # unset SESSION_MANAGER
     # unset SESSION\_MANAGER
     # exec /etc/X11/xinit/xinitrc
     
     #[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
     #[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
     #xsetroot -solid grey
     #vncconfig -iconic &
     #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
     #x-window-manager &
     
     
     #!/bin/sh
     unset SESSION_MANAGER
     unset DBUS_SESSION_BUS_ADDRESS
     unset SESSION\_MANAGER
     unset DBUS\_SESSION\_BUS\_ADDRESS
     startxfce4 &
     
     [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
     [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
     xsetroot -solid grey
     vncconfig -iconic &

mtuser% vncserver -geometry 1366x746 -depth 24

## fix consternating issue breaking tab completion working in any term:<a id="orgheadline8"></a>

-   edit  ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
-   find the line 
    
        <property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>
        <property name="&lt;Super&gt;Tab" type="string" value="switch\_window\_key"/>
-   and change it to
    
        <property name="&lt;Super&gt;Tab" type="empty"/>
-   restart vnc (vncserver -stop :1 ;

## start a vnc session (so iup works)<a id="orgheadline9"></a>