DEBIAN 10 LIVE

Partendo da un dvd con debian 10 MATE si selezione la modalità live. Se sul pc è gia installato un SO viene chiesto di assegnare dello spazio alla nuova installazione (ci deve essere spazio sufficiente). Nel mil caso avevo già win7 installato e parcchio spazio così ho assegnato una buona quota a debian. Si dà il caso che a seguito di casini ho dovuto reinstallare debian. Alla fine mi sono trovato tre SO attivabile a scelta al boot: debian nuovo, win7, debian vechio e scassato ma ancora funzionante (vedere come fare a eliminare questo). Siccome il mio pc ha una scheda grafica forsevecchia tipo RADEON inizialmente, nella prima installazione di debian 10 avevo scaricato dei driver (mettere link). Inoltre avevo installato chrome (mettere link) . Il tutto in formato .deb. Ho installato gdebi che è un installatore di pacchetti deb, non so se era necessario visto che in mate c’è già un gestore di pacchetti. Ho poi installato JOE che è il mio editor preferito.
Ho scoperto che le partizioni di win7 e del vecchio debian sono visibili come volumi quindi invece di scaricare di nuovo i driver per RADEON e CHROME li ho copiati dal vecchio sistema dopo aver montato i volumi.

DEBIAN 10 LIVE

Partendo da un dvd con debian 10 MATE si selezione la modalità live. Se sul pc è gia installato un SO viene chiesto di assegnare dello spazio alla nuova installazione (ci deve essere spazio sufficiente). Nel mil caso avevo già win7 installato e parcchio spazio così ho assegnato una buona quota a debian. Si dà il caso che a seguito di casini ho dovuto reinstallare debian. Alla fine mi sono trovato tre SO attivabile a scelta al boot: debian nuovo, win7, debian vechio e scassato ma ancora funzionante (vedere come fare a eliminare questo). Siccome il mio pc ha una scheda grafica forsevecchia tipo RADEON inizialmente, nella prima installazione di debian 10 avevo scaricato dei driver (mettere link). Inoltre avevo installato chrome (mettere link) . Il tutto in formato .deb. Ho installato gdebi che è un installatore di pacchetti deb, non so se era necessario visto che in mate c’è già un gestore di pacchetti. Ho poi installato JOE che è il mio editor preferito.
Ho scoperto che le partizioni di win7 e del vecchio debian sono visibili come volumi quindi invece di scaricare di nuovo i driver per RADEON e CHROME li ho copiati dal vecchio sistema dopo aver montato i volumi.

secondo

secondo testo

HISTORY

Debian 10 a partire dal 190221

[ 2.129991] ata5: SATA max UDMA/133 abar m2048@0xfe8ff000 port 0xfe8ff300 irq 25
[ 2.129993] ata6: SATA max UDMA/133 abar m2048@0xfe8ff000 port 0xfe8ff380 irq 25
[ 2.130084] [drm] initializing kernel modesetting (RV710 0x1002:0x954F 0x174B:0xE990 0x00).
[ 2.130172] ATOM BIOS: 11X
[ 2.130199] radeon 0000:04:00.0: VRAM: 512M 0x0000000000000000 – 0x000000001FFFFFFF (512M used)
[ 2.130201] radeon 0000:04:00.0: GTT: 1024M 0x0000000020000000 – 0x000000005FFFFFFF
[ 2.130204] [drm] Detected VRAM RAM=512M, BAR=256M
[ 2.130205] [drm] RAM width 64bits DDR
[ 2.130280] [TTM] Zone kernel: Available graphics memory: 2020452 kiB
[ 2.130281] [TTM] Initializing pool allocator
[ 2.130287] [TTM] Initializing DMA pool allocator
[ 2.130307] [drm] radeon: 512M of VRAM memory ready
[ 2.130308] [drm] radeon: 1024M of GTT memory ready.
[ 2.130316] [drm] Loading RV710 Microcode
[ 2.130343] radeon 0000:04:00.0: firmware: direct-loading firmware radeon/RV710_pfp.bin
[ 2.130366] radeon 0000:04:00.0: firmware: direct-loading firmware radeon/RV710_me.bin
[ 2.130382] radeon 0000:04:00.0: firmware: direct-loading firmware radeon/R700_rlc.bin
[ 2.130406] radeon 0000:04:00.0: firmware: direct-loading firmware radeon/RV710_smc.bin
[ 2.130409] [drm] Internal thermal controller with fan control
[ 2.131520] [drm] radeon: dpm initialized
[ 2.131593] radeon 0000:04:00.0: firmware: direct-loading firmware radeon/RV710_uvd.bin
[ 2.131608] [drm] GART: num cpu pages 262144, num gpu pages 262144
[ 2.155426] [drm] PCIE GART of 1024M enabled (table at 0x000000000014C000).
[ 2.155465] radeon 0000:04:00.0: WB enabled
[ 2.155468] radeon 0000:04:00.0: fence driver on ring 0 use gpu addr 0x0000000020000c00 and cpu addr 0x(ptrval)
[ 2.155470] radeon 0000:04:00.0: fence driver on ring 3 use gpu addr 0x0000000020000c0c and cpu addr 0x(ptrval)
[ 2.155872] radeon 0000:04:00.0: fence driver on ring 5 use gpu addr 0x000000000005c598 and cpu addr 0x(ptrval)
[ 2.155874] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.155875] [drm] Driver supports precise vblank timestamp query.
[ 2.155876] radeon 0000:04:00.0: radeon: MSI limited to 32-bit
[ 2.155921] radeon 0000:04:00.0: radeon: using MSI.
[ 2.155943] [drm] radeon: irq initialized.
[ 2.201897] [drm] ring test on 0 succeeded in 1 usecs
[ 2.201902] [drm] ring test on 3 succeeded in 2 usecs
[ 2.386468] [drm] ring test on 5 succeeded in 1 usecs
[ 2.386471] [drm] UVD initialized successfully.
[ 2.386604] [drm] ib test on ring 0 succeeded in 0 usecs
[ 2.386620] [drm] ib test on ring 3 succeeded in 0 usecs
[ 2.416252] tsc: Refined TSC clocksource calibration: 2399.950 MHz
[ 2.416259] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2298086d749, max_idle_ns: 440795294037 ns
[ 2.545401] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2.545413] clocksource: Switched to clocksource tsc
[ 2.568511] ata1.00: ATA-8: Hitachi HDP725032GLA380, GM3OA52A, max UDMA/133
[ 2.568514] ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 32), AA
[ 2.569446] ata1.00: configured for UDMA/133
[ 2.569655] scsi 0:0:0:0: Direct-Access ATA Hitachi HDP72503 A52A PQ: 0 ANSI: 5
[ 2.608338] firewire_core 0000:01:05.0: created device fw0: GUID 001e8c00015a0b6b, S400
[ 2.676221] usb 5-1: new low-speed USB device number 2 using uhci_hcd
[ 2.872232] usb 5-1: New USB device found, idVendor=046d, idProduct=c05b, bcdDevice=54.00
[ 2.872235] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.872238] usb 5-1: Product: USB Optical Mouse
[ 2.872240] usb 5-1: Manufacturer: Logitech
[ 2.881841] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.882571] ata2: SATA link down (SStatus 0 SControl 300)
[ 2.899540] usbcore: registered new interface driver usbhid
[ 2.899541] usbhid: USB HID core driver
[ 2.901354] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb5/5-1/5-1:1.0/0003:046D:C05B.0001/input/input5
[ 2.901429] hid-generic 0003:046D:C05B.0001: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.0-1/input0
[ 3.056261] [drm] ib test on ring 5 succeeded
[ 3.056649] [drm] Radeon Display Connectors
[ 3.056650] [drm] Connector 0:
[ 3.056650] [drm] VGA-1
[ 3.056652] [drm] DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c
[ 3.056652] [drm] Encoders:
[ 3.056653] [drm] CRT2: INTERNAL_KLDSCP_DAC2
[ 3.056654] [drm] Connector 1:
[ 3.056655] [drm] HDMI-A-1
[ 3.056655] [drm] HPD1
[ 3.056656] [drm] DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c
[ 3.056657] [drm] Encoders:
[ 3.056658] [drm] DFP1: INTERNAL_UNIPHY
[ 3.056658] [drm] Connector 2:
[ 3.056659] [drm] DVI-I-1
[ 3.056659] [drm] HPD4
[ 3.056661] [drm] DDC: 0x7f10 0x7f10 0x7f14 0x7f14 0x7f18 0x7f18 0x7f1c 0x7f1c
[ 3.056661] [drm] Encoders:
[ 3.056662] [drm] CRT1: INTERNAL_KLDSCP_DAC1
[ 3.056662] [drm] DFP2: INTERNAL_UNIPHY2
[ 3.120954] [drm] fb mappable at 0xD034D000
[ 3.120955] [drm] vram apper at 0xD0000000
[ 3.120955] [drm] size 8294400
[ 3.120956] [drm] fb depth is 24
[ 3.120957] [drm] pitch is 7680
[ 3.121014] fbcon: radeondrmfb (fb0) is primary device
[ 3.171523] Console: switching to colour frame buffer device 160×64
[ 3.174637] radeon 0000:04:00.0: fb0: radeondrmfb frame buffer device
[ 3.188317] [drm] Initialized radeon 2.50.0 20080528 for 0000:04:00.0 on minor 0
[ 3.194548] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 3.195062] ata3.00: ATAPI: TSSTcorp CDDVDW TS-H653Q, 0303, max UDMA/33
[ 3.195813] ata3.00: configured for UDMA/33
[ 3.196769] scsi 2:0:0:0: CD-ROM TSSTcorp CDDVDW TS-H653Q 0303 PQ: 0 ANSI: 5
[ 3.460271] usb 5-2: new low-speed USB device number 3 using uhci_hcd
[ 3.534666] ata4: SATA link down (SStatus 0 SControl 300)
[ 3.657234] usb 5-2: New USB device found, idVendor=046d, idProduct=c31c, bcdDevice=64.00
[ 3.657237] usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.657239] usb 5-2: Product: USB Keyboard
[ 3.657242] usb 5-2: Manufacturer: Logitech
[ 3.691760] input: Logitech USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.0/0003:046D:C31C.0002/input/input6
[ 3.748450] hid-generic 0003:046D:C31C.0002: input,hidraw1: USB HID v1.10 Keyboard [Logitech USB Keyboard] on usb-0000:00:1d.0-2/input0
[ 3.782991] input: Logitech USB Keyboard Consumer Control as /devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.1/0003:046D:C31C.0003/input/input7
[ 3.840379] input: Logitech USB Keyboard System Control as /devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.1/0003:046D:C31C.0003/input/input8
[ 3.840429] hid-generic 0003:046D:C31C.0003: input,hidraw2: USB HID v1.10 Device [Logitech USB Keyboard] on usb-0000:00:1d.0-2/input1
[ 3.846762] ata5: SATA link down (SStatus 0 SControl 300)
[ 4.056218] usb 4-5: new high-speed USB device number 4 using ehci-pci
[ 4.158632] ata6: SATA link down (SStatus 0 SControl 300)
[ 4.166734] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 4.166743] sd 0:0:0:0: [sda] Write Protect is off
[ 4.166745] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 4.166756] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 4.192630] sda: sda1 sda2 sda3
[ 4.193018] sd 0:0:0:0: [sda] Attached SCSI disk
[ 4.207190] sr 2:0:0:0: [sr0] scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[ 4.207192] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 4.207468] sr 2:0:0:0: Attached scsi CD-ROM sr0
[ 4.214064] usb 4-5: New USB device found, idVendor=058f, idProduct=6377, bcdDevice= 1.00
[ 4.214067] usb 4-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4.214068] usb 4-5: Product: Mass Storage Device
[ 4.214070] usb 4-5: Manufacturer: Generic
[ 4.214071] usb 4-5: SerialNumber: 920321111113
[ 4.219531] usb-storage 4-5:1.0: USB Mass Storage device detected
[ 4.219679] scsi host6: usb-storage 4-5:1.0
[ 4.219774] usbcore: registered new interface driver usb-storage
[ 4.221583] usbcore: registered new interface driver uas
[ 4.809757] random: fast init done
[ 5.232971] scsi 6:0:0:0: Direct-Access Generic USB SD Reader 1.00 PQ: 0 ANSI: 0
[ 5.233581] scsi 6:0:0:1: Direct-Access Generic USB CF Reader 1.01 PQ: 0 ANSI: 0
[ 5.234203] scsi 6:0:0:2: Direct-Access Generic USB SM Reader 1.02 PQ: 0 ANSI: 0
[ 5.234827] scsi 6:0:0:3: Direct-Access Generic USB MS Reader 1.03 PQ: 0 ANSI: 0
[ 5.237251] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[ 5.238825] sd 6:0:0:1: [sdc] Attached SCSI removable disk
[ 5.241075] sd 6:0:0:3: [sde] Attached SCSI removable disk
[ 5.248581] sd 6:0:0:2: [sdd] Attached SCSI removable disk
[ 5.352371] random: plymouthd: uninitialized urandom read (8 bytes read)
[ 5.352555] random: plymouthd: uninitialized urandom read (8 bytes read)
[ 5.528220] raid6: sse2x1 gen() 3783 MB/s
[ 5.596202] raid6: sse2x1 xor() 4072 MB/s
[ 5.664216] raid6: sse2x2 gen() 4885 MB/s
[ 5.732203] raid6: sse2x2 xor() 4985 MB/s
[ 5.800207] raid6: sse2x4 gen() 7392 MB/s
[ 5.868209] raid6: sse2x4 xor() 5549 MB/s
[ 5.868210] raid6: using algorithm sse2x4 gen() 7392 MB/s
[ 5.868211] raid6: …. xor() 5549 MB/s, rmw enabled
[ 5.868212] raid6: using ssse3x2 recovery algorithm
[ 5.878722] xor: measuring software checksum speed
[ 5.916205] prefetch64-sse: 9509.000 MB/sec
[ 5.956201] generic_sse: 8421.000 MB/sec
[ 5.956202] xor: using function: prefetch64-sse (9509.000 MB/sec)
[ 6.059389] Btrfs loaded, crc32c=crc32c-generic
[ 6.640731] cryptd: max_cpu_qlen set to 1000
[ 6.822240] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[ 8.225297] systemd[1]: Inserted module ‘autofs4’
[ 8.253473] random: crng init done
[ 8.393035] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[ 8.412293] systemd[1]: Detected architecture x86-64.
[ 8.434013] systemd[1]: Set hostname to .
[ 9.909293] systemd[1]: Listening on Syslog Socket.
[ 9.909387] systemd[1]: Reached target Swap.
[ 9.909451] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 9.910610] systemd[1]: Created slice User and Session Slice.
[ 9.910627] systemd[1]: Reached target Slices.
[ 9.911114] systemd[1]: Created slice system-openvpn.slice.
[ 9.911184] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 10.141324] EXT4-fs (sda3): re-mounted. Opts: (null)
[ 10.334124] systemd-journald[236]: Received request to flush runtime journal from PID 1
[ 11.895735] audit: type=1400 audit(1613726545.673:2): apparmor=”STATUS” operation=”profile_load” profile=”unconfined” name=”libreoffice-senddoc” pid=271 comm=”apparmor_parser”
[ 11.896324] audit: type=1400 audit(1613726545.677:3): apparmor=”STATUS” operation=”profile_load” profile=”unconfined” name=”libreoffice-oopslash” pid=272 comm=”apparmor_parser”
[ 11.921722] audit: type=1400 audit(1613726545.701:4): apparmor=”STATUS” operation=”profile_load” profile=”unconfined” name=”libreoffice-xpdfimport” pid=275 comm=”apparmor_parser”
[ 11.922331] audit: type=1400 audit(1613726545.701:5): apparmor=”STATUS” operation=”profile_load” profile=”unconfined” name=”nvidia_modprobe” pid=274 comm=”apparmor_parser”
[ 11.922336] audit: type=1400 audit(1613726545.701:6): apparmor=”STATUS” operation=”profile_load” profile=”unconfined” name=”nvidia_modprobe//kmod” pid=274 comm=”apparmor_parser”
[ 11.940112] audit: type=1400 audit(1613726545.717:7): apparmor=”STATUS” operation=”profile_load” profile=”unconfined” name=”/usr/lib/x86_64-linux-gnu/lightdm/lightdm-guest-session” pid=270 comm=”apparmor_parser”
[ 11.940118] audit: type=1400 audit(1613726545.717:8): apparmor=”STATUS” operation=”profile_load” profile=”unconfined” name=”/usr/lib/x86_64-linux-gnu/lightdm/lightdm-guest-session//chromium” pid=270 comm=”apparmor_parser”
[ 11.940629] audit: type=1400 audit(1613726545.721:9): apparmor=”STATUS” operation=”profile_load” profile=”unconfined” name=”/usr/bin/man” pid=276 comm=”apparmor_parser”
[ 11.940632] audit: type=1400 audit(1613726545.721:10): apparmor=”STATUS” operation=”profile_load” profile=”unconfined” name=”man_filter” pid=276 comm=”apparmor_parser”
[ 11.940637] audit: type=1400 audit(1613726545.721:11): apparmor=”STATUS” operation=”profile_load” profile=”unconfined” name=”man_groff” pid=276 comm=”apparmor_parser”
[ 12.573768] input: PC Speaker as /devices/platform/pcspkr/input/input9
[ 13.416421] kvm: disabled by bios
[ 13.459296] kvm: disabled by bios
[ 13.491548] kvm: disabled by bios
[ 13.543362] kvm: disabled by bios
[ 13.770225] coretemp coretemp.0: Using relative temperature scale!
[ 13.770894] coretemp coretemp.0: Using relative temperature scale!
[ 13.770928] coretemp coretemp.0: Using relative temperature scale!
[ 13.771064] coretemp coretemp.0: Using relative temperature scale!
[ 14.117085] intel_powerclamp: No package C-state available
[ 14.148583] intel_powerclamp: No package C-state available
[ 14.184668] intel_powerclamp: No package C-state available
[ 14.232625] intel_powerclamp: No package C-state available
[ 14.762365] iTCO_vendor_support: vendor-support=0
[ 14.780643] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[ 14.780692] iTCO_wdt: Found a ICH9R TCO device (Version=2, TCOBASE=0x0860)
[ 14.781415] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[ 14.782837] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 14.783381] sr 2:0:0:0: Attached scsi generic sg1 type 5
[ 14.783643] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 14.783869] sd 6:0:0:1: Attached scsi generic sg3 type 0
[ 14.784008] sd 6:0:0:2: Attached scsi generic sg4 type 0
[ 14.784145] sd 6:0:0:3: Attached scsi generic sg5 type 0
[ 15.884190] snd_hda_intel 0000:04:00.1: Handle vga_switcheroo audio client
[ 16.021167] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:04:00.1/sound/card1/input10
[ 16.277362] snd_hda_codec_realtek hdaudioC0D0: ALC1200: SKU not ready 0x411111f0
[ 16.278045] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC1200: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
[ 16.278047] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 16.278049] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 16.278051] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 16.278052] snd_hda_codec_realtek hdaudioC0D0: dig-out=0x11/0x1e
[ 16.278054] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 16.278056] snd_hda_codec_realtek hdaudioC0D0: Front Mic=0x19
[ 16.278058] snd_hda_codec_realtek hdaudioC0D0: Rear Mic=0x18
[ 16.278059] snd_hda_codec_realtek hdaudioC0D0: Line=0x1c
[ 16.278061] snd_hda_codec_realtek hdaudioC0D0: dig-in=0x1f
[ 16.293829] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[ 16.296960] input: HDA Intel Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[ 16.297092] input: HDA Intel Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
[ 16.298830] input: HDA Intel Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
[ 16.299147] input: HDA Intel Line Out Front as /devices/pci0000:00/0000:00:1b.0/sound/card0/input15
[ 16.300280] input: HDA Intel Line Out Surround as /devices/pci0000:00/0000:00:1b.0/sound/card0/input16
[ 16.301955] input: HDA Intel Line Out CLFE as /devices/pci0000:00/0000:00:1b.0/sound/card0/input17
[ 16.303779] input: HDA Intel Line Out Side as /devices/pci0000:00/0000:00:1b.0/sound/card0/input18
[ 16.303883] input: HDA Intel Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input19
[ 21.833333] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[ 21.833904] RTL8211B Gigabit Ethernet r8169-200:00: attached PHY driver [RTL8211B Gigabit Ethernet] (mii_bus:phy_addr=r8169-200:00, irq=IGNORE)
[ 21.932419] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[ 23.525475] r8169 0000:02:00.0 enp2s0: Link is Up – 100Mbps/Full – flow control rx/tx
[ 23.525486] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
[ 31.337483] tun: Universal TUN/TAP device driver, 1.6
[ 4107.816098] perf: interrupt took too long (2509 > 2500), lowering kernel.perf_event_max_sample_rate to 79500
[ 4773.510097] perf: interrupt took too long (3141 > 3136), lowering kernel.perf_event_max_sample_rate to 63500
[ 6248.133368] perf: interrupt took too long (3927 > 3926), lowering kernel.perf_event_max_sample_rate to 50750
tullio@servervpn:~$ history
1 dmesg
2 sudo dmesg
3 sudo apt-get update
4 dmesg
5 sudo dmesg
6 lspci -nn | grep VGA
7 sudo lspci -nn | grep VGA
8 apt-get install lspci
9 sudo apt-get install lspci
10 sudo apt-get install aptitude
11 su
12 whoami
13 su sudo
14 su
15 sudo root passwd
16 root passwd
17 sudo su
18 wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
19 sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
20 sudo apt-get install wget
21 sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
22 ls
23 sudo dpkg -i google-chrome-stable_current_amd64.deb
24 cd /etc/gdm3
25 ip a
26 sudo apt update
27 ip a show eth0
28 ip a
29 ip a show emp2s0
30 ip a show enp2s0
31 lsb_release -a
32 ip a
33 dig +short myip.opendns.com
34 sudo dig +short myip.opendns.com
35 sudo apt install dig
36 wget https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh -O debian10-vpn.sh
37 ls
38 chmod +x debian10-vpn.sh
39 joe debian10-vpn.sh
40 sudo ./debian10-vpn.sh
41 sudo systemctl start openvpn@server
42 sudo systemctl status openvpn@server

43 ip a
44 ip a show enp2s0
45 ip a show tun0
46 ls
47 scp
48 root scp
49 sudo apt install scp
50 sudo aptitude install scp
51 ssh
52 aptitude install putty
53 sudo aptitude install putty
54 sudo aptitude install ssh openssh-server
55 ssh
56 sudo aptitude install ssh openssh-client
57 scp
58 scp tullio@:;3~/hplento.ovpn
59 sudo scp tullio@:;3~/hplento.ovpn
60 sudo scp tullio@:~/hplento.ovpn
61 sudo scp tullio@:~/hplento.ovpn .
62 ls
63 joe hplento.ovpn
64 firewall-cmd –permanent
65 sudo firewall-cmd –permanent
66 sudo firewall-cmd –permanent –add-port=22/tcp
67 ip a
68 sudo aptitude install vncserver
69 sudo aptitude install real-vnc-server
70 sudo aptitude install realvnc-vnc-server
71 sudo aptitude install gdebi
72 gdebi
73 sudo aptitude install gdebi
74 sudo apt install gdebi-core gdebi
75 which gdebi
76 IFCONFIG
77 ifconfig
78 ip a
79 scp
80 ls
81 sudo scp tullio@192.168.2.13:hplento.ovpn /home
82 sudo scp pi@192.168.2.13:hplento.ovpn /home
83 sudo scp hplento.ovpn pi@192.168.2.13 /home
84 sudo scp hplento.ovpn pi@192.168.2.13:/home
85 sudo scp hplento.ovpn tullio@192.168.2.13:/home
86 sudo scp hplento.ovpn pi@192.168.2.13:/home/pi
87 ip a
88 lsusb
89 fdisk -l
90 sudo su
91 ls
92 df
93 ip a
94 dmesg
95 sudo dmesg
96 history
tullio@servervpn:~$ history >storia190221.txt
tullio@servervpn:~$ joe storia190221.txt

^K IW storia190221.txt Row 1 Col 1
1 dmesg
2 sudo dmesg
3 sudo apt-get update
4 dmesg
5 sudo dmesg
6 lspci -nn | grep VGA
7 sudo lspci -nn | grep VGA
8 apt-get install lspci
9 sudo apt-get install lspci
10 sudo apt-get install aptitude
11 su
12 whoami
13 su sudo
14 su
15 sudo root passwd
16 root passwd
17 sudo su
18 wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd6
19 sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current
20 sudo apt-get install wget
21 sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current
22 ls
23 sudo dpkg -i google-chrome-stable_current_amd64.deb
No modified files, so no updates needed.
tullio@servervpn:~$ joe storia190221.txt

IW   storia190221.txt                                      Row 1    Col 1   
1  dmesg
2  sudo dmesg
3  sudo apt-get update
4  dmesg
5  sudo dmesg
6  lspci -nn | grep VGA
7  sudo lspci -nn | grep VGA
8  apt-get install lspci
9  sudo apt-get install lspci

10 sudo apt-get install aptitude
11 su
12 whoami
13 su sudo
14 su
15 sudo root passwd
16 root passwd
17 sudo su
18 wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd6
19 sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current
20 sudo apt-get install wget
21 sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current
22 ls
Joe’s Own Editor 4.6 (utf-8) ** Type Ctrl-K Q to exit or Ctrl-K H for help **

OPENVPN IN 5 MINUTI

https://www.cyberciti.biz/faq/debian-10-set-up-openvpn-server-in-5-minutes/

Debian 10 Set Up OpenVPN Server In 5 Minutes

Author: Vivek Gite Last updated: April 24, 2020 1 comment

Iam a new Debian Linux 10 server user. How do I set up an OpenVPN Server on Debian Linux version 10 server to shield my browsing activity from bad guys on public Wi-Fi, and more?

Introduction OpenVPN is a full-featured SSL VPN (virtual private network). It implements OSI layer 2 or 3 secure network extension using the SSL/TLS protocol. It is an open source software and distributed under the GNU GPL. A VPN allows you to connect securely to an insecure public network such as wifi network at the airport or hotel. VPN is also required to access your corporate or enterprise or home server resources. You can bypass the geo-blocked site and increase your privacy or safety online. This tutorial provides step-by-step instructions for configuring an OpenVPN server on Debian Linux 10 server.

Procedure: Debian 10 Set Up OpenVPN Server In 5 Minutes

The steps are as follows:

Step 1 – Update your system

Run the apt command :
{vivek@deb10:~ }$ sudo apt update
{vivek@deb10:~ }$ sudo apt upgrade

Step 2 – Find and note down your IP address

Use the ip command as follows:
{vivek@deb10:~ }$ ip a
{vivek@deb10:~ }$ ip a show eth0

ip command get my IP address on Debian Linux 10
Another option is to run the following dig command/host command to find out your public IP address from Linux command line:
{vivek@deb10:~ }$ dig +short myip.opendns.com @resolver1.opendns.com
OR
{vivek@deb10:~ }$ dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}'

A note about IP address

Most cloud servers have two types of IP address:

  1. Public static IP address directly assigned to your box and routed from the Internet. For example, Linode, Digital Ocean, and others gives you direct public IP address.
  2. Private static IP address directly attached to your server and your server is behind NAT with public IP address. For example, AWS EC2/Lightsail give you this kind of NAT public IP address.

The script will automatically detect your networking setup. All you have to do is provide correct IP address when asked for it.

Step 3 – Download and run debian10-vpn.sh script

I am going to use the wget command:
{vivek@deb10:~ }$ wget https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh -O debian10-vpn.sh


Download debian10-vpn.sh script to setup OpenVPN server in 5 minutes on Debian
Setup permissions using the chmod command{vivek@deb10:~ }$ chmod +x debian10-vpn.sh
One can view the script using a text editor such as vim/vi :
{vivek@deb10:~ }$ vi debian10-vpn.sh

Run debian10-vpn.sh to install OpenVPN server

Now all you have to do is:
{vivek@deb10:~ }$ sudo ./debian10-vpn.sh
Sample session from AWS EC2/Lightsail where my cloud server is behind NAT:
Debian 10 Setup OpenVPN Server In 5 Minutes
Sample session from Linode/DO server where cloud server has direct public IPv4 address:
Script Input Part 1
To avoid problem always choose DNS as 1.1.1.1 or Google DNS. Those are fast DNS server and reached from anywhere on the Internet. Okay, that was all script needed. We are ready to setup your OpenVPN server now. You will be able to generate a client at the end of the installation as follows:
Script Input Part 2

How do I start/stop/restart OpenVPN server on Debian 10 ?

{vivek@deb10:~ }$ sudo systemctl stop openvpn@server # <--- stop server
{vivek@deb10:~ }$ sudo systemctl start openvpn@server # <--- start server
{vivek@deb10:~ }$ sudo systemctl restart openvpn@server # <--- restart server
{vivek@deb10:~ }$ sudo systemctl status openvpn@server # <--- get server status

systemctl status openvpn@server

Step 4 – Connect an OpenVPN server using IOS/Android/Linux/Windows client

On server your will find a client configuration file called ~/linuxDesktop.ovpn. All you have to do is copy this file to your local desktop using the scp command:
{vivek@deb10:~ }$ scp vivek@:~/linuxDesktop.ovpn .
OR
{vivek@deb10:~ }$ scp root@:~/linuxDesktop.ovpn .
Next, provide this file to your OpenVPN client to connect:

  1. Download Apple iOS client
  2. Grab Android client
  3. Visit Apple MacOS (OS X) client
  4. Microsoft user download: Windows 8/10 clients

Linux Desktop: OpenVPN client configuration

First, install the openvpn client for your desktop, enter:
{vivek@deb10:~ }$ sudo yum install openvpn
OR
{vivek@deb10:~ }$ sudo apt install openvpn
Next, copy linuxDesktop.ovpn as follows:
{vivek@deb10:~ }$ sudo cp linuxDesktop.ovpn /etc/openvpn/client/

'linuxDesktop.ovpn' -> '/etc/openvpn/client/linuxDesktop.ovpn'

Test connectivity from the CLI:
{vivek@deb10:~ }$ sudo openvpn --client --config /etc/openvpn/client/linuxDesktop.ovpn
Sample outputs:

Sat Jul 13 21:56:07 2019 Unrecognized option or missing or extra parameter(s) in /etc/openvpn/client/linuxDesktop.ovpn:17: block-outside-dns (2.4.7)
Sat Jul 13 21:56:07 2019 OpenVPN 2.4.7 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 20 2019
Sat Jul 13 21:56:07 2019 library versions: OpenSSL 1.1.1c FIPS  28 May 2019, LZO 2.08
Sat Jul 13 21:56:07 2019 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Sat Jul 13 21:56:07 2019 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Sat Jul 13 21:56:07 2019 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Sat Jul 13 21:56:07 2019 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Sat Jul 13 21:56:07 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]172.105.51.63:1194
Sat Jul 13 21:56:07 2019 Socket Buffers: R=[212992->212992] S=[212992->212992]
Sat Jul 13 21:56:07 2019 UDP link local: (not bound)
Sat Jul 13 21:56:07 2019 UDP link remote: [AF_INET]172.105.51.63:1194
Sat Jul 13 21:56:07 2019 TLS: Initial packet from [AF_INET]172.105.51.63:1194, sid=0efbc848 675b12c1
Sat Jul 13 21:56:07 2019 VERIFY OK: depth=1, CN=cn_46pSC1RkaXtUzj8E
Sat Jul 13 21:56:07 2019 VERIFY KU OK
Sat Jul 13 21:56:07 2019 Validating certificate extended key usage
Sat Jul 13 21:56:07 2019 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Sat Jul 13 21:56:07 2019 VERIFY EKU OK
Sat Jul 13 21:56:07 2019 VERIFY X509NAME OK: CN=server_CfvC2CLjZBl46fYN
Sat Jul 13 21:56:07 2019 VERIFY OK: depth=0, CN=server_CfvC2CLjZBl46fYN
Sat Jul 13 21:56:07 2019 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 256 bit EC, curve: prime256v1
Sat Jul 13 21:56:07 2019 [server_CfvC2CLjZBl46fYN] Peer Connection Initiated with [AF_INET]172.105.51.63:1194
Sat Jul 13 21:56:08 2019 SENT CONTROL [server_CfvC2CLjZBl46fYN]: 'PUSH_REQUEST' (status=1)
Sat Jul 13 21:56:08 2019 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 1.0.0.1,dhcp-option DNS 1.1.1.1,redirect-gateway def1 bypass-dhcp,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.2 255.255.255.0,peer-id 0,cipher AES-128-GCM'
Sat Jul 13 21:56:08 2019 OPTIONS IMPORT: timers and/or timeouts modified
Sat Jul 13 21:56:08 2019 OPTIONS IMPORT: --ifconfig/up options modified
Sat Jul 13 21:56:08 2019 OPTIONS IMPORT: route options modified
Sat Jul 13 21:56:08 2019 OPTIONS IMPORT: route-related options modified
Sat Jul 13 21:56:08 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sat Jul 13 21:56:08 2019 OPTIONS IMPORT: peer-id set
Sat Jul 13 21:56:08 2019 OPTIONS IMPORT: adjusting link_mtu to 1624
Sat Jul 13 21:56:08 2019 OPTIONS IMPORT: data channel crypto options modified
Sat Jul 13 21:56:08 2019 Outgoing Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
Sat Jul 13 21:56:08 2019 Incoming Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
Sat Jul 13 21:56:08 2019 ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=wlp1s0 HWADDR=b4:6b:fc:32:7a:12
Sat Jul 13 21:56:08 2019 TUN/TAP device tun0 opened
Sat Jul 13 21:56:08 2019 TUN/TAP TX queue length set to 100
Sat Jul 13 21:56:08 2019 /sbin/ip link set dev tun0 up mtu 1500
Sat Jul 13 21:56:08 2019 /sbin/ip addr add dev tun0 10.8.0.2/24 broadcast 10.8.0.255
Sat Jul 13 21:56:08 2019 /sbin/ip route add 172.105.51.63/32 via 192.168.1.1
Sat Jul 13 21:56:08 2019 /sbin/ip route add 0.0.0.0/1 via 10.8.0.1
Sat Jul 13 21:56:08 2019 /sbin/ip route add 128.0.0.0/1 via 10.8.0.1
Sat Jul 13 21:56:08 2019 Initialization Sequence Completed

Your Linux system will automatically connect when computer restart using openvpn script/service:
{vivek@deb10:~ }$ sudo systemctl start openvpn@client #

Step 5 – Verify/test the connectivity

Execute the following commands after connecting to OpenVPN server from your Linux desktop:
{vivek@deb10:~ }$ ping 10.8.0.1 #Ping to the OpenVPN server gateway
{vivek@deb10:~ }$ ip route #Make sure routing setup working
{vivek@deb10:~ }$ dig TXT +short o-o.myaddr.l.google.com @ns1.google.com #Must return public IP address of OpenVPN server

172.105.51.63

Step 6 – Add/delete/revoke VPN users

Now that OpenVPN is already installed and running, it is time to add a new user or delete existing VPN users. We can do this smoothly by running the debian10-vpn.sh script again. Type the following command on youe OpenVPN Debian Linux v10 server:
ssh vivek@my-debian-10-server
sudo ./debian10-vpn.sh

Gif.01: Add or remove OpenVPN users/clients

A note about trouble shooting OpenVPN server and client issues

Check OpenVPN server for errors:
{vivek@deb10:~ }$ journalctl --identifier ovpn-server

Click to enlarge imageIs firewall rule setup correctly on your server? Use the iptables command and sysctl command commands to verify NAT rule setup on your server:
{vivek@deb10:~ }$ sudo iptables -t nat -L -n -v
{vivek@deb10:~ }$ sysctl net.ipv4.ip_forward

NAT Firewall OpenVPN Rules Verification
Insert the rules if not inserted from /etc/rc.local
{vivek@deb10:~ }$ sudo sh /etc/rc.local
{vivek@deb10:~ }$ sudo sysctl -w net.ipv4.ip_forward=1

Is OpenVPN server running and port is open? Use the ss command or netstat command and pidof command/ps command:
{vivek@deb10:~ }$ netstat -tulpn | grep :1194 ## 1194 is the openvpn server port ##
{vivek@deb10:~ }$ ss -tulpn | grep :1194 ## 1194 is the openvpn server port ##
{vivek@deb10:~ }$ ps aux | grep openvpn ## is the openvpn server running? ##
{vivek@deb10:~ }$ ps -C openvpn ## is the openvpn server running? ##
{vivek@deb10:~ }$ pidof openvpn ## find the openvpn server PID ##

Verify that OpenVPN server runnign and Port is Open on Debian Linux
If not running, restart the OpenVPN server:
{vivek@deb10:~ }$ sudo systemctl restart openvpn@server
Look out for errors:
{vivek@deb10:~ }$ sudo systemctl status openvpn@server
Can the Linux desktop client connect to the OpenVPN server machine? First you need to run a simple test to see if the OpenVPN server port (UDP 1194) accepts connections:
{vivek@deb10:~ }$ nc -vu 1194
Connection to 1194 port [udp/openvpn] succeeded!

If not connected it means either a Linux desktop firewall or your router is blocking access to server. Make sure both client and server using same protocol and port, e.g. UDP port 1194.

Conclusion

Congratulations. You successfully set up an OpenVPN server on Debian Linux 10 server running in the cloud. See the OpenVPN website here and script page here for additional information