Tested and working on OpenSuse 11.3
1. Set up networking to be controlled by the ifup in Yast2
2. Make sure that "dhcp address" and "set up default route using dhcp" are both unchecked
3. Add to the routing table: 192.168.1.254 gw=0.0.0.0 netmask=255.255.255.255
4. Disable IPv6 (tftp won't work with it enabled on OpenSuse 11.3). This will require system reboot
4. Create /etc/bootptab with
bebox:ha=XXXXXXXXXX:ip=192.168.1.254:sm=255.255.255.0:bf=Be_TG585v7_8277_JZ_V2V_18112010_0933.bin
"ha" is hexadecimal; bf is path relative to tftp directory . Original BE instructions incorrectly specify the absolute path.
5. Go to "network services" and make sure that tftp is enabled (install tftp and yast-tftp first)
6. Configure yast in tftp, say, to /srv/tftpboot
7. Make sure that the /srv/tftpboot has read permissions
8. Restart xinetd
9. Start bootpd -d 4
10. Press the "reset" button on the router until the light turns yellow. Transfer will start.
For debugging, I found that wireshark was more helpful than tcpdump, the messages were more obvious.
Tuesday, February 28, 2012
Monday, February 27, 2012
Crontab setup for shutdown at midnight
30 23 * * * /sbin/shutdown -h +31 "Shutting down at 0:01"
59 23 * * * echo "Cron shutdown scheduled in 2 minutes" > /usr/bin/wall
Shutdown every day at midnight. With sysinit, it must be "+31", not "31", otherwise it is taken to be an hour. Full path is required to shutdown utility.
sysinit shutdown only issues warnings at 30 and 15 minutes; there will be no further warning. Therefor also do a wall about 2 minutes before shutdown
59 23 * * * echo "Cron shutdown scheduled in 2 minutes" > /usr/bin/wall
Shutdown every day at midnight. With sysinit, it must be "+31", not "31", otherwise it is taken to be an hour. Full path is required to shutdown utility.
sysinit shutdown only issues warnings at 30 and 15 minutes; there will be no further warning. Therefor also do a wall about 2 minutes before shutdown
Wednesday, February 22, 2012
Tor + Linux
Tor configuration:
ExitNodes {us}
Polipo configuration: (/etc/polipo/config):
disableLocalInterface = true
socksParentProxy = "localhost:9050"
socksProxyType = socks5
censoredHeaders = from, accept-language,x-pad,link
censorReferer = maybe
Opera configuration:
HTTP proxy: 127.0.0.1 port 8123
HTTPS proxy: 127.0.0.1 port 8123
Do NOT click "use this proxy for all protocols", this does not work.
ExitNodes {us}
Polipo configuration: (/etc/polipo/config):
disableLocalInterface = true
socksParentProxy = "localhost:9050"
socksProxyType = socks5
censoredHeaders = from, accept-language,x-pad,link
censorReferer = maybe
Opera configuration:
HTTP proxy: 127.0.0.1 port 8123
HTTPS proxy: 127.0.0.1 port 8123
Do NOT click "use this proxy for all protocols", this does not work.
Tuesday, February 21, 2012
Wine for ebooks on a new machine
1. winetricks vcrun2008
2. winetricks allfonts --- otherwise Kindle will not work
3. Get Kindle installer
4. wine KindleForPC-installer.exe
5. Turn off automatic updating in Kindle. NOTE: kindle app is substantially broken with the latest version of Wine in OpenSuse12.1. Investigating/filing a bug.
6. Get Adobe Digital Editions (has to be manual install), and install
7. Get ActiveState python: download msi (Python 2.7)
run wine msiexec /i ActivePython-2.7.2.5-win32-x86.msi
8. Download pycrypto 2.3 http://www.voidspace.org.uk/python/modules.shtml
run wine msiexec /i pycrypto-2.3.win32-py2.7.msi
9. Get the tools from "continuing dark reverser's work" blog
10. Unzip them into wine drive c:
pushd ~/.wine/drive_c/
mkdir Tools
cd Tools
unzip ~/Downloads/tools_v4.8.zip
11. Test that Kindle tools work:
cd ~/.wine/drive_c/Tools/tools_v4.8/KindleBooks
wine explorer /desktop=name,1024x768 python.exe KindleBooks.pyw
12. Put adeptkey.der into .config/calibre
2. winetricks allfonts --- otherwise Kindle will not work
3. Get Kindle installer
4. wine KindleForPC-installer.exe
5. Turn off automatic updating in Kindle. NOTE: kindle app is substantially broken with the latest version of Wine in OpenSuse12.1. Investigating/filing a bug.
6. Get Adobe Digital Editions (has to be manual install), and install
7. Get ActiveState python: download msi (Python 2.7)
run wine msiexec /i ActivePython-2.7.2.5-win32-x86.msi
8. Download pycrypto 2.3 http://www.voidspace.org.uk/python/modules.shtml
run wine msiexec /i pycrypto-2.3.win32-py2.7.msi
9. Get the tools from "continuing dark reverser's work" blog
10. Unzip them into wine drive c:
pushd ~/.wine/drive_c/
mkdir Tools
cd Tools
unzip ~/Downloads/tools_v4.8.zip
11. Test that Kindle tools work:
cd ~/.wine/drive_c/Tools/tools_v4.8/KindleBooks
wine explorer /desktop=name,1024x768 python.exe KindleBooks.pyw
12. Put adeptkey.der into .config/calibre
Subscribe to:
Comments (Atom)