2018-10-11 CLEANUPS AND NEW PAGE
- Added a Wine+Twitch page
- Cleaned up Wine+Path Of Exile page
- Added LVM Cache notes to the LVM Cheatsheet.
Feel free to plug any ideas that would warrant a good writeup.
New on the itinerary would be mailcow, as it seems another viable alternative to GMail and a good option if not interested in using MailInABox. Plus it is INTENDED to be used as a set of docker containers. So if one's workflow is doable %100 inside of docker, this is a great option. I do fall in that category at home, and can deploy all services via docker on all my servers (personal and managed). So this is an interesting topic.
Along the docker line, I am keen on getting my feet wet on Fedora Modular server. So I will be looking to spare time to play with that and see if it can handle the beating it will need to endure to replace my RHEL7 infrastructure at home.
2018-05-19 NEW PAGES
Added a few pages:
- Git SSH repo
- Oracle VirtualBox Cheatsheet
- Ubuntu Tips & Tricks
2018-05-17 SITE REORGANIZATION PT II
- Removed outdated (or soon to be) information
- Blog is now landing page
- All site resources are together
- Testing internally combining pages together, and using the Table Of Contents feature to be the subsection selector.
- Paid services section
Goal is nearly met -- simplification to the point I no longer have to tell anyone ever where something is. I am hoping that I can get away with "Red Hat Products", "General Linux", and "Wine" to be it for the entirety, with room for "BSD & Others" a possibility. Again the internal testing may make this moot, as its just a TOC entry. One issue I have found is the various themes for mkDocs handle the TOC differently, so I may have some extra leg-work ahead on this one. Thats what programmers are for :D
2018-05-16 SITE REORGANIZATION
Reorganized the site so the categories are less, and allows for more distinct categories present. Site information eventually will be cleaned up and become the one page, and the blog will be the landing page. That will not happen today, but the ball has begun.
2018-05-06 SITE UPDATES
Uploaded a large number of new writeups, from general linuxy things, to dockerizing Factorio, to using xmrig to mine monero!
2018-01-10 MAILINABOX UPDATE ISSUE AND RESOLUTION
The latest update (v.25) from 15 NOV 2017 has some issues with updating z-push. The fix as of the last month or so has been to do a git pull that has a few workarounds. Here are the following steps to fix the issue. When run, you will need to re-answer a few questions (domain, IP, etc.) as the original answers are in the mailinabox_old folder now. Just answer them correctly, and you will be fine.
sudo -i apt-get update apt-get dist-upgrade apt-get install git cd /root mv mailinabox mailinabox_old git clone https://github.com/mail-in-a-box/mailinabox.git cd mailinabox bash setup/start.sh bash setup/start.sh # the first one might fail due to bug #1298, run it again to make it succeed
2017-12-09 GNOME3 FIX LOCK SCREEN NON-FUNCTIONAL
Sometimes the upgrade from F26->F27 breaks the GNOME3 lockscreen. Whatever the cause is, here is the proper fix:
gsettings set org.gnome.desktop.lockdown disable-lock-screen false
2017-12-05 KSPLICE UPDATE
Loving it! Works great on my two Fedora 27 installs. Only downside is it doesn't appear to do NVIDIA modules :(
2017-11-21 KSPLICE -- FREE TO FEDORA & UBUNTU USERS
Ksplice, Oracle's kernel patch tool for avoiding reboots to take in kernel updates, is apparently available to Fedora and Ubuntu users, and free now. Not sure for how long, but it is now!
2017-11-20 DOMAIN UPDATES
Made a few changes to things:
- Updated the site to also include a widget for Discord. This was easy, but Discord is still a secodary at best method of chat for us.
- Working on widget for Mumble. Some php bugs to iron out still.
- Working on getting things sanitized for public dissemenation on Gitlab & Github. Stay tuned for future announcements here. Mostly game server related.
- Rewriting ALL of my docker scripts to be cleaner, more portable, and simpler to deploy. My current CSGO and Minecraft containers are on dockerhub. It takes some effort to make work, not unsurmountable, but more than it should, or want.
- Some site documentation cleanup and reorganization. Debating further restructuring.
2017-09-07 YUM/DNF TIP
Ran into an update issue on my home server where for some oddball reason, some of the packages that had DRPMs weren't finding the DRPM and not falling back to the RPM. The simple fix thankfully wasn't too difficult to locate, and was in the RHEL7 documentaion.
What needs to be done is simply disabling for that update the presto yum plugin:
For EL6, EL7, & AMAZON LINUX
sudo yum update --disableplugin=presto
sudo dnf update --disableplugin=presto
2017-07-20 NEW PACKAGE : sndio
Added this package since no other published repo has it, and it was VERY easy to whip up. In EL7, FC25, and FC26 repos.
2017-07-20 FEDORA 25 & 26 REPOS
As title says, we have two new repos to correlate with the current Fedora releases. As usual, these two will be kept up with the few packages that are needed. Do not expect alot to be in here, as previously with older Fedora releases. All packages are here because nobody else is doing them, or doing them right.
FEDORA 25 REPOSITORY
- FC25 Repository : https://schotty.com/yum/fedora/25/
- RepoView : https://schotty.com/yum/fedora/25/repoview/
- Release file : https://schotty.com/yum/fedora/25/schotty-fc25-release-25-1.noarch.rpm
FEDORA 26 REPOSITORY
- FC26 Repository : https://schotty.com/yum/fedora/26/
- RepoView : https://schotty.com/yum/fedora/26/repoview/
- Release file : https://schotty.com/yum/fedora/26/schotty-fc26-release-26-1.noarch.rpm
2017-07-12 DISCOVERED SOME MARKDOWN ERRORS WITH MY SITE
I recently discovered a markdown error, that although worked, made for sloppy markdown, and hence I will classify them as errors. Slowly but surely going thru ALL my documentation and cleaning out the problem code.
My error? Blockcode. I was using the 3 tildes surrounding all code. An indent of 8 spaces works better, including in numbered lists better, and looks cleaner while editing.
2017-07-04 HAPPY FOURTH OF JULY! AND SOME REPO NEWS.
Happy Fourth to my fellow Americans!
As for the news, I have been working on a complete overhaul of packages. Some packages can go, as more popular venues (EPEL, NUX) have them now. Others will likely go for other reasons. For example, one that sadly has already gone is Lutris. DooMsDaY is another fun one, as the new version 2.xx that has been recently released (amazing update), I cannot get it to package well (its got to do with dengine's weird build system). If there is no progress I will just leave DooMsDaY at the 1.x branch and keep it there, since it does work.
Very soon I will be un-advertising everywhere the EL6 and old Fedora repos, and focus only on the latest EL and Fedora going forward. Shortly after that I will push an update for the repo-release that will change the server it points to, as I am in progress of migrating to a new dedicated repo.schotty.com. After some time I will remove all packages, sans the updated repo-release file, on the current server. I would suspect this "flip of the switch" shall occur around new years, as that should be enough time for me to finish all the repo cleanup, push, and allow others to catch up.
Also, I am working on gettting several engineering and science related packages going. But literally every single package is going to be a good deal of work to make functional. None of them have been simple or fast. Updates, going forward once I get them completed (if I can).
2017-06-24 LUTRIS, 64-BIT PREFIXES, BLIZZARD APP == SUCCESS!
As everyone should know, I am a huge fan of Crossover, and the Codeweavers gang. But, the one thing that they seem to still have alot of work on is the whole Windows world migrating to x64. Wine has had alot of changes to help facilitate that, and to be fair, only a few things are missing, thanks to the Codeweavers team working their asses off.
But as all things open source, competition makes things quite interesting. Lutris actually has some scripts that will easily make everything I have tried work with only one fix (change the Wine version to 2.8 to workaround some incompatibilities). This is great. All my fellow penguins out there know that if you had an XP prefix, you were getting a nastygram at every Blizzard App launch that you will be S.O.L. very soon. Well this script gets things working in a Windows 7 x64 prefix.
I made a video on how to do a x64 install of Path of Exile in Crossover. I generally would prefer to push them, but as Lutris is so much more than just a pretty Wine wrapper (all things gaming in fact), I am debating internally of whether I should adopt both going forward (ESO is looking to be nearly fixed in Wine, but not CX yet, etc). I will look at how much I actually need Wine for as time goes on. Frankly its pretty much Blizzard titles, ESO, PoE. Maybe if I can be forced to care, FF14 (the game sucks hard in my opinion due to boring questing and needing to research out what each class is and does since they had to reinvent that wheel). But honestly, with Albion Online, Shroud of the Avatar, Minecraft, CSGO, and the upteen million (it seems) titles that are native, the whole heretic purchasing is all MMO now. Pretty nice and bad at the same time. One would have though the MMO side would have been the first... Oh well. On to more important things than pontification of the inane.
Wodim is a CLI based iso image writer that I found as a recommendation for RHEL7 server, since brasero is not included in any of the repos. Since, these days this seems kind of backwards, as the only burning I do is FOR servers ... I need something.
On RHEL/Fedora you can install wodim by:
sudo yum install wodim
sudo dnf install wodim
To list your recording devices:
sudo wodim --devices
To record an iso (verify, 12x burn speed, eject when done):
sudo wodim -v dev=/dev/xxx speed=12 -eject /path/to/desired.iso
Look up your MAC address vendor :D Quite handy when going thru my logs with about a dozen unknown MAC's on my LAN.
2016-09-27 ONEPLUS ONE WOES
Tales of reflashing without explicit GNU/Linux support
About a year ago I ran into some corruption issues with my OnePlus One and that issue rendered ADB to have a fit, as did OTA updates, USB mode, and fastboot. Tech support wanted me to use Windows to fix it via a remote desktop session. Needless to say I was not about to let them goad me into going Windows. Well this corruption was abosulutely annoying and I was short on time and willpower to devote much of either into a literal spare device.
Alas I did. Sorta. I figured since I just got this ironed out I would share the ever so pleasant experience in getting this nightmare sorted out. I installed 8.1 onto an old disk and got it up and running long enough to get the thing fixed. If you find yourself in the same boat,below is what you want to do.
FIXING THE BOOTLOADER
1. Download and install the Samsung Drivers for Windows.
2. Reboot afterwards. And yes do reboot, its necessary.
3. Download and install the ADB Installer. Do not need to install the drivers, just ADB and fastboot.
4. Reboot just in case it is necessary. I did. Besides we all know Windows needs to be rebooted every 5min or so :D
5. Plug in your phone. Windows should ask about drivers, if not no biggie. If you do get the dialogue, you can cancel it.
6. Go into Device Manager and find the ADB heading -> The ADB device -> Right Click to the Update Driver Software -> Choose Browse my computer -> Choose Let Me Pick -> Show All Devices -> Have Disk -> Point to where the Samsung drivers were installed.
7. That should get things working again. Once you can copy stuff to the phone, you can reinstall your recovery and OS via fastboot and the recovery respectively.
Download links are in the forums. You need to grab the build and then the Windows package and instructions. The instructions will add a few details to what I have laid out, but same process.
In my case I went from a broken CyanogenMod 12.1 to OxygenOS 2.1.4. The process was then, once adb/fastboot was fixed, was:
- Run from an Administrator mode command prompt "fastboot oem unlock"
- Run the patch companion download's batch file to flash the recovery, AllInOne.bat and choose option 2.
- Reboot phone and then copy over the Bacon OxygenOS 2.1.4 zip to the phone if its not already there
- Reboot phone to recovery and do a cache and data wipe install the bacon zip.
- After you reboot into Oxygen and go thru the new device setup song and dance, enable developer mode (Settings -> 6. About Phone -> Tap Build Number a bunch of times until dev mode unlocks)
- Turn on ADB support (Settings -> Developer Options -> Usb Debugging
FIXING ADB ON THE LINUX SYSTEM
Now replug the phone into your Linux rig and you should see two partitions pop up, including the drivers partition. Run the ADB fix for linux shell script:
Pre script, as you can see the only device is my other phone:
$ adb devices -l List of devices attached 5VT7N15A25000587 device usb:1-2 product:angler model:Nexus_6P device:angler
Post script, and it sees but can't do anything with the phone yet:
$ '/run/media/andrew/OnePlus Drivers/adb_config_Linux_OSX.sh' android home is exist! config adb ... OK! You can use adb now! $ adb devices -l * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached d6dea608 offline usb:1-1 5VT7N15A25000587 device usb:1-2 product:angler model:Nexus_6P device:angler
Accepted the connection on phone:
$ adb devices -l List of devices attached d6dea608 device usb:1-1 product:bacon model:A0001 device:A0001 5VT7N15A25000587 device usb:1-2 product:angler model:Nexus_6P device:angler
Done. Working great now. Would have been nice to know what I needed to do to get this functional on Linux from jump street, as it would have saved me a good 4hrs of my time screwing around with this. I do firmly believe that there was an issue somwhere with an update to the recovery image. The image I have now is much nicer than the one from the factory. And there was a setting that was ticked in CM that allowed for recovery updates. Just that nothing worked. My first stab was to download and install the latest CM13 for bacon and use the recovery to install it. Nope, didn't work. Thats how I eventually stumbled across ADB and Fastboot being borked here. For safe keeping I did back up my recovery files partition so if things go wonky again I am not forced to deal with this level of fun again. And by fun, I mean 6 hours of pure pain of having to touch Windows and screw around with their miserable driver model. And 8.1 sucks golf balls thru a garden hose.
2015-08-14 RHEL7 OpenVPN IN NETWORKMANAGER
OK, put simply there are issues immediately due to SELinux in getting NetworkManager to connect up to your VPN properly. If you setup your connection and certificates as follows you will have no issues whatsoever connecting as any user.
1.Copy all your certificate files into ~/.cert
2.Check your SELinux context and validate it is appropriate:
You need to have something like this:
$ pwd /home/andrew/.cert $ ls -Z -rw-r--r--. andrew andrew unconfined_u:object_r:home_cert_t:s0 andrew.crt -rw-------. andrew andrew unconfined_u:object_r:home_cert_t:s0 andrew.key -rw-r--r--. andrew andrew unconfined_u:object_r:home_cert_t:s0 ca.crt
3.If you need to reset the contexts, issue the following command as root:
restorecon -R -v /home/$USERNAME/.cert
4.Create a NetworkManager VPN entry with your cert files from the ~/.cert folder.
Took me a few minutes to understand why the connection was barfing out. Once I noticed some SELinux alerts it dawned on me -- I never set the contexts. A quick Google showed me also, that there is a convenient location to dump all certificates into. Double win!
I learnt something new - cu
Inside the uucp package is a nifty tool that I just picked up on called cu. This is for serial connection management and it works beautifully, and simply. I had a few old machines that I needed to tap into via serial and a friend admin I was with recently mentioned her love of this command. So having a selectively great memory, I gave it a stab.
First get uucp installed. I see that it comes from EPEL on RHEL7.
$ yum info uucp Loaded plugins: langpacks, nvidia, product-id, subscription-manager Installed Packages Name : uucp Arch : x86_64 Version : 1.07 Release : 41.el7 Size : 2.7 M Repo : installed From repo : epel Summary : A set of utilities for operations between systems URL : http://www.airs.com/ian/uucp.html License : GPLv2+ Description : The uucp command copies files between systems. Uucp is primarily : used by remote machines downloading and uploading email and news : files to local machines.
Secondly determine your connection parameters. I have a USB to serial hodgepodge of cabling and adapters that I tote around and stash in places useful. So in my case its /dev/ttyUSB0 for the device, and of course each connection has its flow control and bitrate and parity, etc... Know that all. In my case the devices preferred to speak 19200b, 8N1, FC Off (manuals say so). But being hasty I just slapped into the terminal:
$ sudo cu -l /dev/ttyUSB0 -s 19200
And things just worked. For a full reference guide for various settings and such:
2015-08-04 RHEL7 + Intel 7260AC Wireless Card
There are known issues with older kernels that cause major issues with the 7260 with regards to power management and the 5GHz spectra. After dealing with a dying i7 IMC issue, I finally could spend time troubleshooting my issues.
Firstly, ensure your router/AP isn't crap. I had that issue regardless of devices and their respective OS's. Once you are sure that there isn't anything dead/dying or just plain flaky, there are a few things that can be done, one of which you have a potential choice as to how to deal with it. Supposedly kernels beyond 3.16/3.17 have this rectified. As we are pegged on EL7 to 3.10, until Red Hat backports the changes we have to deal with it ourselves.
Next, there are several lines we need to put into your /etc/modprobe.d/iwlwifi.conf
Here is how I went, and I will detail what each line means:
Not necessarily needed as of RHEL 7.3, newer iwl drivers have cleaned up alot of cuft and bugs. I have found that stock settings are perfectly fine now. Leaving this details present in case someone is locked to 7.0/7.1/7.2 and cannot update to a newer iwl release.
$ cat /etc/modprobe.d/iwlwifi.conf options iwlmvm power_scheme=1 options iwlwifi bt_coex_active=N swcrypto=1 11n_disable=8
The power_scheme option is to set the power to full bore at all times. The default is to 2 on most installations which is the adaptive mode. This can cause issues with the device going to sleep at rather inopportune moments. Although not necessarily your issue, something to keep note of.
The bt_coex_active option is for coexistence of BlueTooth and wireless. They operate on the same frequency range and can cause issues.
The swcrypto option is for forcing the cryptography off of the card and onto your system CPU. High workloads
The 11n_disable option is where I was referring to a choice. Setting the disable to 1 will force the card into G only speeds. This does indeed work on AC networks just fine, but will limit your connection to 54Mb/s speeds max. Setting this to 8 will not cause that restriction but rather a link aggregation. Here is the information from the module on this parameter:
$modinfo iwlwifi | grep 11n_disable parm: 11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint)
Once you have made a choice as to what of these option you are going to implement, you can do the following commands (as root) to unload/load the kernel, of course taking the new parameters on reload.
sudo rmmod iwlmvm sudo rmmod iwlwifi sudo modprobe iwlwifi
Hopefully this information is as useful to you as it was me. This fully rectified my constant disconnections while on AC networks with this card.
Found a bit back a nifty site for figuring out relative performances of all the video cards out on the market. Posting in lieu of poor memory and assumption I am not the only one interested in this information :D
2015-03-30 RHEL7 + NVIDIA DRIVER INSTALLATION
EL & NVIDIA workes quite well with the elrepo kmod-nvidia rpms that are in the stable repo.
- Install ELRepo http://elrepo.org/tiki/tiki-index.php
- Follow the instructions here for normal installs on 7.0 (RHEL or clone) http://elrepo.org/tiki/kmod-nvidia
To install the rpms use the following command:
sudo yum install kmod-nvidia nvidia-x11-drv-32bit nvidia-x11-drv
To finish up, we need to ensure that nouveau is blacklisted and glamoregl is disabled.
The F/LOSS module, nouveau, should automatically get blacklisted, but lets ensure that the RPM did the job:
sudo grep --color -e nouveau /etc/default/grubGRUB_CMDLINE_LINUX="rhgb quiet nouveau.modeset=0 rd.driver.blacklist=nouveau"
Providing it is we can move to dealing with glamoregl. There are several ways to deal with this one, personally I chose to remove it via yum cleanly. The mailing list description is here: http://lists.elrepo.org/pipermail/elrepo/2013-November/002058.htm
To do what I did:
sudo yum remove xorg-x11-glamor
2015-03-21 RHEL + STEAM
There are two methods for getting Steam installed in RHEL7 these days:
- Epel https://dl.fedoraproject.org/pub/epel/7/x86_64/repoview/epel-release.html
- Negativo's repo http://negativo17.org/steam-for-centos-rhel-7/
There is a difference in the two packages, as negativo has a specific goal in how he will package anything up. I found that on Fedora his packages are better. Here its a tossup. I suppose if you have a thing for making scripts that recreate all your repos, and this one is in the mix, fine. But please do check out his other repos as they are quality choices, and well made RPMs.
Now, for what I did:
- Install the EPEL repo: http://mirror.us.leaseweb.net/epel/7/x86_64/repoview/epel-release.html
- Install steam
sudo yum install steam
date && sudo yum info steam Mon Mar 21 20:07:52 CDT 2016 Loaded plugins: langpacks, product-id, search-disabled-repos, subscription- : manager Installed Packages Name : steam Arch : i686 Version : 126.96.36.199 Release : 6.el7 Size : 2.6 M Repo : installed From repo : epel-steam Summary : Installer for the Steam software distribution service URL : http://www.steampowered.com/ License : Steam License Agreement Description : Installer for the Steam software distribution service. : Steam is a software distribution service with an online store, : automated installation, automatic updates, achievements, : SteamCloud synchronized savegame and screenshot functionality, : and many social features.
2015-03-21 RHEL + MUMBLE
I just dropped RHEL 7.1 onto my main workstation and had to relive and relearn how to install mumble onto it. Here is what you need to do.
- Install nux-desktop repo. http://li.nux.ro/repos.html
- Enable desktop-optional-rpms for your RHEL flavor.
- Install mumble:
sudo yum install mumble
All done, there should be a GNOME 3 entry already. Happy voice-chatting!
============================================= Package Arch Version Repository Size ============================================= Installing: mumble x86_64 1.2.6-5.el7.nux nux-dextop 3.0 M Installing for dependencies: avahi-compat-libdns_sd x86_64 0.6.31-14.el7 rhel-7-desktop-optional-rpms 33 k celt071 x86_64 0.7.1-8.el7.nux nux-dextop 61 k protobuf x86_64 2.5.0-7.el7 epel 338 k Transaction Summary =============================================
2015-03-21 RHEL + LibreOffice
LibreOffice is my go-to office tool, and it is not in the standard yum repos. But, all hope is not lost, Red Hat does indeed distribute this. Goto your subscription manager and edit the repos you are subscribed to add in the "optional-rpms" category for your flavor of RHEL:
$ yum info libreoffice Loaded plugins: langpacks, product-id, subscription-manager Installed Packages Name : libreoffice Arch : x86_64 Epoch : 1 Version : 188.8.131.52 Release : 5.el7 Size : 0.0 Repo : installed From repo : rhel-7-server-optional-rpms Summary : Free Software Productivity Suite URL : http://www.libreoffice.org/ License : (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 : or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and : Artistic and MPLv2.0 Description : LibreOffice is an Open Source, community-developed, office : productivity suite. It includes the key desktop applications, such : as a word processor, spreadsheet, presentation manager, formula : editor and drawing program, with a user interface and feature set : similar to other office suites. Sophisticated and flexible, : LibreOffice also works transparently with a variety of file : formats, including Microsoft Office File Formats.