Skip to content

Instantly share code, notes, and snippets.

@nwgat
nwgat / ubuntu_update_booting_kernel.md
Created Jan 20, 2023 — forked from chaiyujin/ubuntu_update_booting_kernel.md
Ubuntu: Install Kernel and Set GRUB Default Kernel
View ubuntu_update_booting_kernel.md

Ubuntu: Install Kernel and Set GRUB Default Kernel

Install Kernel

Install the default kernel:

sudo apt install linux-generic

Set GRUB Default Kernel

  1. Find entrance from /boot/grub/grub.cfg
    • Get the $menuentry_id_option:
View gist:fb90b91393028cf1fa3fd52e959256fe
# NanoPi R4S Direct
C:\Windows\system32>iperf3 -c 192.168.1.203
Connecting to host 192.168.1.203, port 5201
[ 4] local 192.168.1.2 port 49832 connected to 192.168.1.203 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 112 MBytes 943 Mbits/sec
[ 4] 1.00-2.00 sec 113 MBytes 946 Mbits/sec
[ 4] 2.00-3.00 sec 113 MBytes 947 Mbits/sec
[ 4] 3.00-4.00 sec 113 MBytes 947 Mbits/sec
@nwgat
nwgat / install_cygwin_sshd.txt
Created Aug 14, 2020 — forked from roxlu/install_cygwin_sshd.txt
Installing CYGWIN + SSHD for remote access through SSH on windows
View install_cygwin_sshd.txt
Installing CYGWIN with SSH
1) Download cygwin setup.exe from http://www.cygwin.com
- Execute setup.exe
- Install from internet
- Root directory: `c:\cygwin` + all users
- Local package directory: use default value
- Select a mirror to download files from
- Select these packages:
- editors > xemacs 21.4.22-1
- net > openssh 6.1-p
View gist:e270bafa5d89f8766d15319799bcdb83

write all packages to file

cygcheck -c | awk '{ print $1}' | paste -s -d" " | awk '{gsub("Cygwin Package ", "");print}' > pkg.list

install apt-cyg

curl -k https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg -o apt-cyg && install apt-cyg /usr/bin

install packages

@nwgat
nwgat / gist:7d3d22c561c9015c81e85b1d3cd04274
Last active Jun 13, 2020
AUSDH32GUI3V30SHA2-RA1 A-DATA 32GB UHS-I U3 V30S(R:100MB/s/W:70MB/s) HIGH MicroSD w/adapter Raspberry Pi 4 2GB
View gist:7d3d22c561c9015c81e85b1d3cd04274
pi@vale:~ $ curl https://raw.githubusercontent.com/geerlingguy/raspberry-pi-dramble/master/setup/benchmarks/microsd-benchmarks.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2227 100 2227 0 0 4678 0 --:--:-- --:--:-- --:--:-- 4678
Raspberry Pi Dramble microSD benchmarks
microSD clock: 50.000 MHz
Installing iozone...
% Total % Received % Xferd Average Speed Time Time Time Current
View gist:283a0604035f1cb0b534cebb6e777caa
https://developers.meethue.com/develop/get-started-2/
View gist:49caab48e4b117a5db7d495845a5a67e
General Information
Device Name: High Point Technologies RocketRAID 2720 SAS Controller
Original Device Name: High Point Technologies RocketRAID 2720 SAS Controller
Device Class: RAID controller
Revision ID: 3
PCI Address (Bus:Device:Function) Number: 40:0:0
PCI Latency Timer: 0
Hardware ID: PCI\VEN_1103&DEV_2720&SUBSYS_00001103&REV_03
PCI Express
@nwgat
nwgat / gist:1f12e61cfce99b5e1e798c5f91e83b09
Created Mar 9, 2018
2200G/RavenRidge GPU-Z video decoder support
View gist:1f12e61cfce99b5e1e798c5f91e83b09
DXVA 2.0 Video Decode
Supported Yes
H.264 multiview
9901ccd3-ca12-4b7e-867a-e2223d9255c3
Supported Yes
480p Yes
720p Yes
1080p Yes
4K Yes
View ryzen memcopy 32.txt
Size: 33177600 byte (Width: 3840, Height: 2160, Depth: 4)
Iterations: 100
Initializing...
| Name | Calls | Valid | Average Time | Minimum Time | Maximum Time | Bandwidth |
+------------------+----------+----------+--------------+--------------+--------------+----------------------+
| C | 100 | 100 | 4088401 ns | 2808109 ns | 6085061 ns | 8115054098 B/s |
| C++ | 100 | 100 | 4066675 ns | 2847848 ns | 7064794 ns | 8158408929 B/s |
| MOVSB | 100 | 100 | 6174592 ns | 4662324 ns | 15836649 ns | 5373245131 B/s |
| MT: 2 Threads | 100 | 100 | 2675723 ns | 2540197 ns | 3048641 ns | 12399487743 B/s |
| MT: 3 Threads | 100 | 100 | 2534039 ns | 2442978 ns | 2847848 ns | 13092772992 B/s |
View 960evo_990FX.txt
AS SSD Benchmark 1.9.5986.35387
------------------------------
Name: NVMe Samsung SSD 960 SCSI Disk Device
Firmware: 2B7Q
Controller: secnvme
Offset: 132096 K - OK
Size: 465.76 GB
Date: 2/6/2017 23:44:21
------------------------------
Sequential: