New answers tagged

0 votes

lvreduce does not accept lv path argument

No longer get this error after removing the space in '512 GB' $ sudo lvreduce -r -L 512GB /dev/ubuntu-vg/lv-0
1 vote

How to check serial number of NVMe disk?

You can use good old sysfs and cat for that: $ cat /sys/block/nvme0n1/device/serial PHNH912345441P0B Also as @VZ pointed out modern versions of lsblk will output serial numbers for NVMe drives ...
1 vote

Best way to setup a LAN Server, only accessible inside for files and media?

Samba would be the primary way of sharing files. The following assumes you are using Ubuntu 22.04 Server or later: Install samba: sudo apt install samba Make it discoverable and accessible to Win7, ...
  • 6,471
0 votes

Apache service is up and running but not in web browser

I have been at this tinkering for days but Indeed bilaljan321's persistence saved me days with this. Aws and some other vps's don't allow http (port:80) by default. You need to add the rules to the ...
1 vote
Accepted

How to calculate the UDP input Bitrate and Output Bitrate

install the TSDuck toolkit and use this command --debug tsp --debug -I ip 269.1.1.104:1001 -O drop -I = input UPD ip * Debug: ip: initial buffer load: 7 packets, 1,316 bytes * ip: unknown initial ...
0 votes
Accepted

Intermittent network issues on server 22.04.1 after reboot

I discovered the issue - after a modem update (Century Link CX4000G) the "Cyber Security" mode in the modem Advanced Settings was blocking all traffic whenever Plex was active. Disabling ...
0 votes

How to get the ip address without ifconfig or ip command in Ubuntu?

If you are simply a user on an Ubuntu server, and the administrator has disabled your access to certain tools, it may be difficult to determine which tools you have available. The ip command is ...
  • 9,716
0 votes

How to get the ip address without ifconfig or ip command in Ubuntu?

You can try using Python. It is installed by default on most distributions. It is very easy to use. $python >>> import netifaces as ni >>> ni.interfaces() ['lo', 'eth0','eth1','eth2'...
0 votes

How to verify if a reboot was due to power outage?

Here is a simple bash script that will tell you if the last shutdown was a safe or unsafe restart. if [[ "$(last -x | tac | grep -B1 boot | tail -2 | grep shutdown)" == "" ]]; then ...
  • 101
0 votes

another machine in the LAN can connect to the apache web server with the ip address but not the hostname

You need to specify the hosts file on each of the clients so that is set for each. Alternatively set up a DNS like BIND and set your Router to point to hand out this as DNS for your DHCP clients. ...
  • 189
-2 votes

check which process cause high cpu utilization in last 24 hours

Process command Process Status (ps) ps ps -eo lstart,pid,time,user,comm,pcpu |\ grep 2022 |\ grep Nov |\ grep pm |\ grep 11 |\ sort -n -k 10 -r |\ head --lines 1 ...
  • 38
0 votes

How can I limit the users that have remotely access to PC using xrdp.ini configuration file?

So by default, xrdp will allow any user to perform the remote connection.... To allow only certain users to perform an rdp connection via the XRDP server, you will need to perform the following ...
  • 1,867
2 votes

check which process cause high cpu utilization in last 24 hours

You can use sar. It’s included as part of sysstat. To install: sudo apt-get install sysstat Next, enable it by editing /etc/default/sysstat and setting “ENABLED” to true. Doing so monitors your ...
  • 9,785
0 votes

another machine in the LAN can connect to the apache web server with the ip address but not the hostname

Your router would have an option in DHCP setup called as Domain Name. This is used to resolve hostnames in a local network. You can run cat /etc/resolv.conf which would tell your search domain. For e....
1 vote
Accepted

Does Ubuntu Server 22.10 have a Graphical user interface setup?

Yes. Install the ubuntu-desktop package. sudo apt install ubuntu-desktop^ And reboot.
0 votes

How to calculate the UDP input Bitrate and Output Bitrate

install this tool sudo apt-get install lsof and use this command where 1001 is a port lsof -i :1001
  • 1
0 votes

How to control when daily automatic update happens?

The short answer is: # systemctl edit --full apt-daily.timer That will copy the existing file to /etc/systemd/... and open it in $EDITOR. Make changes to OnCalendar= and RandomizedDelaySec= lines, ...
0 votes
Accepted

How to control when daily automatic update happens?

apt daily timers are run by systemd: me@me:~$ systemctl list-timers | grep apt Wed 2022-11-30 00:42:17 CST 14h left Tue 2022-11-29 07:57:32 CST 2h 22min ago apt-daily.timer apt-...
  • 49.3k
1 vote

Is there a package that provides /sbin/consoletype?

Consoletype appears to be a system V init program and is not provided on Ubuntu, consoletype from Gentoo appears to work: https://gitweb.gentoo.org/proj/gentoo-functions.git/tree/consoletype.c To ...
  • 111
0 votes
Accepted

Security Certs for multiple domains in postfix

You need one SSL certificate with numerous domains added to it. Otherwise, hostname resolution will fail on TLS and you get a mismatched domain. I.E. you need to run certbot with numerous -d entries ...
  • 69.5k
0 votes
Accepted

Can't connect SSH on static IP address

I found out I had a duplicate IP on my network, so whenever I was trying to connect to my Ubuntu server I was in fact trying to connect a Windows server that would refuse any SSH attempt. Ashamed but ...
0 votes

ISP installation

I believe the documentation for that project is bad to say the least. I think it's expected that before you can install, you have to run the first command in the very top: git clone https://github.com/...
0 votes

Run an Android VM on a ubuntu server, and remotely access it

The easiest way to run an Android emulator (VM) is to install AndroidStudio and then the emulator will be installed. Here's mine running on Ubuntu 22.04 after starting it from AndroidStudio Tools......
  • 1,540
0 votes
Accepted

USB Ethernet adapter refusing to work on Ubuntu Server

Networking in all recent server editions of Ubuntu is configured in netplan. Please note that your relevant ethernet interface is enx00e04c07002e. Your netplan file, however, attempts to configure ...
  • 56.6k
0 votes

SSH default port not changing (Ubuntu 22.10)

This is how I solved the OpenSSH port issue on Ubuntu 22.10. Important - Please take a backup or snapshot before you make changes. Use the nano editor and change the value of ListenStream parameter ...
0 votes

Can I know a key is copied to the server before it asks me for a password?

This answer is not a script. I hope this answer can gave you more ideas about your issue. There are 3 ways to check this issue. There will be a connection established for each user if they can log in....
  • 11
0 votes

I have a Minecraft Server located in a space with 2% use and I am getting an error saying I have insufficient space

I have completely forgot to try restarting the machine. I have restarted the machine that the servers run on and now it works.
0 votes

Date and time for log files different to `date`, `timezone` etc

(As I answered elsewhere) This command did it for me in Ubuntu 22.10: $ sudo timedatectl set-timezone America/New_York Time zone names: $ timedatectl list-timezones | less Confirm: $ timedatectl ...
  • 2,486
0 votes
Accepted

Access Rights Problem: USB Device Read as User

tl;dr: Add $USER to input group sudo usermod -a -G input $USER and everything works like a charm. Long Version: Thank you for reading. I will not edit my question, so anybody can see my earlier ...
0 votes
Accepted

Where is my DNS configured on my upgraded Ubuntu server?

Using nmcli, for example: nmcli device mod $deviceName ipv4.dns "8.8.8.8 8.8.4.4". nmcli device to list defined devices. To check DNS: nmcli device show | grep IP4.DNS EDIT: The systemd-...
0 votes
Accepted

Setup additional interface

I've found solution on my own. It was enough to setup netplan and iproute2 correctly. 01-netcfg.yaml (netplan) network: version: 2 ethernets: ppp0: addresses: - 192.168.0.10/32 ...
  • 111
0 votes
Accepted

ftp Connection refused over virtualbox

I managed to figure out what is happening maybe. I started by turning off the firewall sudo ufw disable Then I changed the port I was using for ftp to 2121 and set up the port forwarding to send 2121 ...
1 vote

GPU only visible in clinfo for root

A bit late here, but I was having the same issue. My issue was that the /dev/dri/renderD129 had the wrong permissions. I fixed it with sudo chmod 0666 /dev/dri/renderD129
0 votes

Ubuntu Server 20.04 setup stuck at "Block probing did not discover any disks"

I had the same issue when trying to install Ubuntu 22.04 on a Dell Optiplex Micro. Changing the SATA bios settings fixed it for me. Set the SATA operation to AHCI.
0 votes

Ubuntu server does not accept any request from outside

The UFW rules you showed are valid for IPv6 protocol, not for IPv4. Check your IPv4 rules, i.e. ones which do not include (v6) mark. Your database listening port TCP 5434 is IPv4 type port, but the ...
  • 610
0 votes
Accepted

SSH service fails to start

Thanks to Rachel's answer about how to test for errors and how to debug, I was able to fix that by regenerating host keys. The solution was /usr/bin/ssh-keygen -A After a service restart ssh operates ...
0 votes

SSH service fails to start

Please check if there is any syntax errors in the /etc/ssh/sshd_config configuration file. The command following command will tell you if any directives are incorrect: /usr/sbin/sshd -T If the above ...
  • 1
1 vote

How to set the path from one Ubuntu server to another Ubuntu server?

The error message is not asking you to set the path to the other server, but to the location of psql. If you are running Ubuntu 22.04, this will be in a location like /usr/lib/postgresql/14/bin. Here ...
  • 16.6k
1 vote

Can I know a key is copied to the server before it asks me for a password?

Just try ... if ssh -o IdentitiesOnly=yes -o BatchMode=yes -i ~/.ssh/key_name -q user@host exit; then echo "Connection succesful" else echo "Connection not succesful" fi -...
  • 25.2k
2 votes
Accepted

Is it possible to mix Docker containers with LXC containers

This is definitely possible, and also feasible. Docker and LXC/LXD serve different purposes. Docker containers are geared towards running specific applications inside each container, and thus each ...
0 votes

Efficiently get PID's in certain ports from java

I solved it anyway and I had to get PID from around all 65500 ports and save it in hashmap for later usage in the interval of around every 10 secs. I made it done within 2-2.1 secs while 30,000 ports ...
0 votes

IPv6 network on Ubuntu Server 22.04

You have a misconfiguration here, in that you are declaring two host addresses on the interface and one of them is the network address. Your ipv6 config should be: addresses: - 2a03:XX:XX::5ba/125 ...
  • 4,925
1 vote
Accepted

Installing packages of R in UBUNTU

If you are working on a university cluster, you will likely need to ask the system's administrators to install the packages site-wide - or else configure R to install packages to a local (user) ...
0 votes
Accepted

Ubuntu 22.04 Server BTRFS root

I found out what was going wrong, I could not use preformatted BTRFS partitions. They should be formatted again during the installation process, after selecting the format option, I could also select \...
0 votes

SSH default port not changing (Ubuntu 22.10)

@Silently is right, probably... But systemctl disable --now ssh.socket ; systemctl enable --now ssh.service method doesn't work for me. I don't care why Ubuntu team decided to break SSHD severely, ...
0 votes

Sending UDP packets with `logger` command

Here is how I do use echo with netcat for sending both TCP and UDP syslog messages. UDP echo "<14>Test $RANDOM" | nc -v -u -w 0 127.0.0.1 514 TCP echo "<14>Test $RANDOM&...
  • 101
0 votes
Accepted

Recover data from unbootable Ubuntu VM on Hyper-V

I assumed that there was an issue with gnome because the error I was getting so I went into rescue mode and tried to reinstall it. After that I just did a regular update/upgrade when i noticed a boot ...
0 votes

too many open files for a Golang server running behind Caddy

this error maybe is client limit, it is not server response.
0 votes

Ubuntu Server 20.04 setup stuck at "Block probing did not discover any disks"

I had same issue when try install ubuntu 20.04 on Hp ProLiant dl380e gen8 I solved disabling on bios option dynamicSmart Array https://downloads.linux.hpe.com/SDR/project/ubuntu-hpdsa/rbsu.jpg https://...
0 votes

Ubuntu 22.04 KVM Installation

Can you post your netplan config file? Seems like the parser is happy with the yaml but netplan not so much. Also, KVM will start and run without the addition of the bridge and if you only want local ...

Top 50 recent answers are included