NOTE: These things are in order as to what I prefer, you do not have to do all or any of these.
NOTE: The OpenWRT distribution which Onion makes is a completely broken POS, better to just not bother with these units if you want to anything basic like opkg list
which throws a freaking segfault, not joking at all. If you install opkg from the repos, it'll brick you device.
I bricked the units I got and just dumped the rest of their crap products into the waste bin.
- Introduction
- Command Line
- Experiments
- Helper Scripts
- Wifi Setup from Command Line
- Installing Web Console from Command Line
- SSH (After Wifi Setup)
- Configure Access Point
- Basic Upgrades
- Setting Up SDCARD for /root and SWAP
- Create Your Profile
- Setting Up Git
- Update Firmware from Command Line
- Forcing an IP Address in an OpenWRT Router
- Install & Setup Node.js
- File Transfer with SCP
- External WiFi Antenna
- Serial Connection
This repo will contain experiments I do with my Omega2+ as well as some notes for doing various things.
I exclusively use vi
in this documentation, you may substitute nano
after installing it.
My Omega's IP address is shown in examples here as 10.10.10.250
, you'll need to substitute your own IP address.
My client machine is OSX or Linux, I don't really know how to do anything on Windows any more, I have not really used MS products since WinXP. These instructions are geared toward using the shell in those operating systems, you can install VirtualBox and Linux in your Windows OS and play along if you'd like.
This is geard toward people who are used to working in Linux terminal environment. If you don't have much experience with this, I highly recommend you setup a Linux computer or Virutal Machine and experiment. Checkout LinuxCommand.org to get you started.
One thing I found with rebooting, sometimes your local terminal can get locked up. When I reboot, I also exit:
reboot && exit
I've just been messing with the OS, there's nothing here yet.
Eventually you'll be able to clone this to your Omega and mess around with it.
Description of scripts in the bin/
path.
This section describes connecting to the device's wifi network and connecting to it via SSH. This is useful if you do not want to mess around with the Web UI.
docs/wifi_setup_from_command_line.md
Now that your Omega is all setup and ready to go, you can install the console if you fancy a GUI/Web Interface. Run the following commands:
uci set onion.console.setup=1
uci set onion.console.install=2
uci commit onion
Information on using the console is available from Onion at Accessing the Console.
Infomation about connecting via SSH to the Omega after you've completed the wifi setup.
docs/configure_access_point.md
Information about setting up your SDCARD to be used as your home directory and SWAP space.
docs/setting_up_sdcard_for_root_and_swap.md
Information about creating a .profile
file and adding some stuff to it.
If you want to use git and be able to do pushes and commits from your device you should follow these instructions.
docs/update_firmware_from_command_line.md
To send/receive files to/from the device I recommend using scp
, you'll want to substitute your device's IP for the one I have listed.
# Receive a single file from your etc to your local machine
scp root@10.10.10.250:/etc/openwrt_release .
# Receive a full directory from /www to your local machine
scp -r root@10.10.10.250:/www .
# Send a single file to your root directory
scp localfile.txt root@10.10.10.250:~/
# Send a full directory to your root directory
scp -r /some_path root@10.10.10.250:~/
Using an external wifi antenna.