I think that the boxes you are talking about are notifications provided by the nm-applet. It should be possible to disable them from the command line using gconftool e.g.

gconftool --set /apps/nm-applet/disable-connected-notifications --type boolean true

gconftool --set /apps/nm-applet/disable-disconnected-notifications --type boolean true

I don't have access to a 13.04 system but I can confirm they work 12.04 using the gnome classic desktop. You can see all the current gconf parameters and their values for nm-applet using

gconftool --all-entries /apps/nm-applet


It combines lsmod and modinfo utilities. I think its pretty useful if you want a summary of drivers used by your system.

Here is the link to the gist


Sound Settings is missing all output devices

Turns out I was running into Bug #590780: Installing "randomsound" package causes Pulseaudio to stop functioning at reboot and didn't know it yet. See this answer:

  Run pstree | less
  In that, type /arecord and press return to find the arecord process.
  Press up once and you'll see its parent. In my case this was randomsound.


How to format a booteable usb made by Startup Disk Creator

Install mkusb

sudo add-apt-repository universe

sudo add-apt-repository ppa:mkusb/ppa
sudo apt-get update
sudo apt-get install mkusb

Run mkusb
and select restore to a standard storage device


When using HDMI, the laptop screen extends to the TV screen

As far as you speakers go on your laptop, make sure you have not got a hardware mute button that is disabling them. Then check any software mute that is enabled.

Finally if all that checks out, check BIOS settings to make sure there are no speaker settings in there somewhere that need to me adjusted.

As far as display goes, try another cable - and acreen shot of what you are experiencing would help.


Not able to boot Ubuntu 12.04 after installation in Windows 7 PC

Search for how to fix Grub loader version 2. You'll be needing min. 4GB pen drive and Ubuntu 12.04 and Unetbootin software.


How can I make any key into a modifier key?

If I understand you right, what you want is to uncheck the option "Key presses repeat when key is held down" at Menu > System > Preferences > Keyboard.


systemd-resolve high cpu usage after update to 17.04

I had a similar conflict between systemd-resolve and dnsmasq on port 53.

https://unix.stackexchange.com/questions/304050/how-to-avoid-conflicts-between-dnsmasq-and-systemd-resolved

and

https://github.com/systemd/systemd/pull/4061

led me to add DNSStubListener=no in /etc/systemd/resolved.conf and then sudo service systemd-resolved restart.


How to backport a patch to my current kernel?

Assuming that the extracted file is on your desktop, in a terminal, do:

cd ~/Desktop/backports-3.13-rc2-1
make clean
make defconfig-ath9k
make
sudo make install
sudo modprobe -r ath9k && sudo modprobe ath9k

'sudo make install' will produce a signing key warning that you may safely ignore.


I had same problem. I made these steps to make it works again (maybe only one was necessary)

kill all processes which I found via ps aux | grep kwallet  (there was three and I think one of these processes can "lock" wallet opening. Because when I killed it pop up for password appeared)
Run update - After upgrade to 18.04 I ran apt update && apt upgrade and it found 3 updates (libpam-kwallet-common, libpam-kwallet4, libpam-kwallet5)
Reboot once again - After login I was asked for password into wallet and it looks kwallet working again.

Hope it helps.

Best regards,
cr4wen


Remote desktop solution working with Ubuntu 12.04 + Unity (3D)?

I am using x2go (http://www.x2go.org/) which is based on nxclient. It does exactly what you are looking for. Just a side note: you must configure the shell to be gnome-classic instead of Unity 3d. The users will be able to log in with their credentials and also have multi-monitor support if they need it.


Trouble importing .ovpn file with Network Manager (GUI and CLI), and OpenVPN directly

The --compress error is because Ubuntu uses OpenVPN 2.3.10, and 2.3.10 doesn't know about that directive.
--compress was added in 2.4.x.

In 2.3.x, LZO compression was the only compression method supported, via the --comp-lzo directive.
See https://community.openvpn.net/openvpn/wiki/OpenvpnSoftwareRepos for info on adding the official OpenVPN repo so you can upgrade to the latest stable version (2.4.6 at the time this was posted).

--tls-crypt was also added in 2.4.x, so you would need to upgrade OpenVPN in order to use that as well.

However, Network Manager's OpenVPN plugin hasn't added support for --compress yet.
According to https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/issues/1, --compress is still an open issue.  This does say that --tls-crypt was added in NM 1.2.10, but Ubuntu uses NM 1.2.6.


Ubuntu doesn't use httpd.conf as standard, instead global configuration stuff for apache is found in /etc/apache2/apache2.conf. You can create a httpd.conf in the apache2 directory, and load any further configuration from it by including the following line in /etc/apache2/apache2.conf.

Include /etc/apache2/httpd.conf

You don't need that file to configure apache, but you can create it if other software relies on it being there.


Answer android calls on ubuntu via bluetooth

I had this problem, too. I was trying to record my phone calls with OBS. After fiddling around with various audio sources, without paying too much attention, I was able to record the call. This wasn't much use to me because the audio didn't play through the speakers, plus for some reason placing the call disabled microphone input. At the time I regarded these as two separate issues.
I realized that this proves that the problem originates not on the Android side, nor in the Bluetooth transmission of the audio to Linux. The problem lies somewhere between PulseAudio and the speakers.
I investigated further and noticed something. When I played music from the phone, OBS detected it as audio output. But when I placed a phone call, OBS detected it as audio input. This explained both of my problems!
What I did was set OBS to output my microphone:

Connect your smartphone and computer with Bluetooth.
Install OBS: sudo apt install obs-studio.
In the "Sources" pane at the bottom of the screen, click the "+" sign to add a new audio source.
Select either "Audio Capture Device (ALSA)" or "Audio Input Capture (PulseAudio)".

You don't need to change anything on the "Create/Select Source" window that pops up, just click OK.
You don't need to change anything on the "Properties" window that pops up, just click OK.
A new set of bars will appear in the "Mixer" panel, the visualization showing that it is capturing your computer's microphone if you have one. Turn the volume down using the blue slider underneath it; you don't want feedback when we start outputting the microphone.
Click the settings gear next to the Audio Capture Device entry.
select "Advanced Audio Properties" on the menu.

Place a call from your smartphone.
In the window that pops up, select the "Audio Monitoring" drop down menu for "Audio Capture Device (ALSA)" and set it to "Monitor and Output". I found it works most consistently when the call is placed before the setting is changed.

The speakers should now start playing the call! Should. This doesn't always work. Sometimes I had to remove and re-add the audio source to make it work.

There is probably a better way to do this with VLC streaming.
This isn't the end of the story if you want to record the call, because the call still disables the microphone, so you can't record yourself speaking. I will update this answer if I figure out how to do that.


Difference between make-kpkg and make deb-pkg

I came across this issue as well. The answer I found is documented here: http://users.wowway.com/~zlinuxman/Kernel.htm#Configure, last two paragraphs of the section. Basically it comes down to debug info being included in your kernel (CONFIG_DEBUG_INFO=Y) and also in the modules (not using make variable INSTALL_MOD_STRIP=1). My builds were ~400MB before, and ~40MB after.


How to change a port from filtered to open?

Clearly in your case, there is no service listening on that port.

A port is considered "opened" when a service is listening on it.
If no service is listening on it, nmap will see the port either closed or filtered.

  An application is actively accepting TCP connections, UDP datagrams or
  SCTP associations on this port. Finding these is often the primary
  goal of port scanning. Security-minded people know that each open port
  is an avenue for attack. Attackers and pen-testers want to exploit the
  open ports, while administrators try to close or protect them with
  firewalls without thwarting legitimate users. Open ports are also
  interesting for non-security scans because they show services
  available for use on the network.

Depending on the how firewall works and how the system allows scanning you may receive a filtered status on a port where a service is listening on, but also if no service is listening too.

For example :
With option -sT, nmap will try to connect with TCP protocol after SYN is done.
It is a good option when a user does not have raw packet privileges.

With option -sS, nmap will only try to SYN the port, which is first faster than doing the whole SYN/ACK process and will not produce tracks in the logs but can give no results under conditions given before.

References :
Nmap Port Status List
Scanning techniques


Why does “(base)” appear in front of my terminal prompt II?

I had the same issue this morning and did some sleuthing.  I updated conda last night, and when I ran the initialization script, it added similar code to my .bash_profile file. The code runs the script generated by conda shell.bash hook.  The last line of this script is conda activate base, which adds (base) to the beginning of your prompt (and modifies some environment variables like your path).  You can override this by adding the following command to your .condarc file.

auto_activate_base: false

One possible issue with not auto-activating the base environment is the conda initialization script does not add your base/bin directory to your path if you do not activate the base environment.  I already add it to my path in my .bash_profile, so it is not an issue for me.


Command not found after setting source in bash script

That’s because the script subshell doesn‘t run interactively, in which case the ~/.bashrc is set to do nothing by default. You can either use any of the workarounds explained in this and this answer or simply call rbenv with the full path on the last line:

$HOME/.rbenv/bin/rbenv install 2.3.1

Note that for Cosmic onwards there’s an rbenv package in the repositories.


I had a similar problem and I resolved it using Boot-Repair.
There are only few simple steps to follows: first of all I created a bootable usb-stick (this is not the only way) with the iso of Boot-Repair.

Then I restart my pc (with the usb inserted), and I follow some  simple and automatic steps of Boot-Repair.

I'm not an expert, so if you prefer, you can wait for other answers.


Upgrade to 17.04 Zesty stuck on Postfix configuration

Finally found the answer here: You can press Tab to give focus to the <Ok> option, and then you can press Enter to continue.

:facepalm:


HP QuickTouch media keys worked with LiveCD but not after install

I can offer a workaround for this problem. Boot Windows (from stick, from disk, whatever) and make sure this Windows has installed the appropriate HP Quicklaunch Button driver (find it here). After starting Windows, use the touch buttons. If the buttons work, you can restart you laptop and boot ubuntu. It should work then, it did for me.

Although it is just a workaround, I hope it helps.


Version 12.04 takes forever to boot into kernel 3.2.0-36

That's a kernel regression.

Short-term solution: remove the 3.2.0-36 kernel from your /boot/grub/grub.cfg file. (use gksudo gedit /boot/grub/grub.cfg to edit it), or remove the packages related to 3.2.0-36.
Also report the bug to kernel developers, via the ubuntu-bug linux command. If you don't, you will have the same bug in future Ubuntu releases.


Replace LightDM with MDM on Ubuntu 13.10

The bug was fixed...

Installed MDM using:

sudo add-apt-repository ppa:noobslab/mint
sudo apt-get update
sudo apt-get install mdm mdm-themes

MDM is working just fine.


How to change tooltip's background color in Xfce?

To do it manually:

If you want to change the tooltip settings for all GTK2 apps, then edit ~/.gtkrc-2.0.
Or, If you just want to change settings for Eclipse, then edit ~/gtkrc-eclipse and then start eclipse with GTK2_RC_FILES=~/gtkrc-eclipse eclipse):

Add the following to your gtkrc file.

style "gnome-color-chooser-tooltips"
{
  bg[NORMAL] = "#FFFFAF"
  fg[NORMAL] = "#000000"
}
widget "gtk-tooltip*" style "gnome-color-chooser-tooltips"

Alternatively, you can do this from a GUI:

Install gnome-color-chooser .
Go to Specific tab > Tooltips and check Foreground (black) and Background (yellow). Click apply.
The settings are saved to ~/.gtkrc-2.0 and ~/.gtkrc-2.0-gnome-color-chooser.


Virus detection in http://es-mirrors.evowise.com/ubuntu/pool/main/n/nmap/nmap-common_7.70%2bdfsg1-6_all.deb

Gen:Variant.Ursu.416173 is a Windows related problem.  Besides that: you can expect the official mirrors to be scanned anyway.

  Nmap (Network Mapper) is a free and open-source network scanner and is used to discover hosts and services on a computer network by sending packets and analyzing the responses.

So basically it does exactly what those virus scanners believe is a virus: scan ports. But that is what it is supposed to do.

  is there any known problem with the updates?

No. Get a better virus scanner, please. Or better: don't use virus scanners on Linux files. The only logical usage for virus scanners on Linux is to scan Windows files before you send them to a Windows system.

As of today, there are 26 known viruses related to Linux; None of these are current and this also includes proof of concepts. Some of them are described here.

An Intrusion Detection Prevention System is far more important


14.04: gnome-color-manager - fails to connecto 'instrument'

If the 'instrument' in qestion is a Datacolor Spyder 4, try this:

$ cd ~/.local/share/ArgyllCMS
$ ls -l *.bin
-rw-rw-r-- 1 hannu hannu 1968 aug 22 15:48 spyd4cal.bin
$ mv spyd4cal.bin spyd4cal.bin_

Then restart System Settings > Color > (select display) > Calibrate

From what I understand this is the calibartion data for the 'instrument' that has been read out of the device itself. It seems this does get corrupted of some reason, and removing it launches a new readout - which corrects the problem.


Ubuntu 20.10, USB headset detected, microphone working, but headphones not working

Install pavucontrol (pulseaudio volume control) which has more control than standard configurator :
sudo apt install pavucontrol
Run it and check  :

"output devices" tab to select usb  (click the green button near USB device to make it default)
"playback" tab:   also   select usb for running audio apps
"configuration" tab : search any "usb" profile (may exist or not).


This is part of the kernel source, specifically the path is:

/drivers/usb/mon

You can browse the code online if you like, here is an example from 4.4.8....


Ubuntu 16.04 LTS Failed to fetch / Hash Sum mismatch

Run these commands in the terminal:

sudo rm -rf /var/lib/apt/lists/*
sudo apt clean
sudo apt update


Yes the root user is an official one.

That user comes from a long line of historical influences. It's the conventional name of the user who has all rights or permissions. Most Unix-linke operating systems have a root user. It's not always called "root". You may know the Administrator of Windows operating systems.

Some Linux derivates like Ubuntu allow administrator accounts which provide greater access (not a root account). In some cases, specially Ubuntu, the root user is disabled defaultly, because you can destroy the system with the root user if you do not know what you do.

The root user can do things that a normal user cannot for example:

He can change the owner of files/directories
He can bind network ports below 1024
He has always the uid 0 and can be indentified by this id.
Ergo: There is only one root

In Ubuntu (and other Linux derivates) there is a mechanism to gain root priviledges for a short amount of time. One of those mechanisms is sudo. sudo can be used to run a program with root priviledges, but with the users environment.

Edit: Short digression about sudo:

The clue is the so called suid-bit that is on some programs such as sudo. It allows to run the program with root priviledges, even if the root account is disabled (as in ubuntu). sudo itself controls whether the user has the right to execute whatever he wants. So, you execute sudo as root and sudo decides if it executes the given command as root.

The system would not be operable without the root user. There must be a user with the id 0 and the name root (but it can be disabled due to suid/sudo). Or such mechanisms as the suid bit will not work. Hence your will not be able to gain root priviledges.
Source: Wikipedia


Keyboard Indicator for Layouts with the Same Country Code

I'm afraid I can't answer your question and you're probably aware of what I'm going to tell you.

However, to work around this in the meantime, why not install the Dvorak one under a different country code? That's what I did. At least I can quickly see which keyboard is active.


No. Every piece of DNS requester software expects to find the DNS service on port 53 of the nameserver. If it is not there then DNS will not work.

$ grep '\s53/' /etc/services
domain          53/tcp                          # name-domain server
domain          53/udp


As of 12.04
Gtk3 is the default on 12.04.

For 11.x
Simple answer: No, it does not (Quickly 11.10).

Extended answer:
Since all the code produced by quickly can be edited, you can change it to support gtk3, but it does not come with support.

There is however a branch of quickly in development that (only) supports gtk3. You can see the difference in the templates: some have from gi import ... (which is needed for gtk3) and the older templates have import gtk (which does not work with gtk3).

You should be able to uninstall your current quickly version and get the gtk3-enabled version with:

bzr branch lp:~quickly-committers/quickly/gtk3-projects

I have however not tried it and it is of course not the current stable version of quickly (which has lots of implications...)


1) you can install Ubuntu on a formatted hard drive

2) you don't have to use Microsoft drivers, just some new graphic cards may need a driver which are supported by Nvidia and ATI

3) yes, and absolutely yes,Ubuntu updates are available and automatic :)


i have massive attack on port in my server

The following will detect the IPs and then drop them for more than a day.

# Dynamic Badguy List. Detect and DROP Bad IPs that try to access port 20000.
# Once they are on the BADGUY list then DROP all packets from them.

iptables -A INPUT -i eth0 -m recent --update --hitcount 5 --seconds 90000 --name BADGUY -j LOG --log-prefix "Port 20000 BAD:" --log-level info
iptables -A INPUT -i eth0 -m recent --update --hitcount 5 --seconds 90000 --name BADGUY -j DROP
iptables -A INPUT -i eth0 -p tcp -m tcp --dport 20000 -m recent --set --name BADGUY -j ACCEPT

Replace eth0 with your actual interface name.
Place these rules after your ESTABLISHED,RELATED by-pass rule. A typical example:

iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT


First and foremost, uninstall the packages you installed previously. At terminal type sudo apt-get remove --purge banshee, press ENTER key and do the same for the Firefox. Next type sudo apt-get autoremove ,to clear the system of any residing file.

To remove the PPA from repository copy and paste the following into your terminal sudo ppa-purge ppa:ubuntu-mozilla-daily/ppa/firefox-aurora/ubuntu oneiric  && ppa:banshee-team/ppa/ubuntu oneiric.

As for the Firefox browser, you can download it from the official website if you are looking for the latest and follow instruction as prescribed on the site. Regarding Banshee, the truth is that Banshee will only allow you the repository for the stable release, though,you would be allowed to download the latest release for Ubuntu that will always return you back to the stable release.


Found a solution. Added my proxy to /etc/hosts to force to resolve to proper address for Kerberos.


Broadly speaking, there are two ways to set up a multi-boot configuration between multiple Linux distributions:

One distribution's boot loader directly boots all of your distributions, leaving the other boot loaders entirely out of the loop. (Chances are it's OpenSUSE's GRUB that's in control in your case, since that's the one you installed last.) As such, you'd need to edit the controlling distribution's GRUB to change the kernel options for the other distributions.
Each distribution provides its own boot loader that boots its own kernel and that chainloads to the other distributions' boot loaders. In this configuration, each distribution controls its own kernel options, but to boot anything but the OS whose boot manager comes first in the boot chain, you must boot through multiple boot managers -- for instance, OpenSUSE's GRUB presents a menu with boot options for its own kernels alongside options to boot the other distributions' GRUB instances. To Boot (say) Ubuntu, you'd go through OpenSUSE's GRUB and then Ubuntu's GRUB.

These two scenarios are not mutually exclusive; you might see (for instance) an OpenSUSE GRUB menu with options to boot OpenSUSE and Ubuntu kernels alongside an option to boot Ubuntu's GRUB.

Note that a boot manager presents a menu of OS choices, whereas a boot loader loads an OS kernel into memory and starts running it. GRUB does both tasks, so people in the Linux world often use the two terms interchangeably, but the distinction is important in your situation, despite the fact that a single GRUB instance is likely to function in both roles in many configurations.

Disentangling all this can be a real challenge, particularly on BIOS-based computers (which yours seems to be, judging by your partition summary, although I'm not 100% positive of that). Some experienced multi-booters set aside a boot manager that's outside of any one OS's control to boot each OS's dedicated boot loader, but I don't know of any modern references for how to do this on BIOS-based systems. Such a configuration separates the functions of a boot manager and a boot loader, which opens possibilities for using more specialized programs and can simplify the configuration task.

Note also that if you boot Distribution B from Distribution A's boot loader, you won't be able to boot new kernels for Distribution B until you update the GRUB configuration in Distribution A. (This is one of the reasons for installing a tool that functions purely as a boot manager, to select between the boot loaders for each distribution; each distribution can then update its own boot loader configuration itself and you won't need to update things manually.)

As to uninstalling an OS, the main worry comes when you uninstall whatever OS controls the first boot manager. If that boot manager is GRUB 2, then uninstalling the controlling OS's root (/) or /boot partition will erase the GRUB configuration file, which will render GRUB next to useless. At that point, you'll need to use an emergency disk to (re-)install the GRUB for another distribution to take over as the primary boot manager.

EDIT:

GRUB 2 configuration is a nightmare. At run (boot) time, GRUB reads a configuration file that's typically located at /boot/grub/grub.cfg, relative to the hosting OS's filesystem. This file is typically built by scripts that run when GRUB is first installed, when you install a new kernel, or manually. (grub-mkconfig -o /boot/grub/grub.cfg is the generic command; but in Ubuntu, update-grub does the trick, too.) The scripts, in turn, rely on multiple configuration files, one of which is the /etc/default/grub file you've referenced. Note that this file does not tell you what OS(es) GRUB will present at boot time; that detail varies from one system to another. What this file does enable you to adjust are certain global defaults, like the timeout value. Note that editing these defaults will not have an immediate effect; your changes will only take effect after you run the script to re-write the grub.cfg file (or after the system does this itself -- say, after a kernel update).

GRUB's configuration scripts also rely on a bunch of files in /etc/grub.d to help it identify specific OSes and tools. Typically, you don't edit these yourself; however, there is one, called 40_custom IIRC, that you can edit to provide custom entries if the default OS/kernel detection scripts don't work adequately. Just as with changes to /etc/default/grub, any change you make to these files will not take effect unless and until you regenerate /boot/grub/grub.cfg. If you want to remove quiet splash from the options generated by OpenSUSE's scripts for Ubuntu, you'd probably need to edit one of the files in /etc/grub.d/, but I'm afraid I don't know exactly where you'd look. Alternatively, you could hand-edit /boot/grub/grub.cfg, but any changes you make there will be overwritten whenever you build a new grub.cfg file, either deliberately or because the host OS has installed a new kernel.

As described earlier, another approach is to set things up so that the master boot manager doesn't directly launch Ubuntu's kernels, but instead chainloads to Ubuntu's GRUB, which then manages its own GRUB configuration.

Note that all three of your distributions have their own GRUB configuration files -- both /boot/grub/grub.cfg and all the supporting files; however, only one GRUB controls the boot process. The others, as noted earlier, are either 100% irrelevant or are called only if the first GRUB is configured to chainload to the secondary GRUBs.

FWIW, GRUB Customizer is a GUI tool to help edit the various GRUB configuration files. That link, though, is to a Launchpad PPA for Ubuntu. I don't know if GRUB Customizer is even available for OpenSUSE. If not, and if you want to use GRUB Customizer, you should reconfigure your system so that Ubuntu's GRUB is the primary one, relegating OpenSUSE's GRUB to secondary status. If you can find GRUB Customizer built for OpenSUSE (or build it yourself or maybe convert an Ubuntu Debian package to RPM form), you could run it in OpenSUSE to adjust the current configuration. Given the delicacy of GRUB configuration, though, I wouldn't recommend straying from a well-tested build for the host distribution.


E: The repository 'https://download.01.org/gfx/ubuntu/17.04/main zesty Release' does no longer have a Release file

The server at https://download.01.org/gfx/ubuntu/17.04/main is down. Try again later.

If you like, you can temporarily comment out this line like so...

cd /etc/apt
grep download.01.org sources.list

If it DOES find download.01.org there, then...

sudo pico /etc/apt/sources.list
sudo apt-get update

and comment out the line that contains download.01.org with a # at the beginning of that line.

If it DOES NOT find download.01.org, then...

cd /etc/apt/sources.list.d
grep download.01.org *.list
#note the filename that it finds
sudo pico /etc/apt/sources.list.d/{enter filename here}
sudo apt-get update

and comment out the line that contains download.01.org with a # at the beginning of that line.


AFAIK WebM container being an alternative to commercial Formats such as h264 or MPEG4, AFAIK may not be used with the later format (see the warning in your screenshot).


First things first: backup, backup, backup!

Back up all of your important data to an external HDD. You could also dd the entire contents of your internal HDD to an external one if you want a complete 1:1 image of the HDD.

Warning! I take no responsibility if this fails and you lose your data because you failed to back it up!

Before you begin, run this command to find out your username:

whoami

Write the output down! (Also write down your password)

Now for reinstalling:

Download the Ubuntu 18.04 LTS ISO
Burn the ISO to a DVD, or use the included Startup Disk Creator program to make a live USB drive.
Boot the install media you created in step #2
Choose to install Ubuntu
On the "installation type" screen, choose Something Else
Select Ubuntu system partition, and set its mount point as /. Be sure to keep the same format type, the same size, and untick the "Format" checkbox (else all data on "/" will be deleted!)
When you are asked to create your username and password, USE THE ONES YOU WROTE DOWN EARLIER!!! (Else loose your data)
After the installation finishes, follow the prompts to shutdown, and remove the installation media when it tells you to.
Reboot and cross your fingers.


How can I install ubuntu touch on HTC Desire 300 ?

For the moment Ubuntu only released development version on Galaxy Nexus and Nexus 4. http://www.ubuntu.com/phone/install

There is some tutorial on how to install Ubuntu phone OS on some specific mobile phone but I don't know any tutorial for HTC Desire 300.


sudo su fails with 'Unable to change to sudoers gid :operation not permitted.' fault

The command you're looking for is sudo -s.  You can also accomplish the same thing with sudo bash

su and sudo su doesn't work on Ubuntu for security reasons.  It fails because the root user does not have a password, and those operations are you attempting to "log in" as user root


As you have identified - the best solution is usually to follow this Q&A to install flash.  It does work for the vast majority of users.

Flash-Aid was discontinued by it's author and is unknown if it will be back, the following are kept only for historical reasons.

As an alternative, one of the best tools I have found that allows you to configure Flash correctly during installation is the Flash-Aid addon - use the author's site or search on the Firefox addon-manager for Flash-Aid

This will remove any remnants of of Flash installation and install flash directly from the Adobe Website.  During the wizard installation you have a few configuration options that you can try to resolve flash-player issues.

Close & Restart Firefox / reboot for the change to take effect.

See also:

Why are Flash applications so sluggish/crashy?


how to get packages from ubuntu ultimate edition ISO?

Run it on live mode and check /var/cache/apt directory.


Same configuration here and same error got.

My workaround was booting from the HDD instead of the SSD.
In my case, I can select the booting device on every computer start-up pressing F11 (so, I just select the HDD when I want to boot Windows).
Otherwise, you might change the boot order on the BIOS setup depending on which system you want to boot up.


Trying to install Ubuntu 12.04, log to a black screen

Go back into Ubuntu Recovery Mode. Look for an option "Drop to root shell prompt"  and do that.  By default it read only so we need to fix that

 mount -o remount,rw /

Now that we're mounted rw and in a root shell add ppa:xorg-edgers/ppa (assuming your card is in there - Source just scroll till you get to Nvidia drivers. If you find card, add ppa)

 sudo add-apt-repository ppa:xorg-edgers/ppa

And then

 sudo apt-get update

finally

 sudo apt-get install nvidia-verson#

Then restart

Also you can remove if needed by using

 sudo apt-get remove nvidia-version#

Ubuntu 12.04 does not support UEFI

My bad, it does

Edit 2

Because also get black screen in recovery, as suggested in comments - if you can get a livecd to boot using try ubuntu (think you said it worked after you disable UEFI) you can then mount your root partition and then add the ppa


Is it Possible to Start x-tile in Minimized Mode under Xubuntu 16.04?

It is possible by setting the righ option under Bearbeiten>Voreinstellungen (in the German version) such that it looks like this:

Probably the caption reads Start minimized in the systm tray in English.

Bingo


This question is a bit old but I thought I might share what solved this problem for me. I had this same issue after following the 12.04 server guide.

Everything has worked well since I changed my /etc/fstab entry options to include nfsvers=3 per comment #6 in this bug report. My current fstab entry (working on three clients) is as below.

192.168.1.0:/backup /home nfs nfsvers=3,hard,intr,auto 0 0


How to disable One[Single]  key shortcuts in Ubuntu 12.04

Download and Install compizconfig-settings-manager .

  Warning: Compiz config settings manager is an advanced tool and improper use may break your unity interface. It is always a good idea to write down all the changes you make, so that in case something evil happens, it is easy to revert.

Launch the program and in the Desktop section you will find "Ubuntu Unity Plugin". From here you can edit the unity shortcuts under the Behavior/Switcher tabs.


find a file with "find" and show the size of the file

find has a -ls option. So your command should look like this:

find -name '*.conf' -ls


I had the same problem as you, and it appears that evince doesn't have a collapse all option. So i found an alternative how to achieve this result. Just open the pdf file in Google Chrome (maybe it works in Chromium too, or Firefox, I didn't checked). When Chrome will open your file in top right corner will be a Bookmarks button (an icon of a flag) and the menu will be entirely collapsed. Hope it'll help you or other folks that have this problem.


Since last update I have annoying problem with scrolling on touchpad 16.04

I think I had the same issue, this helped me:

id=$(xinput --list --id-only 'SynPS/2 Synaptics TouchPad')
xinput --set-prop $id 'Synaptics Edge Scrolling' 0 0 1


Is it possible to modify Ubuntu source code to change system language to new language?

You may find that you just need to install the tibetan language files such as language-pack-bo and language-pack-gnome-bo as for other programs on the system it will depend what system they are using for translation in which case you would likely be better off contacting the upstream project most are more than happy to accept the help of volunteer translators and would be happy to point you in the right direction.

Once installed you should find the gettext files for the above in /usr/share/locale and /usr/share/locale-langpack look for ones with bo in them that's the ISO code for Tibetan if you do make any improvements consider getting in touch with the package maintainer to get them included.


It happened to me too.
use gdm to replace lightdm

go to a text terminal using alt-ctrl-F1
Stop LightDM with sudo stop lightdm
Start GDM with sudo start gdm
Run sudo dpkg-reconfigure lightdm to set the default display manager for gdm
Edit /etc/X11/default-display-manager and set it to /usr/sbin/gdm if you can't run the above
Restart your computer and login.


How can I restart my Wi-Fi connection from the command-line?

nmcli is very useful command-line utility for interacting with Network Manager. Use this command in Ubuntu 16.04 LTS

nmcli radio wifi off && sleep 5 && nmcli radio wifi on

For versions prior to 15.10 ( i.e. before transition to systemd ) the command would be slightly different:

nmcli nm wifi off && sleep 5 && nmcli nm wifi on

Good thing about it - this doesn't require root powers.

Restarting network manager itself is a good idea as well.

For 16.04 LTS:

sudo systemctl restart NetworkManager

and for 14.04 LTS:

sudo service network-manager restart

And if we really wanted to, we could even automate it with a script that will restart your wifi.

#!/bin/bash
# replace wlan0 with your device name
# as given by ip addr or ifconfig
while true
do
    # keep checking if we have ip address
    wifi_info=$(ip -4 -o addr  show wlan0 )
    while [ -n "$wifi_info" ];
    do
       wifi_info=$(ip -4 -o addr  show wlan0 )
       sleep 0.25
    done

    # We get here only if IP address is lost
    # which means we're off-line
    # restart wifi
    nmcli radio wifi off && sleep 5 && nmcli radio wifi on
done


Can't configure Ubuntu 14.04.3 to generate a warning when battery is low

Try to reinstall libnotify-bin notify-osd, using:

sudo apt-get --reinstall install libnotify-bin notify-osd.

This worked for me.


Who is responsible for pidgin-plugin-pack in Ubuntu repositories?

Ubuntu itself is responsible for that.However you can still add the pidgin PPA to software center from the Pidgin Website.Nothing to worry about really :) .


Rsync between 2 servers with different OS versions

You can rsync data between those two servers. They do not have to be the same exact operating system.

In fact the important thing is the version of rsync you are using, you could use rsync also between different *nix systems such as OSX and Ubuntu


How do you use Opera's built-in IRC client?

The spanish tutorial at http://my.opera.com/espanol/forums/topic.dml?id=90175 reads:

  3º. Escribimos un nombre cualquiera y
  una dirección de correo cualquiera (no
  es obligado ni recomendable rellenar
  los campos con datos reales).
  Pinchamos en "Siguiente".

Translated here for you:

  3°, Write any name and any email
  address (not forced nor recommended to
  use real data in these fields). Click
  next.

It seems that you should provide at least any data over here, and remember that the usernames on irc are at least 3 characters in length, and email addresses should be in email style format, like: you@mail.com

Anyway, there are several ways to get into IRC channels, opera channels are majorly in Freenode, which can be reached by almost any IRC capable client, like Pidgin, xChat, irssi, etc.

Good luck.


What I have understand from your post is you want to set XMBS as Default login session.

open your terminal with CTRL+ALT+T and type as

sudo /usr/lib/lightdm/lightdm-set-defaults -s XBMC -a <user_name of your>


Lubunutu Does Not Know Where or How to Install Grub

xangua  solved the problem by pointing me to boot-repair.   This is a bug.  the bug log suggests that people are trying to close it but it still appears to be causing problems.  Boot-repair fixed Grub and I was in business even though the installation never reported concluding on account of crashing.   Thank you, Xangua


I cannot range numbers or use this {} in gedit

Change
#!/bin/bash

for I in {1..5) do echo $I done

to
#!/bin/bash

for I in {1..5}; do echo $I; done

or
#!/bin/bash
for I in {1..5}
  do
    echo $I
  done

Placing either of the above in a new file, giving it execution permissions and executing it with the command $ bash *filename* output:
1
2
3
4
5

I'm not sure why it's printing {1..5} for you because the code you posted gives me a syntax error, but fixing the typo and adding the semicolons made it execute correctly on my installation.
The only way I was able to make it output {1..5} was by modifying the code to encapsulate the arguments in quotations so it would be interpreted as a string as so:
#!/bin/bash
for I in "{1..5}"
  do
    echo $I
  done

If you could provide the exact contents of your file, I could attempt to help you further.
Alternatively, if you're executing via sh *filename* you're essentially executing dash *filename* which I don't believe supports that notation.


The tilde (~) has a special meaning in bash, is an expansion of bash and takes the value of $HOME environment variable. Read Tilde Expansion section from GNU Bash Reference Manual to understant how it wors. So, I think that what you want to accomplish is something similar to:

myuser@ubuntu:~$ pushd -n "/home/myuser/Applications/Custom/Java"
~ ~/Applications/Custom/Java
myuser@ubuntu:~$ cd ~1
myuser@ubuntu:~/Applications/Custom/Java$

Read man pushd for more info.

Next, to go directly inside of /home/myuser/Applications/Custom/Java everytime when you will run cd ~1 command in your terminal just add the following line to the  end of your ~/.bashrc file:

pushd -n "/home/myuser/Applications/Custom/Java" >/dev/null

Reload your ~/.bashrc file with source ~/.bashrc and then use cd ~1 everytime when you want to change the current working directory to /home/myuser/Applications/Custom/Java.


If it may be useful:

To have the developer versions of Qt4 and Qt5 at the same time, and to develop using one or the other:

First I downloaded the Qt 5.4.1 offline installer from http://www.qt.io/download-open-source/, I executed it and it was installed in its default folder (in $HOME/Qt5.4.1).

To achieve that the system used that Qt 5 version as the default to develop with Qt (and so that it could find the correct qmake, etc.), I executed:

newQtchooserFolder="$HOME/.config/qtchooser"
mkdir -p "$newQtchooserFolder"
newQt5Configuration="$newQtchooserFolder/5.conf"
echo "$HOME/Qt5.4.1/5.4/gcc_64/bin" > "$newQt5Configuration"
echo "$HOME/Qt5.4.1/5.4/gcc_64/lib" >> "$newQt5Configuration"
sudo ln -sfv "$newQt5Configuration" /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf

And if Qt 4 was needed to develop:

a) Temporarily: qmake -qt4 (or qmake -qt=4) could be executed instead of just qmake; or export QT_SELECT=4 could be executed and then qmake.

b) Permanently: The link /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf could point to another .conf file like /usr/share/qtchooser/qt4-x86_64-linux-gnu.conf.

There's more information about those steps in man qtchooser and in http://www.linuxfromscratch.org/blfs/view/7.4/general/qtchooser.html.


No...

There is a good twiki ;) which describes how this can be done. You ought to check that out

http://twiki.org/cgi-bin/view/Codev/TWikiOnUbuntu


Booting with nomodeset  then installing Nvidia drivers solves the problem


How can I install software wihout the Ubuntu Software Center?

Try using the terminal and type sudo apt-get install gnome-dictionary.

Most probably the software center isn't the problem but apt is. Therefore, the formerly mentioned command should fail and tell you why through an error message.

On a side note: people's answers tend to be much more helpful when you provide more information about your problem. In your case, "is not working" is way to general. Please explain further what happens. Are you seeing error messages? If so, what do they say? Can you install other software or is only installing gnome-dictionary the problem?


Ubuntu Touch - Installing from the Store with Ubuntu-One-Account

Ubuntu One file service is gone, but you can still create an account here.


All Windows files accessible from Kubuntu except for those in OneDrive folder

This is because, in Windows, you have OneDrive configured to use files on-demand.
To replicate the same under Linux, to access your files under Linux, you need to utilise the following application: https://github.com/jstaf/onedriver
No other solution is possible, without you first disabling files on-demand under Windows.


Wireless problems with Inspiron 1545 in version 12.04

Plug in the ethernet cable

run these commands in terminal

sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source
sudo apt-get install b43-fwcutter firmware-b43-installer

Then unplug ethernet and reboot


pycurl gives error while installing wfuzz on ubuntu 19.10

you are missing a C compiler .

so you need to install build-essential


How can I view the contents of an .ipk on Ubuntu 16.04?

dpkg -c <ipk_file>

or

dpkg-deb -c <ipk_file>

will help you list the contents of ipk archive.


Your answer is simply how apt-get autoremove works.

autoremove simply removes every package that was installed as a dependecy, and is no longer required, e.g. the package that depended on it was removed.

It's nothing to worry about, if you encounter any dependecy problems, run this:

 sudo apt-get install -f

and you'll probably be OK.


Screen flickers during 3D gameplay on 15.10

Possibly this known bug.

In compiz config, try unchecking unredirect fullscreen windows and see if it makes any difference. This can be done by opening CompizConfig Settings Manager and clicking on Composite and then the appropriate toggle. Also, go back and select OpenGL and make sure Sync to VBlank is enabled.

If that doesn't help, make sure page flipping is enabled: open nvidia-settings > OpenGL Settings, and enable "allow flipping".

Does increasing GPU performance reduce the flickering? In nvidia-settings under PowerMizer, set Preferred Mode to maximum.


Somebody trying to access my index.php file on ubuntu apache2 server (Laravel)

finally, I got a solution. I have added following config in my virtual host
<Directory /var/www/example.com/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    deny from all
    allow from ***.***.***.***  ----> your ip here
    Require all granted
</Directory>


I was unable to find an VLC option for this, however:
Media Library
You can add directories to your media library.
Select the library in the VLC interface ,
then right click in the empty space -> select add folder -> select your Videos/Music folders.
Symlinks
You could try to set symlinks* to the directory where VLC is looking for them, i.e.
ln -s /home/gratis/Videos /home/gratis/snap/vlc/158/Videos

(*)I'm unable to test this at the moment


Stuck at BusyBox error after trying to fix other errors

I know the guidelines don't like me doing this, but I can't comment:

Have you tried holding down one of the common BIOS keys during boot?


in file pynest2d/cmake/FindNLopt.cmake
in the call find_path(NLopt_INCLUDE_DIRS ..) you may need to modify the file name fromm nlopt.hpp to nlopt.h


Scripts are scripts whether they be python, bash or ruby. Just make sure they are executable.

They are the same as steps listed here.


install for acer r3 131t Boot repair did not work

I was able to fix this problem.
I am not sure 100% the exact cause because I ran boot repair advanced options but that never worked until I did things below:

I read a little bit of the boot repair link I posted and the first comment response helped something clicked after fooling with the bios.
By lucky guess I saw the enable trusted uefi and clicked on it.  Through several clicks..I got to the Ubuntu boot file.  There were several (other than efi backups) probably from many boot repairs.  I selected all of them.  That was cool but it still did not get grub to load.
However I got the grub to boot by the f12 choose boot.  3 choices showed up on the menu this time instead of just Windows.  The third one labeled "1 Yes" worked.
Then I went back to the f2 for general bios and saw "EFI File Boot 1:  Yes" and another with "0" instead of "1" at the bottom of the boot order.  These were familiar new options which I now could see for the f12.
(Before enabling trusted efi, these options were not there)
I may have disabled tpm state too (whatever that is).  It is disabled now and may have been enabled before.  That might also be a cause.

As far as I know through trial and error:
0yes means boot the operating system on mmblk0  (Windows)
1yes means the other disk on mmcblk1 (Ubuntu).
But it could just be the number of boot filled I created with boot repair.  However the "0" file does not boot grub.

Moving "EFI File Boot 1: Yes" to the top of the boot order makes grub boot automatically.  So my work has just begun.  Thanks for helping.

So now I have Ubuntu 15.10 fully installed on my sd (no casper stuff).  It is much better than a live USB.  I just cannot use my SD slot which is no problem.
Ubuntu idles on ½ gb of my 2gb of memory.

In retrospect due to what I write above,  I am not 100% sure grub is on mmblk0p1 (efi) as I said before.
When Grub first did not work, I installed again choosing "something else" and maybe missed the boot install option (though I doubt it and I did a "something else" installation twice to make sure.


Just a Workaround

Disable the Shortcut key for Print
make the Shortcut Print for 'Copy a screenshot to clipboard'
make the Shortcut Ctrl+Print for 'Save a screenshot to Pictures'


Ubuntu budgie 20.04 freezes for a few seconds on boot, then works normally

I have reinstalled Ubuntu budgie on an new internal ssd that I bought, works flawlessly now, no freezing whatsoever. I can assume that the external ssd I was using was to blame, or possibly just a corrupt installation of Ubuntu.


How to tell Dash to look in specific folders for Videos and Music

As far as I know, it searches ~/Music and ~/Video for those lenses.

The easist and most obvious solution is softlinking those folders to the second hard-drive.

The more complicated solution involves custom lenses.


How is entropy gathered for /dev/random in Precise

This is complicated question. I will answer by quoting from few sources.

From Linux manpage

  The character special files /dev/random and /dev/urandom (present
  since Linux 1.3.30) provide an interface to the kernel's random number
  generator. File /dev/random has major device number 1 and minor device
  number 8. File /dev/urandom has major device number 1 and minor device
  number 9.

  The random number generator gathers environmental noise from device
  drivers and other sources into an entropy pool. The generator also
  keeps an estimate of the number of bits of noise in the entropy pool.
  From this entropy pool random numbers are created.

In Ubuntu 12.04 default kernel is 3.11.

From wiki

  The Linux kernel generates entropy from keyboard timings, mouse
  movements, and IDE timings and makes the random character data
  available to other operating system processes through the special
  files /dev/random and /dev/urandom. This capability was introduced in
  Linux version 1.3.30.

From Linux manpage

  When read, the /dev/random device will only return random bytes within
  the estimated number of bits of noise in the entropy pool. /dev/random
  should be suitable for uses that need very high quality randomness
  such as one-time pad or key generation. When the entropy pool is
  empty, reads from /dev/random will block until additional
  environmental noise is gathered.

Quote from random sources, from kernel 3.11.10.10

 * Theory of operation
 * ===================
 *
 * Computers are very predictable devices.  Hence it is extremely hard
 * to produce truly random numbers on a computer --- as opposed to
 * pseudo-random numbers, which can easily generated by using a
 * algorithm.  Unfortunately, it is very easy for attackers to guess
 * the sequence of pseudo-random number generators, and for some
 * applications this is not acceptable.  So instead, we must try to
 * gather "environmental noise" from the computer's environment, which
 * must be hard for outside attackers to observe, and use that to
 * generate random numbers.  In a Unix environment, this is best done
 * from inside the kernel.
 *
 * Sources of randomness from the environment include inter-keyboard
 * timings, inter-interrupt timings from some interrupts, and other
 * events which are both (a) non-deterministic and (b) hard for an
 * outside observer to measure.  Randomness from these sources are
 * added to an "entropy pool", which is mixed using a CRC-like function.
 * This is not cryptographically strong, but it is adequate assuming
 * the randomness is not chosen maliciously, and it is fast enough that
 * the overhead of doing it on every interrupt is very reasonable.
 * As random bytes are mixed into the entropy pool, the routines keep
 * an *estimate* of how many bits of randomness have been stored into
 * the random number generator's internal state.

Yes it is smart enough to use user based sources, but you can configure more if you want.

There are kernels with random generators that have more entropy sources such including noise on audio inputs and others like video, coolers censors, etc. Look here if interesting in audio entropy. I hope you will find others kernels by yourself.

But /dev/random should be enough for most tasks by default.

Also read this question on stackoverflow


As it turns out, I only needed to apply the one patch. It is certainly possible to apply more than 1 path but this may cause compatibility issues.


Cannot get Nvidia GPU running on my HP laptop (dual graphics)

You could look into using nvidia prime with an indicator instead of bumblebee, as it is out dated.

You should install nvidia prime, remove bumblebee first

sudo apt-get purge bumblebee* nvidia*
sudo apt-get install nvidia-352

If needed, you could use this to get latest nvidia drivers.

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358

I don't have a optimus laptop anymore, but I remember prime because quite good and its supported by nvidia, so it works just fine.

Here is some info on prime


Try Mixxx

As Banshee doesn’t have this capability

Mixxx is a lightweight DJ tool that allows for the playback and mixing of digital music (MP3, Ogg Vorbis, FLAC and Wave). It runs on the Linux, Mac OS X and Windows operating systems.

Mixxx has the ability to provide comprehensive support for any MIDI controller due to its scripting engine, and it ships with mappings for a number of popular controllers, a complete list of which can be found on the Hardware Compatibility page.

To Install

Run these commands in a terminal:

sudo add-apt-repository ppa:mixxx/mixxx
sudo apt-get update
sudo apt-get install mixxx libportaudio2


How to recover files from failed upgrade?

Running from a live DVD, your normal system partitions and directories are displaced to make way for the live boot and user.

On the Xubuntu 13.04 Live DVD that I had handy, your normal disks show as icons along the left edge of the Live screen. You can mount the disk containing your dead (not "live," you know) user's home directory from the icon's contextual menu and find that user somewhere under /media. Obviously your live disc doesn't have that convenience.

From the command line, locate the correct partition perhaps using sudo fdisk -l or lsblk /dev/sda, then mount it. In my case the Live DVD identifies as /dev/sdb, my normal system disk as /dev/sda, and there I have a separate /home partition at /dev/sda6, so

mount /dev/sda6 /mnt/

makes my dead user's home directory available from live DVD at /mnt/<user>.


How to remove configuration files completely

apt-get purge only removes system-level configuration files (e.g. those created by debconf). It doesn't touch anything in your home folder -- you have to remove those manually. That makes sense if you think about it: there might be multiple users, who probably wouldn't want administrators deleting data out of their home folders!
Applications usually store configuration data in one of the following hidden folders, which you can delete if you're sure you have no use for the data:

~/.application
~/.config/application
~/.cache/application
~/.local/share/application

Replacing application with the name of the app or package. Most applications don't store user files in those folders, and if you accidentally delete something out of your home folder that the system needs, it usually just gets re-created. Of course, it doesn't hurt to look inside before you delete them, just to make sure there's nothing you want in there.
For gnome 2 apps you might also want to run:
gconftool-2 --recursive-unset /apps/application

(again replacing application with the app name) which will get rid of your application preferences.
Update 12-14-2012
For gnome 3 apps, the gconftool-2 command above is replaced by:
gsettings reset-recursively [schema]

You can find the schema for the application with
gsettings list-schemas | grep application


What is the command line equivalent for the update manager (Software Updater)?

As Flimm commented, the answer really is sudo apt-get dist-upgrade (after running sudo apt-get update, which GUI package management tools automatically do the equivalent of). That is at least the closest thing to running the Software Updater (called Update Manager in older releases).

Running apt-get upgrade will upgrade packages that can be upgraded:

without installing any packages that aren't already installed in some version, and
without removing any packages.

The Update Manager is capable of doing both these things, so apt-get dist-upgrade is quite close to it.

Running sudo apt-get dist-upgrade will not, by itself, upgrade your Ubuntu system to a newer release. In fact, unlike in Debian, apt-get dist-upgrade is not a supported way to upgrade to a new release. In Debian (and in Ubuntu, though it may sometimes fail and is unsupported), changing all the repositories listed in /etc/apt/sources.list to the repositories for the next release and running sudo apt-get dist-upgrade will attempt to upgrade to the next release.

Because apt-get dist-upgrade can remove package (and install new packages you might not want), it's always best to look through the description of what it intends to do before pressing y.

So while running sudo apt-get -y upgrade is usually reasonable, the -y flag should rarely be used with dist-upgrade.

The reason you don't get new kernel versions with sudo apt-get upgrade is because they each are provided by separate, differently named packages. (The kernel version is part off the name.) This is to facilitate keeping an old kernel installed alongside a newer kernel (and being able to select between them in the GRUB menu).

The automatic offering of new kernel packages for installation is accomplished by having a metapackage (like linux-image-generic) installed. When a new kernel comes out for your Ubuntu release, your kernel metapackage is upgraded and the upgraded version fo that metapackage lists the new kernel as a dependency (without preventing the old kernel from continuing to be installed).

If you don't want to use sudo apt-get dist-upgrade, then you can always manually upgrade the individual packages that are listed as held back when you ran sudo apt-get upgrade. To do this, "install" them: sudo apt-get install packagename.


How to investigate display lockup after Alt-Tab switching?

This is a bug, so I'm assuming you're asking how to collect the necessary information to report it. (Otherwise, this question is probably off-topic; see the FAQ and this meta question.)

Consult the Bug Reporting Documentation First

You said:

  I'm running the Project Neon ppa and when I login with the user asscocatied w/ that i don't seem to have any lockups.

I'm assuming that means when you log in to a KDE desktop, the problem does not occur, but that it does occur when you log into a dekstop not provided by packages from the Project Neon PPA.

However, if this is happening in a GUI provided by Project Neon, please make sure you've read this carefully and are following its guidelines when reporting the bug.

Whether or not this is a bug in Project Neon software, I highly recommend reading this all the way through before reporting bugs in Ubuntu. For Kubuntu, I recommend still reading that, but also this (and take a look at this portal page). This question is also a useful resource. And here's some good general bug reporting advice.

If you've already read all that and understand how to report bugs, you can skip ahead...

Figure Out What Package Is Probably Affected

If you report the bug against the wrong package, provided that the report is otherwise good and has all the necessary information, this usually can be figured out by a triager or developer, and the bug report can be pretty easily retargeted to another package.

However, since much of the important technical information in an Ubuntu bug report is often provided by running Apport, and Apport figures out what to send based on what package the bug is being reported against, it's good to make an initial effort to select the right one, especially for video, sound, driver, or kernel problems, where Apport can often submit a lot of highly valuable information.

The screen freeze is probably due either to, or at least closely related to, the X server or the window manager.

The X Server

At the login screen you can select between different interfaces. All of them use the same X server, but some use different window managers.

If you're experiencing this with all options, then this bug probably relates to the X server, and it can be reported against xserver-xorg by running ubuntu-bug xserver-xorg. But it's better to run ubuntu-bug with the PID of the running Xorg process that may be malfunctioning. ubuntu-bug $(pidof Xorg) should do this.

(See below for an explanation of how to run ubuntu-bug when your screen is frozen.)

The Window Manager

However, it sounds from what you said that this is not the case--that at least one option (logging in with a desktop provided by Project Neon) works.

Kubuntu's window manager is kwin, provided by the kde-window-manager package. To report a bug against it, you can run ubuntu-bug kde-window-manager, but it's better to run ubuntu-bug with the PID of the running kwin process that may be malfunctioning. ubuntu-bug $(pidof kwin) should do this.

If the problem is specific to a 3D Unity session, the window manager running when it occurs is compiz.

ubuntu-bug compiz is okay. ubuntu-bug $(pidof compiz) is better

On the other hand if it just happens in Unity 2D (and a GNOME Classic/Fallback session), the window manager is metacity:

ubuntu-bug metacity is okay. ubuntu-bug $(pidof metacity) is better.

If it happens in a GNOME 3 desktop running GNOME Shell (not Unity), the window manager is mutter.

ubuntu-bug mutter is okay. ubuntu-bug $(pidof mutter) is better.

If it happens in an Xubuntu desktop, the window manager is xfwm4.

ubuntu-bug xfwm4 is okay. ubuntu-bug $(pidof xfwm4) is better.

If it happens in an LXDE desktop, the window manager is openbox.

ubuntu-bug openbox is okay. ubuntu-bug $(pidof openbox) is better.

User-Specificity

If you have one user account that boots to one UI by default, and another user account that boots to another UI by default, and the bug happens in one but not the other, then (since this is a UI bug) the UI difference is probably what's important.

But you sure make sure, since sometimes a specific user's configuration manages to trigger a bug. You should verify that it happens with a user account logged in with one UI, and with the same user account logged in to a different UI.

You should also see if usage patterns are what trigger the bug. For example, see if the number of windows you're Alt+Tabing through is relevant to whether or not the bug occurs. (If it occurs with only one window, that's particularly interesting.) This sort of information should be included in your bug report.

Other Packages

It's possible the bug is in some package other than the X Server or the window manager.

It could be higher level (that is, most of the problem might be happening in an process that runs on top of the GUI, which is only triggering another bug in the window manager or X server).
Or it could be lower level. Probably not a bug in the kernel itself (your system still works fine, you can SSH in). But it could be a video driver problem.

In any case, reporting the bug against either the window manager or the X Server, depending on which appears more likely, will usually cause Apport to upload enough of the right information that if the bug is in something else, that can be figured out.

Reporting The Bug, While The Bug Makes Itself Hard To Report

You've found you can SSH in. So it seems likely that you can access a virtual console with Ctrl+Alt+F1, Ctrl+Alt+F2, and so forth, up to F6.

(To switch back to the GUI, use Alt+F7.)

If that works, you can report the bug from the virtual console while the GUI is still running and malfunctioning. ubuntu-bug, when run in a virtual console, should detect there is no GUI and run in text mode instead. Or if you prefer to use the apport-cli command instead, that works too.

SSHing in to report it is probably easier though, as then you can copy the Launchpad URL provided by ubuntu-bug/apport-cli and paste it into a graphical web browser on the SSH client.

Alternatively you might consider using ssh -X to connect. Then you can run GUI programs on the malfunctioning machine (that you're SSHed into), and make their interfaces (their windows) appear on the SSH client. You could then run ubuntu-bug graphically and report the bug from a graphical web browser that runs on the malfunctioning machine that is the SSH server but displays on the properly functioning machine that is the SSH client.

More Ways to Find the Affect Process's PID

Depending on the nature of the bug, it might be particularly helpful to run ubuntu-bug (or apport-cli) with the PID of the buggy process, rather than just with the name of the package. This will automatically include information about the running state of the process, in the files uploaded to Launchpad by Apport.

So if ubuntu-bug $(pidof processname) doesn't work or doesn't get the right process, you can also:

Run pidof manually and see what you get. If you get nothing, it means no process by that name is running.
Run pgrep, which shows PID's of all processes matching the argument as a regular expression (rather than whose names are equal to the argument, as pidof does).
Use the tried-and-true, classic technique (ps, piped to grep):

ps ax | grep -v grep | grep processname

That provides more detailed information--it gives a listing of the name, PID, and states of any matching processes.

Files to Make Sure Are Attached

Make sure /var/log/Xorg.0.log and (if it exists) /var/log/Xorg.0.log.old are attached.

Similarly, make sure ~/.xsession-errors and (if it exists) ~/.xsession-errors.old are attached. (~ represents your home folder.) Dotfiles are not shown in Nautilus by default, so if you want to see them in a graphical file browser window, do Ctrl+H (or View > Show Hidden Files).

When you report a bug on Launchpad, Apport will have automatically sent a number of files, which will have been attached. You can also attach one more file. To attach different files, submit the bug report first--then you can attach them.


The other requirements needed to enable AES256 were found here:

How can I make Deja Dup use AES 256 as the encryption algorithm?


here's a bug report you can follow and hope it gets fixed: https://bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/1070290


how to install packages with apt-get on a system connected via proxy?

This method worked for me.....just have a try...

check the file /etc/apt/apt.conf

The contents were,

Acquire::http::proxy "http://<proxy>:<port>/";
Acquire::ftp::proxy "ftp://<proxy>:<port>/";
Acquire::https::proxy "https://<proxy>:<port>/";

This was the reason why you could reach proxy but couldn't get past it, since there is no username password information. So just put that info into it..

Acquire::http::proxy "http://<username>:<password>@<proxy>:<port>/";
Acquire::ftp::proxy "ftp://<username>:<password>@<proxy>:<port>/";
Acquire::https::proxy "https://<username>:<password>@<proxy>:<port>/";

save the file and you are done...

BROTIP: More better add these lines in another file, /etc/apt/apt.conf.d/80proxy. This will ensure that after a version upgrade changes won't be lost.


/dev/sda is the first harddrive that ubuntu sees. ubundu, and by extension linux, sees hardisks as devices and name them sda, sdb and so on. sda1, sda2 are partitions within sda. sort of like now you can partition a hard disk into multiple disks in windows. (a 500GB disk into a C drive and D drive, for example.)

What this screen shows is that you have a 500GB harddisk, and it seems to be entire taken up by windows. also that you have a smaller 8GB disk that is named /dev/sdb. I am not sure what that is being used for.

I would recommend not touching /dev/sda at all. this is your windows stuff and whatever changes you make here will probably break windows.

You should google how to setup a dual boot windows ubuntu machine. I have never actually had to do that myself so I never really investigated that option.


Permission Denied Error when trying to reload ~/.bash_profile


Will dual booting Ubuntu alongside Windows affect Windows recovery or overall processing speed?

No, it will not. Auto recovery is a Windows thing and does not get affected by Ubuntu.

Ubuntu and Windows are 2 separate entities that can fully use all of the resources available in a dual boot. The only perfomance hit you will see is a 1 or 2 seconds delay during boot since you will have grub installed and the option to choose to start either Ubuntu or Windows.

Only when you install 1 (guest) of the 2 into the other OS (host) with VM Ware or Vitualbox will the guest OS suffer a performance penalty since the host will take away some performance.


How can I safely remove snap without breaking apparmor

The AppArmor profile is located in /etc/apparmor.d/usr.lib.snapd.snap-confine.real file, which came from snapd package.

So you should use apt purge instead apt remove (see man apt for details):

sudo apt purge snapd

Small note: for me the snippet below looks better -

snap remove $(snap list | awk '{print $1}' | egrep -v "Name|core")


Xorg stuck at 100% CPU after updates, can't use mouse or keyboard 16.10

If

 dpkg -l '*xserver-xorg-video-*' | grep ii

doesn't produce video drivers, then you need to reinstall those. I would also try reinstalling xorg after saving your configuration.


Ok I figured it out.

After I ran:

sfdisk -d /dev/sda | sfdisk --force /dev/sdb

and before changing the partition type with fdisk I booted into a live CD and did:

ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# lvdisplay
--- Logical volume ---
LV Path                /dev/ubuntu-vg/root
LV Name                root
VG Name                ubuntu-vg
LV UUID                RJi0Hn-fuk3-kEEe-xVeG-FqeJ-OUXR-iTpW8Y
LV Write Access        read/write
LV Creation host, time ubuntu, 2019-04-15 08:25:48 +0000
LV Status              available
# open                 0
LV Size                249.01 GiB
Current LE             63747
Segments               1
Allocation             inherit
Read ahead sectors     auto
- currently set to     256
Block device           253:0

--- Logical volume ---
LV Path                /dev/ubuntu-vg/swap_1
LV Name                swap_1
VG Name                ubuntu-vg
LV UUID                JX3Scc-fGIM-e8Z1-zwY3-1ACM-U70M-m8OshG
LV Write Access        read/write
LV Creation host, time ubuntu, 2019-04-15 08:25:48 +0000
LV Status              available
# open                 0
LV Size                976.00 MiB
Current LE             244
Segments               1
Allocation             inherit
Read ahead sectors     auto
- currently set to     256
Block device           253:1

root@ubuntu:/home/ubuntu# e2fsck -f /dev/ubuntu-vg/root
e2fsck 1.44.6 (5-Mar-2019)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/ubuntu-vg/root: 201304/16326656 files (0.1% non-contiguous),
2764077/65276928 blocks

root@ubuntu:/home/ubuntu# resize2fs /dev/ubuntu-vg/root 247G
resize2fs 1.44.6 (5-Mar-2019)
Resizing the filesystem on /dev/ubuntu-vg/root to 65011712 (4k)
blocks.
The filesystem on /dev/ubuntu-vg/root is now 65011712 (4k) blocks
long.

root@ubuntu:/home/ubuntu# lvreduce -L 248G /dev/ubuntu-vg/root
WARNING: Reducing active logical volume to <248.82 GiB.
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce ubuntu-vg/root? [y/n]: y
Size of logical volume ubuntu-vg/root changed from 249.01 GiB (63747
extents) to <248.82 GiB (63697 extents).
Logical volume ubuntu-vg/root successfully resized.
root@ubuntu:/home/ubuntu#

Booted back into my virtual machine and after that it was plain sailing.


Do you mean Ubuntu One account?  If so, you can create a new one.  I believe that's the way it worked for me.


Epson Perfection V19 scanner doesn't write scans to disc

in this post

Epson GT-S50 scanner not working after upgrade to 18.04 from 16.04

that referred to a long bug report https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1728012

it was recommended that one set up symbolic links

sudo ln -sfr /usr/lib/sane/libsane-epkowa* /usr/lib/x86_64-linux-gnu/sane

and create a 55-epson-libsane.rules file in /etc/udev/rules.d/

if one uses gedit, Ubuntu is moving towards using

gedit admin:///etc/udev/rules.d/55-epson-libsane.rules

and that should open a blank file,(whose name is 55-epson-libsane.rules) into which you paste the script in the above post; save; close; reboot

does any of this help?


Mouse movement wakes computer from suspend, can't disable it

On my Ubuntu 16.04 x64 ASUS ZenBook UX430UA works the following:

# Check
more /proc/acpi/wakeup
or
grep --color -E '|enabled'  /sys/bus/usb/devices/*/power/wakeup

and then disable routine

# Disable
for f in /sys/bus/usb/devices/*/power/wakeup
do
   echo "disabled" > $f
done

In order to disable after reboot, add disable routine into /etc/rc.local before exit 0 line.


Ubuntu 18: how can I select a fix volume for my Mic , the volume is rising each time i speak and it gets over saturated

i try to modified the files
analog-input-internal-mic-always.conf
analog-input-internal-mic.conf
analog-input-mic.conf
using off and zero for Boost option instead merge, but they do not work


Boot existing ubuntu installation on uefi, GPT BTRFS

First, some EFIs have odd requirements when booting from GPT in BIOS mode. See my Web page on the topic for details. In most cases, setting the boot/active flag on the type-0xEE partition in the protective MBR will fix the problem. Note that you need fdisk (but not the very latest version!) or some other GPT-unaware tool to do this. (The very latest version of parted can also do this, but I don't recall the precise details.)

Second, if that doesn't help, you may be able to install an EFI-mode boot loader on the disk to get the job done. See my Web page on EFI boot loaders for information on what's available and how to install them. GRUB 2 might be fairly easy to install if you can chroot into the system in EFI mode; or you can try installing rEFInd, which you can install manually (not via the Debian package) or after using chroot.


You can try the alternative (bootchart) I posted here: Intense hard drive access activity immediately after log in


Unable to launch UiAutomatorViewer on Ubuntu 16.04 LTS


Just type in terminal

sh Mathematica_10.4.1.sh

or again in terminal do

chmod +x Mathematica_10.4.1.sh
./Mathematica_10.4.1.sh


This is a known issue with ATI/AMD graphics card and compositing.

For some people starting Chrome with --blacklist-accelerated-compositing parameter brings some help. Others report that --disable-gpu parameter helps.

See http://code.google.com/p/chromium/issues/detail?id=136054

As far as i understand, the only real fix is to switch to Nvidia or Intel GPU.  Adding parameters like the ones above cost performance and disable certain features which require compositing. To check your Chrome's state of GPU affairs visit chrome://gpu


How do I create the golang command after installing it?

You have to add it to your $PATH environment variable.

Open ~/.profile.

nano ~/.profile

Copy following to nano window.

export GOPATH=$HOME/go
export PATH=$PATH:/usr/lib/go-1.14/bin/:$GOPATH/bin

Press Ctrl + X -- Y -- Enter to save the file. Don't forget to source it.

source ~/.profile

Try running some go command.


Having trouble setting up Synergy (via Quicksynergy)

Here's a Synergy user guide and a sample configuration file. If you prefer to configure it with a GUI rather than a config file, try the 1.4.5 beta at Synergy's download page.


Fossfreedom has it right.  2.6.32.38 was superceded by linux-image-generic_2.6.32.40.47_i386.deb.  You need to get your apt local databases in sync before you upgrade.

This is accomplished by successfully completing a sudo apt-get update


How to prevent Arduino Uno to change USB port

Different cases can happen :

The Arduino gets a new USB port each time it is connected. In that case, the solution is to create a symlink for the connection. This is done using udev.
The Arduino randomly changes USB port, without being physically unplugged or the computer to be rebooted. Usage of udev will as well help but further debugging is necessary to understand why the Arduino disconnects in the first place. using udev rule might be enough to workaround the problem but might as well not be enough (for instance if the Arduino is hung after the disconnection happens).


how to go to a directory in gnome terminal which contains spaces as its name?

To open a long path or go that path which contains the spaces follow this rule:

cd "the path of the directory"

or if you want to open in GUI way i,e in any file manager.

 nautilus "the path of the directory"

i,e start the path with a double quote (") and keep pressing the Tab key. Pressing the tab key will automatically show the directory you want to open.

for example, to open your path in file manager or in terminal it self:

nautilus "/media/rajan/EXTRA/BACKUP/EXTRA/OS AND TOOLS/"

or

nautilus /media/rajan/EXTRA/BACKUP/EXTRA/"OS AND TOOLS"/

or if you want to just go to the path then this command:

cd /media/rajan/EXTRA/BACKUP/EXTRA/"OS AND TOOLS"/

Reply if still you are not clear.


Windows 7 Virtualbox guest in seamless mode has bottom clipped off in Ubuntu 13.04

I've recently encountered this bug, when switching from Seemless Mode to FullScreen Mode, and some how the top and Bottom gets clipped... I went to the Display settings only to see something like "1366x747" or something like that.. instead of "1366x768". After many attempts, I think I have found the solution.

Solution:

Follow Instructions on this page: https://wiki.ubuntu.com/X/Config/Resolution#Adding_undetected_resolutions

Example (What I did):

My Screen Resolution is 1366x768

$ cvt 1366 768 60
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync

Copied everything after "Modeline"

$ xrandr --newmode "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync

run xrandr command with the copied line

$ xrandr --addmode VBOX0 1366x768

Save the newly-created mode

$ xrandr --output VBOX0 --mode 1366x768

Apply the newly-created mode and You're done!
Now go check in the display settings and everything should be good.

NOTE: Just do what I did but I do strongly recommend actually running the commands and not just copying the "Modeline" in the example, since it could be different for you even if you have the same screen resolution as me. This was done with the VirtualBox Guest Additions Installed, I don't know if it works without it, it should work though...


How do I change mirrors in Ubuntu Server from regional to main?

Open your sources.list file using your favorite text editor, e.g.

sudo nano /etc/apt/sources.list

Locate the text http://us.archive.ubuntu.com/ubuntu and replace it with http://archive.ubuntu.com/ubuntu.


Unable to install mysql-server, getting error you have held broken packages

my friend. It seems you have a bug with repositories.
So first, remove all non-official repositories from the distribution. Or third-party repositories.
Then, run
sudo apt update

Then you can install MySQL 8 by adding the official repository
wget https://dev.mysql.com/get/mysql-apt-config_0.8.14-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.14-1_all.deb

Refresh APT again
sudo apt update

And perform the MySQL installation
sudo apt install mysql-server

And also you can install the client.
Here is the reference.It should be enough.


Windows' chkdsk is the authoritative NTFS repair tool.  If it can't fix it, then you're out of luck.  You can try to wipe the whole disk and start over, and the disk may turn out to be ok, or you may need to replace it.  Start by zeroing out the whole disk ( assuming it is sda ):

sudo dd if=/dev/zero of=/dev/sda

If that completes without errors, check the SMART stats in the disk utility again.  The pending and offline_uncorrectable counts should be zero.  If the reallocated sector count is still zero, then the drive is fine, and you can format it and continue to use it.  If the reallocated count has gone up, then the drive has some physical damage that may grow worse over time.  If it is under warranty, have it replaced.  If not, then run the long smart self test once a week or so to make sure no additional bad sectors develop.  If more bad sectors do pop up, then you will want to replace the drive.


Try sudo apt-get install plasma-discover instead of  sudo apt-get install discover.

$ apt show plasma-discover
Package: plasma-discover
Version: 5.8.8-0ubuntu1~ubuntu16.04~ppa1
Priority: optional
Section: kde
Maintainer: Debian/Kubuntu Qt/KDE Maintainers <debian-qt-
kde@lists.debian.org>
Installed-Size: 1,957 kB
Depends: appstream (>= 0.8), packagekit (>= 1.0), plasma-discover-common (= 5.8.8-0ubuntu1~ubuntu16.04~ppa1), qml-module-org-kde-kirigami, qml-module-org-kde-kquickcontrolsaddons, qml-module-qtgraphicaleffects, ubuntu-release-upgrader-qt, kio, libappstreamqt2, libc6 (>= 2.14), libkf5archive5 (>= 4.96.0), libkf5attica5 (>= 5.23.0), libkf5configcore5 (>= 5.24.0), libkf5configgui5 (>= 4.97.0), libkf5configwidgets5 (>= 4.96.0), libkf5coreaddons5 (>= 4.100.0), libkf5crash5 (>= 5.15.0), libkf5dbusaddons5 (>= 4.99.0), libkf5declarative5 (>= 4.96.0), libkf5i18n5 (>= 4.97.0), libkf5kiocore5 (>= 4.96.0), libkf5kiowidgets5 (>= 4.96.0), libkf5newstuff5 (>= 5.23.0), libkf5notifications5 (>= 5.3.0+git20141030.0311), libkf5service-bin, libkf5service5 (>= 4.96.0), libkf5widgetsaddons5 (>= 4.96.0), libkf5xmlgui-bin, libkf5xmlgui5 (>= 4.96.0), libpackagekitqt5-0, libqt5core5a (>= 5.6.0~beta), libqt5dbus5 (>= 5.0.2), libqt5gui5 (>= 5.6.0~beta) | libqt5gui5-gles (>= 5.6.0~beta), libqt5qml5 (>= 5.1.0), libqt5quick5 (>= 5.0.2) | libqt5quick5-gles (>= 5.0.2), libqt5widgets5 (>= 5.0.2), libqt5xml5 (>= 5.0.2), libstdc++6 (>= 4.5)
Recommends: software-properties-kde
Conflicts: plasma-discover-private, plasma-discover-updater, python3-aptdaemon.pkcompat
Breaks: libmuon (<< 4:5.6), muon-discover (<< 4:5.5.3a), muon-notifier (<< 4:5.5.3a), muon-updater (<< 4:5.5.3a), plasma-discover-common (<< 5.7.0)
Replaces: libmuon (<< 4:5.6), muon-discover (<< 4:5.5.3a), muon-notifier (<< 4:5.5.3a), muon-updater (<< 4:5.5.3a), plasma-discover-common (<< 5.7.0), plasma-discover-private, plasma-discover-updater
Download-Size: 970 kB
APT-Manual-Installed: yes
APT-Sources: http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial/main amd64 Packages
Description: Discover software management suite
....

Note that the version I have is 5.8.8 because I installed the kubuntu-backports ppa which provides a lot of bug-fixes and improvements over what Kubuntu 16.04 initially ships with.

If you rely on the default version, you'll see version 5.6.2 if you run apt policy plasma-discover in your terminal.


This is not related to graphics drivers.

I have installed ia32 package with lots of dependencies. Then I remove it and I have done autoremove, too.

I figured out that gnome-shell, gdm ...etc were removed, too. So, because they where my main interface, I couldn't log in to my Ubuntu.

I have connected to internet using the network cable and installed gnome-shell


Unable to update linux headers, remains at 0%

There is a problem with the repository at 192.168.1.245 (which is a private internal IPv4 address only).  This is the (English translated) error message:

Err: 8 http://192.168.1.245/ubuntu bionic InRelease
  The connection failed [IP: 192.168.1.245 80]
...
W: Failed to obtain http://192.168.1.245/ubuntu/dists/bionic/InRelease The connection failed [IP: 192.168.1.245 80]

The issue lies at that server that's in your /etc/apt/sources.list file or in a file within /etc/apt/sources.list.d/ files somewhere.

You can solve this by commenting out the line that refers to that IP address and then running the update process again.  However, if this is supposed to be an actual repository server, then you need to go fix that server or let whoever runs it know it needs fixing.


Way to take multiple input from same line separated by a space

You should be able to use the bash shell's built in read command for that.

$ read -p "Please enter names: " name1 name2 name3
Please enter names: alice bob carol
$ echo $name1
alice
$ echo $name2
bob
$ echo $name3
carol


Is reinstalling apt-get safe to do [Ubuntu 14.04]

I found a solution at this question --please complete reading before going to the link.
I traked the dependencies untill I found that there is only one package apt can't resolve "libtiff4" so I downloaded and installed it manually.
thanks to Byte Commander


System Problem Detected Ubuntu 18.04 due to drive mount

Try sudo rm /var/crash/*. This will clear all the crash reports if there are any. If this does not solve the issue try reviewing the logs.

Here, is a reference with a similar problem:

System program problem detected?


unable to fix and install packages on Xubuntu

You need to use sudo to install packages, so please use:

sudo apt-get -f install package

If You will have issues with that, You can do it using sudo -i command, but keep in mind that You may break Your system if You will do things with the root privileges.

If Your user is added to sudoers, You will still have to use sudo command and provide password for Your actions.

sudo will elevate Your command with higher privileges, keep in mind that granting sudo rights to a command makes it powerful and may harm Your system if is not used right.

I encourage to read this article: https://wiki.debian.org/sudo
It's always better to know more, especially when You are using Linux.

Key for not breaking linux systems is a consciously use of each command.


How to configure sSMTP to send emails to more than one email address?

Generally, there is no need to change your ssmtp configuration. If you want to stick to your single gmail account you could maybe use the + extension feature, where you can extend your gmail address by adding +something to the part before @gmail.com.

This way you get all the emails in your gmail account but you can tell them apart by the bit you added after the +. (more information here).

But you could also just choose to configure any other email address in wordpress.

Security

As for the security aspect of this: If you can avoid putting your very personal email account password in a system file in cleartext, especially on a system running wordpress (has quite a history of being hacked), it would be much better. You have several choices here (most of which would deviate too much from the original topic of this question):

Simply create another Gmail account that you use only for this purpose: authenticating an smtp session for ssmtp. You will still be able to send emails to your regular gmail account, but not have to put its valuable password in the config file.
Setup and configure an smtp server on your machine.
Another option would be to check if your provider (the one where your wordpress server is located) offers an smtp server. Normally this does not even need smtp authentication to be set up. That would be the preferred option in my opinion.


publishing an app for ubuntu software center

You need to create a deb package.
Most info can be found here:
http://developer.ubuntu.com/publish/


To find the adapter, run this command.

lspci -nnk | grep -iA2 net; lshw -c ne

If you're using Broadcom, here's a great resource that will show you how to install the drivers (I had to do this when I installed 15.04 last weekend)

http://www.howopensource.com/2012/10/install-broadcom-sta-wireless-driver-in-ubuntu-12-10-12-04/

Hope that helps!


Steam won't start - integer parameter out of range for operation


How to lock screen during automatic login in Ubuntu 16.04 LTS

First goto Setting
Click on User Accounts
In User Accounts there is a option Automatic Login
Just Enable this option.

Here is Screen shot

I think it may be help you.


How to change directory at the end of a bash script?

Another option: have your script print the directory name at the end of the script.

...
echo "$appdirectory"
exit

For any error conditions, print the error message to stderr (echo something >&2) and exit with a non-zero return code (exit 1). This is good practice anyway.

Then the function can look like:

rnew () {
    local dir=$( $HOME/.dotfiles/railsnewapp.sh "$1" )
    [[ $? -eq 0 ]] && cd "$dir"
}


MAAS Failed deploying Connection refused when downloading root-tgz

I'm answering my question since I have discovered that fast installer probably has a bug and debian installer goes through the process of installation without a problem.


After using Intel Graphics Installer my touchpad no longer works

I had the same problem. Apparently the Intel Graphics Installer automatically uninstalled the package xserver-xorg-input-synaptics. Reinstalling this package should re-enable your touchpad.

Refer to this post: Touchpad stopped working out of the blue


Seems like its a bug, so you might want to have a look at https://bugs.launchpad.net/ubuntu-gnome/+bug/1364630


Regional formats are set to German while file managers still show English formats

The locale output looks normal. The Nautilus behavior you describe is intended, I think, but there seems to be a Dolphin bug.

Dolphin is a qt application, right? In that case, it wouldn't be the first qt app I have encountered with this particular bug.

One thing you may want to try is to create the file ~/bin/dolphin, give it this contents:

#!/bin/sh
export LANG=de_AT.UTF-8
export LC_MESSAGES=en_US.UTF-8
exec /usr/bin/dolphin $@

and give it execution rights:

chmod +x ~/bin/dolphin

That file works as a wrapper when you start Dolphin. However, there is a risk that not only the formats, but also the display language, will be switched to German...


If you're dual-booting with a pre-installed Windows 8 but have problems getting a UEFI version of GRUB to work, your OS was not setup/install in UEFI mode. This caused the Ubuntu installer not to recognize Windows and also caused it to install in BIOS mode, meaning the computer will never use it when turning on normally. As a general rule, though, UEFI mode works better in dual-boot setups with pre-installed versions of Windows 8.
So, What next for you?
Convert  your ubuntu into UEFI or Legacy mode by.

Start Boot-Repair, click on "Advanced options", go to the "GRUB location" tab.
If you do not see a "Separate /boot/efi partition" line, this means that your PC does not have any UEFI partition. In this case, exit Boot-Repair, then create an UEFI partition (see the "Creating an UEFI partition" paragraph above).
If you see a "Separate /boot/efi partition" line, tick it then click the "Apply" button.
Set up your BIOS so that it boots the HDD in UEFI mode (see the ""Set up the BIOS in UEFI or Legacy mode" paragraph above).

follow the instructions on this link for detailed guidance Ubuntu in UEFI mode.
I hope you get it solved ;)


Brother DCP-J572DW does not scan after upgrade to 20.04

Either connect to the device by wireless and use sane-airscan or read this post.


Using pam-mount

You can use pam-mount to do this. It will hook into the login process and thus be able to use the entered password for mounting a luks partition. Here's how to set it up:

Create a test luks image

Skip this section if you have a LUKS-encrypted partition or image already

Create a file called .priv in your home directory with size 1GB:

truncate -s 1G ~/.priv

Format the image using LUKS and set a password (use the same as your login password):

cryptsetup luksFormat ~/.priv

Enable the image:

sudo cryptsetup luksOpen ~/.priv priv

Create a file system on the new device:

sudo mkfs.ext4 /dev/mapper/priv

Disable the image again:

sudo cryptsetup luksClose priv

Install and set up pam-mount

Install the package:

sudo apt install libpam-mount

Edit the configuration file /etc/security/pam_mount.conf.xml and add the following line to it:

<volume path="~/.priv" mountpoint="~/priv" />

Add this right after where it says <!-- Volume definitions -->. Notice the subtle but important difference in the path and mountpoint arguments. In your particular case you would use path="/dev/sdb7".

Now login to your machine and you should notice that it takes a little longer than usual. After successful login you can check, using the mount command, that there is now a new file system mounted in your home. It should look similar to this:

/dev/mapper/_dev_loop3 on /home/seb/priv type ext4 (rw,relatime,data=ordered,helper=crypt)

Use for /home/USER

I am using this setup for mounting my home directory (/home/seb) from a LUKS encrypted image on Ubuntu 18.04. pam_mount will also take care of unmounting the image after I log out. As such it is a nice way to get at least some encryption if during installation you did not choose full disk encryption.


U1db-Qt not working as expected in ListView (Ubuntu Touch App Development)

Apparently it iterates over documents, not inside one document.

It took hello.world[0].id and hello.world[0].message from aDocument. If you add another document aDocument2, there will be two lines.

Maybe it should expand lists that it finds inside. But the description of the Query class probably says that one result corresponds to exactly one document:

  The Query class generates a filtered list of documents based on a query using the given Index.


Changed Fstab file using gnome-disks utility, now stuck in login loop

It seems that you somehow has deleted the line for /home in /etc/fstab.

sudo lsblk will show what partitions you have and their sizes, and sudo blkid their UUID.

Add the relevant partition to fstab like this:

/dev/sdb3  /home  ext4  defaults  o  1

or

UUID=the-uuid-for-sdb3  /home  ext4  defaults  0  1

The UUID way is preferred way because UUID don't change,but /dev/sdXY might if adding an other disk.


How to store OpenVPN password when using a static-challenge

I guess the problem is, that the username and password are not sent via stdin!

You should take a look at the python module "pexpect".


The simplest option might be to use the split command in combination with find and tar's -T/--files-from option:

find ... -type f -print0 |
  split -t '\0' -l 100 -d --filter 'tar czf archive-$FILE.tar.gz --files-from=- --null'

split will also take care of setting filenames with sequential numbering (the -d option sets numbered filenames instead of the usual alphabetic ones).

With a combination of find and xargs, I couldn't find a way to get reliable sequential numbering of the archives, so I used uuidgen:

find <directory> -type f -print0 | xargs -n 100 -0 sh -c 'tar -czf archive-$(uuidgen).tar.gz "$@"' _

Or you could use bash loops:

count=1
N=100
find <directory> -type f -print0  |
{
while true
do
    files=()
    for ((i=0;i<N;i++))   # Add N filenames to the `files` array
    do
        IFS= read -d '' -r file
        files+=("$file")
    done
    ((count++))
    tar -czf archive-$count.tar.gz "${files[@]}"
done
}

An assumption in all these commands is that find is not being run in the current directory. Otherwise, you might end up tarring a tar file. If you have to run it in the current directory, then I suggest saving the filenames to a file and then reading the filenames from that file for split/xargs/the loop.


I use aptik for this purpose. It serves to backup and restore your ppas and apps.  There are other functions as well, but I have only used those two.  It works well.


gdrive help about will output:

Google drive metadata, quota usage
gdrive [global] about [options]

global:
  -c, --config <configDir>         Application path, default: /home/banyhong/.gdrive
  --refresh-token <refreshToken>   Oauth refresh token used to get access token (for advanced users)
  --access-token <accessToken>     Oauth access token, only recommended for short-lived requests because of short lifetime (for advanced users)

options:
  --bytes   Show size in bytes

The easiest way to clean authentication data is to rm -rf ~/.gdrive.


new video card: Geforce GTX 1050 Ti -- can't see bios hdmi (Ubuntu 20.10)

The issue for me was the video card and my monitor an LG Oled 65 in display.  When the login display attempted to display, the speed was too high and no sync.
So the solution, was to login through VNC viewer and set the display settings to what worked well.  THEN do:
This Solved my Issuue:
Go into Settings > Devices > Displays and configure your monitors the way you want for your login screen (in your case, internal laptop display disabled). Click the "Save" button when done.
Copy your user's monitors.xml file into the home folder for gdm user.
To copy the monitors.xml file, open a terminal and perform the following:
sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml
sudo chown gdm:gdm ~gdm/.config/monitors.xml
ALL now his fine.  I suspect that there is an easier setting to just control the hz of the display, but this works well for me.


There's a known memory leak in GNOME which 18.04 uses, and explains what you heard. Folks have been working on it, and fixes should be completely provided by September.

Changing to KDE will obviate that problem now.

Get to a shell prompt and run sudo apt-get install kubuntu-desktop then password in. Approve all the dependencies shown, and let it complete.

Logout, then login and choose KDE.


I would like to remove Windows 8 and install Ubuntu, without a CD or USB Drive

In order to install Ubuntu, the easiest way to do so is using a flashdrive, but net installs are possible.  You will need another computer and follow the instructions on the Ubuntu help site here.  If you will be using another windows computer as the netboot server you will need to follow the link in the "Introduction" segment, or here.

EDIT: After looking around a bit I found that the download links on the second link I provided are broken.  To download the latest (13.10) you'll want to replace the word "maverick" with "saucy" in the 10.10 link, or click here: 32-bit or 64-bit.