Ask Your Question

ryran's profile - activity

2015-03-27 12:07:18 -0600 marked best answer Why Gnome3 notifications for system disks don't time out ?

All right. So when you plug in an external disk of some kind, all the magic happens behind the scenes and then it gets automounted for you and you get a lovely [notify-send] notification that pops up giving you a chance to "Open with Files" or "Eject", right? If you don't click on the notification (either the two choices, or elsewhere in the notification) it doesn't go away--apparently it doesn't have a timeout (unless it's ridiculously long). That's fine by me. I like this behavior.

Now. I have a system disk with multiple partitions and various filesystems, all of which I don't need to be mounted all the time. Whenever I need to get at one of them, I open nautilus (Files) and click the appropriate FS in the tree on the left to mount it up. This works.

The problem however, is this: AFTER mounting it manually in this way, I get a never-times-out notification about said filesystem (Open with Files/Eject), which basically means I have an extra click I have to do.

Clearly the system just displays this notification whenever anything is mounted by the current user. I doubt there's any hope of fixing this annoyance, aside from doing things with root (can mount from the command-line to avoid the notification, but that's just silly), but I thought I'd ask anyway. Any hope?


EDIT: Finally bothered to create an account in Gnome's bugzilla, but before posting I spent a while searching for an existing report of this and FOUND IT: bugzilla.gnome.org/show_bug.cgi?id=665135

2015-03-27 11:46:48 -0600 marked best answer aspiring python developer needs help sorting out gtk2 vs gtk3

So I've been learning python and over the last couple days playing with Glade3 on my Fedora16 box. Every time I try to run one of my python [or even C] apps (which use gtkbuilder to load a glade xml file), I get a warning like this:

cannot create instance of abstract (non-instantiatable) type 'GtkBox'

Thanks to google I've come to a pseudo-understanding of the situation. Glade v3.10 dropped support for GTK versions less than 3 and apparently GtkVBox, GtkHBox, GtkVButtonBox, & GtkHButtonBox from GTK2 were replaced with GtkBox & GtkButtonBox (w/properties to specify horizontal/vertical) in GTK3.

Solution? Apparently one can use the older Glade 3.8 or manually edit the 3.10-produced files.

But what about running my apps with GTK3? I don't even know where to start. All the examples I've seen for python are for GTK2, I think. Starting out with python GUI programming, with linux being the intended platform, what should I focus my energy on? I believe any system that has GNOME3 has GTK3, right? I assume all systems that have GTK3 will also have GTK2, right? For relatively simple programs is there any benefit to using GTK3 (and whatever the python bindings for it are)?

So really, I'm just looking for a little guidance on this whole GTK2 vs GTK3 thing. Thanks for reading.


EDIT: In the end I went with installing Glade 3.8 for now and sticking to GTK2, I guess. My app works beautifully, so for now, I'm happy with that route.

2015-03-27 11:46:21 -0600 marked best answer Anyone know of a GUI for symmetric gpg encryption & decryption?

Fedora comes packaged with GPG & GPG2, which makes it ridiculously easy to encrypt/decrypt files and text from a terminal.. and I seem to remember seahorse integrating with nautilus (for {en,de}cryption) at some point, though it no longer does [on my F16 box]. So for people who are unaware of how to use gpg(2) on the command-line...?

I just wrote a bash script last night that utilizes zenity to provide an interactive GUI, but a real [say, python, maybe?] programmer could do much much better.

Surely there has to be something like this available in SOME linux distro? Anyone know of anything?


EDIT: bodhi gave some suggestions. I wasn't aware of all of these, though am totally familiar with the mail-centered options, so to be clear: I'm trying to find out if there is already a GUI frontend out there for GPG-{en,de}cryption of files and ascii-text. The only potential options from what bodhi posted are GPA, GPG Shell, & kGPG.

GPA doesn't compile on my (stock) fedora box, failing a check of "GTK+ - version >= 2.10.0" ... which is nonsense since all F16 boxes should have GTK2 & 3. This isn't too surprising since it was last updated in '09.

Aside from a Windows app of the same name, I can only find info on GPG Shell at the page you linked. No x64 rpm and the source zip is corrupted. From the screenshots, it looks to be a replacement for seahorse.. maybe something will come of it eventually.

I didn't want to, but I installed all the crap KDE dependencies to get kGPG just so I could check it out. It appears to be just like seahorse--a key-management app. It doesn't do the simplest of things normal people would expect to see in a file-encryption program: symmetric encryption with a passphrase.

In short, I think linux should have a simple GUI app to interact with GPG, something that doesn't require novice users to create public/private key pairs, and allows them to symmetrically encrypt files or ascii-armor arbitrary text. Perhaps seahorse could be extended to do this, or it could just be a simple separate standalone app.

I hope that clears up what I'm looking for. I just wanted to see if there was anything out there I had missed before I set out to create it myself.

2015-03-27 11:45:46 -0600 marked best answer What could cause the alt key to stop working in two terminal apps?

I use lots of keyboard shortcuts when I'm working with bash in a terminal. Two that I use heavily are Alt-d and Alt-. to delete the following word and to bring in the last argument of the previous command, respectively. In the last twenty-four hours--somewhere in the middle of a marathon coding session--I noticed that they stopped working in both of the terminal applications that I use heavily (Terminator and Guake); however, Alt key presses are still registered by the apps themselves (e.g., in Terminator, Alt-Left switches to the window frame on the left, and that works). Edit: In other news Esc-d or Esc-. work. So I'm gonna look into the whole meta thing...

Also, my mind was just blown when I realized that Alt still works in gnome-terminal (which I never use). Before that I thought this was a bash issue. Alt-key combos also work just fine every where else in my Gnome desktop & applications. WTH!

Any pointers?

2014-04-09 11:05:17 -0600 marked best answer How to downgrade to an older kernel when already removed rpm?

Like an idiot I removed a kernel before testing a new one. Is there a yum repo that I can find previous kernel rpms in? I'm feeling so ridiculous.. but I'm also shocked that I can't find anything online. If there aren't any rpms laying about (I'm looking for kernel-3.2.1-3.fc16.x86_64), can someone point me to some resources for compiling a kernel specifically with Fedora sources?

2013-09-27 09:06:42 -0600 received badge  Taxonomist
2013-08-25 01:56:21 -0600 received badge  Notable Question (source)
2013-08-25 01:56:21 -0600 received badge  Famous Question (source)
2013-08-25 01:56:21 -0600 received badge  Popular Question (source)
2012-08-24 03:30:54 -0600 received badge  Famous Question (source)
2012-07-30 19:36:14 -0600 received badge  Famous Question (source)
2012-05-24 01:03:03 -0600 received badge  Famous Question (source)
2012-05-12 05:12:24 -0600 received badge  Famous Question (source)
2012-05-10 13:07:29 -0600 received badge  Famous Question (source)
2012-04-17 02:50:56 -0600 received badge  Notable Question (source)
2012-03-24 09:37:43 -0600 received badge  Notable Question (source)
2012-03-17 22:57:57 -0600 answered a question cpu utilization more

No one has tried to answer yet because you didn't provide enough information.

Use tools like
1) top
2) ps -ef --sort=-pcpu
3) gnome-system-monitor
to figure out what processes are pegging your cpu. Then google about those processes if you don't recognize them. If that doesn't get you anywhere, edit your original post with more info.

2012-03-17 22:49:02 -0600 received badge  Civic Duty (source)
2012-03-13 16:23:13 -0600 marked best answer aspiring python developer needs help sorting out gtk2 vs gtk3

I'm on the same journey you are trying to learn Glade on python and I ran into the same issues you did. I'm still not at full understanding by any means, but perhaps my discoveries can help you.

First, every tutorial, including those at the glade home page seem to be out of date. They all say to "import gtk", but this seems to be old even though it is packaged with F16. If you use this gtk then you will get the error from gtkbuilder. Instead I found that the following code works and doesn't cause an error:

import gi
gi.require_version("Gtk", "3.0")
# from gi.repository import Gtk,GdkPixbuf,GObject,Pango,Gdk
from gi.repository import Gtk

# import gtk -- this doesn't work

class CommanderApp(object):       
    def __init__(self):
        GObject.threads_init()
        self.builder = Gtk.Builder()
        self.builder.add_from_file("Commander.glade")

        self.window = self.builder.get_object("window")
        self.about = self.builder.get_object("about_dialog");
        self.choose = self.builder.get_object("chooser_dialog");
        self.bookStore = self.builder.get_object("bookstore");
        self.bookView = self.builder.get_object("bookview");


        self.builder.connect_signals(self)
        self.window.show()
        Gtk.main()

    def on_window_destroy(self, widget, data=None):
        Gtk.main_quit()

    def on_open_menu_item_activate(self, widget, data=None):
        self.choose.run()
        self.choose.hide()

        self.curDir = self.choose.get_files();
        for b, v in listBooks([x.get_path() for x in self.curDir]).items():
            self.bookStore.append((v[TITLE], v[CREATOR]))
        self.bookView.show()

    def on_quit_menu_item_activate(self, widget, data=None):
        Gtk.main_quit()

    def on_delete_menu_item_activate(self, widget, data=None):
        pass

    def on_about_menu_item_activate(self, widget, data=None):
        self.about.run()
        self.about.hide()

Obviously, this is a fragment from my program, but hopefully it give you an idea. I've been using Glade3, eclipse PyDev and python with success. My UI has a simple GtkTreeView view with a GtkListStore.

One other issue though, in order to get columns in a tree view I had to add GtkTreeColumn items with GtkCellRendererText children. However, I could not find these two elements in the glade UI builder. Furthermore when I selected my GtkTreeView element and right-click->Edit..., glade crashes. I eventually edited the glade file by hand to add the elements. After that when I open the file in Glade then I see these elements in the widget window and the preview (the edit sequence still crashes though).

Anyway that is where I'm at. I have my UI displaying and responding, so I'm calling it a success :-)

2012-03-03 05:35:27 -0600 received badge  Popular Question (source)
2012-03-02 12:04:24 -0600 answered a question how to watch netflix

Google is your friend.

In short: You can't. Yet. Unless you install Windows inside a virtual machine on your Fedora box.

2012-03-02 06:56:09 -0600 commented question RAID 10 on Fedora 16

Not sure what to offer you besides what's in those links. Other than this: how many drives do you have? Your post makes it seem like you might only have one drive to work with. If this is the case, there's no use for to be trying to setup RAID.

2012-03-02 04:10:50 -0600 commented answer F16: swap usage grows very fast

Wow. Not much ram at all, eh? Edited my answer.

2012-03-02 03:56:41 -0600 commented question RAID 10 on Fedora 16

I would like to help you, but I don't understand what you're having trouble with, nor do I understand why you're even considering RAID when you only have one hard drive. Give us a little more detail. Help us help you. :)

2012-03-02 03:47:45 -0600 asked a question What can we do about the spam?

I'm noticing an increase in the number of spam posts this week. Does askbot have any spam-fighting features that askfedora has disabled?

I flag and downrate spam posts, but I wish I could do more.

It also seems that once a mod sees them they get closed instead of being deleted altogether. Why is this? The more spam starts showing up, the more cluttered each page is going to get.

2012-03-02 03:38:57 -0600 commented question rootfs is running out of space fast

Edit your post and turn the df output into code. Then I'll have a look.

2012-03-02 03:35:38 -0600 commented answer Installation Problem of fedora 14/15/16

@davidva: I'm not sure I understand you. Shaswata was not able to install Fedora, so he/she cannot open a terminal except by using a live cd.

2012-03-01 11:50:43 -0600 received badge  Popular Question (source)
2012-03-01 05:41:26 -0600 answered a question Can i install softwares in fedora in other partitions?

You need to expand your root filesystem.

Your Fedora box is most likely using a system called LVM (logical volume management) on top of regular partitions. This provides awesome flexibility in situations like yours where space is running out.

Report back the output of fdisk -l to see what we're working with. Assuming you see 'Linux LVM partition', we should be good to go. If you don't, you'll likely need to boot into a livecd version of fedora or partedmagic and use gparted to mess around with partitions.

Here's an example to illustrate (not actual fdisk output):

/dev/sda is 120 GB disk
/dev/sda1 is a small (<1GB) Linux partition (for kernel, bootloader)
/dev/sda2 is a 8 GB Linux LVM partition
/dev/sda3 is a 60 GB Linux partition

Interlude: In this example, there's plenty of free space (120 GB disk minus ~70 GB) and therefore things will be verrrry easy; however, if you don't have any free space, you'll either need to add another disk or delete/rearrange your existing partitions. A common case is installing Fedora in freespace after a Windows partition. If this is what you did, you could potentially use Windows' disk management tool to shrink the main Windows partition & filesystem, providing free space for fedora to grow into.

So--back to the example--where's the root partition and the swap space and home and all that?

Well that LVM partition is just raw storage--called a PV, or physical volume--providing the foundation for the LVM system. We can see this with the pvs command. One or more PVs can be used to build a pool of storage called a volume group. (Can see short info with the vgs command.) And then any number of virutal block devices can be partitioned out of a VG. These act just like normal partitions and are called logical volumes (run lvs).

In our example, lvs might show

  LV      VG         Attr   LSize
  lv_root vg_example -wi-ao  7.0g
  lv_swap vg_example -wi-ao  1.00g

In this example, it would be trivial to extend our root "parition" using the system-config-lvm gui (which you'll need to install with yum/packagekit) or a few terminal commands (as root). In a terminal, it could go like this:

First, using something like fdisk to create a new partition.

fdisk /dev/sda

(inside fdisk, one would use n to create a new partition, perhaps making it 30GB and then t to mark it as type 8e and then w to save changes)

Then:

pvcreate /dev/sda4
vgextend vg_example /dev/sda4

lvextend -L +30G /dev/vg_example/lv_root
OR
lvextend -l +100%FREE /dev/vg_example/lv_root

resize2fs /dev/vg_example/lv_root

Which was, in order: (1) tagging the new partition as a pv, so we can use it in this LVM scheme; (2) adding the new pv to our volume group (which extends our available pool of storage); (3) extending our logical volume (which is a container for our root filesystem); (4) and ... (more)

2012-03-01 05:39:48 -0600 answered a question Can i install softwares in fedora in other partitions?

You need to expand your root filesystem.

Your Fedora box is most likely using a system called LVM (logical volume management) on top of regular partitions. This provides awesome flexibility in situations like yours where space is running out.

Report back the output of fdisk -l to see what we're working with. Assuming you see 'Linux LVM partition', we should be good to go. If you don't, you'll likely need to boot into a livecd version of fedora or partedmagic and use gparted to mess around with partitions.

Here's an example to illustrate (not actual fdisk output):

/dev/sda is 120 GB disk
/dev/sda1 is a small (<1GB) Linux partition (for kernel, bootloader)
/dev/sda2 is a 8 GB Linux LVM partition
/dev/sda3 is a 60 GB Linux partition

Interlude: In this example, there's plenty of free space (120 GB disk minus ~70 GB) and therefore things will be verrrry easy; however, if you don't have any free space, you'll either need to add another disk or delete/rearrange your existing partitions. A common case is installing Fedora in freespace after a Windows partition. If this is what you did, you could potentially use Windows' disk management tool to shrink the main Windows partition & filesystem, providing free space for fedora to grow into.

So--back to the example--where's the root partition and the swap space and home and all that?

Well that LVM partition is just raw storage--called a PV, or physical volume--providing the foundation for the LVM system. We can see this with the pvs command. One or more PVs can be used to build a pool of storage called a volume group. (Can see short info with the vgs command.) And then any number of virutal block devices can be partitioned out of a VG. These act just like normal partitions and are called logical volumes (run lvs).

In our example, lvs might show

  LV      VG         Attr   LSize
  lv_root vg_example -wi-ao  7.0g
  lv_swap vg_example -wi-ao  1.00g

In this example, it would be trivial to extend our root "parition" using the system-config-lvm gui (which you'll need to install with yum/packagekit) or a few terminal commands (as root). In a terminal, it could go like this:

First, using something like fdisk to create a new partition.

fdisk /dev/sda

(inside fdisk, one would use n to create a new partition, perhaps making it 30GB and then t to mark it as type 8e and then w to save changes)

Then:

pvcreate /dev/sda4
vgextend vg_example /dev/sda4

lvextend -L +30G /dev/vg_example/lv_root
OR
lvextend -l +100%FREE /dev/vg_example/lv_root

resize2fs /dev/vg_example/lv_root

Which was, in order: (1) tagging the new partition as a pv, so we can use it in this LVM scheme; (2) adding the new pv to our volume group (which extends our available pool of storage); (3) extending our logical volume (which is a container for our root filesystem); (4 ... (more)

2012-03-01 04:53:58 -0600 answered a question Installation Problem of fedora 14/15/16

Shaswata, you provided almost no information that we can use to help you with your problem. At a minimum, we need to know what your partitions look like and what "unhandled exception" you're seeing.

To get info on the partitions, use the cd/usb to boot into fedora and then open up a terminal. Run this command and post the output as an edit to your original question.

su -c 'fdisk -l'
2012-03-01 04:43:45 -0600 commented answer F16: swap usage grows very fast

Next time, it would make more sense to post this as edits to the original question. But anyway... .How much ram does your system have? (free -m or head -n1 /proc/meminfo)

2012-02-29 14:11:48 -0600 answered a question F16: swap usage grows very fast

Check out this answer to a question about swap. Use the tools I mentioned there to look at what is using the most RAM (RSS) and post back.


EDIT:

Since snapshots of those stats didn't prove anything, now you need to start trying to narrow things down. Start up the system and log in, but don't open any other applications. Don't use the system. Just leave something like watch -n20 'free -m' running in a terminal and check back every few minutes. Then try the experiment over again with just one application at a time.

2012-02-29 13:51:49 -0600 received badge  Citizen Patrol (source)
2012-02-28 13:51:43 -0600 asked a question adobe flash-plugin broken after yum update

I'm on F16. Up until I just closed Google Chrome and started it up again, it had always been able to load flash with no problems using the installed flash-plugin-11.1.102.62-release.x86_64; now I get the standard text message:

To view this movie you need the Adobe Flash Player plugin. You also need JavaScript enabled in your browser. Same goes for Firefox.

A few hours (before closing Chrome) I ran a yum update. These packages were updated:

setroubleshoot-server-3.1.3-1.fc16.x86_64
setroubleshoot-plugins-3.0.27-1.fc16.noarch
tracker-0.12.10-1.fc16.x86_64
glusterfs-3.2.5-8.fc16.x86_64
ceph-0.39-2.fc16.x86_64
glusterfs-fuse-3.2.5-8.fc16.x86_64
tracker-ui-tools-0.12.10-1.fc16.x86_64
setroubleshoot-3.1.3-1.fc16.x86_64
graphite2-1.1.0-1.fc16.x86_64
ykpers-1.6.3-1.fc16.x86_64

Additionally, google-perftools-libs-1.9.1-1.fc16.x86_64 was replaced with gperftools-libs-2.0-4.fc16.x86_64

Nothing unusual in logs.

What. The. Heck. Anyone heard about anything funky in the last 24 hours?

2012-02-22 02:51:50 -0600 received badge  Notable Question (source)
2012-02-22 01:12:26 -0600 received badge  Notable Question (source)
2012-02-21 14:03:48 -0600 commented answer Why Gnome3 notifications for system disks don't time out ?

Someone beat me to it. Bug already filed in bugzilla. Linked in op.

2012-02-21 14:03:45 -0600 marked best answer Why Gnome3 notifications for system disks don't time out ?

File a bug report in upstream GNOME bugzilla and then post here as followup.