發表文章

目前顯示的是 5月 3, 2015的文章

Gentoo Portage 改用 git 同步

圖片
Gentoo Portage 改用 git 同步 安裝 portage-2.2.16 以上版本 $ sudo emerge \>=sys-apps/portage-2.2.16 修改 repos.conf $ sudo mkdir -p /etc/portage/repos.conf $ sudo cat > /etc/portage/repos.conf/gentoo.conf << EOF [DEFAULT] main-repo = gentoo [gentoo] location = /usr/portage sync-type = git sync-uri = https://github.com/gentoo/gentoo-portage-rsync-mirror auto-sync = true EOF 從 git 同步 portage,並更新 eix db $ sudo rm -rf /usr/portage $ sudo eix-sync Ref:  Gentoo Wiki: Project:Portage/Sync

FON2100E 刷 OpenWrt 設定公開與私有 Wifi

圖片
OpenWrt 設定雙 Wifi,公開 SSID 與私有 SSID 切開。 my /etc/config/network config 'interface' 'loopback' option 'ifname' 'lo' option 'proto' 'static' option 'ipaddr' '127.0.0.1' option 'netmask' '255.0.0.0' config 'interface' 'lan' option 'proto' 'static' option 'ipaddr' '192.168.100.1' option 'netmask' '255.255.255.0' option 'ifname' 'ath0' option 'defaultroute' '0' option 'peerdns' '0' config 'interface' 'wan' option 'proto' 'dhcp' option 'ifname' 'eth0' option 'defaultroute' '0' option 'peerdns' '0' config 'interface' 'lan2' option 'proto' 'static' option 'ipaddr' '192.168.200.1' option 'netmask' '255.255.255.0' option 'defaultroute' '0' option 

Redboot 刷 FON2100E

圖片
老東西,回味一下。 Into RedBoot Install and Prepare tftpserver $ brew install Caskroom/cask/tftpserver RJ45 Connect, Setting Ethernet Card IP as 192.168.1.xx/24 $ sudo ifconfig en0 192.168.1.2/24 up Install fping first, In Mac OS:  $ brew install fping Unplug and Replug the FON2100E power, and run this script in terminal to access redboot #!/usr/bin/env bash while true; do fping -t 200 192.168.1.254 && break; done; sleep 5;\ echo -e "\x3" | nc -w 1 -vvv 192.168.1.254 9000 ; \ telnet 192.168.1.254 9000 FON2100E DD-WRT RedBoot> ip_address -l 192.168.1.254/24 -h 192.168.1.2 RedBoot> fis init RedBoot> load -r -b 0x80041000 linux.bin RedBoot> fis create linux RedBoot> fconfig -l -n RedBoot> fconfig boot_script_data >> fis load -l linux >> exec RedBoot> reset FON2100E Gargoyle RedBoot> ip_address -l 192.168.1.254/24 -h 192.168.1.2 RedBoot> fis init RedBoot> load -r -b %{FREEMEMLO} gargoyle_1.4.7-atheros-vmlinux.lzma Red