[Risolto] Xorg e porta 6000

Se avete problemi con l'installazione e la configurazione di Slackware postate qui. Non usate questo forum per argomenti generali... per quelli usate Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

[Risolto] Xorg e porta 6000

Messaggio da Ansa89 »

È da ieri che provo a lanciare il server X per farlo ascoltare sulla porta 6000 senza successo; so che questa dovrebbe essere l'impostazione di default, ma sulla mia slack 13.1 sembra non funzionare.
In rete ho trovato una marea di how-to, ma tutti spiegano solo come disabilitare il listening.

Per avviare la sessione grafica parto in init 3, faccio il login ed eseguo "startx" (non uso kdm/gdm/xdm).
Se vi serve altro chiedete pure.
Ultima modifica di Ansa89 il mar 8 feb 2011, 21:01, modificato 1 volta in totale.

Avatar utente
lablinux
Linux 4.x
Linux 4.x
Messaggi: 1225
Iscritto il: gio 27 nov 2008, 12:23
Desktop: Gnome
Distribuzione: Debian testing
Località: Rho

Re: Xorg e porta 6000

Messaggio da lablinux »

forse potrebbe essere utile il log.

Avatar utente
targzeta
Iper Master
Iper Master
Messaggi: 6643
Iscritto il: gio 3 nov 2005, 14:05
Nome Cognome: Emanuele Tomasi
Slackware: 64-current
Kernel: latest stable
Desktop: IceWM
Località: Carpignano Sal. (LE) <-> Pisa

Re: Xorg e porta 6000

Messaggio da targzeta »

In che senso non funziona? Se fai netstat riesci a vedere che il server è in ascolto? Per connetterti non basta che sia in ascolto, devi anche avere i permessi giusti!

Emanuele
Se pensi di essere troppo piccolo per fare la differenza, prova a dormire con una zanzara -- Dalai Lama

Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

Re: Xorg e porta 6000

Messaggio da Ansa89 »

spina ha scritto:In che senso non funziona? Se fai netstat riesci a vedere che il server è in ascolto? Per connetterti non basta che sia in ascolto, devi anche avere i permessi giusti!

Emanuele
Non funziona nel senso che non ascolta sulla porta 6000:

Codice: Seleziona tutto

$netstat -tna
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:14454           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     
tcp        0      0 192.168.7.4:35816       86.65.39.15:6667        ESTABLISHED
tcp        0      0 192.168.7.4:49961       85.94.194.111:6667      ESTABLISHED
tcp        0      0 192.168.7.4:51414       79.27.189.91:18159      ESTABLISHED
tcp        0      0 192.168.7.4:60814       88.54.185.45:7000       ESTABLISHED
tcp        0      0 192.168.7.4:35478       129.42.56.216:80        ESTABLISHED
tcp        0      0 192.168.7.4:54775       207.46.124.151:1863     ESTABLISHED
tcp6       0      0 :::631                  :::*                    LISTEN
lablinux ha scritto:forse potrebbe essere utile il log.
Intendi il log di xorg quando lancio "startx"?

Codice: Seleziona tutto

$cat /var/log/Xorg.0.log
X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Slackware 13.1 Slackware Linux Project
Current Operating System: Linux Bulldozer 2.6.37-ck1 #1 SMP PREEMPT Thu Jan 6 12:30:27 CET 2011 i686
Kernel command line: root=/dev/sda6 ro vga=791
Build Date: 26 August 2010  12:40:23PM
 
Current version of pixman: 0.16.6
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Feb  8 09:26:45 2011
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/local" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/CID" does not exist.
        Entry deleted from font path.
(**) FontPath set to:
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF,
        /usr/share/fonts/Type1,
        /usr/share/fonts/misc,
        /usr/share/fonts/75dpi/:unscaled,
        /usr/share/fonts/100dpi/:unscaled,
        /usr/share/fonts/75dpi,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/cyrillic,
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF,
        /usr/share/fonts/Type1,
        /usr/share/fonts/misc,
        /usr/share/fonts/75dpi/:unscaled,
        /usr/share/fonts/100dpi/:unscaled,
        /usr/share/fonts/75dpi,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/cyrillic
(**) ModulePath set to "/usr/lib/xorg/modules"
(**) Extension "Composite" is enabled
(II) Cannot locate a core pointer device.
(II) Cannot locate a core keyboard device.
(II) The server relies on HAL to provide the list of input devices.
        If no devices become available, reconfigure HAL or disable AutoAddDevices.
(II) Loader magic: 0x81e4c40
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.4
        X.Org Video Driver: 6.0
        X.Org XInput driver : 7.0
        X.Org Server Extension : 2.0
(--) using VT number 7

(--) PCI:*(0:1:0:0) 10de:0652:1025:0259 rev 161, Mem @ 0xd2000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00005000/128
(II) Open ACPI successful (/var/run/acpid.socket)
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded by default.
(II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.1.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.0
        Module class: X.Org Server Extension
(II) NVIDIA GLX Module  260.19.29  Wed Dec  8 12:25:40 PST 2010
(II) Loading extension GLX
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.0
        Module class: X.Org Video Driver
(II) NVIDIA dlloader X Driver  260.19.29  Wed Dec  8 12:10:28 PST 2010
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01@00:00:0
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"
(II) Loading /usr/lib/xorg/modules/libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
        compiled for 1.7.7, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NoLogo" "True"
(**) Feb 08 09:26:46 NVIDIA(0): Enabling RENDER acceleration
(II) Feb 08 09:26:46 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) Feb 08 09:26:46 NVIDIA(0):     enabled.
(II) Feb 08 09:26:49 NVIDIA(0): NVIDIA GPU GeForce GT 130M (G96) at PCI:1:0:0 (GPU-0)
(--) Feb 08 09:26:49 NVIDIA(0): Memory: 1048576 kBytes
(--) Feb 08 09:26:49 NVIDIA(0): VideoBIOS: 62.94.7a.00.10
(II) Feb 08 09:26:49 NVIDIA(0): Detected PCI Express Link width: 16X
(--) Feb 08 09:26:49 NVIDIA(0): Interlaced video modes are supported on this GPU
(--) Feb 08 09:26:49 NVIDIA(0): Connected display device(s) on GeForce GT 130M at PCI:1:0:0
(--) Feb 08 09:26:49 NVIDIA(0):     LGD LP156WH2-TLE1 (DFP-0)
(--) Feb 08 09:26:49 NVIDIA(0): LGD LP156WH2-TLE1 (DFP-0): 330.0 MHz maximum pixel clock
(--) Feb 08 09:26:49 NVIDIA(0): LGD LP156WH2-TLE1 (DFP-0): Internal Dual Link LVDS
(II) Feb 08 09:26:49 NVIDIA(0): Assigned Display Device: DFP-0
(==) Feb 08 09:26:49 NVIDIA(0): 
(==) Feb 08 09:26:49 NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
(==) Feb 08 09:26:49 NVIDIA(0):     will be used as the requested mode.
(==) Feb 08 09:26:49 NVIDIA(0): 
(II) Feb 08 09:26:49 NVIDIA(0): Validated modes:
(II) Feb 08 09:26:49 NVIDIA(0):     "nvidia-auto-select"
(II) Feb 08 09:26:49 NVIDIA(0): Virtual screen size determined to be 1366 x 768
(--) Feb 08 09:26:50 NVIDIA(0): DPI set to (102, 102); computed from "UseEdidDpi" X config
(--) Feb 08 09:26:50 NVIDIA(0):     option
(==) Feb 08 09:26:50 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(--) Depth 24 pixmap format is 32 bpp
(II) Feb 08 09:26:50 NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
(II) Feb 08 09:26:50 NVIDIA(0): Initialized GPU GART.
(II) Feb 08 09:26:50 NVIDIA(0): Setting mode "nvidia-auto-select"
(II) Loading extension NV-GLX
(II) Feb 08 09:26:50 NVIDIA(0): Initialized OpenGL Acceleration
(==) NVIDIA(0): Disabling shared memory pixmaps
(II) Feb 08 09:26:50 NVIDIA(0): Initialized X Rendering Acceleration
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(==) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(II) Loading extension XINERAMA
(==) RandR enabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing extension GLX
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 2.3.3
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 7.0
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event6"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"
(II) config/hal: Adding input device SynPS/2 Synaptics TouchPad
(II) LoadModule: "synaptics"
(II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
(II) Module synaptics: vendor="X.Org Foundation"
        compiled for 1.7.5, module version = 1.2.2
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 7.0
(II) Synaptics touchpad driver version 1.2.2
(**) Option "Device" "/dev/input/event10"
(II) SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5584
(II) SynPS/2 Synaptics TouchPad: y-axis range 1408 - 4434
(II) SynPS/2 Synaptics TouchPad: pressure range 0 - 255
(II) SynPS/2 Synaptics TouchPad: finger width range 0 - 15
(II) SynPS/2 Synaptics TouchPad: buttons: left right
(**) Option "TapButton1" "1"
(--) SynPS/2 Synaptics TouchPad: touchpad found
(**) SynPS/2 Synaptics TouchPad: always reports core events
(II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD)
(**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
(**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 0
(--) SynPS/2 Synaptics TouchPad: touchpad found
(II) config/hal: Adding input device HD Video WebCam
(**) HD Video WebCam: always reports core events
(**) HD Video WebCam: Device: "/dev/input/event8"
(II) HD Video WebCam: Found keys
(II) HD Video WebCam: Configuring as keyboard
(II) XINPUT: Adding extended input device "HD Video WebCam" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"
(II) config/hal: Adding input device Logitech USB Optical Mouse
(**) Logitech USB Optical Mouse: always reports core events
(**) Logitech USB Optical Mouse: Device: "/dev/input/event9"
(II) Logitech USB Optical Mouse: Found 3 mouse buttons
(II) Logitech USB Optical Mouse: Found scroll wheel(s)
(II) Logitech USB Optical Mouse: Found relative axes
(II) Logitech USB Optical Mouse: Found x and y relative axes
(II) Logitech USB Optical Mouse: Configuring as mouse
(**) Logitech USB Optical Mouse: YAxisMapping: buttons 4 and 5
(**) Logitech USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Logitech USB Optical Mouse" (type: MOUSE)
(**) Logitech USB Optical Mouse: (accel) keeping acceleration scheme 1
(**) Logitech USB Optical Mouse: (accel) acceleration profile 0
(II) Logitech USB Optical Mouse: initialized for relative axes.
(II) config/hal: Adding input device Sleep Button
(**) Sleep Button: always reports core events
(**) Sleep Button: Device: "/dev/input/event2"
(II) Sleep Button: Found keys
(II) Sleep Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"
(II) config/hal: Adding input device Power Button
(**) Power Button: always reports core events
(**) Power Button: Device: "/dev/input/event0"
(II) Power Button: Found keys
(II) Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"
(II) config/hal: Adding input device Video Bus
(**) Video Bus: always reports core events
(**) Video Bus: Device: "/dev/input/event4"
(II) Video Bus: Found keys
(II) Video Bus: Configuring as keyboard
(II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"
(II) config/hal: Adding input device Power Button
(**) Power Button: always reports core events
(**) Power Button: Device: "/dev/input/event3"
(II) Power Button: Found keys
(II) Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"

Avatar utente
lablinux
Linux 4.x
Linux 4.x
Messaggi: 1225
Iscritto il: gio 27 nov 2008, 12:23
Desktop: Gnome
Distribuzione: Debian testing
Località: Rho

Re: Xorg e porta 6000

Messaggio da lablinux »

dal log è tutto ok, non ci sono errori.
Non c'è la porta 6000 o sbaglio?

Avatar utente
targzeta
Iper Master
Iper Master
Messaggi: 6643
Iscritto il: gio 3 nov 2005, 14:05
Nome Cognome: Emanuele Tomasi
Slackware: 64-current
Kernel: latest stable
Desktop: IceWM
Località: Carpignano Sal. (LE) <-> Pisa

Re: Xorg e porta 6000

Messaggio da targzeta »

Non è che da qualche parte gli dici di non mettersi in ascolto?

Prova a postare l'output di:

Codice: Seleziona tutto

cat /proc/$(cat /tmp/.X0-lock | tr -d ' ')/cmdline
Emanuele
Se pensi di essere troppo piccolo per fare la differenza, prova a dormire con una zanzara -- Dalai Lama

Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

Re: Xorg e porta 6000

Messaggio da Ansa89 »

In effetti nell'output c'è l'opzione "-nolisten tcp":

Codice: Seleziona tutto

$cat /proc/$(cat /tmp/.X0-lock | tr -d ' ')/cmdline
/usr/X11R6/bin/X-nolistentcp:0-auth/home/g00f/.serverauth.2658
Ma non capisco da dove arrivi quell'opzione :? .

Avatar utente
targzeta
Iper Master
Iper Master
Messaggi: 6643
Iscritto il: gio 3 nov 2005, 14:05
Nome Cognome: Emanuele Tomasi
Slackware: 64-current
Kernel: latest stable
Desktop: IceWM
Località: Carpignano Sal. (LE) <-> Pisa

Re: Xorg e porta 6000

Messaggio da targzeta »

Dipende da cosa usi per far partire il server X. Se sei in init3 ed usi startx guarda il suo man per capire come esegue il server X. Ma molto probabilmente sei in init4 ed hai un desktop manager, allora devi vedere come si comporta il tuo desktop manager.

Emanuele
Se pensi di essere troppo piccolo per fare la differenza, prova a dormire con una zanzara -- Dalai Lama

Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

Re: Xorg e porta 6000

Messaggio da Ansa89 »

spina ha scritto:Dipende da cosa usi per far partire il server X. Se sei in init3 ed usi startx guarda il suo man per capire come esegue il server X. Ma molto probabilmente sei in init4 ed hai un desktop manager, allora devi vedere come si comporta il tuo desktop manager.

Emanuele
Sono in runlevel 3:

Codice: Seleziona tutto

#runlevel
N 3
Per avviare X uso "startx" e dentro startx non ci sono riferimenti diretti a "-nolisten tcp" (adesso dovrei spulciare ogni file incluso nello scrpit "startx").
Come desktop manager uso xfce.

Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

Re: Xorg e porta 6000

Messaggio da Ansa89 »

Ho guardato come viene cambiata la variabile "serverargs" durante l'esecuzione dello script, ma continuo a non trovare dove venga aggiunto il falg "-nolisten tcp" :? .

Avatar utente
targzeta
Iper Master
Iper Master
Messaggi: 6643
Iscritto il: gio 3 nov 2005, 14:05
Nome Cognome: Emanuele Tomasi
Slackware: 64-current
Kernel: latest stable
Desktop: IceWM
Località: Carpignano Sal. (LE) <-> Pisa

Re: Xorg e porta 6000

Messaggio da targzeta »

Posta l'output di:

Codice: Seleziona tutto

type startx
Emanuele

P.S. Non hai un file ~/.xinitrc vero?
Se pensi di essere troppo piccolo per fare la differenza, prova a dormire con una zanzara -- Dalai Lama

Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

Re: Xorg e porta 6000

Messaggio da Ansa89 »

Codice: Seleziona tutto

$type startx
startx is /usr/bin/startx
Ho un file "~/.xinitrc" copiato da "/etc/X11/xinit/xinitrc.xfce".

Avatar utente
targzeta
Iper Master
Iper Master
Messaggi: 6643
Iscritto il: gio 3 nov 2005, 14:05
Nome Cognome: Emanuele Tomasi
Slackware: 64-current
Kernel: latest stable
Desktop: IceWM
Località: Carpignano Sal. (LE) <-> Pisa

Re: Xorg e porta 6000

Messaggio da targzeta »

Scusami, ho sbagliato file. Posta l'output di:

Codice: Seleziona tutto

ls /usr/lib/X11/xinit/
purtroppo io non uso xfce e questo incide su come viene avviato il server X. Hai per caso un ~/.xserverrc? Era questo il file corretto, non xinitrc

Emanuele
Se pensi di essere troppo piccolo per fare la differenza, prova a dormire con una zanzara -- Dalai Lama

Avatar utente
targzeta
Iper Master
Iper Master
Messaggi: 6643
Iscritto il: gio 3 nov 2005, 14:05
Nome Cognome: Emanuele Tomasi
Slackware: 64-current
Kernel: latest stable
Desktop: IceWM
Località: Carpignano Sal. (LE) <-> Pisa

Re: Xorg e porta 6000

Messaggio da targzeta »

Per curiosità ho provato ad eseguire lo script startx e il server si è messo in ascolto della porta 6000. Io uso un alias apposta per evitare l'apertura della porta:

Codice: Seleziona tutto

startx is aliased to `xinit -- -nolisten tcp -auth ${HOME}/.Xauthority'
Prova ad eseguire direttamente xinit invece di passare per startx. Questo non dovrebbe cambiare nulla (nel senso che ti parte normalmente xfce e tutto il resto) ma la porta 6000 dovrebbe essere aperta. Se così fosse possiamo incolpare lo script startx.

Emanuele
Se pensi di essere troppo piccolo per fare la differenza, prova a dormire con una zanzara -- Dalai Lama

Avatar utente
Ansa89
Iper Master
Iper Master
Messaggi: 2703
Iscritto il: mer 29 ago 2007, 17:57
Nome Cognome: Stefano Ansaloni
Slackware: 14.2 64bit
Kernel: 4.9.61
Desktop: XFCE 4.12
Località: Modena

Re: Xorg e porta 6000

Messaggio da Ansa89 »

Non ho il file "~/.xserverrc", però

Codice: Seleziona tutto

$cat /etc/X11/xinit/xserverrc
#!/bin/sh

exec /usr/bin/X "$@"

Codice: Seleziona tutto

$ls /etc/X11/xinit
README.Xmodmap  xinitrc@  xinitrc.blackbox*
xinitrc.fluxbox  xinitrc.fvwm2*  xinitrc.icewm*
xinitrc.kde*  xinitrc.twm*  xinitrc.wmaker*
xinitrc.xfce@  xserverrc*

Rispondi