Difference between revisions of "Ubuntu 12 04 modifications"
From RobotinoWiki
(→/home/robotino/.config/openbox/menu.xml) |
(→Qt5) |
||
(39 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Packages== | ==Packages== | ||
<pre> | <pre> | ||
− | apt-get install telnetd proftpd-basic hostapd dhcp3-server cmake-curses-gui lighttpd rungetty | + | 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 | + | apt-get install build-essential libqt4-dev subversion gawk php5-cgi |
+ | |||
+ | --Ubuntu 12.04 | ||
+ | apt-get install libicu48 | ||
+ | |||
+ | --Ubuntu 14.04 | ||
+ | apt-get install libboost-thread1.55.0 | ||
+ | |||
+ | yes | sensors-detect | ||
+ | |||
+ | perl -MCPAN -e'install "LWP::Simple"' | ||
</pre> | </pre> | ||
− | + | lighty-enable-mod fastcgi | |
+ | lighty-enable-mod fastcgi-php | ||
+ | |||
+ | ===Mediawiki=== | ||
<pre> | <pre> | ||
apt-get install mysql-server php5-mysql php5-cgi | apt-get install mysql-server php5-mysql php5-cgi | ||
+ | mysql password: dorp6 | ||
</pre> | </pre> | ||
− | X-server | + | ===X-server=== |
<pre> | <pre> | ||
− | apt-get install xorg openbox openbox-themes | + | apt-get install xorg openbox obconf obmenu |
+ | |||
+ | --Ubuntu 12.04 | ||
+ | apt-get install openbox-themes | ||
</pre> | </pre> | ||
− | x11vnc | + | ===x11vnc=== |
<pre> | <pre> | ||
apt-get install x11vnc | apt-get install x11vnc | ||
+ | </pre> | ||
+ | |||
+ | ===SmartSoft=== | ||
+ | <pre> | ||
+ | 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 | ||
+ | </pre> | ||
+ | |||
+ | ===Java=== | ||
+ | <pre> | ||
+ | apt-get install openjdk-7-jdk ant | ||
+ | echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/" >> /home/robotino.profile | ||
</pre> | </pre> | ||
Line 34: | Line 62: | ||
robotino ALL = NOPASSWD: ALL | robotino ALL = NOPASSWD: ALL | ||
www-data ALL = NOPASSWD: ALL | www-data ALL = NOPASSWD: ALL | ||
+ | </pre> | ||
+ | |||
+ | ===/root/.profile=== | ||
+ | <pre> | ||
+ | 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 | ||
+ | </pre> | ||
+ | |||
+ | ===/root/.bashrc=== | ||
+ | <pre> | ||
+ | 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 | ||
</pre> | </pre> | ||
Line 40: | Line 82: | ||
===/boot/grub/grub.cfg=== | ===/boot/grub/grub.cfg=== | ||
− | recordfail set timeout to 2 seconds. That allows grub to boot after accidential system shutdown. | + | * recordfail set timeout to 2 seconds. That allows grub to boot after accidential system shutdown. |
+ | * add i8042.noaux=1 to kernel boot parameters | ||
+ | |||
+ | ===/etc/default/grub (14.04 only)=== | ||
+ | GRUB_CMDLINE_LINUX_DEFAULT="splash biosdevname=0 i8042.noaux=1" | ||
+ | |||
+ | use old school eth0 and wlan0 labels for network interfaces | ||
===/etc/udev/rules.d/70-persistent-net.rules=== | ===/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 | remove hardware address from eth0 and wlan0 lines. This allows the usage of different COM express modules and wlan adapters | ||
− | ===/etc/lighttpd/conf-enabled=== | + | ===/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. | rename to /etc/lighttpd/conf-enabled.old. Configuration is read from the lighttpd.conf which is installed by the robotino-daemons package. | ||
Line 54: | Line 102: | ||
===/etc/fstab=== | ===/etc/fstab=== | ||
Replace UUID of swap-partition by /dev/sda5 | Replace UUID of swap-partition by /dev/sda5 | ||
+ | |||
+ | <pre> | ||
+ | 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 | ||
+ | </pre> | ||
+ | |||
+ | Set UUID of /dev/sda1 | ||
+ | <pre> | ||
+ | tune2fs /dev/sda1 -U f6fec0c6-bc88-46d3-b125-e450709f1956 | ||
+ | grub-update | ||
+ | </pre> | ||
===/etc/init/tty1.conf=== | ===/etc/init/tty1.conf=== | ||
+ | <pre> | ||
#exec /sbin/rungetty --autologin robotino tty1 | #exec /sbin/rungetty --autologin robotino tty1 | ||
exec /sbin/rungetty tty1 -u root -- login -f robotino | exec /sbin/rungetty tty1 -u root -- login -f robotino | ||
+ | </pre> | ||
===/home/robotino/.profile=== | ===/home/robotino/.profile=== | ||
Line 63: | Line 127: | ||
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then | if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then | ||
rm -f $HOME/.Xauthority* | rm -f $HOME/.Xauthority* | ||
− | startx | + | startx -- -ac |
fi | fi | ||
</pre> | </pre> | ||
− | ===/home/robotino/.config/openbox/autostart=== | + | ===/etc/apt/sources.list.d/openrobotino.list=== |
+ | <pre> | ||
+ | echo "deb http://doc.openrobotino.org/download/packages/amd64 ./" > /etc/apt/sources.list.d/openrobotino.list | ||
+ | </pre> | ||
+ | |||
+ | ===/version.txt=== | ||
+ | <pre> | ||
+ | echo "2.0.0" > /version.txt | ||
+ | </pre> | ||
+ | |||
+ | ===/home/robotino/.config/openbox/autostart (included by robotino-config package)=== | ||
<pre> | <pre> | ||
xterm & | xterm & | ||
/usr/bin/x11vnc -xkb -forever -bg -shared -noxdamage & | /usr/bin/x11vnc -xkb -forever -bg -shared -noxdamage & | ||
+ | /usr/local/bin/detectVGA.sh & | ||
</pre> | </pre> | ||
− | ===/home/robotino/.config/openbox/menu.xml=== | + | ===/home/robotino/.config/openbox/menu.xml (included by robotino-config package)=== |
<pre> | <pre> | ||
<item label="Robotino View"> | <item label="Robotino View"> | ||
− | <action name="Execute"><execute>sudo /usr/local/ | + | <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>/usr/local/bin/launchteamviewer.sh</execute></action> | ||
+ | </item> | ||
+ | <item label="Version"> | ||
+ | <action name="Execute"><execute>/usr/bin/printver</execute></action> | ||
</item> | </item> | ||
+ | </pre> | ||
+ | |||
+ | ==Qt5== | ||
+ | [https://launchpad.net/~beineri Stephan Binner provides Qt packages for Ubuntu] | ||
+ | |||
+ | ==gcc-4.8== | ||
+ | <pre> | ||
+ | sudo apt-get install python-software-properties | ||
+ | sudo add-apt-repository ppa:ubuntu-toolchain-r/test | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install gcc-4.8 | ||
+ | sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50 | ||
</pre> | </pre> |
Latest revision as of 11:23, 29 July 2016
Contents
- 1 Packages
- 2 Default editor
- 3 Scripts
- 3.1 /etc/sudoers
- 3.2 /root/.profile
- 3.3 /root/.bashrc
- 3.4 /etc/init/failsafe.conf
- 3.5 /boot/grub/grub.cfg
- 3.6 /etc/default/grub (14.04 only)
- 3.7 /etc/udev/rules.d/70-persistent-net.rules
- 3.8 /etc/lighttpd/conf-enabled (included by robotino-config package)
- 3.9 /etc/default/rcS
- 3.10 /etc/fstab
- 3.11 /etc/init/tty1.conf
- 3.12 /home/robotino/.profile
- 3.13 /etc/apt/sources.list.d/openrobotino.list
- 3.14 /version.txt
- 3.15 /home/robotino/.config/openbox/autostart (included by robotino-config package)
- 3.16 /home/robotino/.config/openbox/menu.xml (included by robotino-config package)
- 4 Qt5
- 5 gcc-4.8
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 subversion gawk php5-cgi --Ubuntu 12.04 apt-get install libicu48 --Ubuntu 14.04 apt-get install libboost-thread1.55.0 yes | sensors-detect perl -MCPAN -e'install "LWP::Simple"'
lighty-enable-mod fastcgi lighty-enable-mod fastcgi-php
Mediawiki
apt-get install mysql-server php5-mysql php5-cgi mysql password: dorp6
X-server
apt-get install xorg openbox obconf obmenu --Ubuntu 12.04 apt-get install openbox-themes
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 echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/" >> /home/robotino.profile
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/default/grub (14.04 only)
GRUB_CMDLINE_LINUX_DEFAULT="splash biosdevname=0 i8042.noaux=1"
use old school eth0 and wlan0 labels for network interfaces
/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
/etc/apt/sources.list.d/openrobotino.list
echo "deb http://doc.openrobotino.org/download/packages/amd64 ./" > /etc/apt/sources.list.d/openrobotino.list
/version.txt
echo "2.0.0" > /version.txt
/home/robotino/.config/openbox/autostart (included by robotino-config package)
xterm & /usr/bin/x11vnc -xkb -forever -bg -shared -noxdamage & /usr/local/bin/detectVGA.sh &
<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>/usr/local/bin/launchteamviewer.sh</execute></action> </item> <item label="Version"> <action name="Execute"><execute>/usr/bin/printver</execute></action> </item>
Qt5
Stephan Binner provides Qt packages for Ubuntu
gcc-4.8
sudo apt-get install python-software-properties sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-4.8 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50