clear username from terminal

By | Linux | No Comments

To clear username from terminal in linux simply add the following to the end of your ~/.bashrc file, then logout and login!

export PS1="\W \$ "

Solves : How to hide computer name and user name in terminal

Install nvidia-docker on proxmox

By | Crypto Mining, Linux | No Comments

Install nvidia-docker on proxmox with this easy guide.

Remove the blacklist from /etc/modprobe.d/pve-blacklist.conf by commenting out "nvidiafb"

Add "non-free" to /etc/apt/sources.list
deb http://ftp.us.debian.org/debian buster main contrib non-free

apt-get update
apt-get install nvidia-driver nvidia-smi

Reboot!

apt-get update ; apt-get install docker.io docker-compose
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
tee /etc/apt/sources.list.d/nvidia-docker.list
apt-get update ; apt-get install nvidia-docker2

The current guest configuration does not support taking new snapshots

By | proxmox | No Comments

The current guest configuration does not support taking new snapshots is a common problem with Proxmox. Most people don’t know this is easily solved by making sure that the type of storage you use for VM’s is either lvm-thin or ZFS. If you don’t want to take a memory hit, make sure to use lvm-thin. You can also convert existing images to a new disk on the new zfs or lvm-thin storage you setup.

Ryzen 9 3900X on ASRockRack X470D4U2-2T

By | builds | No Comments

Ryzen 9 3900X on ASRockRack X470D4U2-2T running Proxmox with

 docker run -it 88plug/geekbench4

Geekbench 4 Score with stock bios settings is 50889!

https://browser.geekbench.com/v4/cpu/15830970

System Information
  Operating System              Ubuntu 20.04.1 LTS 5.4.34-1-pve x86_64
  Model                         To Be Filled By O.E.M. To Be Filled By O.E.M.
  Motherboard                   ASRockRack X470D4U2-2T
  Memory                        31.4 GB 
  BIOS                          American Megatrends Inc. L3.39A

Processor Information
  Name                          AMD Ryzen 9 3900X
  Topology                      1 Processor, 12 Cores, 24 Threads
  Identifier                    AuthenticAMD Family 23 Model 113 Stepping 0
  Base Frequency                3.80 GHz
  L1 Instruction Cache          32.0 KB x 12
  L1 Data Cache                 32.0 KB x 12
  L2 Cache                      512 KB x 12
  L3 Cache                      16.0 MB x 4

vm is locked proxmox

By | Linux | No Comments

vm is locked is common issue in proxmox that is solved with a simple command to the vm on the command line

qm list
qm unlock $VMID
vm is locked proxmox container

Solves : container is locked proxmox
unlock container proxmox
unlock vm proxmox
vm unlock proxmox

ramdisk

By | Linux | No Comments

The best tool for a ramdisk on linux is simply adding the following line to your /etc/fstab.  Create the new mount directory first of course.

mkdir -p /mnt/ramdisk
sudo echo "tmpfs           /mnt/ramdisk tmpfs      defaults,size=8192M 0 0" >> /etc/fstab
sudo mount -a

DigitalOcean to Unraid VM

By | Linux | No Comments

Migrate your DigitalOcean to Unraid VM with this simple and easy to follow guide. Save hundreds or thousands of dollars a year by running your VPS locally.

#Set a root password, this will be useful to use VNC

Step 1. Shutdown/Restart droplet into Recovery Mode in DO Control Panel, take note of the temporary root password shown in console.

Step 2: Then copy the remote disk image of the DigitalOcean droplet to your local machine
ssh root@43.44.X.X "dd if=/dev/vda" | sudo dd of=88plug.raw bs=64k

Step 3: Convert the .raw file to a compatible .img file for Unraid
qemu-img convert -p -O raw 88plug.raw disk.img

Step 4: Sync Image file to Unraid
rsync -av --progress -e "ssh -T -c aes128-ctr -o Compression=no -x" disk.img root@tower.local:/mnt/user/domains/88plug/

Step 5: Create a new VM with the same OS as your DO Droplet.

Bonus round: For other systems use the handy table below

Image formatArgument to qemu-img
QCOW2 (KVM, Xen)qcow2
QED (KVM)qed
rawraw
VDI (VirtualBox)vdi
VHD (Hyper-V)vpc
VMDK (VMware)vmdk

For ProxMox use qcow2

qemu-img convert -p -O raw 88plug.raw disk.qcow2

Import the disk into the VM configuration

#qm importdisk <vmid> <disk> <storage>
qm list
qm importdisk $VMID disk.qcow2 local-lvm

What to do after you install proxmox?

By | Linux | No Comments

So you’ve finally installed ProxMox, now what?!

  1. Install a GUI!
  2. Configure Disks / Raid / Filesystems
  3. Run XShok!
wget https://raw.githubusercontent.com/extremeshok/xshok-proxmox/master/install-post.sh -c -O install-post.sh && bash install-post.sh && rm install-post.sh

New Samsung NVME is faster than RAM!

By | Asides | No Comments

The introduction of the Samsung 980 Pro with speeds claiming up to 7,000/5,000MB/s for read/write speed – this new era of PCIE 4.0 NVME is faster than ram! RAM costs about 10x more than NVME storage.

DDR4 Specs

Friendly nameIndustry namePeak Transfer RateData transfers/second (in millions)
DDR4-2400PC4-1920019200 MB/s2400
DDR4-2666PC4-2130021300 MB/s2666
DDR4-2933PC4-2340023400 MB/s2933
DDR4-3000PC4-2400024000 MB/s3000
DDR4-3200PC4-2560025600 MB/s3200
DDR4-3600PC4-2880028800 MB/s3600
DDR4-4000PC4-3200032000 MB/s4000
DDR4-4400PC4-3520035200 MB/s4400

DDR3 Specs

Friendly nameIndustry namePeak Transfer RateData transfers/second (in millions)
DDR3-800PC3-64006400 MB/s800
DDR3-1066PC3-85008533 MB/s1066
DDR3-1333PC3-1060010667 MB/s1333
DDR3-1600PC3-1280012800 MB/s1600

As you can see in these charts, this new speed if faster than base level DDR3 memory.

Best cpu frequency manager for linux

By | Linux | No Comments
cpu frequency manager for linux

By far the best cpu frequency manager for linux is a gnome extension call cpufreq. If you are not familiar with gnome extensions, they are very easy to manage and install. There is a Firefox plugin required, and once installed you can view your plugins here.

Features Include

  • Enable/Disable total cores in use
  • Granular control over power profiles
  • Easily set min/max frequency
  • Starts on boot and can be managed as a gnome plugin

Step 1 : Add the Gnome Firefox Plugin as prompted at the top of the page
Step 2: Click “On” button here

Best Hardware for the Pandemic of 2020

By | Interest | No Comments

A handy guide covering the best tech hardware of 2020 including graphics cards, motherboards, monitors, and more! Read all about the best hardware of the year…

Video Card
NVIDIA GTX 2070 SUPER

Hard to beat this mighty card and two of them will get you into 3090 territory. NVLink compatible they fly and for just $550 at the time of writing you can have some serious fun at 1440p and 4k! Don’t expect much above 60 fps at the Ultra settings but remember most people don’t have or cannot afford a 120hz display right now. Finally, these cards are “Upgrade Eligible” to 3080 and 3090 models at the current time. Learn more about this program here. Essentially you can pay EVGA the difference of the newer model card. Amazing offering. So buy a 2070 Super now, join the line for the upgrade to a 3080/3090 and enjoy great graphics card until then! Oh, and yes you could buy two 2070 Super, play with NVLink and upgrade both! Best of all, you don’t have to really decicde until later – maybe you like the 2070 Super enough to not upgrade when you can finally buy the 3080! EVGA Step Up Program

Motherboard
X470D4U2-2T

By far the best motherboard for a prosumer during the pandemic is the mighty X470D4U2-2T. This board features IPMI connectivety perfect to leave at home while you take off to your remote work cabin in the woods, or to keep running with dual 10 gigabit ethernet connections for a home grown VPN build. You can find these sub-$400 at the time of writing and this is well worth it for the IPMI and dual 10 GBE.

Hotspot
HTC 5G Hub

The value champion of the year! Found on eBay for $225 unlocked for any carrier – this Hub is no longer sold from Sprint but can still work on any carrier once unlocked! The devices runs full android and has a screen that is gorgeous, the processor and graphics are fast enough to watch 4k youtube. When it comes to wireless performance, the x55 chip has some of the fastest 4G speeds I have been able to find so far. Needed a sim that works with sprint/t-mobile to update the OS but after that, was still able to switch provider and use device with just about anything! The device has a speaker, usb-c, battery, and ethernet jack. It’s a truly amazing deal for the features available.

Portable Monitor
UPerfect 15″

This is the only edition that comes with a 10,000 MaH battery! Amazing product that makes it easy to plug into anything with an HDMI port even if you don’t have power for the display. The battery can even charge devices and the screen has speakers, a stand, and adjustable brightness! Considering the size, at 15″ – 4K is too small to even use on a display of this size, so stick to the 1080p model – and the one with a battery. You won’t regret it.

Phone
Xiaomi K20 Pro

4K TV
Samsung – 43″ Class 7 Series LED 4K UHD Smart Tizen TV
Samsung TU7000 / UN43TU7000FXZA

Samsung - 43" Class 7 Series LED 4K UHD Smart Tizen TV
Samsung TU7000 / UN43TU7000FXZA

This TV is available for $279.99 at BestBuy and can be used as a monitor as long as you are sitting far enough back from the screen (about 4 feet).

Best FOSS 2020

By | Interest | No Comments

This is a list of the best FOSS or Free and Open-Source Software of apps that I have collected or used over the year.

DNS : Adguard-Home
Router (DHCP) : OpnSense
Firewall : OpnSense
Mail Server : Poste.io
Benchmarking : Geekbench4
Office Version : Office 2016 – Perpetrual License/No recurring fees!
Windows Version : Windows AME
Speedtest : Speedtest / Google Fiber
Virtualization : Vmware Workstation 16
Hypervisor : ProxMox
Linux OS : Zorin OS 15.3 Ultimate
Photo Editor (Linux) : snap install glimpse-editor
Monitoring : statping
Proxy : Nginx Proxy Manager

gnome for proxmox

By | Linux | No Comments

To enable gnome for proxmox the process is very simple. First setup proxmox, and then run the following shell commands in proxmox

tasksel install desktop gnome-desktop
#Then enable gnome on startup
sudo systemctl set-default graphical.target
#Now disable gdm-password for root login check
sed -i 's/.*pam_succeed_if/#&/' /etc/pam.d/gdm-password
reboot
#Now login with console !