tips

Enable tuneling at proxmox lxc

Noted for me adding tuneling at proxmox lxc.

Open proxmox host shell and open /etc/pve/lxcnumber/lxc.conf (/etc/pve/100/100.conf) and then add this

lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir

and then
chown 100000:100000 /dev/net/tun

after that reboot the container and voila success if problem still occure change dns setting add 1.1.1.1 to the dns server

Thats it, its works for me

Happy coding and Salam ngoprek

Belajar Kubernetes dengan k3s bagian 1

Catatan belajar kubernetes dengan k3s, semoga bermanfaat juga buat yang lain

langkah pertama instalasi, saya menggunakan ubuntu server sebagai host dokumentasi k3s silahkan baca disini

Langkah langkah installasi k3s

curl -sfL https://get.k3s.io | sh -

lalu copykan config k3s ke kubectl dengan command

sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
Setelah itu pastikan node berjalan dengan mengetikkan
kubectl ger nodes
Biasanya butuh beberapa saat sampai dengan nodes berjalan
Apabila status ready seperti diatas maka k3s sudah berjalan, selamat anda sudah berhasil menginstall k3s
Happy coding dan salam ngoprek

The most have skill for IOT Engineer

    1. Security expertise: With the proliferation of IoT devices and their connectivity, security remains a paramount concern. IoT engineers need to be well-versed in securing devices, data, and communication to prevent vulnerabilities and potential cyber-attacks.
    2. Data analytics and AI/ML: IoT generates vast amounts of data, and being able to analyze and derive valuable insights from this data is crucial. Skills in data analytics, artificial intelligence, and machine learning enable engineers to make better use of the data collected by IoT devices.
    3. Cloud computing: Cloud platforms play a vital role in the IoT ecosystem as they provide a scalable and flexible infrastructure for data storage, processing, and application deployment. Understanding cloud computing and how to work with platforms like AWS, Azure, or Google Cloud is essential.
    4. Programming languages: Proficiency in programming languages like C/C++, Python, Java, or JavaScript is fundamental for developing IoT applications and firmware.
    5. Communication protocols: IoT devices communicate with each other and with the central system through various protocols such as MQTT, CoAP, HTTP, Bluetooth, Zigbee, LoRaWAN, etc. Knowing how to work with these protocols is essential for seamless device communication.
    6. Hardware knowledge: A solid understanding of hardware components, sensors, microcontrollers, and embedded systems is essential for designing and troubleshooting IoT devices.
    7. Interdisciplinary skills: IoT engineers often work in interdisciplinary teams, and having the skills to collaborate with other professionals like data scientists, industrial designers, and domain experts is advantageous.
    8. Regulatory compliance and standards: Knowledge of industry standards and regulatory compliance (e.g., GDPR, HIPAA) related to IoT and data privacy is essential to ensure legal and ethical practices.
    9. Energy efficiency optimization: As IoT devices are often battery-powered or have limited energy resources, optimizing energy consumption is vital for extending device lifespan and improving sustainability.
    10. Prototyping and testing: Rapid prototyping skills and the ability to perform rigorous testing are valuable for efficiently developing and improving IoT devices and systems.

Remember, the field of IoT is dynamic and ever-changing. Staying up-to-date with the latest trends and technologies will help IoT engineers remain competitive in their profession.

Run office 365 at ubuntu

 

The easy way to run office365 with Ubuntu, and feel like you have installed Office in your Ubuntu, this is how I do it

First, you must have an office365 account activated and also install office365webdesktop apps in your Ubuntu using snap

like this

 sudo snap install office365webdesktop --beta

And then open office365webdesktop in your application that’s it, done.

Happy coding

Howto setting wordpress working under proxy nginx

This is my note howto setting WordPress

First add this at wp-config.php

define('FORCE_SSL_ADMIN', true);

if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false){
    $_SERVER['HTTPS'] = 'on';
    $_SERVER['SERVER_PORT'] = 443;
}
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
    $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}

define('WP_HOME', 'https://domain name');
define('WP_SITEURL', 'https://domain name');