-
Notifications
You must be signed in to change notification settings - Fork 38
Arch Linux on DARwIn OP
Download the Arch Linux Core Installation Media. This installation was performed using the August, 2011 Release
-
Boot the DARwIn-OP from the LiveUSB
- You can use the automatic partitioning tool if you like. This was our configuration, using the manual tool:
[<-- 50MB; Filesystem: ext4; Mountpoint: /boot-->][<-- 200MB swap -->][<-- Remaining Space; Filesystem: ext4; Mountpoint: / -->]
-
In addition to the default package set for core, choose base-dev as well as base. Select these packages:
- netcfg
- wireless_tools
- pacman-mirrorlist
- sudo
-
Deselect these packages:
- ppp
- lvm2
-
After copying files:
- Choose the Virginia Tech mirror in mirror-list
- Set root password
-
Reboot doesn't work for some kernels, so just shutdown
- Login as root
- visudo
- Uncomment the line near the end with wheel in it - people in the wheel group can use sudo
-
Add a New User
- useradd -m -g users -G wheel darwin
- passwd darwin
- exit
- login as darwin
-
- sudo nano /etc/rc.local
- Set up networking with these lines: eth0="eth0 192.168.123.1 netmask 255.255.255.0 broadcast 192.168.123.255" INTERFACES=(eth0,wlan0) WIRELESS_INTERFACE="wlan0"
gateway="default gw 191.168.0.1" ROUTES=(!gateway)
- Perform a system upgrade to get all the latest and greatest software. Important Note
- sudo rm /etc/profile.d/locale.sh
- sudo pacman -Syu
-
Install yaourt for easier package management and access to more packages
-
Add SSH for connecting to the robot
- sudo pacman -Syu > To update pacman to see the latest packages
- yaourt -S openssh
- Ensure X11 forwarding works so that guvcview works over ssh.
- Copy ~/.Xauthority to /root/ so you can run sudo guvcview
- Other Resources: A Blog, Gentoo Wiki
-
Camera debugging
- yaourt -S guvcview
- yaourt -S ttf-dejavu
-
Screen Sessions
- yaourt -S screen
-
- yaourt -S acpid
-
[UNSUPPORTED] VNC support is unsupported, but you may investigate it
- We had some success with tigervnc: yaourt -S tigervnc
-
Install the necessary libraries
- yaourt -S boost espeak
- yaourt -S lua
-
For faster code executing with less debugging information, install luajit
- yaourt -S luajit
-
You can just install luajit, too
- cd /usr/include
- sudo ln -s luajit-2.0 lua
- cd /usr/bin
- sudo ln -s luajit lua
-
Add darwin to the uucp group (for ttyUSB0 access)
- gpasswd -a darwin uucp
-
Edit the hostname to be the robot's name (betty, felix, linus, lucy, scarface, jiminy, etc.)
- in /etc/rc.conf
- in /etc/hosts
-
Download and install the latest code base
- If you wish to track the latest code with GIT, see the section on Code Management and skip this section
- wget https://github.com/UPenn-RoboCup/UPennalizers/zipball/master -O upenn_open_source.zip
- unzip upenn_open_source.zip
- cd UPenn-RoboCup-UPennalizers*/Lib
- make setup_op
-
Make code run on startup
- edit /etc/rc.local per the instructions in the Player/startup.sh file
- Right now, there is no full download of the code, excepting SVN. Acquire the code as directed in Code Management
-
To track UPenn's code
- Install git: yaourt -S git
- If you have commit privledges: git clone [email protected]:UPenn-RoboCup/UPennalizers.git
- Else: git clone git://github.com/UPenn-RoboCup/UPennalizers.git
-
To track robotis' code:
- Install subversion: yaourt -S subversion
- svn co https://darwinop.svn.sourceforge.net/svnroot/darwinop darwinop
-
Filesystem properties in /etc/fstab
- Also, in fstab option, do errors=continue if having troubles with Clock not keeping time and pass set to zero
- Decrease the timeout for GRUB to boot faster
- USB bug fixes
udevadm info -a -p $(udevadm info -q path -n ttyUSB0) | egrep -i "ATTRS{serial}|ATTRS{idVendor}|ATTRS{idProduct}" -m 3
Put the below in the /etc/udev/rules.d/52-ftdi.rules file
SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A8005iMK", SYMLINK+="cm730"
Try Awesome with lua