Creating a Shared Internet Connection for Gaming During Vacations

Why You Need This Quick WiFi Sharing Solution

When staying at holiday parks or vacation rentals, internet connectivity is often limited or unreliable. This can be frustrating when you want to enjoy some gaming time with your kids. The solution? Create your own WiFi sharing setup using two wireless interfaces – your laptop’s built-in WiFi and a USB WiFi dongle.

The Perfect Setup in 3 Simple Steps

Requirement: a working internet connection. In my case: LandalPremiumWifi

Step 1: Create a Hotspot with Your Built-in WiFi

First, set up a hotspot using your laptop’s built-in WiFi card. This creates a stable, local network for your gaming devices:

sudo nmcli device wifi hotspot con-name wapnet ssid wapnet band bg password 87654312

This command creates a hotspot named “wapnet” with the password “87654312” using the 2.4GHz band, which provides better range for your devices.

Step 2: Connect the WiFi Dongle

Plug your USB WiFi dongle into your laptop. This second wireless interface will be used to connect to the holiday park’s WiFi network.

Step 3: Switch the Holiday Park’s WiFi adapter

Use the WiFi dongle to connect to the holiday park’s internet. Your now can use the dongle for internet access while your built-in WiFi card maintains the local hotspot for your gaming devices.

Why This Method Works So Well

The key advantage of this approach is using your laptop’s built-in network card (which typically has better performance) as your primary gaming network, while the USB dongle handles the potentially less reliable internet connection. This separation means:

  • More stable local connections for gaming
  • Better network control
  • Reduced latency for local multiplayer games
  • Single internet connection shared across all your devices

This setup is perfect for family gaming sessions during vacations when you need reliable connectivity without the hassle of connecting each device separately to potentially unstable holiday park WiFi.

And to remove the hotspot:

$ sudo nmcli connection delete wapnet

Happy gaming!

How to Set Up Automatic Security Updates on Debian and Ubuntu

Keeping your Ubuntu server secure and up-to-date is crucial to minimizing the risk of vulnerabilities. One effective way to ensure timely patching of critical security issues is to enable automatic updates using unattended-upgrades. Here’s how to configure it step by step.

Cronjob Onliner:

/usr/bin/apt-get update && DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get --assume-yes upgrade && reboot

Or the real deal 🙂

TLDR;

sudo apt install unattended-upgrades
sudo dpkg-reconfigure unattended-upgrades
sudo nano /etc/apt/apt.conf.d/50unattended-upgrades
sudo nano /etc/apt/apt.conf.d/20auto-upgrades

Step 1: Install unattended-upgrades

First, you need to install the package that handles automatic updates. You can do this by running the following command:

sudo apt install unattended-upgrades

This will install the necessary package to automate the upgrade process.

Step 2: Configure unattended-upgrades

Once the package is installed, you need to configure it. Run the following command to launch the configuration process:

sudo dpkg-reconfigure unattended-upgrades

During this process, you’ll be asked whether you want to enable automatic updates. Make sure to select “Yes” to enable it.

Step 3: Adjust Configuration Files

To further customize the behavior of automatic updates, you can modify some configuration files.

  1. Open the main configuration file to specify which packages to automatically update:
   sudo nano /etc/apt/apt.conf.d/50unattended-upgrades

In this file, you can select specific origins or repositories from which packages should be updated, such as security updates.

  1. Open another configuration file to control the frequency of updates:
   sudo nano /etc/apt/apt.conf.d/20auto-upgrades

In this file, you can specify the interval for how often the system should check for updates. It typically looks something like this:

   APT::Periodic::Update-Package-Lists "1";
   APT::Periodic::Unattended-Upgrade "1";

These settings indicate that the package list is updated daily, and the system performs unattended upgrades once a day as well.

Conclusion

With these steps, you’ve successfully set up automatic security updates on your Ubuntu server. This will help keep your system secure without needing constant manual intervention. While this is a good practice for keeping your server updated, it’s always important to regularly check logs and ensure everything runs smoothly.

Sitecom WL-344 wireless not working

The solutions is block the rt2800usb

 echo ‘blacklist rt2800usb’ | sudo tee -a /etc/modprobe.d/blacklist.conf

restart, and try this

echo ‘install rt2870sta modprobe –ignore-install rt2870sta ; /bin/echo “0df6 0040” > /sys/bus/usb/drivers/rt2870/new_id’ | sudo tee /etc/modprobe.d/rt2870sta.conf
sudo modprobe rt2870sta
dmesg | egrep ‘rt28|usb|Phy’
iwconfig
sudo iwlist scan

 

(the first Line allocate the Chipset-ID to the driver rt2870sta)

If the solution works, activiate it automatically by a new udev-Rule

sudo gedit /etc/udev/rules.d/10-wlan.rules

Insert the following code and save the file

 # UDEV-Rule for Sitecom WL-344 ID 0df6:0040

SUBSYSTEM==”usb”, SYSFS{idVendor}==”0df6″, SYSFS{idProduct}==”0040″, RUN+=”/sbin/modprobe rt2870sta”

Activate it (or restart)

 sudo service udev reload

Credits: flash63
Source: http://ubuntuforums.org/showthread.php?t=1514196