F.lux kuramıyorum.

Başlatan EL-MUHAMMED, 05 Kasım 2013 - 18:07:16

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

EL-MUHAMMED

Flux programını kuramıyorum, yardımcı olur musunuz?
Programın  sitesi: http://justgetflux.com/

Wine ile denedim, Wine hiç bir programı çalıştırmıyor. Wine'yi Güncelledim kaldırıp tekrar kurdum çalışmadı.

Linux için İndir'e tıkladığımda şu kodları veriyor:

sudo add-apt-repository ppa:kilian/f.lux
sudo apt-get update
sudo apt-get install fluxgui


Bunların terminale yazıdığımda çıktısı şu:

ubuntu@ubuntu:~$ sudo add-apt-repository ppa:kilian/f.lux
[sudo] password for ubuntu:
Bu PPA'yı sisteminize eklemek üzeresiniz:
PPA for the f.lux indicator applet
Daha fazla bilgi: https://launchpad.net/~kilian/+archive/f.lux
Devam etmek için [ENTER] tuşuna ya da eklemeyi iptal etmek için ctrc-c kısayoluna basın.

gpg: `/tmp/tmp_5u58t/secring.gpg' anahtar zinciri oluşturuldu
gpg: `/tmp/tmp_5u58t/pubring.gpg' anahtar zinciri oluşturuldu
gpg: 9BD4ED25 anahtarı keyserver.ubuntu.com sunucusunun hkp adresinden isteniyor
gpg: /tmp/tmp_5u58t/trustdb.gpg: güvence veritabanı oluşturuldu
gpg: anahtar 9BD4ED25: genel anahtar "Launchpad Trimage" alındı
gpg: İşlenmiş toplam miktar: 1
gpg:               alınan: 1  (RSA: 1)
OK
ubuntu@ubuntu:~$ sudo apt-get update
Bağlandı http://ppa.launchpad.net raring Release.gpg
Alınıyor:1 http://security.ubuntu.com raring-security Release.gpg [933 B]     
Bağlandı http://extras.ubuntu.com raring Release.gpg                           
Bağlandı http://dl.google.com stable Release.gpg                               
Bağlandı http://ppa.launchpad.net raring Release                               
Alınıyor:2 http://security.ubuntu.com raring-security Release [40,8 kB]       
Bağlandı http://extras.ubuntu.com raring Release                               
Bağlandı http://dl.google.com stable Release                                   
Bağlandı http://ppa.launchpad.net raring/main i386 Packages                   
Bağlandı http://extras.ubuntu.com raring/main Sources                         
Bağlandı http://dl.google.com stable/main i386 Packages                       
Bağlandı http://extras.ubuntu.com raring/main i386 Packages                   
Alınıyor:3 http://security.ubuntu.com raring-security/main Sources [51,4 kB]   
Alınıyor:4 http://security.ubuntu.com raring-security/restricted Sources [14 B]
Alınıyor:5 http://security.ubuntu.com raring-security/universe Sources [11,7 kB]
Alınıyor:6 http://security.ubuntu.com raring-security/multiverse Sources [2.266 B]
Alınıyor:7 http://security.ubuntu.com raring-security/main i386 Packages [130 kB]
Yoksay http://ppa.launchpad.net raring/main Translation-tr_TR                 
Yoksay http://ppa.launchpad.net raring/main Translation-tr                     
Yoksay http://ppa.launchpad.net raring/main Translation-en                     
Yoksay http://extras.ubuntu.com raring/main Translation-tr_TR                 
Yoksay http://extras.ubuntu.com raring/main Translation-tr                     
Yoksay http://extras.ubuntu.com raring/main Translation-en                     
Yoksay http://dl.google.com stable/main Translation-tr_TR                     
Yoksay http://dl.google.com stable/main Translation-tr                         
Yoksay http://dl.google.com stable/main Translation-en                         
Alınıyor:8 http://security.ubuntu.com raring-security/restricted i386 Packages [14 B]
Alınıyor:9 http://security.ubuntu.com raring-security/universe i386 Packages [43,7 kB]
Alınıyor:10 http://security.ubuntu.com raring-security/multiverse i386 Packages [3.864 B]
Bağlandı http://security.ubuntu.com raring-security/main Translation-en   
Bağlandı http://security.ubuntu.com raring-security/multiverse Translation-en
Bağlandı http://security.ubuntu.com raring-security/restricted Translation-en
Bağlandı http://security.ubuntu.com raring-security/universe Translation-en
Bağlandı http://tr.archive.ubuntu.com raring Release.gpg       
Alınıyor:11 http://tr.archive.ubuntu.com raring-updates Release.gpg [933 B]
Bağlandı http://tr.archive.ubuntu.com raring-backports Release.gpg
Bağlandı http://tr.archive.ubuntu.com raring Release
Alınıyor:12 http://tr.archive.ubuntu.com raring-updates Release [40,8 kB]
Bağlandı http://tr.archive.ubuntu.com raring-backports Release                 
Bağlandı http://tr.archive.ubuntu.com raring/main Sources             
Bağlandı http://tr.archive.ubuntu.com raring/restricted Sources       
Bağlandı http://tr.archive.ubuntu.com raring/universe Sources
Bağlandı http://tr.archive.ubuntu.com raring/multiverse Sources
Bağlandı http://tr.archive.ubuntu.com raring/main i386 Packages
Bağlandı http://tr.archive.ubuntu.com raring/restricted i386 Packages
Bağlandı http://tr.archive.ubuntu.com raring/universe i386 Packages
Bağlandı http://tr.archive.ubuntu.com raring/multiverse i386 Packages
Bağlandı http://tr.archive.ubuntu.com raring/main Translation-tr
Bağlandı http://tr.archive.ubuntu.com raring/main Translation-en
Bağlandı http://tr.archive.ubuntu.com raring/multiverse Translation-tr
Bağlandı http://tr.archive.ubuntu.com raring/multiverse Translation-en
Bağlandı http://tr.archive.ubuntu.com raring/restricted Translation-tr
Bağlandı http://tr.archive.ubuntu.com raring/restricted Translation-en         
Bağlandı http://tr.archive.ubuntu.com raring/universe Translation-tr           
Yoksay http://security.ubuntu.com raring-security/main Translation-tr_TR       
Bağlandı http://tr.archive.ubuntu.com raring/universe Translation-en           
Alınıyor:13 http://tr.archive.ubuntu.com raring-updates/main Sources [80,6 kB]
Yoksay http://security.ubuntu.com raring-security/main Translation-tr         
Yoksay http://security.ubuntu.com raring-security/multiverse Translation-tr_TR
Yoksay http://security.ubuntu.com raring-security/multiverse Translation-tr   
Alınıyor:14 http://tr.archive.ubuntu.com raring-updates/restricted Sources [14 B]
Alınıyor:15 http://tr.archive.ubuntu.com raring-updates/universe Sources [79,3 kB]
Yoksay http://security.ubuntu.com raring-security/restricted Translation-tr_TR
Yoksay http://security.ubuntu.com raring-security/restricted Translation-tr   
Yoksay http://security.ubuntu.com raring-security/universe Translation-tr_TR   
Alınıyor:16 http://tr.archive.ubuntu.com raring-updates/multiverse Sources [2.803 B]
Alınıyor:17 http://tr.archive.ubuntu.com raring-updates/main i386 Packages [201 kB]
Yoksay http://security.ubuntu.com raring-security/universe Translation-tr     
Alınıyor:18 http://tr.archive.ubuntu.com raring-updates/restricted i386 Packages [14 B]
Alınıyor:19 http://tr.archive.ubuntu.com raring-updates/universe i386 Packages [161 kB]
Alınıyor:20 http://tr.archive.ubuntu.com raring-updates/multiverse i386 Packages [4.808 B]
Bağlandı http://tr.archive.ubuntu.com raring-updates/main Translation-en       
Bağlandı http://tr.archive.ubuntu.com raring-updates/multiverse Translation-en
Bağlandı http://tr.archive.ubuntu.com raring-updates/restricted Translation-en
Bağlandı http://tr.archive.ubuntu.com raring-updates/universe Translation-en   
Bağlandı http://tr.archive.ubuntu.com raring-backports/main Sources           
Bağlandı http://tr.archive.ubuntu.com raring-backports/restricted Sources     
Bağlandı http://tr.archive.ubuntu.com raring-backports/universe Sources       
Bağlandı http://tr.archive.ubuntu.com raring-backports/multiverse Sources     
Bağlandı http://tr.archive.ubuntu.com raring-backports/main i386 Packages     
Bağlandı http://tr.archive.ubuntu.com raring-backports/restricted i386 Packages
Bağlandı http://tr.archive.ubuntu.com raring-backports/universe i386 Packages 
Bağlandı http://tr.archive.ubuntu.com raring-backports/multiverse i386 Packages
Bağlandı http://tr.archive.ubuntu.com raring-backports/main Translation-en     
Bağlandı http://tr.archive.ubuntu.com raring-backports/multiverse Translation-en
Bağlandı http://tr.archive.ubuntu.com raring-backports/restricted Translation-en
Bağlandı http://tr.archive.ubuntu.com raring-backports/universe Translation-en
Yoksay http://tr.archive.ubuntu.com raring/main Translation-tr_TR             
Yoksay http://tr.archive.ubuntu.com raring/multiverse Translation-tr_TR       
Yoksay http://tr.archive.ubuntu.com raring/restricted Translation-tr_TR       
Yoksay http://tr.archive.ubuntu.com raring/universe Translation-tr_TR         
Yoksay http://tr.archive.ubuntu.com raring-updates/main Translation-tr_TR     
Yoksay http://tr.archive.ubuntu.com raring-updates/main Translation-tr         
Yoksay http://tr.archive.ubuntu.com raring-updates/multiverse Translation-tr_TR
Yoksay http://tr.archive.ubuntu.com raring-updates/multiverse Translation-tr   
Yoksay http://tr.archive.ubuntu.com raring-updates/restricted Translation-tr_TR
Yoksay http://tr.archive.ubuntu.com raring-updates/restricted Translation-tr   
Yoksay http://tr.archive.ubuntu.com raring-updates/universe Translation-tr_TR 
Yoksay http://tr.archive.ubuntu.com raring-updates/universe Translation-tr     
Yoksay http://tr.archive.ubuntu.com raring-backports/main Translation-tr_TR   
Yoksay http://tr.archive.ubuntu.com raring-backports/main Translation-tr       
Yoksay http://tr.archive.ubuntu.com raring-backports/multiverse Translation-tr_TR
Yoksay http://tr.archive.ubuntu.com raring-backports/multiverse Translation-tr
Yoksay http://tr.archive.ubuntu.com raring-backports/restricted Translation-tr_TR
Yoksay http://tr.archive.ubuntu.com raring-backports/restricted Translation-tr
Yoksay http://tr.archive.ubuntu.com raring-backports/universe Translation-tr_TR
Yoksay http://tr.archive.ubuntu.com raring-backports/universe Translation-tr   
9 sn.'de 856 kB alındı (86,3 kB/s)                                             
Paket listeleri okunuyor... Bitti
N: Geçersiz bir dosya uzantısı içerdiğinden 'google-chrome.list.save' dosyası '/etc/apt/sources.list.d/' dizininde yoksayıldı.
N: Geçersiz bir dosya uzantısı içerdiğinden 'kilian-f_lux-raring.list.save' dosyası '/etc/apt/sources.list.d/' dizininde yoksayıldı.
ubuntu@ubuntu:~$ sudo apt-get install fluxgui
Paket listeleri okunuyor... Bitti
Bağımlılık ağacı oluşturuluyor       
Durum bilgisi okunuyor... Bitti     
Aşağıdaki ek paketler de kurulacak:
  libappindicator1 python-appindicator python-gconf python-glade2
Önerilen paketler:
  python-gnome2-doc python-gtk2-doc
Aşağıdaki YENİ paketler kurulacak:
  fluxgui libappindicator1 python-appindicator python-gconf python-glade2
0 paket yükseltilecek, 5 yeni paket kurulacak, 0 paket kaldırılacak ve 0 paket yükseltilmeyecek.
412 kB arşiv dosyası indirilecek.
Bu işlem tamamlandıktan sonra 1.164 kB ek disk alanı kullanılacak.
Devam etmek istiyor musunuz [E/h]? e
Alınıyor:1 http://tr.archive.ubuntu.com/ubuntu/ raring/main libappindicator1 i386 12.10.1daily13.04.15-0ubuntu1 [22,4 kB]
Alınıyor:2 http://tr.archive.ubuntu.com/ubuntu/ raring/main python-appindicator i386 12.10.1daily13.04.15-0ubuntu1 [8.736 B]
Alınıyor:3 http://tr.archive.ubuntu.com/ubuntu/ raring/main python-glade2 i386 2.24.0-3ubuntu1 [9.818 B]
Alınıyor:4 http://ppa.launchpad.net/kilian/f.lux/ubuntu/ raring/main fluxgui all 1.1.8 [345 kB]
Alınıyor:5 http://tr.archive.ubuntu.com/ubuntu/ raring/main python-gconf i386 2.28.1+dfsg-1build1 [26,7 kB]
1 sn.'de 412 kB alındı (302 kB/s)                               
Önceden seçili olmayan libappindicator1 paketi seçiliyor.
(Veritabanı okunuyor... mevcut 142486 dosya veya klasör yüklü.)
libappindicator1 paketi açılıyor (.../libappindicator1_12.10.1daily13.04.15-0ubuntu1_i386.deb dosyasından) ...
Önceden seçili olmayan python-appindicator paketi seçiliyor.
python-appindicator paketi açılıyor (.../python-appindicator_12.10.1daily13.04.15-0ubuntu1_i386.deb dosyasından) ...
Önceden seçili olmayan python-glade2 paketi seçiliyor.
python-glade2 paketi açılıyor (.../python-glade2_2.24.0-3ubuntu1_i386.deb dosyasından) ...
Önceden seçili olmayan python-gconf paketi seçiliyor.
python-gconf paketi açılıyor (.../python-gconf_2.28.1+dfsg-1build1_i386.deb dosyasından) ...
Önceden seçili olmayan fluxgui paketi seçiliyor.
fluxgui paketi açılıyor (.../archives/fluxgui_1.1.8_all.deb dosyasından) ...
desktop-file-utils için tetiklemeler işleniyor ...
hicolor-icon-theme için tetiklemeler işleniyor ...
libappindicator1 (12.10.1daily13.04.15-0ubuntu1) ayarlanıyor...
python-appindicator (12.10.1daily13.04.15-0ubuntu1) ayarlanıyor...
python-glade2 (2.24.0-3ubuntu1) ayarlanıyor...
python-gconf (2.28.1+dfsg-1build1) ayarlanıyor...
fluxgui (1.1.8) ayarlanıyor...
libc-bin için tetiklemeler işleniyor ...
ldconfig deferred processing now taking place
python-support için tetiklemeler işleniyor ...
N: Geçersiz bir dosya uzantısı içerdiğinden 'google-chrome.list.save' dosyası '/etc/apt/sources.list.d/' dizininde yoksayıldı.
N: Geçersiz bir dosya uzantısı içerdiğinden 'kilian-f_lux-raring.list.save' dosyası '/etc/apt/sources.list.d/' dizininde yoksayıldı.
N: Geçersiz bir dosya uzantısı içerdiğinden 'google-chrome.list.save' dosyası '/etc/apt/sources.list.d/' dizininde yoksayıldı.
N: Geçersiz bir dosya uzantısı içerdiğinden 'kilian-f_lux-raring.list.save' dosyası '/etc/apt/sources.list.d/' dizininde yoksayıldı.


Kuramıyorum.

alquirel

Peki uçbirimden "fluxgui" komutunu verdiğinde ne çıktı veriyor?

EL-MUHAMMED

Şu:
ubuntu@ubuntu:~$ fluxgui
/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py:162: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type GdkColor

  'gtk-icon-theme-name')
/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py:162: Warning: g_value_unset: assertion `G_IS_VALUE (value)' failed
  'gtk-icon-theme-name')
/usr/lib/pymodules/python2.7/fluxgui/fluxgui.py:162: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type gint

  'gtk-icon-theme-name')



if

@EL-MUHAMMED; sudo -H gedit /usr/lib/pymodules/python2.7/fluxgui/fluxgui.py dosyasını açın ve 162. satırda ne varsa buraya geçin. Hatta öncesi ve sonrasını da.

EL-MUHAMMED

Çıktısı:
ubuntu@ubuntu:~$ sudo -H gedit /usr/lib/pymodules/python2.7/fluxgui/fluxgui.py
sudo: gedit: command not found

if

sudo -H leafpad /usr/lib/pymodules/python2.7/fluxgui/fluxgui.py

EL-MUHAMMED

#!/usr/bin/python
import appindicator
import gtk
import gtk.glade
import gconf
import sys
import pexpect
import os
from xdg.DesktopEntry import DesktopEntry

VERSION = "1.1.8"


class Fluxgui:
    def __init__(self):
        self.check_pid()
        self.indicator = Indicator(self)

        self.color = None;
        self.settings = Settings(self)
        self.start_xflux(self.settings.latitude, self.settings.longitude,
                         self.settings.zipcode, self.settings.color)

        if self.settings.latitude is "" and self.settings.zipcode is "":
            self.open_preferences("activate")

    def check_pid(self):
        pid = str(os.getpid())
        self.pidfile = "/tmp/fluxgui_%s.pid" % os.environ['USER']

        if os.path.isfile(self.pidfile):
          print "fluxgui is already running, exiting"
          sys.exit()
        else:
          file(self.pidfile, 'w').write(pid)

    def start_xflux(self, lat, lon, zipcode, color):
        args = []
        if zipcode:
            args = ["-z", zipcode, "-k", color, '-nofork']
        if lat:
            args = ["-l", lat, "-k", color, '-nofork']
            if lon:
                args = ["-l", lat, "-g", lon, "-k", color, '-nofork']

        if args:
            try:
                self.xflux = pexpect.spawn("/usr/bin/xflux", args)
                fout = file('/tmp/fluxlog.txt', 'w')
                self.xflux.logfile = fout
            except pexpect.ExceptionPexpect:
                print "\nError: Please install xflux in /usr/bin/ \n"
                os.unlink(self.pidfile)
                sys.exit(2)
        else:
            self.xflux = None

    def stop_xflux(self, item):
        self.indicator.item_turn_off.hide()
        self.indicator.item_turn_on.show()

        if self.xflux:
            # xflux is not running
            try:
                self.xflux.terminate(force=True)
            except Exception, e:
                # xflux has crashed in the meantime?
                pass

    def pause_xflux(self, item):
        self.indicator.item_turn_off.hide()
        self.indicator.item_turn_on.show()
        self.update_xflux("k=" + self.settings.get_color("4"))

    def unpause_xflux(self, item):
        self.indicator.item_turn_off.show()
        self.indicator.item_turn_on.hide()
        self.update_xflux("k=" + self.settings.color)

    def update_xflux(self, command):
        if self.xflux is None:
            self.start_xflux(self.settings.latitude, self.settings.longitude,
                         self.settings.zipcode, self.settings.color)
        else:
            self.xflux.sendline(command)

    def get_colortemp(self):
        if self.xflux:
            self.xflux.sendline("c")
            index = self.xflux.expect("Color.*")
            if index == 0:
                self.color = self.xflux.after[10:14]

    def preview_xflux(self, item):
      self.settings.set_colortemp(str(self.preferences.colsetting.get_active()))
      self.update_xflux("p")

    def open_preferences(self, item):
        self.get_colortemp()
        self.preferences = Preferences(self)

    #autostart code copied from AWN
    def get_autostart_file_path(self):
        autostart_dir = os.path.join(os.environ['HOME'], '.config',
                                     'autostart')
        return os.path.join(autostart_dir, 'fluxgui.desktop')

    def create_autostarter(self):
        autostart_file = self.get_autostart_file_path()
        autostart_dir = os.path.dirname(autostart_file)

        if not os.path.isdir(autostart_dir):
            #create autostart dir
            try:
                os.mkdir(autostart_dir)
            except Exeption, e:
                print "creation of autostart dir failed, please make it yourself: %s" % autostart_dir
                raise e

        if not os.path.isfile(autostart_file):
            #create autostart entry
            starter_item = DesktopEntry(autostart_file)
            starter_item.set('Name', 'f.lux indicator applet')
            starter_item.set('Exec', 'fluxgui')
            starter_item.set('Icon', 'fluxgui')
            starter_item.set('X-GNOME-Autostart-enabled', 'true')
            starter_item.write()
            self.settings.set_autostart(True)

    def delete_autostarter(self):
        autostart_file = self.get_autostart_file_path()
        if os.path.isfile(autostart_file):
            os.remove(autostart_file)
            self.settings.set_autostart(False)

    def run(self):
        gtk.main()

    def exit(self, widget, data=None):
        self.stop_xflux("activate")
        os.unlink(self.pidfile)
        gtk.main_quit()
        sys.exit(0)

class Indicator:

    def __init__(self, main):
        self.main = main
        self.setup_indicator()

    def setup_indicator(self):
        self.indicator = appindicator.Indicator(
          "fluxgui-indicator",
          "fluxgui",
          appindicator.CATEGORY_APPLICATION_STATUS)
        self.indicator.set_status(appindicator.STATUS_ACTIVE)

        # Check for special Ubuntu themes. copied from lookit
        self.indicator.set_icon('fluxgui')
        if gtk.gdk.screen_get_default():
          theme = gtk.gdk.screen_get_default().get_setting(
                  'gtk-icon-theme-name')
          if theme == 'ubuntu-mono-dark':
              self.indicator.set_icon('fluxgui-dark')
          elif theme == 'ubuntu-mono-light':
              self.indicator.set_icon('fluxgui-light')

        self.indicator.set_menu(self.setup_menu())

    def setup_menu(self):
        menu = gtk.Menu()

        self.item_turn_off = gtk.MenuItem("_Pause f.lux")
        self.item_turn_off.connect("activate", self.main.pause_xflux)
        self.item_turn_off.show()
        menu.append(self.item_turn_off)

        self.item_turn_on = gtk.MenuItem("_Unpause f.lux")
        self.item_turn_on.connect("activate", self.main.unpause_xflux)
        self.item_turn_on.hide()
        menu.append(self.item_turn_on)

        item = gtk.MenuItem("_Preferences")
        item.connect("activate", self.main.open_preferences)
        item.show()
        menu.append(item)

        item = gtk.SeparatorMenuItem()
        item.show()
        menu.append(item)

        item = gtk.MenuItem("Quit")
        item.connect("activate", self.main.exit)
        item.show()
        menu.append(item)

        return menu

    def main(self):
        gtk.main()


class Preferences:

    def __init__(self, main):
        self.main = main
        self.gladefile = os.path.join(os.path.dirname(os.path.dirname(
          os.path.realpath(__file__))), "fluxgui/preferences.glade")
        self.wTree = gtk.glade.XML(self.gladefile)

        self.window = self.wTree.get_widget("window1")
        self.window.connect("destroy", self.delete_event)

        self.latsetting = self.wTree.get_widget("entry1")
        self.latsetting.set_text(self.main.settings.latitude)
        self.latsetting.connect("activate", self.delete_event)

        self.lonsetting = self.wTree.get_widget("entry3")
        self.lonsetting.set_text(self.main.settings.longitude)
        self.lonsetting.connect("activate", self.delete_event)

        self.zipsetting = self.wTree.get_widget("entry2")
        self.zipsetting.set_text(self.main.settings.zipcode)
        self.zipsetting.connect("activate", self.delete_event)

        self.colsetting = self.wTree.get_widget("combobox1")
        self.colsetting.set_active(int(self.main.settings.colortemp))

        self.colordisplay = self.wTree.get_widget("label6")
        if self.main.color:
            self.colordisplay.set_text("Current color temperature: "
                                       + self.main.color + "K")

        self.previewbutton = self.wTree.get_widget("button1")
        self.previewbutton.connect("clicked", self.main.preview_xflux)


        self.closebutton = self.wTree.get_widget("button2")
        self.closebutton.connect("clicked", self.delete_event)

        self.autostart = self.wTree.get_widget("checkbutton1")
        if self.main.settings.autostart is "1":
            self.autostart.set_active(True)
        else:
            self.autostart.set_active(False)

        if self.main.settings.latitude is ""\
           and self.main.settings.zipcode is "":
            md = gtk.MessageDialog(self.window,
                gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_INFO,
                gtk.BUTTONS_OK, "The f.lux indicator applet needs to know " +
                "your latitude and longitude or zipcode to work correctly. " +
        "Please fill either of them in on the next screen and then hit enter.")
            md.set_title("f.lux indicator applet")
            md.run()
            md.destroy()
            self.window.show()
        else:
            self.window.show()

    def delete_event(self, widget, data=None):
        if self.main.settings.latitude != self.latsetting.get_text():
            self.main.settings.set_latitude(self.latsetting.get_text())

        if self.main.settings.longitude != self.lonsetting.get_text():
            self.main.settings.set_longitude(self.lonsetting.get_text())

        if self.main.settings.zipcode != self.zipsetting.get_text():
            self.main.settings.set_zipcode(self.zipsetting.get_text())

        if self.main.settings.colortemp != str(self.colsetting.get_active()):
            self.main.settings.set_colortemp(str(self.colsetting.get_active()))

        if self.autostart.get_active():
            self.main.create_autostarter()
        else:
            self.main.delete_autostarter()

        self.window.hide()
        return False

    def main(self):
        gtk.main()


class Settings:

    def __init__(self, main):
        self.main = main
        self.client = gconf.client_get_default()
        self.prefs_key = "/apps/fluxgui"
        self.client.add_dir(self.prefs_key, gconf.CLIENT_PRELOAD_NONE)

        self.autostart = self.client.get_string(self.prefs_key + "/autostart")
        self.latitude = self.client.get_string(self.prefs_key + "/latitude")
        self.longitude = self.client.get_string(self.prefs_key + "/longitude")
        self.zipcode = self.client.get_string(self.prefs_key + "/zipcode")
        self.colortemp = self.client.get_string(self.prefs_key + "/colortemp")
        self.color = self.get_color(self.colortemp)

        if self.latitude is None:
            self.latitude = ""

        if self.longitude is None:
            self.longitude = ""

        if self.zipcode is None:
            self.zipcode = ""

        if not self.colortemp:
            self.colortemp = "1"

        if not self.autostart:
            self.autostart = "0"

    def set_latitude(self, latitude):
        self.client.set_string(self.prefs_key + "/latitude", latitude)
        self.latitude = latitude

        command = "l=" + latitude
        self.main.update_xflux(command)

    def set_longitude(self, longitude):
        self.client.set_string(self.prefs_key + "/longitude", longitude)
        self.longitude = longitude

        command = "g=" + longitude
        self.main.update_xflux(command)

    def set_zipcode(self, zipcode):
        self.client.set_string(self.prefs_key + "/zipcode", zipcode)
        self.zipcode = zipcode

        command = "z=" + zipcode
        self.main.update_xflux(command)

    def get_color(self, colortemp):
        color = "3400"
        if colortemp is "0":
            #tungsten
            color = "2700"
        elif colortemp is "1":
            #halogen
            color = "3400"
        elif colortemp is "2":
            #fluorescent
            color = "4200"
        elif colortemp is "3":
            #daylight
            color = "5000"
        elif colortemp is "4":
            #off
            color = "6500"

        return color

    def set_colortemp(self, colortemp):
        color = self.get_color(colortemp)

        self.client.set_string(self.prefs_key + "/colortemp", colortemp)
        self.colortemp = colortemp
        self.color = color

        command = "k=" + color
        self.main.update_xflux(command)

    def set_autostart(self, autostart):
        if autostart:
            self.client.set_string(self.prefs_key + "/autostart", "1")
            self.autostart = "1"
        else:
            self.client.set_string(self.prefs_key + "/autostart", "0")
            self.autostart = "0"

    def main(self):
        gtk.main()


if __name__ == "__main__":
    try:
        app = Fluxgui()
        app.run()
    except KeyboardInterrupt:
        app.stop_xflux("activate")
        os.unlink(app.pidfile)


if

Alıntı yapılan: if - 05 Kasım 2013 - 20:02:32
...162. satırda ne varsa buraya geçin. Hatta öncesi ve sonrasını da.

EL-MUHAMMED

#8
self.indicator.set_icon('fluxgui')
        if gtk.gdk.screen_get_default():
          theme = gtk.gdk.screen_get_default().get_setting(
                  'gtk-icon-theme-name')



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 05 Kasım 2013 - 20:44:15

Kusura bakmayın yalnış satırları yazmışım, doğrusu şu:
     theme = gtk.gdk.screen_get_default().get_setting(
                  'gtk-icon-theme-name')
          if theme == 'ubuntu-mono-dark':

if

sudo -H leafpad /usr/lib/pymodules/python2.7/fluxgui/fluxgui.py içindeki # Check for special Ubuntu themes. copied from lookit
        self.indicator.set_icon('fluxgui')
        if gtk.gdk.screen_get_default():
          theme = gtk.gdk.screen_get_default().get_setting(
                  'gtk-icon-theme-name')
          if theme == 'ubuntu-mono-dark':
              self.indicator.set_icon('fluxgui-dark')
          elif theme == 'ubuntu-mono-light':
              self.indicator.set_icon('fluxgui-light')
satırlarını # Check for special Ubuntu themes. copied from lookit
        self.indicator.set_icon('fluxgui')
        #if gtk.gdk.screen_get_default():
        # theme = gtk.gdk.screen_get_default().get_setting(
        #           'gtk-icon-theme-name')
        # if theme == 'ubuntu-mono-dark':
        #      self.indicator.set_icon('fluxgui-dark')
        # elif theme == 'ubuntu-mono-light':
        #      self.indicator.set_icon('fluxgui-light')
olarak değiştirip deneyin.

EL-MUHAMMED

#10
Flux'un simgesi Görev çubuğu penceresinde göründü ama sadece, tıklayınca pause flux, hakkında, çık seçenekleri çıkıyor. Çalışmıyor

sipazilla

12.04e şimdi sorunsuz kurulum yaptım. Görev çubuğundaki simgeye tıklayınca Pause f.lux (duraklat), Preferences (ayarlar), Quit (çık) seçenekleri var. Sizde Preferences seçeneği çıkmadığına eminmisiniz.

EL-MUHAMMED

#12
Preferences seçeneği çalışmıyor. Kaldırıp tekrar tekrar kurdum,   Prefences'e  20 kere tıkaldım 1 defa açıldı, çalıştı bir daha çalışmadı.

ekremdogan

#13
selamlar ,ekran parlaklığı ayarlama programı f.lux kurarken hata veriyor.bu sorunu çozebilen arkadaşlar var mı ?

sudo add-apt-repository ppa:kilian/f.lux
sudo apt-get update
sudo apt-get install fluxgui


komutu verdiğimde ,aldıgim sonuc .




Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 30 Ocak 2016 - 11:31:53


bydogan@frequanc:~$ sudo add-apt-repository ppa:kilian/f.lux
sudo: unable to resolve host frequanc
[sudo] password for bydogan:
PPA for the f.lux indicator applet
Daha fazla bilgi: https://launchpad.net/~kilian/+archive/ubuntu/f.lux
Devam etmek için [ENTER] tuşuna ya da eklemeyi iptal etmek için ctrc-c kısayoluna basın.

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 168, in <module>
    if not sp.add_source_from_shortcut(shortcut, options.enable_source):
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 752, in add_source_from_shortcut
    self.set_modified_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 484, in set_modified_sourceslist
    self.save_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 650, in save_sourceslist
    self.sourceslist.save()
  File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 413, in save
    files[source.file] = open(source.file, "w")
FileNotFoundError: [Errno 2] Böyle bir dosya ya da dizin yok: '/etc/apt/sources.list.d/kilian-ubuntu-f_lux-wily.list'
gpg: `/tmp/tmphqwis6zj/secring.gpg' anahtar zinciri oluşturuldu
gpg: `/tmp/tmphqwis6zj/pubring.gpg' anahtar zinciri oluşturuldu
gpg: 9BD4ED25 anahtarı keyserver.ubuntu.com sunucusunun hkp adresinden isteniyor
gpg: /tmp/tmphqwis6zj/trustdb.gpg: güvence veritabanı oluşturuldu
gpg: anahtar 9BD4ED25: genel anahtar "Launchpad Trimage" alındı
gpg: İşlenmiş toplam miktar: 1
gpg:               alınan: 1  (RSA: 1)
OK
bydogan@frequanc:~$ sudo apt-get update
sudo: unable to resolve host frequanc
Bağlandı  http://ftp.linux.org.tr wily InRelease
Alınıyor: 1 http://ftp.linux.org.tr wily-updates InRelease [64,4 kB]
Bağlandı  http://ftp.linux.org.tr wily/main Sources         
Bağlandı  http://ftp.linux.org.tr wily/restricted Sources
Bağlandı  http://ftp.linux.org.tr wily/universe Sources
Bağlandı  http://ftp.linux.org.tr wily/multiverse Sources
Bağlandı  http://ftp.linux.org.tr wily/main amd64 Packages
Bağlandı  http://ftp.linux.org.tr wily/restricted amd64 Packages
Bağlandı  http://ftp.linux.org.tr wily/universe amd64 Packages
Bağlandı  http://ftp.linux.org.tr wily/multiverse amd64 Packages
Bağlandı  http://ftp.linux.org.tr wily/main i386 Packages
Bağlandı  http://ftp.linux.org.tr wily/restricted i386 Packages
Bağlandı  http://ftp.linux.org.tr wily/universe i386 Packages
Bağlandı  http://ftp.linux.org.tr wily/multiverse i386 Packages
Bağlandı  http://ftp.linux.org.tr wily/main Translation-tr
Bağlandı  http://ftp.linux.org.tr wily/main Translation-en
Bağlandı  http://ftp.linux.org.tr wily/multiverse Translation-tr
Bağlandı  http://ftp.linux.org.tr wily/multiverse Translation-en
Bağlandı  http://ftp.linux.org.tr wily/restricted Translation-tr
Bağlandı  http://ftp.linux.org.tr wily/restricted Translation-en
Bağlandı  http://ftp.linux.org.tr wily/universe Translation-tr
Bağlandı  http://ftp.linux.org.tr wily/universe Translation-en
Alınıyor: 2 http://ftp.linux.org.tr wily-updates/main Sources [44,7 kB]
Alınıyor: 3 http://ftp.linux.org.tr wily-updates/restricted Sources [3.741 B]
Alınıyor: 4 http://ftp.linux.org.tr wily-updates/universe Sources [12,5 kB]
Alınıyor: 5 http://ftp.linux.org.tr wily-updates/main amd64 Packages [121 kB]
Alınıyor: 6 http://ftp.linux.org.tr wily-updates/restricted amd64 Packages [13,3 kB]
Alınıyor: 7 http://ftp.linux.org.tr wily-updates/universe amd64 Packages [52,0 kB]
Alınıyor: 8 http://ftp.linux.org.tr wily-updates/main i386 Packages [119 kB]
Alınıyor: 9 http://ftp.linux.org.tr wily-updates/restricted i386 Packages [13,4 kB]
Alınıyor: 10 http://ftp.linux.org.tr wily-updates/universe i386 Packages [50,0 kB]
Alınıyor: 11 http://ftp.linux.org.tr wily-updates/main Translation-en [59,3 kB]
Alınıyor: 12 http://ftp.linux.org.tr wily-updates/restricted Translation-en [3.024 B]
Alınıyor: 13 http://ftp.linux.org.tr wily-updates/universe Translation-en [33,6 kB]
5 sn.'de 590 kB alındı (99,2 kB/s)                                             
Paket listeleri okunuyor... Bitti
bydogan@frequanc:~$ sudo apt-get install fluxgui
sudo: unable to resolve host frequanc
Paket listeleri okunuyor... Bitti
Bağımlılık ağacı oluşturuluyor       
Durum bilgisi okunuyor... Bitti     
E: fluxgui paketi bulunamadı
bydogan@frequanc:~$



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 30 Ocak 2016 - 13:06:24

f.lux sitesinden trgz olarak da indirdim zip klasorunden çıkardım uzerine tıklayınca hiçbir hareket yok .tesekurler

[eklenti yönetici tarafından silindi]

bugra9

@ekremdogan, çıktıları kod etiketi içerisine alabilir misin, bu şekilde okumak oldukça güç oluyor.

Konuya dönersek ubuntunun hangi sürümünü kullanıyorsun?

ekremdogan

consol ile ustteki aynı ,yani  kodların arasında olanlar doğrudur
surum:15 10 surumunu kullanıyorum tesekkurler

if

#16
@ekremdogan, sudo: unable to resolve host frequanc sorununun çözümüne bakalım önce.

cat /etc/{hosts,hostname}
çıktısına bakayım.

ekremdogan

bydogan@frequanc:~$ sudo: unable to resolve host frequanc
'sudo:' komutu bulunamadı, şunu mu demek istediniz:
'sudo' paketinden 'sudo-ldap' komutu (universe)
'sudo' paketinden 'sudo' komutu (main)
sudo:: komut bulunamadı
bydogan@frequanc:~$ sudo: unable to resolve host frequanc
'sudo:' komutu bulunamadı, şunu mu demek istediniz:
'sudo' paketinden 'sudo-ldap' komutu (universe)
'sudo' paketinden 'sudo' komutu (main)
sudo:: komut bulunamadı
bydogan@frequanc:~$ cat /etc/{hosts, hostname}
cat: /etc/{hosts,: Böyle bir dosya ya da dizin yok
cat: hostname}: Böyle bir dosya ya da dizin yok
bydogan@frequanc:~$ ^C
bydogan@frequanc:~$ ^C
bydogan@frequanc:~$

bugra9

Yüklemeye çalıştığın depoda en son ubuntu 14.04 için f.lux yazılımı destekleniyor. Senin sistemin daha yeni olduğu için paketi bulamıyorsun.

Birden fazla çözüm yolu var.
1) Ubuntu 14.04 versiyonu için olan yazılımı yüklemeye zorlarsın.
Ubuntu kullanmadığım için tam isimlerini yazamayacağım ama yabancı kaynaklarda aşağıdaki şekilde yazıyor.
Software & Update-> Other software->Select http://ppa.launchpad.net/kilian/f.lux/ubuntu wily main ->Edit-> Change "wily" to "trusty" -> Save.
Sonrasında,

sudo apt-get update
sudo apt-get install fluxgui

2)  Başka birisinin deposundan indirebilirsin. (15.04 ve 15.10 için)

sudo add-apt-repository ppa:blackmage/f.lux
sudo apt-get update
sudo apt-get install fluxgui


3) Alternatif yazılımlara yönelirsin. Örneğin redshift
4) Kaynak koddan derlersin

sudo apt-get install python-pexpect python-gconf python-appindicator
git clone https://github.com/Kilian/f.lux-indicator-applet.git
cd f.lux-indicator-applet
sudo python setup.py install
fluxgui

if

@ekremdogan, cat /etc/{hosts,hostname} komutunu bir daha yürütür müsünüz? Daha önce yazarken iki öge arasına boşluk koyduğum için komut işimizi görmedi. Bu iletimdeki doğru halidir.

ekremdogan

bydogan@frequanc:~$ cat /etc/{hosts,hostname}
127.0.0.1 localhost
127.0.1.1 frequancy

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

10.10.5.42 test.com
frequanc
bydogan@frequanc:~$


if

@ekremdogan, /etc/hosts dosyasında sistemin adı frequancy ike /etc/hostname dosyasında frequanc olarak geçmekte.
hostnamectl set-hostname sistem_adı komutuyla düzeltebilirsiniz durumu.

ekremdogan

#22
sistem ismini anlattığınız sekilde duzelttim ama yine kurulum için ,bulunamadı diyor.



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 13 Şubat 2016 - 13:59:00

tesekkurler if.en son sistem ismini duzeltmek için verdiginiz komut



[eklenti yönetici tarafından silindi]

if

Rica ederim @ekremdogan:) Şimdi şu komutları uygulayabiliriz:
sudo add-apt-repository ppa:kilian/f.lux
sudo apt-get update
sudo apt-get install fluxgui

ekremdogan

fluxgui bulunamadı diyor.

bydogan@frequency:~$ sudo add-apt-repository ppa:kilian/f.lux
sudo: unable to resolve host frequency
[sudo] password for bydogan:
PPA for the f.lux indicator applet
Daha fazla bilgi: https://launchpad.net/~kilian/+archive/ubuntu/f.lux
Devam etmek için [ENTER] tuşuna ya da eklemeyi iptal etmek için ctrc-c kısayoluna basın.

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 168, in <module>
    if not sp.add_source_from_shortcut(shortcut, options.enable_source):
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 752, in add_source_from_shortcut
    self.set_modified_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 484, in set_modified_sourceslist
    self.save_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 650, in save_sourceslist
    self.sourceslist.save()
  File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 413, in save
    files[source.file] = open(source.file, "w")
FileNotFoundError: [Errno 2] Böyle bir dosya ya da dizin yok: '/etc/apt/sources.list.d/kilian-ubuntu-f_lux-wily.list'
gpg: `/tmp/tmppkfyptd7/secring.gpg' anahtar zinciri oluşturuldu
gpg: `/tmp/tmppkfyptd7/pubring.gpg' anahtar zinciri oluşturuldu
gpg: 9BD4ED25 anahtarı keyserver.ubuntu.com sunucusunun hkp adresinden isteniyor
gpg: /tmp/tmppkfyptd7/trustdb.gpg: güvence veritabanı oluşturuldu
gpg: anahtar 9BD4ED25: genel anahtar "Launchpad Trimage" alındı
gpg: İşlenmiş toplam miktar: 1
gpg:               alınan: 1  (RSA: 1)
OK
bydogan@frequency:~$ sudo apt-get update
sudo: unable to resolve host frequency
Bağlandı  http://ftp.linux.org.tr wily InRelease
Alınıyor: 1 http://ftp.linux.org.tr wily-updates InRelease [65,9 kB]       
Bağlandı  http://archive.canonical.com wily InRelease                         
Bağlandı  http://ftp.linux.org.tr wily/main Sources   
Bağlandı  http://ftp.linux.org.tr wily/restricted Sources
Bağlandı  http://ftp.linux.org.tr wily/universe Sources
Bağlandı  http://archive.canonical.com wily/partner amd64 Packages
Bağlandı  http://ftp.linux.org.tr wily/main amd64 Packages
Bağlandı  http://ftp.linux.org.tr wily/restricted amd64 Packages
Bağlandı  http://archive.canonical.com wily/partner i386 Packages
Bağlandı  http://ftp.linux.org.tr wily/universe amd64 Packages           
Bağlandı  http://ftp.linux.org.tr wily/main i386 Packages               
Bağlandı  http://archive.canonical.com wily/partner Translation-en 
Bağlandı  http://ftp.linux.org.tr wily/restricted i386 Packages
Bağlandı  http://ftp.linux.org.tr wily/universe i386 Packages
Bağlandı  http://ftp.linux.org.tr wily/main Translation-tr
Bağlandı  http://ftp.linux.org.tr wily/main Translation-en
Bağlandı  http://ftp.linux.org.tr wily/restricted Translation-tr
Bağlandı  http://ftp.linux.org.tr wily/restricted Translation-en
Bağlandı  http://ftp.linux.org.tr wily/universe Translation-tr
Bağlandı  http://ftp.linux.org.tr wily/universe Translation-en
Alınıyor: 2 http://ftp.linux.org.tr wily-updates/main Sources [48,3 kB]
Alınıyor: 3 http://ftp.linux.org.tr wily-updates/restricted Sources [3.741 B]
Alınıyor: 4 http://ftp.linux.org.tr wily-updates/universe Sources [14,1 kB]
Alınıyor: 5 http://ftp.linux.org.tr wily-updates/main amd64 Packages [130 kB]
Alınıyor: 6 http://ftp.linux.org.tr wily-updates/restricted amd64 Packages [13,3 kB]
Alınıyor: 7 http://ftp.linux.org.tr wily-updates/universe amd64 Packages [59,9 kB]
Alınıyor: 8 http://ftp.linux.org.tr wily-updates/main i386 Packages [127 kB]
Alınıyor: 9 http://ftp.linux.org.tr wily-updates/restricted i386 Packages [13,4 kB]
Alınıyor: 10 http://ftp.linux.org.tr wily-updates/universe i386 Packages [57,2 kB]
Bağlandı  http://ftp.linux.org.tr wily-updates/main Translation-en         
Bağlandı  http://ftp.linux.org.tr wily-updates/restricted Translation-en
Bağlandı  http://ftp.linux.org.tr wily-updates/universe Translation-en
7 sn.'de 533 kB alındı (66,7 kB/s)                                                                                                             
Paket listeleri okunuyor... Bitti
bydogan@frequency:~$ udo apt-get install fluxgui
'udo' programı şu anda kurulu değil. Kurulumunu şunu yazarak yapabilirsiniz:
sudo apt-get install udo
bydogan@frequency:~$ sudo apt-get install fluxgui
sudo: unable to resolve host frequency
Paket listeleri okunuyor... Bitti
Bağımlılık ağacı oluşturuluyor       
Durum bilgisi okunuyor... Bitti     
E: fluxgui paketi bulunamadı
bydogan@frequency:~$