Commit 5db1802d authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

fm: Added support for configuring a SVEC-like PTS system

parent 07338e2f
[Desktop Entry]
Version=1.0
Name=Copy Log to USB
Comment=Copy log and info files to USB key
Exec=gnome-terminal --title "Copy to USB Key" -e cp /home/pts/ubuntu/t485/log/t485* /media/pts/log
Icon=/usr/share/icons/Humanity/apps/48/gnome-session-switch.svg
Terminal=false
Type=Application
Categories=Utility;Application;
GenericName[en_US.UTF-8]=Copy PTS CONV-TTL-RS485 log files to USB key
StartupNotify=true
NoDisplay=true
[Desktop Entry]
Version=1.0
Name=VME OFF
Comment=Switch off crate
Exec=/home/pts/ubuntu/t485/shell/men-off
Icon=/usr/share/icons/LoginIcons/apps/48/system-shutdown.svg
Terminal=true
Type=Application
Categories=Utility;Application;
GenericName[en_US.UTF-8]=VME OFF
StartupNotify=true
NoDisplay=true
Name[en_US]=VME OFF
[Desktop Entry]
Version=1.0
Name=VME ON
Comment=Switch on crate
Exec=/home/pts/ubuntu/t485/shell/men-on
Icon=/usr/share/icons/LoginIcons/apps/48/view-refresh.svg
Terminal=true
Type=Application
Categories=Utility;Application;
GenericName[en_US.UTF-8]=VME ON
StartupNotify=true
NoDisplay=true
[Desktop Entry]
Version=1.0
Name=Run One PTS CONV-TTL-RS485 Test
Comment=Automated testing for the CONV-TTL-RS485 board
Exec=gnome-terminal --geometry 81x32+0+0 --title "PTS Run One Window" -e "bash -c 'cd /home/pts/ubuntu/t485/;./one'"
Icon=/home/pts/ubuntu/t485/config/pts-ico-2.png
Terminal=false
Type=Application
Categories=Utility;Application;
GenericName[en_US.UTF-8]=Production Test System for CONV-TTL-RS485
StartupNotify=true
NoDisplay=true
[Desktop Entry]
Version=1.0
Name=Make log.tar.gz USB zip
Comment=Make tarball from log data on USB key
Exec=/home/pts/ubuntu/t485/shell/tar-log
Icon=/usr/share/icons/Humanity/devices/48/gnome-dev-zipdisk.svg
Terminal=true
Type=Application
Categories=Utility;Application;
GenericName[en_US.UTF-8]=Make log.tar.gz USB zip
StartupNotify=true
NoDisplay=true
The .desktop scripts in this folder are to be copied to the desktop of a PTS
laptop set up in a crate of the type used in the SVEC PTS.
shopt -s xpg_echo
shopt -s checkwinsize
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
export PS1='\[\e[1;33m\]\h (\u)\[\e[1;00m\]: \[\e[1;35m\]\w\[\e[1;00m\] \$ '
HISTCONTROL=ignoredups:ignorespace
HISTSIZE=10000
HISTFILESIZE=20000
where() { find . -name $* -print; }
gdf() { git diff --color $* > /tmp/gdf; more /tmp/gdf; }
gst() { git status $*; }
alias ls="/bin/ls -F"
alias rm="/bin/rm -i"
alias xterm="xterm -fn 9x15"
alias cindent="indent -kr -i3 -di0 -nfc1 -ip0 -l132"
alias ll="ls -alF"
alias la="ls -A"
alias l="ls -CF"
alias xterm="xterm -fn 9x15"
alias his="history"
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
PAGER=less; export PAGER # use less to read man pages
export LESS="-esSX"
alias psx="ps -eLo user,pid,tid,cls,rtprio,vsz,rss,tty,stat,start,bsdtime,args"
export EDITOR=/usr/bin/vim
umask 0
PATH=./:$PATH
PATH=/sbin:$PATH
[Desktop Entry]
Version=1.0
Name=PTS Expert Tools
Comment=PTS Utilities
Exec=/usr/bin/nautilus /home/pts/ubuntu/t485/config/ExpertTools/
Icon=/usr/share/icons/Humanity/apps/48/gconf-editor.svg
Terminal=false
Type=Application
Categories=Utility;Folder;
GenericName[en_US.UTF-8]=PTS Utilities
StartupNotify=true
NoDisplay=true
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.20.20
netmask 255.255.255.0
#!/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.
/sbin/ifconfig eth0 pcbe up
/usr/sbin/udhcpd
exit 0
[Desktop Entry]
Version=1.0
Name=Run PTS CONV-TTL-RS485
Comment=Automated testing for the CONV-TTL-RS485 board
Exec=gnome-terminal --geometry 81x32+0+0 --title "PTS Main Window" -e "bash -c 'cd /home/pts/ubuntu/t485/; ./pts'"
Icon=/home/pts/ubuntu/t485/config/pts-ico-2.png
Terminal=false
Type=Application
Categories=Utility;Application;
GenericName[en_US.UTF-8]=Production Test System for CONV-TTL-RS485
StartupNotify=true
NoDisplay=true
[Desktop Entry]
Version=1.0
Name=Show PTS Info
Comment=Show PTS info
Exec=bash -c "cd /home/pts/ubuntu/t485/shell/; ./show-info"
Icon=/usr/share/icons/Humanity/apps/48/xfce-system-info.svg
Terminal=false
Type=Application
Categories=Utility;Application;
GenericName[en_US.UTF-8]=ShowInfo
StartupNotify=true
NoDisplay=true
[Desktop Entry]
Version=1.0
Name=Show PTS Log
Comment=Show PTS log
Exec=bash -c "cd /home/pts/ubuntu/t485/shell/; ./show-log"
Icon=/usr/share/icons/Humanity/apps/48/xfce-man.svg
Terminal=false
Type=Application
Categories=Utility;Application;
GenericName[en_US.UTF-8]=ShowLog
StartupNotify=true
NoDisplay=true
# Sample udhcpd configuration file (/etc/udhcpd.conf)
# The start and end of the IP lease block
start 192.168.20.128 #default: 192.168.0.20
end 192.168.20.254 #default: 192.168.0.254
# The interface that udhcpd will use
interface eth0 #default: eth0
# The maximim number of leases (includes addressesd reserved
# by OFFER's, DECLINE's, and ARP conficts
#max_leases 254 #default: 254
# If remaining is true (default), udhcpd will store the time
# remaining for each lease in the udhcpd leases file. This is
# for embedded systems that cannot keep time between reboots.
# If you set remaining to no, the absolute time that the lease
# expires at will be stored in the dhcpd.leases file.
#remaining yes #default: yes
# The time period at which udhcpd will write out a dhcpd.leases
# file. If this is 0, udhcpd will never automatically write a
# lease file. (specified in seconds)
#auto_time 7200 #default: 7200 (2 hours)
# The amount of time that an IP will be reserved (leased) for if a
# DHCP decline message is received (seconds).
#decline_time 3600 #default: 3600 (1 hour)
# The amount of time that an IP will be reserved (leased) for if an
# ARP conflct occurs. (seconds
#conflict_time 3600 #default: 3600 (1 hour)
# How long an offered address is reserved (leased) in seconds
#offer_time 60 #default: 60 (1 minute)
# If a lease to be given is below this value, the full lease time is
# instead used (seconds).
#min_lease 60 #defult: 60
# The location of the leases file
#lease_file /var/lib/misc/udhcpd.leases #defualt: /var/lib/misc/udhcpd.leases
# The location of the pid file
#pidfile /var/run/udhcpd.pid #default: /var/run/udhcpd.pid
# Everytime udhcpd writes a leases file, the below script will be called.
# Useful for writing the lease file to flash every few hours.
#notify_file #default: (no script)
#notify_file dumpleases # <--- useful for debugging
# The following are bootp specific options, setable by udhcpd.
#siaddr 192.168.0.22 #default: 0.0.0.0
#sname zorak #default: (none)
#boot_file /var/nfs_root #default: (none)
# The remainer of options are DHCP options and can be specifed with the
# keyword 'opt' or 'option'. If an option can take multiple items, such
# as the dns option, they can be listed on the same line, or multiple
# lines. The only option with a default is 'lease'.
#Examles
#opt dns 192.168.10.2 192.168.10.10
option subnet 255.255.255.0
#opt router 192.168.10.2
#opt wins 192.168.10.10
#option dns 129.219.13.81 # appened to above DNS servers for a total of 3
option domain local
option lease 864000 # 10 days of seconds
# Currently supported options, for more info, see options.c
#opt subnet
#opt timezone
#opt router
#opt timesrv
#opt namesrv
#opt dns
#opt logsrv
#opt cookiesrv
#opt lprsrv
#opt bootsize
#opt domain
#opt swapsrv
#opt rootpath
#opt ipttl
#opt mtu
#opt broadcast
#opt wins
#opt lease
#opt ntpsrv
#opt tftp
#opt bootfile
#opt wpad
# Static leases map
static_lease 00:C0:3A:9C:01:52 192.168.20.21
static_lease 00:14:DB:00:0C:18 192.168.20.22
#!/bin/bash
cp ../log/*.inf /tmp
/usr/bin/geany /tmp/*.inf
rm -f /tmp/*.inf
#!/bin/bash
cp ../log/*.log /tmp
/usr/bin/geany /tmp/*.log
rm -f /tmp/*.log
#!/bin/bash
cd
cd /media/pts
rm -f log.tar.gz
tar cvzf log.tar.gz log
cd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment