Bug#539186: nolisten switch in /etc/X11/xinit/xserverrc ignored
On Wed, Oct 14, 2009 at 08:09:18 +0100, Anthony Campbell wrote: After some research on google I used this command to find which process was using port 6000: Starting Nmap 5.00 ( http://nmap.org ) at 2009-10-14 07:43 BST Interesting ports on localhost (127.0.0.1): Not shown: 992 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 111/tcp open rpcbind 113/tcp open auth 143/tcp open imap 515/tcp open printer 993/tcp open imaps 6000/tcp open X11 I therefore realised it was X11 that was listening on this port. I found two ways of getting round this: either do ssh before starting X, or start X with the --nolisten switch. The above switch is there in /etc/X11/xinit/xserverrc but it does not seem to have any effect. How is X started? What's /proc/`pidof X`/cmdline? Cheers, Julien -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#539186: nolisten switch in /etc/X11/xinit/xserverrc ignored
On 14 Oct 2009, Julien Cristau wrote: On Wed, Oct 14, 2009 at 08:09:18 +0100, Anthony Campbell wrote: After some research on google I used this command to find which process was using port 6000: Starting Nmap 5.00 ( http://nmap.org ) at 2009-10-14 07:43 BST Interesting ports on localhost (127.0.0.1): Not shown: 992 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 111/tcp open rpcbind 113/tcp open auth 143/tcp open imap 515/tcp open printer 993/tcp open imaps 6000/tcp open X11 I therefore realised it was X11 that was listening on this port. I found two ways of getting round this: either do ssh before starting X, or start X with the --nolisten switch. The above switch is there in /etc/X11/xinit/xserverrc but it does not seem to have any effect. How is X started? What's /proc/`pidof X`/cmdline? Cheers, Julien Sorry, I don't understand /proc/`pidof X`/cmdline. I don't have this. X is started with startx and the following files .xinitrc: xset -DPMS xset -b xset s off setxkbmap -option terminate:ctrl_alt_bksp # /usr/bin/xmodmap /home/ac/.Xmodmap /usr/bin/xmodmap -e clear Lock #/usr/bin/xmodmap -e keycode 113 = Alt_L /usr/bin/xmodmap -e keycode 108 = Alt_L /usr/bin/xmodmap -e keycode 66 = Insert xset +fp ~/fonts xsetroot -cursor_name cursor2.pcf exec icewm-session-experimental # exec twm .Xdefaults: #xterm*font: *-courier-bold-r-*-*-*-120-* xterm*font: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1 xterm*background: ivory3 xterm*foreground: black xterm*loginshell: true xterm*geometry: 80x25 xterm*cursorColor: red xterm*scrollBar: true xterm*visualBell: true Regards, AC -- Anthony Campbell - a...@acampbell.org.uk Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk (blog, book reviews, and sceptical articles) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#539186: nolisten switch in /etc/X11/xinit/xserverrc ignored
On Wed, Oct 14, 2009 at 10:07:35 +0100, Anthony Campbell wrote: Sorry, I don't understand /proc/`pidof X`/cmdline. I don't have this. Then please just send the output of ps auxf. Cheers, Julien -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#539186: nolisten switch in /etc/X11/xinit/xserverrc ignored
On 14 Oct 2009, Julien Cristau wrote: On Wed, Oct 14, 2009 at 10:07:35 +0100, Anthony Campbell wrote: Sorry, I don't understand /proc/`pidof X`/cmdline. I don't have this. Then please just send the output of ps auxf. Cheers, Julien Sorry, thought I'd done that. Here it is: USER PID %CPU %MEMVSZ RSS TTY STAT START TIME COMMAND root 2 0.0 0.0 0 0 ?S Oct13 0:00 [kthreadd] root 3 0.0 0.0 0 0 ?S Oct13 0:00 \_ [migration/0] root 4 0.0 0.0 0 0 ?S Oct13 0:00 \_ [ksoftirqd/0] root 5 0.0 0.0 0 0 ?S Oct13 0:00 \_ [watchdog/0] root 9 0.0 0.0 0 0 ?S Oct13 0:00 \_ [events/0] root11 0.0 0.0 0 0 ?S Oct13 0:00 \_ [cpuset] root12 0.0 0.0 0 0 ?S Oct13 0:00 \_ [khelper] root15 0.0 0.0 0 0 ?S Oct13 0:00 \_ [netns] root18 0.0 0.0 0 0 ?S Oct13 0:00 \_ [async/mgr] root70 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kintegrityd/0] root73 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kblockd/0] root76 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kacpid] root77 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kacpi_notify] root 160 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kseriod] root 191 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kondemand/0] root 213 0.0 0.0 0 0 ?SOct13 0:00 \_ [khungtaskd] root 214 0.0 0.0 0 0 ?SOct13 0:00 \_ [pdflush] root 215 0.0 0.0 0 0 ?SOct13 0:00 \_ [pdflush] root 216 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kswapd0] root 217 0.0 0.0 0 0 ?S Oct13 0:00 \_ [aio/0] root 219 0.0 0.0 0 0 ?S Oct13 0:00 \_ [crypto/0] root 558 0.0 0.0 0 0 ?S Oct13 0:00 \_ [ksuspend_usbd] root 639 0.0 0.0 0 0 ?S Oct13 0:00 \_ [khubd] root 659 0.0 0.0 0 0 ?S Oct13 0:00 \_ [ata/0] root 661 0.0 0.0 0 0 ?S Oct13 0:00 \_ [ata_aux] root 662 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kmmcd] root 678 0.0 0.0 0 0 ?S Oct13 0:00 \_ [scsi_eh_0] root 679 0.0 0.0 0 0 ?S Oct13 0:00 \_ [scsi_eh_1] root 680 0.0 0.0 0 0 ?S Oct13 0:00 \_ [scsi_eh_2] root 681 0.0 0.0 0 0 ?S Oct13 0:00 \_ [scsi_eh_3] root 746 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kjournald] root 1044 0.0 0.0 0 0 ?S Oct13 0:00 \_ [tifm] root 1049 0.0 0.0 0 0 ?S Oct13 0:00 \_ [bluetooth] root 1074 0.0 0.0 0 0 ?S Oct13 0:00 \_ [pccardd] root 1080 0.0 0.0 0 0 ?S Oct13 0:00 \_ [ktpacpid] root 1083 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kpsmoused] root 1095 0.0 0.0 0 0 ?S Oct13 0:00 \_ [iwl3945] root 1096 0.0 0.0 0 0 ?S Oct13 0:00 \_ [phy0] root 1176 0.0 0.0 0 0 ?S Oct13 0:00 \_ [hd-audio0] root 1335 0.0 0.0 0 0 ?S Oct13 0:00 \_ [firewire_sbp2] root 1341 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kstriped] root 1344 0.0 0.0 0 0 ?S Oct13 0:00 \_ [ksnapd] root 1395 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kjournald] root 2009 0.0 0.0 0 0 ?S Oct13 0:00 \_ [kconservative/0] root 4631 0.0 0.0 0 0 ?S Oct13 0:00 \_ [krfcommd] root 11830 0.0 0.0 0 0 ?S 06:53 0:00 \_ [migration/1] root 11831 0.0 0.0 0 0 ?S 06:53 0:00 \_ [ksoftirqd/1] root 11832 0.0 0.0 0 0 ?S 06:53 0:00 \_ [watchdog/1] root 11833 0.0 0.0 0 0 ?S 06:53 0:00 \_ [kconservative/1] root 11834 0.0 0.0 0 0 ?S 06:53 0:00 \_ [ata/1] root 11835 0.0 0.0 0 0 ?S 06:53 0:00 \_ [crypto/1] root 11836 0.0 0.0 0 0 ?S 06:53 0:00 \_ [aio/1] root 11837 0.0 0.0 0 0 ?S 06:53 0:00 \_ [kondemand/1] root 11838 0.0 0.0 0 0 ?S 06:53 0:00 \_ [kblockd/1] root 11839 0.0 0.0 0 0 ?S 06:53 0:00 \_ [kintegrityd/1] root 11840 0.0 0.0 0 0 ?S 06:53 0:00 \_ [events/1] root 1 0.0 0.0 2136 720 ?Ss Oct13 0:00 init [2] root 818 0.0 0.0 2640 1024 ?Ss Oct13 0:00 udevd --daemon root
Bug#539186: nolisten switch in /etc/X11/xinit/xserverrc ignored
On 14 Oct 2009, Julien Cristau wrote: On Wed, Oct 14, 2009 at 11:04:38 +0100, Anthony Campbell wrote: root 4770 0.0 0.1 3096 1608 tty1 Ss Oct13 0:00 /bin/login -- ac4914 0.0 0.1 4960 2028 tty1 SOct13 0:00 \_ -bash ac 13210 0.0 0.1 4560 1536 tty1 S+ 07:35 0:00 \_ /bin/bash /usr/bin/startx -- -dpi 100 ac 13228 0.0 0.0 3060 812 tty1 S+ 07:35 0:00 \_ xinit /home/ac/.xinitrc -- /usr/bin/X -dpi 100 -auth /tmp/serverauth.F1Ie6h3EB8 You're passing server arguments to startx (-dpi 100), so xserverrc is not used. Use startx -- -dpi 100 -nolisten tcp if you want to force this. Cheers, Julien Thanks - that's what I've been doing. I didn't realise that server arguments would bypass xserverrc. Regards, Anthony -- Anthony Campbell - a...@acampbell.org.uk Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk (blog, book reviews, and sceptical articles) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#539186: nolisten switch in /etc/X11/xinit/xserverrc ignored
On 13 Oct 2009, Julien Cristau wrote: On Wed, Jul 29, 2009 at 17:56:35 +0100, Anthony Campbell wrote: /etc/X11/xinit/xserverrc contains the line: exec /usr/bin/X11/X -nolisten tcp But connecting to a server at port 6000 in an X terminal says that port 6000 is not available. I got round it by starting X with 'startx -- -nolisten tcp'. For some reason this does not affect two other machines but it does affect this one. I'm not sure I understand this bug report. Can you show actual error messages, and output of 'ps aufx' when this occurs? What X servers are you starting, how, etc. We'll need some more verbose info on your setup… Cheers, Julien I need to access a server via ssh, using this line: ssh -f -L 6000:localhost:4499 campb...@91.204.208.39 -N I do this and then supply the password needed to connect. I then get: bind: Address already in use channel_setup_fwd_listener: cannot listen to port: 6000 Could not request local forwarding. After some research on google I used this command to find which process was using port 6000: Starting Nmap 5.00 ( http://nmap.org ) at 2009-10-14 07:43 BST Interesting ports on localhost (127.0.0.1): Not shown: 992 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 111/tcp open rpcbind 113/tcp open auth 143/tcp open imap 515/tcp open printer 993/tcp open imaps 6000/tcp open X11 I therefore realised it was X11 that was listening on this port. I found two ways of getting round this: either do ssh before starting X, or start X with the --nolisten switch. The above switch is there in /etc/X11/xinit/xserverrc but it does not seem to have any effect. Hope this is clear Anthony -- Anthony Campbell - a...@acampbell.org.uk Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk (blog, book reviews, and sceptical articles) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#539186: nolisten switch in /etc/X11/xinit/xserverrc ignored
On Wed, Jul 29, 2009 at 17:56:35 +0100, Anthony Campbell wrote: /etc/X11/xinit/xserverrc contains the line: exec /usr/bin/X11/X -nolisten tcp But connecting to a server at port 6000 in an X terminal says that port 6000 is not available. I got round it by starting X with 'startx -- -nolisten tcp'. For some reason this does not affect two other machines but it does affect this one. I'm not sure I understand this bug report. Can you show actual error messages, and output of 'ps aufx' when this occurs? What X servers are you starting, how, etc. We'll need some more verbose info on your setup… Cheers, Julien -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#539186: nolisten switch in /etc/X11/xinit/xserverrc ignored
Package: xinit Version: 1.1.1-1 Severity: normal /etc/X11/xinit/xserverrc contains the line: exec /usr/bin/X11/X -nolisten tcp But connecting to a server at port 6000 in an X terminal says that port 6000 is not available. I got round it by starting X with 'startx -- -nolisten tcp'. For some reason this does not affect two other machines but it does affect this one. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages xinit depends on: ii libc6 2.9-23 GNU C Library: Shared libraries ii libx11-6 2:1.2.2-1 X11 client-side library ii x11-common1:7.4+3X Window System (X.Org) infrastruc ii xauth 1:1.0.3-2 X authentication utility Versions of packages xinit recommends: ii awesome [x-window-man 3.3.2-1highly configurable, next generati ii icewm [x-window-manag 1.2.37+1.3.4pre2-4 wonderful Win95-OS/2-Motif-like wi ii xserver-xorg 1:7.4+3the X.Org X server ii xserver-xorg-core [xs 2:1.6.2.901-1 Xorg X server - core server ii xterm [x-terminal-emu 243-1 X terminal emulator xinit suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org