Saturday, April 16, 2011

Using tor button

1. # apt-get install iceweasel-torbutton
will install other related packages as well.

2. Configure polipo:
- backup /etc/tor/config
- use this file https://gitweb.torproject.org/torbrowser.git/blob_plain/HEAD:/build-scripts/config/polipo.conf as the above config file

3. Configure tor
- Uncomment these lines in /etc/tor/torrc
SocksPort 9050 # what port to open for local application connections
SocksListenAddress 127.0.0.1 # accept connections only from localhost
RunAsDaemon 1
ControlPort 9051

4. Restart polipo and tor
# /etc/init.d/polipo restart
# /etc/init.d/tor restart

Ref:
- https://www.torproject.org/docs/tor-doc-unix.html.en
- http://forums.opensuse.org/get-help-here/network-internet/429127-tor-not-starting.html#post2091241

Blank screen during boot

# lspci
1:00.0 VGA compatible controller: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M]

A blank screen appears after messages about udev. Cannot move to other consoles by Alt-Fx. However, can "blind" log-in, run startx and X works.

Solution: append radeon.modeset=0 (or nomodeset, if this does not work) to the kernel options line in the bootloader configuration file (/boot/grub/menu.lst or /boot/grub/grub.cfg [but this file is subject to change when upgrading GRUB] for GRUB users) to disable KMS.

Ref: https://wiki.archlinux.org/index.php/Ati

Tuesday, April 05, 2011

Installing Debian via the Internet from Windows (amd64)

1. Download linux (the kernel) and initrd.gz from
http://d-i.debian.org/daily-images/amd64/daily/netboot/debian-installer/amd64/

2. Install and boot GRUB4DOS.
kernel /linux
intrd /initrd.gz

3. The installation begins.

Using GRUB4DOS from Windows 7

A. GRUB4DOS
Copy grldr.mbr, grldr and menu.lst to C:\.

B. BCDEdit
1. Backup the current config:
bcdedit.exe /export c:\filename

2. Create new entry
bcdedit.exe /create /d "GRUB4DOS" /application bootsector

This returns a guid of 32-character string like
{5ed99144-5f57-11e0-818a-78843ccde686}
.
3. Set entry option value: device
bcdedit.exe /set {5ed99144-5f57-11e0-818a-78843ccde686} device boot

However, when booting, it may get the following error:
File: \grldr.mbr
Status: 0xc000000f
Info: The selected entry could not be loaded because the application is missing or corrupt.

This is because becouse Windows 7 creates a hidden extra partition for the BCD. Then, this command should be issued:
bcdedit /set {5ed99144-5f57-11e0-818a-78843ccde686} device partition=C:

4. Set entry option value: path
bcdedit.exe /set {5ed99144-5f57-11e0-818a-78843ccde686} path \grldr.mbr

5. Set entry display order
bcdedit.exe /displayorder {5ed99144-5f57-11e0-818a-78843ccde686} /addlast

6. Set timeout (for example, 2 sec)
bcdedit /timeout 2