OpenWrt Forum Archive

Topic: Let's make OpenWrt cheat cube!

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I started teaching some tips and tricks I learned from using openwrt for these last few months, and it is easier with people who have linux and unix background than with ones that don't.

How about if we make OpenWrt cheat cube, something similar like Fedora guys have made here:
http://fedoraproject.org/wiki/Marketing … heat_Cubes

What kind of different sides should this cube have? What commands are most used? What would you like to put on this cube?

Here is how Fedora cube looks:
http://k3rnel.net/wp-content/uploads/2011/02/CheatCube.jpg

(Last edited by valentt on 27 Dec 2012, 10:44)

Nice, most commands also apply to OpenWrt.
Start a wiki page, copy & paste.
I will translate later to Spanish.
Ask Orca to install svgedit or similar Plugin, as may be required later for graphical output.

Wiki page created: http://wiki.openwrt.org/doc/cheat_cube

Anybody has ideas which are most useful cli commands in openwrt?

(Last edited by valentt on 31 Jan 2012, 12:13)

Just a few ideas:
* UCI commands (set/get/show/commit)
* Interface commands (ifup/ifdown)
* Restarting common services (network, firewall)
* Resetting to defaults (firstboot or mtd -r erase rootfs_data)

Could you give some concrete UCI command because I haven't used them, I always edit config files directly with vi editor, yes I'm a Linux guy wink

http://wiki.openwrt.org/doc/uci down at the bottom

edit: for example...

showing LAN IP address:

uci show network.lan.ipaddr

or

uci get network.lan.ipaddr

Changing LAN IP address:

uci set network.lan.ipaddr=192.168.10.1
uci commit network
/etc/init.d/network restart

Using UCI is highly preferred to using some text editor, if only for the reason that you can use it in shell scripts.

(Last edited by aport on 6 Feb 2012, 18:38)

Enabling wifi is a must wink

uci set wireless.@wifi-device[0].disabled=0; uci commit wireless; wifi

Also showing currently connected wifi clients:

# Proprietary Broadcom (wl)
wl -i wl0 assoclist
 
# Proprietary Atheros (madwifi)
wlanconfig ath0 list sta
 
# MAC80211
iw dev wlan0 station dump
 
# Universal
iwinfo wlan0/wl0/ath0 assoclist

(Last edited by valentt on 15 Feb 2012, 13:44)

Update from today:
Cheat Cube

(Last edited by valentt on 26 Dec 2012, 22:58)

Just added best wiki pages side, what do you thing about current wiki links? Are there any of your favorites missing?

RECIPES http://wiki.openwrt.org/doc/recipes/
HOWTOS http://wiki.openwrt.org/doc/howto/
DOCUMENTATION http://wiki.openwrt.org/doc/
SUPPORTED HAARDWARE http://wiki.openwrt.org/toh/
VPN SETUP wiki.openwrt.org/doc/howto/vpn.openvpn
QoS SETUP http://wiki.openwrt.org/doc/uci/qos
WEBCAM http://wiki.openwrt.org/doc/howto/webcam
EXTROOT http://wiki.openwrt.org/doc/howto/extroot
ROUTED CLIENT http://wiki.openwrt.org/doc/recipes/routedclient

(Last edited by valentt on 27 Dec 2012, 11:14)

Ah, I won't bother since no body seams interested...

i'm new here, but first impression is that this community is pretty... sparse and transactional.   

Partly i think it's because with routers you tend to set them up once and then you don't touch them or think about them until something breaks or you move or something.    So it might be years between bouts of involvement.  (compared to your OS which you tend to deal with much more often)

Join and help make openwrt cube...

valentt wrote:

Ah, I won't bother since no body seams interested...

I'm big_smile
Well done! I love to do things like this on my free time. My suggestion it's to add wifi up & wifi down, very handy command to bring the Wi-Fi interface up / down as needed.

Keep up the good work.
http://i.imgur.com/Yueujg9.jpg

(Last edited by katananja on 28 Mar 2013, 18:21)

How do I follow a link in a physical object?
At first I think that all links should be removed, then realize that QR codes comes in handy.

Please upload these pictures to the Wiki, this last picture could replace the ugly Fedora cube wink

Nilfred wrote:

Please upload these pictures to the Wiki, this last picture could replace the ugly Fedora cube wink

Done!

A have a few suggestions too:

  • The "System Services" need o to be moved two clicks to the right, because it's too close to the corner.
    http://i.imgur.com/QvlBCey.jpg

  • Maybe we need to get the exact font used at the "OpenWRT Wireless Freedom" to do a new rendering and export to vector graphics, when you print out the design it looks like a low res JPEG.

  • We need to make all the fonts at the side of the cube to to have the same font size as possible, for example "INSTALLING, REMOVING AND SEARCHING PACKAGES" has one font size, all capital letters (all uppercase) and right next to it "Network Configuration" the font it's small and not all letters are uppercase. My suggestion it's to decide and follow a single pattern, all capital letters and bold could be nice.

And a tip for the people that want to build the cube and make the corners to look sharp and precise, use hobbie knives if possible to make precision cuts, and pass it over the bending marks very lightly, this helps a lot and gives you a professional look. wink

Did you update text or did you print my last version from the wiki?
Version on the wiki still has lots of fedora commands that need to be deleted and replaced by some things for openwrt...

Feel free to do so and upload final version back to wiki, thanks.

valentt wrote:

Did you update text or did you print my last version from the wiki?
Version on the wiki still has lots of fedora commands that need to be deleted and replaced by some things for openwrt...

Feel free to do so and upload final version back to wiki, thanks.

I've used the last version available at the time.

I uploaded Cheat Cube files to github:
https://github.com/valentt/valent-openw … /cheatcube

Please edit that version and upload changes.

Current Cheat Cube still has Fedora commands and needs these to be replaced by openwrt commands...

Thanks.

The discussion might have continued from here.