All Questions
Tagged with command-line 18.04
360
questions
1
vote
0
answers
110
views
Is there a way to dynamically set global environment variables for all users, daemons, and background processes?
I have been trying to reach out to an external data source and dynamically assign the payload contents to environment variables on each startup. I've gotten this half working by running a script in /...
-1
votes
1
answer
265
views
What's wrong with 'grep' command in Ubuntu-18.04.6?
I enjoyed 'grep' for decades but I left Linux years later and I came back again, finding 'grep' works different from before. I checked its usage from web and confirm my memory is not corrupted.
I am ...
0
votes
1
answer
290
views
Can't display virtual console [duplicate]
I got stuck on a login loop and to try to fix it, I need to access a terminal. I pressed CTRL+ALT+F1-6 but the GUI just freezes and I don't get a terminal. If I CTRL+ALT+F7, I'm back to the GUI where ...
0
votes
0
answers
939
views
Windows 10 Ubuntu WSL freezes randomly when doing certain actions
This has been happening quite a bit every time I do certain actions on a server such as listing all files ls -la and bash simply freezes and my only alternative is to start a new shell.
I looked at ...
0
votes
1
answer
484
views
How to remove dot from multiple folders
I have several folders that i want to hide. In my case just by appending a dot at the start of the folder name serves the purpose.
In case of single folder i can just use the command
mv folder .folder
...
0
votes
1
answer
2k
views
How do I reset openvswitch to stop using "other_config" settings I set?
I messed up my openvswitch, and even after remove/purge with apt, the "other_config" parameters still appear. I have been bouncing between a compiled version of ovs with dpdk I did myself ...
0
votes
0
answers
503
views
Failed to execute child
I made some sort of error trying to install software. Now my terminal is stuck with this error message
How can I clear it to use it again? I can't type anything in terminal. I think I found which ...
0
votes
0
answers
273
views
How to reset ls command functionality
This is kinda embarrassing, but I have an Ubuntu console on my windows' software that I used to use in 2019 and left behind when i installed Ubuntu itself. Today i tried using it and found that i ...
0
votes
0
answers
214
views
Issue with Linux multi user creation using bash script
As per our requirement we provided our devloper group: devs:r-x to /var/log/httpd directory.
Now I'm creating a Linux function , which take the developer's first name and create a linux user in our ...
2
votes
1
answer
2k
views
How to find duplicate lines in very large (65GB) text files?
I have 10 text files, that contain 65 characters of hex value in each line. Each text files is 6.5GB in size (having 99999999 lines)
i.e.file1-6.5GB, file2-6.5GB, file3-6.5GB, file4-6.5GB, ... file10-...
0
votes
1
answer
4k
views
all ubuntu commands results in GLIBC_2.30 not found
I wanted to install openssh on a machine (offline ubuntu 18.04) so I logged into another machine with ubuntu 20.04 and I downloaded the packages only using the --download-only option, when I went and ...
1
vote
1
answer
446
views
disk full and "disk usage" doesn't help [closed]
My disk is full and /home directory is to blame from what I understood:
sudo du -h --max-depth=1 | sort -h from Home outputs :
40K ./.flipper
76K ./.pki
76K ./.vnc
92K ./.ssr
108K ./Images
116K ....
0
votes
1
answer
89
views
Failed to run terminal app by .desktop file
I have following desktop file entries.
[Desktop Entry]
Version=1.0
Name=TestClient.desktop
GenericName=Test
Comment=Test
Exec=/usr/share/TestClient/TestClientService
Path=/usr/share/TestClient
Icon=/...
0
votes
1
answer
842
views
Copying files to a protected directory on a remote server
I'm working on a script that needs to copy some files from a local machine to a directory on a remote server. The problem I'm running into is that the directory (/etc/init.d) is owned by root so I get ...
1
vote
1
answer
3k
views
Delete files from root owned folders without sudo
There is an application that creates logs owned by root user (this cannot be changed, at least in my work environment) in the directory logs:
This app is executed through a docker-compose and ...
1
vote
0
answers
17
views
How to install libmysqld-dev on ubuntu 18.04? [duplicate]
I have looked through many forums but can't find how to install libvdpau-dev on Ubuntu 18.04.6. Can you help me?
~$ sudo apt-get install libvdpau-dev
Reading package lists... Done
Building ...
0
votes
1
answer
1k
views
"bash: cd: /home/marcoluis/.local/bin: Not a directory"
While trying to install ade(Awesome Development Environment) through Ubuntu Terminal, for a Autoware.Auto Course , I've ran into a problem while moving the ade executable from "adehome" file ...
0
votes
1
answer
1k
views
How to copy a file to a pendrive in Ubuntu terminal [duplicate]
What is the command to copy a file to a pendrive in Ubuntu terminal?
1
vote
1
answer
1k
views
Problems getting a working installation of gsl 2.6
I need to run some physics software on my laptop, which is very finicky, so I specifically need to use gsl 2.6 (where I normally run I have found this through trial and error).
I run ubuntu-18.04. I ...
1
vote
2
answers
2k
views
How to create desktop-launcher for .exe application which should be launched using wine inside its directory?
I have an MS Windows application which needs new version of Wine. I have installed it locally to home-folder using PlayOnLinux.
I'm stuck with creating simple bash/dash/sh script to launch .exe ...
0
votes
0
answers
50
views
I was in the middle of an upgrade when I accidentaly pressed ctrl+c. I can no longer open a terminal and I cannot shut down with a GUI
As the title says I borked an upgrade. It paused for a moment to ask me something about gnome settings, and I pressed "D" for details, and then ctrl+c to try and get out of the output it ...
1
vote
2
answers
2k
views
ubuntu server 18.04 set dns server name without change after reboot
I am new in ubuntu.
When installing Ubuntu, I set the network settings manually and manually set up the IP and DNS server in installation wizard , but now I after installation complete can not change ...
1
vote
1
answer
430
views
Unable to Switch back to running desktop mode from TTY in 18.04
Tried following thing but did not work. Any help is highly appreciated.
Ctrl+Alt+F7
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade -y
sudo reboot
sudo apt-get update
sudo apt-get ...
0
votes
1
answer
824
views
fsck error on boot: /dev/sda2 - can't type slash character
I need to set the fsck manually on boot but I can't type in the character / that is required to set the path.
(initramfs) fsck /dev/sda2
I tried multiple keyboard combinations without success.
How to ...
0
votes
0
answers
251
views
Realtek LAN Driver Installation Help
I'm using Ubuntu CLI 18.04 version and I'm facing issue when installing Realtek LAN driver.... My motherboard is B460I chipset. This is what I've tried and please help. THANK YOU!!
Press Ctrl+Alt+T (...
-1
votes
1
answer
2k
views
deleted a folder from root(user), ubuntu how do i access the trash bin from terminal?
i have deleted a folder from the root user dir (same where var,usr,home,etc,lib is stored) using the Webmin browser GUI ...on url http:// IP :10000
VPS:
ubuntu 18.04
User : root
no GUI, only SSH and ...
2
votes
2
answers
2k
views
How to get back ubuntu-desktop?
I ran the command sudo apt-get install sqlite. Then some scripts ran on the command prompt, I don't know what happened, but a phrase from the last line was "uninstalled library" . Then I ...
2
votes
1
answer
120
views
How can I configure my Ubuntu laptop and set the blank screen and pc lockdown timers using the terminal?
I'm just lost. I found out that gsettings set org.gnome.desktop.session idle-delay lets me set the blank screen timer, but I can't find how to set the timer for the lockdown. The only solutions I find ...
1
vote
1
answer
3k
views
Issue while checking network connectivity using nmcli in ubuntu 18.04
I am using "nmcli networking connectivity" command to know the connectivity of my wifi connection. After establishing the connection with a wifi & if I see that it has no internet ...
0
votes
2
answers
2k
views
how can I increase the terminal text size on ubuntu server?
I am logged into an ubuntu server, the only monitor available is an old tv. The terminal text is very small, if I didn't know what it was saying, it would basically be illegible. In the terminal, (not ...
0
votes
1
answer
2k
views
VS Code doesn't open from command line as root [duplicate]
I'm using Ubuntu 18.04.5 LTS (Bionic Beaver). I'm trying to run VS Code using these commands:
>> sudo -s
# mkdir ../user-data-dir
# cd <project_path>
<project_path># code . --...
-1
votes
1
answer
115
views
Rsync directory error
I wanted to copy files that are made 15 and more days ago.
Here is the code im currently using
rsync -RDa0P \
--files-from=<(find /vmail/folder1/ -mtime +15 -print0) \
. [email protected]:/...
1
vote
1
answer
705
views
Find command shows the files are present but not found inside the directory
I tried search a files using following find command
find . -type f -mtime +18 -name '*[-.]20[0-9][0-9\-]*' -exec basename {} \;
I can see the files output like .
handh2.access.20210429.bz2
handh2....
2
votes
3
answers
24k
views
Gtk-WARNING **: 22:21:47.873: cannot open display:1 / xhost : unable to open display:1
Sooo, that's the thing, for some reason now I cannot open graphical applications from the terminal, something that is curious to me is that I can launch gedit(for example) from my keyboard shortcut (i ...
1
vote
1
answer
906
views
Nothing appears in Ubuntu Terminal
I am having a problem with the terminal of Ubuntu18.04 LTS. I'm using a dual boot on iMac with macOS.
The problem can be seen in the image below. I have no idea how to solve it. I have checked online ...
0
votes
0
answers
44
views
OpenCV installation in ubuntu 18.04 on Jetson Nano [duplicate]
when I am running this ubuntu command below error is coming:
For installation I am using this link:
https://jkjung-avt.github.io/opencv-on-nano/
Err:12 http://old-releases.ubuntu.com/ubuntu xenial-...
1
vote
1
answer
443
views
man command showing: nothing appropriate
When I type the command man -k which
the console display which: nothing appropriate.
I using Ubuntu 18.04.3
0
votes
0
answers
478
views
Failed to install parallels tools on ubuntu?
I installed Ubuntu 18 using parallels on Mac.
Now I'm trying to install parallels tools and wasn't successful after multiple hours.
When I start the OS I click on "Install Parallels Tools..."...
1
vote
1
answer
168
views
Command line video renderer: Nokia 3310
I have a Nokia 3310 and it has a video player. Unfortunately, it has to have videos specially rendered for it at very low resolution and with very specific codecs. (MPEG-4 video)
I was wondering if ...
-1
votes
1
answer
1k
views
How to set permisson back to Read-only via ssh?
with following command i set up a permission and can edit and change file online:
sudo chmod -R 777 /home/admin/web/
How can i rmeove this permission so that i can only read files form online, ...
1
vote
0
answers
25
views
Ubuntu 18.04 jumps to single display mode on opening terminal
Every time I'm open regular terminal or open bash inside VCode or inside any other programs that are using/opening regular terminal - I'm loosing secondary display connection and staying with single ...
1
vote
0
answers
1k
views
How to open Chrome with a specific position and size from Terminal? --window-size is not working
I need to open google-chrome with a specific position and location from Terminal on Ubuntu 18.04.
I tried
google-chrome --window-position=10,10 --window-size=500,300
But it always opens full screen.
...
1
vote
1
answer
8k
views
Receiving and sending udp stream with one gst-launch-1.0 (gstreamer) command
On an Ubuntu 18.04 laptop, I can receive a stream with the following gst-launch-1.0 commands:
The stream source (from a test brd that generates a test pattern):
$ gst-launch-1.0 -e videotestsrc ! ...
4
votes
0
answers
480
views
Enable multi-line paste for conda python shell on 18.04
I am running ubuntu 18.04 and have started using conda 4.9.2 to set up python environments. As this is a remote machine, I often copy and paste short multi-line code snippets for development purposes.
...
0
votes
1
answer
2k
views
Reset wrong file permissions on root directory
I accidentally changed my file permissions for the root directory ( / ) and now I am unable to do pretty much anything. What I ran was
sudo chmod 70 /
I am running Ubuntu desktop 18. I tried running ...
0
votes
0
answers
508
views
Huion h640p configuring button mapping on Ubuntu 18.04
I have just purchased huion h640p and just followed instructions regarding installing both the digimend driver v9 and v10. however, I still can't access the configuration menu on both versions so I ...
0
votes
1
answer
4k
views
why am i unable to scroll? ubuntu 18.04
I have tried everything it seems. Ive reinstalled recently and now unable to scroll.
Im using ubuntu 18.04 server
Shift + pageup/down does nothing. Ctrl + shift + up/down key does nothing. Ctrl + A ...
1
vote
1
answer
342
views
Accidentally uninstalled Python
I was banging my head off the wall trying to change the path of pip install on my Ubuntu install. I guessed that it may have been the number of Python installations on my machine. I ended up ...
0
votes
1
answer
63
views
Can't boot ubuntu, deleted 86_64x gnu accidently
Hi please help by mistake I deleted all of x86_64 linux folder and now the boot got stuck. Please help thank you
0
votes
2
answers
354
views
I can launch a Perl script with cron, but can I make it open up a window?
I have an Perl script that runs all night, through a terminal window (Win10 putty.exe) on my Ubuntu server. As with many home networks, I occasionally lose my internet connection, which kills my ...