Archive for category: Computer General

Fix proxmox repository is not signed.

14 Oct
October 14, 2019

This problem occurred because we are free user without proxmox enterprise subscription and this prevent us from update or install new package. Here’s how to fix it.

1. Comment out proxmox enterprise source.

root@proxmox:/# vim /etc/apt/sources.list.d/pve-enterprise.list
#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

2. Add new proxmox source. Delete old one and put in new source.

root@proxmox:/# vim /etc/apt/sources.list
deb http://ftp.debian.org/debian buster main contrib
deb http://ftp.debian.org/debian buster-updates main contrib

# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

# security updates
deb http://security.debian.org buster/updates main contrib

3. Update new source list.

root@proxmox:/# apt-get update

Change default port in proxmox

14 Oct
October 14, 2019

There is no direct method to change default port in proxmox so we use iptables to redirect to desire port instead.

1. Find network interface to apply iptables rule in proxmox. In this case VM bridge 0 is the interface we should apply our iptables rule.

root@proxmox:/# more /etc/network/interfaces
auto lo
iface lo inet loopback

iface enp5s0 inet manual

auto vmbr0
iface vmbr0 inet static
	address 192.168.1.5
	netmask 255.255.255.0
	gateway 192.168.1.1
	bridge_ports enp5s0
	bridge_stp off
	bridge_fd 0

iface eno1 inet manual

iface wlp0s20u4 inet manual
root@proxmox:/#

2. Apply iptables rule to incoming network interface. We will change proxmox default port 8006 to 41568.

root@proxmox:/#iptables -t nat -I PREROUTING -i vmbr0 --dst 192.168.1.5  -p tcp --dport 41568 -j REDIRECT --to-ports 8006

3. Save iptables rules.

root@proxmox:/#apt-get install iptables-persistent
root@proxmox:/#/usr/sbin/netfilter-persistent save

การเปลี่ยน default mirror ของ kali linux เป็น mirror ไทย ku.ac.th

23 Sep
September 23, 2019

1. แก้ file sources.list

Kali $ vim /etc/apt/sources.list

2. ลบข้อมูลเดิมออกให้หมดแล้วใส่ code ข้างล่างลงไป

deb http://mirror1.ku.ac.th/kali/ kali-rolling main contrib non-free
deb-src http://mirror1.ku.ac.th/kali/ kali-rolling main contrib non-free

3. ทำการ update mirror ใหม่

Kali # apt update
Kali # apt upgrade

FIX Windows 10 keeps adding Keyboard layouts without permission

04 Nov
November 4, 2018

I’m the one who have this problem for several month and tried many fix in the internet. Hope this help for anyone who has this problem 🙂

Problem:
Windows 10 always add keyboard layout that user didn’t intend to have it like in my case it’s always add UK keyboard layout:

Fix:
In order to fix this problem you have to do following steps:

  1. Go to setting > Time & Language > Region & Language > Administrative language setting
  2. Under Welcome screen and new user accounts make sure that there are no extra keyboard layout appear in the list
  3. Click OK and Restart PC. This should fix your problem.

****For Window 10 2004 and Later

  1. Go to Control Panel > Clock and Region > Region > Change date, time, or number formats
  2. Go to Administrative tab
  3. Click on Copy settings…
  4. Under Welcome screen and new user accounts make sure that there are no extra keyboard layout appear in the list
  5. Click OK and Restart PC. This should fix your problem.
© Copyright - HHGG It's 42