Category

Linux

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

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

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

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 ! 

debian install gnome

By | Linux | No Comments

Using tasksel is the fastest way to install gnome on debian.

sudo tasksel install desktop gnome-desktop
#Then enable gnome on startup
sudo systemctl set-default graphical.target

/usr/lib/libnvidia-gtk3.so.440.33.01: undefined symbol: gtk_widget_hide_on_delete

By | Linux, NVIDIA | No Comments

Fixes /usr/lib/libnvidia-gtk3.so.440.33.01: undefined symbol: gtk_widget_hide_on_delete

Step 1 : Check nvidia-smi for version first

Step 2: Locate nvidia-settings with same version as Step 1 at https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/ and download with wget to your system.

Step 3: Follow steps below replacing XXX with the version you downloaded.

sudo apt-get remove nvidia-modprobe nvidia-settings
sudo dpkg -i nvidia-settings_XXX.deb
sudo reboot now