Archive

Posts Tagged ‘linux’

Patching Running Linux Kernel

October 27th, 2014 No comments
Categories: linux Tags: , , ,

Eve Online on Linux

October 1st, 2013 3 comments

A long time ago in a galaxy far, far away….there was a native Linux client for Eve Online. Someday, some bloody Sith decided to cancel further development. Since then, only a Windows client was officially available. If you were a hardcore nerd, you tried Wine to get things up and running. The result was depending on the versions of Wine and Eve itself.

I gave up using this setup years ago and walk through the dark and muddy paths of Windows to play my favorite game. Several time ago, a MAC client was introduced which basically is a WineX/Cedega shipped with Eve and I got hope CCP would start supporting such an approach in a way Linux would benefit from it too. Nothing like that happened so far…which makes me sad…

But today things changed a bit, because I got it Eve up and running again with Wine on an Intel HD 4600 grafics adapter. I will describe nearly all I’ve done, also stuff that didn’t work because Wine seams to behave a little randomly 😉 Here’s my setup:

  • Intel HD 4600
  • Debian GNU Linux Jessie (testing) with 3.10-3-amd64 kernel
  • Wine 1.4.1

My first approach was to build wine for 64-bit architectures from source, by adding –enable-win64 to the configure variables in the wineinstall script. But this didn’t work with the 32-bit binary of the Eve installer. So I’ve tried building a 32-bit Wine from source. Unfortunately, therefore you need several 32-bit libraries and their sources. They can be made available by adding i368 architecture support to system, which I describe next because it is needed anyway. The config.log file which is written during the configure process when you execute the wineinstall script (see Wine README for description) will give you hints about the missing libs.

To shorten this: I couldn’t get Eve working with this new version of Wine, which potentially does not mean it won’t since it is marked with Gold Status on the Wine website. Well I lost a little faith here so I removed all I had done so far and started from skretch with the Wine included in the APT packet pool. After a

sudo aptitude install wine

and executing it, you will be told that this isn’t a real wine installation because it currently is not natively available for 64-bit architectures. So you have to do a:

sudo dpkg –add-architecture i386
sudo aptitude install wine:i386

It is also necessary to get winetricks via:

wget http://winetricks.org/winetricks
chmod +x winetricks

When all this is done you need to start winetricks and install the following components (individually and ordered is prefered!)

  • corefonts
  • vcrun2005 (MS VC++ 2005 / MFC libs)
  • vcrun2008 (MS VC++ 2008 / MFC libs)
  • vcrun2010 (MS VC++ 2010 / MFC libs)
  • d3dx9_43 or newer d3dx9_36 also works if having trouble (DirectX 9)

I’m not sure if all the VC++ stuff is needed or just the actual one. But two things are very important here!

  1. DirectX has to be installed after VC++ libs ! I don’t know what the problem is, but doing DirecX first raises errors on vcrun installation and breaks things.
  2. After installing all this you need to change the order in which Wine uses the libs of MVC++ 2010. This does all the magic I needed to start Eve. Therefore start winecfg, navigate to the libraries tab, and set the state of the msvcr100 entry to (builtin,native) via the Edit button.

Now you can begin to install Eve Online. There are some minor bugs with missing text etc. But all works for me. The performance is a little bit poor but I think with a proper grafics card all is fine. There are also some D3D tweaks known to improve performance by adding them to the wine config. I haven’t tested this yet but I’m quite sure performance in general is getting better in the future.

Have fun and fly dangerously!

Categories: EvE, games, nerdcore, software Tags: , , ,

Recovering microSD under Ubuntu (12.04), should work on other Linuxes

January 28th, 2013 5 comments

My Android phone somehow managed to kill the inserted 32 GB microSD card, which is really annoying as I have most of my applications on this card and – which is much worse – photos taken at several occasions.

When I connected the card (via an SD-microSD adapter), Ubuntu told me “mount: /dev/sdb1: can’t read superblock” (obviously trying to mount it as ext).  Forcing Linux to mount the card as FAT didn’t work either, so I googled somewhat and found a tool called TestDisk!

TestDisk allows to recover lost data and this is what I did to get most of my content back

  1. sudo apt-get install testdisk
  2. sudo testdisk
  3. [Create] create a new log file
  4. Select /dev/sdb (“…FlashMedia”) and Proceed
  5. Select [Intel] Intel/PC partition
  6. (Backup, just in case sth happens)  [Advanced] -> [Image Creation] -> Select target Folder
  7. [Analyze]->[Quick Search]
  8. [Enter to continue]
  9. [Deeper Search]
  10. [P] (list files)
  11. [A] (select all files, which includes folders)
  12. [C] Copy files
  13. select target folder
  14. [C] (copy to selected folder)

And thats it 🙂 Whee!!!!

Categories: linux Tags: , , , ,

Ubuntu not usable anymore?

October 31st, 2012 No comments

Seems so. From wikipedia:

Version 12.10 also requires users to agree to allow Ubuntu’s parent company Canonical to collect user search data and IP addresses and to disclose this information to third parties including Facebook, Twitter, BBC and Amazon, drawing criticism from privacy advocates[119]. According to the Free Software Foundation, the “adware” introduced in version 12.10 violates users’ privacy and “is one of the rare occasions in which a free software developer persists in keeping a malicious feature in its version of a program.”[120] Citing concerns about data leaks, The Electronic Frontier Foundation has outlined a number of requested improvements for future versions, asking Ubuntu developers to “make sure that you respect your users’ privacy and security.”[121] Responding to criticism of the earlier beta version, in relation to privacy complaints, Shuttleworth said “Your anonymity is preserved because we handle the query on your behalf. Don’t trust us? Erm, we have root. You do trust us with your data already.”[117]

That sounds awful. I mean, that’s the cause why I use free software, because the have usually no indent so sell you. Well, guys, now is the question: what next? Back to Gentoo? Sure not :-/

Categories: linux Tags: , , ,

Memory management with linux

August 27th, 2012 1 comment

Tools like “top” o “cat /proc/meminfo” do not really help when trying to find out how much memory is really used by the system. “htop” does a better job but instead try:

free -m

especially the “-/+ buffers/cache” line will tell you how much RAM is really still available. How to demand your memory back from the system?

echo 3 > /proc/sys/vm/drop_caches

This will free the page cache, dentries and inodes (this is the blue and yellow marked buffer/cache part in htop).

Categories: Uncategorized Tags: , , ,

Colorfull man pages

July 8th, 2011 7 comments

Ubuntu server installation provides colored man pages – nifty 😉
This is what has to be done to get it working in a X session terminal:

sudo aptitude install most
sudo update-alternatives --config pager

Choose “most” from the list and test it with a man pagge “man test”.

Have fun . . .

[update] As always, bert nows more 😉 :
I have found a major and a minor flaw in using most as the man pager:

Major: I use the -X option for less (by putting them into the LESS env variable [1]). This does not clear the terminal on exit of less. Thus, you see the last viewed page of the manual. This is particular helpful when looking-up a command line option, so I can copy’n’paste the option to the command line after quitting less. I can’t find a similar option for most.

Minor: less shows the name of the manual page in the bottom prompt, while most just shows ‘*stdin*’.

Footnote [1]: For the curious reader, this is the content of my $LESS: -MSiRXF. Feel free to look them up in the manual.

Categories: bashism, fun, linux, Uncategorized Tags: ,

WinXP Epic Fail or how a penguin made my day

June 12th, 2011 No comments

Well, all work and no fun make Jack a dull boy. That’s why at my PC at home, there’s a Windows XP installed besides my usual Linux installation. With it I do the in my opinion only thing Windows is better in than Linux, gaming. One can have other opinions, but for now that’s not the point.

In my experience a Windows system needs just a little bit of time to get slower and slower and start behaving crazy which leads to getting unusable and to a reinstallation. I had to say I was a little bit proud of this special installation, because I had no real difficulties within the last 6 month. Maybe it is because I just installed a Firewall, a Software to detect viruses and the single game I usually play … or it just waited until I was unsuspecting. But today it greets me with a nice black screen and the following white letters on it:

Windows could not start because the following file is missing or corrupt:

<Windows-root>system32\hal.dll.
Please re-install a copy of the above file.

Ok I do not exactly know what this file does (Managing Hardware access if I have to guess), but I’m sure I never touched her, seriously!

After th obligatory reboot a little bit of panic, anger and sadness followed. In the next second I started searching the web for a solution, or to get a copy of this hal.dll file. I read a bit in crappy forums and decided to find a file download with the dull feeling in my mind, that it can’t be a good idea to get a system-essential file from a source I don’t trust. In this moment a little penguin in my mind whispered “wine”… First I was confused, I more like beer but then I understand – WINE!

Excited typing began, for the hunt of hal.dll in my wine source directory. I smiled when I found it at the expected position. “Too easy to work!”, I thought… Next I mounted my NTFS partition and copied the file to where it whould be if my stupid Win*** didn’t lost it. Unmount, Reboot and crosses fingers followed. And what should I say? SUCCESS!

At the end I need to say, it is a nice job for (not) an emulator to fix the stuff it (not) emulates! 😉

Categories: DOS, fun, linux, nerdcore, software, wtf Tags: , , ,

package of the day

May 30th, 2011 No comments

it has probably bin there from the beginning – i just didn’t know it was there. There’s a nifty little tool, simply called “at”, that can be used to schedule jobs for later execution. So instead of man-paging-together a long command line using shutdown to reboot my machine somewhen late at night i now do:

at 13:37
reboot
[ctrl]+[d]

The job is scheduled for the next point in time possible (that may be the next day if the time specified is already past). Each job gets assigned a number that can be used to delete it with “atrm” and one can list all jobs pending with “atq”.

. . . simplicity at work . . .

Categories: nerdcore, software Tags: , ,

CLT2011

March 19th, 2011 No comments

[12:15]

Sitze im 2. Vortrag. Showfloor sah heute sehr gefüllt aus.

Erster Vortrag von Mario Haustein zur WLAN Entfernungsmessung war sehr spannend und wissenschaftlich.

Zweiter Vortrag von Andreas Krennmair ist vom Thema (STFL Text GUIs) her spannend allerdings etwas offesichtlich (das ein GUI Framework verschiedene Widgets/Formulare besitzt sollte selbstverständlich sein). Vielleicht wird er in der nächsten halben Stunde noch etwas spannender.

[14:30]

CMake Vortrag war eher langweilig. Was allerdings lustig und (für mich neu) war ist die Windows Installer Funktionalität von CMake. Ist schon erstaunlich das man in einer Live Demo mingw benutzt um unter Linux ein Windows Binary zu Kompilieren und dann wine benutzt um es zu installieren und zu demonstrieren. Sind noch am überlegen ob wir in einen Kernel oder einen Security Vortrag gehen.

One-liner pin shell and processes

November 26th, 2010 No comments

There’s no rocket science content in this post. It’s just something I use often and don’t want to forget.
If you want to pin a shell and all prospectively started processes to a specific subset of cpus execute:

taskset -pc `echo $$` <cpu-list>

Not only that it limits intererences between processes (user 1 might work on node 1, user 2 on node 2), it can also help increase energy efficiency. If all background threads are pinned on a single processor-core, other cores can be send to sleep for a longer time period, which allows higher C-states.

Update: Added <cpu-list>

Categories: linux, nerdcore Tags: , ,