Difference between revisions of "Ubuntu 12 04 modifications"

From RobotinoWiki
(SmartSoft)
(Packages)
Line 5: Line 5:
  
 
yes | sensors-detect
 
yes | sensors-detect
 +
 +
perl -MCPAN -e'install "LWP::Simple"'
 
</pre>
 
</pre>
  

Revision as of 14:11, 15 August 2014

Packages

apt-get install telnetd proftpd-basic hostapd dhcp3-server cmake-curses-gui lighttpd rungetty lm-sensors zip
apt-get install build-essential libqt4-dev libicu48 subversion gawk

yes | sensors-detect

perl -MCPAN -e'install "LWP::Simple"'

Mediawiki

apt-get install mysql-server php5-mysql php5-cgi
mysql password: dorp6

X-server

apt-get install xorg openbox openbox-themes obconf obmenu 

x11vnc

apt-get install x11vnc

SmartSoft

apt-get install ACE-TAO gmapping sbcl libmrpt-dev libopencv-dev libcvaux-dev libhighgui-dev libcv-dev libboost-math-dev libglibmm-2.4-dev libxml++2.6-dev

Java

apt-get install openjdk-7-jdk ant
export JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64/

Default editor

update-alternatives --set editor /usr/bin/vim.tiny

Scripts

/etc/sudoers

Defaults        env_reset
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

root    ALL=(ALL:ALL) ALL
robotino ALL = NOPASSWD: ALL
www-data ALL = NOPASSWD: ALL

/root/.profile

echo "export ACE_ROOT=/opt/ACE_wrappers" >> /root/.profile
echo "export SMART_ROOT_ACE=/opt/smartsoft" >> /root/.profile
echo "export SMART_PACKAGE_PATH=$SMART_ROOT_ACE/src" >> /root/.profile

/root/.bashrc

echo "export ACE_ROOT=/opt/ACE_wrappers" >> /root/.bashrc
echo "export SMART_ROOT_ACE=/opt/smartsoft" >> /root/.bashrc
echo "export SMART_PACKAGE_PATH=$SMART_ROOT_ACE/src" >> /root/.bashrc

/etc/init/failsafe.conf

comment sleep to bring up the system quickly even on failure

/boot/grub/grub.cfg

  • recordfail set timeout to 2 seconds. That allows grub to boot after accidential system shutdown.
  • add i8042.noaux=1 to kernel boot parameters

/etc/udev/rules.d/70-persistent-net.rules

remove hardware address from eth0 and wlan0 lines. This allows the usage of different COM express modules and wlan adapters

/etc/lighttpd/conf-enabled (included by robotino-config package)

rename to /etc/lighttpd/conf-enabled.old. Configuration is read from the lighttpd.conf which is installed by the robotino-daemons package.

/etc/default/rcS

FSCKFIX=yes automatic repair of filesystem errors

/etc/fstab

Replace UUID of swap-partition by /dev/sda5

proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=f6fec0c6-bc88-46d3-b125-e450709f1956 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
/dev/sda5 none            swap    sw              0       0

Set UUID of /dev/sda1

tune2fs /dev/sda1 -U f6fec0c6-bc88-46d3-b125-e450709f1956
grub-update

/etc/init/tty1.conf

#exec /sbin/rungetty --autologin robotino tty1
exec /sbin/rungetty tty1 -u root -- login -f robotino

/home/robotino/.profile

if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
   rm -f $HOME/.Xauthority*
   startx -- -ac
fi

/home/robotino/.config/openbox/autostart (included by robotino-config package)

xterm &
/usr/bin/x11vnc -xkb -forever -bg -shared -noxdamage &
/usr/local/bin/detectVGA.sh &

/home/robotino/.config/openbox/menu.xml (included by robotino-config package)

<item label="Robotino View">
  <action name="Execute"><execute>sudo /usr/bin/robview</execute></action>
</item>
<item label="EA09View">
  <action name="Execute"><execute>sudo /usr/local/robotino/tools/bin/amd64/EA09View</execute></action>
</item>
<item label="QuickSupport">
  <action name="Execute"><execute>sudo /usr/local/teamviewer9qs/teamviewer</execute></action>
</item>
<item label="Version">
  <action name="Execute"><execute>/usr/bin/printver</execute></action>
</item>