Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
105 views

Problem while trying to create a new virtual machine

I am trying to install a virtual machine in my computer, I have windows 10. I installed virtual box and I created a new machine, when I try to start the machine, it says : unpacking failed: write ...
user avatar
0 votes
1 answer
452 views

How to use dd to backup "WD My Passport" on Ubuntu

My "WD My Passport" has problem when connecting to Windows 10, it may have hardware error. I have set a password for the "WD My Passport" with WD Security long time ago. Windows ...
stackbiz's user avatar
  • 133
0 votes
0 answers
188 views

How to change permissions for a file in Ubuntu?

I run the file ./schema.pg.sh with the command sudo ./schema.pg.sh in /sql directory. But the terminal throws an error: could not change directory to "/sql": Permission denied Script I am ...
lian. lun's user avatar
  • 111
0 votes
1 answer
198 views

Why can't I ping db from a unix machine on windows?

I have a windows machine, with ubuntu on it, where I run docker, in which there is a container I need to connect to db. But the problem is already between windows and ubuntu. If I ping the db from ...
EOTheDev's user avatar
0 votes
0 answers
665 views

Why can't I log in to PuTTY as user, but only root

I'm trying to Split and format Disk on VM in Debian. I also need set file permision. My problem is that I can't log to the server through PuTTY as user, only as root. I entered same IP address as for ...
Petr Barabáš's user avatar
2 votes
2 answers
12k views

Docker on WSL erroring: "docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?."

I'm working on a project for a paid internship at my school that requires that I install docker on a WSL ubuntu instance. However, after I follow the instructions from this page to install docker and ...
hexagonNoah's user avatar
0 votes
1 answer
694 views

Using mv/cp to replace a invalid symlink with directory

I have a symlink at /tmp/bot which I want to replace with a directory. But I am getting error mv: cannot overwrite non-directory '/tmp/bot' with directory 'log' Steps to reproduce error # Create a ...
Pranjal Doshi's user avatar
3 votes
1 answer
7k views

How do I stop chrome remote desktop on Unix or prevent it running on startup?

I have an Ubuntu 20 VM on Google Cloud Platform. Mostly, I only need to SSH into the VM. However, very occasionally, I need to use a desktop environment. I am not particularly skilled with Unix. I ...
Fergusmac's user avatar
  • 161
2 votes
1 answer
282 views

Understanding umask

I have the following task: What are the rights if you create a file file1 and a directory dir1 and used umask 026 before? Now use umask 233 and perform the following: cat file1 > file2 mv file1 ...
user avatar
1 vote
1 answer
1k views

Create virtual machine with vmrun?

I am using vmware's workstation pro, and I need to be able to manage multiple virtual machines remotely. Is it possible to use vmrun to create a virtual machine? Or can it only control already created ...
Ryan w's user avatar
  • 113
2 votes
0 answers
279 views

Poetry add <package> returns AttributeError

I am trying to create a Python package using poetry. I haven't been able to replicate the steps described in documentation. When I try to add a dependancy, e.g. poetry add pendulum I get jan@jan-XPS-...
Jan Pisl's user avatar
  • 121
2 votes
1 answer
898 views

What is the difference between Linux Kernel 5.3.0-1039-gke and 4.15.0-124-generic?

A few months ago I bought two used Dell Optiplex machines for use as a NAS and internet gateway, respectively. I installed Ubuntu 18.04 on both of them, and I noticed that even though the exact same ...
Computer_User's user avatar
0 votes
0 answers
1k views

how to change permissions of a drive that's read-only on ubuntu 20.04?

On the same hard disk I have a drive that's read-only . I tried to change the permissions manually from properties but it doesn't . I don't know what to do . thanks in advance
Abdelrhman's user avatar
3 votes
1 answer
3k views

Undeletable directories on NTFS partition

I'm trying to delete two folders on a drive on an Ubuntu server which were created by Windows (drive previously mounted on Windows and their content is just garbage now). I've tried everything I can ...
MattGeek's user avatar
  • 131
0 votes
0 answers
83 views

Unix solution to logging with rotation and cleanups

Given we have various types of applications running in a unix system via tmux. Those applications can be java, node, go or anything that outputs to stdout... Is there a good solution for unix systems ...
vach's user avatar
  • 335
0 votes
1 answer
46 views

How to make an application "recognized" as an application

I'm using ubuntu and i3 window manager. To launch matlab I have to navigate to /usr/local/MATLAB/R2019a/bin and type ./matlab. Other applications like firefox and atom are recognized as ...
caesar's user avatar
  • 123
1 vote
0 answers
48 views

pip freeze takes 26 seconds as root and 1.6 as user

Why takes pip freeze as superuser that long (roundabout 26s) and just a second and a bit more (roundabout 1.5s ) for normal users ? And how could i get deeper into the reasons ?
stackelk's user avatar
0 votes
1 answer
169 views

How do I reset my directory structure and contents?

I have a linux box in the cloud and it had this directory structure /mnt/ws/{myProjects} I was trying to mount a (directory I believe?) from another resource and I did it through the following ...
qaispak's user avatar
  • 103
-1 votes
1 answer
89 views

how to deploy a docker container using kubernetes? [duplicate]

Currently I have created a ubuntu 14.04 docker image by pulling it off from the dockerhub website and did a docker run on this image to create a container instance of this image.Then I installed ...
Vignesh Swaminathan's user avatar
2 votes
1 answer
3k views

Is there a safe way to automatically remove a stray unix-socket files before it’s related services are run?

I'm running Daphne from supervisor on Ubuntu 18.04 with the --unix-socket option to bind to a Unix socket rather than a TCP host/port: command=daphne --unix-socket /home/project/run/daphne.sock ...
Mario Orlandi's user avatar
0 votes
1 answer
5k views

How to speed up Ubuntu booting process?

I am a newbie on Linux, and I am using Ubuntu 19.04, the one under development and about to be released. It happens to be slow during startup, so I want to speed up the startup process. I have already ...
user avatar
0 votes
0 answers
649 views

How to get new generated file name on logrotate?

I want to get new file name generated by Logrotate and run a script on it. Logrotate has an event called Postrotate() with a parameter called '$1' but it returns the original path file name for ...
Amintabar's user avatar
  • 101
0 votes
1 answer
388 views

What distros are NOT affected by the new Code of Conduct? [closed]

What distros of Linux or Unix based operating systems are NOT subject to the new code of conduct recently implemented for Linux? And/or which use no code affected by this CoC? https://git.kernel.org/...
Joe's user avatar
  • 11
0 votes
0 answers
39 views

Restricting ssh and ftp access to unix server

I know I can restrict ssh and ftp access to my unix server by using tools like ufw (uncomplicated firewall). What if I restrict ssh and ftp access to one IP address (my home IP) and then suddenly lose ...
user avatar
0 votes
2 answers
3k views

Files that start with ' ~$ ' and end with .doc / .docx are appearing on my desktop. How can I remove them?

I was going through my desktop in Linux and I noticed a list of files that were not on my desktop. They are Microsoft word(.doc & .docx) files that exist on my computer elsewhere. For some reason ...
Aladdin Al-Khatib's user avatar
0 votes
1 answer
353 views

Unable to locate package shred. Meaning, apt-get can't find it and neither can I using Google

I have come to depend on this unix utility to wipe SSD drives dependably and quickly in preparation for re-imaging. I am curious as to why it is gone. But the purpose of this question is to either: ...
Scripting Pink's user avatar
1 vote
1 answer
925 views

X-GNOME-Autostart=false but process is still run

As I understand adding X-GNOME-Autostart=false at the end of a file in ~/.config/autostart/... should prevent an application from starting it at autostart. I'm adding this line at the end of gnome-...
user874923's user avatar
4 votes
1 answer
6k views

How can the bash shell on Window be completely reset?

I'm new to Unix but interested learn, so started trying to use bash/Ubuntu on Windows. Unfortunately, bash crashed and now bash/Ubuntu seems to be broken as most folders are now missing from the ...
Matt's user avatar
  • 43
2 votes
1 answer
999 views

How to back up efficiently (without copying files that have not been changed)?

I regularly do back ups of files on my laptop using an external hard-drive. I use a command line of a Linux system (Ubuntu). So far I have just copied everything to a directory and have removed the ...
Roman's user avatar
  • 515
0 votes
0 answers
368 views

Linux - How to toggle sloppy mouse window using terminal / hotkeys

So I can change window focus mode using the GUI but I would like to be able to switch between sloppy and click on toggle and want to create a script for that that is trigger by keyboard. However, ...
mjs's user avatar
  • 121
0 votes
1 answer
1k views

Using binary from remote server?

If I upload nc orcurl` bins to the root of my web server, can I run commands remotely using (GET|POST) requests? http://website.com/nc -lv 1234 http://website.com/curl http://foo.com -o bar.txt http:...
user765578's user avatar
0 votes
1 answer
123 views

Ubuntu 16.04 hanging VPS server

I have a weird issue with a VPS server I am using for a personal project. The server started hanging at 10:40 yesterday The last line from /var/log/syslog before hanging was: ^@^@^@^@^@^@^@^@^@^@^@^@...
Boggio's user avatar
  • 158
-3 votes
1 answer
142 views

How to password protect an individual file?

I use digitalocean, and all my files are in /var/www/html/, so, say, if I have a file /var/www/html/index_test.php how can I password protect the individual file as simply and securely as possible. It ...
I'm More Than Just A Hammer's user avatar
77 votes
7 answers
55k views

Cannot make directory '/var/run/screen': Permission denied

Sometime, usually after a crash or sudden shutdown, screen refuses to start. Commands like screen screen -ls screen -r screen -d result in the following output Cannot make directory '/var/run/...
Huey's user avatar
  • 1,551
2 votes
0 answers
278 views

webdav, Directory vs Location

I'm in the first steps with webdav. While trying to configure it, seeing other people configurations I found some use the <Directory> directive and some use the <Location> directive. Some ...
KcFnMi's user avatar
  • 604
1 vote
1 answer
142 views

Write to file most common words by counter with linux

I want to write to a file the words that appear at least X times in the text. For example, for: a b a c b and X = 2 I would get: a b
Shani Gamrian's user avatar
0 votes
1 answer
1k views

How to install Chrome in Ubuntu

I am using ubuntu 15.10 64bit. Click Download Chrome. Choose either 32 bit .deb (for 32bit Ubuntu) or 64 bit .deb (for 64bit Ubuntu) Click Accept and Install. Download .deb file to a folder (...
Sun's user avatar
  • 201
1 vote
3 answers
2k views

I accidentally deleted “/bin” folder as root user on a a Digital Ocean droplet?

I have a Digital Ocean droplet which I use as my development environment. I deleted /bin directory !! via SSH. Now I know it was a stupid thing to do but it is the truth now. I am not great with UNIX/...
enemetch's user avatar
  • 151
1 vote
1 answer
6k views

apt-get install libphp-phpmailer not including class.phpmailer.php

I am installing PHPMailer on a Ubuntu 14.04 LTS server. I ran the command apt-get install libphp-phpmailer. It installed the files under usr/share/doc/libphp-phpmailer as expected. However, it is ...
Goose's user avatar
  • 163
0 votes
2 answers
60 views

print lines containing limited words in the second field

I have a symbol table of the form M07UP49A0870I422.wav <s> haraa keelaa <bn> </s> M07UP49A0870I423.wav <s> <horn> jau <babble> </s> ...
Upendra01's user avatar
  • 137
1 vote
3 answers
61 views

how to specify A record of own domain in a zonefile

assuming that foobar.com is my domain, how do i specify the ip of "foobar.com" itself in my zonefile ? Below is my sample @ IN SOA myfoobar.com. hostmaster.myfoobar.com. ( 2001030201 ;...
Noob's user avatar
  • 1,645
18 votes
2 answers
87k views

Linux command line to create a log file for rsync

I am trying to create a log text file after doing an rsync. I've tried using a command line: rsync -av /source/ /dest/ > log.txt The text file that was created only shows the file names that are &...
kasrus's user avatar
  • 181
4 votes
2 answers
6k views

Samba - use only Unix users

I am setting up a home server with file sharing using Samba. It has XUbuntu 15.10. Samba uses passwords specified in shares-admin by default. However, I want Samba to use users from /etc/passwd and ...
Vilican's user avatar
  • 260
1 vote
1 answer
1k views

Why does grep -r --include=*.js * > dirname/.filename not write all .js files to a single file?

I am trying to put all js files in a directory and sub directorys into a single file in lexical order. What did I do wrong?
user5448026's user avatar
0 votes
2 answers
8k views

Ubuntu Additional Drivers not appearing 14.04

I have a Dell laptop, and I recently installed Ubuntu 14.04 as a dual-boot apart from Windows. I partitioned the installation properly, but after the installation was done I tried to connect to WiFi ...
Katz's user avatar
  • 113
4 votes
2 answers
5k views

Facing Issue for Installing Rabit MQ

Whem I am using the below command sudo apt-get install rabbitmq-server I am getting the below missing package dependency Reading package lists... Done Building dependency tree Reading state ...
Chatts's user avatar
  • 41
0 votes
0 answers
342 views

Cannot access server via SSH in terminal

When I try logging in via ssh [email protected] I am asked for my password, however when I enter it, it doesn't work. I can access the server by a different user then run su root and the password works ...
nonsequiter's user avatar
1 vote
1 answer
253 views

Empty swapfile after using dd

According to many tutorials available on the internet (like for example this one https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 ), to generate a swapfile, i need to ...
mbajur's user avatar
  • 125
1 vote
3 answers
505 views

How to extract file contents and pass in as command line parameters in Linux?

I need to run a command: python test.py command --option 1 value1 value2 value3 value4 value5 (upto value100) I have a text file with space separated values, like: value1 value2 value3 value4 ...
ajy's user avatar
  • 650
1 vote
1 answer
2k views

Accepted publickey for userx from y.y.y.y (ssh authentication)

Server A and B is setup for autoSSH I am on ServerA (y.y.y.y) and is accessing ServerB. I understand that A's public key is store in B and is use by B to encrypt the challenge to A when A connect. ...
Noob's user avatar
  • 1,645