Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Cum era nivelul de trai cam din a...

probleme cu ochelarii

Impozite pe proprietati de anul v...

teava rezistenta panou apa calda
 Acces in Curte din Drum National

Sub mobila de bucatarie si sub fr...

Rezultat RMN

Numar circuite IPAT si prindere t...
 Pareri brgimportchina.ro - teapa ...

Lucruri inaintea vremurilor lor

Discuții despre TVR Sport HD

Cost abonament clinica privata
 Tremura toata, dar nu de la ro...

Renault Android

Recomandare bicicleta e-bike 20&#...

Bing-Content removal tool
 

xinitrc && xorg.conf

- - - - -
  • Please log in to reply
5 replies to this topic

#1
sir.roko

sir.roko

    Member

  • Grup: Members
  • Posts: 343
  • Înscris: 20.09.2004
Am trecut de la Slack 9.1 la Slack 10.1 si am pus default window manager  xfce. Dar vreau sa pornesc kde-ul sa vad si eu cum arata. in 9.1 era simplu si schimbam o linie in xinitrc aici ... nush ce sa schimb :confuzzled:
#!/bin/sh

# fix broken $UID on some system...
if test "x$UID" = "x"; then
	UID=`id -u`
fi

# create temp file for X resources
if [ -x /usr/bin/tempfile ]; then
  XRESOURCES="$(/usr/bin/tempfile -p xrdb-)"
elif [ -x /usr/bin/mcookie ]; then
  XRESOURCES="/tmp/xrdb-$(/usr/bin/mcookie)"
else
  XRESOURCES="/tmp/xrdb-$UID.$$"
fi

# Has to go prior to merging Xft.xrdb, as its the "Defaults" file
test -r $HOME/.Xdefaults && cat $HOME/.Xdefaults >> $XRESOURCES

# Check if the user wants to override the above defaults (set by
# mcs ui plugin)
if test "x$XDG_CONFIG_HOME" = "x"; then
  BASEDIR=$HOME/.config/xfce4
else
  BASEDIR=$XDG_CONFIG_HOME/xfce4
fi

if test -r $BASEDIR/Xft.xrdb; then
  cat $BASEDIR/Xft.xrdb >> $XRESOURCES
elif test -r $XFCE4HOME/Xft.xrdb; then
  mkdir -p $BASEDIR
  cp $XFCE4HOME/Xft.xrdb $BASEDIR/
  cat $BASEDIR/Xft.xrdb >> $XRESOURCES
else
  # Those are fallback settings, use the ui plugin to change it
  # or add your overrides to ~/.Xresources
  # Xft DPI: 96
  # Xft.hintstyle: hintnone/hintslight/hintmedium/hintfull
  # Xft hinting: 1/0
  cat >> $XRESOURCES << EOF
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintmedium
EOF
fi

# ~/.Xresources contains overrides to the above
test -r $HOME/.Xresources && cat $HOME/.Xresources >> $XRESOURCES

# load all X resources
xrdb -nocpp -merge $XRESOURCES
rm -f $XRESOURCES

# load local modmap
test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap

# Launch xscreensaver (if available), but only as non-root user
test $UID -gt 0 -a -z "$VNCSESSION" && xscreensaver -no-splash &

# Use ssh-agent if installed and not already running.  Run it separately
# so it populates the environment here, so we can clean it up later.
sshagent=`which ssh-agent`
kill_sshagent=0
if test -z "$SSH_AGENT_PID" -a "$sshagent" -a "x$sshagent" != "xno"; then
	eval `$sshagent -s`
	kill_sshagent=1
fi

# Use dbus-launch if installed.
if test x"$DBUS_SESSION_BUS_ADDRESS" = x""; then
	dbuslaunch=`which dbus-launch`
	if test x"$dbuslaunch" != x"" -a x"$dbuslaunch" != x"no"; then
  eval `$dbuslaunch --sh-syntax --exit-with-session`
	fi
fi

# Run xfce4-session if installed
xfcesm=`which xfce4-session`
#case "x$xfcesm" in
	x|xno*)
	;;
	*)
  $xfcesm

  if test $kill_sshagent -eq 1; then
 	 eval `$sshagent -k`
  fi
  exit 0
	;;
esac

# this is only necessary when running w/o xfce4-session
xsetroot -solid black -cursor_name watch

# or use old-fashioned startup script otherwise

xfce-mcs-manager
xfwm4 --daemon

# Start-up stuff from ~/Desktop/Autostart directory, if it exists
# (as it seems to be the new standard)
if test -d "$HOME/Desktop/Autostart"; then
  for i in `ls -1 -L ${HOME}/Desktop/Autostart/ 2>/dev/null`; do
    if test -x $HOME/Desktop/Autostart/$i; then
      $HOME/Desktop/Autostart/$i &
    fi
  done
fi

xftaskbar4&
xfdesktop&
xfcalendar &

panel=`which xfce4-panel`
case "x$panel" in
	x|xno*)
	;;
	*)
  $panel
  ret=$?
  while test $ret -ne 0; do
 	 xmessage -center -file - -timeout 20 -title Error <<EOF
A crash occured in the panel
Please report this to the [email protected] list
or on http://bugs.xfce.org
Meanwhile the panel will be restarted
EOF
 	 cat >&2 <<EOF
A crash occured in the panel
Please report this to the [email protected] list
or on http://bugs.xfce.org
Meanwhile the panel will be restarted
EOF
 	 $panel
 	 ret=$?
  done
	;;
esac

if test $kill_sshagent -eq 1; then
	eval `$sshagent -k`
fi

xsetroot -bg white -fg red  -solid black -cursor_name watch

Asa, s a doua problema e ca nu reusesc sa pun monitoru' pe 1280x1024
# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "My Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    HorizSync   31.5 - 50.0

#    HorizSync	30-64         # multisync
#    HorizSync	31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync	15-25, 30-50  # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    VertRefresh 40-90

EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

Section "Device"
    Identifier  "VESA Framebuffer"
    Driver      "nvidia"
    #VideoRam    4096
    # Insert Clocks lines here if appropriate
EndSection

# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
    Identifier  "Screen 1"
    Device      "VESA Framebuffer"
    Monitor     "My Monitor"

# If your card can handle it, a higher default color depth (like 24 or 32)
# is highly recommended.

#   DefaultDepth 8
#   DefaultDepth 16
   DefaultDepth 24
#   DefaultDepth 32

# "1024x768" is also a conservative usable default resolution.  If you
# have a better monitor, feel free to try resolutions such as
# "1152x864", "1280x1024", "1600x1200", and "1800x1400" (or whatever your
# card/monitor can produce)

    Subsection "Display"
        Depth       8
        Modes "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes "1024x768" "800x600" "640x480"
    EndSubsection

EndSection

#
In cartea monitorului nu zice decat  
Horizontal 30 to 69 kHz
Verticat 50 to 120 Hz

si nu prea stiu ce sa modific .... am mai incercat .. dar fara succes
E cam lung postu' si sper sa nu va suparati ...
Multumesc.

#2
Crash

Crash

    Senior Member

  • Grup: Senior Members
  • Posts: 3,066
  • Înscris: 27.08.2002
Asa, s a doua problema e ca nu reusesc sa pun monitoru' pe 1280x1024

# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "My Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

   HorizSync   31.5 - 50.0 schimbi cu  30 - 69

#    HorizSync 30-64         # multisync
#    HorizSync 31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync 15-25, 30-50  # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

   VertRefresh 40-90 schimbi cu 50-120
EndSection
# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

Section "Device"
    Identifier  "VESA Framebuffer"
    Driver      "nvidia"
    #VideoRam    4096
    # Insert Clocks lines here if appropriate
EndSection

# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
    Identifier  "Screen 1"
    Device      "VESA Framebuffer"
    Monitor     "My Monitor"

# If your card can handle it, a higher default color depth (like 24 or 32)
# is highly recommended.

#   DefaultDepth 8
#   DefaultDepth 16
   DefaultDepth 24
#   DefaultDepth 32

# "1024x768" is also a conservative usable default resolution.  If you
# have a better monitor, feel free to try resolutions such as
# "1152x864", "1280x1024", "1600x1200", and "1800x1400" (or whatever your
# card/monitor can produce)

    Subsection "Display"
        Depth       8
        Modes "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes "1024x768" "800x600" "640x480"
    EndSubsection

EndSection

#

In cartea monitorului nu zice decat  
Horizontal 30 to 69 kHz
Verticat 50 to 120 Hz

si nu prea stiu ce sa modific .... am mai incercat .. dar fara succes
E cam lung postu' si sper sa nu va suparati ...
Multumesc.

<{POST_SNAPBACK}>



vezi modificarile de mai sus cu albastru si rosu...iar pt. prima problema executi /etc/rc.d/rc.4

Edited by Crash, 12 March 2005 - 09:05.


#3
sir.roko

sir.roko

    Member

  • Grup: Members
  • Posts: 343
  • Înscris: 20.09.2004
Exact asa am pus si eu la monitor, dar cand pun si rezolutia de 1280x1024 ... trece pe 800x600 .. si nu stiu de ce ...
Si mersi pentru rc.4 :)

#4
Crash

Crash

    Senior Member

  • Grup: Senior Members
  • Posts: 3,066
  • Înscris: 27.08.2002
la linia HorizSync 31.5 - 50.0 schimbi cu 30 - 69 (taie spatiile sa arate asa 30-69)
eventual sa dai si cu ctrl > alt > +(sau - )

#5
cianura

cianura

    Senior Member

  • Grup: Senior Members
  • Posts: 2,754
  • Înscris: 19.01.2004

sir.roko, on Mar 12 2005, 07:48, said:

Am trecut de la Slack 9.1 la Slack 10.1 si am pus default window manager  xfce. Dar vreau sa pornesc kde-ul sa vad si eu cum arata. in 9.1 era simplu si schimbam o linie in xinitrc aici ... nush ce sa schimb :confuzzled:

<{POST_SNAPBACK}>

1) rulezi la consola: /opt/kde/startkde

sau

2) ca root: pkgtool -> choose slack install script to run again -> marchezi xwmconfig (choose default window manager for X) -> xinitrc.kde -> OK

sir.roko, on Mar 12 2005, 07:48, said:

Asa, s a doua problema e ca nu reusesc sa pun monitoru' pe 1280x1024

<{POST_SNAPBACK}>

Modifici urmatoarele variabile din xorg.conf la valorile care-s date mai jos

    HorizSync   31.5 - 69
    VertRefresh 50-120

    Subsection "Display"
        Depth       24
        Modes "1280x1024" "1024x768" "800x600"
    EndSubsection

Similar pt Depth de 32, 16, 8 etc....

#6
sir.roko

sir.roko

    Member

  • Grup: Members
  • Posts: 343
  • Înscris: 20.09.2004
ok, multumesc mult, a mers cum a zis crash ... nu vreau kde sa fie default. Multumesc mult si tie cianura  :coolspeak:

Anunturi

Neurochirurgie minim invazivă Neurochirurgie minim invazivă

"Primum non nocere" este ideea ce a deschis drumul medicinei spre minim invaziv.

Avansul tehnologic extraordinar din ultimele decenii a permis dezvoltarea tuturor domeniilor medicinei. Microscopul operator, neuronavigația, tehnicile anestezice avansate permit intervenții chirurgicale tot mai precise, tot mai sigure. Neurochirurgia minim invazivă, sau prin "gaura cheii", oferă pacienților posibilitatea de a se opera cu riscuri minime, fie ele neurologice, infecțioase, medicale sau estetice.

www.neurohope.ro

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate