paulgorman.org

< ^ txt

Fri Jul 17 08:02:59 EDT 2015 Slept well, although I went to bed a little late. Supposed to be mid-eighties and rainy today. (Actually, it's blustering pretty seriously already!) Went out with a bunch of people from work last night to celebrate Danielle's recent nuptials. Goals: - Read about FreeBSD jails Yes, a little. - Work a little more on Pi thin client testing Yes, quite a bit. Questions: - What would be involved in setting up our own Debian mirror? Too involved, and not the right solution. What we actually want is an apt cache server. http://www.tecmint.com/apt-cache-server-in-ubuntu/ https://help.ubuntu.com/community/Apt-Cacher-Server https://www.unix-ag.uni-kl.de/~bloch/acng/html/ More Pi thin client notes (not super organized yet): `visudo` piadmin ALL=(ALL) NOPASSWD: ALL Make sure ssh server is working. Edit /etc/lightdm/lightdm.conf to enable autologin. Edit ~/.xsession with: exec /usr/bin/startlxde If Gnome is around: apt-get autoremove gdm3 apt-get autoremove --purge gnome Install: x11vnc freerdp-x11 xfreerdp -f --rfx --no-nla terminal.hartmantyner.com Create ~/Desktop/Terminal_Server.shortcut file: [Desktop Entry] Name=Terminal Server Icon=/usr/share/icons/gnome/256x256/devices/gnome-fs-client.png Exec=/usr/bin/xfreerdp -f --rfx --no-nla terminal.hartmantyner.com Terminal=false Type=Application Create ~/Desktop/Time_Clock.shortcut file: [Desktop Entry] Name=Time Clock Icon=/usr/share/icons/gnome/256x256/actions/appointment-new.png Exec=/usr/bin/iceweasel https://hartmanandtynerinc.attendanceondemand.com/ess/ Terminal=false Type=Application Create ~/Desktop/Emergency.shortcut file: [Desktop Entry] Name=Emergency Icon=/usr/share/icons/gnome/256x256/status/software-update-urgent.png Exec=/usr/bin/iceweasel http://emergency.hartmantyner.com/ Terminal=false Type=Application Hmm. The Pi doesn't have a power switch, so we probably don't want the user shutting it down. They may need to reboot once in a while though. ~/Desktop/Reboot.shortcut: [Desktop Entry] Name=Reboot Icon=/usr/share/icons/gnome/256x256/actions/reload.png Exec=/usr/bin/sudo /sbin/shutdown -r now Terminal=false Type=Application `visudo` piuser ALL=NOPASSWD:/sbin/shutdown On the desktop, LXDE sorts icons by name, so we probably actually want to name our ~/Desktop/*.shortcut files like '00_foo.shortcut' and '01_foo.shortcut'. Now, a vnc server... Create the plain text file `/home/piuser/.vncpw`. Prepend this to /home/piuser/.xsession: /usr/bin/x11vnc -display :0 -passwdfile /home/piuser/.vncpw & Install conky. Add to /home/piuser/.conkyrc: background yes double_buffer yes update_interval 5 total_run_times 0 alignment top_right minimum_size 300 text_buffer_size 1024 own_window yes own_window_transparent yes own_window_hints below,undecorated,sticky,skip_taskbar,skip_pager border_inner_margin 10 border_outer_margin 10 gap_x 50 gap_y 50 use_xft yes xftfont DejaVu Sans Mono:size=12 TEXT ${color white}${time %a %b %d %l:%M %p} ${color white}${exec /sbin/ifconfig | grep 'inet \addr' | head -1 | sed -e 's/.*addr:\(.*\) Bcast.*/IP Address: \1/'} ${color white}Uptime: ${exec awk '{printf("%d:%02d:%02d:%02d\n",($1/60/60/24),($1/60/60%24),($1/60%60),($1%60))}' /proc/uptime} ${color white}Load Avg: ${exec cat /proc/loadavg | cut -f1,2,3 -d ' '} ${color white}RAM $membar ${color white}CPU ${cpubar cpu0} Add to /home/piuser/.xsession: /usr/bin/conky & Set screen saver to blank screen only. ~/.xscreensaver Edit /boot/grub/grub.cfg and set "GRUB_TIMEOUT=1".

< ^ txt