🐧 update-initramfs is stuck

I was running into an issue on my Ubuntu 22.04 server where the kernel was stuck on 5.15; I never really thought much about it as a long while back ( Many upgrades ago), I remember freezing kernel updates due to some video card issues that I was having with docker. sudo apt remove initramfs-tools sudo apt install initramfs-tools After running those commands, I completed the update to the server with the shiny new 6.5 kernel. ...

September 16, 2024 · 1 min · 76 words · shelby

💻 Mounting Samba share on Ubuntu

I’m mainly noting this here for myself, but perhaps someone else will find this information handy. Install package cifs-utils sudo apt-get install cifs-utils Create a folder to mount the share into sudo mkdir /media/Share Create a file with user credentials in your home directory. touch ~/.smbcredentials Edit the smbcredentials file username=smb_username password=smb_password Edit /etc/fstab sudo nano /etc/fstab Add the following line ( edit where necessary) //NASIP/shares/ /mnt/nas cifs iocharset=utf8,credentials=/home/USER/.smbcredentials,vers=3.0,iocharset=utf8,rw,sec=ntlmssp,file_mode=0644,dir_mode=0755,uid=1000,gid=1000 0 0 You can now mount the samba share with the command below ...

February 13, 2024 · 1 min · 85 words · shelby

🗄️ Uncompressing multiple nested folders

I tend to download many files, most of which are all placed into their own folder within my downloads directory. Instead of going into each folder to uncompress the contents, I wanted to run a single command to achieve this in a timely manner. Using the simple find command below, you can uncompress multiple folders sequentially, one after another. find downloads/ -name '*.rar' -execdir unrar e {} \; Of course, you will need to change the directory, and if you want to use this on zip, tar, etc, you will need to adjust the unrar e aspect to fit the proper command for the file type. ...

February 13, 2024 · 1 min · 106 words · shelby

APC on a WHM/CPanel Server

One of my clients needed APC installed for their application, so I initially tried to install it via WHM module installer …. this failed. Here are the steps that I took to get it working via CLI{{ double-space-with-newline }}First download the newest stable release of APC and then run the following commands. wget http://pecl.php.net/get/APC-3.1.6.tgz{{ double-space-with-newline }}tar -xzf APC-3.1.6.tgz{{ double-space-with-newline }}cd APC-3.1.6{{ double-space-with-newline }}which php{{ double-space-with-newline }}phpize If you do not have pcre installed the make install will fail. So make sure to run the following yum command to install it with the development packages for safe measure.

February 21, 2011 · 2 min · 234 words · shelby

Raid Solution

I am in search of a raid solution. I have been pretty interested in the Drobo but due to the cost of what you get I am not sure its the best method, though the idea is cool. I am thinking instead of maybe getting a few 1tb+ drives and a cheap RAID card and tossing it all into my Linux box as it would provide a lot more than just a storage device, not to mention the cost would be much less. ...

January 19, 2010 · 1 min · 83 words · shelby