It looks like you got a kernel panic error message after updating the Linux kernel.

Reboot or cold start the computer.

Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.) With UEFI press (perhaps several times) the Esc key to get to the GRUB menu. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GRUB screen, and then pressing Shift is unnecessary.

From the purple GRUB screen select Advanced options for Ubuntu with the ↑ and ↓ keys and press Enter.

A new purple screen will appear showing a list of kernels. Select an older kernel version instead of the latest kernel version and press Enter.

Ubuntu will load the selected kernel and proceed to the login screen as usual.

After rebooting

Find the latest installed kernel version in the results of the following command:
dpkg -l | grep "linux-[a-z]*-"

Uninstall the latest kernel.
sudo apt-get purge <latest-kernel-version-number>

Replace <latest-kernel-version-number> in the above command with the latest kernel version number.

Update grub.
sudo update-grub

Reboot.
sudo reboot

Don't let Ubuntu update the kernel to the kernel version that caused the black screen again, or else you'll get the same black screen problem that you got before. Instead wait for the next kernel update and update to that kernel version.


Is there any gui to make a global (system and devices) search in Ubuntu?

Try Catfish, it is very light and fast file searching GUI.

In the terminal do:

sudo apt-get install catfish


Can my system be infected with the Trojan known as commondatastorage?

What you describe is consistent with reports of a Trojan sometimes called commondatastorage that is being distributed through Facebook. However, this virus only affects Windows. If you are using Ubuntu, you should be safe.


I skipped the downloading part in the final part of Ubuntu installation. What did I miss?

You can do this in a few ways.

You can hit "Search your computer" -> and click on "Software Updater"
Open terminal, and type sudo apt-get update and then sudo apt-get upgrade -y

Both will get the remaining packages.


You can try ubuntu on separate partition other than your windows one.Remaining process is same as installation of ubuntu on Complete HDD.There are various blogs and websites to guide you step-by step installation. Official one is https://help.ubuntu.com/community/WindowsDualBoot

All the Best !


You can run windows inside the Ubuntu only through the Virtual Machine.
Refer the following link : Install Windows 7 inside Virtualbox of Ubuntu?


Pulseaudio with locked channels don't work so well with media keys

I am not sure if this would work, but maybe you could try assigning a keyboard shortcut to those same keys to change the volume. Below the first command lowers the volume 5%, the second one increases it 5%, and the third one toggles the mute button.

amixer -D pulse sset Master 5%-

amixer -D pulse sset Master 5%+

amixer -D pulse sset Master toggle


'trying to overwrite file already in shotwell-common package' while installing shotwell from the PPA

Try this command on terminal,

sudo dpkg -i --force-overwrite /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb

This error occurs when some file was moved from one package to another in a newer version.

In your case dpkg trying to extract shotwell.svg file from /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb to /usr/share/icons/hicolor/24x24/apps/ directory.But there was already a shotwell.svg file in that directory.So this type of error occurs.

By running dpkg -i --force-overwrite command,the previously located file shotwell.svg was forcely overwrited by the file from the /var/cache/apt/archives/shotwell_0.15.1-1~saucy1_i386.deb while installing.

Here is the source.


Short Answer:

gconftool-2 --set --type=bool /desktop/gnome/remote_access/enabled true

as the accepted answer mentions, if vino isn't started on the remote machine, use

/usr/lib/vino/vino-server

Long Answer and more info:

A subset of the settings for the current built-in remote access server (vino) can be seen, as mentioned, from vino-preferences.  A complete list of gconf flags can be seen with the gconf-editor command, listed under /desktop/gnome/remote_access .
You can see also the other remote_access keys with this command (or a variation on it):

gconftool-2 -a /desktop/gnome/remote_access

(For whatever reason, -R will also work.)

You can also get the schema key documentation via the --long-docs arg.

E.g., for the alternative_port key :

gconftool-2 --long-docs /desktop/gnome/remote_access/alternative_port

       The port which the server will listen to if the
       'use_alternative_port' key is set to true.
       Valid values are in the range from 5000 to 50000.

So, for example, here's how to change default port via command line:

gconftool-2 --set --type=bool /desktop/gnome/remote_access/use_alternative_port true
gconftool-2 --set --type=int /desktop/gnome/remote_access/alternative_port 5999

gconftool will give you the keys under a given directory.   Here is the 'remote_access' section:

gconftool-2 -a /desktop/gnome/remote_access
 use_upnp = false
 vnc_password =
 authentication_methods = [vnc]
 network_interface =
 require_encryption = false
 disable_background = false
 enabled = true
 use_alternative_port = false
 mailto =
 disable_xdamage = false
 lock_screen_on_disconnect = false
 icon_visibility = always
 view_only = false
 prompt_enabled = true
 alternative_port = 5900

Here is how to list all the schema docs under /desk/gnome/remote/access (via command-line /bin/bash):

for key in ` gconftool-2 -a /desktop/gnome/remote_access | awk '{print $1}'  ` ; do echo $key ; gconftool-2 --long-docs /desktop/gnome/remote_access/$key ; done


Can I have two File Managers installed in Xubuntu 16.04.5 with no confilcts?

Yes, you can use Nemo as a second file manager. I use it as a backup to Nautilus on my GNOME desktop. There are no conflicts but some dependencies will be installed automatically when you install Nemo. Thunar will remain your default file manager unless you manually change it.


Booted up with low graphics, no mouse, no internet (driver failure?)

Fixed.
I connected a mouse and it showed up so I could use that.
Then I went to 'additional drivers' and changed my gtx 960 driver (not in use, I had it installed but used the integrated graphics) from the one I set when I got the laptop to a different one (the open source one that was the) and then restart the pc and the internet and mouse and screen was fixed.


xorg.conf overwritten at boot (gpu-manager disabled)

if you want to prevent a file,you can use follow methods:
1.put a script in /etc/init.d
2.change the permission for the file
Many file system can't be changed permission and will be rewritten after reboot.i recommend you to write a bash script in /etc/init.d how for it resetting permission or write the file whenever.


Dualscreen not working when using a Dell XPS 15 via an HDMI cable to a TV

I know I'm answering my own question now, but after I have been trying to get hdmi to work with my computer for something like 10months now I just gave up.

My solution is to buy a "Mini Display Port" to "HDMI", and it works like a charm :D
Mini display port is a mac thing, but my computer has it and it works great :D got it for $35


GtkFileChooserButton 'Select Folder' mode returns no path

Because the file-set signal is only sent when the user changes the file, you will need to actually do the get_current_folder() call when you need to know the path, and not when the file-set signal is called. From the documentation, I see no way to get a notification when the user selects a path from the bookmarks, in folder selection mode.

As an alternative, though, you could use the FileChooserButton in normal mode, and simply use get_current_folder when the file-set signal is sent. This should give you the directory which the user is in, when a file is selected. Unfortunately, the UI will also look weird in this case, as the button will show the filename, while you're actually using the directory.

Also, you should probably file a bug against upstream GTK+ about this use case and how it isn't usable. The file-set signal really should be deprecated and renamed to path-set, and used in both modes.


How to get access to the other drives in a dual boot system

If it has not been mounted automatically it has to be mounted.

mount will show the mounted partitions.

sudo fdisk -l /dev/sda and sudo parted -l /dev/sda
will show what partitions exist


Grub bootloader not showing up and no Ubuntu boot option in BIOS after installation (boot-info from boot-repair tool attached)

Found the solution, as oldfred said, this is caused by Acer UEFI firmware "trust" settings.

I followed instructions in the following posts and fixed the issue:

https://ubuntuforums.org/showthread.php?t=2358003

https://ubuntuforums.org/showthread.php?t=2401105&p=13800621#post13800621

Thanks for help from everyone.


LUbuntu 20.04 and tmporary user like guest?

Add a Guest User to Ubuntu 20.04

Install lightdm:
  sudo apt-get install lightdm

At popup select lightdm as display manager.

After install run:
  sudo gedit /usr/share/lightdm/lightdm.conf.d/50-disable-guest.conf

Change: allow-guest=true.

On next boot there will be a guest user, no changes will be saved during the session.

The administrator may change settings and add programs.

I was able to switch back to GDM.

I am not sure if the reports of 17.04 Gnome being unconfined when in a guest session, still applies.
Customize Guest Session


Booting ubuntu via VirtualBox on Win7 goes to black screen after this prompt

Found out what the problem was. As embarrassing as it may sound, simply enabling Hardware Virtualization from the BIOS solved the problem


remounting old swap partition not worked in ubuntu

You are attempting to use the old configuration of an encrypted swap with your current setup that is not using encryption.

You can:

Use your unencrypted swap: Change the line in  /etc/fstab starting with /dev/mapper/cryptswap1 into

/dev/disk/by-uuid/88052649-8989-4112-accf-594df53783ce none swap defaults 0 2

and use sudo swapon -a
Use an encrypted swap instead (the recommended way): In /etc/crypttab, change the line starting with cryptswap1 with this one:

cryptswap1 /dev/sda7 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256

and reboot.


Cannot set up multiple desktops (workspaces)

I am using 18.04 I had the same question but then used Gnome Tweaks app installed from Ubuntu Software Center, it allows you to configure Workspaces as shown, you see all the available workspaces and can switch workspaces by pressing Super/Windows Key:

Though my absolute favourite I have used since Ubuntu 14.04 for its simplicity and flexibility is the switcher that comes with Cairo-Dock the Mac OSX like dock for Ubuntu, it works along side the existing standard  dock/siderbar that is there out of the box, but I hide the standard toolbar and use it mainly to use Show Applications.


How to launch user application from gmrun

Add this line to your .bashrc: export PATH=/opt/eclipse:$PATH, assuming the binary eclipse is inside /opt/eclipse.

It might be /opt/eclipse/bin or similar, but you will have to check it out yourself.

After that, you should be able to run it by pressing Alt+F2 and entering eclipse.


Is used content of memory saved to disk during suspension?

The suspension you see in you shutdown / switch-user menu is suspend to ram. Suspend to disk is by default disabled except if you have a computer for which Canonical has tested this feature.

Therefore, the content of your ram isn't written on the disk and the system needs power to keep refreshing the ram or else the ram will loose all information saved in it.


How to Allow two users to access one directory. (tried groups but failed)

You could try the following:

chown user1:admin-group /var/www/directory1
chown user2:admin-group /var/www/directory2
chmod 770 /var/www/directory1
chmod 770 /var/www/directory2
usermod -aG admin-group admin

Then you have to make sure that new files created in the directories use the same permissions:

sudo chmod g+s /var/www/directory1
sudo chmod g+s /var/www/directory2


PATH variable for newly installed executable files

First of all, when you try to run an executable whose directory you are in, you have to add ./ to the command, for example:

user@USER-PC:/usr/local/lib/Bowtie$ ./bowtie2

So bash (I suppose you're using bash, but many shells will work like this) will look for the executable in the current directory, not in PATH.
To add /usr/local/lib/Bowtie to PATH, just edit ~/.bashrc and add export PATH=$PATH:/usr/local/lib/Bowtie. This way bash will look for bowtie2 in this directory.

If you created a link to bowtie2 inside /usr/bin and bash does not recognize it then probably bowtie2 is not marked as executable. Open a terminal and run:

sudo chmod +x /usr/local/lib/Bowtie/bowtie2

and see if that solves your problem.


Ubuntu not detecting office wireless network

I finally was unable to find any solution. Someone recommended to check on which channel the office WiFi was running, but the network admin was too lazy to check that for me. I finally had to purchase a Lexosys nano USB adapter.


How to select on which monitor YouTube fullscreens?

The only successful workaround that I have found so far is an extension for Chrome:

Multiple Monitor Full Screen

It maximises the Youtube video to the Chrome window which you can then Fullscreen on which ever monitor you like.

You should be aware of a small exiting from full-screen bug that affects Chrome on Ubuntu. Flash swallows the F11 key command so use Ctrl-Tab to switch to a non-flash tab and use F11 from there.


Unable to install ubuntu13.10-desktop-amd64

I think USB device has missing files as you see.

Create a new bootable USB with Lili USB Creator


When Ubuntu 19.10 is released later this month it will have the 2019 version of texlive-full in its default repositories. The texlive-full package installs a large amount of dependencies along with it, but it installs seamlessly if you install it from the default Ubuntu repositories with sudo apt install texlive-full. You are currently using 16.04 which is getting old enough to consider the clean package management advantage of installing the latest version. Logical package management is more important than marginal improvements in the latest version of one application for most Ubuntu users.

For installing TeX Live over the internet, the official Tex Live website recommends starting the TeX Live installation by downloading install-tl-unx.tar.gz (4MB). The rest of the Tex Live files (~2GB) will be installed over the network.


Cannot use twofinger gesture on lenovo touchpad ubuntu 14.04

My solution.

cat /proc/bus/input/devices

if you found something like this
N: Name="ETPS/2 Elantech Touchpad" then do the next procedure

apt-get install dkms

if cannot access dkms.
try

export PATH=$PATH:/usr/local/sbin

Step 1: Download the following dkms package
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1166442/+attachment/3941591/+files/psmouse-elantech-x551c.tar.gz
Step 2: Run the following commands in the download directory (or adjust the paths accordingly):

sudo dkms ldtarball psmouse-elantech-x551c.tar.gz
sudo dkms install -m psmouse -v elantech-x551c
sudo rmmod psmouse
sudo modprobe psmouse

ref.
https://superuser.com/questions/721417/elantech-touchpad-recognized-as-ps-2-mouse-ubuntu-13-10
http://www.evilcodingmonkey.com/2014/01/23/ubuntu-activate-multi-touch-on-elantech/
https://bbs.archlinux.org/viewtopic.php?id=157091
https://superuser.com/questions/595818/add-usr-local-sbin-to-the-path-of-a-user
http://www.evilcodingmonkey.com/2014/01/23/ubuntu-activate-multi-touch-on-elantech/


Network notification balloon stays showed too long

you can adjust the notifications globally with NotifyOSD. Install it with these commands:

sudo add-apt-repository ppa:leolik/leolik
sudo add-apt-repository ppa:amandeepgrewal/notifyosdconfig
sudo apt-get update && sudo apt-get install notifyosdconfig

Then run it from Accessories > NotifyOSD Configuration

You can modify color, timeout, icon size or opacity


external microphone on double jack (mic/headphones)

You are going to need an adapter to connect a microphone since the jack is not directly compatible with a microphone, instead you can connect a normal headphone directly. These adapters have a male 4 pin and two female 3 pin connectors. You can get them at your favorite electronics parts dealer.


Intel Graphics Installer now 1.2.0 supports Ubuntu 15.04.

Download Intel Graphics Installer 1.2.0
Add Intel certificate :

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | \
sudo apt-key add -

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-2 -O - | \
sudo apt-key add -

Install it:

 sudo dpkg -i intel-linux-graphics-installer_*.deb

Run the installer.

Refer on the Intel Graphics Installer page for more information.


GParted Allocate space on the right side

copy the ubuntu partition to the blank space, run sudo update-grub and then boot into that installation, delete the other ubuntu partition after verifying it works, then boot into a livecd and resize the ubuntu partition to fill the space


ISC DHCPD multiple subnets but want only one subnet to do ddns updates to a windows server dns

Found the answer.  Global option ddns-domainname  locks all dhcp requests to that domain name and forwards all to the dns server.  Removing the ddns-domainname global option and using only the 'option domain-name' within the subnet will have the dhcp server forward only ddns updates to the 'option domain-name' dns server defined in the 'zone' definition.


How to completely remove virsh from Ubuntu

If you installed all these packages from Synaptic, then you can remove them as follows:

sudo apt-get purge libvirt* kvm qemu*

If however you installed one of these packages from sources (say, virsh), then Synaptic will be of no help. You need to use make uninstall from the build directory.


How to solve the link library problem -lgcc_s

Check whether gcc is properly installed. If not install using the command

sudo apt-get install gcc-x.x

replace x.x with the proper version.

If gcc is installed properly then the issue might be with the link. Check whether lgcc_s is properly linked.

libgcc files are located under /usr/lib/gcc/i686-linux-gnu/x.x


How to install Mozilla central in Linux?

Download the .bz2 file from here

Open terminal and do the following:

Change working directory to the downloads directory

cd ~/Downloads

Extract the downloaded archive

tar -xvf tip.tar.bz2

Change working directory to the Extracted directory

cd XXX

Now issue these commands

./configure
make
sudo make install


Ubuntu 20.04 "Home System" Permissions help

Try running sudo apt update && sudo apt upgrade -y from terminal. Then run sudo apt autoremove. You may need to power cycle once completed. You may have to repeat. Once completed and power-cycled, you can try installing the software from the most current repository using sudo apt-get install (package name). From my understanding you won't be able to install the software from the context menu as the installation option is executed by Ubuntu Software and you indicated it itself is not functioning. Also, are you able to install the software as root? Right click on the parent directory and open-as-root then try to install if you still can't try logging in as root and installing. If it functions as root than in fact it is a permission issue and while logged in as root make sure your user has appropriate permissions.


To remove an application in Ubuntu you can type in a terminal:

sudo apt-get remove lightdm

or remove it with all its configuration files:

sudo apt-get purge lightdm


How can I make libjpeg available to python2.5?

The PIL setup.py file if you are trying to install with easy_install the ./configure script is not available. If you open the setup.py in the first lines somewhere are the paths for Jpeg support zlib support etc. I set their values according to my paths of the installed libraries. So the setup.py looks like this before executing it:

 37 JPEG_ROOT = "/usr/lib"
 38 ZLIB_ROOT = "/usr/lib/zlib/lib"
 39 TIFF_ROOT = None
 40 FREETYPE_ROOT = "/usr/lib/i386-linux-gnu/"

I have manually installed zlib under /usr/lib/zlib to serve my needs.

The selftest.py of PIL will recognize the available libraries. Recompile PIL and everything is set!


Applications (currently) don't have access to processing logins via libpam. It is possible to add an interface for this, but it would be quite privileged in order to perform the authentication. The interface would also get potentially messy on (at least) classic since any number of pam modules might be installed on the system that might require additional accesses.

I'm unfamiliar with OMI-- why is it using libpam as opposed to something like sudo?


Open the file /home/your-username/.bashrc and add the following line to the end:

alias cd='cd -P'

Open a new terminal, and try using cd to see if it worked for you.


how do you commission a machine in MAAS from the CLI without running any hardware tests?

If you want to commission a single existing machine without running any hardware tests, the CLI command is:

maas <profile> machine commission <system_id> testing_scripts=none

If you want to disable hardware tests from running when new machines are added to MAAS, you need to remove the "commissioning" tag from all node-scripts.  By default only one script (smartctl-validate) is tagged to be run during commissioning.  You can see all scripts, and their tags, using:

maas <profile> node-scripts read

Assuming typical installation where "smartctl-validate" has a script id = 1, and default tags of "storage,commissioning", you can remove commissioning using:

maas <profile> node-script update 1 tags=storage

That command will leave the "storage" tag, but remove the "commissioning" tag from the "smartctl-validate" script.

A word of caution: hardware tests can be helpful/useful.  Disabling the tests might not be a good idea.  We disable them because false-positive results (we think due to S.M.A.R.T. drive monitoring) cause our commissionings to hang and fail.


GeForce 6200 (NV44) Xubuntu 18.04 (Kernel 5.3.x) driver

As far as I know at the current moment there is no way to install such legacy driver upon linux system with 5.3+ kernel.
I had Elementary OS Freya and working bare 304.137 driver (no patch). Yesterday I switched to Elementary OS 5.1.3 Hera (based on Ubuntu 18.04.3 LTS) with 5.3.0-46 kernel. Sadly both original version and patched one ( I had x64 version of the driver rather than 32 which you've mentioned though) failed to build.

UPDATE:
I found this post which describes how to patch a Debian system. It doesn't work with extracted .run archive tough. Not sure how to use it properly on Ubuntu.


Local only sendmail that delivers all mail to a directory

To answer my own question, using postfix this is possible. You have to do two things:

Add the configuration options discussed in SMTP server to deliver ALL mail to user@localhost, add the following to your /etc/postfix/main.cf file:

luser_relay = MYLOCALUSER@localhost
local_recipient_maps =

Using the following answer on serverfault ( https://serverfault.com/questions/133190/host-wildcard-subdomains-using-postfix), I added the following (note that you need the postfix-pcre package installed):

In /etc/postfix/main.cf:

 mydestination = pcre:/etc/postfix/mydestinations

In /etc/postfix/mydestinations

/.*/         ACCEPT

This will deliver ALL mail that postfix handles to the configured local user defined in #1, so don't use this for anything other than development.


Partition allignment error. Offset issues

Solution :- after booting from live usb. Open gparted and create partitions for / and swap manually and use the option to leave at least 1Mib in front of each partition.


Strange. I installed pavucontrol and went to the "Configuration" tab, where the "I'm Fulla Schiit" device's profile was set to "Off". Not sure why. Changed back to "Digital Stereo Duplex (IEC958)" and it's working again.


How to set up Dial-Up and VNP on Ubuntu?

First get connected to the wireless connection you have available.
Second click on the network connection icon on the top tool bar where you would have connected to the wireless network. There should be an option for VPN Connections. Choose configure VPN connections. If you see PPPT there already you can edit the connection to match the login info you have.  If you do not see it there use the add option to add it.  Fill in all the fields you have information for and leave the rest at their default settings.


Try to enable experimental features under Settings->Main and then enable plugin bridges and Wine bridges under Settings->Experimental, then refresh the plugins. Under Architecture you should now see Bridged (Wine).
Also dragging the vst file in the Rack window worked for me.


So it turns out the problem was a defective Power source. Swapped that out with a new one and everything is working again.


Where is ubuntuone GUI client on the Gnome Classic Menu?

You can find Ubuntu One in Applications > System Tools > System Settings.

If it is not found, open it using the terminal by typing
ubuntuone-installer


How to remove bus width from particular column in a file in shell script

You can use any stream editor, i.e. sed:

#/bin/bash
for filename in a2bcd, jias, kjsc[4:0], jhsdc ljnd[7], qhqj5qk, ljwndf, qkhe qkjnfqq, jwnwkls, wkjdf[3], wkjen
do
  echo $filename | sed -E -e 's/(.*)(\[.*\])(.*)/\1\3/'
done


Dual monitors will only display in mirrored mode; How do I configure the second one as an extended desktop?

You need to switch into 2D mode
Worked fine for me


Your password is not going to be "hacked" or "leaked".

If you're worried about attacks, a more plausible thing is that an attacker may use a zero-day vulnerability to execute some code on your server, typically with the privileges of the user running the vulnerable program. If the vulnerabile program is run by root, then the attacker can do whatever it wants on your system. This is, remember, without ever having to obtain your password.

If, on the other hand, the process is run by an ordinary user, then the attacker will be constrained by what that user can do, and in particular it will not be able to read or modify any file which that user cannot access.

For a simple Web development server, you do not need to create any account other than the one you use to log on the machine. The Web server process will normally be run by another account which is created automatically (e.g.,www-data for Apache)


Install snmp-mibs-downloader:

sudo apt-get install snmp-mibs-downloader

It install a lot of MIBS in /var/lib/mibs/ietf

Then load with File > Load


Technotrend CT2 4650 not working in fresh install

Upgrading to 4.8 fixed things. Turned out that the 4.4.0 kernel is too old.


Why am I getting this annoying log messages.CRON[17405]: (root) CMD every minute

It is because cron daemon's activity goes to system logs. It is not annoying in my opinion, rather life saving if - let's say - you have to know if crontab is executed or not. Beside that you can control the output by editing the /etc/rsyslog.d/50-default.conf file to this:

*.*;auth,authpriv.none,mail.none,cron.none -/var/log/syslog

The relevant part is the cron.none directive.


There is no way to guarantee which hook runs first in the hook execution scheme, but you can predict which hook series will execute first. When a relation is added the *-relation-joined hooks are fired first (on both services, with no clear winner of who goes first), followed by the *-relation-changed hooks for each service. Since you can't guarantee which of the who hooks in a given relation state will fire first you can trump the relation-changed hook on the Postgres charm by placing your relation-set commands in relation-joined hook in your charm.

This won't work for every charm/relation as it depends on where the heavy lifting is done for each relation. For example, the MySQL charm does all the database creation instructions during the relation-joined hook, so the above wouldn't actually help you achieve anything as you'd still have the race condition.

Ideally unless there's a really good reason using what the postgres charm provides is probably the best way to go.


0xc000000f error when starting Windows from Grub

So you are using GRUB, selecting the windows 7 entry, selecting Windows in the windows boot manager, and then it fails with the error.

This guide should work, however I have not tested this myself and I am not responsible for any data loss. If you are paranoid I would make a entire clone of your hard drive to somewhere else.

Things you will need

USB with the Ubuntu live desktop (aka Ubuntu installer)
Windows 7 repair/install media

What to do:

Boot into the Windows 7 repair/install media, and at the language screen, then press SHIFT + F10 to get a command prompt. Type bootrec /fixmbr followed by bootrec /fixboot.
Reboot your PC to the hard drive. Windows should boot, without any sign of the boot manager.
Reboot into the Ubuntu live desktop media and install boot repair, and have boot repair install GRUB (or use the command line if you know the grub-install params).
Reboot to your hard drive, and you should see the GRUB menu with Ubuntu boot options and a Windows boot option. Boot into Ubuntu, and confirm it boots.
Boot into Windows, install EasyBCD (if it isn't already installed), and add the Linux option to the Windows boot manager.
Reboot your PC, select the Windows option in GRUB. You should see two options for booting at this point - one for Windows and one for Linux/GRUB that you added earlier. Select the Linux option, and if it goes back into GRUB, then the tutorial is complete and your boot system should work again!


Trouble connecting network while installing Ubuntu 18.04

Thanks  for the suggestions. I did some other reading and checking around - it seems that Ubuntu 14.05 is  the most stable and easiest version to install. I  have installed it and it is working fine. Thanks.


Deleted Ubuntu and grub but Windows 10 is not booting

Well in the end this was not successful:

Remove ubuntu partitions from hard drives
Remove grub

only thing which worked was:
to install Windows 10(after trying 1 and 2) using the recovery media. Prior to that - I connected the data cable/Ubuntu live USB to take some back as Windows installation will wipe clean the C: Drive. Other drives - D and E were intact and require nothing from my side.
After that installed Ubuntu 20.4.1 LTS alongside Windows 10 on my PCI NVME hard drive. Live USB was created to boot into UEFI mode and BIOS was with UEFI(disabled Legacy mode and secure boot also disabled).
Ubuntu Installation was totally smooth - everything running fine now.
Somehow for me dual boot Windows/Ubuntu - Ubuntu upgrade from previous LTS to new LTS release never happened successfully. Same happened when i tried to upgrade dual boot Windows 7 or 10/Ubutnu 16.04 LTS to Ubuntu 18.04 LTS. While inplace Windows upgrade worked fine.


My TouchPad is not responding on an Acer Aspire E1-471-6650

You might try enabling the touchpad with Ctrl+Fn+F7 instead of just Fn+F7. I had to do this with my Acer Aspire E431.


Delete all files from the following locations...

Destination directory:
    /usr/local/Nuke9.0v6

Start Menu folder:
    /usr/share/applications/Nuke*

Home folder:
    /home/$USER/.nuke


How do I install steam off a thumb drive

The Windows version of Steam will not natively run on Linux. If you've copied your Steam folder to a USB stick in Windows, this will be the Windows version of Steam. This leads us to several possibilities depending on what it is you're actually trying to do:

Installing Steam on Linux without Internet connection

You will need to download the following file to a memory stick or burn it to some form of optical media:

http://media.steampowered.com/client/installer/steam.deb

This link is available by browsing to the Steam Store About Page on a PC running Linux (if you browse to it on a Windows machine you'll get a .exe file instead, which isn't natively compatible with Linux).

Once you've got this file copied to your Ubuntu machine, you can install it by running the following command:

dpkg -i steam.deb

Note: you will still need an Internet connection on this machine to actually run Steam.

Installing Steam on Linux with Internet connection

To install Steam on Ubuntu, you can simply run the following command:

sudo apt-get install steam

This will install Steam (which will then update itself on first run, and keep itself updated in future).

Running it with Wine

The third option for running Steam on Linux is to run the Windows version of Steam on Linux via Wine.

To do this, you will need to install Wine on your machine.
Once Wine is installed, you can run many .exe files simply by double clicking on them, like you would do in Windows.

If you've already copied your Steam folder from within Windows, once you've got Wine installed you can run Steam simply by running Steam.exe from within the folder you copied.


How to install libxml2-dev (32-bit) package on a 64-bit Ubuntu (11.10)

I came across another way of having lib32 version of libxml2.so installed on 64-bit Ubuntu (12.04) - installing Adobe Reader. It's one of popular applications that most of people would need, so it will make you feel a bit more comfortable than obtaining libxml2 by doing something else.

sudo apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo apt-get update
sudo apt-get install acroread

(Cribbed from http://www.techheadz.co.uk/222.html)


Ubuntu 20.04: Grub Menu Not Visible after Update from 19.10

try ESC button to show menu, but be quick


Installing all applications on a SSD disk and putting all files on HDD disk

Ok, I've managed to get everything working (with great help of @oldfred) and I would like to post the answer to this problem in a condensed form for any lost soul (like I was), who will stumble upon this problem. I would also like to clarify the nomenclature (such as the meaning of partitioning, mounting, etc.) as it can be very confusing and difficult to even post the correct question if you are new to Linux and Ubuntu. Additionally, I have written everything in extended form, since only dropping the code into the answer is very unhelpful to first time linux users. If anything in this answer will be untrue I ask you to alert me to the error and I will edit the answer.

1. Partitioning

Upon purchasing a new computer with dual disk setup (smaller SDD and larger HDD), the active disk will by the default be the one, which you install Ubuntu onto (usually SSD unless stated otherwise during the installation process - for the extensive guide on disk partitioning during the installation of Ubuntu see here). This also means, that all the /home directory files, such as Documents, Videos, etc. will be stored on the SSD. However these, "stationary" files (documents, music, videos, pictures) do not need the improved performance of the SSD and it is thus in our best interest to put them onto the HDD (to free space on the SSD for programs and applications).

Ubuntu's treatment of disks might be rather annoying for Windows users, since in Windows you could easily manipulate different disks in the Computer directory (the disks were marked as :C, :D, etc. respectively). To simplify this, I highly recommed GParted (you can easily install it with Terminal command sudo apt-get install gparted). In GParted you can easily see all the disks and their respective partitions and to what percentage are they used. Partitioning in essence means exactly what the word itself implies - cutting the available disk space onto multiple segments for different purposes. Now, our HDD disks are usually marked as /dev/sdX, where X is a letter a, b... (depending on how many internal HDDs you have). In the top right corner of GParted you can switch between all available internal disks (which are also marked by their respective sizes). HDD will usually be grayed out by default and it's space unallocated and unpartitioned. To start using the disk, we first need to partition it:

1.1 First we need to create a partition table under Device/Create Partition Table. The most standard table for Ubuntu is GUID Partition Table or gpt in the dropdown menu, so you can go with that.

1.2 With the table created we can partition the disk. Since our intended use for the HDD is storage, we do not need to split the disk into parts, but create only 1 big partition with the size of the HDD in question. ext4 can be used as standard file format, the size will by default be set to the entire unallocated (free) space and the type of partition is simply primary partition. Read more on different types of partition here.

WARNING
Partitioning will delete all the information stored on the disk before partitioning, so be sure, to make relevant backups when doing this. In our case, the disk was new, and therefore empty, so this was not needed.

Also, be sure to apply the formed partition by clicking on the green tick.

2. Mounting

With partitioning we have "activated" the disk for usage, but we still need to make the computer "see" this disk. That is what mounting does - it assigns a directory to a certain disk. Any files saved into this directory will thus be saved on that disk. I've come across 2 preferable mount points (directories/files to which we will now bind/mount the disk): Computer/media or Computer/mnt. Of course these are not directories where you would have to mount the disk, but the community seems intent on these two choices predominately.

2.1 First, we will create a directory within either one of these two directories, where we will then put all our documents (this is advisable as /mnt is being used by the system for other things as well). I will name the directory data and create it like this:

sudo mkdir /mnt/data

2.2 Next, since we are rummaging in system files, we need to gain access to the formed directory /Computer/mnt/data (without this step, the files will appear locked in /home folder). Use the command:

sudo chown $USER:$USER /mnt/data

where $USER is replaced by your own username (if you are unsure of this, type whoami into terminal).

2.3 Next, we would like to keep the disk permanently mounted to (after every system boot). For this we first need to determine the UUID (Universally Unique Identifier) of the disk. Type sudo blkid into terminal. The output should look something like this (remember that HDD disks are marked as sdX#, where X is a letter a, b... and # is the partition number):

/dev/sda1: UUID="9ea774e9-f5d9-4fd0-9466-dc1447b52402" TYPE="ext4" PARTLABEL="HDD Storage" PARTUUID="c707796f-8bf9-4e11-8841-17adaa79282e"

Copy the number between "" (in this case 9ea774e9-f5d9-4fd0-9466-dc1447b52402). With this, we will edit the fstab document by typing this into terminal:

sudo -H gedit /etc/fstab

A new document will pop open, and on the end of the document simply add:

UUID=XXXX     /mnt/data    ext4     relatime 0 2

The first column identifies the disk (replace XXXX with the number you copied previously), the second determines the disk mount point, the third the format of data on the disk (be sure to change this if you chose any other format options during disk partitioning) and subsequent columns are now not so important. Then save the document and close it. If any warnings of the following type are afterwards displayed in the terminal, you can ignore them, as is explained in the link.

2.4 To finish mounting the disk, execute the following command into the terminal:

sudo mount -a

To see if your disk is now mounted, go to Disks in Ubuntu Applications, orient yourself to the disk in question and on the bottom in the Contents section the mount point should be stated.

3. Creating links in /home folder

Now it's time to move all our "stationary" files to the newly mounted HDD. I chose to move the Desktop, Documents, Music, Videos, Pictures and Downloads directories. This ensures that only these documents will be moved and not any applications installed in the /home directory (you can visualize these by pressing ctrl+h), as some guides propose moving the entire /home directory to the HDD disk.

3.1 For each directory you wish to move, simply type into terminal:

mv <dir> <location>

For example, moving Music from /home directory into /mnt/data directory:

mv Music /mnt/data

(Be sure that you are in your /home directory in the terminal, when you are moving. If you are not, type cd ~)

3.2 Lastly, we create links to these files in our /home folder for easy access by writing:

ln -s /mnt/data/<dir> $HOME/<dir>

So, for our example:

ln -s /mnt/data/Music $HOME/Music

Do this for every directory you wish to move and voila. You are done.

This is the easiest solution, that I could find, although there are A LOT of them here (for specific purposes). I hope my exaggerated clarity will keep future new linux users from giving up too soon on this, at first sight overly annoying, but then immensely satisfying OS.


Remote access to 14.04.2 desktop through Google's Chrome extension vs. installing X11 server?

Ubuntu has a built in VNC server. search for screen sharing and configure. which is better, is a matter of which performs more practically for you. VNC will be compatible with many of the Android apps, if you want remote access outside of your home network don't forget to forward TCP port 5900 in your router to your computer


How do I ensure all of my extra (internal) hard drives are mounted by default upon boot up of Ubuntu 17.10?

As you can mount them by clicking on the drive in nautilus, your disks already have an entry in /etc/fstab.

Open a terminal by typing Ctrl-Alt-T. Then enter sudo nano /etc/fstab. Then look for the lines where your hard drives are mentioned and change noauto to auto. Ctrl-X will ask you whether to save the changed file and then exit the editor. Ctrl-D or exit will close the terminal window.

For further details see man fstab in a terminal (Ctrl-Alt-T).

Addition with the knowledge of /etc/fstab entries:

gvfs is intended to work just the way you describe: the filesystems are mounted only when a user klicks on them in the GUI file manager (nautilus). If you want to mount them automatically, you have to define 2 mountpoints (e.g. two empty folders data1 and data2) and edit the entries in fstab (by editor or by the disks GUI):

<your uuid1> /home/<your userID>/data1 <file system type> defaults 0 2
<your uuid2> /home/<your userID>/data2 <file system type> defaults 0 2

where "your uuid*" are the unchanged first fields in the current entries,
"file system type" is probably ntfs if your disks have been used in windows before or ext3 or ext4 if they have been used in Linux before.


How can I play AMR files in Firefox on Ubuntu?

VLC can play AMR files. I have used VLC to play AMR files before. VLC also has an firefox plugin which can be used to play AMR files in firefox too .


Why does the "Mouse" preferences GUI not allow me to enable two-finger scrolling?

Press Alt+F2, write gconf-editor, it will open gconf-editor, go to destkop, gnome, peripherals, touchpad and type 2 for the variable "scroll_method". The option will stay grayed but two finger scroll will be enable. Works for me.


Your home folder contains literally every file and setting which you, as a standard user, are able to edit, and which your programs (including the Unity desktop environment and/or panels) are able to edit and save their configurations in. It's basically a sealed box, which you and your programs can only get out of if you know your password (which is one of the reasons Ubuntu is so secure - a virus would need it too). This means it contains all settings related to your desktop, and it explains why your panel settings restore to default if you delete it.

In general, don't touch (or delete!) any hidden files in that folder (files starting with a full stop - or period if you're American). Pressing CTRL+h toggles visibility of hidden files.

As for restoring them... if you moved them to the wastebasket, they are easily restored by opening the wastebasket, selecting the files you deleted, and clicking the "Restore Selected Items" button. It will probably ask you if you wish to overwrite the newly created files which replaced them, you do.

If you permanently deleted them, then you permanently deleted them. It would be easier just to change the settings back yourself than to try to recover them.

Also, can you please clarify what you meant by system volume reducing to zero?

Also, the "Restore missing files" option you mentioned only restores from a backup. If you did not make one, you cannot restore it.


After executing this command sudo ls -l /var/lib/dpkg/info | grep -i <package name> and deleting all files, everything worked fine...


How do you create a live persistent Ubuntu USB on a Mac that will boot to a Mac or PC?

You should be able to accomplish this using diskutil. I last used this method on Sierra, so ymmv on anything later.

$ diskutil list
$ diskutil eraseDisk FAT32 UBUNTU /dev/<YOUR USB DISK ID>
$ diskutil unmountDisk /dev/<YOUR USB DISK ID>
$ sudo dd if=<path to ubuntu live iso> of=/dev/<YOUR USB DISK ID>

Once that completes you need to restart and boot from the live usb.

Once it boots start gparted from the terminal.

Select the USB drive and select the Unallocated partition on it.

Create a new partition, label it ext3/ext4(unsure if other filesystems will work. never tried.) with the label persistence

Exit gparted

Create a mountpoint for your new persistence partition.

$ mkdir -p /mnt/ubuntu_usb
$ mount <USB DRIVE> /mnt/ubuntu_usb

TO enable the persistent storage you need a persistence.conf.

$ echo "/ union" > /mnt/ubuntu_usb/persistence.conf
$ umount <DISK>

Restart the mac and hold down the Option key. You should hopefully have an option for Ubuntu (persistence) to boot from now


Ubuntu doesn't show when restarting MacBook Pro

Macs normal boot process can't see the ubuntu partition and can't boot to it.  You need to install rEFInd which is a fork of refit and is still supported.

I just followed this guide and had no problems

http://www.howtogeek.com/187410/how-to-install-and-dual-boot-linux-on-a-mac/


What does installing/removing an updated kernel version do which takes so long?

This is hard to say with out specifics, but in general:

Update initfs (the in memory file system used to start the system before all the modules are loaded) This can take a while.
Rebuild all DKMS modules, many "third party" modules like video card drivers or Virtual Box modules are distributed as a DKMS package. They get recompiled at every kernel version. Virtual Box's host OS drivers can take a very long time depending how "in use" they are.
Update Grub - This can take a while, or not, depending on setup.
Restart services, though not strictly needed for a kernal update, updating DKMS packages, can require the re-starting of services in some cases. VMWare (I think) for example
Building the system map.
Updating the Dependency tree

Some of these steps can be very fast or very long. For example, rebuilding DKMS packages on a VMWare Server can take hours if you have to wait for the service to shutdown cleanly, while updating DKMS packages on a system with no DKMS modules takes very little time (just enough to check that there are no modules).


wifi problem on MacBook pro early 2015 running Ubuntu LTS 16.04

I reinstalled OS and then this solution https://askubuntu.com/a/624746/492421 have worked. I am sorry, but my question is a duplicate.


Will Ubuntu spin down harddrives in an RAID 10 array?

First, we all would suggest you to use 16.04 LTS version. It has great amount of improvements over its predecessors and also very suitable for SSD. (16.04 has default TRIM function for SSDs.)

If you are planning to use RAID10 I would suggest mdadm tool as an OS based RAID software. It competes very well against hardware RAID, performs better than cheap RAID cards, and is supported very well on Ubuntu. (mdadm works better than hardware RAID with consumer grade hardware).

RAID10 is a good choice since it gives you fast access times and a copy of your data. It does make a difference when accessing/writing files in large numbers or when working with big files. Improvement in transfer speed can be ~1.5 to 2 times with double the number of disks (but access speed also depends on cached data hence can be confusing to compare that without cleared cache). You can go through this page for detailed benchmarks (raid benchmarks on Ubuntu).

Ubuntu would treat the RAID array as any other drive and its spin down times can be modified by the user. It is suggested to use noatime parameter in fstab to prevent spin-down. This is good since spinning down and spinning up reduces the lifetime of the drive considerably. (most server configurations suggest not to play with spin up/down times but just buy drives with low power consumption).

I see no problems with your plan of OS on SSD and RAID10 array for storage. Good luck.

fstab

fstab is a file in which the drives which would be mounted automatically during boot are mentioned and several parameters of those drives are controlled there. You can read more about fstab here fstab at Ubuntu community wiki
Once you create RAID10 array you would list it in the fstab file and then save the file. There you will need to specify noatime for never spin down function.


How can I completely wipe my hard drive along with Ubuntu so that I can boot off of a fresh OS without anything on the hard drive?

You really don't need to. When you install the new OS, you should always have an option to use whole disk or do manual partitioning.

But if you want to do it anyway, boot your pc up on Ubuntu from a USB stick, use gparted (gui) or parted (cmdline) to delete partitions of your harddisk.

Alternatively use, booted from USB, to wipe all data and partitions:

dd if=/dev/zero of=/dev/sdX bs=4096

You have to find what X is (propably a or b) by running 'fdisk -l' or similar.


Is it possible upgrade ubuntu from 13.04 to 13.10 without losing development configurations?

An upgrade through the upgrade tool, should keep your applications and configurations and only upgrade the system files.


You can use dd to write the image to any drive. First find out what your SD card is called. sudo fdisk -l lists all storage devices. Find you SD card. It should be called something like /dev/sdx where x is any letter. If you have the name make sure it's partitions are not mounted. Then you can copy the image to the device:
sudo dd if=/path/to/isofile.iso of=/dev/sdx

Be aware that the SD card is overwritten entirely.

WARNING
Be absolutely sure you have the right device name. Otherwise you could accidentally overwrite some other device and its data.


Dell xps 12 convertible Ubuntu 14.04 no wireless

https://downloadcenter.intel.com/download/17045/Intel-Drivers-for-Linux-#help

IO would check this page out from an internet connected computer. If you can downlado the driver and tell me what extension the download is in (Maybe extract it and post a screen shot of the archive contents) I'd be happy to help you figure out how to get it installed


Ubuntu 18.04 - do not close on 'close' button just minimize

I think that‘s impossible without source code changes to each affected application. It may be possible to hook onto the event management functions of the window management library (X-Windows) to intercept the close button event to change the behaviour of all local applications without recompilation. (That would be a hideous hack though.)

However you can hide the close button from the window border purely through configuration if you remove the close item from the value tied to the org.gnome.desktop.wm.preferences.button-layout key: You can use

the graphical Dconf Editor or
a command-line Dconf/GSettings editor.

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize'

Thanks, pomsky!


How to create a GLib.TimeVal from timestamp?

This is what I came up with, maybe it is of any help:

>>> from gi.repository import GLib, Indicate
>>> timestamp = '1340830988768'
>>> indicator = Indicate.Indicator()
>>> timeval = GLib.TimeVal()
>>> timeval.tv_sec = int(timestamp[:-3])
>>> indicator.set_property_time("time", timeval)
>>>

Do note this section in the GLib reference manual:

  GLib is attempting to unify around the use of 64bit integers to represent microsecond-precision time. As such, this type will be removed from a future version of GLib.


Unity is working but not visible after installing AMD Catalyst 13.8 Beta2

Uninstall it and go back to 13.6. Sadly right now there are some serious xserver / xorg conflicts with 13.8. Also there has been talks of 13.9 floating around somewhere. Maybe give that a try?

I have been looking for a solution myself. While I got some things to fix it temporarily nothing really stuck for longer than a reboot. I would really like to jump up to 13.8. Although I have read that when running Xubuntu there have been less issues. I think I may jump to that ship.


This bug was fixed. Please update and upgrade


Your current way is certainly a good one. Selecting the hidden folders in the Duplicity GUI does work well.

To do so:

In the "Choose Folders" menu, go to your HOME folder. "Smart Folders" (like Recently Used) don't have dotfiles in it (typically).
Press Ctrl+H to show hidden folders/files.
Ctrl-Click select all of the hidden folders/files you DON'T want to back up.
???
Profit.

Of course, you can also run a cp command on a Cron task that copies all of the folders except the ones you want to exclude. Keeping with duplicity though, your GUI way is good.

Just remember to attach the backup media regularly so you don't get flooded with "Backup Delayed" notifications.


Just in case some one else stumbles across this and is left without an answer, the trick here is to interupt boot at grub2 by holding down the left shift key.
Once at the grub screen, select your kernel and prese 'e'.
Scroll down to the line with the kernel and somewhere around 'quiet' and 'nosplash' insert 'noapic'.  Press F10 to boot.

Once logged in, get to a terminal...

sudo apt-add-repository ppa:mactel-support/ppa
sudo apt-get update
sudo apt-get install applesmc-dkms macfanctld

Reboot

I had to interrupt grub2 one last time to insert noapic.
Once logged in, I grabbed all my updates with...

sudo apt-get -y dist-upgrade

Wireless instructions can be found here: https://help.ubuntu.com/community/MacBookPro9-2/Quantal


Ubuntu 11.04 stops booting at grub console

I never got in trouble by using these instructions:
https://wiki.ubuntu.com/Grub2#Recover

First of all, you must start your system from a live cd. Then

"METHOD 3 - CHROOT

This method of installation uses the chroot command to gain access to the broken system's files. Once the chroot command is issued, the LiveCD treats the broken system's / as its own. Commands run in a chroot environment will affect the broken systems filesystems and not those of the LiveCD.

1) Boot to the LiveCD Desktop (Ubuntu 9.10 or later). Please note that the Live CD must be the same as the system you are fixing - either 32-bit or 64-bit (if not then the chroot will fail).

2) Open a terminal (Applications > Accessories > Terminal).

3) Determine your normal system partition - (the switch is a lowercase "L")

sudo fdisk -l

If you aren't sure, run

df -Th

Look for the correct disk size and ext3 or ext4 format.

4) Mount your normal system partition:

Substitute the correct partition: sda1, sdb5, etc.

sudo mount /dev/sdXX /mnt

Example: sudo mount /dev/sda1 /mnt

5) Only if you have a separate boot partition:
sdYY is the /boot partition designation (for example sdb3)

 sudo mount /dev/sdYY /mnt/boot

6)
Mount the critical virtual filesystems:

 sudo mount --bind /dev  /mnt/dev
sudo mount --bind /dev/pts  /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys  /mnt/sys

7)
Chroot into your normal system device:

sudo chroot /mnt

8) If there is no /boot/grub/grub.cfg or it's not correct, create one using

update-grub

9)
Reinstall GRUB 2:

Substitute the correct device - sda, sdb, etc. Do not specify a partition number.

grub-install /dev/sdX

10) Verify the install (use the correct device, for example sda. Do not specify a partition):  sudo grub-install --recheck /dev/sdX

11)
Exit chroot: CTRL-D on keyboard

12)
Unmount virtual filesystems:

sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys

13)
If you mounted a separate /boot partition:

sudo umount /mnt/boot

14)
Unmount the LiveCD's /usr directory:

sudo umount /mnt/usr

15)
Unmount last device:

sudo umount /mnt

16)
Reboot.
sudo reboot "


How to know what drivers and video card am I using?

Run the glxinfo command in the terminal:

$ glxinfo | grep OpenGL

Here's a good article - How to get information about graphics card (GPU) on Linux


The question here goes back to whether Texstudio provides a .deb and whether it is identical to the one in the PPA.

If the package names match up exactly, then you might be able to download the .deb from Texstudio and install on top of the existing (essentially, 'updating' the package manually) by using dpkg -i /path/to/package.deb (replacing the path accordingly).  This will 'override' the installed version, but it does not exactly replicate what apt-get update does, which is check repository servers for updates to download.


I suggest that you take a look at following:

http://www.ubuntu.com/certification/catalog

Edit:

Following raid cards are certified:

http://www.ubuntu.com/certification/catalog/category/RAID


Adjust Firefox and Thunderbird to a High DPI touchscreen display (retina)

Install my Firefox-addon Zoom Menu Elements (or install this file from source on github).
Alternative: you can manually open a new tab about:config in Firefox and search for layout.css.devPixelsPerPx set this value to 2 or 1.5 as you wish to adjust the size of the Firefox icons
(source, bug report)
Install the Firefox-addon Fix for zoomed default-font to fix some issues with huge form elements on some pages (for ex. the login on reddit.com, ... see this question )
Pinch-to-zoom works out of the box (see here), for older versions the grab and drag addon for Firefox makes it possible to navigate the Internet by touch (disable it with the button  in the add-on-bar when using a mouse)
Additionally, (but not needed) install the Firefox addon NoSquint or  Default Fullzoomlevel and chose in settings: default full page zoom level 120%.

In Thunderbird you have to go for the alternative from step 1 in the advanced configuration (although I prefer not to change the overall size but use Ctrl+ and Ctrl- instead, to adjust the size of the email window)


Configuring zz_overrides.ini in Apache versus in Nginx

In Apache you could can use php_flag directives inside a virtualhost configuration (or a .htaccess file inside the document root dir).

The following example mimics your current script, by creating a ./conf-available/$vhost/php_overrides.conf with php override directives per enabled virtualhost and inserts (or updates) an Include directive pointing to that file (paths are Debian style, adapt to your needs):

apache_confdir="${apache_confdir:-/etc/apache2}"
apache_confavailable="${apache_confdir}/conf-available"
overrides_name="php_overrides.conf"
overrides=(
"post_max_size = 2000M"
"upload_max_filesize 2000M"
"max_execution_time 3000"
)
# name of the directive under which the new Include directive will be placed
parentdirective_name="DocumentRoot"
parentdirective_re="^([[:space:]]*)(${parentdirective_name}[[:space:]]+.*)$"

oldpwd="$(pwd)"
cd ${apache_confdir}/sites-enabled
for vhostconf in *.conf; do

   # construct and create/overwrite the per vhost php_overrides.conf file
   vhost_realpath="$(readlink -m "${vhostconf}")"
   vhost_realname="${vhost_realpath##*/}"
   vhost_name="${vhost_realname%*.conf}"
   vhost_confdir="${apache_confavailable}/${vhost_name}"
   [[ ! -d "${vhost_confdir}" ]] && mkdir -p "${vhost_confdir}"

   vhost_overrides="${vhost_confdir}/${overrides_name}"
   printf "php_flag %s\n" "${overrides[@]}" > ${vhost_overrides}

   # construct and insert/update the Include directive
   printf -v includedirective "Include %s" "${vhost_overrides}"
   include_re="^([[:space:]]+Include[[:space:]]+${vhost_overrides})$"
   if grep -qE "${include_re}" "${vhostconf}"; then
       sed -i "s#${include_re}#    ${includedirective}#g" "${vhost_realpath}"
   else
       declare -a directives=()
       while IFS='' read line; do
           directives+=("${line}")
           if [[ "${line}" =~ ${parentdirective_re} ]]; then
               directives+=("${BASH_REMATCH[1]}${includedirective}")
           fi
       done<"${vhost_realpath}"
       printf "%s\n" "${directives[@]}" > "${vhost_realpath}"
   fi
done
cd "${oldpwd}"

However, since it seems all your virtual hosts use the same PHP overrides, it would be easier just to create a file ./conf-available/php_overrides.conf once, include the following line in each vhost configuration, and then create or remove symlinks in  ./conf-enabled to control if it will be used:

# inside /etc/apache2/sites-available/vhost1
Include /etc/apache2/conf-enabled/vhost1/*.conf

So to use it:

cd /etc/apache2/conf-enabled
mkdir vhost1
cd vhost1
ln -s /etc/apache2/conf-available/php_overrides.conf

To stop using it:

rm /etc/apache2/conf-enabled/vhost1/php_overrides.conf


Ubuntu 20.04 Asus Zenbook 14 UX425EA-BM701TS Not able to change brightness. /sys/class/backlight empty

Use the glxinfo -B or inxi -G to check whether the graphics card is actually loaded. If not, you could refer to this question Ubuntu 20.04 no driver loaded for Intel Iris Xe Graphics, where the solution is to upgrade ubuntu to 20.10


How do I download all the assets loaded by a webpage into a directory?

If you're not familiar with the command line, you can use Gwget (which is a GUI for the wget tool suggested by Brian). Selecting 'Download page requisites' in the preferences should give you what you need.


How to take value as value without considering it as string when we do cat and grep

You can use the envsubst utility. For example, given the following configfile

foo=bar
BASE_DIR=$HOME/flshrc
USER=$USER

then

$ envsubst < configfile | awk -F= '$1 == "BASE_DIR" {print $2}'
/home/steeldriver/flshrc


Freezing Ubuntu while installing from live usb

You need to boot with nomodeset parameter, then install Ubuntu, then boot with nomodeset the installed system.

This is the guide how to boot with nomodeset.

Then you will need to install video drivers

sudo apt-get update
sudo apt-get install nvidia-346 nvidia-prime


You can upgrade Ubuntu by using following commands:

Install update-manager-core if it is not already installed:

sudo apt-get install update-manager-core

If and only if upgrading from an LTS release, then edit
/etc/update-manager/release-upgrades and set Prompt=lts
Launch the upgrade tool:

do-release-upgrade

Follow the on-screen instructions.


"Host is down" text showing when entering command "reboot"

You will need to restart the instance through PowerShell:

List your distributions:
wsl --list

You will see something like:
Windows Subsystem for Linux Distributions:
Ubuntu (Default)
Fedora
SUSE

Terminate the appropriate instance:
wsl --terminate Ubuntu

Start Ubuntu

If you are running multiple instances, you can shut them all down with:
wsl --shutdown


That's painful... considering it's your backup drive, I would bite the bullet and ensure those files are safe before trying to use it to install Ubuntu.

I would recommend using a USB drive (that's how I just did it yesterday).  Something like this: http://www.amazon.com/SanDisk-Cruzer-Micro-Flash-SDCZ6-8192-A11/dp/B000UZN2ZK


locked out of my luks volume "Not authorized to perform operation (polkit authority not available and caller is not uid 0)"

Rebooting did not help. Still getting the request for a passphrase but my passphrase was never accepted.
However, a full shutdown and boot solved the issue. Passphrase was requested and given and this time accepted...


I can't use my WIFI on my Asus please help

I have the same wireless interface product as you have and after hours of Googling, I've found a solution. Start out by trying this temporary fix (won't survive a reboot) - open a terminal, and run the following commands:

sudo rmmod iwlagn
sudo modprobe iwlagn bt_coex_active=0

If this works, consider making this permanent. I'm not sure how, but here it is suggested to do the following:

  Go into /etc/modprobe.d and add a text file with this on a single line: iwlwifi bt_coex_active=0

To put this into a single command from the terminal (provide your password when asked):

echo "iwlwifi bt_coex_active=0" | sudo tee /etc/modprobe.d/iwlwifi-askubuntu-q115315.conf

note: I see your network driver is called iwlagn. iwlwifi worked for me, but try to change it in case it doesn't work for you.


What is the best remote desktop tool to connect to Windows from Ubuntu?

You can try remmina. While it uses the same backend as tsclient and friends (the backend being rdesktop). It has a more pleasing UI when compared to tsclient.


How to install Vivotek FD6122 IP videocamera in Zoneminder?

Maybe much to late, but i also had that error for my wanscam clone camera

Failed requesting writeable buffer for reading JPEG image

I got it working perfectly; you just need to see that the resolution given in zoneminder is exactly the same as your camera's setting. I had my cams set as 640x480 and zoneminder as 320x240 and I got these errors and blue image on the cam.

So just kinda what was said above :)


kill its ssh session. Check them by

ps aux | egrep "sshd: [a-zA-Z]+@"

Second column gives you the PID. Then,

sudo kill [-9] PID

Hope this helps.

ps: using the -9 flag will prevent things from stopping "graciously".


How to check if I can connect to a server port?

You can use

 telnet <host> <port>

for example

telnet mail.riseup.net 465

For SSL encrypted connections (this likely is one) you can use

openssl s_client -connect <host>:<port>

for example

openssl s_client -connect mail.riseup.net:465

instead if you want to not only test if you can connect but actually talk to the server.


Compressing ended up compressing home directory

7z a expects and archive name (or a stub, without an extension) and then an optional list of files. If it doesn't get a list of files, it starts from the current working directory and just works recursively.

So to answer your question, nothing deleted or damaged but it has likely made a file called Documents/lolok/.7z (a hidden file). Again, it won't have removed anything.

The permission denied errors are because (it seems) you were running the command as a different user and those directories were protected from other people reading them, eg:

$ ll -d .cache/dconf/
drwx------ 2 oli oli 4096 Nov  7  2012 .cache/dconf/

Here's a real demonstration. We'll start by creating some files and a subdirectory in a test directory.

$ mkdir test; cd test; touch {1..3}.file; mkdir testdir
$ ls -l
total 4
-rw-rw-r-- 1 oli oli    0 Aug 14 08:48 1.file
-rw-rw-r-- 1 oli oli    0 Aug 14 08:48 2.file
-rw-rw-r-- 1 oli oli    0 Aug 14 08:48 3.file
drwxrwxr-x 2 oli oli 4096 Aug 14 08:48 testdir

Then we emulate your 7z command and see what happens:

$ 7z a testdir/

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,8 CPUs)
Scanning

Creating archive testdir/.7z

Everything is Ok

No permissions errors because I own everything in there and have permission for it. And it's created a file called .7z in the subdirectory. Let's list its contents:

$ 7z l testdir/.7z

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,8 CPUs)

Listing archive: testdir/.7z

--
Path = testdir/.7z
Type = 7z
Solid = -
Blocks = 0
Physical Size = 147
Headers Size = 147

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2015-08-14 08:48:26 ....A            0            0  1.file
2015-08-14 08:48:26 ....A            0            0  2.file
2015-08-14 08:48:26 ....A            0            0  3.file
2015-08-14 09:42:16 D....            0            0  testdir
------------------- ----- ------------ ------------  ------------------------
                                     0            0  3 files, 1 folders


upgraded to 13.04 now getting JREDetection "Your security settings have blocked an untrusted application from running

The following can be found on this page

Try to find the installation path of java control panel.  From the terminal

$locate jcontrol
/usr/bin/jcontrol
/usr/java/jre1.7.0_25/bin/jcontrol
/usr/java/jre1.7.0_25/lib/desktop/icons/HighContrast/16x16/apps/sun-jcontrol.png
....
/usr/java/jre1.7.0_51/bin/jcontrol
....

In this case /usr/java/jre1.7.0_51/bin/jcontrol is the one you want.  So launch it from terminal
    /usr/java/jre1.7.0_51/bin/jcontrol
Then you will be able to change the security setting.


Lenovo X1 Yoga 3rd Gen Issues After Suspend

I had a lot of issues with touchpad after suspend. I solved it by installing bios version 1.27:

Download from Lenovo https://support.lenovo.com/us/en/downloads/ds502368)
Use this method to flash the ISO to a bootable USB: https://forums.lenovo.com/t5/Linux-Discussion/SUPPORT-REQUEST-X220-BIOS-UPDATE-INSTRUCTIONS-USB/m-p/553427#M3283 (I had to find the script elsewhere)
Reboot, and apply. Note that there are lots of scary messages when updating bios, but it worked for me.

Now I can suspend, and open lid up, and keep working, without any touchpad problems.


Ubuntu One-related question - How to share files securely?

As far as the security is concerned..Ubuntu One is very good cloud service.
Open Ubuntu One Application on your computer >>Go to "Share Links" tab and type the name of the file you want to share online.
Chose the file and click on enable link.
Now you can share that link by simply clicking "copy link" and paste where you want to share the file.
I am not sure about folders but files can be easily shared this way.


How to solve the error of “Gave up waiting for root device”

Maybe a solution with a Live-CD:

sudo mount /dev/sdXY /mnt

Repair Grub2:

sudo grub-install --root-directory=/mnt /dev/sdX
(not sdXY)

Reboot.

After starting system:

sudo update-grub


Weird that it is not there, maybe you have removed it by mistake?

Anyway,

Open your home folder.
Give Ctrl+L.
On the line-edit that appeared, remove everything and just place a / in it and then press enter.
You are now on your root directory. Bookmark this folder and it will now appear on your left.


Facing error in apt-get update for ubuntu 15.04

edit your /etc/apt/sources.list. you will (probably) find lines similar to

deb cdrom:[Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1)]/ utopic main restricted

in there. either add a # to the beginning of every such line:

# deb cdrom:[Ubuntu 14.10 _Utopic Unicorn_ - Release amd64 (20141022.1)]/ utopic main restricted

or delete those lines altoghether.

also make sure there are no other references to utopic in there anymore. if there are change them all to vivid.

$ sudo apt-get update

should then work.


How to troubleshoot my unstable wireless connection?

I have the same issue reported. It's an open bug since 11.04 . The problem stands in the newer Ubuntu version, 12.04 . Here there are a good description about the problem:
https://help.ubuntu.com/community/HardwareSupportComponentsWirelessNetworkCardsDlink

"Connection speed average is slow and fluctuates. Reported conflicts with driver rt2500. Windows drivers solve the fluctuation, but there are eventual system freezing with ndiswrapper."


How do I arrange my windows automatically?

If you're using compiz, you can enable the "Grid" plugin to use keyboard shortcuts to move windows around the screen in a tiling sort of way.
You'll need to make sure compiz-fusion-plugins-extra is installed (sudo apt-get install compiz-fusion-plugins-extra or use synaptic - probably software center too).
I got the tip from here: http://www.webupd8.org/2009/12/linux-w-compiz-tile-position-and-resize.html
You can do something similar without compiz using this: https://www.omgubuntu.co.uk/2010/08/python-window-organizer-organize-your-windows-using-the-keyboard
I don't think either of these options have an auto tile feature though. Using a default install, I'm not sure this option is anywhere (not anywhere that I know of anyway). In that case, some of the other answers already posted might be more useful.


nohup ./nheqminer_cpu -l equihash.hk.nicehash.com:3357 -u WalletID.work1 -t 14 &


Just add libopts25 along with ntp like this sudo apt-get install ntp libopts25:

$ sudo apt-get install ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
ntp : Depends: libopts25 (>= 1:5.18.7) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

$ sudo apt-get install ntp libopts25
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
 ntp-doc
The following NEW packages will be installed:
 libopts25 ntp
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 576 kB of archives.
After this operation, 1,792 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libopts25 amd64 1:5.18.7-3 [57.8 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 ntp amd64 1:4.2.8p4+dfsg-3ubuntu5.6 [518 kB]
Fetched 576 kB in 0s (615 kB/s)
Selecting previously unselected package libopts25:amd64.
(Reading database ... 207420 files and directories currently installed.)
Preparing to unpack .../libopts25_1%3a5.18.7-3_amd64.deb ...
Unpacking libopts25:amd64 (1:5.18.7-3) ...
Selecting previously unselected package ntp.
Preparing to unpack .../ntp_1%3a4.2.8p4+dfsg-3ubuntu5.6_amd64.deb ...
Unpacking ntp (1:4.2.8p4+dfsg-3ubuntu5.6) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libopts25:amd64 (1:5.18.7-3) ...
Setting up ntp (1:4.2.8p4+dfsg-3ubuntu5.6) ...


Pointer not moving, mouse inputs still work in 16.10 live build

I had exactly the same problem, and from what I've read so far this seems to be a problem with newer Nvidia graphics cards (GTX 10xx) and the nouveau display driver.

To get my cursor working during installation I did the following:

Boot from CD/USB
In GRUB, select Install 'your distroname' but don't start it
Press the e key to change the boot paramters
In the line that starts with linux add  nomodeset in front of quiet splash so it looks like nomodeset quiet splash
Press F10 to boot with these options

Now the installer wasn't in my monitors native resolution but the mouse was working!


PPTP VPN connects via NM but goes down during SSH connection

The most frequent cause of an issue like this is related to the router hardware and not your connection.

I have seen this problem before, when a Cisco router was used and configured to use a maximum MTU of 1500, and a VPN concentrator was used with a client MTU setting set to 1500.  Your computer sends the vpn concentrator a packet of data that is 1500 bits, but the vpn tunnel it's self adds overhead (about 37 bits if memory serves) which makes the total size 1537 which can't make it through the router. This is a malformed packet and the router drops it.

The reason windows machines connect is because it ignores the concentrator's "suggestion" to set the packet size to 1500 and just uses what ever it wants.

Testing:

To make sure this is the problem, try sending a large file (about 1 meg) across the vpn without ssh. This will isolate any ssh issues from lower layer issues. If you get the same disconnect, it's probably the MTU issue.

The fix:

The proper fix is to have the network admin fix the vpn concentrator, setting a lower MTU then the router. Or perhaps fix the router...

From your side you can adjust the vpn MTU size down to say 1400 and everything will just work. There are several ways to do this but this page should give you a head start.


libperl5.20 rxvt-unicode-256color Ubuntu 14

I encountered the same issue. I found a newer version of rxvt on launchpad, which does not conflict with my current perl version anymore. Here is the link:
https://launchpad.net/ubuntu/trusty/amd64/rxvt-unicode-256color/9.19-1

Just in case that the link went down, I've also uploaded the .deb file onto Dropbox: https://db.tt/D990X6nd

You can use dpkg to install it:

sudo dpkg -i rxvt-unicode-256color_9.19-1_amd64.deb


Setup 3rd/4th level characters (typographic layout)

In DConf (to edit it I've installed dconf-editor) go to org.gnome.desktop.input-sources. The target property is xkb-options. If «Alternative Characters Key» was already set to R.Alt, one could find 'lv3:ralt_switch' option in the list represented by this property. To enable typographic layout on 3rd/4th level one should add 'misc:typo' option. After this xkb-options will look like: ['grp:alt_shift_toggle', 'grp_led:scroll', 'lv3:ralt_switch', 'misc:typo'] and typographic layout will become enabled as well.

Upd: Without dconf-editor it is possible to update xkb-options using gsettings like this:

$ gsettings get org.gnome.desktop.input-sources xkb-options
['grp:alt_shift_toggle', 'grp_led:scroll', 'lv3:ralt_switch']
$ gsettings set org.gnome.desktop.input-sources xkb-options \
"['grp:alt_shift_toggle', 'grp_led:scroll', 'lv3:ralt_switch', 'misc:typo']"


How to make my Dell 1390 wlan minicard work

Using the Additional Drivers window deactivate the STA driver.

Connect you D630 via a wired connection.

Install the following packages:

sudo apt-get update
sudo apt-get install firmware-b43-installer
sudo apt-get remove bcmwl-kernel-source

reboot

source


How can I reset my vlc media player back to its original settings after someone has messed all the settings up for playing movies?

Option 1:
Delete the ~/.config/vlc and ~/.cache/vlc folders.
To do this execute  : rm -r ~/.config/vlc ~/.cache/vlc
Note : Old versions of VLC had the data stored in ~/.vlc
Option 2:
Execute : vlc --reset-config --reset-plugins-cache
Option 3:
Open VLC --> Tools-->Preferences-->Reset Preferences


How to install Ubuntu system on SSD and storage media on HDD?

On installation make sure that you put the /home directory on the HDD. You can map your whole HDD (or only a partition) to the mount-point /home. This way everything you save in your /home directory would be saved on the HDD.

On the other hand you could create a completely new, separate, directory like /data that is a mount-point of your HDD(like /dev/sdb1 or so) and contains all of your data. But this way you'll have to adjust all the relevant soft-links and hard-links to the new location.

Both options are viable.


Installation requirements checklist in Landscap openstack

Please check the job-handler.log file in the landscape server under /var/log/landscape-server, it might have some clues.


Find file based on content of entire file, not per line

You could use a combination of tail and grep e.g.

find . -type f -exec sh -c 'tail -n1 "$1" | grep -q "foo"' sh {} \; -print


How do I stop Grub from scanning particular disks

I have many installs, some obsolete and lots of partitions, but only 1TB. First thing I do is turn off os-prober and add only the boot stanza's I want into 40_custom. I include 40_custom in my backups.
sudo cp -a /boot/grub/grub.cfg /boot/grub/grub.cfg.backup
sudoedit /etc/default/grub

then add
GRUB_DISABLE_OS_PROBER=true
sudo update-grub

Then we copy Windows boot stanza from grub backup to 40_custom. Use your editor, example is with gedit. You can open backup read only, but need sudo to open 40_custom.
gedit /boot/grub/grub.cfg
sudo nano -B /etc/grub.d/40_custom
sudo update-grub

Similar:
Grub menu with Windows 10 and Ubuntu 14.04
https://help.ubuntu.com/community/MaintenanceFreeCustomGrub2Screen
Mega-Thead, lots of examples of boot stanzas, best to start at end for latest info.
https://ubuntuforums.org/showthread.php?t=2076205
https://ubuntuforums.org/showthread.php?t=2076205&page=54&p=13787835#post13787835
How to update grub on a dual boot machine?


Unable to lock screen after upgrading to 12.04

Sometimes, after upgrading to Ubuntu 12.04, the Lock Screen functionality stops working.
The likely problem is that gnome-screensaver has been uninstalled.
Just do on the terminal

  sudo apt-get install gnome-screensaver

If you want to read more, can look on this link


What would cause 'ping localhost' to fail?

Is there an interface configured with lo0 or any other interface with 127.0.0.1?
Check the Rx packets/Tx packets count.
Also, check to see if lo0 is configured in /etc/network/interfaces.

output of 'ifconfig'
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1440 (1.4 KB)  TX bytes:1440 (1.4 KB)


how to clear server or network share connection history in ubuntu 13.04?

The history is stored in either ~/.config/nautilus/servers or ~/.cache/nautilus/servers. If you rename or delete this file your recent 'connect to server' locations will be cleared.


It was removed in 16.04. The publishing history says:

  Deleted on 2016-03-10 by Martin Pitt
  (From Debian) ROM; RC buggy and dead upstream; Debian bug #814005


How to change path of partition in Grub2

just re-run grub-mkconfig discussion here: http://kubuntuforums.net/forums/index.php?topic=3106368.0


If it has an eg. Intel HD 3000 chipset or an integrated graphics chipset, maybe this PPA can be of help: https://launchpad.net/~xorg-edgers (to be used with care).

Take a look on the xorg-edgers PPA, add it sudo add-apt-repository ppa:xorg-edgers/drivers-only (this is the relatively safe one) and do an sudo apt-get update && sudo apt-get upgrade, maybe it can already update your Intel xorg driver.

Else you can try the unsafe one (you'll find it on the PPA Launchpad link i mentioned above).

Remember using the edgers PPA can break your graphics.

If you have any issues - you should use ppa-purge to remove the PPA.


Bluetooth headset keeps disconnecting when idle on Ubuntu 20.04

I also have this issue with one of my bluetooth speakers. You may try different things as suggested in similar posts on this forum, like connecting your bluetooth speaker using terminal instead, updating bluetooth/bluez, updating pulseaudio etc. (Information on these have been provided in the last part of my answer.) But none of them seemed to work for that particular speaker of mine. If you have already tried these things and still could not solve the issue, then read on! :)
Later I figured out that it was more of a speaker issue than that of Ubuntu because when I connect another bluetooth headset of mine, it does not disconnect after a while and also, the speaker which was getting disconnected showed the same behavior when I used it on Windows 10 and Android. Some bluetooth models disconnect after some minutes of inactivity so as to save the battery.
Therefore, there might be an option in your bluetooth headset to disable this battery saving feature. If there is no such option, then you may try this temporary solution but it works at least. Play any media on any media player on your PC, put it on repeat loop and then decrease the media player volume to 0%. This makes sure that your bluetooth headset is not sitting idle and therefore, prevents it from disconnecting.
I know this may not be a good solution for you but I thought to share it with you as it works at least. :)
(Extra Information) Other ways to solve the problem as has already been suggested in posts having similar problems:-

Connecting through terminal and putting it on trusted list:-
Type these codes on the terminal

    bluetoothctl

    power on

    scan on

    connect XX:XX:XX:XX:XX:XX

    trust XX:XX:XX:XX:XX:XX

where, XX:XX:XX:XX:XX:XX is the bluetooth address of your headset.

Updating bluetooth/bolez

    sudo add-apt-repository ppa:bluetooth/bluez

    sudo apt update

    sudo apt install bluez

Updating/installing pulseaudio

    sudo apt-get install pulseaudio-module-bluetooth

    killall pulseaudio


Convert text file with colon-separated values to html table

Works with gawk or nawk, but not mawk.

awk -F '[[:blank:]]*:[[:blank:]]*' '
    BEGIN {print "

Name	Age	Tagid

"}
    {
        name  = $2; getline
        age   = $2; getline
        tagid = $2
        print "
" name "	" age "	" tagid "
"
    }
    END {print "

"}
' Data.txt > Data.html

This assumes that there will be exactly 3 lines for each record, in the order name, age, tagid


Can someone tell me how to install reaver-wps?

You need to install libpcap*-dev first:

sudo apt-get install libpcap*-dev

Extract the tar file, then from the terminal:

cd /path/to/src
./configure --prefix=/usr
make
sudo make install


I think it must have also been a quality issue of the monitor. I plugged in a Dell U2413 Ultrasharp and everything is fine.


how to recover grub after installing windows next to ubuntu in netbook(no optical drive)

You can use a software named Super Grub2 Disk.
From there you could have a grub entry then you can update-grub and install it again.

You can also do it via CLI
http://www.gnu.org/software/grub/manual/html_node/Making-a-GRUB-bootable-CD_002dROM.html

you can make an iso for your grub and burn it into cd then after installing your windows you can restore the grub but you need to update it since entries will be changed. The rest is easy if you have prob you can find your answer here.


appleid.apple.com will not loaded on Ubuntu

It looks like Apple is filtering on User Agent. I just switched mine to Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 and it worked fine.


Ubuntu server 16.04 won't boot after installation, Fail to start LXD

This problem is after upgrade. LXD service needs to be restarted using the root account.

sudo service lxd restart

You have to reboot afterwards, e.g. using this command:

sudo reboot


How can multiple clients access single remote desktop?

If i understand you correctly, yes.

There's something called x2go. Which is basically something simuler to citrix.

This should get you started:
http://www.ubuntugeek.com/install-x2go-server-and-client-on-ubuntu-15-04-vivid-vervet.html

Project HP: http://wiki.x2go.org/doku.php/start

NB:It does not support the Unity Desktop.


Cannot run QjackCtl on ubuntu 16.0.4 for MIDI keyboard (QXcbConnection error)

qjckctl wants to show a GUI on your computer, so you need an X server. Linux systems have one built in, but on Windows, you need to install a separate one (e.g., Xming). And you have to enable X11 forwarding in your SSH configuration.


Does encrypting the hard drive affect file sync with programs like Dropbox, Ubuntu One, Spider Oak, Insync, and others?

There is a bug report which may be relevant, suggesting that some encrypted filesystems don't handle inotify events properly (and hence the syncronisation daemon doesn't detect changes to files, only differences it finds when it scans on startup).

It's unclear from the bug report whether this has been resolved or what the current status is, I'm afraid.


Add the notification area to your panel. You do that by right-clicking on the panel, "Add to Panel..." and choosing Notification Area.

If network icon is still missing, try to restart the network manager with

sudo service network-manager stop
sudo service network-manager start

or simply

sudo service network-manager restart

If that doesn't work, post output of this

lspci -nnk


Open file or folder location directly when searching for it - Nautilus

I don't know about any inbuilt function that could achieve this, but you could use a simple Nautilus script:

#!/bin/bash

nautilus "$(dirname "$1")"

In fact, you could even direct Nautilus to the file right away and it would still open the parent directory:

#!/bin/bash

nautilus "$1"

With this script Nautilus will also highlight the file within the directory.

See here for more information on installing Nautilus scripts:

How can I install a Nautilus script?

You could then proceed to set up a shortcut for the script. I'd advise you skip step 2 and 4 of that answer as they don't appear to be necessary. If you named your script something like "Open parent directory" it should be easy to find it in the accels file and change the hotkey. The line should look something like this:

(gtk_accel_path "<Actions>/ScriptsGroup/script_file:\\s\\s\\shome\\sshivshnkr\\s.gnome2\\snautilus-scripts\\sOpen%20parent" "F4")

In this case the shortcut would be F4.


Installing ubuntu on second hard with windows on the other, but how?

Unplug the windows hard drive. Then boot up the Ubuntu LiveCD and install.

Then once you've installed Ubuntu plug your Windows HDD back in. Your computer will now boot to whichever hard drive is set to boot first in your BIOS. Set it so that your Ubuntu drive boots first and boot your fresh Ubuntu install.

Once you're in Ubuntu, use sudo-update-grub in the terminal. This should update your grub.cfg file (the configuration file for GRUB2, the bootloader for Ubuntu). Upon reboot, if that doesn't work, there are a ton of tutorials that show how to manually configure your grub.cfg file for Windows.


"unmet dependencies" after upgrading to Ubuntu 15.10

As you receive the you have held broken packages error message,
execute sudo apt-get install -f, which will fix it.

More information from the man page :

-f, --fix-broken
           Fix; attempt to correct a system with broken dependencies in place.
           This option, when used with install/remove, can omit any packages
           to permit APT to deduce a likely solution. If packages are
           specified, these have to completely correct the problem. The option
           is sometimes necessary when running APT for the first time; APT
           itself does not allow broken package dependencies to exist on a
           system. It is possible that a system's dependency structure can be
           so corrupt as to require manual intervention (which usually means
           using dpkg --remove to eliminate some of the offending packages).
           Use of this option together with -m may produce an error in some
           situations. Configuration Item: APT::Get::Fix-Broken.


Crashing korgac in kubuntu when starting on Plasma 5.8

Both korganizer (package to which korgac belongs) and kontact are obsolete and replaced by kaddressbook as of 4:16.04.3-0ubuntu2~ubuntu16.04~ppa63 (if not sooner, run dpkg -S $( which korgac ) and dpkg-query -s kaddressbook for details).

You can safely remove kontact and korganizer using apt


Kvm: 'kvmvapic.bin': No such file or directory

Despite not knowing what is the problem, i can give you some tips. First you can check if the problem is caused by that missing file. Using apt-file i get

$ apt-file search kvmvapic.bin
qemu-common: /usr/share/qemu/kvmvapic.bin
seabios: /usr/share/seabios/optionrom/kvmvapic.bin

So you should install qemu-common to get rid of that error.

Also you must check that your computer can run KVM with kvm-ok command:

$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

As a last advice, despite using kvm-spice should enable by default KVM, you can try passing the flag -enable-kvm. Also you can redirect the logging to a file using -D file.log and try to find some info there.

Hope this helps.


Cache Memory and fglrx driver slows computer

Ok, I'm pretty sure I've identified the problem.

It might relate to this bug (720446) and this bug (779717)

Has to do with memory leakage by unity, compiz and the system load indicators.


Alternatives for paint.net that can be used for pixel art

Gimp fits your requirements, you can get it in the software store.
It will allow seperate windows as well as pixel art


Are there keyboard shortcuts for opening/using the filter on the unity dash?

There are no shortcut keys for the filters, otherwise they would be listed in the question you linked.

You can however file a wishlist bug asking for the feature to be considered:

How do I report a bug?


How do I switch between Unity and Budgie desktop environments in Ubuntu 16.04?

I solved it. The catch was centered around the packages that came with budgie (because of which, I had plank overlapping with the unity panel,etc.) and the greeter (to fix the crappy login/lockscreens which prevented switch between budgie and unity).

I searched around a proper way to install budgie-remix on ubuntu xenial and found that just

sudo add-apt-repository ppa:budgie-remix/ppa
sudo apt install budgie-desktop budgie-welcome

was enough. Apparently installing budgie-desktop-environment was bringing in so many additional packages bundled with that desktop environment (which are general utlities generally installed when an operating system is installed) which were unnecessary and in fact overlapping over similar packages provided by Ubuntu. So I purged and reinstalled using above commands.

After installing again, I had to change the default greeter to the default one used by Ubuntu, the unity-greeter. Budgie uses its version of the gtk-greeter which wouldn't allow a switch between the two desktop environments.

I guess we can use unity-greeter only if running lightdm  as the display manager. Luckily, budgie uses lightdm, so it was just a matter of changing the greeter session to unity-greeter.

I just had to edit the greeter-session option in /etc/lightdm/lightdm.conf, then change the line

greeter-session=lightdm-gtk-greeter //(or whatever was after the '=', I don't remember clearly)

back to

greeter-session=unity-greeter


Strange characters appearing when I use the Ctrl and Arrow keys to navigate

What is in your ~/.inputrc and /etc/inputrc? The minimum to get those keys working is, I think:

# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word

If you have these in /etc/inputrc, the file needs to be included from ~/.inputrc, so check that it has the following line:

$include /etc/inputrc


Ubuntu iso customization with a different kernel version, boot screen is scrambled

I managed to make it work with this configuration of iso/boot/grub/grub.cfg

if loadfont /boot/grub/font.pf2 ; then
        set gfxmode=1280*1024
        insmod efi_gop
        insmod efi_uga
        insmod gfxterm
        terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

set timeout=5
menuentry "Try Ubuntu without installing" {
        set gfxpayload=keep
        linux   /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed boot=casper  nomodeset video=uvesafb:mode_option=1280x1024-24,mtrr=3,scroll=ywrap ---
        initrd  /casper/initrd.lz
}
menuentry "Install Ubuntu" {
        set gfxpayload=keep
        linux   /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity  nomodeset video=uvesafb:mode_option=1280x1024-24,mtrr=3,scroll=ywrap ---
        initrd  /casper/initrd.lz
}
menuentry "OEM install (for manufacturers)" {
        set gfxpayload=keep
        linux   /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity  nomodeset video=uvesafb:mode_option=1280x1024-24,mtrr=3,scroll=ywrap oem-config/enable=true ---
        initrd  /casper/initrd.lz
}
menuentry "Check disc for defects" {
        set gfxpayload=keep
        linux   /casper/vmlinuz  boot=casper integrity-check  nomodeset video=uvesafb:mode_option=1280x1024-24,mtrr=3,scroll=ywrap ---
        initrd  /casper/initrd.lz
}


Try this simple workaround:

sudo apt-get clean
sudo dpkg --clear-avail
sudo apt-get -f install


Simple explanation

sudo apt autoremove removes packages and program dependancies which were once needed but now are not.

Detailed explanation

Whenever you install an application (usingapt-get) the system will also install the software that this application depends on. It is common in Ubuntu/Linux that applications share the same libraries. When you remove the appplication the dependency will stay on your system.
Whenever you install an application (usingapt-get) the system will also install the software that this application depends on. It is common in Ubuntu/Linux that applications share the same libraries. When you remove the appplication the dependency will stay on your system.

So apt-get autoremove will remove those dependencies that were installed with applications and that are no longer used by anything else on the system.
So apt-get autoremove will remove those dependencies that were installed with applications and that are no longer used by anything else on the system.

How to use it

To use this command simply go to your terminal and type sudo apt-get autoremove. The terminal will then show you a list of all the programs which are no longer being used on the sytem and have no use and it will prompt you to remove them with (Y) and not to remove them with (N)


AWN dock doesn't differentiate the active window

I found a setting under awn theme customization called Active Rectangle which was exactly what I was looking for. After changing that setting to my need, I was able to see a rectangle on the active window icon. Below is the screen-shot.


Getting Internal Error in Android Studio Installation

Ok, Take a breath ,

This is not a path variable issue if it was you would not never get a screen printed with JAVA Version 1.5 or x.x
2.You are having an issue because of this if you see the real error which in the screenshot line which is : caused by sun.misc in gnu.gcj runtime line

So the above error can be solved by removing the gcj package and installing the any sun or oracle java because running intellij under gcj is not supported

Focus on caused by line