linux

Elder Scrolls Online on Linux

Got a beta invite for ESO and of course I wanted to get it running in Linux.

Little about my setup: I use PlayOnLinux on ArchLinux to manage my wine versions and to contain the bottles. I do not use it to do anything else honestly.

Here is how I got it running on my install…

I installed the game on a Windows machine at first, as wine has some bugs with the installer. There is a patch available to your wine version if you want to install it directly. This site might help you with that patch http://blog.internetz.me/2014/02/28/eso-install-linux-kali-also-works-ubuntudebian/

I then copied over the entire folder structure to my system to my revodrive I have mounted in /revodrive. (You can skip this. It is for me specifically.)

I told PlayOnLinux to download 1.7.11 x86 version of wine.

I then create the prefix to hold this bottle.

$ WINEARCH=win32 WINEPREFIX=~/.PlayOnLinux/wineprefix/ESO /home/username/.PlayOnLinux/wine/linux-x86/1.7.11/bin/wine winecfg

I then create a link from that bottle to my revodrive. (You can skip this. It is for me specifically.)

$ cd ~/home//.PlayOnLinux/wineprefix/ESO/drive_c/Program\ Files
$ ln -s /revodrive/Zenimax\ Online Zenimax\ Online

You can copy your entire “Zenimax Online” folder to the bottles Program Files directory.

I needed to install a few things.

$ sudo pacman -S lib32-libxml2

We need to install VC Runtimes 2010 into the bottle, you can have PlayOnLinux do this.
We need to install DirectX into the bottle, you can have the Installer do this.

I used PlayOnLinux to install the vcruntime2010 in the bottle.

We should now re-run the ESO installer to set some stuff up.

$ cd ~/Downloads
$ wget https://elderscrolls-a.akamaihd.net/products/BNA_Launcher/Install_ESO_Beta.exe
$ WINEARCH=win32 WINEPREFIX=~/.PlayOnLinux/wineprefix/ESO /home/username/.PlayOnLinux/wine/linux-x86/1.7.11/bin/wine ~/Downloads/Install_ESO_Beta.exe

Tell it to install in the default path, and it will complain that it already exists. This is fine, just continue. Once it’s done installing uncheck the VS2010 runtimes box, uncheck the Play Game box and keep the DirectX box checked. Click finish and let it install DirectX into the bottle for you.

Now we need to create a script file to run the game correctly, just like we did with Skyrim on Linux.

$ nano ~/.PlayOnLinux/wineprefix/ESO/drive_c/eso.cmd

Place this in the eso.cmd file

C:
CD \Program Files\Zenimax Online\The Elder Scrolls Online\game\client
eso.exe

Then we can run the game with (I put this in a shell script to make it easy.)

$ WINEARCH=win32 WINEPREFIX=~/.PlayOnLinux/wineprefix/ESO /home/username/.PlayOnLinux/wine/linux-x86/1.7.11/bin/wine cmd.exe /c C://eso.cmd

Run the command or script, you should get some errors and the game might run. Once you can close the game, do so. It should create a folder in the My Documents called “Elder Scrolls Online” under here we have two folders now “ESO_BUILD_BRANCH” and “live” go into the “live” folder and edit or create a file named “UserSettings.txt”. If it does not exist create it and add one line

SET GraphicsDriver.7 "OPENGL"

If the file does exist open it and find a similar line, change it to the above.

Load up the game and check your resolution settings. I set mine but it did not take effect. Exit the game, edit the “UserSettings.txt” file again and find the resolution lines, change to your preference.

You should be able to run the game now.

I had some trouble after logging in joining the game world, it seems like other games it does not like running through my VPN. I bypassed my VPN and used my direct WAN by allowing 198.20.200.0/24 to bypass the VPN.

If you get an error similar to the following you need to change to OPENGL mode as it’s trying DirectX mode. Also, the last error is resolved by running with the script above, or another way that changes to the working directory and running the eso.exe

fixme:d3d11:D3D11CreateDevice stub: adapter (nil), driver_type D3D_DRIVER_TYPE_HARDWARE, swrast (nil), flags 0x20, feature_levels 0x33fccc, levels 0x1, sdk_version 7, device 0x28e4dd8, feature_level 0x28e4ddc, context 0x33fcd0
fixme:win:EnumDisplayDevicesW ((null),0,0x33f6d8,0x00000000), stub!
fixme:d3d:swapchain_init The application requested more than one back buffer, this is not properly supported.
Please configure the application to use double buffering (1 back buffer) if possible.
fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),0,3,(nil),0,(nil)) - stub!
fixme:wbemprox:client_security_SetBlanket 0xf3c82318, 0x3934ed8, 10, 0, (null), 3, 3, (nil), 0x00000000
fixme:wbemprox:client_security_Release 0xf3c82318
fixme:win:EnumDisplayDevicesW ((null),0,0x33eec8,0x00000000), stub!
Launching Crash Handler:
EXE : ZoCrashReporter.exe
Args: en \\.\pipe\ZoCrashReport\eso\c06c67ad Local\ZoCrashReport.SyncEvent.eso.c06c67ad "C:/users/username/My Documents/Elder Scrolls Online/live/Errors/"
PID: 22
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
Registering
Requesting Dump
Waiting on Child Process
Saving the details of your error...

Some people might have issues with a certificate error. Here is what you do.

$ cd /usr/share/ca-certificates/
$ sudo mkdir custom
$ sudo nano /usr/share/ca-certificates/custom/Thawte_CS_CA_G2.crt

Paste this into the file

-----BEGIN CERTIFICATE-----
MIIEnDCCA4SgAwIBAgIQR5dNeHOlvKsNL7NwGS/OXjANBgkqhkiG9w0BAQUFADCB
qTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMf
Q2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIw
MDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxHzAdBgNV
BAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwHhcNMTAwMjA4MDAwMDAwWhcNMjAw
MjA3MjM1OTU5WjBKMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMVGhhd3RlLCBJbmMu
MSQwIgYDVQQDExtUaGF3dGUgQ29kZSBTaWduaW5nIENBIC0gRzIwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3i891W58l2n45sJPbONOpI9CC+ukkflwL
joP45npZ5qPFmKeZ0kT/AKalOQSK2imI6tui8xyZFSbCsfT84QxHqQkRBgogkrnH
oASMXJQZq1slLB1ifnANzmFs3SuCyc5dSF/3wr68QSMeTyld10+89MUq/GPmfCZO
mad5QZ4QSnp5ycaG94aV0ibOPBgq1nzOr82tu/eCLHAmN0XlD0cixgEovS6DXGqk
R8Hn0NhrgUY/IRf1B8VDWqZnLLh7YBG1g+71dApycUQ9WP7oGqs4w1nbf244fXbH
cmmYNpZX02Yc0lSRBC5UGbDcPbUiXobVKn4g313merFl/sUCTjEtAgMBAAGjggEc
MIIBGDASBgNVHRMBAf8ECDAGAQH/AgEAMDQGA1UdHwQtMCswKaAnoCWGI2h0dHA6
Ly9jcmwudGhhd3RlLmNvbS9UaGF3dGVQQ0EuY3JsMA4GA1UdDwEB/wQEAwIBBjAy
BggrBgEFBQcBAQQmMCQwIgYIKwYBBQUHMAGGFmh0dHA6Ly9vY3NwLnRoYXd0ZS5j
b20wHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMDMCkGA1UdEQQiMCCkHjAc
MRowGAYDVQQDExFWZXJpU2lnbk1QS0ktMi0xMDAdBgNVHQ4EFgQU1A1lP3q9NMb+
R+dMDcC98t4Vq3EwHwYDVR0jBBgwFoAUe1tFz6/Oy3r9MZIaarbzRutXSFAwDQYJ
KoZIhvcNAQEFBQADggEBAFb+U1zhx568p+1+U21qFEtRjEBegF+qpOgv7zjIBMnK
Ps/fOlhOsNS2Y8UpV/oCBZpFTWjbKhvUND2fAMNay5VJpW7hsMX8QU1BSm/Td8jX
OI3kGd4Y8x8VZYNtRQxT+QqaLqVdv28ygRiSGWpVAK1jHFIGflXZKWiuSnwYmnmI
ayMj2Cc4KimHdsr7x7ZiIx/telZM3ZwyW/U9DEYYlTsqI2iDZEHZAG0PGSQVaHK9
xXFnbqxM25DrUaUaYgfQvmoARzxyL+xPYT5zhc5aCre6wBwTdeMiOSjdbR0JRp1P
uuhAgZHGpM6UchsBzypuFWeVia59t7fN+Qo9dbZrPCU=
-----END CERTIFICATE-----

Save the file and exit. Then edit

$ sudo nano /etc/ca-certificates.conf

add to the bottom of the file

custom/Thawte_CS_CA_G2.crt

Then update the certificates store.

$ sudo update-ca-certificates
By |February 28th, 2014|0 Comments

Installing Kolab 3.2 on CentOS

Kolab the open-source groupware collaboration project released version 3.2 on Valentines day. I have been on version 3.0 for some time now and wanted to get away from using ownCloud and some other projects and just use Kolab as it was doing my mail, contacts and calendaring anyway.

The installation process is not all that difficult, here is what I did to install the software.

Lets get some utilities.

# yum install wget
# yum install nano

First we need to prepare the target system. The document http://docs.kolab.org/installation-guide/preparing-the-system.html tells us we need to relax the SELinux policy.

# setenforce 0

Lets also make it persist across reboots.

nano /etc/selinux/config

Change `enforcing` to `permissive`.

At this point (since this is a completely internal install) I wanted to disable the iptables firewall. (We can re-enable later after it’s all working).

# /etc/init.d/iptables stop
# chkconfig iptables off

Kolab has some very strict DNS requirements for how this machine refers to itself, and how people locate this machine.

# hostname -f

This needs to be exactly how you connect to this server via the web interface. If this is not how your external DNS will handle this servers FQDN you need to fix your hosts file.

# nano /etc/hosts

Follow the steps @ http://docs.kolab.org/installation-guide/centos.html

First we need to install EPEL. (At the time of this post, this is the most current RPM you need for EPEL.)

# rpm -Uhv http://mirror.chpc.utah.edu/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Next download some files with wget that add the Repos.

# cd /etc/yum.repos.d/
# wget http://obs.kolabsys.com:82/Kolab:/3.2/CentOS_6/Kolab:3.2.repo
# wget http://obs.kolabsys.com:82/Kolab:/3.2:/Updates/CentOS_6/Kolab:3.2:Updates.repo

Next we can install all the packages Kolab needs.

# yum install kolab

After all these are installed we (at this time, its a bug that needs fixing) need to fix the template script for amavisd.conf

# nano /usr/lib/python2.6/site-packages/pykolab/setup/setup_mta.py

Look around line `386` the small block should look like the following

        if os.path.isdir('/etc/amavisd'):
            fp = open('/etc/amavisd/amavisd.conf', 'w')
        elif os.path.isdir('/etc/amavis'):
            fp = open('/etc/amavis/amavisd.conf', 'w')
            fp.write(t.__str__())
            fp.close()

Take a look under the second line, it opens the file but does not write and then close it. We need it to do this or we will get a zero byte empty amavisd.conf file.

If yours looks like the above make it look like this

        if os.path.isdir('/etc/amavisd'):
            fp = open('/etc/amavisd/amavisd.conf', 'w')
            fp.write(t.__str__())
            fp.close()
        elif os.path.isdir('/etc/amavis'):
            fp = open('/etc/amavis/amavisd.conf', 'w')
            fp.write(t.__str__())
            fp.close()

You see I have added two lines under the second. Save the file and exit.

Now we can continue installing Kolab.

# setup-kolab

During this install you will be asked for many passwords. Write down the defaults or make up your own passwords.

After the install is complete, I reboot the system to make sure all services are started and that everything loads correctly.

We now need to update the database schema. At this time, even on a fresh install the database schema is out of date. I found this out by finding some odd bugs and talking about them in the Kolab IRC channel. After running the update database script they all went away.

# cd /usr/share/roundcubemail/
# ./bin/updatedb.sh --dir plugins/libkolab/SQL --package libkolab
# ./plugins/libkolab/bin/modcache.sh clear -a

I changed my Kolab web services to run off a different port, I had to edit `nss.conf` which is part of Apache.

# nano /etc/httpd/conf.d/nss.conf

Two parts of this file need to be changed if you want to change from the default SSL port that Kolab ships with. The default SSL port is 8443. Find the lines

Listen 8443
VirtualHost _default_:8443

Change the two mentions of 8443 to your own port.

If your going to be using only SSL then we need to make a few more changes in some files.

`config.inc.php`

# nano /usr/share/roundcubemail/config/config.inc.php

I added the following lines under the `$config[‘db_dsnw’] value.

    $config['calendar_caldav_url'] = "https://your.fqdn.tld:8443/iRony/calendars/%u/%i";
    $config['kolab_addressbook_carddav_url'] = 'https://your.fqdn.tld:8443/iRony/addressbooks/%u/%i';

Change the FQDN and the ports to match your setup.

`kolab_files.inc.php`

# nano /usr/share/roundcubemail/config/kolab_files.inc.php

I change the `kolab_files_url` variable by adding an `s` to `http`

$config['kolab_files_url'] = 'https://' . $_SERVER['HTTP_HOST'] . '/chwala/';

There might be more files that need some changing, but I have not found any that need it yet.

This should get you on to the next step http://docs.kolab.org/installation-guide/first-login.html

Using iRony+Chwala as a WebDAV server your URL is:

https://your.fqdn.tld:port/iRony

Issues:
1. If you visit your Address Book and notice nothing shows up, you import and nothing shows. You turn off cache in libkolab.conf and the contacts show up? You need to run the database update script.

2. If you turn cache off and contacts work but the cloud files break you need to run the database update script.

3. If the buttons on the files page are disabled you might need to go through and verify all URLs are correct for HTTP(s). Verify your FQDN, DNS Settings at your provider, and check your hosts file for correct entries. It seems that the files page is very picky and requires that from the page be able to loop back and see itself. So all your hostnames, and FQDNs have to be exactly as they are. If your using SSL be sure to edit the files I mention on this page and change http to https that are hardcoded in the PHP files.

By |February 20th, 2014|12 Comments

ArchLinux on OVH Dedicated Server

OVH offers (at the moment) two ArchLinux distributions. One is not working as of this writting and the other is fairly old, and has a mix of initd and systemd parts. The partition wizard for the control panel is not great either.

I wanted to install a clean ArchLinux base and was looking around how to do it easily and correctly from the offered rescue-cd bootable they offer which happens to be a debian variant.

I found the following site: http://guillaumejcharmes.blogspot.com/2012/12/up-to-date-arch-linux-kernel-with.html.

Here are the important parts:

> gdisk /dev/sda
> mkfs -t ext4 /dev/sda1

> mount /dev/sda1 /mnt
> mkdir /mnt/tmp
> cd /mnt/tmp

> wget http://tokland.googlecode.com/svn/trunk/archlinux/arch-bootstrap.sh
> sh arch-bootstrap.sh -a x86_64 /mnt
> wget -O /mnt/tmp/havegen.tar.xz https://www.archlinux.org/packages/community/x86_64/haveged/download/

> mount -o bind /dev /mnt/dev
> mount -o bind /dev/pts /mnt/dev/pts
> mount -t proc /prorc /mnt/proc
> mount -t sysfs /sys /mnt/sys
> chroot /mnt

> cd /
> tar xJf /tmp/havegen.tar.xz
> havegen -w 1024

> pacman-key –init
> pacman-key –populate

> pacman -S base base-devel syslinux gdisk openssh sudo cmake
> gensftab / > /etc/fstab

#
# Create your hostname file: /etc/hostname containing the hostname of the system.
#

> nano /etc/locale.gen
> locale-gen
> ln -s /usr/share/timeinfo/America/New_York /etc/localtime

> mkinitcpio -p linux

> syslinux-install_update -i -a -m

> cp /etc/netctl/examples/ /etc/netctl
> netctl enable

> systemctl enable sshd.socket

#
# Modify /etc/systemd/system/sockets.target.wants/sshd.socket to change the port SSHD listens on.
#
By |July 12th, 2013|0 Comments

Apache, PHP, suPHP Problems

Last night if you tried visiting you might have gotten some errors on the site. I upgraded the servers which included a slightly newer version of PHP, Apache, and suPHP.

Everything upgraded fine but websites would not load. After some digging it was apparent that the problem was directly related to the PHP setting open_basedir. I have each virtual host configured to use its own php.ini file and that file was not being used, trying instead to use the default php.ini file in /etc/php. Which of course did not have the correct open_baseidir settings.

For some reason Apache or PHP stopped caring about the lines in my httpd-vhosts.conf file that stated:

SetEnv PHPRC /path/to/specific/php.ini

I could never find out why it was ignoring this line now. But after some research I found another that provides the same thing. Since I am using suPHP I went with the following for each vhost.

suPHP_ConfigPath /path/to/specific/folder/containing/php.ini

It’s a little frustrating that I cannot name the php config files after the vhosts because it wants a folder path without a file name, but it will do for now.

Another site that might help.

By |June 5th, 2013|0 Comments

Android Tips, Commands, Modifications

[mod][root][needs init.d enabled kernel]
Change Hostname:

$ su
# vi /system/etc/init.d/99hostname

Type in

#!/system/bin/sh
setprop net.hostname tablethostname

Save the file, reboot.
———————-

[mod][root]
Change System DNS Servers:

$ su
# vi /system/etc/resolv.conf

If the file does not exist or is empty, just create it.

Type in

nameserver 8.8.8.8
nameserver 8.8.4.4

Those are google DNS servers, or specify your own.
Save file, possibly reboot tablet.
———————-

By |November 29th, 2012|0 Comments
Load More Posts