Category Archives: Uncategorized

vmware on fedora 24 wih kernel 4.7

This is what seems to be the second post of a series of fixes for getting vmware to work on fedora:
Previous post: vmware on fedora 24 with kernel 4.6

The following should make it possible to use vmware on the kernel on version 4.7:

vim /usr/lib/vmware/modules/source/vmnet.tar → vmnet-only/netif.c
(vim) :%s/dev->trans_start = jiffies/netif_trans_update(dev)/g
Donate Dogecoins: DJi4fgSMxcq5vRjytvCEq9A1TVsDZevd7c Whats This?

vmware on fedora 24 with kernel 4.6

With the new kernel 4.6 found in fedrora 24, you will need to patch two modules for vmware to work again:

/usr/lib/vmware/modules/source/vmmon.tar → vmmon-only/linux/hostif.c
/usr/lib/vmware/modules/source/vmnet.tar → vmnet-only/userif.c

and replace any occurence of “get_user_pages” by “get_user_pages_remote” in these two files.

This comes particularly handy with vim where it’s only a matter of typing :%s/get_user_pages/get_user_pages_remote/g in hostif.c and userif.c . A nice feature of vim (that not everyone is aware of) is that it lets you browse zipped archives and edit the files it contains as if they were plain, uncompressed files.

Donate Dogecoins: DJi4fgSMxcq5vRjytvCEq9A1TVsDZevd7c Whats This?

Dogecoin Tips

Hi all!
I just enabled a plugin allowing easy donations using the (many wow) dogecoin crypto currency,
if you wanna tip me for the content of this blog, feel free to give away your such awesome DOGEs at DJi4fgSMxcq5vRjytvCEq9A1TVsDZevd7c !

Dogecoin-NASA

to the moon

Very Thanks!

Donate Dogecoins: DJi4fgSMxcq5vRjytvCEq9A1TVsDZevd7c Whats This?

Fedora 20, How I got by my RPM breakage of the day

It’s not that common that RPM breaks its database, but it already happened to me twice since f20 released.

Last time, and because I was in a hurry, I finished by simply reinstalling my system, but today I think I got through enough WTF to post something about it.

It started with the usual message of a yum no longer able to install anything, and a notice about corruption and the advise of rebuilding the package database.

That’s what I did, with rpm --rebuilddb but that lead to a brand new error message… so was my first time it broke that bad. rpmdb --rebuilddb didn’t do any better so I finished with this very old (and bad) advise which consists of removing the databases files themselves. After that, the above –rebuilddb commands worked well, but:

  • Yum was by then unable to connect to any mirror, because it was unable to parse the $releasever tag for its queries,
  • yum check was reporting about 2500 packages with missing dependencies (!!!)

I found the first issue very irritating, because despite of the database problem that was finally gone, I was now hit by a bug from nowhere preventing me from fetching the packages I could require for fixing my stuff…
But hopefully this can be worked around by passing the –releasever=20 parameter to any yum command.

So now, what do when yum puts $releasever in the URLs of the mirrors it tries to connect with? Simply install the fedora-release package that provides the missing redhat-release.

But this sadly doesn’t fix the 2500+ “has missing requires” errors returned by yum check. Before moving away the rpmdb files, I did a rpm -qa > pkglist.txt just inc case… So what about a yum $(cat pkglist.txt) then? Sadly it didn’t work, with yum answering all packages are already installed… (Hu! ô.O) So I ended with the above snippet (source):

yum check dependencies \
| grep 'has missing requires' \
| sed 's/.\+has missing requires of //' \
| sed 's/ [=<>].\+//' \
| while read dep; do yum -y install "$dep"; done

This will run yum install as many times as there is a missing dep, so it will literally kill your yum history and very likely run much more commands than required. I’d rather suggest a:

yum check dependencies \
| grep 'has missing requires' \
| sed 's/.\+has missing requires of //' \
| sed 's/ [=<>].\+//' > yumrescue.list

in combination with a yum install $(cat yumrescue.list)

Hope it helps.

Donate Dogecoins: DJi4fgSMxcq5vRjytvCEq9A1TVsDZevd7c Whats This?

RIP Neil Armstrong

I won’t write a long post. This news hit me more than expected. Neil, you were a symbol, a figure of one of the most beautiful human achievement… all mankind is thankful, and me even more. RIP Neil Armstrong !

Photo: http://en.wikipedia.org/wiki/File:Neil_Armstrong.jpg

Donate Dogecoins: DJi4fgSMxcq5vRjytvCEq9A1TVsDZevd7c Whats This?