Einstellungen von Tobi uebernommen und entsprechend die Chrome Einstellungen fuer die LH-BBG.
This commit is contained in:
		
							
								
								
									
										40
									
								
								boot/client-cfg/xinitrc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								boot/client-cfg/xinitrc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,40 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| while true; do | ||||
|  | ||||
| 	# Clean up previously running apps, gracefully at first then harshly | ||||
| 	killall -TERM chromium 2>/dev/null; | ||||
| 	killall -TERM matchbox-window-manager 2>/dev/null; | ||||
| 	sleep 2; | ||||
| 	killall -9 chromium 2>/dev/null; | ||||
| 	killall -9 matchbox-window-manager 2>/dev/null; | ||||
|  | ||||
| 	# Clean out existing profile information | ||||
| 	rm -rf /home/pi/.cache; | ||||
| 	rm -rf /home/pi/.config; | ||||
| 	rm -rf /home/pi/.pki; | ||||
|  | ||||
| 	# Generate the bare minimum to keep Chromium happy! | ||||
| 	mkdir -p /home/pi/.config/chromium/Default | ||||
| 	sqlite3 /home/pi/.config/chromium/Default/Web\ Data "CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR); INSERT INTO meta VALUES('version','46'); CREATE TABLE keywords (foo INTEGER);"; | ||||
|  | ||||
| 	# Disable DPMS / Screen blanking | ||||
| 	xset -dpms | ||||
| 	xset s off | ||||
| 	xhost +local: | ||||
|  | ||||
| 	# Reset the framebuffer's colour-depth | ||||
| 	fbset -depth $( cat /sys/module/*fb*/parameters/fbdepth ); | ||||
|  | ||||
| 	# Hide the cursor (move it to the bottom-right, comment out if you want mouse interaction) | ||||
| 	# xwit -root -warp $( cat /sys/module/*fb*/parameters/fbwidth ) $( cat /sys/module/*fb*/parameters/fbheight ) | ||||
|  | ||||
| 	# Start the window manager (remove "-use_cursor no" if you actually want mouse interaction) | ||||
| 	# matchbox-window-manager -use_titlebar no -use_cursor no & | ||||
| 	matchbox-window-manager -use_titlebar no & | ||||
|  | ||||
| 	# Start the browser (See http://peter.sh/experiments/chromium-command-line-switches/) | ||||
|  | ||||
| 	chromium-browser  --app="https://wiki.lebenshilfe-bbg.de/wiki/doku.php?id=hidden:portal" | ||||
|  | ||||
| done; | ||||
							
								
								
									
										1
									
								
								etc/chromium-browser/default
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								etc/chromium-browser/default
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| CHROMIUM_FLAGS="--no-default-browser-check" | ||||
| @@ -0,0 +1,4 @@ | ||||
| { | ||||
|     "AutoFillEnabled": false, | ||||
|     "PasswordManagerEnabled": false | ||||
| } | ||||
							
								
								
									
										3
									
								
								etc/chromium-browser/policies/managed/startup.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								etc/chromium-browser/policies/managed/startup.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| { | ||||
|  "NewTabPageLocation" : "https://wiki.lebenshilfe-bbg.de/wiki/doku.php?id=hidden:portal" | ||||
| } | ||||
							
								
								
									
										3
									
								
								etc/chromium-browser/policies/managed/startup2.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								etc/chromium-browser/policies/managed/startup2.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| { | ||||
|  "NewTabPageLocation" : "https://wiki.lebenshilfe-bbg.de/wiki/doku.php?id=hidden:portal" | ||||
| } | ||||
							
								
								
									
										36
									
								
								etc/rc.local
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										36
									
								
								etc/rc.local
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| #!/bin/sh -e | ||||
| # | ||||
| # rc.local | ||||
| # | ||||
| # This script is executed at the end of each multiuser runlevel. | ||||
| # Make sure that the script will "exit 0" on success or any other | ||||
| # value on error. | ||||
| # | ||||
| # In order to enable or disable this script just change the execution | ||||
| # bits. | ||||
| # | ||||
| # By default this script does nothing. | ||||
|  | ||||
| sleep 10 | ||||
|  | ||||
|  | ||||
| # Print the IP address | ||||
| _IP=$(hostname -I) || true | ||||
| if [ "$_IP" ]; then | ||||
|   printf "My IP address is %s\n" "$_IP" | ||||
| fi | ||||
|  | ||||
| # set hostname | ||||
| if [ -f /boot/client-cfg/hostname.txt ]; then | ||||
|   hostname --file /boot/client-cfg/hostname.txt | ||||
| fi | ||||
|  | ||||
| # set network  | ||||
|  | ||||
| # start X environment | ||||
| if [ -f /boot/client-cfg/xinitrc ]; then | ||||
| 	ln -fs /boot/client-cfg/xinitrc /home/pi/.xinitrc; | ||||
| 	su -l pi -s /bin/bash -c 'startx' & | ||||
| fi | ||||
|  | ||||
| exit 0 | ||||
							
								
								
									
										1
									
								
								home/pi/xinitrc
									
									
									
									
									
										Symbolic link
									
								
							
							
						
						
									
										1
									
								
								home/pi/xinitrc
									
									
									
									
									
										Symbolic link
									
								
							| @@ -0,0 +1 @@ | ||||
| ../../boot/client-cfg/xinitrc | ||||
		Reference in New Issue
	
	Block a user