Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ev3-toolbox-matlab
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mindstorms
ev3-toolbox-matlab
Commits
2c7d8b0c
Commit
2c7d8b0c
authored
8 years ago
by
Tim Stadtmann
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop'
Patches master to version v0.3-rc.6
parents
77d98968
75e24276
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/btconnect
+4
-4
4 additions, 4 deletions
tools/btconnect
tools/rc.local.sh
+9
-14
9 additions, 14 deletions
tools/rc.local.sh
with
13 additions
and
18 deletions
tools/btconnect
+
4
−
4
View file @
2c7d8b0c
#!/bin/bash
# script to ease connecting to an
NXT
brick
# script to ease connecting to an
EV3
brick
# (c) 2007-2009 Johannes Ballé
# test if syntax is correct; if not, print help and exit
...
...
@@ -21,13 +21,13 @@ if [ $# = 0 -o $# -gt 3 ] || [ "$1" = "--help" -o "$1" = "-h" ] || ! { [ $# = 1
Examples:
${
0
##*/
}
NXT
-20-B 2 6666
${
0
##*/
}
EV3
-20-B 2 6666
This connects the
NXT
brick named "
NXT
-20-B" to rfcomm2 with PIN '6666'.
This connects the
EV3
brick named "
EV3
-20-B" to rfcomm2 with PIN '6666'.
${
0
##*/
}
00:16:53:06:D8:67
This connects the
NXT
brick with the hardware address 00:16:53:06:D8:67
This connects the
EV3
brick with the hardware address 00:16:53:06:D8:67
to the first available rfcomm device (if no others are used, this will
be rfcomm0).
...
...
This diff is collapsed.
Click to expand it.
tools/rc.local.sh
+
9
−
14
View file @
2c7d8b0c
...
...
@@ -6,6 +6,15 @@ for i in /opt/mindstorms/tools/*; do
ln
-s
$i
/usr/local/bin/
done
# copy laboratory documentation
echo
"Copying documentation ..."
DOCUMENTATION_DIR
=
/home/mindstorms/Desktop/Versuchsunterlagen
[
!
-d
${
DOCUMENTATION_DIR
}
]
&&
(
sudo
-u
mindstorms
mkdir
-p
${
DOCUMENTATION_DIR
}
)
wget
-q
-O
- http://www.ient.rwth-aachen.de/cms/uploads/rwthonly/lehre/mindstorms/Versuchsunterlagen_EV3.tar.gz |
tar
-xzf
-
-C
${
DOCUMENTATION_DIR
}
sudo chown
-R
mindstorms:mindstorms
${
DOCUMENTATION_DIR
}
# Try to find a mindstorms.fat file / mindstorms.dir directory
# in any local partition.
# If it exists, mount it to /home/mindstorms/work.
...
...
@@ -149,18 +158,4 @@ cp /usr/share/applications/matlab.desktop /home/mindstorms/Desktop/
chmod
+x /home/mindstorms/Desktop/matlab.desktop
sudo chown
mindstorms:mindstorms /home/mindstorms/Desktop/matlab.desktop
# hack: add english, german language switcher
echo
"[org.gnome.desktop.input-sources]"
>
/usr/share/glib-2.0/schemas/99_input_sources.gschema.override
echo
"sources = [('xkb', 'us'), ('xkb', 'de+nodeadkeys')]"
>>
/usr/share/glib-2.0/schemas/99_input_sources.gschema.override
echo
"[com.canonical.indicator.keyboard]"
>>
/usr/share/glib-2.0/schemas/99_input_sources.gschema.override
echo
"visible=true"
>>
/usr/share/glib-2.0/schemas/99_input_sources.gschema.override
glib-compile-schemas /usr/share/glib-2.0/schemas/
# copy laboratory documentation
echo
"Copying documentation ..."
DOCUMENTATION_DIR
=
/home/mindstorms/Desktop/Versuchsunterlagen
[
!
-d
${
DOCUMENTATION_DIR
}
]
&&
(
sudo
-u
mindstorms
mkdir
-p
${
DOCUMENTATION_DIR
}
)
wget
-q
-O
- http://www.ient.rwth-aachen.de/cms/uploads/rwthonly/lehre/mindstorms/versuchsunterlagen.tar.gz |
tar
-xzf
-
-C
${
DOCUMENTATION_DIR
}
sudo chown
-R
mindstorms:mindstorms
${
DOCUMENTATION_DIR
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment