Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

0

In ubuntu there is the dnss package From man: dnss is a daemon that can encapsulate DNS over HTTPS. It can act as a DNS-to-HTTPS proxy, using https://dns.google.com as a server or anything implementing the same API. It can also act as an HTTPS-to-DNS proxy, implementing the same HTTP API; you can use this instead of https://dns.google.com ...


0

I believe that was a comment, not an answer, so... @Terrance "There would be no need to reinstall the OS for a RAM upgrade." Which is correct...I'll add that it's a good idea to use matched RAM modules. If you can, get the exact 16gig module to what you have installed for best performance and compatibility. If they're not matched or close enough, there's a ...


0

I was facing the same issue while uninstalling Foxit reader in my ubuntu 16.04. Then I did the following steps, cd opt/foxitsoftware/foxitreader/ sudo ./maintenancetool.sh if I write ./maintanacetool.sh and try to uninstall, it was giving permission error so with sudo it worked fine.


0

Setting line in /etc/bluetooth/main.conf to MultiProfile = single helped me to switch profile on a2dp_sink. After changing file you need to restart bluetooth service. My system is Xubuntu 18.04.


1

You don't need to manually mkdir a; unzip will create the directory: $ touch foo $ zip foo.zip foo adding: foo (stored 0%) $ rm foo $ unzip foo.zip -d foo Archive: foo.zip extracting: foo/foo $ tree foo foo └── foo 0 directories, 1 file


0

I realized the error was occuring during unit test phase. So I compiled without unit tests and succeeded: DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc -nc


0

Do the following - confirm xrdp was updated: # sudo cat /var/log/apt/history.log Re-install xrdp with this version: # sudo apt-get install xrdp=0.6.1-2 Re-start xrdp: # sudo service xrdp restart It should work!


0

I have the same problem on Ubuntu 18.04. PacketTracer V7.2.1. I don't know how to handle the problem but there is another way if you don't want to Force Reboot your system (either with Alt + SysRq + REISUB or Power key). You can simply press Ctrl + Alt + F3, -> login, -> type top and enter. You can see the PID of PacketTracer (For example 6570), Just type ...


0

There are many VNC clients. Some have the same vncviewer executable. One is TigerVNC which is available in the package manager: sudo apt install tigervnc-viewer vncviewer <ip>:<display/port> See also: Best VNC/remote desktop application?


0

An other solution, if You run Gnome, try Argos extension : https://extensions.gnome.org/extension/1176/argos/ Just put you ssh command in the argos.sh. for example : echo "SSH" echo "---" echo "your_server" | iconName=gnome-terminal bash='ssh user@your_server' terminal=true"


0

According to this discussion, the issue seems to be with the configuration specified in the /etc/login.defs file. I uncommented the following line #SYS_GID_MAX 999 and the installation succeeded.


0

You can also type Katagana if you you right click on the mozc image on the task bar and select composition mode, there you will have the option of selecting which characters you want to use.


0

As per @mariaczi, this worked for me: sudo dpkg -r --force-depends libpng12-0 sudo apt-get -f install sudo apt-get install libpng12-0


0

Ubuntu 18.04 desktop minimal change Here is the minimal change to /etc/default/grub I needed to do on Ubuntu 18.04 desktop image to get things working nicely: # Show the menu by default. Otherwise, you have to press ESC to see GRUB: # https://askubuntu.com/questions/16042/how-to-get-to-the-grub-menu-at-boot-time/1091821#1091821 -GRUB_TIMEOUT_STYLE=hidden +#...


0

Could you check whether your / (root filesystem) permissions are not changed? Have to be root:root like the two lines below: drwxr-xr-x 25 root root 4096 дек 21 06:45 .. drwxr-xr-x 25 root root 4096 дек 21 06:45 . If the owner is another user (and not root) this will prevent creating all temporary files by systemd during system startup. You may ...


0

Your CD has a failed iso image. Before burning a CD with the ISO image, please check the image. To verify I suggest you read this article: https://www.howtogeek.com/246332/how-to-verify-a-downloaded-linux-iso-file-wasnt-tampered-with/ To record the CD you can read this article: https://www.tutonics.com/2012/07/how-to-create-bootable-live-cddvd.html


0

For reference: sudo -u www-data php occ db:convert-filecache-bigint Sorry to add - I had also ran sudo -i otherwise the command would not run for me.


0

This solved my problem sudo apt remove gnome-screensaver There is a conflict between screensavers as LightDM starts up gnome-screensaver when the device goes into suspend at the lock/login screen.


0

Snap service is configured to use special environment file, so you can just add http_proxy variable to it if your current environment variables are not picked up by the snap. Open file: sudo vim /etc/sysconfig/snapd Add: http_proxy=http://127.0.0.1:3128 https_proxy=http://127.0.0.1:3128


0

It really doesn't matter, as UEFI has a very high partition limit and a logical partition is not really required. A logical partition is really a workaround for the legacy BIOS, which only allowed for 4 partitions on one drive. It essentially created a "master partition", which looked like one big partition to the BIOS, which would have many smaller ...


3

Do Nothing Special. Ubuntu is already set up for this. Ubuntu includes anacron, which cleverly keeps track of cron jobs and triggers missed jobs when the system next becomes available. Anacron already keeps track of daily jobs in /etc/cron.daily, including logrotate. Example: If an Ubuntu VM is shut down on Tuesday and started again on Friday, then ...


0

Simply make a logrotate call hourly (by put the config in to /etc/cron.hourly/) and configure the rotation as per you wish for each configuration, for example adding the weekly option in the logrotate config. Like this the logrotate job start every our, but will act on the logs file only once a week. Logrotate Documentation


0

After trying everything above, synclient SingleTapTimeout=0 finally worked for me. If that doesn't work, I'd encourage you to just type synclient into the terminal and mess with some of the settings. You'll likely find what you need.


0

In Ubuntu the core dumps are handled by Apport and can be located in /var/crash/. But it is disabled by default in stable releases. To enable Apport, run: sudo systemctl enable apport.service or sudo service apport start. To disable, run: sudo systemctl disable apport.service or sudo service apport stop in order to back to regular core dumping method. See: ...


0

Point release upgrades (16.04.x to 16.04.y) are generally applied automatically whenever you update and upgrade the system from either "Software Updater" app or terminal/command line. To update from terminal/command line, run: sudo apt update && sudo apt upgrade To check which version you are currently using, either go to Settings → Details or open ...


0

Answering my own question It turns out logging into the Kubuntu machine added/modified a ~/.dmrc file in my LDAP home folder, with the following content: [Desktop] Session=default This is where the Can't find session 'default' log line comes from. Indeed, when taking a look at /usr/share/xsessions (as hinted in this post), the only file I find is /usr/...


0

I would suggest installing mkahawa on ubuntu 14.04. It works flawlessly. You will need many dependencies to get that done.


2

You need the source files to uninstall the wrong version. Go to FFmpeg source folder and use the command: sudo make uninstall It will uninstall the FFmpeg version that you don't need.


1

Is it possible to upgrade samba in Ubuntu 16.04 to higher version than 4.3.11 without upgrading system ? Yes. Upgrading might be less hassle though. Samba provides downloads for lots of versions and that includes a debian installer for Ubuntu 18.04 (v4.7.6) and 18.10 (v4.8.4). Mind that this will pull in the dependencies too but looking at the package list ...


1

I fixed with this $ rm -rf /tmp/pulse* ~/.pulse* ~/.config/pulse $ pulseaudio -k $ pulseaudio --start


1

I had the same problem as I used to name all my test sites .dev -- changing all of my /etc/apache2/sites-available/ config files (and local hosts file) as per pa4080's answer fixed it for me. Use a2dissite to remove the old configs (before you delete the files) and a2ensite to enable the new. Make sure to reload apache with service apache2 reload as well.


0

I am installing nodejs and npm 10 using this instructions: https://github.com/nodesource/distributions/blob/master/README.md#debinstall and installation runs without any problem !


0

To provide additional information about how to remove the xrdp files when performing a custom installation, there is in fact a post that has been published in December 2017 (please check here http://c-nergy.be/blog/?p=11454) Based on your install method, you can uninstall the xrdp installation using apt command (if using xrdp package provided by Canonical ...


3

Some of the right-click options in Files (nautilus) are determined by systemwide nautilus extensions, and may indeed be removed by removing that extension. To remove the "E-mail" option: sudo apt remove nautilus-sendto Removing the "Compress" option is less obvious. This comes installed with the file compression utility file-roller. You will remove the ...


0

Windows and Linux need separate partitions, because they use incompatible File Systems. This separate partitions can be marked on same or separate physical drives. In minimal case you just need add separate partition to install Ubuntu near with Windows partitions. In this case you need to force to share some free place of windows file system on disk for ...


0

(This should be a comment on N0rbert's answer, but I can't comment) I had several problems following N0rbert's solution, but I managed to solve them by doing this Everytime either cmake or checkinstall would complain about missing files, I'd use apt-file search name-of-missing-file (you may have to install it through sudo apt-get install apt-file) the ...


0

I had this problem on my Toshiba laptop. First, login. Next, unplug the USB adapter. Finally, plug the USB adapter back in. I have a keyboard and a mouse that both use the same Microsoft adapter. For some reason, the keyboard works fine after login but the mouse does not until I unplug the USB adapter and plug it back in.


0

Legacy BIOS has a limitation of 4 primary partitions and 2.2 TB per drive. With UEFI, this limitation is now 128 primary partitions and 8 ZB (source: Wikipedia). So you can choose either primary or logic partitions, UEFI will deal with them anyway. On my laptop, I have chosen primary partitions, it sounds proper than logic partitions on the same primary ...


1

Dont install lastest version of xrdp. This problem happens with new version of xrdp I face this problem too and I want to contribute so I made this comment, I fixed this by following commands: sudo apt-get remove xrdp vnc4server tightvncserver sudo apt-get install tightvncserver sudo apt-get install xrdp=0.6.1-2 sudo service xrdp restart Login with Remote ...


0

You should be able to find out how many files end in .c or .cpp that contains the word "string" by executing: cat *.c* | grep -i "string" | wc -l


0

Put your xrandr command in autostart. I use LXDE so I'm unfamiliar with where this functionality is in stock Ubuntu but I'm sure it's there somewhere.


0

I would recommend using the tool ripgrep (snap) for these kinds of task (grepping in source code repositories): $ rg -g '*.c' -g '*.cpp' -l string | wc -l The following command may also be useful: $ rg -t c -t cpp -l string | wc -l Which searches files with the following extensions: $ rg --type-list | grep -E '^c:|^cpp:' c: *.H, *.c, *.h cpp: *.C, *.H, *...


0

This just happens on my 16.04. These steps worked for me (credit to It's FOSS): Press Ctrl+Alt+F1 to access the command. Use your normal username and password to login. Type sudo apt update Type sudo apt install --reinstall ubuntu-desktop Type sudo shutdown -r now


0

I had this problem after upgrading to Ubuntu 18.04. The keyboard shortcut Super-L did not work. The fix was to (re)install the missing package gnome-screensaver: sudo apt install gnome-screensaver For the OP with Ubuntu 16.04, (s)he might accidently have lost this package.


0

Following steps worked for me. 1.Kill all currently running process killall firefox killall thunderbird 2.Remove the cache Files Note: Backup them before removing. $ rm -rf ~/.mozilla/ $ rm -rf ~/.cache/mozilla/ 3.Change the ownership of following folders $ sudo chown -R $USER ~/.cache/.mozilla/ $ sudo chown -R $USER ~/.mozilla/ ** if the above step ...


0

After updating the file sesman.ini as indicated by Qwasson, execute: sudo /usr/sbin/xrdp-sesman


2

grep -l string *.c *.cpp | wc -l If any filenames contain newlines, the count will be too high. If the globs fail to match, you will get an error like grep: *.c: No such file or directory, but the count will still be correct. This is like a quick and dirty version of steeldriver's answer.


1

Simple way would be via bash recursive glob combined with single match parameter in grep (one file - one match) : shopt -s globstar grep -m 1 'string' */**.{c,cpp} | wc -l Why not grep -R ? Because -R walks through all files, and doesn't filter .c or .cpp files, so we use bash's globbing to do that job. Otherwise, for shell-agnostic way you can use find:...


3

If you know that your filenames cannot contain newlines, then grep -rFl --include='*.c' --include='*.cpp' string . | wc -l Otherwise find . -type f \( -name '*.c' -o -name '*.cpp' \) -exec grep -Fq string {} \; -printf x | wc -c


2

Use the grep command to find out: find /path/to/directory -type f \( -name "*.c" -o -name "*.cpp" \) -exec grep "string" {} \; | wc -l


Top 50 recent answers are included