changed folder structure to mirror topics

This commit is contained in:
2021-07-16 11:41:38 -05:00
parent 96f5287841
commit 65a346f6fb
7 changed files with 55 additions and 6 deletions

79
Arch_Install/DNS_Issues.md Executable file
View File

@@ -0,0 +1,79 @@
# DNS issues
This portion of the repo contains the information on the aggravating
issues reguarding my installs tendency to have DNS troubles and
connectivity issues.
## Issues
1. DNS
- Has issues with resolving domain names (ex: google.com)
2. Connectivity
- Has trouble with even connecting to outside servers
### Network Managers Installed
- NetworkManager
- wpa_supplicant
### DNS services installed
- dhcpcd
- systemd-resolved
## Information Gathered
When using systemctl and systemctl status to check the behaviors of dhcpcd and systemd-resolved I found that one of the possible problems is that my device is changing M.A.C and IP addresses about every 4-5 minutes.
I would ping (8.8.8.8) one of googles public dns servers to test if my connection was working,
however when I did the following message was returned " ping: connect: Network is Unreachable".
This by itself could mean a that either my network is offline or my computer just isn't connected to my wifi.
The other issue with my os not being able to resolve the host name. This happened everytime I tried
to ping a server using the domain name. When I tried originally the message "ping: google.com: Name
or Service is not known" was returned.
## Research
Using my phone, I decided to search about the issues on forums to see if I could find a solution. During this search I found [this post][post] that discussed having a simmilar issue to mine.
## Later Discoveries (updated: 1/22/2021)
I figured out the issue, but haven't had the time to update this.
I eventually found out that the service dhcpcd was where I was having my issues, as when I found out how to configure NetworkManager to set to give systemd-resolved the DNS duties. After doing this I no longer had issues.
All that was left was to solve my constant MAC randomization.
In my NetworkManager.conf file I configured it to stop randomizing my mac so much.
#This allows it to Randomize My MAC
[device-mac-randomization]
wifi.scan-rand-mac-address=yes
#This forces it to stay at the most stable MAC
[connection-mac-randomization]
wifi.clone-mac-address=stable
After doing a bit of digging I found that this config file for **iwd** alowed it to take over DNS duties.
# This allows iwd to take over DNS duties
[General]
EnableNetworkConfiguration=true
### Packages
- [NetworkManager][NetworkManager]
- [dhcpcd][dhcpcd]
### Sources
- [Post Mentioned Above][post]
[post]: https://bbs.archlinux.org/viewtopic.php?id=237074&p=7
[dhcpcd]: https://wiki.archlinux.org/index.php/Dhcpcd
[NetworkManager]: https://wiki.archlinux.org/index.php/NetworkManager

View File

@@ -0,0 +1,31 @@
# Dual-Booting Arch with Windows 10
This will depict the methods I used dual[tri]-boot my linux install with windows 10
## My Partition Scheme
My Partitions are as followed (sda being what the hard-drive is referred to by fdisk -l)
### sda [300 GB (I plan to upgrade to 1 TB soon)]:
| Partition | Use | Size | Notes |
| :---------: | -------------------------- | ------ | -------------------------------------------------------------------- |
| sda1 | EFI partition | 500 MB | |
| sda2 | Arch Install | 30 GB | |
| sda3 | "/home" directory for Arch | 150 GB | |
| sda4 | Ubuntu Install | 30 GB | Shares sda3 as home directory |
| sda5 | Windows 10 Install | 30 GB | |
| sda6 | Extra storage for windows | 70 GB | Will Probably merge this with the windows partition at a later date. |
---------------------------------------------------------------------------
## Configuring the Grub bootloader
### Adding it to Grub
- After installing Windows 10 I booted back into Arch and used the package update-grub to automatically detect the ".efi" files for each install and configure grub to
add it to the list of bootable OS's.
### Setting Arch as my Default
- I downloaded the "grub-customizer" package to push Arch to the top of the list, so I didn't have to hurry and select it every time I boot up my PC.

18
Arch_Install/InstallingArch.md Executable file
View File

@@ -0,0 +1,18 @@
# Installing Arch Linux
## Process
- To begin with you will need to download the iso file from the [official Arch-Linux website][arch iso page].
- You will need to flash the installer ISO onto a cd or bootable Flashdrive using [balenaEtcher][etcher page] or [rufus (Windows only)][rufus page]
## Sources
- [Arch-Linux Iso Page][arch iso page]
- [LearnLinuxTV Install Tutorial](https://www.youtube.com/watch?v=a00wbjy2vns&ab_channel=LearnLinuxTV)
[etcher page]: https://www.balena.io/etcher/
[rufus page]: https://rufus.ie/
[arch iso page]: https://archlinux.org/download/

View File

@@ -0,0 +1,30 @@
# Mounting Samba Share to local directory
After I changed my Laptop's HDD to a SSD, as doccumented [here](MovingToNewSDD.md), I encountered an issue related to forgetting to copy over files from my previous intalls' home partition. In this I was wanting to start prepping for a session of D&D, and without my files I couldn't do so. So after looking through my pendrives I found a full copy of my Campaign notes and copied them to my laptop. However, I wanted to be able to access them and change them even if I wasn't in my house. This is where I got the idea for this project.
## Background (for context)
I use Vim for taking my D&D notes, in conjunction with the plugin [VimWiki][vimwiki page] it is an amazing tool to write and organize notes of all types.
## What I wanted to do
In this project I wanted to figure out how to mount a remote filesystem, a tower I use as a file/media server in my house, to a local directory (namely my Campaigns folder.
## Process
### Using FTP
I had previously learned how to mount a ftp connection using the package "curlftpfs", so I thought I'd try and see if it would work well with vim when I try to treverse the folders and subfolders. In the first mounting of the the remote folder it seemed to work fine, but as I tried to access one of the subfolders while using vim it caused the program to freeze and crash. So I ended up giving up on using ftp since it didn't come packaged with a fs that supports subfolders.
### Using Samba
From here I decided to try and mount the Share instead. Since I used Samba on my spare tower running ubuntu to use it as a file server, I thought it would be a good idea to use it as to mount my campaign directory of my server as it supports it being used as a virtual filesystem.
## Packages used
- [CurlFtpFS](https://wiki.archlinux.org/index.php/CurlFtpFS)
- [Mount](https://archeage.fandom.com/wiki/Mount)
## Vim plugins used
- [VimWiki][vimwiki page]
## Articles used
- [Article 1: How to mount Samba shares to local directories](https://www.looklinux.com/how-to-mount-samba-share-smbfs-in-linux/)
- [Article 2: How to change rw permissions of mounted Samba shares](https://askubuntu.com/questions/393563/how-to-change-permissions-on-mounted-windows-share)
[vimwiki page]: https://vimwiki.github.io/

43
Arch_Install/MovingToNewSDD.md Executable file
View File

@@ -0,0 +1,43 @@
# Moving to a new 1 TB SSD
| **New SSD** | |
|:-----------:|---------------------------------|
|Name | SanDisk SDSSDA-1 |
|Capacity | 1 TB |
|Datasheet | [link to pdf][product datasheet]|
## Partition Sheme
| Partition # | Filesystem | Size | Notes |
|:-----------:|------------|--------|-------|
| 1 | EFI | 500 MB |This is my bootloader partition for both Windows 10 and Arch
| 2 | ext4 | 100 GB | This is the boot partition for my linux install
| 3 | ext4 | 200 GB | This is the "\home" directory for my linux install
| 4 | NTFS | 200 GB | This is the boot partition for my Windows 10 install
| 5 | NTFS | 16 MB | Not sure what this one is for, Windows made it during installation
| 6 | Fat32 | 30 GB | This is my "Universal" storage, a partition that functions as a place to store any files that I need/want to move between my installs
## Process
Following a [tutorial][youtube tutorial] to brush up on how to install Arch I:
- Using [fdisk][fdisk] I made a new [GPT](https://en.wikipedia.org/wiki/GUID_Partition_Table) partition table and made:
1. The [EFI](https://en.wikipedia.org/wiki/EFI_system_partition) partition for the bootloader
2. The root ( / ) partition for my linux install
3. The home partition ( /home ) for the install
4. An empty [Fat32](https://en.wikipedia.org/wiki/File_Allocation_Table) partition for my Windows install I planned to do later
5. Made the "Universal" Partition to use as storage.
[fdisk]: https://wiki.archlinux.org/index.php/Fdisk
[youtube tutorial]: https://www.youtube.com/watch?v=a00wbjy2vns&ab_channel=LearnLinuxTV
[product page]:https://www.googleadservices.com/pagead/aclk?sa=L&ai=DChcSEwj_g5bL6d3uAhVR8MAKHWMmAPUYABADGgJpbQ&ae=2&ohost=www.google.com&cid=CAASE-Ro2ajlV9YWBbY5zs2GY5YE8Es&sig=AOD64_0ZI4HdPjWaUiWvjzAr5l3gdaGnWg&ctype=5&q=&ved=2ahUKEwjC_Y3L6d3uAhUTQ80KHXFzBb0Q9aACegQIERBA&adurl=
[product datasheet]: https://shop.westerndigital.com/tools/documentRequestHandler?docPath=/content/dam/doc-library/en_us/assets/public/sandisk/product/internal-drives/ssd-plus-sata-iii-ssd/data-sheet-ssd-plus-sata-iii-ssd.pdf

View File

@@ -0,0 +1,55 @@
# Wi-Fi Connectivity Issues
## Related Posts
- [DNS Issues](DNS_Issues.md)
## Background
After a while of using Arch I've encountered a few issues with DNS and Wireless Connectivity. The DNS Issue was solved after a while due to some competing daemon's. The Wireless Connectivity issues were small but were irritating to deal with after each reboot.
I'm using Gnome as a Desktop Enviroment on my Arch install, and it comes with NetworkManager which it uses wpa_supplicant as a wifi backend. This by itself isn't an issue, as it works quite well by itself. However, I also use iwd as a wireless network manager as it is the easiest for me to use without having to delve into using ip.
## Problem
After each time I reboot my computer or it goes into standby, my computer loses connection to the wifi (I assume it's dropped to save power. After which iwd either starts off connected, or automatically connects due to the wireless interface being unused.
This is an issue because without wpa_suppicant being the one holding the connection all of the apps (aside from the terminal) cannot connect to the internet to preform the duties I need them for. This is aggravating since it requres me to spam "iwctl station wlan0 disconnect" while also making sure that I go to the wifi tab and select my wifi to connect to. While I can deal with this, it is still not a nice situation to be in.
## Process
After some searching I found [this post][Post] that details how to configure NetworkManager to use iwd as the wifi backend instead of wpa_supplicant.
The steps I had to take from here were:
1. Add this line of code into my NetworkManager.conf file.
'''
[device]
wifi.backend=iwd
'''
2. Stop and restart both NetworkManager and wpa_supplicant.
## Conclusion
After doing this I have yet to happen upon this issue again (although it has only been a few hours). So I'd say that I fixed it, at least for now.
-----
### Packages used:
- [NetworkManager](https://wiki.archlinux.org/index.php/NetworkManager)
- [wpa_supplicant](https://wiki.archlinux.org/index.php/wpa_supplicant)
- [iwd](https://wiki.archlinux.org/index.php/Iwd)
### Sources
- [Post on configuring NetworkManager][Post]
[Post]: (https://wiki.debian.org/NetworkManager/iwd)