main

LinuxMintUbuntu

Qualcomm Atheros Wifi: How to fix it on Linux

26th November 2019 — by That IT Guy0

qualcomm_atheros-960x540.jpg

Unfortunately, it’s a pretty common issue (it seems) for Qualcomm Atheros devices on laptops not working properly under Linux Mint / Ubuntu (and potentially others but this fix is specific for said OSs).

The cause for this issue is power management for Qualcomm Atheros devices. I’m assuming this doesn’t happen for every Qualcomm Atheros device… ever, but I’ve certainly seen it happen on Laptops for the last year or two now (even Kernel 5 doesn’t seem to fix this).

Fortunately, it’s a very simple fix once you know this. Unfortunately, if you don’t know this it’s a bit of rabbit hole of all sorts of tests, diagnostics, sanity checks, etc that can be done with all sorts of Wifi related issues. But since you’re here, hopefully this will solve the issue for you.

Disclosure: If this has just started happening to you on your Qualcomm Atheros device, this will not be the fix for your issue as this issue happens from the word go, it’s not something that works fine for a month and then starts being an issue.

  • First, edit the default-wifi-powersave-on.conf file
sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
  • The file’s second line should indicate: “wifi.powersave = 3“. Change it to 2 and reboot.
  • Once back up, make sure the power management for the wireless device is indeed off by running the following command.
iwconfig

Within the information shown, one line should now read “Power Management:off“. If so, the issue should now be hopefully resolved for you.

Be sure to check out more Linux Mint & Ubuntu related articles here.

LinuxUbuntu

Mint themes: How to install them on Ubuntu

19th November 2019 — by That IT Guy0

install_mint_themes_ubuntu-960x540.jpg

If you’re like me and use Linux Mint as your everyday desktop OS of choice, you’re used to a certain look (be it XFCE, KDE (for older releases) or most likely, Cinnamon) provided by Mint themes.

At work, I use a Ubuntu Server (with a Mate Desktop) with one single Desktop application (the why, when or how isn’t important here). I have this VM in full screen (on a separate monitor).

I’ve recently started using Mint themes (Mint-Y Dark theme) for Mint and while I like it, the difference between this and the screen next to it is annoyingly obvious. The one Dark theme on Ubuntu Mate desktop is blatantly inferior (in my opinion at least) so, what can we do?

We can install Mint themes on Ubuntu. Please note that I’ve only tested this on Ubuntu 19.04. I have no idea if it’ll work on older versions. So, to do this, follow these steps:

Create a new .sh file and open it:

touch mint-themes-installer.sh
nano mint-themes-installer.sh

Copy the following in:

mkdir ~/mint-themes
cd ~/mint-themes
wget http://packages.linuxmint.com/pool/main/m/mint-x-icons/mint-x-icons_1.5.2_all.deb
wget http://packages.linuxmint.com/pool/main/m/mint-y-icons/mint-y-icons_1.3.4_all.deb
wget http://packages.linuxmint.com/pool/main/m/mint-themes/mint-themes_1.8.2_all.deb
sudo dpkg -i mint-x-icons_1.5.2_all.deb
sudo dpkg -i mint-y-icons/mint-y-icons_1.3.4_all.deb
sudo dpkg -i mint-themes/mint-themes_1.8.2_all.deb
cd .. && sudo rm -rf mint-themes/

Make it executable and run it:

sudo chmod +x mint-themes-installer.sh
sudo bash mint-themes-installer.sh

You’ll now be able to find the Mint themes in both areas you’ll need to change them within Ubuntu (“Appearance” and “Window Manager”).

Be sure to check out more Linux Mint & Ubuntu related articles here.

Fix it yourselfLinux

Issue with VMWare Workstation on Linux: “The virtual machine is unable to reserve memory”

2nd May 2018 — by That IT Guy0

vmware14-960x540.png

VMWare Workstation (or player) 12 and 14 have a common issue with newer kernels where they will refuse to run a vm indicating that “The virtual machine is unable to reserve memory” even when there’s plenty of ram available. This can be fixed by recompiling the host modules (note that this does not mean reinstalling will work, it won’t).

First, clone the git:

cd /tmp
git clone https://github.com/mkubecek/vmware-host-modules.git
cd vmware-host-modules
git checkout workstation-14.0.0

Now, recompile and install.

tar cf vmmon.tar vmmon-only
sudo cp vmmon.tar /usr/lib/vmware/modules/source
sudo vmware-modconfig --console --install-all

To finalize, open up workstation or player again and try running a VM, this should now work accordingly. This has been tested on all 3 flavours of Linux Mint, Ubuntu 16.04 LTS and 17.10 with VMWare Workstation 12 and 14.

LinuxMint

How to: install MongoDB on Linux Mint

22nd February 2018 — by That IT Guy0

mongodb-960x480.jpeg

UPDATE – MINT 19: As of Mint 19, MongoDB is included in the official repositories and can be installed simply by running “sudo apt install mongodb“. Only follow this guide if you’re still using Mint 18.3 or under // Ubuntu 17.10 or under.

MongoDB is an open source database that uses a document-oriented data model. It’s one of several database types to arise in the mid-2000s under the NoSQL banner. Instead of using tables and rows as in relational databases, it’s built on an architecture of collections and documents. Documents comprise sets of key-value pairs and are the basic unit of data in it. Collections contain sets of documents and function as the equivalent of relational database tables.

MongoDB does not come with a native installer for Linux Mint and requires a command line installation. To install it, follow these steps:

Step 1: Open the Command-line terminal and import the public GPG key. Just run the following commands.

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6

Step 2: Next, we’ll create the “/etc/apt/sources.list.d/mongodb-org-3.4.list” list file.

echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list

Step 3: Run the system update

sudo apt-get update

Step 4: Install the latest stable version. This command will install all the related packages.

sudo apt-get install -y mongodb-org

Step 5: After installation, create a directory with name “data” and sub-directory with name “db” inside you home directory (change “yourusername” for your actual username directory). Otherwise, you may have issues starting MongoDB.

cd /home/yourusername
sudo mkdir -p data/db

Step 6: Give the directory “/data” enough permission

sudo chmod -R 775 data

Step 7: Create a configuration file with name “mongodb.service” to setup unit file.

sudo touch /etc/systemd/system/mongodb.service

Step : Open the above created file, paste the following lines of codes inside the editor and save the file

sudo nano /etc/systemd/system/mongodb.service
[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target

[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf

[Install]
WantedBy=multi-user.target

Step 9: You can now start the server.

sudo service mongodb start

Step 10: You can check the running status of the server with the following command.

sudo service mongodb status

That’s it, you’re done!

mongodb

Linux

How to: install Composer on Linux Mint

21st February 2018 — by That IT Guy0

composer-960x527.png

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

1: Composer does not have a .deb so a manual install is required. The first step, if you haven’t already, is installing PHP. This setup will fail if PHP is not installed. You can install PHP by running the following command:

sudo apt install php

2: While on your home folder on the terminal create a file for the script.

touch composer.sh

3: Open this file with your favorite editor, for this example, I’ve used nano.

nano composer.sh

4: Paste the following script in, save and exit nano.

EXPECTED_SIGNATURE=$(wget -q -O - https://composer.github.io/installer.sig)
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")</pre>
if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]
then
>&2 echo 'ERROR: Invalid installer signature'
rm composer-setup.php
exit 1
fi

php composer-setup.php --quiet
RESULT=$?
rm composer-setup.php
exit $RESULT

5: Make the script executable:

 sudo chmod +x composer.sh

6: Run the file:

sudo ./composer.sh

No output means it all went ok and it has created a composer.phar file in the same directory.

7: Now, move composer.phar to mkae it available anywhere within the system:

sudo mv composer.phar /usr/local/bin/composer

8: You can now test the install by invoking it anywhere by simply running the command

composer

That’s it, you’re done! You can visit the official website by clicking here.

composer