Re: [arch-general] Forward all PPTP VPN packets to another proxy?

2013-03-23 Thread Hexchain Tong
On Sat, Mar 23, 2013 at 2:39 PM, Bill Sun  wrote:
>
> I'm thinking about running a http server that handles all the
> authentication for Server 2 (such as dante?), then forward all packets
> to that server (running in Server 1). But I don't know how to write
> corresponding iptables rules. So how to write such rules?

You need to setup another proxy on Server 1. Take squid for example,
in squid.conf, set upstream server using cache_peer and authentication
parameters (please refer to squid manual because I don't know how to
do it :-P ), and set a port that handles intercepted traffic (or it
won't work!):

http_port  intercept

and insert the following iptables rule:

iptables -t nat -A PREROUTING -s  -p tcp --dport 80
-j REDIRECT --to-port 


[arch-general] Weird problem of ALPS v6 touchpad

2013-03-22 Thread Hexchain Tong
Hi all,

I'm using Archlinux on a Dell Inspiron 7420 laptop, which has an ALPS
touchpad that doesn't have driver in kernel. Currently
aur/psmouse-alps-driver provides support for it.

But recently some weird problem happened. After I switch off touchpad using
`synclient TouchpadOff=1`, it should be completely turned off. But when I
wipe it with palm, the mouse pointer randomly moves and sometimes even
clicks!

In `xinput list` there is a strange "PS/2 mouse" device:

⎡ Virtual core pointer id=2 [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer   id=4 [slave  pointer  (2)]
⎜   ↳ RAPOO RAPOO 5G Wireless Device   id=12 [slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS GlidePoint id=17 [slave  pointer  (2)]
⎜   ↳ PS/2 Mouse   id=15 [slave  pointer  (2)]
[..cut..]

(The RAPOO is my USB mouse and it has nothing to do with the PS/2 device)

I had to use xinput to disable the PS/2 device to stop the problem.

Is there any other input device I don't know inside my laptop? Or, is it a
bug?

More info:

$ dmesg | grep -i "ps/2"
[2.497642] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at
0x60,0x64 irq 1,12
[2.502081] mousedev: PS/2 mouse device common for all mice
[   15.025069] input: PS/2 Generic Mouse as
/devices/platform/i8042/serio1/input/input11
[  226.680273] input: PS/2 Mouse as
/devices/platform/i8042/serio1/input/input17
[  226.698384] input: AlpsPS/2 ALPS GlidePoint as
/devices/platform/i8042/serio1/input/input18


Re: [arch-general] Optirun sees no mouse, refuses to load

2013-03-12 Thread Hexchain Tong
On Tue, Mar 12, 2013 at 6:43 AM, Szymon Szydełko  wrote:
> 2. Hmm, can I disable Intel gpu? And just leave Nvidia one?

As far as I know you cannot do that on a Optimus system.

Maybe your card is not turned on when optirun starts.

My journal when starting `optirun glxspheres' :

Mar 12 21:30:01 lightning.hexchain.org kernel: bbswitch: enabling
discrete graphics
Mar 12 21:30:02 lightning.hexchain.org kernel: pci :01:00.0: power
state changed by ACPI to D0
Mar 12 21:30:02 lightning.hexchain.org kernel: vgaarb: device changed
decodes: PCI::01:00.0,olddecodes=none,decodes=none:owns=none
Mar 12 21:30:02 lightning.hexchain.org kernel: NVRM: loading NVIDIA
UNIX x86_64 Kernel Module  313.26  Wed Feb 27 13:04:31 PST 2013
Mar 12 21:30:03 lightning.hexchain.org logger[15184]: button/lid: ACPI
group/action undefined: processor / LNXCPU:00
Mar 12 21:30:03 lightning.hexchain.org acpid[313]: client connected
from 15180[0:996]
Mar 12 21:30:03 lightning.hexchain.org acpid[313]: 1 client rule loaded
Mar 12 21:30:04 lightning.hexchain.org bumblebeed[323]: [13353.380547]
[WARN][XORG] (WW) NVIDIA: This server has an unsupported input driver
ABI version (have 19.1, need < 19.0).  The driver will continue to
load, but may behave strangely.
Mar 12 21:30:04 lightning.hexchain.org bumblebeed[323]: [13353.380596]
[WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI
computation.
Mar 12 21:30:16 lightning.hexchain.org kernel: bbswitch: disabling
discrete graphics
Mar 12 21:30:16 lightning.hexchain.org kernel: pci :01:00.0:
Refused to change power state, currently in D0
Mar 12 21:30:16 lightning.hexchain.org kernel: pci :01:00.0: power
state changed by ACPI to D3cold
Mar 12 21:30:18 lightning.hexchain.org acpid[313]: client 15180[0:996]
has disconnected

Notice those lines containing "power state changed by ACPI".


Re: [arch-general] Optirun sees no mouse, refuses to load

2013-03-12 Thread Hexchain Tong
On Tue, Mar 12, 2013 at 1:32 AM, Armin K.  wrote:
> What's "bbswitch" anyways? As I said, I never used bumblebee, but that might
> be a source of your problems.

bbswitch is a module written by Bumblebee developers, aiming to
provide dynamic power management of (in other words, automatically
switching on and off) the discrete NVIDIA card.


Re: [arch-general] Cannot get GNOME Keyring to work well with lightdm-razor-greeter and razor-qt

2013-02-27 Thread Hexchain Tong
On Thu, Feb 28, 2013 at 3:18 AM, Damjan Georgievski  wrote:
>
> AFAIK you can run gnome-keyring-daemon from a PAM setting.
>

Tried, but doesn't work.

> If not, this small patch for /etc/lightdm/xsession will run your
> ~/.xsession properly as any *dm should:
> https://gist.github.com/gdamjan/4043181
>

Thank you! This is useful.

>
> --
> damjan


[arch-general] Cannot get GNOME Keyring to work well with lightdm-razor-greeter and razor-qt

2013-02-27 Thread Hexchain Tong
Hi everyone,

I recently switched to razor-qt desktop and lightdm (for a faster
startup), but I can't get gnome-keyring-daemon to run.

I've tried https://wiki.archlinux.org/index.php/GNOME_Keyring#Use_Without_GNOME
, but ~/.xinitrc doesn't seem to be executed at all. Plus, I don't
want to add anything into ~/.bashrc, because I think $SSH_AUTH_SOCK
and some relevant variables should just be set in the session.

Is there any better idea?

Thanks,
Hexchain