Journaling on estrip is easy and free. sign up here

Tinypliny's Journal

tinypliny
My Podcast Link

10/16/2011 20:39 #55323

Nvidia and Intel Graphics in Fedora 15
Category: linux
There's something really wrong with my setup here:


01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:0df4] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: Toshiba America Info Systems Device [1179:fc31]
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
    Memory at e0000000 (64-bit, prefetchable) [size=256M]
    Memory at f0000000 (64-bit, prefetchable) [size=32M]
    I/O ports at e000 [size=128]
    Expansion ROM at f7000000 [disabled] [size=512K]
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [78] Express Endpoint, MSI 00
    Capabilities: [b4] Vendor Specific Information: Len=14
    Capabilities: [100] Virtual Channel
    Capabilities: [128] Power Budgeting
    Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024
    Kernel driver in use: nvidia
    Kernel modules: nvidia, nouveau, nvidiafb



Even though there is now a driver in use (installed from here: ) I still cannot adjust my resolution. I didn't install nVidia's own driver because of this article:

There is only ONE resolution in the display settings (1024X768). Attaching an external monitor results in the computer shutting down on its own. And there is no way to adjust brightness.

Aarrgh. Frustration ++. I am just going to ignore this today. I have too much work piled up.

tinypliny - 10/17/11 15:21
Even better commands (thanks to (e:paul))
sudo geany /var/log/yum.log - just shows you a log of everything ordered by name

to order the last command
rpm -qa --queryformat '%{NAME}%{VERSION}%{RELEASE} was installed on %{INSTALLTIME:date}\n' --last

the --last works just as well as sorting
tinypliny - 10/17/11 13:16
Better tracking: rpm -qa --queryformat '%{NAME}%{VERSION}%{RELEASE} was installed on %{INSTALLTIME:date}\n' > package
tinypliny - 10/17/11 13:09
Got it!! rpm -qa --queryformat '%{NAME} was installed on %{INSTALLTIME:date}\n'
uncutsaniflush - 10/17/11 09:24
As a general rule, it is a good idea to update after an fresh install unless you have a specific reason not to. Some installers will do it for you. Sometimes you will end up with library, kernel, and/or dependency problems if you only update/install specific apps without doing a general update.

As to upgrading from one version of a distro to new one, I always perfer to do a fresh install of the new version instead of an "update" install. As to updating to a new version from inside a distro, it all depends. I don't have a general rule.

If nouveau is working you don't need nvidiafb. At the very least blacklist it. Also remember that you shouldn't have nvidia and nvidiafb at the same time. They don't like each other and do not play nice.

The brightness thing may be a permission thing since the settings only work for a session. You may need to add your user to the admin or wheel or something like that.
tinypliny - 10/17/11 08:36
Do you do a complete update every time you install a distribution? sudo yum update? Or do you let things be if they are running fine after the fresh install?
tinypliny - 10/17/11 08:15
Not going back to xfce version even though gnome 3 is a pain to deal with (for me). A working stable environment is way more important than a few inconveniences.
tinypliny - 10/17/11 08:13
thanks, taking all your advice. Is this the correct virtual box site? :::link:::

(e:uncut): I tried the live gnome cd and this is the output:
01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:0df4] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Toshiba America Info Systems Device [1179:fc31]
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at f7000000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024
Kernel driver in use: nouveau
Kernel modules: nouveau, nvidiafb

Brightness and external monitors work but brightness settings are never remembered.

I didn't try the fedora live xfce version because I had to wipe it out to put the gnome version on (I lost a couple usbs recently so I am running short of spare ones).
uncutsaniflush - 10/16/11 23:04
I concur with (e:paul). but still I would run the live fedora (be it xfce or gnome) to confirm that the nouveux driver works before doing a reinstall. But I tend to trust (e:paul) that it would work.
paul - 10/16/11 22:57
I wouldn't even play with the nvidia drivers as nouveux should be working fine for what you need.

Here is my advice. Reinstall Fedora, install virtual box from the oracle site. Install another copy of fedora in there. Test anything in the virtual fedora before you apply to the real fedora. That way you won't keep messing up your comp and can continue to work.
uncutsaniflush - 10/16/11 22:53
Ok, here's my advice, run Fedora-xfce live. If it works, you know it is something you installed post-install that is fucking up your system. Look at what kernel modules are loaded. If the live cd works, make sure only that module is loaded on your installed system.

When you installed did you do a fresh install or an update? to put in other words, did you format your root partition before installing fedora-xfce? If you didn't everything from the old install is probably still floating around.

uncutsaniflush - 10/16/11 22:37
My experience is that you can't have both the nvidia and the nouveau kernel modules loaded at the same time without bad shit happening.

Somehow you managed to install nvidia kernel modules from somewhere. At the very least blacklist one or the other.

Nothing that you installed with :::link::: should have kernel module graphics drivers. I'm with (e:paul) on that.
tinypliny - 10/16/11 22:09
Its just a theory though. In addition, I added
-- texmaker
-- texstudio
-- gnumeric
-- pinta

tinypliny - 10/16/11 22:07
there were mpeg and other video codecs in the bundle. :::link:::
paul - 10/16/11 22:05
Okay, thats crazy. Something else must have been installed. The mp3 codecs have nothing to do with the display driver.
tinypliny - 10/16/11 22:05
I think the mp3 and other codecs caused the nvidia card Optimus thingy to kick in and this stalled the OS. It's my theory, because the error screen was only intermittent before. But after the codecs, it just stalled the entire OS from booting.
tinypliny - 10/16/11 22:03
Nope. It stalled in the black screen of death after I put in the mp3 codecs. I couldn't rescue it so I put in fedora xfce. This is the state after fedora xfce.
paul - 10/16/11 21:48
How did you get it to this point. It was not like this originally from your bro, was it?

10/16/2011 16:42 #55318

Fedora 15 with XFCE. Some Notes
Category: linux
Remove irritating desktop icons from view.
  • desktop settings > icons > icon type > choose "None"

Getting information about package versions from Yum
  • yum info packagename

Side note to (e:paul): R does pull in the following dependencies:

texlive.x86_64 0:2007-62.fc15
texlive-dvips.x86_64 0:2007-62.fc15
texlive-latex.x86_64 0:2007-62.fc15
texlive-texmf.noarch 0:2007-37.fc15
texlive-texmf-dvips.noarch 0:2007-37.fc15
texlive-texmf-fonts.noarch 0:2007-37.fc15
texlive-texmf-latex.noarch 0:2007-37.fc15
texlive-utils.x86_64 0:2007-62.fc15



It's such a pity the packages it pulls are from 2007! :/

And Gnumeric doesn't even start up now. Something about:

gnumeric: symbol lookup error: /usr/lib64/libspreadsheet-1.10.17.so: undefined symbol: go_direction_get_name



  • In Debian, you can actually, copy the entire /var/apt/cache files into a new installation and have the apt manager pull the .deb files from there without having to download packages over and over. But I don't see any such package repository in Fedora in the /var/cache/yum/ directory. It's all rolled into some sort of a database file. I found from this link that yum *deletes* everything after install. This is kind of wasteful for people who have enough space but not enough bandwidth(ME!). To prevent yum from deleting all the packages after install, apparently, I need to make keepcache=1 in /etc/yum.conf Now I only need to remember this detail next time.

  • These are my detailed specs just for reference...
[txt]1011/toshibaspecs.txt[/txt]

10/16/2011 07:10 #55314

Making a bootable USB in Linux
Category: linux
Sometimes the simplicity of things across all distributions of linux are most refreshing. To burn an iso into a USB and create a bootable USB, I was glad to find out that I didn't need to hunt for programs as I usually do. I could do it in 4 steps.


(e:Paul) would like to remind everyone that this method completely gets rid of all the existing data on the USB drive so do it on an expendable one not somewhere you have all your backup files.



Pull up a terminal.
Pull up the system messages by


tail -f /var/log/messages


This records the realtime happenings on your system

Plug in your USB, you'll see it coming up on the messages window
Let's say its /dev/sdb


At this point (e:uncutsaniflush) would like to say:
You should also note that this only works if your usb drive is "/dev/sdb." If a box has multiple hard drives, it is unlikely that "/dev/sdb" would be your usb drive. If someone had for example two hard drives, "dev/sdb" would be the second one. And thus, all data on the second hard drive would be destroyed. "dd" is a wonderful tool but rather easy to misuse if one isn't absolutely clear which drive is which.


On the terminal again, umount it first


umount /dev/sdb



Go to the directory containing the iso image


cd /directory/that/contains/iso



Then give the simple command to burn the iso into the USB


dd if=file.iso of=/dev/sdb



This will take a while to finish, but yes, it's that simple.
tinypliny - 10/16/11 19:48
Yes! That is an important point. My two hard drives were attached to the comp when I did this and my USB was actually scc or some such thing. Unetbootin is good, but sometimes, it doesnt work for some distros. I wonder why...

Haven't tried imagewriter.
uncutsaniflush - 10/16/11 18:33
You should also note that this only works if your usb drive is "/dev/sdb." If a box has multiple hard drives, it is unlikely that "/dev/sdb" would be your usb drive. If someone had for example two hard drives, "dev/sdb" would be the second one. And thus, all data on the second hard drive would be destroyed. "dd" is a wonderful tool but rather easy to misuse if one isn't absolutely clear which drive is which.

Both unetbootin :::link::: and imagewriter :::link::: are good gui alternatives to using ""dd" in a cli.
tinypliny - 10/16/11 09:22
done, though I sometimes think everyone gets what they deserve for stupidity including me ;-)
paul - 10/16/11 09:17
You should note this destroys all data on the USB drive before some reads this and does it with a drive that conatins all of their backup files.

10/15/2011 10:51 #55304

Diffused Sunlight Simulation
Category: goals
The basic nature of sunlight indoors is that it is never direct most of the times. Almost all sunlight that filters through into rooms is reflected, diffuse and full spectrum (~5500 Kelvin). These three qualities set sunlight apart from artificial light.

The sunlight simulation lamps in the market are mainly high wattage, full spectrum and power consuming lamps. They are targeted at people with SAD - Seasonal Affective Disorders. While I am not convinced I have SAD and need the everyday intensive 1/2 hour to 1 hour therapy that these lamps are regularly recommended for, I am really interested in simulating sunlight at home especially when there is none outside.

I recently went to IKEA and saw this floor lamp, called "Tived".
image
The design is nothing spectacular. In fact, I would call it a bit ugly. But it has flexible arms that can be directed at various parts of the ceiling and walls. It looks like this flexibility could achieve that diffused reflected sunlight feel I want. I almost bought it but it comes with its own set of LED bulbs. I don't like that. I want to be able to readily replace the bulbs if they burn out. The only way to do this would be to get a lamp that holds regular full-spectrum CFLs. None of the more interesting IKEA lamps allow you to put your own bulbs in them.

If it had a few more flexible arms for some more bulbs and it took regular full-spectrum bulbs, it might come close to what I have in mind. IKEA also has a table lamp version of the "Tived" with more arms, but it could be tough to focus the light on the ceiling because of the lack of height. Even if I somehow succeeded in elevating the level of lamp, the bulbs are still the peculiar LED ones. image

I wonder where I can get such a lamp. It would be so cool to have one this winter.

tinypliny - 10/15/11 14:30
IKEA sells Ledare: :::link:::

A range of LED lamps. Maybe I will get one of these lamps after all (if I am sure that the bulbs can be replaced). On their site, they have 3000 and 2700 Kelvin). Both are not full spectrum though. :S
tinypliny - 10/15/11 14:26
More interesting stuff: :::link:::

Maybe LEDs are the way to go. But do they sell full-spectrum LEDs?
tinypliny - 10/15/11 14:17
There is this lamp: :::link::: It might work but it looks uglier. I don't like plastic shades either. They could be a fire hazard.

I like the flexibility of the IKEA lamp better.
tinypliny - 10/15/11 14:02
Glad you brought hydroponics up. Apparently, they use different parts of the spectrum (R, B, G) to achieve optimum rates of growth for various plants, not just the full spectrum sunlight mimicking lights.
tinypliny - 10/15/11 14:00
Yes, it does look somewhat like an abstract art installation. I kind of like it because of that.

Hydroponics is merely growing plants without soil using nutrient solutions: :::link::: I think you can even use cool LED lights of the correct spectrum (~5500K) for growing the plants.
metalpeter - 10/15/11 13:33
I have no idea it looks freaky to me like something from war of the worlds or something..... I wonder about grow lights.... People grow things Hydroponically I wonder if those are supposed to be real sunlight or if they are mostly just heat?

10/15/2011 02:40 #55302

Why go minimal?
Category: the odes
And I thought.

What is the meaning of life? Why are we here anyway? Banal questions and the themes of several works of literary merit (or not). But unanswered nevertheless. Where do we go after this life is over? Heaven and Hell and "the great consciousness" seem rather medieval with all this technology surrounding us. It's hard to believe that anyone even gets punished or rewarded for what they do in life here. That sounds like the words of an atheist. But I am not an atheist. I have a TON of faith. Perhaps not in religion, but in people themselves.

I sincerely believe Science cannot exist without this faith in people, in methods, in what we do, faith in our spirit as humans, faith in a better but unknown future, faith that our work is making things better, faith that we are finding meaning in our lives, faith that we will someday be in a better place and faith that we are making progress.

But in the middle of all this hope, what if some of us give out? Sink into death, into the unknown oblivion? Will anyone care? Yeah, maybe. If you are Steve Jobs, people might even cover the walls of the nearest Apple store with post-its. But what if you are not Steve Jobs? What if you are one of the millions who feel impelled to write one of those post-its? Will someone write post-its for you? How many post-its will you get when you leave this life of yours? Will they be enough to cover a wall? Does it even matter?

The pain you will give people by leaving them behind will matter. How will they cope with this pain? Will it be tough for them to see things you lived with when you were... well alive? Was your life so complicated that along with the pain, you leave them with the tough ordeal of going through the complications and the sheer volume of personal effects you lived with. That each little belonging collects the grief and plunges it back into them as they remember you and then realize that you are now gone?

I am not sure what the point of all these morbid musings are. But I don't want people to suffer after I am gone. I want them to know that I lived happily and tried to do my part. It doesn't matter whether I got anywhere or not. It just matters that I lived most moments happily. I don't want so many belongings that people drown in them and need to hold an estate sale because they don't want any of it. I don't want trivial stuffed toys, knick knacks, I don't want heavily highlighted books and notes with the dried flowers and leaves in them, I don't want anything remotely sentimental and pain-inducing. I don't even want a bed. It does sound pretty clinical and detached but I want to wrap up this life as cleanly as possible, as minimally as possible and when its time to leave, I want leave quietly and completely at ease, and smiling. Because I am not sure I know entirely what the meaning of all this existence is, I just don't think it's worth the drama and pain we bring to people when we let it all go.

And no, I am not sad. I just want to break this chain linux based whingeing that I have been indulging in for the past so many posts with some free-writing on a very non-specific stream of thoughts that just came over and needed written expression.