Search found 130 matches

by Chris
Wed Sep 10, 2025 7:01 pm
Forum: Linux
Topic: swap partition not present
Replies: 1
Views: 1967

Re: swap partition not present

You can choose to add a swap-file.
Similar to what windows does.

you create a swap-file, usually in root. But do it on the partition with the most space.
sudo fallocate -l 2G /swapfile

Usually you take 2 times the available ram, 1G ram x 2 = 2G swapfile.

Assign it read/write permissions for ...
by Chris
Thu Aug 01, 2024 9:04 pm
Forum: General
Topic: openvpn Authenticate/Decrypt packet error: packet HMAC authentication failed
Replies: 1
Views: 519490

Re: openvpn Authenticate/Decrypt packet error: packet HMAC authentication failed

This usually means you have the wrong ta.key installed on Server or client.

Check

Code: Select all

tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
or

Code: Select all

<tls-crypt>
Make sure the are the same.
by Chris
Sun May 19, 2024 12:14 pm
Forum: Linux
Topic: ping scan LAN network
Replies: 1
Views: 521234

Re: ping scan LAN network

Excellent tools are nmap and fping
nmap -sP 192.168.1.1/24

fping -a -r 0 -g 192.168.1.1/24

But if you don't want to install a new tools,
you can try with the default ping.

for i in {1..254}; do (ping -vc 1 -t 4 192.168.1.$i); done

Or, if you want a clearer output, add grep:
for i in {1 ...
by Chris
Sat May 06, 2023 5:58 pm
Forum: Linux
Topic: openvpn Authenticate/Decrypt packet error: packet HMAC authentication failed
Replies: 2
Views: 278766

Re: openvpn Authenticate/Decrypt packet error: packet HMAC authentication failed

It looks like there is problem with the key.

If you can post part of your server/client config
we can verify a little more.
by Chris
Thu Apr 27, 2023 6:41 pm
Forum: General
Topic: Remove write protection on a usb drive
Replies: 2
Views: 266676

Re: Remove write protection on a usb drive

You can check with hdparm :
sudo hdparm /dev/sdc

/dev/sdc:
multcount = 0 (off)
readonly = 1 (on)
readahead = 256 (on)
geometry = 15904/64/32, sectors = 32571392, start = 0

Change it with:
sudo hdparm -r0 /dev/sdc1

If it doesn't work, it might be a problem with the USB drive.
by Chris
Thu Apr 27, 2023 11:09 am
Forum: General
Topic: Remove write protection on a usb drive
Replies: 2
Views: 266676

Re: Remove write protection on a usb drive

Best is to erase the partitions with fdisk or gparted
and create new ones.
by Chris
Thu Apr 27, 2023 8:53 am
Forum: General
Topic: Remove write protection on a usb drive
Replies: 2
Views: 266676

Remove write protection on a usb drive

ho do I remove write protection on a usb drive ?

I have a drive that I want to format.
but when I try to do it under windows,
I get the message that the drive is write-protected.
by Chris
Thu Feb 09, 2023 8:49 pm
Forum: Linux
Topic: debian set ntp client
Replies: 1
Views: 227518

Re: debian set ntp client

if you have the latest version of Debian, Buster.
it probably uses systemd.
The config files are in /etc/systemd/

You can check the current NTP server with:
systemctl status systemd-timesyncd

edit the file: /etc/systemd/timesyncd.conf
add the server:
# add to the end : set NTP server for your ...
by Chris
Wed Jan 25, 2023 10:23 am
Forum: Windows
Topic: Solved: how can i find login used by network drive mapping?
Replies: 2
Views: 624289

Re: how can i find login used by network drive mapping?

you can use the command:

Code: Select all

wmic netuse where LocalName="Z:" get UserName /value
It shows the username
by Chris
Mon Jan 23, 2023 7:18 pm
Forum: Linux
Topic: ifconfig not found on debian ?
Replies: 1
Views: 225358

Re: ifconfig not found on debian ?

You can use :
ip address

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever ...