Skip to content

Instantly share code, notes, and snippets.

@mrajashree
Created May 10, 2017 02:30
Show Gist options
  • Save mrajashree/a252d9056e556c6fc6bf98da570027b7 to your computer and use it in GitHub Desktop.
Save mrajashree/a252d9056e556c6fc6bf98da570027b7 to your computer and use it in GitHub Desktop.
1 exit
2 xhost local:root
3 sudo DISPLAY=$DISPLAY gedit /etc/profile
4 sudo DISPLAY=$DISPLY
5 ls -l /tmp/.X11-unix/X1
6 ps
7 kill 8448
8 ps
9 xvfb-run --server-args='-screen 0, 1024x768x24' google-chrome -start-maximized http://www.example.com &> /dev/null &
10 ps
11 DISPLAY=:99 import -window root myimage.png
12 hisstory
13 history
14 DISPLAY=:0 display import -window root myimage.png
15 DISPLAY=:99 display import -window root myimage.png
16 echo $DISPLAY=:99
17 echo $DISPLAY
18 DISPLAY=:99 display import root myimage.png
19 DISPLAY=:99 display import -window root myimage.png
20 DISPLAY=:0 display import -window root myimage.png
21 export DISPLAY=:0.0
22 DISPLAY=:0 import -window root myimage.png
23 export DISPLAY=:0
24 DISPLAY=:0 import -window root myimage.png
25 export DISPLAY=:0
26 import -window root `date`.jpg
27 import -window root myimage.png
28 echo $DISPLAY
29 DISPLAY import -window root myimage.png
30 DISPLAY=:0 Display import -window root myimage.png
31 DISPLAY=:0 display import -window root myimage.png
32 cat /etc/ssh/sshd_config
33 vim /etc/ssh/sshd_config
34 su rajashree
35 DISPLAY=:99 import -window root myimage.png
36 su rajashree
37 apt-get install xvfb imagemagick
38 apt-get install google-chrome
39 apt-get update
40 apt-get install google-chrome
41 wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
42 sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
43 sudo apt-get update
44 sudo apt-get install google-chrome-stable
45 xvfb-run --server-args='-screen 0, 1024x768x24'
46 xvfb-run --server-args='-screen 0, 1024x768x24' google-chrome -start-maximized http://www.example.com > & /dev/null &
47 xvfb-run --server-args='-screen 0, 1024x768x24' google-chrome -start-maximized http://www.example.com & /dev/null &
48 stat ~/.dbus
49 su
50 stat ~/.dbus
51 stat /bin/dbus-
52 stat /bin/dbus-daemon
53 export $(dbus-launch)
54 xvfb-run --server-args='-screen 0, 1024x768x24' google-chrome -start-maximized http://www.example.com & /dev/null &
55 ps
56 kill 8025 8013 8028 8038 8042 8077 8079
57 ps
58 xvfb-run --server-args='-screen 0, 1024x768x24' google-chrome -start-maximized http://www.example.com & /dev/null &
59 ps
60 ls
61 ps
62 kill 8133
63 ps
64 eval $(dbus-launch --sh-syntax)
65 apt-get install dbus-x11
66 eval $(dbus-launch --sh-syntax)
67 export DBUS_SESSION_BUS_ADDRESS
68 export DBUS_SESSION_BUS_PID
69 xvfb-run --server-args='-screen 0, 1024x768x24' google-chrome -start-maximized http://www.example.com & /dev/null &
70 ls
71 ps
72 DISPLAY=:99 import -window root myimage.png
73 DISPLAY=:0 import -window root myimage.png
74 ls
75 find . -name "myimage.png"
76 cat ~/.Xauthority
77 exho $XAUTHORITY
78 echo $XAUTHORITY
79 su rajashree
80 xauth list
81 touch ~/.Xauthority
82 ls
83 cat ~/.Xauthority
84 ls ~/.Xauthority
85 rm ~/.Xauthority
86 ls /home/
87 randomkey=`/usr/bin/ksh -c 'echo $(( $RANDOM * $RANDOM * 2 ))'`
88 DISPLAY=:0 display import -window root myimage.png
89 echo $DISPLAY
90 export DISPLAY=:0
91 echo $DISPLAY
92 DISPLAY=:0 display import -window root myimage.png
93 echo $DISPLAY
94 DISPLAY=:0 import -window root myimage.png
95 DISPLAY=:0 display import -window root myimage.png
96 DISPLAY=:0 import -window root myimage.png
97 git clone https://github.com/rancher/validation-tests
98 apt-get install git
99 git clone https://github.com/rancher/validation-tests
100 cd validation-tests/
101 cd tests/v2_validation/
102 cd ../../
103 cd ../
104 cd ..
105 sudo apt-get update
106 sudo apt-get install firefox xvfb
107 export DISPLAY=:10
108 firefox
109 history
110 Xvfb :10 -ac &
111 export DISPLAY=:10
112 firefox
113 grep -i forward /etc/ssh/sshd_config
114 sudo apt-get install xauth
115 vim /etc/hosts
116 firefox
117 pgrep -fla "(firefox|geckodriver)"
118 uname -a
119 docker ps
120 history
121 history > history.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment