Where is mysql's configuration file in ubuntu server 18.04

Do an update of the locate database and search for my.cnf

sudo locatedb
locate my.cnf

The 2 likely places are

/etc/mysql/my.cnf
/home/$USER/.my.cnf

That is the GENERIC method of finding files on a server.

But ...

  EC2 instance

That does not use a generic configuration. The name depends on the type of instance: my-small.cnf, my-medium.cnf, my-large.cnf. Use that for the locate.

Mind also that EC settings often need to be done from within the console and not on command line!


Rest assured. The sudo -l command lists allowed and forbidden commands for the user that invokes the command.
Typically, authorized users can run all commands, which also is indicated in your output. That output is perfectly normal and does not contain any error messages at all.


Run alsamixer from terminal and check "Mic Boost" and "Internal Mic" levels.
Up and down arrows are to increase/decrease volume, while "m" button is for mute/unmute


www-data user cannot access the files created by dumpcap application in ubuntu

You stated in comments, that you have python script, that runs dumpcap command. Try running that python script as www-data user, like so:

sudo -u www-data [command/script to run]


What is an affordable monitor compatible with HDMI and Ubuntu?

Ubuntu should be compatible with any monitor you buy. I assume you have Ubuntu already installed and the graphics chip is supported.

The VGA problem you had was almost certainly a configuration problem (e.g. wrong/unusable refresh rate), not a hardware problem.

For a big screen (1680x1050 or higher resolution) I would anyway recommend using a digital connection. So either directly HDMI or DVI with a HDMI-to-DVI adapter.


How can I completely uninstall mongodb 2.6.3?

Try searching for installed mongo packages with dpkg :

$ sudo dpkg -l | grep mongo

The above command should output a list of packages with mongo in the name.

If files exist on the system, following an apt-get remove mongo, try and run the command again with the --purge switch, using a wildcard search for the name:

sudo apt-get remove mongodb* --purge


Error : why starting docker-container on Kubuntu 17.10

I finally found a solution that works for me:
have a look a this: github post.

Basically what you need to do is:

Edit /etc/default/grub
Replace GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" withGRUB_CMDLINE_LINUX_DEFAULT="quiet systemd.legacy_systemd_cgroup_controller=yes"
Update and restart: restart sudo update-grub && sudo reboot

for me, this worked.
hope it works for you too.


xsp4 address already in use error. Can't run mono application

It can mean three things  check all and make sure none of them is true your problem will     be gone

xsp was already running and you tried to run it again.
The directory is root directory of another server like apache etc.
xsp can not find the required assemblies in the mono path , which means during compiling the mono prefix you gave was wrong.

Just a Suggestion

Another sugestion for you if possible upgrade to ubuntu 14.04 and get all these mono packages already build for you, i personally tried mvc 3 and mvc 4 and even the AspInfoMvc application that is given in the articles that you have mentioned, mono and asp.net works like a charm on 14.04 and auto-hosting also works great with some minor issues which will be fixed soon i hope.


Show other command line prompt in Midnight Commander (mc)

man mc says:

  If you are using bash you can specify startup commands for the
  subshell in your  ~/.local/share/mc/bashrc  file  and  special
  keyboard maps in the ~/.local/share/mc/inputrc file.  tcsh users may
  specify startup commands in the ~/.local/share/mc/tcshrc file.

So you can set up your different version of PS1 variable inside ~/.local/share/mc/bashrc.


How can I automatically switch to USB headset when plugged in?

This is actually a bug in Pulseaudio.

Here is a recent bug report on the situation, but it might be a dupe of this older (but reportedly fixed) one.

Here's a workaround that you could possibly use. Create a text file and paste this in:

#! /bin/bash

amixer cset iface=MIXER,name='Input Source' 1
amixer cset iface=MIXER,name='Output Source' 1
exit

If it is fact your third one then you should replace the end numbers on the commands with the number '2'. If fourth, then '3'. And so on.

You can then make a launcher on the panel and click on it every time you plug in the headset. It's an ugly workaround for now but until it is fixed (i.e. Pulseaudio remembers preferred devices) I don't see much else you can do.

You could do some extreme crazy workaround involving writing udev rules.... but is it worth it? ;)


Keyboard layout for shortcuts stays national for some app on Ubuntu 18.04 gnome shell

In the settings, tab Language and Region, the list of the input sources, English(US) needs to be in the first place.


How to disable the update manager and notifier safely in 15.10?

Um, open software and updates, choose the updates tab, and change Automatically check for updates to never?

To stop the notifications themselves, start dconf-editor

Navigate to com->ubuntu->undate-notifier and check the box for 'no-show-notifications'

Or execute

gsettings set com.ubuntu.update-notifier no-show-notifications true


Update from 12.04 to 12.10 interrupted due to lack of space

This looks like a memory issue. You must have run out of memory and hence the reason Ubuntu cannot continue installing because its getting chocked in the middle of the process. What error message are you getting?


Remove search entry from resolv.conf in Ubuntu 17.10

It seems to be the bug described here. If both systemd-resolved and the resolvconf package are installed they fight over who gets to manage /etc/resolv.conf. If there are any search lines in that file these domains break for a reason I don't quite understand yet.

In my case, with both installed /etc/resolv.conf was a symlink to /run/resolvconf/resolv.conf. After removing the resolvconf package it became a symlink to /run/systemd/resolve/stub-resolv.conf and after restarting the systemd-resolved service that fixed the problem.


Installing new ATI drivers, running into issues

Try running

sudo apt-get remove --purge fglrx*

to remove any drivers installed using the package system.


Revert the file name using :

sudo mv /usr/share/dbus-1/services/org.freedesktop.Notifications.service{.disabled,}


This is not really an answer, but two questions. In summary, either your local configuration might be wrong, or you might be configuring the wrong machine alltogether

Config file wrong?

I can't test this right now, but in your db.vumila.com you have www.vumila.com., why not just www?

Wrong machine?

Where are you changing the bind configuration? Is that server actually the responsible DNS server for the domain? It looks like ns1.launchpad.com would hold the www.vumila.com entry, that is probably not your server, right?


12.04 computers can't "see" each other or 10.04 computer, but not vice-versa

See if SAMBA installed on the 12.04 machines. If not, install SAMBA, and configure.

sudo apt-get install samba


How to set mongod as a service on my server? Why is error 127 appearing?

The error 127 in bash means the command is not found. Be sure the package mongod package is installed. Don't be confused as Ubuntu provides mongodb package while official website provides mongod. Here how you can check your system sanity:

List what is now installed on your system

dpkg -l | grep mongod

So check if you are effectively using mongod or mongodb. You should check the package mongod(b)-server which is the server side. In case of you only have mongod(b) or mongod(b)-client package installed, you might try to install the server again.

sudo apt install mongod(b)-server

Then you should able to restart your daemon

sudo service mongod(b) start


How do I make a window transparent in KDE?

1) First Go to System Settings → Window Behavior

2) Open Window Behavior, Select Window Actions by again selecting Window Behavior

3) In Inner Window, Titlebar & Frame section, Use the Mouse Wheel action to Change opacity

Here is a transparent window


autoremove option doesn't work with apt alias

As of Ubuntu 14.10, apt is a program installed on the system.
It does not currently support autoremove.

You may have to recreate your alias to override the builtin program.

http://manpages.ubuntu.com/manpages/utopic/en/man8/apt.8.html


Multimedia keys (previous, play/pause, next) don't work

Typing xev in the terminal solved my problem, play/pause, next, previous multimedia keys are working now.


Applying kernel parameters to other kernels in GRUB2

Turns out the answer is to install grub on Arch, configure it there, then reinstall grub on Ubuntu to use the same settings as before.


is UCK deprecated ? an alternative ? is it compatible to linux 16?

Best alternative as of now https://github.com/kamilion/customizer   this was around before UCK and is still being developed today!


How can we enable drop down on title bar (Ubuntu 20.04 LTS), like the one we have for bookmark drop down arrows in browsers?

You can install the extension "Extension list" to create a button on your top panel that allows you to enable/disable extensions. You can also configure extensions from that drop down menu.
Alternatively, you can turn on/off extensions using Gnome Tweaks or using the Extensions tool (Ubuntu 20.04 and upwards). Both are not installed by default in Ubuntu, but are available in the software center.


Make sure you have in the bootable usb a folder called syslinux and not isolinux if so, rename it and change :
 the isolinux.bin to syslinux.bin
 and syslinux.cfg to isolinux.cfg // you'll find them in syslinux folder


Ubuntu 20.04 Automatic Login Not Working Consistently

TL;DR: Disable splash from /etc/default/grub (+update-grub)
I found this related workaround for Ubuntu 19.04. It seems related to the splash screen and NVIDIA proprietary driver (and possibly other drivers?). Editing the grub configuration allowed autologin on my system.
Also, recall that Ctrl+Shift+F2 brings up a text console that works even if autologin causes an infinite login loop.
http://ubuntuhandbook.org/index.php/2020/01/login-loop-auto-login-enabled-in-ubuntu-19-10-with-nvidia-driver/


That SATA error is not good, but can only really be diagnosed by trying the following:

pop this disk in another box
put another disk in this box

That will narrow it down. If the disk still fails in the other box, try and get the data off it if it gives you some uptime, then ditch it

If the other disk fails in your computer, it is the SATA card, replace it (or if SATA is on the motherboard - you'll need to look at replacing the motherboard)


How to change Gnome Shell calendar default application?

Type the following in a terminal.

For Thunderbird:

gsettings set org.gnome.desktop.default-applications.office.calendar exec thunderbird

For Chromium

gsettings set org.gnome.desktop.default-applications.office.calendar exec "chromium-browser 'https://www.google.com/calendar'"


How do I list the content of a PPA that I have added to ubuntu?

I'm sure there is many ways to do this - since you have added the PPA, the package details exist in /var/lib/apt/lists

Thus for your example ppa:stebbins/handbrake-releases

substitute / for an _ and remove the prefix ppa: i.e. stebbins_handbrake-releases

Then just use this repositoryname in the following command line entry:

cat /var/lib/apt/lists/ppa.launchpad.net_[repositoryname]_*_Packages | grep "Package:" | sort | uniq

i.e.

cat /var/lib/apt/lists/ppa.launchpad.net_stebbins_handbrake-releases_*_Packages | grep "Package:" | sort | uniq

This will list the contents:

Package: handbrake-cli
Package: handbrake-gtk


How do I install Gmic and Resynthesizer plugin for gimp 2.10?

PSA for those who are using linux mint 19 gimp flatpack is buggy and will not recognize plugins.

this worked

Installing:
open a terminal and type:
sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gimp

Removing:
open a terminal and type:
sudo apt-get install ppa-purge
sudo ppa-purge ppa:otto-kesselgulasch/gimp

then place the gmic_gimp_qt in /home/YOUR USERNAME/.config/gimp/2.10/plugins/


How can I convert these commands to work in Ubuntu?

VirtualBox commands for Ubuntu are actually very similar to those from Windows or the Mac OS.  The good news is the vboxmanage command is installed into the path on Ubuntu systems so there is no need to go to specific folders to find it.

The commands would then be as follows from a terminal:

Press Ctrl+Alt+T to open a terminal.  And these commands can be copied and pasted to the terminal.

vboxmanage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
vboxmanage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
vboxmanage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-F2238BAE"
vboxmanage setextradata "El_Capitan" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
vboxmanage setextradata "El_Capitan" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

As you will notice everything else after the vboxmanage command is identical as you are telling VirtualBox what extra data is going to be set to in the "El_Capitan" VM.

Hope this helps!


Low Battery Performance on Kubuntu 15.10

You should see if your cpu usage is not too high. Try to install tlp with:

sudo apt-get install tlp

Lower your brightness and turn off Bluetooth.

TIP: to turn on tlp, use:

sudo -i

that'll change your current user to root. Then turn it on by typing:

tlp start


Cannot resize boot partition using Gparted even there is unallocated spaces

It appears that your goal is to provide more space on your / mounted partition. AndroidDev has done a fine job explaining why a number of options aren't a good fit for you in the numerous comments.

I can offer you a viable alternative solution however:

Any large directory in your / mounted partition can be copied to a new partition created in your unallocated space.

You can find an appropriate candidate by using Disk Usage Analyzer AKA Baobab. Compare the space used by the files there with the size of your unallocated space. If the unallocated space is larger, You can simply create a new partition in the unallocated space, move the content of the large directory there, freeing up space on your / parition and then mount the newly created partition at the source directory.

If anything about this answer is unclear or you need assistance in it's application, feel free to drop me a comment and I'll do my best to clarify/assist.


Chrome Slow in 16.10 with multiple windows in different workspaces

I recently had a similar issue after updating and upgrading. The problem for me was related to CPU clocking speed. You might give this a try.

Disable intel_psate. You can do this by modifying /etc/default/grub and adding intel_pstate=disable parameter to the GRUB_CMDLINE_LINUX_DEFAULT line. It should look like this: GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash intel_pstate=disable". Then save the file and run  sudo update-grub.
Install cpufrequtils package: sudo apt-get install cpufrequtils.
Edit /etc/init.d/cpufrequtils file and set the following line to the governor you need (performance in my case): GOVERNOR=”performance”
reboot


Dual boot on two separate hard drives on a separate partition

Because you have a specific scenario, you will need to choose "Something else" in the installer, and assign partitions and mount points yourself. A good general outline of how this works is already provided here on Askubuntu. I am providing some remarks specific to your case.

1 Partitioning

You will need to create a separate partition on your 500 GB that can contain your Ubuntu system. If you do not plan to store many user data only accessible to Ubuntu, then 20 GB is enough. You may then replace your data folders by symbolic links pointing to other partitions.

2 Partition assignment

In the most simple setup, you only need a single system partition. Ubuntu since 17.10 does not anymore set up a separate swap partition, and uses a swapfile instead. Click the partition where Ubuntu needs to be installed. Click the "Change" button to edit the partition and indicate for "Use as":  ext4, check the box to format the partition and under "Mount point", indicate / (root). There are several screenshot in the linked answer.

3 Device for boot loader installation

The installer should automatically have selected your Windows SSD drive to install the bootloa.der. If not, change the setting to that drive. The system will then continue boot from that drive. Upon booting, the bootloader will load Grub, which will present a menu where you can choose to boot into Windows or into Ubuntu.


ubuntu 21.04 desktop does not provide nvidia drivers for Sony VPCCW1S1E/W

Really you can get Nvidia 230M working on Ubuntu 21.04 by installing Nvidia 340 driver from special nvidia-legacy PPA. Open terminal and type:
sudo add-apt-repository ppa:kelebek333/nvidia-legacy
sudo apt-get update
sudo apt-get install nvidia-340

then reboot.


apt-get upgrade says sudo needs to be upgraded, is this correct?

The update to sudo you have there is just a regular update announced in this mail. To verify what versions of sudo are installed and available, check out the power of apt-cache policy (this works for any package), e.g.:

$ apt-cache policy sudo
sudo:
  Installed: 1.8.3p1-1ubuntu3.3
  Candidate: 1.8.3p1-1ubuntu3.3
  Version table:
 *** 1.8.3p1-1ubuntu3.3 0
        500 http://nl.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.8.3p1-1ubuntu3.2 0
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
     1.8.3p1-1ubuntu3 0
        500 http://nl.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

From your question I also assume that you would have expected more updates for a point release. Well, 10.04.4 or a .5 if that would be planned, is not a real "release" like a complete new version of Ubuntu to where you get a whole pile of new updates. Instead, you've already received the updates during the last months and once the release team determines it's time for a new point release, ISOs get updated as a "point release". The update for sudo you got is just an additional update to the 10.04.4 release. It will not be included in any new point release, as .4 is the last one in the 10.04 series.

Please refer to these links for more information:

What are point releases in LTS versions? - on what point releases are
Ubuntu Wiki /PointReleaseProcess - on the process


Not able to connect WiFi in fresh 17.10 install on Dell 1555

I assume this is your router or access point:

Address: <MAC 'virginmedia2835376' [AC1]>
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=56/70  Signal level=-54 dBm
                    Encryption key:on
                    ESSID:"virginmedia2835376"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000001de0638191
                    Extra: Last beacon: 2840ms ago
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Reboot the computer and the router and let us hear if there is any improvement.


Can't change global default video player to VLC?

I had the same problem on Ubuntu 12.04. Changing the Video default app to VLC has no effect, while for the others (web, mail, music, etc... ) it does work. It seems that there is a bug.

A quick solution:

Open defaults.list with

gksudo gedit /usr/share/applications/defaults.list

Search for totem.desktop and replace ALL with vlc.desktop.

Save, close, and... enjoy!


Alternative wireless streaming adapter to Apple Airplay/Airport

There are several solutions that enable us to stream music over a local cable or wireless network to a stereo. All this solutions involve some adapter on the receiver side to transform the digital audio signal. Some stereo devices already have this feature inbuilt. In all other case we may need to purchase some adapter. In the following I will list a few solutions that start from less than $100:

Apple Airport Express / Air Tunes: proprietary RAOP streaming protocol supported by VLC and pulseaudio.
Bluetooth audio adapter (e.g. Logitech, Hama): supported by Bluez but may need an additional Bluetooth dongle
Internet Radio: any receiver capable to tune to Internet radio can receive audio streams generated in Ubuntu. These often are also capable to receive uPnP/DLNA streams.
Old PC as network client: we can also attach an old PC to our stereo to act as a receiving client for audio streams.
Proprietary solutions: they are usually higher prized and only few offer a Linux software (e.g. Squeezebox)

  All of these solutions have their advantages, and disadvantages. So mainly we may decide on what hardware we already have (where a spare PC attached to the network may be the least costly variant with a maximum of flexibility).

Here comes my own personal experience on various solutions:

The Apple RAOP-protocol used by AirTunes is well established in MacOS, and in Windows, but on a Linux system we are faced with a very long delay of several seconds during streams. In addition, achieving a stable connection that survives hours of playback can be quite a challenge. Streams will have a fixed bitrate only.
Bluetooth signals have a limited range where a streaming connection is stable. This range is in a distance where we could also use an audio cable coming out of our soundcard. The audio quality offered by the A2DP protocol may be disappointing for a purist's ears.

Therefore my recommendation would be to attach an Internet radio receiver to our stereo. We could generate "radio" or DLNA streams with some music players, but with  an Icecast Server and additional software such as Darkice we are able to stream the audio output of our local soundcard. By this we can use any music player to manage the streams. The python application stream2ip helps to establish a connection to an Icecast server, and also supports Bluetooth, and RAOP/AirTunes streams.


How to execute bash aliases functions in the terminal?

del_recursive and extract expect a filename as first argument:

extract foo.tar.gz
del_recursive bar.txt~

process looks for patterns in the output of ps, you can pass an argument to grep, it can be a process name or a PID:

process firefox

apache expects a service command like:

apache restart


Audio player with lyrics loaded from file

Guayadeque
With Guayadeque you can edit lyrics and save them after you have finished.


Should I reinstall Linux when changing the laptop's CPU?

Ubuntu (and generally speaking Linux) don't particularly care what hardware they're running on, and will perform a check on all devices at boot rather than assuming that the same devices are there each time. So long as your CPU is compatible with your chipset, Ubuntu will see it and start using it. Ubuntu 18.04 is also only available in the 64-bit version, so that's not a concern either.

Windows, on the other hand, has licensing to worry about. When you buy a copy of Windows, the idea is that you buy it for a single machine, so Windows tends to more or less "lock" itself to a system's hardware. This doesn't mean that you can't change hardware, but if you do it too frequently (like I've managed to do) it will start to say your key is invalid. If you're in a dual-boot system, this is something to keep in mind.


Cannot get correct privileges using Samba on NFS mounted partition

You'll have to browse the internet for more details (as I am just passing by), but the issue is due to file locking--specifically opportunistic locking not playing well with NFS. You can tell Samba that the Linux kernel (or really NFS in this case) doesn't support opportunistic locking by adding the following to the smb.conf file:

kernel oplocks = no

There are drawbacks to this approach, but it's the quickest and easiest resolution I know of.

It's been a year since you asked the question, so I hope you haven't STILL been waiting for an answer but I hope that this ends up helping someone else!

Cheers,

polymathcoder


Ubuntu 12.04 Desktop Automatic Login Not Working

If you are willing to get rid of the KDE desktop as you mentioned, things should probably work again.

Here's how, from the terminal -- copy and paste!

sudo apt-get remove akonadi-backend-mysql akonadi-server akregator amarok amarok-common amarok-utils apport-kde apturl-kde ark bluedevil cdparanoia cdrdao cryptsetup docbook-xml docbook-xsl dolphin dragonplayer freespacenotifier gnupg-agent gnupg2 gpgsm gpsd gstreamer0.10-qapt gtk2-engines-oxygen gtk3-engines-oxygen gwenview ibus-qt4 icoutils jockey-kde k3b k3b-data kaccessible kaddressbook kamera kate kate-data katepart kcalc kde-baseapps-bin kde-baseapps-data kde-config-gtk kde-config-touchpad kde-runtime kde-runtime-data kde-style-oxygen kde-wallpapers-default kde-window-manager kde-window-manager-common kde-workspace kde-workspace-bin kde-workspace-data kde-workspace-kgreet-plugins kde-zeroconf kdegames-card-data kdegraphics-strigi-analyzer kdelibs-bin kdelibs5-data kdelibs5-plugins kdemultimedia-kio-plugins kdenetwork-filesharing kdepasswd kdepim-kresources kdepim-runtime kdepim-strigi-plugins kdepimlibs-kio-plugins kdesudo kdm kdoctools khelpcenter4 kinfocenter klipper kmag kmail kmenuedit kmix kmousetool knotes konsole kontact kopete kopete-message-indicator korganizer kpat kppp ksnapshot ksysguard ksysguardd ksystemlog ktimetracker ktorrent ktorrent-data kubuntu-debug-installer kubuntu-default-settings kubuntu-desktop kubuntu-docs kubuntu-firefox-installer kubuntu-netbook-default-settings kubuntu-notification-helper kubuntu-web-shortcuts kvkbd kwalletmanager language-selector-kde libakonadi-calendar4 libakonadi-contact4 libakonadi-kabc4 libakonadi-kcal4 libakonadi-kde4 libakonadi-kmime4 libakonadi-notes4 libakonadiprotocolinternals1 libassuan0 libattica0.3 libbluedevil1 libboost-program-options1.46.1 libcalendarsupport4 libcln6 libclucene0ldbl libdebconf-kde0 libdlrestrictions1 libdmtx0a libencode-locale-perl libepub0 libeventviews4 libfile-listing-perl libflac++6 libfont-afm-perl libgadu3 libgif4 libgpgme++2 libgps20 libgrantlee-core0 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libibus-qt1 libilmbase6 libincidenceeditorsng4 libindicate-qt1 libio-socket-inet6-perl libio-socket-ssl-perl libk3b6 libkabc4 libkactivities-bin libkactivities6 libkalarmcal2 libkateinterfaces4 libkatepartinterfaces4 libkblog4 libkcal4 libkcalcore4 libkcalutils4 libkcddb4 libkcmutils4 libkde3support4 libkdeclarative5 libkdecorations4 libkdecore5 libkdegames5a libkdepim4 libkdepimdbusinterfaces4 libkdesu5 libkdeui5 libkdewebkit5 libkdgantt2 libkdnssd4 libkemoticons4 libkephal4abi1 libkexiv2-10 libkexiv2-data libkfile4 libkholidays4 libkhtml5 libkidletime4 libkimap4 libkio5 libkipi-data libkipi8 libkjsapi4 libkjsembed4 libkldap4 libkleo4 libkmanagesieve4 libkmbox4 libkmediaplayer4 libkmime4 libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkonq-common libkonq5-templates libkonq5abi1 libkontactinterface4 libkopete4 libkparts4 libkpgp4 libkpimidentities4 libkpimtextedit4 libkpimutils4 libkprintutils4 libkpty4 libkresources4 libkrosscore4 libksba8 libkscreensaver5 libksgrd4 libksieve4 libksieveui4 libksignalplotter4 libktexteditor4 libktnef4 libktorrent-l10n libktorrent3 libkunitconversion4 libkwineffects1abi3 libkwinglutils1 libkwinnvidiahack4 libkworkspace4abi1 libkxmlrpcclient4 liblastfm0 libloudmouth1-0 liblwp-mediatypes-perl liblwp-protocol-https-perl libmailcommon4 libmailtools-perl libmailtransport4 libmessagecomposer4 libmessagecore4 libmessagelist4 libmessageviewer4 libmicroblog4 libmpcdec6 libmsn0.3 libmuonprivate1 libmygpo-qt1 libmysqlclient18 libnepomuk4 libnepomukdatamanagement4 libnepomukquery4a libnepomuksync4 libnepomukutils4 libnet-http-perl libnet-ssleay-perl libntrack-qt4-1 libntrack0 libokularcore1abi1 libopenexr6 libotr2 libphonon4 libplasma-geolocation-interface4 libplasma3 libplasmaclock4abi3 libplasmagenericshell4 libpolkit-qt-1-1 libpoppler-qt4-3 libprison0 libprocesscore4abi1 libprocessui4a libqalculate5 libqapt-runtime libqapt1 libqca2 libqca2-plugin-ossl libqgpgme1 libqimageblitz4 libqjson0 libqrencode3 libqt4-designer libqt4-help libqt4-qt3support libqt4-scripttools libqt4-sql-mysql libqt4-test libqtassistantclient4 libqtglib-2.0-0 libqtgstreamer-0.10-0 libqtscript4-core libqtscript4-gui libqtscript4-network libqtscript4-sql libqtscript4-uitools libqtscript4-xml libqtwebkit4 libreoffice-kde libreoffice-style-oxygen libsocket6-perl libsolid4 libsolidcontrol4abi2 libsolidcontrolifaces4abi2 libsoprano4 libstreamanalyzer0 libstreams0 libsyndication4 libtag-extras1 libtaskmanager4abi3 libtemplateparser4 libthreadweaver4 libtimedate-perl liburi-perl libvirtodbc0 libweather-ion6 libwww-perl libwww-robotrules-perl libxml2-utils libxss1 libzip2 muon muon-installer muon-notifier muon-updater mysql-client-core-5.5 mysql-common mysql-server-core-5.5 ntrack-module-libnl-0 odbcinst odbcinst1debian2 okular okular-extra-backends oxygen-cursor-theme oxygen-icon-theme partitionmanager phonon phonon-backend-gstreamer pinentry-gtk2 pinentry-qt4 plasma-dataengines-addons plasma-dataengines-workspace plasma-desktop plasma-netbook plasma-scriptengine-javascript plasma-scriptengine-python plasma-widget-facebook plasma-widget-folderview plasma-widget-kimpanel plasma-widget-menubar plasma-widget-message-indicator plasma-widget-networkmanagement plasma-widgets-addons plasma-widgets-workspace plymouth-theme-kubuntu-logo plymouth-theme-kubuntu-text polkit-kde-1 printer-applet python-kde4 python-pyudev python-qt4 python-qt4-dbus python-sip qapt-batch qapt-deb-installer quassel quassel-data rekonq sgml-data shared-desktop-ontologies software-properties-kde soprano-daemon system-config-printer-kde systemsettings tasks-icons update-manager-kde usb-creator-kde userconfig virtuoso-minimal virtuoso-opensource-6.1-bin virtuoso-opensource-6.1-common xsettings-kde && sudo apt-get --reinstall install ubuntu-desktop


How to open ssh://username@hostname link

What I could gather, you have to register the protocol in the gconf:

gconftool-2 --set --type=bool /desktop/gnome/url-handlers/ssh/enabled true
gconftool-2 --set --type=string /desktop/gnome/url-handlers/ssh/command 'gnome-terminal -e "%s"'
gconftool-2 --set --type=bool /desktop/gnome/url-handlers/ssh/needs_terminal false

(source)

I can't get it to register ssh in chromium though. Haven't tried with firefox, but these instructions should help.


Error executing command during installation of Node.js and npm on Ubuntu 19.04

You are getting an error that refers to ros.org, which is about robot software. That is, it is unrelated to nodejs.

The exact error is that this repository does not have a disco release (Ubuntu 19.10) for the ROS software. You can verify that there is not disco software by visiting the repository's page at http://packages.ros.org/ros/ubuntu/dists/.

You can disable this repository by running

software-properties-gtk

Then, visit the tab Other Software and find the ROS entry.
Finally, unlesect the ROS entry and click to Save.


updated server to raring, php not working

Read this

then read / edited this file:

sudo vim  /etc/apache2/mods-enabled/php5.conf

commented out the lines:
 Running PHP scripts in user directories is disabled by default

#To re-enable PHP in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.

<IfModule mod_userdir.c>
    <Directory /home/*/public_html>
        php_admin_value engine Off
    </Directory></IfModule>

php seems to work now. Though I am curious, what are the pitfalls of having done this?


Is there a short way to purge all printer configurations?

Stop cupsd:
sudo stop cups
then edit the printer configuration:

sudo cp /etc/cups/printers.conf /etc/cups/printers.conf.backup
sudo nano /etc/cups/printers.conf

Remove all printer information and save.


Facing configuration error while installing from source

I suggest you following commands to solve this problem.

apt-get build-dep vlc
./configure

Ubuntu repository has also vlc.

So you can build it with following command.

apt-get source vlc
cd vlc-<version>
dpkg-buildpackage

Use dpkg-buildpackage -uc -us -b to get binaries, dpkg-buildpackage -uc -us -S for a source package without using sudo.


Kubuntu 11.10 mobile broadband option is disabled

The Bluetooth client which is installed in kubuntu only supports file transfer between devices, not any internet connection.


Shutter preferences are not getting saved

It might be this issue -- https://bugs.launchpad.net/ubuntu/+source/shutter/+bug/657585


maybe you should change https?://*.bandcamp.com to https?://*.bandcamp.com/* on your webappUrlPatterns.


Ubuntu 20.04 on VirtualBox is slow after updating from 19.10

I dont know which of these are doable for you, but here are a few solutions that might help:
1. Make a new VM
You can create a new VM in virtualBox, reinstall ubuntu, and get your files back via cloud,  shared folders....
Use a dual-boot
Not all computers play nice with dual-boot, especially when there is not much storage availible. But since you are using VM's, storage will not be much of an issue. If you see high memory usage during your VM session (>70%), this might be the only solution.


No video after "apt-get upgrade" from Ubuntu 16.04.1 and 16.04.2?

The issue turned out to be that my cusotmized grub.cfg file was being overwritten by the upgrade.

I had forgotten that a script was running after Ubuntu installation that was adding set linux_gfx_mode=text to /boot/grub/grub.cfg so that it could actually show video on boot, and running apt-get -y upgrade was nuking that.

I edited /etc/grub.d/10_linux instead of /boot/grub/grub.cfg and the change became permanent.


Can't ssh into local computer by hostname

Avahi never works for me. Thus I am skeptical.

I think your router is allowing the desktop.local thing to work. Can you check? Did you set the desktop to receive port 22 on the router?
People often do that unintentionally, since from outside, ssh requests go unanswered unless you direct them at a machine.


Keyboard layout indicator just disappeared today!

For example, if you use English (US) - us and Kurdish (Iran, Arabic-Latin) - ir\tku_ara layouts, just run the following command in terminal:

gsettings get org.gnome.libgnomekbd.keyboard layouts ['us', 'ir\tku_ara']

and keyboard layout indicator should appear.

Some explanations: the keyboard layout indicator it doesn't show if you have set only one keyboard layout, but when you set more than one keyboard layout, this will appear.


$ date
Mon Jul 11 16:14:55 IST 2016

$ date +%Y-%m-%d
2016-07-11

$ date --date='-1 day' +%Y-%m-%d
2016-07-10

To view the latest file try,

If file has today's date

tail -1 OpenHardwareMonitorLog-$(date +%Y-%m-%d).csv  | awk -F "," "{print $12}"

If it has yesterday's date

tail -1 OpenHardwareMonitorLog-$(date --date='-1 day' +%Y-%m-%d).csv  | awk -F "," "{print $12}"


Is there a configuration that let's me run the desktop from 9.10?

There are no official or unofficial Ubuntu based distributions based on such an old version of Ubuntu.

Without knowing more about your PC, my suggestion would be to use a more lighter version of Ubuntu that both combine the same traditional gnome-2 workflow that you are used to.

Lubuntu and Xubuntu are the main official distros I would warmly recommend.

If you are looking for "visual effects" - then Xubuntu together with its own compositor is your best bet.

Both distros uses the same version of Jockey as Unity based Ubuntu.

If you really want to use a Gnome2 based interface - stick to 10.04.  It is the LTS and as such will receive security updates upto April 2013.


You were experiencing the problems VMWare 9.0.0 had with the new 3.5 Kernel in ubuntu 12.10

Since 9.0.1 is now available download and install that.

If anyone else gets into the situation Lewis did, you do not need to reinstall your OS.

reboot in single user mode by pressing e at the grub loader and adding single at the end of the kernel line. Then press F10

You should get a root prompt where you can run the uninstall command:

vmware-installer --uninstall-product vmware-workstation


It is definitely possible to do all the things you want to do with Mutt, and much more.

Multiple accounts are possible with Mutt. Personally I have only used multiple gmail imap accounts, as described in this article here, but it is feasible to set them up and move between them. It is not necessary to repeat the information here, but it has a lot to do with how the 'account hooks' and 'folder hooks' are set up; the article explains it well.

However, you can achieve it without folder-hooks: see my answer here:

How to manage multiple imap accounts with mutt

To navigate between folders, you can use macros, as these well known ones demonstrate:

macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"

More on how to move between folders and how messages can be moved across folders is explained here in great detail.

Indeed, messages can be exported from Thunderbird in the mbox format and then read in Mutt, as the Mutt wiki notes here. It will be necessary to install the Thunderbird import/export addon and then export the folders from Thunderbird in mbox format and then specify the folder in the .muttrc, by refering to these notes.

Referring to your question in the comments: When you load up your inbox or when you switch between folders Mutt by default only loads the headers from the server, which I think is what you want. It only downloads the actual message when you click return to view the message. Hence, why we cache headers and messages for performance, and usually most people have standard entries like this in the .muttrc:

set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies

For offline availability, you may need to pair Mutt with another program called offlineimap, which is available in the repositories; a discussion is available here and here.

I've put these hints together (from the wiki and my own personal rc) into a rough muttrc but you may have to test and modify it for your own purposes, and obviously add your own details, but it should be a useful starting point.


Change Owner ID and Group ID of all files/folders in a folder

It looks like you are using SFTP to edit the files. Login with your SFTP credentials to your server over ssh

Than you can use the chown option -R  to handle files and directories recursive.

sudo chown -R user:goup folder

You can use the names of groups and owner or the UID and GID. I would recommend to use the names in order to avoid typos.


Ubuntu 18.10 CPU1 always around 100% despite no programs are running

We may have a HP BIOS/ACPI problem.

Lets check the BIOS first...

In terminal type sudo dmidecode -s bios-version and note the output.

Compare the output with this...

If your BIOS is older, go to here to download the new BIOS.

Note: backup your important data before installing the new BIOS.

Install the new BIOS.

Monitor the top CPU processes, looking for kacpid, using the top command in the terminal.

Kernel ACPI patch...

If you tried these steps before I had completed the instructions, then do this command:

sudo rm -i /etc/default/xxxx # delete this unnecessary file

Then continue...

sudo -H gedit /etc/default/grub # edit grub defaults

Find and change:

"quiet splash"

to:

    "quiet splash acpi=strict"

sudo update-grub # update grub

sudo update-initramfs -c -k $(uname -r) # update initramfs

reboot # reboot the computer

Monitor the top CPU processes, looking for kacpid, using the top command in the terminal.

Update #1:

To solve the current boot problem...

If you have ANY problems with this procedure, contact me immediately.

at the GRUB menu...
hit the e key to enter edit mode
using the arrow keys, find "quiet splash pnpacpi=off" and change it to "quiet splash"
hit the control+x, or F10 key to continue to boot
once booted, repeat Step #2 in my answer, and change "quiet splash pnpacpi=off" back to just "quiet splash", and do the follow-on commands
you should be able to reboot normally

Update #2:

notes to self... not complete yet...

colord errors, install snmp-mibs-downloader

SECURITY FREEZE LOCK occurs on all SATA HDD

SELinux causing errors, check apparmor, uninstall

gnome-shell: Fatal IO error 0 (Success) on X server :0 crashing system, GNOME extensions or video driver?

/home/sharich/drive/FER what is in this folder?

indicator-cpufreq: Fatal IO error 11 (Resource temporarily unavailable) on X server :0 crashing system

blueman-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0 crashing system

pulseaudio[2304]: XIO:  fatal IO error 1 (Operation not permitted) on X server ":0 crashing system


The program "Archmage" can solve this problem. Just install it from repository and type in command line:

$ archmage 'name_of_your_chm_file'*

chm-file is an html archive, you will see a result of this operaion in the folder with your chm-file name + '_html' extension.


How to install and set up forticlient IPSec VPN in Ubuntu 20.04?

Forticlient is not available through ubuntu repository. You can download (as of now 6.4 version) and install manually by executing below commands in terminal.
wget -c 'https://filestore.fortinet.com/forticlient/downloads/FortiClientFullVPNInstaller_6.4.0.0851.deb'

sudo dpkg -i FortiClientFullVPNInstaller_6.4.0.0851.deb


Why does the Ubuntu Dock lose track of my Chromium window?

https://github.com/micheleg/dash-to-dock/issues/910
It looks like this has been reported to the dash-to-dock project and is still open.
Thought it would be worthwhile to at least post the quick workaround mentioned in that github issue here until the devs can address the issue.
"Only way I've found to solve it when it happens is to do an "alt+f2" and type the "r" and enter to reload the entire gnome-shell."


Unity not showing after 11.04 upgrade. Cannot log out to switch to classic?

Try typing CTRL ALT F1 and logging in.

Then type

sudo killall Xorg

this should kill the Xserver and leave you at the login screen.

When selecting your user account, click the Session drop-down at the bottom of the screen and choose Ubuntu Classic


VMware player installation failed building kernel module 3.11

sudo -s
sudo apt-get install curl
cd /tmp
curl -O http://pkgbuild.com/git/aur-mirror.git/plain/vmware-patch/vmblock-9.0.2-5.0.2-3.10.patch
curl -O http://pkgbuild.com/git/aur-mirror.git/plain/vmware-patch/vmnet-9.0.2-5.0.2-3.10.patch
cd /usr/lib/vmware/modules/source
tar -xvf vmblock.tar
tar -xvf vmnet.tar
patch -p0 -i /tmp/vmblock-9.0.2-5.0.2-3.10.patch
patch -p0 -i /tmp/vmnet-9.0.2-5.0.2-3.10.patch
tar -cf vmblock.tar vmblock-only
tar -cf vmnet.tar vmnet-only
rm -r vmblock-only
rm -r vmnet-only
vmware-modconfig --console --install-all

Source: A post on Ubuntu forums


Are you sure that you typed sudo fdisk -l (letter L) rather than sudo fdisk -1 (number one). The error message indicates that it was a one rather than an L.


Lost settings menu and unity lenses after uninstalling Gnome 3

Try sudo apt-get install ubuntu-desktop and see if it reinstalls the package that might have been removed.

I think sudo apt-get -f install might fix broken packages.

Since you used a PPA you need to do a PPA Purge. There's some information regarding installing Gnome 3.8 in Ubuntu 13.04, and how do revert here: http://www.webupd8.org/2013/03/gnome-38-beta-available-in-ppa-for.html

There's additional information regarding Ubuntu 13.10 and Gnome 3.10 and purging here: http://www.webupd8.org/2013/09/how-to-install-gnome-310-in-ubuntu-1310.html

I'm guessing a purge at this stage might not be successful, but try that first.


Preseed Ubuntu18 partition doesn't work UEFI

So I found out the culprit/s. I walked through the installation without a preseed and found out I needed to answer one more question:

d-i partman/unmount_active boolean false

I also commented out

d-i partman-auto/method string regular

It works :D


gconftool-2 not working when run from a script

The issue appears to come from the somewhat sanitized environment the sudo command runs in.
Even though the commands were being executed as the ubuntu user, the environment didn't contain the full complement of env variables usually present when using an interactive terminal / shell.
gconftool-2 seems to need access to the DBUS_SESSION_BUS_ADDRESS variable.  In this case I was able to pass it a value I copied from another terminal I was running. But if the script ran on another machine, it might need to fetch it dynamically, in which case something like the script below would be necessary.

# Grab the DBUS_SESSION_BUS_ADDRESS variable from nautilus's environment
eval $(tr '\0' '\n' < /proc/$nautilus_pid/environ | grep '^DBUS_SESSION_BUS_ADDRESS=')

# Check that we actually found it
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
#echo "Failed to find bus address" >&2
exit 1
fi

# export it so that child processes will inherit it
export DBUS_SESSION_BUS_ADDRESS

Also, more info can be obtained if you google -  gconftool-2 dbus_session_bus_address as this seems to be a somewhat common issue.


Why is dash autocomplete (super key) slow on first usage?

Dash can be slow, especially if the web scopes are on.
Try disabling the web scopes

gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"

Now there is a better solution if you like opening applications using keystrokes then

If the application are not too many, consider assigning shortcuts to them, you can add custom shortcuts in Ubuntu, open up Settings>Keybord>Shortcut tab>Custom Shortcut
Or if you want to open all the applications and places using keystrokes use the Synapse Launcher, check this article on webup8


Have not found why notify-send does not work with notify-osd, but looking at:

  /usr/share/dbus-1/services/org.freedesktop.Notifications.service

one find

[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/lib/i386-linux-gnu/notify-osd

Changing this to use notification-daemon seems to work.

[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/lib/notification-daemon/notification-daemon

So at least for now that is a hack / fix.

  org.gnome.Notifications.service

defaults to notification-daemon.


Cannot install DeVeDe after installing VLC PPA

This is how to clean, remove, purge and reinstall DeVeDe

sudo apt-get update
sudo-apt-get purge vlc
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get install -f devede


WebEx audio doesn't work on 12.04 LTS 32-bit

Last evening I ran in the same trouble. Ubuntu 12.04 with OpenJDK 7. I had no error message but the incoming audio was mute or only working for a few seconds. I figured out that it seems to be a problem with the alsa plugin for java and pulseaudio.
After removing pulseaudio like in these link

http://www.hecticgeek.com/2012/01/how-to-remove-pulseaudio-use-alsa-ubuntu-linux/

it worked fine.

Maybe these topics are related with this problem

http://pl.digipedia.org/usenet/thread/11149/13875/

but this is far above my understanding.

Hope this helps, Tobias


IPV6 (web server is unreachable) and (No route to host)

Are you sure to use the right IP-address?

"Your" server answers to ping and other ports than 80 (ssh, bgp and irc).

Another thing is: Don't use /48 on LAN-Ports, try to use only /64.

Also, have a look to the docs of your provider. fe80:: for default gw is possible, but a little bit strange.


A possible answer (I usually use it) is to create .sh file containing this command then assign a bash /path/to/sh-file command using shortcuts this should solve your problem.


The behavior you describe could be explained by the fact that the architecture is hard-coded in the mirror list at /etc/apt/sources.list. Even after you run dpkg --add-architecture, if the mirrors you are using list explicitely [arch=amd64], then apt will not find the i386 package even after running apt update:
deb [arch=amd64] http://security.debian.org/debian-security buster/updates main contrib non-free


The core problem you're having here is that the pgadmin4 backend is highly sensitive to the URIs being passed to it.  It's also statically configured, so we can't add a 'prefix' to the URIs for how to process it.

Therefore, since we can't alter the pgadmin4 'paths' to serve in the frontend, we have to take the much more evil path of serving this as a subdomain - pgadmin.domain.tld with corresponding SSL certificates.

The nginx configuration bits would be as follows:

server {
    listen 80;

    server_name pgadmin.domain.tld;

    # Redirect any non-HTTPS requests to HTTPS (aka: Force HTTPS)
    return 301 https://pgadmin.domain.tld$request_uri;
}

server {
    listen 443 ssl;

    # SSL Config goes here, but the bare minimum is this:
    ssl_certificate /path/to/ssl/cert/with/fullchains.pem;
    ssl_certificate_key /path/to/privkey.pem;

    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_pass http://127.0.0.1:5050;
    }
}

This presupposes you already have, or know how to get, the SSL certificates to put into place in the configurations.  However that's outside the scope of the question.

This is, unfortunately, the most simple solution to getting pgadmin4 to work with a 'reverse proxy', but you won't be able to easily do it within a location block on an existing site.  It's been requested for a couple years but never developed.

Just make sure you also harden the server and close off ports that shouldn't be accessed directly (like the pgadmin4 port from the 'outside').  Otherwise the reverse proxy component can be circumvented easily.


What application is used to open link for installation?

Select the below icon on download and install page.

Select Choose option to install the package through available appropriate application(Software-center).
Select  software-center script from the path /usr/bin and press Open.

Now, it will be opened in Software-center. Click on the install button to install the corresponding package on your system.


How do I unbind Super key from menu in Lubuntu

Editing .config/openbox/lubuntu-rc.xml (Lubuntu 12.04) worked here. It's line 177, and the original relevant part looked like this: <keybind key="Super_L". Changed it to <keybind key="", logged out/in, and the Super key does nothing.


18.04 Avoid click and drag screen to access Desktop

Open Ubuntu Software and install the GNOME Shell Extension called:

Disable Screen Shield

Source:
Disable Screen Shield

I want to take this moment to express the need for a consistent naming system. This "Screen Shield" has been called "Drag Screen", "Unlock Screen", "lock screen curtain", "phone style Gnome swipe" and so on. It would be much easier to find a solution to a buggy application if the application had a name (that you could find).

Bonus extra, disable screen lock after suspend by installing dconf-editor and navigating to org/gnome/desktop/screensaver and turn off ubuntu-lock-on-suspend. There's no way in the regular settings.


You cannot resize the extended partition if any of the partitions on it are in use.

Boot into a LiveCD and use the GParted without mounting the partitions. Remember to make a backup before proceeding.


Do you get preloaded drivers + OS on System 76 laptops?

Yes, it is the same version from the Ubuntu website. They attempt to use components that are fully supported out of the box. They do, however have a single .deb (second link from bottom is the newest), which includes all drivers for all their PCs. This is preloaded on all PCs, and provides drivers for things such as laptop keys, wireless cards, etc. There is no bloatware or other software installed on their machines. More information can be found on their website.


How to use mame to run roms under the Ubuntu 17.04

By default, mame searches for ROMs in these directories:

$HOME/mame/roms
/usr/local/share/games/mame/roms
/usr/share/games/mame/roms

If you want to change that behaviour, edit the file /etc/mame/mame.ini with sudo rights and add your desired path to the rompath line, e. g. for your case:

rompath $HOME/mame/roms;/usr/local/share/games/mame/roms;/usr/share/games/mame/roms;$HOME/.mame/roms

This file is also the right choice to set other options permanently, e. g. window 1 for window mode or mouse 1 for mouse support.


Ctrl + Alt+ right/left is not consistent

I found a way to fix the problem:

Install compizconfig-settings-manager

sudo apt-get install compizconfig-settings-manager

Run compizconfig-settings-manager. in the terminal type

ccsm

Go to Window Management/Grid

Change the commands to Right Maximize, Left Maximize, Restore, and Maximize.

It is worth noting that ccsm is an advanced tool. If you did something wrong and want to reset it, type:

dconf reset -f /org/compiz/


Try installing libplank1:
sudo apt install libplank1

Not sure though if this will work.


Accessing graphics in Ubuntu which is installed as an app in Windows 10 HP

I have no solid evidence to base this on, but it's possible that WSL does not actually expose all of the hardware claimed by the Host to the WSL Ubuntu environment. This may be why you can't work with it, because you don't have direct PCI access like you would in an Ubuntu installation directly on-system, but are instead basically 'containerized' within Windows. The underlying WSL abstraction library for syscalls also may not be permitted to have that access either.

EDIT: Per a request on whether this is the case or not on the WSL GitHub, it is currently not possible to access the GPU or the PCI bus directly.

  As of right now you are not able to access your GPU inside of WSL. This is something that's very highly requested (it's our number 1 request on UserVoice!) and something we're already tracking here in this issue: #829. We're investigating how to make this possible, and will be sure to post any updates as soon as they are available.

Source

They also indicated it is highly requested, and to track the request via this GitHub Issue specifically.


That seems to be the Unknown Display issue. I've tackled that one myself and I left a link as a comment to your question on how I resolved it.

Let's first make sure this is the case:
Go to Settings > Displays and see if you can see an Unknown Display overlapping with your normal display. You may not see it because it`s behind your display so try dragging things around and see if you can spot it.

If you do see it, move it to the side and disable it.. this should fix your issue on nouveau. If you need go deeper into this issue with installing an nvidia driver, check the link I posted in the comment of your post.


Unable to shutdown & reboot ubuntu 14.04

Does any of the below work?

sudo shutdown -r now
sudo shutdown -H now
sudo shutdown -P now

sudo shutdown -rv now

will verbose you while trying a reboot.


How to prevent SSHFS mount freeze after changing connection after suspend?

More thorough answer here: SSHFS - auto reconnect.
In short, use:
# create local folder to mount into
mkdir -p ~/mnt/my_server

# now mount your SSH File System
sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 \
username@server_hostname:/path/on/server/to/mount ~/mnt/my_server

To unmount the file system:
sudo umount ~/mnt/my_server


How to enable horizontal mouse wheel scrolling in unity?

If you are under Ubuntu, you have to install two packages: xbindkeys and xautomation.

To enable the horizontal scroll with key combination Shift+MouseWheel, run these commands on Terminal:

$ sudo apt-get install xbindkeys xautomation
$ echo "; bind shift + vertical scroll to horizontal scroll events
>  (xbindkey '(shift \"b:4\") \"xte 'mouseclick 6'\")
>  (xbindkey '(shift \"b:5\") \"xte 'mouseclick 7'\")" >> .xbindkeysrc.scm

$ xbindkeys


It may be a good idea to post the contents of the file:

cat /home/jdash/.config/software-center/softwarecenter.cfg

You could also try renaming the file and seeing if it is recreated the next time you try to open it. To do this run this from the command line:

mv /home/jdash/.config/software-center/softwarecenter.cfg /home/jdash/.config/software-center/softwarecenter.cfg.backup

If that does not work then you can revert the change with:

mv /home/jdash/.config/software-center/softwarecenter.cfg.backup /home/jdash/.config/software-center/softwarecenter.cfg

You'll be back where you started but it's worth a go. If this doesn't work then post the contents of the file.


This method allows a step by step upgrade:

sudo apt-get update
sudo apt-get install update-manager-core
sudo do-release-upgrade

found here and here.


How to Restore Sound that has Stopped Working Lubuntu 19.10?

The error from dpkg is something more serious, you should look into that first. If you got it after the upgrade it is possible that part of your system has not been upgraded and this can cause all kinds of problems.

There are 3 lock files for apt, find out what process uses them like this

lsof /var/lib/dpkg/lock
lsof /var/lib/apt/lists/lock
lsof /var/cache/apt/archives/lock

This should return the PID (Process Identification Number) for the application if the files are currently in use. It can also return nothing, then the process that created the files is no longer active.

If the files are in use, kill the process(es) that uses them like this:

sudo kill -9 PID

PID is the number you found using the previous lsof commands

After that, remove the lock files like this:

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

and reconfigure dpkg:

sudo dpkg --configure -a

Because of this there might be some updates that you have missed so run your update manager or while you are still in terminal

sudo apt update && sudo apt full-upgrade

To reset the audioserver try this in a terminal:

pulseaudio -D

What I also have found sometimes is this, if your system has audio control keys on it there is usually one key that mutes sound. This sets a flag in firmware that keeps sound disabled across reboots. Perhaps you accidentally pressed this key?


How can I configure CGroups and limit Chrome memory usage on Ubuntu 18.04

First, you should ensure that you have kernel 4.5 or higher. Actually, most things will work with 4.11 or higher.
 $  uname -a

This is because you most likely have cgroup v2 , not v1, which has different configuration. Most of the links for ubuntu 16.04 and others, refer to v1. Don't get confused.

If your run "mount -t cgroup" , you should see a list of cgroups, all under /sys/fs/cgroup .

Now, the configurations starts with :
  $ cp /usr/share/doc/cgroup-tools/examples/cgred.conf /etc/

Then, the rest are very similar to :
Install cgconfig in Ubuntu 16.04

All info about the new case (18.04) be found in :
https://www.paranoids.at/cgroup-ubuntu-18-04-howto/

The test in my case, showed my new /sys/fs/cgroup/memory/browsers/ and tasks.

Good luck.


glance error while uploading image to the Image Service

You are missing the --file option. Also the option --is-public should be --visibilty public instead.

Try with the command from the official install guide:

glance image-create --name "cirros-0.3.2-x86_64" \
--file cirros-0.3.2-x86_64-disk.img \
--disk-format qcow2 --container-format bare \
--visibility public --progress

By the way... cirros has the version 0.3.4 available since long time, at:
    http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img


How can I configure postfix to send emails via gmail (2FA problems)?

As George suggested, 2FA was indeed a factor. I wrote down the full procedure below that solved my problems:

Install packages

sudo apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules

Select Internet host.
Enter a hostname (does not have to be known to the internet), e.g.,  trillian.at.home.

Get app password from google

Google allows you to set up 'apps' that have their own password. This technique works with mail relays, too.

Visit your app passwords page (https://security.google.com/settings/security/apppasswords).
Log in using your two-factor authentication method.
Select app: Mail and device: Other.
Give your 'app' a name, e.g., mail relay from <hostname>.
Press Generate.
Write down the 'app' password (16 characters, no spaces).

Store the app password

Open/create a password file:

sudo nano /etc/postfix/sasl/relay_passwd

Put the following text in the file:

[smtp.gmail.com]:587 USERNAME@gmail.com:APP-PASSWORD

where USERNAME is your gmail username and APP-PASSWORD is the 16-digit app password.

Create a hash file:

sudo postmap /etc/postfix/sasl/relay_passwd

Ensure that only root can read/write the password files:

sudo chown root:root /etc/postfix/sasl/relay_passwd /etc/postfix/sasl/relay_passwd.db
sudo chmod 0600 /etc/postfix/sasl/relay_passwd /etc/postfix/sasl/relay_passwd.db

Create a certificate file

cat /etc/ssl/certs/thawte_Primary_Root_CA.pem | sudo tee -a /etc/postfix/cacert.pem

Configure postfix

sudo nano /etc/postfix/main.cf

Remove the relayhost line and ensure that the following lines are in the file.

relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/relay_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes

Test

Run

echo "Test email" | mail -s "Test" you@gmail.com

Hopefully your mail has appeared at gmail. Otherwise, use mailq and tail -f /var/log/mail.log for debugging.

Set up mdadm and smartd

If the test email arrived, you can now set up mdadm and smartd. For mdadm, I use the line

MAILADDR MY-GMAIL-USERNAME+mdadm-trillian@gmail.com

in /etc/mdadm/mdadm.conf to enable mail filtering in my gmail inbox. Similarly, I use the text

-m MY-GMAIL-USERNAME+smartd-trillian@gmail.com

in my DEVICESCAN line in /etc/smartd.conf.


USB is locked (can't be written to or formatted) after using it to make a live Ubuntu installer

You used dd or dd under the hood which only works with ISOhybrid created install ISOs. Ubuntu ISOs are isohybrid, Windows ISO are not.

https://help.ubuntu.com/community/mkusb/isohybrid

The dd or similar tools like mkusb then image the ISO to flash drive in a hybrid DVD/flash drive bootable mode. It is not a standard partitioned drive then but like a DVD. You generally then have to use dd to erase first sector or two, so partitioning tools will work. See

https://help.ubuntu.com/community/mkusb/wipe

For testing and regular reinstalling better to just directly use ISO. I download ISO directly to HDD first time only. Then update with zsync and directly boot ISO using grub's loopmount. I then install on SSD from HDD with toram parameter and it can be re-installed in about 10 min directly from RAM into existing (previous) partition.

https://help.ubuntu.com/community/Grub2/ISOBoot


I suggest you to either:

read how to install Ubuntu on BTRFS. Btrfs is a filesystem that can roll back in time.
In your Ubuntu, install Virtualbox, then install Ubuntu into VirtualBox and do your experiments there. It is safe and also provides the rollback capability. Trnsfer only changes you are sure of into your working Ubuntu.

The second one is easier.


How to disable the popping sound when changing the volume in KDE/Kubuntu?

Press Alt+F2 keys. A small text box will appear at top margin in center of screen with few icons. Type kmix. And now there will be a option of KMix with its logo. Click on it. And look in notification area there should be broadcasting speaker; click on it.You get dialog box with few buttons Select the button with Spanner on it. A window will open named "Configure KMix". In that window on left hand there will be General option. In General option you will uncheck the "Volume Feedback". close window. Right click on speaker in notification area select Quit. And restart KMix as described above. This should solve your problem.


Make new variant keyboard layout available in Settings?

I assume you gave the new layout a name other than 'gb' (which I recommend, otherwise your changes might get reset in an update). In that case you need to add a <layout> element to the list /usr/share/X11/xkb/rules/evdev.xml – just look at the other entries. This guide refers to the file as evdev.html; so my information may be outdated (I'm still using 12.04 LTS).

BTW, my updated evdev.xml once got reset, too, and I faced unexpected trouble when only the Greek keyboard layout was available at the login screen. Luckily, I had been wise enough to save my changes in a home directory copy.


No installation candidate error when trying to install python-pypdf

Ok, from your comments, you are not using Ubuntu, but Parrot Security OS.

Below command shows where is python-pypdf in my Ubuntu 16.04

$ apt show python-pypdf
Package: python-pypdf
Version: 1:1.13-3
Priority: optional
Section: universe/python

For Ubuntu, below command can add/enable some additional repository which has community maintained free software including python-pypdf

$ sudo apt-add-repository universe
$ sudo apt update

I think you should search/ask this question in Parrot Community.


Ubuntu (regardless of version) keeps freezing

Most f my Linux problems are with graphics cards or their drivers. I would suggest you look inside, and if it is a full pci-e x16 graphics card, to replace it with something like a GTX 460 or even a GTX 570 if it has a good power supply, and then see if it works then. I bet you have an even older graphics card than like a 460 due to your processor and low amount of ram, and Gnome is very demanding of a graphics card and such a small amount f ram. If your motherboard supports more ram, especially if it running ddr2 ram, do yourself a favor and run dual channels of 4GB total or more, but first thing is first, test another graphics card.


Colors are washed out and blacks are gray on Kubuntu 20.04 LTS

This has to do with how the Consumer Electronics Association specified digital TV connections. If your monitor can be connected to A/V equipment it will advertise some standard TV resolutions (such as 1920x1080@60Hz) which will be fed "limited range" 16:235 pixel values that cause washed out colors when your monitor is expecting 0:255.
Since Linux is also run on media players and receivers I can understand why Intel is hesitant to make it work like on Windows. Unfortunately there does not seem to be any boot time override and we are stuck with running
xrandr --output <connector> --set "Broadcast RGB" "Full"
during X startup, where  is the one your monitor is on. (Use xrandr --listmonitors)
That said, if your computer and monitor support DisplayPort, that connection should default to full range.
Another option is to add a non standard resolution to your Xorg configuration and set that in your desktop environment. I.e. 1080p at 63 Hz would not be recognized as a TV standard and default to full range.
Last not least you can try creating your own EDID file (which advertises a monitors capabilities) based on the one your monitor provides and make Linux use that instead. I haven't tried that myself, but it should give you correct colors during boot. The downside to that is that you cannot provide different EDIDs for different monitors in this fashion. (Search for drm_kms_helper.edid_firmware and tools like wxEDID)


There is no /etc/groups. There's /etc/group and /etc/group- (the backup). To get results for your user from the backup, you can do:

grep username /etc/group-

Or, to get just the groups, using awk:

awk -F: -v u=username '$NF ~ u {print $1}' /etc/group-

To then add those groups back, as root:

awk -F: -v u=username '$NF ~ u {print $1}' /etc/group- |
  xargs -n1 gpasswd -a username


Difference between gnome-shell.css and ubuntu.css, and what are they for?

ubuntu.css is used to control the style of the GNOME Display
  Manager(Login screen) while gnome-shell.css is used to control the
  style of the Desktop? If so, why does gnome-shell.css also contain a
  section on #lockDialogGroup{} and /* Auth Dialogs & Screen Shield */
  as they seem redundant?

This Assumption is wrong.. you can use any valid file as login-screen theme, unlock-screen theme and for the user-theme

  Would I be able to override /usr/share/gnome-shell/theme/ubuntu.css
  with my own
  ~/.local/share/themes/MyCustomTheme/gnome-shell/gnome-shell.css?

you can use any valid file as a User-Theme selected via Gnome-Tweaks

  I would like to change the font size of clock shown in the lock screen
  and the duration for showing the lock screen (I find it disappears too
  quickly). Which file do I use to implement changes and which variable
  do I need to change?

These are two different questions, which are already asked in this forum.. you can get them with deep searching in AskUbuntu itself...

In a fresh Install of Ubuntu 18.04,

If you observe the file /usr/share/gnome-shell/modes/ubuntu.json

{
    "parentMode": "user",
    "stylesheetName": "ubuntu.css",
    "enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"]
}

the line stylesheeName: ubuntu.css indicates that the default-shell theme (i.e when no user-theme gnome-shell-extension is installed) uses the theme file /usr/share/gnome-shell/theme/ubuntu.css

and the background you will have in this file, uses for the unlock-screen background

#lockDialogGroup {
  background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png);
  background-repeat: repeat;

The Login-Screen Background uses the file /usr/share/gnome-shell/theme/ubuntu.css

you can check which file is used for login-screen theme with the below command

sudo update-alternatives --config gdm3.css

pratap@pratap:~$ sudo update-alternatives --config gdm3.css
[sudo] password for pratap:
There is only one alternative in link group gdm3.css (providing /usr/share/gnome-shell/theme/gdm3.css): /usr/share/gnome-shell/theme/ubuntu.css
Nothing to configure.
pratap@pratap:~$

If you notice above two cases.. in a fresh install of Ubuntu 18.04 ubuntu.css file is used for both unlock-screen theming and login-screen theming..

Both are configurable to your choices..

I always have different themes for login-screen and lock-screen.. for the running desktop select the theme from User-Themes via gnome-tweaks..

So, you can have different themes for login-screen, unlock-screen and for the regular desktop.. but in a fresh install of Ubuntu 18.04 all these 3 are configured to use /usr/share/gnome-shell/theme/ubuntu.css file..

Warning: editing shell theme files are very risky.. small mistakes will break the shell, If you know how to revert the changes via tty, then only proceed..

take backup of the file /usr/share/gnome-shell/theme/ubuntu.css first

then edit the file /usr/share/gnome-shell/theme/ubuntu.css

sudo -H gedit /usr/share/gnome-shell/theme/ubuntu.css

find the below content and adjust the font-sizes as you want..

.screen-shield-clock-time {
  font-size: 72pt;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4); }

.screen-shield-clock-date {
  font-size: 28pt;
  font-weight: normal; }


Most information on what you are seeking to do is described in the Postfix documentation. When setting up your Ubuntu server, assign it a hostname that is part of your domain: myserver.mydomain.com. Install Postfix and in the /etc/postfix/main.cf file, set myorigin = $mydomain. (Note: $mydomain is a Postfix wildcard that reads the dnsdomainname of the machine, not psudo-text for this post.)

You should not have to alter your DNS records unless you also want to receive emails through Postfix. If you wish to receive emails, add an an A record and an MX record for your Ubuntu server:

myserver.mydomain.com IN A 12.34.56.789
mydomain.com IN MX 10 myserver.mydomain.com


Sound issues after upgrading Kubuntu to 20.10

I had a similar (same?) problem after upgrading my Kubuntu installation to 20.10. The cause was Pipewire, which got installed in the upgrade.
The solution, for me, was to disable the Pipewire service:
sudo systemctl --global disable pipewire
sudo systemctl reboot

That seemed to do the trick, but I ended up uninstalling the Pipewire binary, too:
sudo apt purge pipewire

P.S. Pipewire seems great in its promise! But I guess it still needs a bit more time to mature and to be properly integrated into the distribution(s).


Two network interfaces use for up and down

It is not posible to use one interface for download only and one for upload only.


mounted smb share throu fstab, gets read only on added files

Solved the problem! I added the noperm option to the fstab mount. So now it looks like this:

//192.168.0.12/share/ /media/nas cifs credentials=/home/jocke/.smbcredentials,noperm,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0


Why will network manager not allow me save my VPN settings?

When creating a VPN connection you have to fill out all the required fields before 'save' becomes active. Ensure that you have them all filled out accurately.


How to type special characters like @, £, $ with Norwegian keyboard?

Ctrl+Alt+? is only used when the keyboard layout doesn't include an Alt-Gr key, as such it is supported by Windows for emulation purposes (as in: keeping the functionality across multiple layouts).

Using the Alt-Gr+? combination is standard and should be supported by your keyboard layout.

(In extension to my comment)


Tell awk to not match any line starting with # and whatever else till end of line; do not match empty lines; for lines that don't  have those patters, print fields 1,2 and 3 .

$> cat inputData.txt
    #header
    #header2
  #  header 3
   # header

 1       565286  SNP1-555149     C       T       .       PASS    AC=4270AF=1.00;AN=4270;set=broad       GT      1/1   /1     1/1     1/1     1/1     1/1

1       534247  SNP1-524110     C       T       .       PASS    AC=36;AF=7.772e-03;AN=4632;set=Intersection     GT      0/0     0/0     0/0
$> awk '!/^#.+$/ && !/^$/ { print $1,$2,$3  } ' inputData.txt
1 565286 SNP1-555149
1 534247 SNP1-524110


Why Is my computer screen not turning on and DVDs drive keeps trying to play a disk

Do you have any disk inside the drive? If you do, the system may be configured to boot from the drive, and when you boot, it reads the DVD and, as there's nothing to boot from, the computer doesn't start.

Next time you click on the power button, open the drive and check if there's anything inside it.

If not, it may be a BIOS or GRUB malfunction. But that's risky to modify. If done incorrectly, you may cause bigger problems to your PC.


Pulseaudio works at 100 percent at all time

Well looks like I fix it. And all it took to delete .pulse audio in home folder and hit killall pulseaudio. There is no more rattle. You can mark as solved, in case anyone else will face similar problem and search in here.


Is it possible to restore my lost photos from memory card?

Photorec
This software is part of the testdisk  suite, specifically designed to recover images from a partially overwritten or otherwise damaged drive.
There is an extremely helpful step-by-step guide written by the makers of PhotoRec which I recommend you follow:

PhotoRec Step By Step

In case you have Ubuntu installed you can run PhotoRec in a terminal after installation of the TestDisk suite but you can also do so from a live system as further elaborated in my answer to the following questions:

How do I recover my accidentally lost Windows partitions after installing Ubuntu?

We should try to recover our files from an image we created from the memory card by running the following command (see also this question) in a terminal:
sudo dd if=/dev/sdX of=/home/<user>/<path>/rescue.dd

Replace sdX with the appropriate value for your memory card, and replace /<user>/<path>/ with your path for the rescued file. Be extra careful to get the command right, dd is an advanced tool!
We can then recover files from this image with:
photorec rescue.dd


Yes: the upgrade process will detect that you are on a remote connection, and will open up a separate SSH server (and will notify you of this). In case of a failure, you will be able to reconnect over the other SSH connection.

Of course, if it doesn't come back up after a reboot, you will still have a problem.


I updated my system just now.But the updating software says me that updates were installed 3days ago.

Most likely there are no updates for your system at the moment. Looks for me like normal behaiviour of ubuntu-ubdate. If youre impatiant you may hit the "check" button. Then your software database may get new entries to install via update-manager

Sorry of course it is update-manager and not ubuntu-update. its the prog wich are shown in your first post


Netgear N-300/ WNA3100 USB Adapter for Ubuntu 16.04

You can add Support for the Netgear N-300/ WNA3100 USB Adapter by installing the ndiswrapper and loading the Windows network driver.

Install the ndiswrapper modules

$ sudo apt-get install ndiswrapper-dkms ndisgtk ndiswrapper-common
$ sudo apt-get install  ndiswrapper-source ndiswrapper-utils-1.9

Activate the ndiswrapper:

$ sudo modprobe ndiswrapper

Load the driver into the ndiswrapper:

Navigate to where you saved the driver (look at the Download Windows Netgear Drivers section below):

$ sudo ndiswrapper -i bcmwlhigh5.inf
(Add the ndiswrapper modules to the boot configuration with:)
$ sudo ndiswrapper -m

Download the Windows Netgear Drivers

You can download the driver from NetGear Site: WNA3100 Drivers.  The only thing you need from the download package is the WNA3100 folder.

The exptracted WNA3100 folder is available at:
http://faq.apollo3.com/ljames/ubuntu/networksupport/

Note:
You only need wine for extracting the WNA3100.zip package from the setup.exe file from the Netgear site.  After running setup.exe you'll find the zip package in:

~/".wine/drive_c/Program Files (x86)/NETGEAR"


CVE-2020-1938 aka Ghostcat

Desciption: When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Tomcat treats AJP connections as having higher trust than, for example, a similar HTTP connection. If such connections are available to an attacker, they can be exploited in ways that may be surprising. In Apache Tomcat 9.0.0.M1 to 9.0.0.30, 8.5.0 to 8.5.50 and 7.0.0 to 7.0.99, Tomcat shipped with an AJP Connector enabled by default that listened on all configured IP addresses. It was expected (and recommended in the security guide) that this Connector would be disabled if not required. This vulnerability report identified a mechanism that allowed: - returning arbitrary files from anywhere in the web application - processing any file in the web application as a JSP Further, if the web application allowed file upload and stored those files within the web application (or the attacker was able to control the content of the web application by some other means) then this, along with the ability to process a file as a JSP, made remote code execution possible. It is important to note that mitigation is only required if an AJP port is accessible to untrusted users. Users wishing to take a defence-in-depth approach and block the vector that permits returning arbitrary files and execution as JSP may upgrade to Apache Tomcat 9.0.31, 8.5.51 or 7.0.100 or later. A number of changes were made to the default AJP Connector configuration in 9.0.31 to harden the default configuration. It is likely that users upgrading to 9.0.31, 8.5.51 or 7.0.100 or later will need to make small changes to their configurations.

National Vulnerability Database CVE-2020-1938

RedHat Announce CVE-2020-1938


Why is there a Pi specific version of Ubuntu, and we can't just install regular Ubuntu ARM?

At http://cdimage.ubuntu.com/ubuntu/releases/bionic/release/ you can see versions that are identified as specific for Hard Float or generic :-

Raspberry Pi 3 (Hard-Float) preinstalled server image
For modern Raspberry Pi boards (Pi 2, Pi 3 and Pi 4).
Raspberry Pi 3 (64-bit ARM) preinstalled server image


dpkg error while installing heroku on ubuntu 14.04

You misread the instructions on their webpage - the wget... command applies to Ubuntu 12 and below.

For your system, Ubuntu 14.04 please use the other command specified:

sudo snap install heroku


Gimp won't start: Gtk-Message: Failed to load module "atk-bridge"

It seems like some permissions got messed up. In case it happens to you, try the following:

Launch Ubuntu Software, search for Gimp and display the details of the list entry that is marked as installed. Hit the permissions button and grant all permissions. After that, gimp was working fine again.


Trying to install Ubuntu 16.04 LTS on a Toshiba Satellite laptop with Windows 10

Make sure your computer is booting in UEFI mode. Most computers have it set by default, but some come with legacy mode selected. You can check in the BIOS of your computer.
When you get to the menu where you choose what to do, make sure you do choose "Something else". From this menu, delete all the partitions on your hard drive, and make one EXT4 and select the mount point as /
Then click on next. It will tell you that you have not created any swap, but it should be fine, especially if you have a decent amount of RAM. Then just proceed with the installation as normal.


Make sure that your /etc/mysql/my.cnf does not have bind-address set, then restart the server. This will allow connections from localhost.


How do I transfer certain parts of the file to another file?

Getting content between named blocks of text

Lets address getting the contents inside start..stop block because that's the major task.

grep is line-matching tool, hence matching across multiple lines is difficult and grep is usually not used for such task, though it's not impossible. However, best approach in such case is to use awk to get patterns between specific lines, and then filter out the start and stop flags:

$ awk '/start/,/stop/' input.txt | grep -v 'start\|stop'
Aaron
Kyle
Robert
Riley
Gayle
Alex
Ford
Sergio

If we want to get rid of pipeline, we can do:

# {print} is actually unnecessary, as default for awk is to print if
# expression evaluates to true, so it's enough to have
# awk '/start/{flag=1;next};/stop/{flag=0};flag' input.txt
$ awk '/start/{flag=1;next};/stop/{flag=0};flag == 1 {print}' input.txt
Aaron
Kyle
Robert
Riley
Gayle
Alex
Ford
Sergio

There's of course other methods, such as sed or perl. As for grep, it's often suggested to use grep -Pzo flags, however probably due to multiple occurrences of start..block it doesn't work properly ( only one match returned):

$ grep -zPo --color 'start\n(.*\n.*)\nstop' input.txt
start
Riley
Gayle
stop

For the sake of simplicity (though arguably awk example is the simplest) and to avoid dealing with regex patterns, we can also resort to basic scripting:

#!/bin/bash

printline=0
while IFS= read -r line; do

    # set flag for printing or not printing
    case $line in
        "start") printline=1; continue;;
        "stop")  printline=0; continue;;
    esac

    # check the flag
    if [ "$printline" -eq 1  ]; then
        printf "%s\n" "$line"
    fi

# first positional parameter is the file we read
done < "$1"

And here's how the script works:

$ chmod +x readblocks.sh
$ ./readblocks.sh input.txt
Aaron
Kyle
Robert
Riley
Gayle
Alex
Ford
Sergio

Checking for NAMES START and transfering

  If "NAMES START" string is present, transfer the contents each "start" and "stop", to a new FILE2, leaving out the start and stop themselves in the new FILE2.

Well, that's just grep 'NAMES START' input.txt. So we can check for that via

if grep -q 'NAMES START' input.txt; then
    # whatever method you like goes here
fi

Looking at your example, NAMES START is the first line of the file. So we can also check for that  - check first line as we read the file, instead of opening the file inside if statement suggested above.

Transferring the contents to FILE2 - that's just adding > FILE2.txt to the original command or script you use.

With these suggestions, awk command becomes:

$ awk 'NR==1 && $0 != "NAMES START"{exit};/start/{flag=1;next};/stop/{flag=0};flag' input.txt > FILE2.txt

And the script:

#!/bin/bash

printline=0
linecounter=0
while IFS= read -r line; do
    linecounter=$((linecounter+1))

    case "$line" in
        "NAMES START") continue;;
         *) exit 1;
    esac

    # set flag for printing or not printing
    case $line in
        "start") printline=1; continue;;
        "stop")  printline=0; continue;;
    esac

    # check the flag
    if [ "$printline" -eq 1  ]; then
        printf "%s\n" "$line"
    fi

# first positional parameter is the file we read
done < "$1" > FILE2.txt


Run "rails s" on another directory in a single line

The problem is in crontab. I solved it with this line:

@reboot sh /path/to/sh-script

and in the script I put

cd /path/to/rails-app && /usr/local/bin/rails s

Thank you


open ubuntu with your live media and then rename them back to the original and restart to your local ubuntu it should start to work again (at least all icons and links and terminal will start to work again).
If you've already moved them then move them back to their original directories


AD login and smbclient login successful, but fails from Windows clients

Solved by setting the correct permissions on the samba  folder.
The permissions should be the same as the user's home folder


Unable to Open Software center nor Update Manager on 12.04

Please try these commands:

    sudo killall dpkg
    sudo apt-get -f install

and let us know if that helps. It could be that update manager or software center was interrupted while it was used, causing dpkg to remain open.


Chrome - apt-get update Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages.bz2 Hash Sum mismatch

I'm getting this same exact error "hash sum mismatch" on both Ubuntu 14.04 as well as Ubuntu 16.04, and only 16.04 complains about the encryption algorithm.

The source of this problem seems to be twofold:

apt deprecated sha1 recently, which explains the warnings we have been getting from the google repo since the latest LTS was released.
Google was going to provide a fix for the "weak digest algorithm"
warnings at some point: (https://bugs.chromium.org/p/chromium/issues/detail?id=596074)

The following is speculative, but seems to fit the symptoms we're seeing:

Google may have rolled out new hashes that no longer match the GPG pub key signatures that everyone is using, presumably these are no longer sha1sums.  This might mean they've created hashes for new keys, but have yet to publish new GPG pubkey sigs to go with them for the repo, hence the hash mismatch.

If this turns out to be true, besides being incredibly annoying, there's not much we can do until Google gets their act together.

I suspect this is just a matter of time, and we should see a fix soon(ish),in the form of new GPG pubkey signatures we should be using.  It should be easy to add the latest ones with:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Assuming of course that the link to the new keys doesn't change; I'm going to be keeping an eye out for changes there.

If you're frustrated with the messages, you can disable them by commenting out the sources in /etc/apt/sources.list.d/google-chrome.list.

software-properties-gtk will allow you to remove any of Google's existing signatures in the authentication tab, before adding the new ones.

And if you've deleted the repo files (like I did several times today) you can setup the repos properly by installing the .deb again, just make sure you set the repo_add_once variable to "true" in /etc/defaults/google-chrome.  The file should look like this:

repo_add_once="true"
repo_reenable_on_distupgrade="true"

This of course is NOT a fix for anything at the moment, but will configure everything properly again.  Also, last little caveat - the script that installs the repos usually has a copy of the GPG signature in it, so you might want to update the apt-key again before you do an apt-get update.

Here's hoping this problem goes away soon.


How to change permission on external hard drive in Ubuntu

Your disk is known to the system as /dev/sdb1 and is mounted read-only (the ro between brackets). Moreover, it is NTFS (which the mount command reports as fuseblk).

Unmount your disk and re-mount it as read-write, like this:

sudo umount /dev/sdb1
sudo mkdir /mnt/mydisk
sudo mount -t ntfs -o rw /dev/sdb1 /mnt/mydisk

This will work unless your external disk has a hardware switch to set it to read-only, which is the case with e.g. many SD-cards.


Configuration of account realvnc vncconnect

Another approach is licensing the software locally from the console...   sorry.

sudo vnclicense -add [KEY]<br>

Direct connectivity is automatically enabled.
To enable cloud connectivity, use

sudo vncserver-x11 -service -joinCloud TOKEN [-joinGroup GROUP-NAME]...

This link may also be helpful:
https://www.realvnc.com/en/connect/docs/debian-install-remove.html


Copy files from multiple sub-directories to the same destination directory

The find command is a good tool for that kind of operation, best in combination with xargs.
Try something like:

find "Main Directory" -type f -print0 | xargs -0 cp -t destdir

and have a look at man find, man xargs and man cp for details on how this works.


I got it. With this command it works.

I have to append the password parameter:

sudo ubuntu-emulator create mynewinstance --arch=i386 --password=test

Only thing is, the emulator does just start through a ssh remote connection.


This finally worked:

Ctrl+Alt+T

command unity --reset from the terminal


Installing Ubuntu on my F205TA laptop - a LOT of problems!

There is most likely a setting in the BIOS preventing anything other than Windows from loading.

I can't tell you exactly which setting to change, but something along the lines of "Allow booting other OS" or "allow non secure-boot OS".


This has been resolved by deleting the /etc/machine-id file and rebooting or just using the systemd-machine-id-setup utility.


Open xdg-open does nothing in Chrome on KDE store

xdg-open is a tool which opens file in the user's preferred application. The KDE Store install things Pling Store or OCS URL. Under everything in KDE store, a note is written

  *Needs pling-store or ocs-url to install things

It is expecting xdg-open to open either of them. But it seems that you have none installed.

You can install OCS URL by downloading deb file from here and then open terminal and run:

sudo dpkg -i ocs-url_3.1.0-0ubuntu1_amd64.deb
sudo apt install -f

Now when you click xdg-open, a window will appear asking for confirmation.

But if you prefer Pling, you can download the AppImage from here. Then open terminal and grant execute permissions using

chmod +x pling-store-5.0.2-1-x86_64.AppImage

And then double click on the app to launch the store.

  Note: It seems you have Ubuntu installed which uses GNOME. But here you are trying to install a KDE theme. This might not yield any result. If you really want that theme, I'd suggest you to either install Kubuntu or Kubuntu's desktop environment which is basically based on KDE.


The kernel use which scheduling algorithm?

Neither:

  Since Linux 2.6.23

  Con Kolivas's work, most significantly his implementation of "fair scheduling" named "Rotating Staircase Deadline", inspired Ingo Molnár to develop the Completely Fair Scheduler as a replacement for the earlier O(1) scheduler, crediting Kolivas in his announcement.

  The Completely Fair Scheduler (CFS) uses a well-studied, classic scheduling algorithm called fair queuing originally invented for packet networks. Fair queuing had been previously applied to CPU scheduling under the name stride scheduling.

  The fair queuing CFS scheduler has a scheduling complexity of O(log N), where N is the number of tasks in the runqueue. Choosing a task can be done in constant time, but reinserting a task after it has run requires O(log N) operations, because the run queue is implemented as a red-black tree.

  CFS is the first implementation of a fair queuing process scheduler widely used in a general-purpose operating system.

If you're willing to look at the source code, sched/fair.c implements CFS, and sched/rt.c implements the POSIX-required FIFO (or what you'd call FCFS) and Round-Robin (RR) algorithms for realtime processes.

Further reading:

Kernel Documentation
IBM developerWorks article on CFS
Linux Journal article on CFS


That does not have the bluetooth drivers yet, only the wireless drivers are working (Barely working. See the link about it). This still has some bugs that need to be worked on as mentioned in this Bug Report.

For the installation of that specific driver you can look at How do I get a Ralink RT3290 wireless card working? especially the part about renaming the file and editing some config files.

For the actual bluetooth there are 2 ways:

Wirama Web Solution

The following site did an extensive work on how to solve this issue, which points to a PATCH at the end in github. There is also a question regarding this issue in Ralink RT 3290 Bluetooth Problem on Ubuntu 14.04

Updating Kernel

You can also (This is risky and can have a lot of issues) update to the 3.15 or 3.16 Kernel. This 2 versions come with many bluetooth updates.

I would recommend the Wirama Solution until a proper solution can be found.


The cron job doesn't work when put in `/etc/cron.hourly/` but work when defined in `crontab -e`

After investigating the log output, I finally found that the log file included the following content which is from the gcloud execution:

  AccessDeniedException: 403 Insufficient OAuth2 scope to perform this operation.

So the problem was on gcloud, not cron.

So how to avoid the access denied error on gcloud?

In order to grant VM access the Cloud Storage, take the following steps:

Stop your VM instance
Edit your VM to change the Cloud Storage from Read to Read/Write.
Restart your VM

And now I finally got it working as scheduled...

The source: https://stackoverflow.com/a/41604071/2360798


GCC Compiled program not running in a new Window

right-click on output file and under permissions tab check "Allow executing file as program" to make it as executable program.

in terminal use:

 $ chmod +x myoutput

What should you do?

You can not run output compiled .c file under Ubuntu in grapgical window. you need to install Qt Creator.It's a full-fledged IDE with a visual form designer, code-editor, and debugger.

You won't need to use the console to compile or run your applications and the Qt framework is easy to learn and use.

There's a great tutorial for getting started with Qt

How to install


How do X11, Unity, LightDM work together?

Nowadays, X11 essentially just draws on the screen whatever it's told to draw. Other things, like the window manager and compositor, decide what to draw, where to draw and when to draw it.

LightDM starts X11 on some TTY (usually tty7). Then it uses a "greeter" which tells X11 to draw a login page. When you login, it:

optionally starts a new X11 process on another TTY (depending on whether someone is already logged in, and other config)
and that X11 is told to start gnome-session --session=ubuntu, as specified by /usr/share/xsessions/ubuntu.desktop (or whichever session you picked to start, but assuming Unity for now...), which in turn runs unity after gnome-session sets up various things.

Unity, in turn, tells X11 to draw various things, like the panel, the launcher, where various windows are, what animations to do when you move the window or resize it, etc.

Have a look at this set of articles which might give you a better view at what X does.


I'm currently running a Radeon VII on ubuntu 18.04.
Using kernel 4.15.0-47-generic and amdgpu-pro-18.50-725072.
Try this:
Install kernel 4.15.0-47-generic

sudo apt-get install \
linux-image-4.15.0-47-generic \
linux-modules-4.15.0-47-generic\
linux-modules-extra-4.15.0-47-generic \
linux-headers-4.15.0-47-generic
sudo update-grub

Then download amdgpu-pro 18.50 from http://amd.com

wget --referer support.amd.com \
https://drivers.amd.com/drivers/linux/amdgpu-pro-18.50-725072-ubuntu-18.04.tar.xz
tar xf amdgpu-pro-18.50-725072-ubuntu-18.04.tar.xz
cd amdgpu-pro-18.50-725072-ubuntu-18.04
./amdgpu-pro-install

Add amdgpu.dc=1 to GRUB_CMDLINE_LINUX in /etc/default/grub
run sudo update-grub and reboot into kernel 4.15.0-47-generic.

And Voilà
Cheers


Remove Spotify pop-up notification when a song starts

Exit Spotify, then edit ~/.config/spotify/Users/[Spotify user name]-user/prefs and set ui.track_notifications_enabled=false