9 Aralık 2014 Salı

only ssl apache2 gentoo

merhabalar
 apache de sitenizin sadece  https ile goruntulenmesini istiyorsaniz yapmaniz gereken sadece asagidaki yesil alani domain inizin conf dosyasina eklemektir






<IfDefine SSL>
<IfDefine SSL_DEFAULT_VHOST>
<IfModule ssl_module>

<VirtualHost *:80>
        ServerName gentootr.info
        Redirect / https://gentootr.info/
</VirtualHost>


<VirtualHost 192.168.1.3:443>

     ServerAdmin webmaster@omersaruhan.com
        ServerName www.gentootr.info
        ServerAlias gentootr.info
  DirectoryIndex index.html index.htm index.php
  DocumentRoot /var/www/localhost/htdocs/gentootr.info
    SSLEngine on
        SSLCertificateFile /etc/apache2/ssl/gentootr.info.crt
        SSLCertificateKeyFile /etc/apache2/ssl/gentootr.info.key
       SSLOptions StrictRequire
    SSLProtocol ALL -SSLv2 -SSLv3
     SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128:AES256:HIGH:!RC4:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK
    SSLHonorCipherOrder On


  ErrorLog  /etc/apache2/log/gentootr.info/error.log
  CustomLog /etc/apache2/log/gentootr.info/access.log combined



   <Directory /var/www/localhost/htdocs/gentootr.info/>
      SSLRequireSSL
      Options FollowSymLinks
      AllowOverride all
      Order allow,deny
      Allow from all


   </Directory>
    <IfModule setenvif_module>
        BrowserMatch ".*MSIE.*" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
    </IfModule>

</VirtualHost>

















11 Kasım 2014 Salı

OpenDKIM gentoo ayarlari

merhabalar gentoo da opendkim ayarlarini ve bunu zone dosyaniza nasil atacaksiniz onu anlatacagim sizlere
ornek domain omersaruhan.com   olarak belirlenmistir kendi domain adinizla degistirirsiniz
oncelikle


#emerge -va opendkim
opendkim i yukleriz
sonra 
#cd /etc/opendkim  
== dizinine gideriz 
#opendkim-genkey -r -s myselector -d omersaruhan.com
komutunu veririrz ve 
/etc/opendkim   dizini altinda myselector.private ve myselector.txt adinda iki dosya olusur









bu dosyalardan myselector.txt icinde sizin domain adinizin dkim key i ve o key i, yani  domain in zone dosyasina yerlestireceginizin sekli bulunmaktadir
SU SEKILDE BIR TEXT DOSYASI
myselector._domainkey    IN    TXT    ( "v=DKIM1; k=rsa; s=email; "
      "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC1/JXCbUEtbvDo5YvsqWFv2HXDdM00hjBdCBQK41UeT/ygUnZgTwObYWthsLQudyPsrvbZxx8qblZwFh27z02RzHDA1PXJKkNBg8xI5e6kLgKnJza5/uf/P2aLaNxQqwYb1DNDU5XIcyMmys3vo+qo2LacWeuPlVXcqPcWOZ264wIDAQAB" )  ; ----- DKIM key myselector for omersaruhan.com

parentez isaretlerini ve sondaki aciklamayi silip asagidaki resimdeki gibi yerlestiriyoruz .

 bu text i asagidaki sekilde domain imizin zone dosyasina ekliyoruz
omersaruhan.com.hosts dosyasindaki hali su sekilde

 sonu " isareti ile bitmekte
daha sonra  /etc/opendkim/opendkim.conf ayarlari
 olusturdugunuz dkim key ini opendkim.conf dosyasinda keyfile degerinde gostermelisiniz
 KeyFile            /etc/opendkim/myselector.private
 altta /etc/opendkim/opendkim.conf dosyasinin ornegi bulunmakta
 daha sonrada
#/etc/init.d/opendkim start
diyerek opendkim i baslatirsiniz 
otomatik baslamasi icinde 
#rc-update add opendkim default 
bu kadarcik
klavyem "us" oldugu icin turkce karakterler yok kusura bakmayin ,
anlatim en acemi duzey icin anlatilmistir ustatlarin affina sigindik :)
    yararli olmasi dilegiyle 
 




10 Kasım 2014 Pazartesi

/usr/libexec/webmin/acl/acl-lib.pl line 4 gentoo

merhabalar

ne oldu ise anlamadim baktim webmin calismamaya basladi ozellikle nginx i kullanmaya basladim bi ara baktim webmin yok
yeniden yukledim ve su hatayi verdi
/usr/libexec/webmin/acl/acl-lib.pl line 4 yinede salismadi , calismasi icin
  yapmaniz gerekenler  sirayla
1>emerge --config webmin  >enter
2>3            >enter
3>y             >enter
4>/etc.init.d/webmin restart    > enter
bu kadar sonra da
https olmadan
http://localhost:10000/    > giris yapmak











Yararli olmasi dilegiyle .



6 Kasım 2014 Perşembe

fluxbox gentoo menu dosyam

xfce4 den sonra daha az kaynak tuketimi dolayisiyla fluxbox a gecmis bulunmaktayi e bir gentoo kullanicisi olarak sistem kafamiza gore dizayn edilmeli buda benim fluxbox configurasyon um
menu haricindeki tum ayarlar default dur
##notlar##
dosyalari buradan indirebilirsiniz
https://drive.google.com/file/d/0B2kzbjgWKZFmQmZTVFBLLVh2cHc/view?usp=sharing

Ve buradan

https://www.dropbox.com/s/8sw4w3fz9m4kmp3/fluxbox-icon.tar.gz?dl=0

dosyayi indirin ve /home/kullaniciadi/.fluxbox/   dizininde acin

icon klasoru /home/kullaniciadi/.fluxbox/icon   ==seklinde olmali

buda menuyu duzenlemek icin kullandigim program 
 http://sunet.dl.sourceforge.net/project/fluxmenu.berlios/fluxMenu-24.tar.gz
   umarim seversiniz Tesekkurler
###ekran goruntuleri####





#####menu###

[begin] (Fluxbox)
    [exec] (terminal) {xfce4-terminal} </home/piyanist/.fluxbox/icons/gnome-terminal.png>
    [exec] (firefox) {firefox-bin} </home/piyanist/.fluxbox/icons/firefox-bin.png>
    [exec] (thunar) {thunar} </home/piyanist/.fluxbox/icons/file-manager.png>
    [submenu] (accessories >>) </home/piyanist/.fluxbox/icons/ghex.png>
        [exec] (xfce4-screenshooter) {xfce4-screenshooter} </home/piyanist/.fluxbox/icons/windows-manager.png>
        [exec] ( mb-applet-clock) { mb-applet-clock} </home/piyanist/.fluxbox/icons/clock.png>
        [exec] (mb-applet-menu-launcher) {mb-applet-menu-launcher} </home/piyanist/.fluxbox/icons/mb-applet-menu-launcher.png>
        [exec] (xfce4-appfinder) {xfce4-appfinder} </home/piyanist/.fluxbox/icons/xfce4-appfinder.png>
        [exec] (file-roller) {file-roller} </home/piyanist/.fluxbox/icons/file-roller.png>
        [exec] (clipman) {xfce4-clipman} </home/piyanist/.fluxbox/icons/clipman.png>
        [exec] (leafpad) {leafpad} </home/piyanist/.fluxbox/icons/leafpad.png>
        [exec] (gimp) {gimp}
    [end]
    [submenu] (Dovelepier >>) </home/piyanist/.fluxbox/icons/development.png>
        [exec] (sandbox) {sandbox} </home/piyanist/.fluxbox/icons/monodevelop.png>
        [exec] (cmake) {cmake} </home/piyanist/.fluxbox/icons/CMakeSetup32.png>
        [exec] (doxywizard) {doxywizard} </home/piyanist/.fluxbox/icons/doxywizard.png>
        [exec] (pgadmin3) {pgadmin3} </home/piyanist/.fluxbox/icons/pgadmin3.png>
        [exec] (qtcreator) {qtcreator} </home/piyanist/.fluxbox/icons/qjackctl.png>
        [exec] (designer ) {designer } </home/piyanist/.fluxbox/icons/designer.png>
        [exec] (leafpad) {leafpad} </home/piyanist/.fluxbox/icons/leafpad.png>
        [exec] (bluefish) {bluefish} </home/piyanist/.fluxbox/icons/bluefish.png>
        [exec] (nano) {Eterm -e nano}
    [end]
    [submenu] (Graphics >>) </home/piyanist/.fluxbox/icons/grafikk.png>
        [exec] (ristretto) {ristretto} </home/piyanist/.fluxbox/icons/ristretto.png>
        [exec] (gpicview) {gpicview} </home/piyanist/.fluxbox/icons/gpicview.png>
        [exec] (gimp) {gimp} </home/piyanist/.fluxbox/icons/gimp.png>
        [exec] (scantailor) {scantailor} </home/piyanist/.fluxbox/icons/scantailor.png>
    [end]
    [submenu] (Internet>>) </home/piyanist/.fluxbox/icons/midori.png>
        [exec] (firefox-bin) {firefox-bin} </home/piyanist/.fluxbox/icons/firefox-bin.png>
        [exec] (google-chrome-stable) {google-chrome-stable} </home/piyanist/.fluxbox/icons/google-chrome.png>
        [exec] (thunderbird) {thunderbird-bin} </home/piyanist/.fluxbox/icons/thunderbird.png>
        [exec] (httrack) {httrack} </home/piyanist/.fluxbox/icons/httrack.xpm>
        [exec] (transmission) {transmission} </home/piyanist/.fluxbox/icons/transmission.png>
        [exec] (hexchat) {hexchat} </home/piyanist/.fluxbox/icons/im-msn.png>
        [exec] (links-graphic) {links -driver x fluxbox.org} </home/piyanist/.fluxbox/icons/links.png>
        [exec] (links) {xfce4-terminal -e links google.com} </home/piyanist/.fluxbox/icons/links.png>
        [exec] (znmap) {xnmap} </home/piyanist/.fluxbox/icons/nmap-logo-64.png>
        [exec] (vncviewer) {vncviewer} </home/piyanist/.fluxbox/icons/vncviewer.png>
        [exec] (nmapfe) {nmapfe} </home/piyanist/.fluxbox/icons/nmap-logo-64.png>
        [submenu] (Mail)
            [exec] (mutt) {xfce4-terminal -e mutt} </home/piyanist/.fluxbox/icons/mail-outbox.png>
        [end]
    [end]
    [submenu] (Multimedia >>) </home/piyanist/.fluxbox/icons/gnome-cd.png>
        [exec] (guvcview) {guvcview} </home/piyanist/.fluxbox/icons/gucciview.png>
        [exec] (brasero) {brasero} </home/piyanist/.fluxbox/icons/brasero.png>
        [exec] (gtk-recordMyDesktop) {gtk-recordMyDesktop} </home/piyanist/.fluxbox/icons/gtk-recordmydesktop.png>
        [exec] (cheese) {cheese} </home/piyanist/.fluxbox/icons/cheese.png>
        [exec] (xfce4-mixer) {xfce4-mixer} </home/piyanist/.fluxbox/icons/minisys.png>
        [exec] (smplayer) {smplayer} </home/piyanist/.fluxbox/icons/mplayer.png>
        [exec] (vlc) {vlc} </home/piyanist/.fluxbox/icons/vlc.png>
        [exec] (alsamixer) {xfce4-terminal -e alsamixer} </home/piyanist/.fluxbox/icons/multimedia.png>
        [exec] (xawtv) {xawtv}
        [submenu] (Video)
            [submenu] (X-utils)
                [exec] (Reload .Xdefaults) {xrdb -load $HOME/.Xdefaults}
            [end]
        [end]
    [end]
    [submenu] (Office >>) </home/piyanist/.fluxbox/icons/office.png>
        [exec] (thunderbird-bin) {thunderbird-bin} </home/piyanist/.fluxbox/icons/thunderbird.png>
    [end]
    [submenu] (System Tools >>) </home/piyanist/.fluxbox/icons/tools.png>
        [exec] (VirtualBox) {VirtualBox} </home/piyanist/.fluxbox/icons/virtualbox.png>
        [exec] (xfce4-taskmanager) {xfce4-taskmanager} </home/piyanist/.fluxbox/icons/taskmanager.png>
        [exec] (lxtask) {lxtask} </home/piyanist/.fluxbox/icons/lxtask.png>
        [exec] (xfce4-terminal) {xfce4-terminal} </home/piyanist/.fluxbox/icons/gnome-terminal.png>
        [exec] (top) {xfce4-terminal -e top} </home/piyanist/.fluxbox/icons/top-monitor.png>
        [exec] (lxterminal) {lxterminal} </home/piyanist/.fluxbox/icons/lxterminal.png>
        [exec] (pcmanfm) {pcmanfm} </home/piyanist/.fluxbox/icons/folder-copy.png>
        [exec] (thunar) {thunar} </home/piyanist/.fluxbox/icons/file-manager.png>
        [exec] (htop) {xfce4-terminal -e htop} </home/piyanist/.fluxbox/icons/htop.png>
    [end]
    [submenu] (Fluxbox menu) </home/piyanist/.fluxbox/icons/games-solve.png>
        [config] (Configure) </home/piyanist/.fluxbox/icons/configure.png>
        [submenu] (Styles) </home/piyanist/.fluxbox/icons/stley.png>
            [include] (/usr/share/fluxbox/menu.d/styles/)
        [end]
        [workspaces] (Workspace List)
        [submenu] (Tools) </home/piyanist/.fluxbox/icons/fluxbox-tools.png>
            [exec] (Fluxbox panel) {fbpanel}
            [exec] (Window name) {xprop WM_CLASS|cut -d \" -f 2|gxmessage -file - -center}
            [exec] (Run) {fbrun}
            [exec] (Regen Menu) {fluxbox-generate_menu}
        [end]
        [submenu] (Window Managers) </home/piyanist/.fluxbox/icons/fluxbox-windows manager.png>
            [restart] (openbox) {openbox}
            [restart] (xfce4) {startxfce4}
        [end]
        [commanddialog] (Fluxbox Command) </home/piyanist/.fluxbox/icons/orca.png>
        [reconfig] (Reload config) </home/piyanist/.fluxbox/icons/view-refresh.png>
        [restart] (Restart) </home/piyanist/.fluxbox/icons/xfsm-reboot.png>
        [exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) | gxmessage -file - -center} </home/piyanist/.fluxbox/icons/about.png>
        [separator] (--------)
        [exit] (Exit) </home/piyanist/.fluxbox/icons/system-shutdown.png>
    [end]
[end]
#######


5 Kasım 2014 Çarşamba

WARNING: [pool www] pm.start_servers is not set. It's been set to gentoo

merhaba oncelikle
gentoo da yasadigim sorunlari ve cozumu burada paylasmaya devam ediyorum
en son yasadigim ve cozumunu buldugum sorun
php-fpm deki alttaki uyari

 /etc/init.d/php-fpm start
 WARNING: [pool www] pm.start_servers is not set. It's been set to  
 


Sorun un ana kaynagi
/etc/php/fpm-php5.4/php-fpm.conf    dosyasi tabi bendeki surum 5.4 sizdeki kacsa

Dosyami asagida oldugu gibi atiyorum ve duzelttigim yerleri yesil renk ile gosteriyorum



;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;

; All relative paths in this configuration file are relative to PHP's install
; prefix (/usr/lib/php5.3). This prefix can be dynamicaly changed by using the
; '-p' argument from the command line.

; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
; file.
; Relative path can also be used. They will be prefixed by:
;  - the global prefix if it's been set (-p arguement)
;  - /usr/lib/php5.3 otherwise
;include=/etc/php/fpm-php5.3/fpm.d/*.conf

;;;;;;;;;;;;;;;;;;
; Global Options ;
;;;;;;;;;;;;;;;;;;

[global]
; Pid file
; Note: the default prefix is /var/lib
; Default Value: none
; Warning: pid file is overriden by the Gentoo init script.
; FPM will refuse to start if you uncomment this settingi and make use of the
; init script.
; pid = /var/run/php-fpm.pid

; Error log file
; Note: the default prefix is /var/lib
; Default Value: log/php-fpm.log
error_log = /var/log/php-fpm.log

; Log level
; Possible Values: alert, error, warning, notice, debug
; Default Value: notice
;log_level = notice

; If this number of child processes exit with SIGSEGV or SIGBUS within the time
; interval set by emergency_restart_interval then FPM will restart. A value
; of '0' means 'Off'.
; Default Value: 0
;emergency_restart_threshold = 0

; Interval of time used by emergency_restart_interval to determine when
; a graceful restart will be initiated.  This can be useful to work around
; accidental corruptions in an accelerator's shared memory.
; Available Units: s(econds), m(inutes), h(ours), or d(ays)
; Default Unit: seconds
; Default Value: 0
;emergency_restart_interval = 0

; Time limit for child processes to wait for a reaction on signals from master.
; Available units: s(econds), m(inutes), h(ours), or d(ays)
; Default Unit: seconds
; Default Value: 0
;process_control_timeout = 0

; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
; Default Value: yes
;daemonize = yes

;;;;;;;;;;;;;;;;;;;;
; Pool Definitions ;
;;;;;;;;;;;;;;;;;;;;

; Multiple pools of child processes may be started with different listening
; ports and different management options.  The name of the pool will be
; used in logs and stats. There is no limitation on the number of pools which
; FPM can handle. Your system will tell you anyway :)

; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]

; Per pool prefix
; It only applies on the following directives:
; - 'slowlog'
; - 'listen' (unixsocket)
; - 'chroot'
; - 'chdir'
; - 'php_values'
; - 'php_admin_values'
; When not set, the global prefix (or /usr/lib/php5.3) applies instead.
; Note: This directive can also be relative to the global prefix.
; Default Value: none
;prefix = /path/to/pools/$pool

; The address on which to accept FastCGI requests.
; Valid syntaxes are:
;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific address on
;                            a specific port;
;   'port'                 - to listen on a TCP socket to all addresses on a
;                            specific port;
;   '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen =/run/php-fpm.socket

; Set listen(2) backlog. A value of '-1' means unlimited.
; Default Value: 128 (-1 on FreeBSD and OpenBSD)
;listen.backlog = -1

; List of ipv4 addresses of FastCGI clients which are allowed to connect.
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
; must be separated by a comma. If this value is left blank, connections will be
; accepted from any ip address.
; Default Value: any
;listen.allowed_clients = 127.0.0.1

; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
;                 mode is set to 0666
listen.owner = nginx
;listen.group = nobody
;listen.mode = 0666

; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
;       will be used.
user = nginx
group = nginx


; Choose how the process manager will control the number of child processes.
; Possible Values:
;   static  - a fixed number (pm.max_children) of child processes;
;   dynamic - the number of child processes are set dynamically based on the
;             following directives:
;             pm.max_children      - the maximum number of children that can
;                                    be alive at the same time.
;             pm.start_servers     - the number of children created on startup.
;             pm.min_spare_servers - the minimum number of children in 'idle'
;                                    state (waiting to process). If the number
;                                    of 'idle' processes is less than this
;                                    number then some children will be created.
;             pm.max_spare_servers - the maximum number of children in 'idle'
;                                    state (waiting to process). If the number
;                                    of 'idle' processes is greater than this
;                                    number then some children will be killed.
; Note: This value is mandatory.
pm = dynamic

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes to be created when pm is set to 'dynamic'.
; This value sets the limit on the number of simultaneous requests that will be
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
; CGI.
; Note: Used when pm is set to either 'static' or 'dynamic'
; Note: This value is mandatory.
pm.max_children = 50

; The number of child processes created on startup.
; Note: Used only when pm is set to 'dynamic'
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
pm.start_servers = 20

; The desired minimum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.min_spare_servers = 5

; The desired maximum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = 35

; The number of requests each child process should execute before respawning.
; This can be useful to work around memory leaks in 3rd party libraries. For
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
; Default Value: 0
;pm.max_requests = 500

; The URI to view the FPM status page. If this value is not set, no URI will be
; recognized as a status page. By default, the status page shows the following
; information:
;   accepted conn        - the number of request accepted by the pool;
;   pool                 - the name of the pool;
;   process manager      - static or dynamic;
;   idle processes       - the number of idle processes;
;   active processes     - the number of active processes;
;   total processes      - the number of idle + active processes.
;   max children reached - number of times, the process limit has been reached,
;                          when pm tries to start more children (works only for
;                          pm 'dynamic')
; The values of 'idle processes', 'active processes' and 'total processes' are
; updated each second. The value of 'accepted conn' is updated in real time.
; Example output:
;   accepted conn:        12073
;   pool:                 www
;   process manager:      static
;   idle processes:       35
;   active processes:     65
;   total processes:      100
;   max children reached: 1
; By default the status page output is formatted as text/plain. Passing either
; 'html' or 'json' as a query string will return the corresponding output
; syntax. Example:
;   http://www.foo.bar/status
;   http://www.foo.bar/status?json
;   http://www.foo.bar/status?html
; Note: The value must start with a leading slash (/). The value can be
;       anything, but it may not be a good idea to use the .php extension or it
;       may conflict with a real PHP file.
; Default Value: not set
;pm.status_path = /status

; The ping URI to call the monitoring page of FPM. If this value is not set, no
; URI will be recognized as a ping page. This could be used to test from outside
; that FPM is alive and responding, or to
; - create a graph of FPM availability (rrd or such);
; - remove a server from a group if it is not responding (load balancing);
; - trigger alerts for the operating team (24/7).
; Note: The value must start with a leading slash (/). The value can be
;       anything, but it may not be a good idea to use the .php extension or it
;       may conflict with a real PHP file.
; Default Value: not set
;ping.path = /ping

; This directive may be used to customize the response of a ping request. The
; response is formatted as text/plain with a 200 response code.
; Default Value: pong
;ping.response = pong

; The timeout for serving a single request after which the worker process will
; be killed. This option should be used when the 'max_execution_time' ini option
; does not stop script execution for some reason. A value of '0' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
;request_terminate_timeout = 0

; The timeout for serving a single request after which a PHP backtrace will be
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
;request_slowlog_timeout = 0

; The log file for slow requests
; Default Value: not set
; Note: slowlog is mandatory if request_slowlog_timeout is set
;slowlog = /var/log/php-fpm-$pool.log.slow

; Set open file descriptor rlimit.
; Default Value: system defined value
;rlimit_files = 1024

; Set max core size rlimit.
; Possible Values: 'unlimited' or an integer greater or equal to 0
; Default Value: system defined value
;rlimit_core = 0

; Chroot to this directory at the start. This value must be defined as an
; absolute path. When this value is not set, chroot is not used.
; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
; of its subdirectories. If the pool prefix is not set, the global prefix
; will be used instead.
; Note: chrooting is a great security feature and should be used whenever
;       possible. However, all PHP paths will be relative to the chroot
;       (error_log, sessions.save_path, ...).
; Default Value: not set
;chroot =

; Chdir to this directory at the start.
; Note: relative path can be used.
; Default Value: current directory or / when chroot
;chdir = /var/www

; Redirect worker stdout and stderr into main error log. If not set, stdout and
; stderr will be redirected to /dev/null according to FastCGI specs.
; Note: on highloaded environement, this can cause some delay in the page
; process time (several ms).
; Default Value: no
;catch_workers_output = yes

; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
; the current environment.
; Default Value: clean env
;env[HOSTNAME] = $HOSTNAME
;env[PATH] = /usr/local/bin:/usr/bin:/bin
;env[TMP] = /tmp
;env[TMPDIR] = /tmp
;env[TEMP] = /tmp

; Additional php.ini defines, specific to this pool of workers. These settings
; overwrite the values previously defined in the php.ini. The directives are the
; same as the PHP SAPI:
;   php_value/php_flag             - you can set classic ini defines which can
;                                    be overwritten from PHP call 'ini_set'.
;   php_admin_value/php_admin_flag - these directives won't be overwritten by
;                                     PHP call 'ini_set'
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.

; Defining 'extension' will load the corresponding shared extension from
; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
; overwrite previously defined php.ini values, but will append the new value
; instead.

; Note: path INI options can be relative and will be expanded with the prefix
; (pool, global or /usr/lib/php5.3)

; Default Value: nothing is defined by default except the values in php.ini and
;                specified at startup with the -d argument
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
;php_flag[display_errors] = off
;php_admin_value[error_log] = /var/log/fpm-php.www.log
;php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 32M

3 Kasım 2014 Pazartesi

Trying to reset soundcard gentoo

Gentoo da gecen CMI8338 chip setli kartimla "Trying to reset soundcard "
uyarisini aldim mplayer in log unda
ne brovserden nede normal medya okuyucusuyla her hngi medyayi oynatamaz oldum hatta nvidia gforce 7100 tumlesik ekran kartim dayanamayip kilitledi sistemimi
smpalyer i vlc i  actigimda sistemi kilitliyor firefox-bin ve google -chrome de tik yok oynatmiyor hic bir medyayi
alsa.confu duzelttim olmadi
alsa lib i yeniden kurdum olmadi defalarca restart yok dedim kernelden dir gene yok cunku 10 gun once derlenen kernel ile kulaniyordum karti  sorun yoktu
oysa kart miyadini doldurmus ve bozulmus megersem
yani kart artik bozuk oldu sizlere omur
    size acizane tavsiyem
Trying to reset soundcard
 No hardware mixing, inserting volume filter
 Write error: Broken pipe
uyarisi alirsaniz kartinizi live cd bir dagitimda yada windows da bir deneyin eger calisiyorsa mesakete devam  calismiyorsa bozulmus demektir
sayet baska sistemde calisiyorsa oncelikle
- /etc/modprobe.d/alsa.conf==duzenleyin genelde anakart yada degisikliginde meydana geliyor bu sorun
-rm /var/lib/alsa/*==tum dosyalari silin ve alsalib i de kaldirip tekrar yukleyin
-$arecord -l
ornek altta resimde oldugu gibi "card 0: NVidia [HDA NVidia], device 0"

 bu sefer kartin donanimkimligi ile komut verin ornek "recordmydesktop --device plughw:0,0 --freq 45000 --channels 2"
log u inceleyin bu komuttan sonra size gerekli ip ucunu verecektir cunku sadece sorunlu ses karti ni ilgilendiren komut verdiniz.

        yararli olmasi dilegiyle

22 Ekim 2014 Çarşamba

gentoo iptables-restore: line 27 failed

eger baslangicta boyle bir hata alirsaniz ;
 * Loading iptables state and starting firewall ...
iptables-restore: line 27 failed
yapmaniz gereken sadece
/var/lib/iptables/rules-save  dosyasinin icindekileri komple silmek 
DIKKAT edin sadece icindekileri kendisini degil

5 Ekim 2014 Pazar

Gentoo da mail.log problemi

gentoo da postfix mail.log da yazmama sorunun su sekilde hallediyouz

/etc/syslog-ng/syslog-ng.conf     dosyasinin sonuna asagidaki kodlari ekliyoruz





destination mail { file("/var/log/mail/mail.log"); };
filter mail { facility(mail); };
filter notmail { not facility(mail); };
log { source(src); filter(mail); destination(mail); };


normalde mail.log dosyasi /var/log/   dizinindedir
ben onu /var/log/mail   dizinine tasidim dikkatinize


ornek syslog-ng.conf   dosyam




@version: 3.4
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo,v 1.2 2013/06/02 01:18:35 mr_bones_ Exp $
#
# Syslog-ng default configuration file for Gentoo Linux

# https://bugs.gentoo.org/show_bug.cgi?id=426814
@include "scl.conf"

options { 
threaded(yes);
chain_hostnames(no); 

# The default action of syslog-ng is to log a STATS line
# to the file every 10 minutes.  That's pretty ugly after a while.
# Change it to every 12 hours so you get a nice daily update of
# how many messages syslog-ng missed (0).
stats_freq(43200); 
# The default action of syslog-ng is to log a MARK line
# to the file every 20 minutes.  That's seems high for most
# people so turn it down to once an hour.  Set it to zero
# if you don't want the functionality at all.
mark_freq(3600); 
};

source src { system(); internal(); };

destination messages { file("/var/log/messages"); };

# By default messages are logged to tty12...
destination console_all { file("/dev/tty12"); };
# ...if you intend to use /dev/console for programs like xconsole
# you can comment out the destination line above that references /dev/tty12
# and uncomment the line below.
#destination console_all { file("/dev/console"); };

log { source(src); destination(messages); };
log { source(src); destination(console_all); };


destination mail { file("/var/log/mail/mail.log"); };
filter mail { facility(mail); };
filter notmail { not facility(mail); };
log { source(src); filter(mail); destination(mail); };

17 Ağustos 2014 Pazar

You don't have permission to access / on this server. gentoo apache


You don't have permission to access / on this server.

Hatasi aliyorsaniz eger
gentoo da ve  Apache/2.2.27 (Unix) yuklu ise
 benim gibi uzun vakit harcamaniza gerek yok
yapmaniz gereken
/etc/apache2/modules.d/   dizini altindaki  00_default_settings.conf dosyasinda kucuk bir degisiklik

Deny from all  ===>    Allow from all

#nano /etc/apache2/modules.d/00_default_settings.conf

Normal de dosya  bu sekilde dir

##########################################################################
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

# We configure the "default" to be a very restrictive set of features.
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Options can be used for the
# same purpose, but it is much slower.
#
# Do not change this entry unless you know what you are doing.
<IfModule dir_module>
DirectoryIndex index.html index.html.var
</IfModule>

# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
<FilesMatch "^\.ht">
Order allow,deny
Allow from all
</FilesMatch>

# vim: ts=4 filetype=apache
#########################################################################

Bu sekilde ki duzenleme isinizi gorecektir



+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

# We configure the "default" to be a very restrictive set of features.
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Options can be used for the
# same purpose, but it is much slower.
#
# Do not change this entry unless you know what you are doing.
<IfModule dir_module>
DirectoryIndex index.html index.html.var
</IfModule>

# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
<FilesMatch "^\.ht">
Order allow,deny
Allow from all
</FilesMatch>

# vim: ts=4 filetype=apache


23 Haziran 2014 Pazartesi

gentoo notlar 2

zamanla birseyler ogreniyorsun ve zamanla frkli konulara daliyorsun kendi capimda notlar alirim onemli buldugum ve unutunca tekrar zaman kaybedecegim luzumlu konular bunlari paylasiyorum tekrardan


app-emulation/spice-protocol   sanal makinenin acilmasi icin ihtiyac
app-emulation/virt-viewer      virt managerin amcasinin oglu
app-emulation/virt-manager     sanal makineleri yonetme qemu xen lvc gibi
app-emulation/libvirt virt-managerin calismasi icin lazim
app-emulation/lxc bir tur sanallastirma
app-emulation/xen       virtualisazyon
app-emulation/qemu sanallastirmanin babasi
sys-apps/usermode-utilities     ag arayuzunu net.br0 yapmaya yarar
sys-kernel/openvz-sources        sanallastirma
app-emulation/spice sanal makinenin acilmasi icin isteniyor
sys-auth/polkit   sanal mak de acilisi sagliyor dbus tarzi
net-libs/gtk-vnc   vnc
net-misc/spice-gtk               spicnin gru su
sys-kernel/openvz-sources        openvz nin kerneli .derleyemedim ama

   sanal ag karti interface olusturma nami deger brctl
brctl addbr xenbr0
ifconfig xenbr0 up
ifconfig xenbr0
route
ifconfig xenbr0 192.168.1.80
route add default gw 192.168.1.1 xenbr0
brctl addif xenbr0 eth0
brctl show
ping -c 3 -I xenbr0 192.168.1.1
ifconfig xenbr0


###################xen notlarim######################
sanal makine kapatma
xl destroy pyvps    pyvps yerine domain id i de yazabilirsiniz

-pci donanimini ekleme xen wm de
config dosyasina #lspci komutu ile bakilir bastaki numara asagidaki gibi yazilir
pci=['01:06.0','01:00.1','00:12.0','00:12.2']



   udev in 201 surumunden sonra ag kartlarina artik mac adresine gore isim veriyor
ornegin net.eth0 yerine  enps04 gibi
   eger yok ben eth0 i sevitorym diyorsaniz asagidaki gibi yapin

sys-apps/biosdevname  yuklenir
/etc/udev/rules.d/70-persistent-net.rules
asagidaki eklenir

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:d0:62:41$
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:08:A1:26:A4$

# do not edit this file, it will be overwritten on update
yadaasagidaki kodu direkt    "/etc/udev/rules.d/70-persistent-net.rules"   icine atin

ACTION=="remove", GOTO="net_end"
SUBSYSTEM!="net", GOTO="net_end"

IMPORT{builtin}="net_id"

SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=$
SUBSYSTEMS=="usb", GOTO="net_end"

SUBSYSTEMS=="pci", ENV{ID_BUS}="pci", ENV{ID_VENDOR_ID}="$attr{vendor}", ENV{ID$
SUBSYSTEMS=="pci", IMPORT{builtin}="hwdb --subsystem=pci"

LABEL="net_end"




####################################################
asagidaki notlar hayat kurtarir 



 port acmak icin 
nano /var/lib/iptables/rules-save 
[0:0] -A INPUT -i enp0s10 -p tcp -m tcp --dport 80 -j ACCEPT   
nin gorutusu


buda konsoldan port acmak icin ip tables ile   not benim ag kartinin adi enp0s10   siz oraya eth0   yazin 
#iptables -A INPUT -p TCP --dport 80 -i enp0s10 -j ACCEPT

iptables in cok kiymetli ag komutlari hepsi de ise yarar
  

netstat -lnptu
grep -w 631 /etc/services
 netstat -a | egrep 'Proto|LISTEN'
netstat --listen
netstat -vaun
iptables --line-numbers -n -L
iptables -vnL --line-numbers         ==upload ve downloadi da gorebilirsiniz
nmap -sT -O localhost     
nmap -A -T4 scanme.nmap.org


domain serve icin yuklenmesi gerekenler
net-dns/bind net-dns/bind-tools net-dns/dnssec-tools 



env-update && source /etc/profile
modulleri kernele yukleme
#make modules && make modules_install

klavyenin degistirildigi yer
nano /etc/conf.d/keymaps 

klavyenin yenisinin eklendigi yer
etc/locale.gen

virtual boxu kurmak icin kurdugum dosya
sys-devel/binutils-2.20.1-r1
  neti yeniden baslat
/etc/init.d/net.eth0 restart
  dhcpcd yeniden baslat
cat /var/run/dhcpcd-eth0.pid


make prepare komutunu calisti
genel guncelleme icin 

#emerge -pv -Dup world

xfce4 serisi ve kurulmali paketler
emerge -av ristretto xfce-base/xfconf xfce-base/libxfce4util xfce-base/xfdesktop xfce-base/xfce4-session xfce-base/xfce-utils xfce-base/xfce4-panel xfce-base/xfce4-settings
emerge media-gfx/qiv ristretto app-text/qpdfview x11-terms/tilda


kisayol frefoxc
exo-open --launch WebBrowser
google crome
$google-chrome-stable %U 

root dizinini kullaniciya aktif etmek icin 
#chmod +x /mnt/gentoo/*
tam yetki icin
#chmod 777 -R /var/www


yuklemenin duzgunlugune bakar bu komut

#ls -al /opt
apachenin ne zaman ve ne kadar surede derlendigini goserir
#genlop -u apache
Calculate merge time for Apache
apachenin ne kadar zamanda derlendigini gosteir
#genlop -f /var/log/emerge.log -t apache
ful eski yuklenenleri gosterir
#genlop -l

ntfs baglama 
#lowntfs-3g
#Example: ntfs-3g /dev/sda1 /mnt/windows

ext4 dosya sistemi oluturma
#mkfs.ext4 /dev/sda?

alsayi sabitlemek 
#alsactl store

   Turkce karakterleri gorme sorunu duzeltmesi
oncelikle /etc/locale.gen klasorune
tr_TR.UTF-8 UTF-8
  satiri eklenir sonra ==>
#locale-gen &>/dev/null
#locale-gen     ===> komutlari verilir
font secimi
#eselect fontconfig enable 10-sub-pixel-rgb.conf
===>secilen sub-pixel metnboyutu 10
ayni anda birden fazla emerge 
#emerge -1 lxde-meta --jobs=3 
paketin sadece kendini bagimliliklar olmadan kurmak
#emerge --nodeps gnome-base/nautilus

wirelese baglanma
#ifconfig wlan0 up    =karti aktiflestirir
#iwlist wlan0 scan    =arama yapar
#iwconfig wlan0 essid "ORGAN NAKLI"       sifresize
#iwconfig wlan0 essid "ORGAN NAKLI" key 1234
#dhcpcd wlan0         =agkartina ip alinir


compizi zorla baslatma
$compiz --replace ccp --loose-binding

dns konsol komutu
# echo "nameserver 208.67.220.220" >> /etc/resolv.conf

   flv to mp3
$ffmpeg -i cevrilecekvideo.flv -f mp3 cevirecginismi.mp3 

    arama komutu 
#$ find / -name 'mer??_*'       
   burda merle baslayan hepsini bulur ??_* 
silersek sadece mer i arar

       3 paketi birden derlemek
#emerge -1 lxde-meta --jobs=3
eski surumu yukleme
emerge "<lxde-meta-1.2"

    yuklu tum paketleri gomemek
$equery list '*'


fat 32 format atmak icin
#sys-fs/dosfstools      yuklenir


    kernel 3.x.x  tan sonra otomatik modul yuklemee
#  /etc/conf.d/module    dosyasi icine 
#  modules="${modules} vboxdrv"           bu sekilde yazilir

 pencere ikon kapamalari kayboldugunda
=====> /home/.cache    klasoru silinir


herhangi bir klasorde isim arama komutu
#ls /boot/grub/ | grep xpm 
     yukaridaki komutta o klaorde ismi xpm olan yada uzantisi xpm olan lari listelr

consoldan resim formati ve goruntu dpp sini degistirme one #emerge imagemagick
$convert -resize 640x480 -colors 14 /home/piyanist/Pictures/matrix.png splash.xpm

  zip yapmak icin
$gzip splash.xpm
      kayip yada bozuk lari onarmak
#revdep-rebuild --library libpng14.so.14 -- --keep-going

mkdir komutunda ki ayrinti
#mkdir -p /mnt/My-Disk/{Media,Shared}
yukaridaki komut /mnt/My-Disk/===>dizininde
  Media ve Shared aadnda iki klasor acar


     vnstat in trafiginin oldugu loglar 

/etc/cron.{hourly,daily,weekly,monthly},
/var/spool/cron/ and /var/spool/cron/lastrun/

cd romu yapmak icin 
#ln -s /dev/scd0 /dev/cdrom

gentoo da yeni modul ekleme sekli
dosya :   /etc/conf.d/modules
modules="${modules} vboxdrv"

linux cd kopyalama  if grisi of cikisi temsil eder
$dd if=/dev/sr0 of=/home/piyanist/minixp.iso
yazma araci . emerge -av dvd+rw-tools
First create the ISO image
# mkisofs -r -o /tmp/var-www-disk1.iso /var/www

Now use the growisofs command to write the ISO onto the DVD:
# growisofs -Z /dev/dvd=/tmp/var-www-disk1.iso

To append more data for same DVD:
# growisofs -M /dev/dvd /tmp/file.1

To format (erase) a DVD:
# dvd+rw-format -force /dev/dvd

x11 ekran kapanmasini ayarlama komutu
   islemi yapan program #xset
zamanlamayi #xset s 11       * saniye degridir

uuid bulma komutu
# ls -l /dev/disk/by-uuid/
#blkid
      hdd komutlari
# du -sh /usr/*  
alt dizininde ki klasorlerin boyutunu verir

hdd sicakligini kontrol eder

#hddtemp /dev/sda

slep komutu zamanlama slep komutu ile zamanlamayi ayarlarsin
sleep 10s=saniye m=dkika h=saat d=gun 5h 30m =5saat30dakika
$sleep 50s && mpg321 /home/piyanist/Music/muazzez-ersoy.mp3

gtk2-3 thema degistirme

$ rm -r ~/.config/gtk-3.0/
$ cp -r /usr/share/themes/Zukitwo/gtk-3.0/ ~/.config/  


buldozer fx cflagslarim

CFLAGS="-O2 -pipe -fomit-frame-pointer -march=btver1 -mtune=bdver1 -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx" 
CXFLAGS={CFLAGS} 
CHOST="x86_64-pc-linux-gnu" 
MAKEOPTS="-j9" 

kullanici iken konsoldan program acma komutu
$ su - -c /usr/bin/unetbootin

A3A4A5B6B6









gentoo php mysqli hatasi

eger bu hatayi alirsaniz

 The mysqli extension is missing. Please check your PHP configuration. 

yada php yapilandirmanizda mysqli modulu yok derse yapmaniz gereken 


"dev-php/PEAR-MDB2"  paketini mysqli USE bayraagi ile derlemek

#USE="mysqli" emerge  dev-php/PEAR-MDB2
 islem tamamdir 

Eger oraya ben mysql bayraginida eklerimdiyorsan php cgi i silmenizi istiyor zaten bize lazim olan mysqli modulu 



   omer saruhan

17 Nisan 2014 Perşembe

gentoo da alsamixer hatasi

Basima gelen su olay beni saatlerce ugrastirdi ve sonunda  halledebildim hemde o kadar kolay mis ki

hata su

$alsamixer  ==error code
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.27.2/work/alsa-lib-1.0.27.2/src/conf.c:3314:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.27.2/work/alsa-lib-1.0.27.2/src/control/control.c:953:(snd_ctl_open_noupdate) Invalid CTL default
cannot open mixer: No such file or directory

ve bu benzeri hatalar
hatalar alt da gosterilmistir

$alsamixer  ==error code
alsactl: set_controls:1482: snd_ctl_open error

alsactl: set_controls:1482: snd_ctl_open error: No such file or directory  

 snd_ctl_open_noupdate) Invalid CTL default

$aplay --list-devices

**** List of PLAYBACK Hardware Devices ****
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.27.2/work/alsa-lib-1.0.27.2/src/conf.c:3314:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.27.2/work/alsa-lib-1.0.27.2/src/control/control.c:953:(snd_ctl_open_noupdate) Invalid CTL hw:0
aplay: device_list:277: control open (0): No such file or directory


====> pulsh gui mixer control error code
GStreamer was unable to detect any sound devices. Some sound system specific GStreamer packages may be missing. It may also be a permissions problem.


çözüm =solution
alsa-lib i yukleyin
daha onceden USE"pulseaudio"  ile derlenmis olan media-plugins/alsa-plugins  silin
daha sonra alsa-plugins i USE"ffmpeg" ile tekrar derleyin

oncelikle komutlar

#emerge -av media-libs/alsa-lib

#emerge -av app-emulation/emul-linux-x86-soundlibs

#emerge -C media-plugins/alsa-plugins

#USE="ffmpeg" emerge -q media-plugins/alsa-plugins

bu kadar bnim gibi saatlerce nette aramaz ve saatlerce ugrasmaz siniz 
                                        











15 Nisan 2014 Salı

conky ve conkyrc

Bu da bnim  conkyrc  paylasmak istedim bayagi bir emek harcadim
   baska insanlarin paylastiklariyla olustu sonucta ben de yaptiklarim ve eklediklerimle baska bir conky sever e yardimci olmak isterim
    Sistemim ektanda gorundugu gibidir  bazen isemci cok yuk altina girince sacmalayabiliyor ama genelde guzeldir bana gore cunku bir cok  bilgiye ulasilabiliyor bunda ozellikle bar cok hosuma gitti ustelik her hangi bir lua ve script  kullanmaniza gerek yok direkt atip conkyrc i kullanabilirsiniz  alt kisimdaki sayilar color12345678 dir kafaniza gore renkleri duzenlyin diye biraktim , zaten fazla bir aiklamaya grek yok kuran biri hrseyini kafasina gore modifiye edeektir . ayrica sahsi duzenlemelerinizi gormek isterim acikcasi :)
   begenmeniz dilegi ile
   




Buda conkyrc









alignment top_right

background yes

border_width 1

####




#colors

color1 ff0000 #FFFF00 #color 1 - 8 is for gradual color change bars

color2 F9A90A #FFDD00

color3 ffff00 #FFBB00

color4 C0FF3E #FF9900 yesil

color5 00ffff #FF7700

color6 0A32F9 #FF5500

color7 FF00FF #FF3300

color8 ff3030 #FF1100

color9 F90A22 #445566 #grey unused bar segments use 444444 or 666666

color0 FBCEB1 #FF99FF #orange #green #red #FF9900 #highlighed text (main sections)




26 Kasım 2012 Pazartesi

Gentoo Linux Kurma Maceram

   Uzun bir aradan sonra yine hepinize merhabalar degerli insanoglu yaratilanlarin en sereflileri
simdi anlatacagim hikaye 3 yildir ask la kullandigim gentoo m dan yazdigim ve hala bir askla kullndigim gentoo nun hikyesidir 3 yil olmus ama hala dun gibi hatirlarim bu buyuk askin tanismasini ve kurulumunu
     uzunca arayislarimdan sonra kurmaya karar verdigim ve kuruumu bir efsane gibi buyutulen gentoo linux u kurmaya karar veriyorum once dokumanlari arastiriyorum internetten ve onu wiki tr cikiyor ama o da ne aman allahim kocammman bir yazi hayatta bitmez ve anlasilmasi cok zor ilkkez duydugum kavramlar hepsi boot kernel derleme . X gdm sda hda vs vs :)
     bakiniyorum ve sirf wiki dokumanini yazdirmak icin yazicima kartus bile aliyorum sonuctakurulumu bitirdigin sayfa sayisi 68 evet tam 68 sayfada kurulumu bitiriyosunuz wiki de
    basliyorum cd yazdirma ile ilk once minimal cd i deniyorum ve X ortmi olmadigi icin sonuc kara bir konsol ve sonuc perisan defalarca denemelerime ragmen olmadiysa daha sabit  diski bile formatlayamiyorum ve sonunda bunu wiki sayfasindan yapamayacagimi anliyorum ve basliyorum video arastirmalarima ama oda sonuc vermiyor cunku video izleyerek gentoo linux kuramazsiniz orda ceken sahis bir cok yerini atliyor
   kucuk bir ayrintiyi kacirmak bile acemi bir insan icin kurulumu bastan almak demek
   dedim ki elbet bunu kuculten bir aciklama vardir elbet aramlarima ragmen ve bunu da cw sitesinde buluyorum nihayetinde ve linkinide veriyorum sizlere
         iste size en kolay gentoo linux kurma linki
ve degerli kursat abimin de yardimlariyla basliyorum konsoldan biseyler yapmaya ve en nihayi sonuc artik kendi kullanici adimla konsolu acmayi basariyorum bu ne buyuk sevinctir anlatamam szilere tabi bu sonuca ulasmak icin tam 10 gunumu harcamis bulunmaktayim saka degil gercek cunku konsolun bilene oldugunu bilmeyen bir kullaniciyim nihayetinde
     yarida kesilmeyen kurulumlarmi yeniden oraya gelene kadar sarf edilen cabalarmi dersiniz bir suru mesaket yeniden stageyi ve portageyi indirmek acmak yerlestirmek make.conf u yeniden ayarlamak port snap lari kurmak ve isin en uyuz tarafi kerneli derlemek
    evet yanlis duymadiniz kerneli derlemek gentoo nun bu huyu vardir kernel derlemeyi bilmiyorsaniz gentoo  kurmayi unutun demiyorum :)
  ayni aciklamayi bir yrde okumustum  ``eger kernel dermeyi bilmiyorsaniz gentoo kurmayi denemeyin `` ne kadar yanlis bir cumle cogu kimse kerenl derlemeyi bilmez ama ogrenemez demek de degildir bu
     unutun demiyorum cunku gentoo da bu o kadar da zor degildir eger donanimdan biraz anliyorsaniz ve pc nizin donanimlarini biliyorsaniz cocuk oyuncagidir bu is
    hala konsoldayim ve X ortamini ayal ediyorum hararetle cunku kara ekrandan sikildim artik gercekten
10 gun olmus ve hala beceremiyorum kurulumu tamamlamayi ve bana en buyuk yardimi olan insan #gentoo-tr          irc.freenode.net kanalindaki gagu yu unutmamak lazim o ck degerli bir insandir ve tam bir linux u felsefesiyle yasayan bir insandir acemiliklerime hep sabirla yanasarak bana o kadar yardimi oldu ki anlatamam o degerli insanin yardimlari ile gentoo da x ortamina ulasiyorum once openbox u deniyoruz olmuyor defalarca wget paste :) ve nihayetinde basitm ayarlarla fluxbox u kurmayi basariyorum olleeey x ortamindayim artik yasasinn
   ve x ortami maceram basliyor hic durumuyum xorg.conf u da o zamanki ekran kartim goforce 6100 ile yapmayi basirnca beni daha kimse tutmaz ve hemen benim en cok sevdigim masa ustu yoneticisi hala da kullandigim xfce4  hemen kuruyorum ve benim o buyuk vaz gecilmez dunyam basliyor
      baslangicta bir cok acemi hatalariyla mucadele etmek zorunda kaliyorum ornegin yanlis USE bayraklariyla derlenen sistem ve zamanla arizalar cikarmaya basliyor size taki sizin donanimlariniza ve kullaniz tarziniza hitap eden use bayraklarini bulana kadar
    uzun zamanimi aliyor bunlar ve stabil bir sistemi kurmam bir ayimi aldigini soylesemde oreniyorum ve ustesinden geliyorum
   not gecmeden soylemek istedigim nokta ve ve ozellikle soyluyorum benim o kadar ugrasmamin tek sebebi vardi daha konsolu bilmezdimve konsolda cp yaa cd komutunu bile bilemeyen biri idim kuruluma basladigimda sifir dim yani linux sadece next next lerle kuran bir insan dim :)
    sonuc olarak sunlari soylemek istiyorum gentoo kurmak gorundugu ve anlatildigi kadar zor bisey degildir biraz donanim ve hafif linux mantigini temelini biliyorsniz cocuk oyunagidir
    suan kullandigim sistemi hdd dem bad sektor tamamen kurulum yapilamaz hale getirdigi icin yeni hdd mde ve yeni pc imde kurmak zorunda kaldigimsistemi kurmusum haziranin 8 de kurdugum bir sistem ve suan araliktayizilk gunku sistemden hicc bir farki yok inanin hic bir farki yok aradan gecen 6 ay indows kullansaydim 3 formatim olurdu kesinlikle . bir kere kurarsiniz ve inanin omur byu kullanirsiniz desemsize yeridir
   ki oyle suan hic bir yeni sistem kurmayi aklimdan bile gecirmiyorum o derece ta ki yeni bir pc alana dek :)
bir daha ki yazimda sizlere gentonun farklarini anlatacagim  gerek windoz dan ve diger linux dgitimlarindan
ve inaninki bir sistem ne kadar kullanici dostu ve donanim dostu olabilir o zaman fark edeceksiniz . uc kisisinizdir ve siki sikiya baglisinizdir biririne . gentoo-donanim-kullanici
    sevgilerimle omer saruhan

gentoo notlarim



emerge --color\=n -pv virtualbox-bin | wgetpaste    
emerge komutlarini icerir wget paste icin

find /lib/modules/tab tuþuna basýyoruz/ -type f -iname ‘*.o’ -or -iname ‘*.ko 

klavyenin degistirildigi yer
nano /etc/conf.d/keymaps 

klavyenin yenisinin eklendigi yer
etc/locale.gen

virtual boxu kurmak icin kurdugum dosya
sys-devel/binutils-2.20.1-r1
  neti yeniden baslat
/etc/init.d/net.eth0 restart
  dhcpcd yeniden baslat
cat /var/run/dhcpcd-eth0.pid


 make prepare komutunu calisti

genel guncelleme icin 

#emerge -pv -Dup world

xfce4 serisi
emerge -av xfce-base/xfconf xfce-base/libxfce4util xfce-base/xfdesktop xfce-base/xfce4-session xfce-base/xfce-utils xfce-base/xfce4-panel xfce-base/xfce4-settings


kisayol frefoxc
exo-open --launch WebBrowser
   

vbox un bana yuklememi soledikleri

# net-misc/bridge-utils
# sys-apps/usermode-utilities


yuklemenin duzgunlugune bakar bu komut

#ls -al /opt


ntfs baglama 
#lowntfs-3g
#Example: ntfs-3g /dev/sda1 /mnt/windows

ext4 dosya sistemi oluturma
#mkfs.ext4 /dev/sda?

alsayi sabitlemek 
#alsactl store

   Turkce karakterleri gorme sorunu duzeltmesi
oncelikle /etc/locale.gen klasorune
tr_TR.UTF-8 UTF-8
  satiri eklenir sonra ==>
#locale-gen &>/dev/null
#locale-gen     ===> komutlari verilir


ayni anda birden fazla emerge 
#emerge -1 lxde-meta --jobs=3 
paketin sadece kendini bagimliliklar olmadan kurmak
#emerge --nodeps gnome-base/nautilus

wirelese baglanma
#ifconfig wlan0 up    =karti aktiflestirir
#iwlist wlan0 scan    =arama yapar
#iwconfig wlan0 essid "ORGAN NAKLI"       sifresize
#iwconfig wlan0 essid "ORGAN NAKLI" key 1234
#dhcpcd wlan0         =agkartina ip alinir


compizi zorla baslatma
$compiz --replace ccp --loose-binding

dns konsol komutu
# echo "nameserver 208.67.220.220" >> /etc/resolv.conf

   flv to mp3
$ffmpeg -i cevrilecekvideo.flv -f mp3 cevirecginismi.mp3 

    arama komutu 
#$ find / -name 'mer??_*'       
   burda merle baslayan hepsini bulur ??_* 
silersek sadece mer i arar

       3 paketi birden derlemek
#emerge -1 lxde-meta --jobs=3


    yuklu tum paketleri gomemek
$equery list '*'


fat 32 format atmak icin
#sys-fs/dosfstools      yuklenir


    kernel 3.x.x  tan sonra otomatik modul yuklemee
#  /etc/conf.d/module    dosyasi icine 
#  modules="${modules} vboxdrv"           bu sekilde yazilir

 pencere ikon kapamalari kayboldugunda
=====> /home/.cache    klasoru silinir


herhangi bir klasorde isim arama komutu
#ls /boot/grub/ | grep xpm 
     yukaridaki komutta o klaorde ismi xpm olan yada uzantisi xpm olan lari listelr

consoldan resim formati ve goruntu dpp sini degistirme
$convert -resize 640x480 -colors 14 /home/piyanist/Pictures/matrix.png splash.xpm

  zip yapmak icin
$gzip splash.xpm
      kayip yada bozuk lari onarmak
#revdep-rebuild --library libpng14.so.14 -- --keep-going


     vnstat in trafiginin oldugu loglar 

/etc/cron.{hourly,daily,weekly,monthly},
/var/spool/cron/ and /var/spool/cron/lastrun/

cd romu yapmak icin 
#ln -s /dev/scd0 /dev/cdrom

gentoo da yeni modul ekleme sekli
dosya :   /etc/conf.d/modules
modules="${modules} vboxdrv"

linux cd kopyalama  if grisi of cikisi temsil eder
$dd if=/dev/sr0 of=/home/piyanist/minixp.iso
yazma araci . emerge -av dvd+rw-tools
First create the ISO image
# mkisofs -r -o /tmp/var-www-disk1.iso /var/www

Now use the growisofs command to write the ISO onto the DVD:
# growisofs -Z /dev/dvd=/tmp/var-www-disk1.iso

To append more data for same DVD:
# growisofs -M /dev/dvd /tmp/file.1

To format (erase) a DVD:
# dvd+rw-format -force /dev/dvd

x11 ekran kapanmasini ayarlama komutu
   islemi yapan program #xset
zamanlamayi #xset s 11       * saniye degridir

uuid bulma komutu
# ls -l /dev/disk/by-uuid/
#blkid

slep komutu zamanlama slep komutu ile zamanlamayi ayarlarsin
sleep 10s=saniye m=dkika h=saat d=gun 5h 30m =5saat30dakika
$sleep 50s && mpg321 /home/piyanist/Music/muazzez-ersoy.mp3

buldozer fx cflagslarim

CFLAGS="-O2 -pipe -fomit-frame-pointer -march=btver1 -mtune=bdver1 -mcx16 -msahf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx" 
CXFLAGS={CFLAGS} 
CHOST="x86_64-pc-linux-gnu" 
MAKEOPTS="-j9" 

21 Ekim 2011 Cuma

linuxle ilk tanismam

oncelikle herkese meraba diyorum cunku ben blog yazmaya ilkkez basliyorum / bunca zaman blog severlerin ve yazarlarinin bilgi ve tecrubelerinden istifade ettikten sonra artik benimde bir kac sey karalayip ayni istifade hedefli bir urun olmasinini istedim acikcasi.
   Linuxle ilk tanismam 2008 yilinin aralik ayinin 18 inde ilkkez sahsi pcimi aldim nasil heyecanliyim bilemezsiniz bir dizuztu pc hp compaq presario f500 1.8 ghz 2gb ram amd semprom. +3500
    ilk olarak oc min icinde adam bana susleyip besleyip beni acemiligimden istifade bir xp kurmus herseyi tam hatta temasi bile jan janli. tabi amacina ulasti ve dizustunu bana satmayi basardi ikinci el bu arada
    xp yi biraz kullanip basima dert acma istegimle vistayi kurmak istedim ilk format denemem ve sonuc husran tum veriler allaha emanet .
    sonrasinda vistayla biraz zaman gecirdikten sonra kaldigim bekar evinde internetim olmadigi icin komsu aglara nasil baglanabilirim fikriyle haekete gectim arastirmalarimla hep karsima cikan bir sey var backtrack  ne oldugunu olmadi ise anlayamaaiyordum bir gun byte dergisi bu sayisinda da backtrack i yayinlayacagini gordum ve dergiyi aldim cd yaz ve boot edip baslat diyordu hic bisey anlamiyordum adam  iso ne boot ne vs vs.
   sonra artik sik sik linux lafini duydukca merak ettim ve arastirmaya basladim arastirdik ca isletim sistemi kavramini ogrendim .
    ve artik birazda milli isletim sistemimiz sempati si ile ilk olarak pardusu kurdum ve sonuc yine olan tum verimin kaybi.
    pardusu kurdum daha sonra onu kurarak iso ve boot kavramlarini ogrenmistim artik . sira geldi backtrack a yazdirdim ve cd i taktim aman allahim biseyler oluyor ekran geldi masa ustu geldi hersey 2-3 dk kuruldu olamaz bu ,,,!
    beni a deta buyulemisti bu olan biten resmen cd den calismisti linux bu harika biseydi
    hemen linux un pesine dustum ve ilk askimda oylece baslamis oldu daha sonra linux felsefesi benim tipki yasam felseme me benziyordu ve aramizda siki bir bag olustu
   bir cok dagitimini indiriyor kuruyordum ama cok aksi ve acemi bir kullanici idim pardusle hic anlasamadim daha ilk surumler ve stabilite de yok denilecek kadar azdi surekli cokuyor comara haber ver diyordu bunu da hic sevmemistim . o zamnlar kde ile o tur cokmeleri gordugum icinde kde ye bi anti sempatim olusmustu bugun bile hic kullanmam

   daha sonra uzun bir aranin akabinde gerek oyun ve gerek c programlama ogrenme heveslerimin akabinde uzun bir sure windows kullndim daha kolaydi o zamanki deneyimimle 2-3 ay surmuyor oda format istiyordu benden onu da sevmemistim ve bir gun gozume carpan yazi.'gentoo linux ileri duzey kullanicilara hitap eden bir dagitimdir'  zaten ubuntunun dazamanla gec acilmaya baslama huyundanda sikilmistim ve amac "gentoo kurmaliyim" itiraf etmek gerekirse birazda ego
    uzun ve mesaketli bir ugrasim oldu gentoyu kurmak daha konsoldan adam akilli iki komut yazmayi bilmeyen bir linux kullanicisi iken . gentoo kurmam basli basina bir macera onu da baska bir yazimda yazmak istiyorum.
     simdi askla sevdigim ve asla baska bir dagitima tercih edemeyecegim linux gentoo kullaniyorum , soylemeden de gecemeyecegim dedikleri kadar zor bir dagitim degildir aslinda iclerinde en kolaylarindan bir tanesidir diyebilirim tek zorlugu paketi derleyip kurmasidir oda onun aslinda bir artisidir sadece konsola birazdaha fazla bakarsiniz gerisi tamamen kolay ve rahattir ve size ozeldir.

bu adresten rahatlikla kurabilirsiniz