Tag Archives: Linux

Installing Visual Studio Code on RHEL

RHEL, Fedora, and CentOS based distributions We currently ship the stable 64-bit VS Code in a yum repository, the following script will install the key and repository: sudo rpm –import https://packages.microsoft.com/keys/microsoft.asc sudo sh -c ‘echo -e “[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc” > /etc/yum.repos.d/vscode.repo’ Then update the package cache and install the package using dnf (Fedora 22 and… Read More »

format a disk to fat32 on raspberry pi or linux

—— part 1 ——- create partitions 1) get list of disks # fdisk -l 2) Find disk in list, /dev/??? in this example /dev/sda 3) run fdisk again and specify disk # fdisk /dev/sda 4) print current partiions Command (m for help): p 5) use the d command to delete any of the existing partitiond… Read More »

Cannot boot because missing external disk

See man pages fstab(5) and mount(8). Using the nofail mount option will ignore missing drives during boot. nofail Do not report errors for this device if it does not exist. So your fstab line should instead look like: UUID=6826692e-79f4-4423-8467-cef4d5e840c5 /backup/external ext4 defaults,nofail 0 0

Creating and extending Linux LVMs

Notes on how to create or add disk, volume groups and logical volume in Linux (RedHat) 1. First add disk to system by what ever means your system requires. 2. Find name of disk using fdisk # fdisk -l /dev/sd* | grep i ‘Disk’ For my examples below, it would have listed sdb but not… Read More »

RHEL Subscriptions

To be able to use YUM on an RHEL server you need to register it with the RedHat servers. NB: You can do this with a Developer account, which is free! First register the system # subscription-manager register –auto-attach that enter your username and password. or add –username=<username> –password=<password> onto the end of the above… Read More »

Yum groups

# yum groups list # yum groups info “Development Tools” # yum groups install “Server with GUI”