Posts

Showing posts with the label PC Fixes

DCS World with TrackIR under Ubuntu

This is a record of my experience of setting this up.  It's meant more as a record for my future self than a tutorial, but maybe somebody will find it useful. 1 - Install DCS First step, install DCS World via the Steam client as normal.  2 - Install LinuxTrack Linuxtrack Download here: https://github.com/uglyDwarf/linuxtrack/wiki/Downloads   Instructions here: https://github.com/uglyDwarf/linuxtrack/wiki/universal-Linuxtrack-package   Using the gui (ltr_gui) requires qt4 libraries, which I could not find in my standard Ubuntu repositories, so I had to use the ppa instructions here: https://ubuntuhandbook.org/index.php/2020/07/install-qt4-ubuntu-20-04 Run ltr_gui from linuxtrack's bin directory to check everything works so far before moving on to get it running under Proton.  3 - Install LinuxTrack into the DCS World prefix NOTE: Attempting to install for Wine games WON'T WORK e.g. here https://github-wiki-see.page/m/uglyDwarf/linuxtrack/wiki/Wine-Games   Th...

RAID 6 --> ZFS pool

Today I completed the transition of my NAS machine from RAID 6 to a ZFS pool.  To document the process for my future self and any semi-interested rando who stumbles across this, here is an outline of how I did it. Part 1 - Research I found this 'ZFS for Dummies' post really useful to re-familiarise myself with the core concepts.  Once I'd done that, the Ubuntu examples here were really useful as well as this post with more detailed information than I would ever need. My RAID was nowhere near full, which meant I could manage the process without having to restore everything from backups (although I made damn sure I had working backups before I messed with it). Part 2 - Degrading the RAID and pooling the freed-up drives First, I marked two drives from the RAID as failed so I could use them in the zfs pool.  I changed their partition type with cfdisk but I had trouble making a pool out of them because they kept on being picked up and re-started as a raid device.  In ...

AIDE Intrusion Detection Over SSHFS

To explain why and how I've done this, I'm going to talk a little about my home-security measures/architecture, which I'm not too comfortable about.  However, security-through-obscurity isn't security at all so here goes... I've used AIDE ( the intrusion detection program , not the Android IDE) for years now to improve my confidence that nobody is poking around on the home machines I have open to the internet. I have my internet-visible machines on their own separate subnet under a dedicated router.  I call it a DMZ , even though I'm not 100% sure that's technically accurate in my case. Anyway, my normal trusted subnet sits under a different router, so I can be fairly confident nothing can get in from the DMZ to my trusted subnet.  However, to run the intruder detection checks, I have a machine on the trusted subnet ssh in to each of the DMZ machines in turn (copying the static-linked binary and database over each time before running the check). Ubu...

A Win7 VM on Linux!

It's been a while since I played around with qemu-kvm, but there's an app I have to use for work which only has a Windows installer. BOO! Setting up qemu on Linux was as simple as following these instructions: https://www.linuxtechi.com/install-configure-kvm-ubuntu-18-04-server/ Getting Windows 7 to install without taking a million years required the virtio drivers as described for Windows 10 here: http://bart.vanhauwaert.org/hints/installing-win10-on-KVM.html I then had problems with a seriously annoyingly jerky mouse pointer.  Searching around told me to add a USB tablet input device through virt-manager's VM setup.  That got that sorted. So, some hours of searching and progress bars later, I have a working Windows 7 VM with the work app installed!  Hoorah! Addendum: I did try to get Windows 10 to work in a VM first, but it was sooooooo sloooooooow it was unusable.  Once I've got a server with more RAM, I might try to set it up with a main disk image...

Mumble on TinyCore

Mumble is beautiful.  It is simple and does exactly what it says on the tin. Something new I discovered about it today is that the static linux release works out-of-the-box on TinyCore ! I got an old thin client off ebay a while back (an IGEL D200 ) and it's so crap it wouldn't even boot with a USB plugged in.  Maybe that's some security BS I haven't found the BIOS switch for, but I gave up on trying to find a way round it. So what I did was set up a VM in VirtualBox which had the right RAM/HDD sizes, then install TinyCore and do the setup. Then, I followed the instructions here (but with VirtualBox not VMware) to clone the VM onto the CF card from the thin client (using CloneZilla ).  I had to use the command line instructions from here to create a raw disk vmdk file for the VM.  I also had to change the permissions on the vmdk file and the block device (/dev/sdd in my case) so I didn't have to run VirtualBox as root. ...but then I slotted the CF c...

Sound Through Headphones and Speakers at the Same Time

Windows lets me have sound through my speakers and headphones simultaneously, which is great for not having to plug in/unplug my headphones when I want to switch.  I just have to don the headphones and turn down the volume on my speakers.  No fiddling about with jacks. However!  Ubuntu seemed to have no way of sorting this out. This post, however, describes how to change your line-in into an output jack! http://askubuntu.com/questions/225017/how-do-i-change-which-audio-jacks-are-used-for-input-and-output It uses the HDA Analyser tool from the Alsa Project.  Not a well documented tool, but the post above has all the information you need.

Auto-update for TinyCore Linux

I got myself in a bit of a pickle sorting this one out, but I got there in the end. The issue: To update TinyCore extensions (packages), you need to boot into a special mode (base norestore) .  Then, you need to run tce-update. This is a piece of cake to do manually, but a pain to automate. How I did it (overview): backup extlinux.conf create extlinux.conf and script to switch to boot into 'update mode' create script to switch back to normal boot add check to /opt/bootlocal.sh to see if the system is booting normally, or into 'update mode' create crontab job to regularly reboot into 'update mode' How I did it (details):

Troubleshooting NFS servers

OMFG, NFS servers are SUCH a pain in the backside.  But anyway, here are some useful tricks: On server:     netstat -l lists which services are listening on which port.    rpcinfo -p also lists rpc processes, with program numbers and ports     /etc/services The file portmapper uses to see which port the services should run on.  Names of the relevant services are: mountd lockd and status HOWEVER:     sysctl -w fs.nfs.nlm_tcpport=blah    sysctl -w fs.nfs.nlm_udpport=blah might be needed to set the port of nlockmgr.  Why it doesn't listen to portmapper, I've no idea. Debug logs:    - kill the server process (nfsd, mountd, or whichever)    - run the server process with a -F or without the -D to force it to run in the foreground (you also might have to include a debug or verbose mode option.    - try to mount the nfs share from the client.  Now you should get a load of mean...

OpenVPN with Ubuntu and Via's Padlock Technology

Why? I've been using OpenVPN for gaming.  I have heard of Hamachi , but open source tastes better. I wanted to have an OpenVPN client running 24/7, so I tried running it on a low-power laptop.  This led to unacceptable latency and disconnects.  The encryption load was just too much. Having a powerful desktop running would solve that, but running costs build up all too fast. What? Via produce processors with low power consumption and hardware acceleration for encryption with their Padlock system. After quite a lot of searching for a cheap Via machine, I found this on eBay .  It's got a Via C7 processor (all of which have Padlock), and it turns out to use less than 30W even on peak load. How? I replaced the 1GB Compact Flash card with an 8GB one, then installed Ubuntu Server 12.4.1 via a USB stick.  (Choosing to install the OpenSSH server). I had found plenty of sources telling me to check which engines were available.  However, when I t...

Testing a blank hard drive for errors

http://thelinuxexperiment.com/guinea-pigs/tyler-b/how-to-test-hard-drive-for-errors-in-linux/ "badblocks -b 4096 -p 4 -c 16384 -w -s /dev/sda" WARNING: This test wipes all data on the hard drive

Samba and NFS locking problem and permissions

Solved an odd problem today. Problem 1: File locking My samba share directory on my ubuntu box has an nfs mounted directory within it. When copying files into it from Linux, everything was fine. However, Windows complained of error number 0x80070021 (something about another process locking a portion of the file).  It turns out Samba was trying to lock the file again once nfs had got its hands on it. Solution: in smb.conf, under [global], add 'strict locking = no' and the problem disappears! Problem 2: File permissions Linux coped perfectly fine already, possibly because of the file_mode=0777 and dir_mode=0777 that I'd added to fstab.  However, Windows failed to create the files with the correct permissions. Solution: under [mediashare], add 'create mask = 0775' and the permissions are right under Windows too!

Potential Cause of Persistent Crashes

I've been concerned for a while that my cardboard case doesn't properly support the weight of my graphics cards. I've experienced persistent freezes and spontaneous resets under Ubuntu, and thought it was a driver issue. This morning, I had crashes in Ubuntu 10.04LTS, 11.10 AND Windows 7.  When I nudged one of the graphics cards up and rebooted, Windows 7 was fine. I have now added more support for the graphics cards.  11.10 still freezes.  So far 10.04LTS still going strong.  Haven't tested Win7 yet.

Stability issues with R8168 network driver

Fix here: http://ubuntuforums.org/showthread.php?t=1861865

Ubuntu 11.10 ATI Drivers

Installing stable ati drivers on Ubuntu 11.10 is a pain in the backside, but here's the latest attempt: http://webcache.googleusercontent.com/search?q=cache:aRlqZkHo_JQJ:linux-software-news-tutorials.blogspot.com/2011/10/ubuntu-1110-oneiric-problems-with-ati.html+ubuntu+11.10+x64+stability+issues&cd=6&hl=en&ct=clnk&gl=uk&client=ubuntu