All Questions
Tagged with command-line server
695
questions
0
votes
1
answer
95
views
ubuntu server 24.04 print [0.004s] or bash: 1716451538,009859: value too great for base (error token is "009859") each command
I've just installed ubuntu server 24.04 on bare metall. After each command terminal print "time" in square brakets:
[0.004s]
like
[0.006s] andrey@bonanza-server:~/iso$ rm -r ./*
[0.-55s] ...
0
votes
0
answers
66
views
Ubuntu Server 22.04 installation from command line
I'd like to create a ubuntu server 22.04 with the root and boot on an ssd raid 1 without encryption and a raid 6 with 10 drives with luks encryption.
How can i do this from a command prompt?
Thanks in ...
1
vote
1
answer
292
views
How do I create partitions on Ubuntu Server?
Does anybody know how I am supposed to create a partition? I've tried to create one on SDA, but nothing happens, It just errors out saying: Permission Denied
I am using a "Dell PowerEdge R610&...
0
votes
2
answers
245
views
How to write a bash script from two commands (Find and replace a text string in all files recursively in current directory)
On Ubuntu Server, I use two different commands to find and replace a string in all files recursively in the current folder.
The first command is:
sudo find . -type f -print0 |\
xargs -0 -r sudo ...
2
votes
1
answer
94
views
I need to automatically start a non GUI application through a terminal line because I don't have a GUI
I have a proxmox ubuntu container running ubuntu 23.10 and becuase it is a container it doesn't allow me to use a GUI. I need to run a server application as soon as the container boots up incase it ...
1
vote
0
answers
171
views
After installing apache2 it gives 403 Forbidden error
I installed the apache2 server on Ubuntu and after success, when I tried to hit the URL to check whether it worked or not it threw 403 Forbidden error instead of showing Apache's default page.
I ...
0
votes
0
answers
52
views
A question about tinyproxy
I've got a question. when I tried to start tinyproxy's service, a error occured. I didn't know what should I do to fix it.
0
votes
0
answers
43
views
How to start slrn and use the jnewsrc file?
I'm not understanding how to start slrn, particularly with the jnewsrc versus newsrc files:
nicholas@mordor:~$
nicholas@mordor:~$ slrn
slrn 1.0.3
Loading /usr/share/slrn/slang/slrn.sl
Reading ...
0
votes
1
answer
153
views
How to send an e-mail to localhost with Postfix?
Only one e-mail is received:
Return-Path: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: ...
0
votes
1
answer
1k
views
How to set up disk automount in Ubuntu Server
I'm setting up a small home server consisting of a Raspberry with Ubuntu server.
Specifically, I installed
Ubuntu 23.10 (GNU/Linux 6.5.0-1007-raspi aarch64)
I'm currently manually mounting every ...
0
votes
0
answers
24
views
How to fix ambari-server.service failed
ambari-server.service failed
after use journalctl -xe command
1
vote
1
answer
422
views
How to detach from minecraft server in ubuntu server [closed]
I recently got a server and am quite new to servers in general, I'm trying to keep the server running in the background while I do other stuff on the server, any commands I try just execute as ...
0
votes
0
answers
335
views
Connecting to mysql database using a python script from an Ubuntu VM terminal (socket.gaierror: [Errno -2] Name or service not known error)
I am unable to connect to my testdb database in order to create a table in the database (as shown in the image 1 of the script) below. Using the same connection parameters, I was earlier able to ...
1
vote
0
answers
173
views
Is it possible to play audio files through the onboard system speaker?
Please don't start throwing "stones" at me, I'm just curious. Is it possible to play an audio file, such as .wav, .mp3, or .ogg, through the onboard system speaker of a machine equipped with ...
9
votes
1
answer
3k
views
How can I make onboard PC speaker beep on Ubuntu Server 22.04.3 LTS?
I have two old machines that I use as file servers. The first one has a GIGABYTE GA-G41M-Combo (rev. 2.0) with an Intel Core 2 Duo Processor E7400 (3M Cache, 2.80 GHz, 1066 MHz FSB) and the second one ...
-3
votes
1
answer
111
views
Can i download another operating system from the internet from an old release server? [closed]
I want to know if you can create a bootable usb stick, download another operating system and burn it into the usb from a old release server.
0
votes
1
answer
557
views
Reinstall Ubuntu Server No GUI
I want to uninstall my Ubuntu server OS. And it's no problem if all data is lost. I want a clean reinstall (Delete all data, then reinstall)
2
votes
1
answer
248
views
Bash script issue: can create User but password is not being set correctly
in my ubuntu 22.04 server I created a bash script that setups my server to serve laravel apps, one of the steps I do is:
Downloading mysql
Creating a non-root user,
Grant all privileges to non-root ...
0
votes
0
answers
1k
views
Ubuntu Server 22.04 ping timeout even though it gets IP address and it shows connected on my router
Ubuntu Server 22.04 ping times out even though it gets the IP address and it shows it's connected on my router. The timeout happens when I ping to/from it in the network, but running ip a shows that ...
0
votes
0
answers
238
views
apache2 The Alias directive in /etc/apache2/conf-enabled/autoindex.conf at line 21 will probably never match because it overlaps an earlier Alias
As delivered on 22.04, in the apache2 package, there is a duplicate alias definitions for /usr/share/httpd/icons. The alias of /icons/ is found in both mods-available/alias.conf and conf-available/...
0
votes
0
answers
559
views
Identify PHYSICAL Network Interfaces?
I'm working on a network automation project. I'm writing a python script that will remotely scan Ubuntu servers and network switches and then do its best to reconstruct the network's physical ...
0
votes
0
answers
246
views
Can't download file throught ftp with ascii mode
I'm trying to download file from my own ftp server, but there's a problem, when I try to do it with ascii option. Download goes for 1-2sec and then fails like this:
local: BF1.TXT remote: BF1.TXT
229 ...
4
votes
1
answer
716
views
Crontab never works on ubuntu server
I'm really new to ubuntu server, and i've been having a lot of issues with crontab across this week and i can't really figure out what's wrong with it, i tried everything i saw here to no avail.
So, i ...
6
votes
1
answer
20k
views
Ubuntu server 22.04 how do I determine what DNS server is in use from the command line?
I've already read the link here. I tried this from the accepted answer
nmcli device status
but I get this result
sudo: nmcli: command not found.
Then I read this link. I tried this
systemd-resolve --...
1
vote
1
answer
4k
views
passwd command outputs 'password unchanged` when the password was changed
I'm running on Ubuntu 20.04 server and trying to change the password of the current user using passwd command.
This is the output I get:
Changing password for ubuntu.
Current password:
New password:
...
0
votes
0
answers
37
views
Installing DE on Ubuntu Server gives me an error that prevents me from reaching the CLI
I'm getting this weird issue when trying to install a DE on my Ubuntu Server VM. We made a VM in Hyper-V. I installed Ubuntu Server without issue. When I try to install a DE, I keep getting the issue ...
0
votes
1
answer
187
views
My crontab doesn't seem to be executing any commands
I have been having troubles setting up an auto reboot for my mc server.
My .sh file I have made works perfectly whenever I execute it, but when it comes to using crontab it seems to just do nothing (...
0
votes
0
answers
149
views
How to change color depth in Ubuntu Server?
I was learning vim editor from ssh terminal and messing with syntax highlighting and colorschemes and noticed my console colors were way off.
I can test 256 colors in PuTTy using,
echo -e "\033[...
0
votes
1
answer
1k
views
How to set power saving settings in Ubuntu Server?
After about 10 minutes my monitor turns off, am wondering if I can set it to 30 minutes? I am on Ubuntu server with no GUI, just terminal.
I found a tutorial that completely turns off power management:...
0
votes
0
answers
391
views
How to restart a modded Minecraft server every 24 hours?
I made a .SH file that looks like this:
Letting people know that the server is going to restart:
tmux send-keys -t VHS "/say §cServer restarting in §l30 minutes. §rPlease get ready to log off.&...
0
votes
2
answers
2k
views
CS GO server error on Ubuntu 22.04
As a part of my self-training, where I try to learn anything about VPS's, I wanted to start my own small CS:GO server.
I was using multiple tutorials available in the web, but none of those answers my ...
0
votes
0
answers
233
views
Ownership Issue with wordpress group and user Server and SFTP
First off, thanks to all of you being so supportive in this Forum. I came here to resolve many problems already posted by the community. Today I am reaching out to you because I am noticing an odd ...
0
votes
2
answers
896
views
Mount TP-Link network drive
I have a TP-Link Archer VR600 router, I connected a USB drive to it and I want to mount it to my Ubuntu Server (terminal only).
I installed cifs-utils.
I tried many variants of sudo mount -v -t cifs -...
1
vote
0
answers
469
views
cannot get rc.local to work with simple chown script on ubuntu 20.04
I am a bit of a noob and I have been following this tutorial to setup rc.local on ubuntu 20.04 as I want to change ownership of folder on boot.
The script is saved in chownscript.sh and it is:
#!/bin/...
3
votes
1
answer
3k
views
ssh with StrictHostKeyChecking
When I am connecting the other machine with ssh, every time I answered this question with yes/no -
user@computer$ ssh user@host
This host key is known by the following other names/addresses
~/.ssh/...
1
vote
0
answers
304
views
In ubuntu server apt-get update showing proxy server error
I am trying to update packages on Ubuntu server 22.10 which is running on a Raspberry Pi 4B, that is being used as a remote server. There is no error in the DNS I tried ping google.com and it is ...
0
votes
0
answers
52
views
How can I add a directory to my path and add a command to .bashrc? I am working with Supernova-2.1.1 of 10X Genomics
I would like to add a directory to my path, in my IBM server running Ubuntu 22.04. I would like to install the genome assembly software, SuperNova-2.1.1 by 10x genomics. In order to start using their ...
1
vote
1
answer
735
views
How do I write a start script for my ark server?
I am currently trying to install a ARK dedicated server on my Ubuntu server 22.04.1 I followed the entire tutorial from Dedicated_server_setup everything worked so far, until I tried to write the ...
7
votes
3
answers
2k
views
How can I have Ubuntu display the output of a commad in the login screen on Ubuntu Server?
I've found this question, but it talks about a version of Ubuntu with a GUI. I'm referring to Ubuntu Server, so no GUI. I've also found this question, but it doesn't look like it will display the ...
0
votes
1
answer
483
views
Can no longer use private key to SSH into Oracle Cloud server
This started yesterday after I attempted to execute an SCP command to send a tarball file I had created on my VM to my local machine, it came up with a text block informing me that the address was ...
0
votes
1
answer
172
views
Change screen luminosity [Ubuntu Server 22.04.1]
I'm trying to change the luminosity of my laptop running ubuntu server. tried using xbacklight -set 30 but it will return RANDR Query Version' returned error -1 still does not change the brightness, ...
0
votes
0
answers
19
views
Unable to clone GitHub private repo "Permission denied (publickey). fatal: Could not read > from remote repository" [duplicate]
I asked for help on stackoverflow and I was told it is more than likely a Ubuntu problem and was recommended to ask here.
I'm trying to clone a private git repo to my web folder on Ubuntu. I've ...
0
votes
0
answers
258
views
How to make screen bigger in VirtualBox 7.0
I try change the resolution in GRUB, doesn't work, I cant find nothing about installing the guest additions from command as is this a server 22.04.1 LTS.
2
votes
2
answers
3k
views
timeshift or equivalent on headless server
I wanted to install timeshift on a headless server. Unfortunately it depends on a mass of GUI that I really don't want polluting a server (for example x11-common etc).
Is there either a way to install ...
1
vote
1
answer
244
views
How to reset `ip a` index to start at `1` and end at `number of devices`
The command ip a shows list of network ports and also shows an index.
For example, 1 for lo and 2 for enp5s0 here:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group ...
1
vote
2
answers
128
views
Reducing latency before retrieving a local terminal when an SSH session has expired
When working on a remote server, I open an SSH connection in a terminal ssh remote_username@remote_host.
For some reason, if I left this connection idle for too long, the terminal becomes ...
1
vote
0
answers
39
views
After latest security patches updation of ubuntu 20.04 version, Domain Joined computers are not recognised as member
After latest security patches updation of ubuntu 20.04 version, Domain Joined computers are not recognised as member. Even Local admin account only login can possible. Last two days facing the issue. ...
1
vote
1
answer
88
views
I lost national signs after OS update
I have home server with Ubuntu Server 20.04. I used to have fonts with polish signs in console. But after some OS update I notice that I have some quirks in the places expected to have polish signs.
...
0
votes
1
answer
9k
views
SSH server stopped recieving connections after reboot and kernel upgrade
I am running Ubuntu 22.04.1 LTS on a server, and this morning I ssh'd in to it from the Termius app on my phone to run update and upgrade as per usual, then rebooted it twice to install a kernel ...
3
votes
0
answers
982
views
Share Clipboard between two PCs over Network
I have the following setup:
A Windows computer on my left screen, connected to the local network.
A Raspberry Pi with Ubuntu Server 22.04 on the right screen, also connected to the local network
I ...