The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

0

For me, I used to be able to connect to a corporate Windows share drive with Nautilus with Ubuntu 16.04, but no longer after switching to Ubuntu 18.04. Nautilus is supposed to prompt my username and password to connect to the Window share drive, but in Ubuntu 18.04, it just immediately gave the error Unable to access location. Failed to mount Windows share: ...


1

The logical place to put these files is in a /var/log/ location somewhere. That would be the perfect place. The other option would be to store logs inside your project directory.


0

I had the same problem and after a lot of time, I was able to figure it out. The problem is that the /etc/passwdfile is missing on the clients. This is how I solved it: I installed LTSP in chroot mode (can be done after chrootless installation): sudo ltsp-build-client Execute this command on the server. Once that‘s done, enter: sudo ltsp-chroot to ...


0

Thank you for your responses! I was able to make it work by following these instructions to open a SOCKSv5 tunnel and change the Proxy configuration on my alternative browser! It worked like a charm!


1

Alternatively you could use the NetworkManager CLI with the nmcli command. list all NM connections: nmcli con bring up VPN connection : nmcli con up id VPN-Connection-Name bring down VPN connection: nmcli con down id VPN-Connection-Name Where VPN-Connection-Name is the actual name of the VPN connection as listed in the nmcli con output. You'll need to ...


2

Install Ubuntu Server We will walk you through the steps of flashing Ubuntu Server on a Raspberry Pi 2, 3 or 4. At the end of this process, you will have a fully fledged development or production environment. Minimum requirements Raspberry Pi 2, 3 or 4 microSD card Ubuntu Server image monitor with an HDMI interface HDMI cable USB keyboard ...


2

I think you want -L, not -R -- forward local port on your machine to remote port. ssh -N -L 12345:<remote IP>:22 <remote user>@<remote IP> Then, ssh -p 12345 <user>@<your machine> should get forwarded to port 22 on the remote system. If you are running any firewalls you will need to be sure port 12345 is open on your machine ...


0

I got the same error, but, after restarting my computer, everything worked again. So, you may want to give it a try before reinstalling some components.


0

I don't know emacs; but a quick look at https://packages.ubuntu.com/disco/emacs (you didn't mention a release so I accepted default/latest) and it shows a dependency for emacs-gtk, thus if this was installed on a server without GUI it'd cause a load more packages to be installed to meet dependencies. A search for emacs (https://packages.ubuntu.com/search?...


1

They all have the same repositories. The only difference is what packages get installed by default. Once you have an Ubuntu server up and running you can say tasksel install ubuntu-desktop and you get a fully-functional Ubuntu desktop. You could in principle start with Ubuntu desktop and then remove packages, but that would be a lot of useless work. Some ...


2

The sources you now use have different 'hash' data (a value calculated to show if there's corruption in file sources) so one or more of your packages on one of your sources disagrees with that package on another source. Solve it by changing sources in /etc/apt/sources.list, following the article at https://help.ubuntu.com/community/Repositories/Ubuntu . ...


0

For the subnet use 192.168.1.0/24


0

You didn't open the data connection ports in your firewall. It may work without the encryption, if the firewall is smart and opens the ports automatically (link to my article) by inspecting the FTP control connection. But when the control connection is encrypted, the firewall cannot inspect it. The data connection port range is set in your vsftpd.conf by ...


0

I also had similar observation, however in my case below is happening I have disabled ufw After I reboot the ubuntu server, the PING test does not traverse from one interface to other interface If I enabled/disable ufw and retry, it works I am using Ubuntu 18.04


1

journalctl -b -1 -e will show the end of the previous boot's logs, leading up to the last crash. journalctl --list-boots will show what it's possible to look at. man journalctl is a requirement.


0

sudo chown rabbitmq:rabbitmq /var/lib/rabbitmq/.erlang.cookie sudo chmod 600 /var/lib/rabbitmq/.erlang.cookie


1

Just start the dbus service: /etc/init.d/dbus start


0

For me it was related to .my.cnf file under /home/user/ because when the Workbench was trying to get to the specifics of the file, it had been overwritten (by some other app which uses same configuration). Run mysqldump --version and if it says : mysqldump: [ERROR] Found option without preceding group in config file /home/user/.my.cnf at line X! then you ...


0

Using the netplan command is the new way to configure networking in more recent versions of Ubuntu. Please try setting your IP settings manually with it and see if the issue persists. https://www.linux.com/tutorials/how-use-netplan-network-configuration-tool-linux/ You can find the explanation within this source. If using netplan try results in a error, try ...


1

Turns out it was an AWS limitation. Apparently talking between EC2 instances inside the same VPC has an active connection limit of around 120,000. Making them use a public IP to communicate got rid of the limit. I wasn't getting any errors in Ubuntu because the OS was not limiting anything.


0

You only need to open a port in your router.


0

You use to IP2Location Firewall List to generate iptables for China. The file is in the following format. Run it in the shell and you should be blocking all China IP addresses. iptables -A INPUT -s 8.8.8.8/24 -j DROP


0

This problem occures when your /etc/mysql/mysql.conf.d/mysqld.cnf file is wrongly set. If you recently made changes on this file, please revert to the previous one or copy the default one from here # # The MySQL database server configuration file. # # You can copy this to one of: # - "/etc/mysql/my.cnf" to set global options, # - "~/.my.cnf" to set user-...


0

Although edwin's answer accurately describes how to free up space on /boot (563 up votes) it doesn't address the question of how to incorporate /boot into / to avoid micro-management of disk space. This question is a good example with gparted image: How to increase size of /boot partition using gparted Please help me here. I am always getting messages ...


1

There is a misunderstanding about hosts file here. First of all, hosts file have precedence over DNS on most operating systems, you can define them on Linux/Unix operating systems and macOS in /etc/hosts and c:\windows\system32\drivers\etc\hosts on Windows. So when you add a record in your hosts file like: 127.0.0.1 repo.sweetsoft and try to open http://...


0

You can go with a different approach: 127.0.1.1 sweetsoft repo.sweetsoft in /etc/hosts Direct repo.sweetsoft:80 and 127.0.0.1:9000 in your HTTP server (AFAIK, Apache can make it using VirtualHost Reference). However, it seem to me you are using an app development server. Using Apache to proxy may be an overkill.


0

You can create a /etc/ssh/sshrc file. See man 8 ssh. If you want this for a single user, use ~/.ssh/rc. Here is a sample /etc/ssh/sshrc that will notify you via dbus when someone logs in on your machine. Don't forget to chmod +x: #!/bin/bash ip=`echo $SSH_CONNECTION | cut -d " " -f 1` notify-send -u CRITICAL "SSH connection from ${ip}" "User $USER just ...


1

As stated in comments you have a virus installed by crypto miner. This tells you how to remove it: Watchbog Vulnerability To summarize the steps: crontab –r ls /var/spool/cron/crontabs pip uninstall urllib2 apt-get remove --auto-remove curl apt-get remove --auto-remove wget crontab -r while true ; do killall watchbog ; done sudo passwd root Read the ...


0

There is no way to have custom domain with SSL cert for it in pure self-service Odoo Online. The documentation only refers to using external CDN with SSL certs. Some Odoo.com forum posts say that you can ask for this from Odoo support by email. You can try that. Another option is to have separate reverse proxy for your domain with ssl cert and route ...


0

Have you tried adding -p after? So that it looks like this: sudo mysql -u root -p


1

This seems to be the bug blocking you https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1831453 . Regarding live-server vs server install, the live-server installer uses the subiquity package, which is the one having an issue. This post explains it https://serverfault.com/questions/930163/what-is-the-difference-between-ubuntu-server-and-ubuntu-server-...


1

The two most common causes of your error message are: [1] You are not passing the samba password when asked for the "registered user" credentials. You create that password by adding the user to the samba password database - and I will use my own as an example: sudo smbpasswd -a morbius [2] Since the share that was created allows guest access the more ...


0

Since I moved ahead and reinstalled the ubuntu on the droplet, this problem is no longer bothering me. So, pls consider this closed. But for anybody who visits this thread again, I would like to add that I tried changing permissions (i.e. gave execution permissions) etc on all the paths, which is told in the different (first 10) results which google throws ...


0

Best guess, you are using the wrong ip address. Suppose you have two computers, C1 and C2. Let, you have your nextcloud installed in C1. So when you want to access nextcloud from C1, you can use localhost. But when you try to access nextcloud from C2, you cannot use localhost because that means C2 is looking for nextcloud in C2, but nextcloud is in C1. That'...


0

Finally got it running myself. Problem was that socket file was not being created. During my research I noticed that init.py files were not present since then I uploaded my project to github it discarded them as empty and unnecessary. I fixed this and it seems that was the root of my problem in the first place. After this I finally got site up and running. ...


0

I have followed the steps mentioned above @ADITYA SINHA.. but, I got the same error again. (base) bandham@BANDHAM:~$ sudo apt-get install aptitude Reading package lists... Done Building dependency tree Reading state information... Done aptitude is already the newest version (0.8.10-6ubuntu1). You might want to run 'apt --fix-broken install' to ...


0

I managed to find a different solution, which doesn´t require me to run Windows Server nor an additional network setup holding a iSCSI-target/initiator. I realized that I can simply run a virtual machine from the ubuntu-client with the requested software and applications needed. In addition letting the virtual machine be on the same network, via the bridged ...


1

If you have a list of files to download, just save it as a file (let’s call it files.txt) and then run this command: < files.txt xargs -I{} wget https://s3.amazonaws.com/edx-course-spdx-kiczales/HTC/{} So what would the approach be, on Linux/Ubuntu, for downloading the files with the AWS CLI? There is a lot of ways with wget being one of the most ...


0

Follow these steps. Go to /etc/init.d Add a file( say example ) and place the script you want to execute in that. chmod +x /etc/init.d/example. (permissions) Add # chkconfig: 345 99 10 inside your script Save it 6 Start the service with — service example start. This should work as system service/ startup service . Go into your example, vi /etc/init.d/...


0

I have decided to go with ZFS https://wiki.ubuntu.com/Kernel/Reference/ZFS


0

In my case, enabling the Wayland option in the settings symbol worked.


-1

Workaround: list.txt vm1.example.com vm2.example.com vm3.example.com ... for i in $(cat list.txt); do timeout 1 ssh -o StrictHostKeyChecking=no user@$i; done for i in $(cat list.txt); do ssh-copy-id -i user@$i; done ssh user@vm1.example.com -- no pass


2

you can configure your application to listen only on address 127.0.0.1 (localhost), that way it won't be seen as open from the outside. For example if I have a nginx listening on port 80 fort every ip and an apache listening on port 8080 for 127.0.0.1 : # netstat -ltnp (Redacted a little to make it clearer) Local Address State Program ...


0

Problem Although there might be other circumstances where this error will occur, I can definitely say that I've seen it puked in the output of: systemctl status systemd-resolved ...when systemd-resolved is not configured. And an Azure Ubuntu 18.04 VM does not have systemd-resolved configured out-of-the-box (as of today, 20191008). Solution: Configure ...


0

The instructions below make the assumption that the Laptop (Server) is connected as indicated below - pardon my ascii art. Specifically, that it has a wired connection to the LAN and also has a Wireless interface. ^ ^ | | SSID: This here be my WiFi | |...


0

ok, it seems no one is interested in this question, I found a solution, I installed the xorg package and tried using startx and it solved my problem, If anyone knows a better answer please let me know.


0

Had the same problem. To configure your clusters use $HOME/.clusterssh/clusters instead It has slightly different format: <tag> [user@]<server>[:port] [user@]<server>[:port] [...] Check man page if you need more details


0

When you add a server to the bookmarks, the home folder of the user is the default saved path. You can change it on: Nautilus > Bookmarks (Ctrl+B) There you can change the path the bookmark is going to access.


1

If you go to Google and ask "What is my IP", it will tell you the public IP. If you disconnect and it's the same, then you were not connected.


0

create_ap is a great tool for creating any access point. I was able to create a wifi exteder using the following configuration: CHANNEL=default GATEWAY=192.168.2.1 WPA_VERSION=2 ETC_HOSTS=0 DHCP_DNS=gateway NO_DNS=0 NO_DNSMASQ=0 HIDDEN=0 MAC_FILTER=0 MAC_FILTER_ACCEPT=/etc/hostapd/hostapd.accept ISOLATE_CLIENTS=0 SHARE_METHOD=nat IEEE80211N=0 IEEE80211AC=0 ...


Top 50 recent answers are included