Unstable WiFi connection on Ubuntu 16.04

Your Wifi card is a Qualcomm Atheros Device [168c:0042] (rev 31). There are many bug reports you can review to find similar problem and recommended solution(s):

Qualcomm Atheros Device [168c:0042] (rev 30) wireless device is not working properly
Wifi not active: Qualcomm Atheros Device [168c:0042] (rev 30)
168c:0042 (rev 30) wifi not supported
Qualcomm atheros network controller [168c:0042] (rev 30) does not work
168c:0042 (rev 30) Qualcomm Atheros Device

[168c:0042] (rev 30) wifi not working in acer E 15
Qualcomm Atheros wireless card [168c:003e] (rev 32) not supported
Qualcomm Atheros Device [168c:0042] (rev 30) not working on Ubuntu
Qualcomm Atheros Device [168c:0042] (rev 30) not working on Ubuntu 14.04
Qualcomm Atheros Device [168c:0042] (rev 30) not working on Ubuntu
Qualcomm Atheros Device [168c:0042] (rev 30) not working on Ubuntu 14.04

In addition to the bug reports, there are problems and solutions posted on various forums:

Wireless adapter issues with Qualcomm Atheros [168c:0042] (rev 30)

Qualcomm Atheros Device [168c:0042] (rev 30) With Ubuntu 14.04 is not working
Qualcomm Atheros Device [168c:0042] (rev 30) Wi-Fi driver installation

I have a similar card revealed using lspci -nnv:

3c:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)
    Subsystem: Bigfoot Networks, Inc. QCA6174 802.11ac Wireless Network Adapter [1a56:1535]
    Flags: bus master, fast devsel, latency 0, IRQ 136
    Memory at dd200000 (64-bit, non-prefetchable) [size=2M]
    Capabilities: <access denied>
    Kernel driver in use: ath10k_pci
    Kernel modules: ath10k_pci

The same driver ath10k_pci is used as your card. So "one driver fixes all" approach is used for bugs with your card and mine. The one bug I've been following has been fixed but it took two years to reach upstream:

Qualcomm Atheros wireless card [168c:003e] (rev 32) not supported

To narrow down which bug effected me most accurately I used dmesg | grep ath10k:

[    3.973278] ath10k_pci 0000:3c:00.0: enabling device (0000 -> 0002)
[    3.974377] ath10k_pci 0000:3c:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    4.253816] ath10k_pci 0000:3c:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:3c:00.0.bin failed with error -2
[    4.253822] ath10k_pci 0000:3c:00.0: Direct firmware load for ath10k/cal-pci-0000:3c:00.0.bin failed with error -2
[    4.254750] ath10k_pci 0000:3c:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[    4.254752] ath10k_pci 0000:3c:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[    4.255179] ath10k_pci 0000:3c:00.0: firmware ver WLAN.RM.4.4-00022-QCARMSWPZ-2 api 6 features wowlan,ignore-otp crc32 4d458559
[    4.318661] ath10k_pci 0000:3c:00.0: board_file api 2 bmi_id N/A crc32 6fc88fe7
[    4.885699] ath10k_pci 0000:3c:00.0: Unknown eventid: 90118
[    4.886304] ath10k_pci 0000:3c:00.0: htt-ver 3.32 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[    4.987424] ath10k_pci 0000:3c:00.0 wlp60s0: renamed from wlan0
[    5.820647] ath10k_pci 0000:3c:00.0: Unknown eventid: 90118

Believe it or not this is today's dmesg after the bug is fixed. The log with the bug can be viewed at the bug report just linked.

I wish there was a one-line answer I could have posted for you but at this point I can only point you in the right direction for doing your homework.


Unable to hibernate with virtualbox running

I had the same problem, "pause" the virtual-guest-XP (HostKey-P) did work some times but often NOT. Putting the VM-Guest-XP in "saved-state" let the system hibernate again with no problems.
I wrote a small script, put it in /etc/pm/sleep.d/05_virtualbox (don't forget chmod a+x 05_virtualbox) and power-management will do the save-machine-state and start procedure on VMs automatically...

#!/bin/sh

# File: /etc/pm/sleep.d/05_virtualbox  #(at least in ubuntu/fedora)
#
# This hack saves-state all VirtualBox-VM's off user $VBUSER on hibernate/suspend,
#   saves the list of this VMs in $VM_LIST_FILE, and on thaw/resume it starts all
#   VMs in that list again, and removes $VM_LIST_FILE.
# BUGS: don't use the same NAME for different VMs, or rewrite the script to use UUIDs
#
# a REAL hack, tried to comment as much as possible, but the chosen syntax is obfuscated,
#   sorry...also sorry for the bad english...
#
# Writer (guilty person): Lutz Langenbach
# Copyleft: do what you want with the Code
# Help: VBoxManage 2>&1 |less or http://www.virtualbox.org/manual/ch08.html

VM_LIST_FILE=/var/tmp/vms-in-saved-state-list
VBUSER=Put_YOUR_username_here

PATH=/sbin:/usr/sbin:/bin:/usr/bin

case "${1}" in
  suspend|hibernate)
    # print list of running VM's output: "vm-name" {vm-uuid}\n
    # extract only the name of VM's and send
    echo -n "Send savestate to VM's:"
    sudo  -u $VBUSER  VBoxManage list runningvms \
    |perl -ne 'chomp;s/^"([^"]*)".*/\1/; print $_; system("sudo -u '"$VBUSER"' VBoxManage controlvm \"$_\" savestate && echo \"$_\">>'"$VM_LIST_FILE"'");'
    echo ..done
    ;;
  resume|thaw)
    # get each line in $VM_LIST_FILE, use it as VM-Name and send start to it
    echo -n "Send resume to VM's"
    cat $VM_LIST_FILE | perl -ne 'chomp;s/^"([^"]*)".*/\1/; system("sudo -u '"$VBUSER"' VBoxManage startvm \"$_\"");'
    rm -f $VM_LIST_FILE
    echo .
    ;;
  *)
    echo "Don't know what to do, 1st Arg was:${1}; Must be suspend|hibernate|resume|thaw"
    ;;
esac


DDR RAM (double data rate) may be reported as half it's frequency.  This is normal, just multiply the speed by two to get it's true frequency.

As for lag, the best solution I can offer would be to change your desktop environment to something more lightweight.  Hopefully you can find an environment that has a feature set you enjoy, while being light enough to work well with your computer's abilities.


Ubuntu server with GUI starting at console

If using the Raspian OS then the option to do exactly what you want is in the raspi-config, it allows the disabling of the desktop loading then you can start when wanted. If not wanting to run that OS try this below, it is for Ubuntu a version older but probably still used by them.
https://linuxconfig.org/how-to-disable-enable-gui-on-boot-in-ubuntu-20-04-focal-fossa-linux-desktop


Keystroke error in Unity after upgrade to 14.04

After checking user275435-comment, I found a solution:
I looked through all shortcuts and disabled (press backspace) all with a hexcode, e.g. 0xa1.
Now the c-key works again.


How to clear history in Ubuntu Web Browser

I found it at /home/myaccountnamestuff/.local/share/webbrowser-app/Cache2

The sqlite files have history content.


How to build ubuntuone-client so that it doesn't depend on nautilus and gnome

The Ubuntu One file synchronization daemon, ubuntuone-syncdaemon and the related commandline utility u1sdtool, are python programs and as such don't need “building” in the traditional sense (the parts of ubuntuone-client that need building are the nautilus extension—which you don't want—and the icons used by it). At runtime u1sdtool simply talks to syncdaemon over dbus, and syncdaemon has very narrow dependencies on some services provided by the Ubuntu desktop, and then again only via dbus (so you could in theory satisfy the dependencies with another service that provided the same API).

You need something on the session bus providing org.freedesktop.Secret.Session and related interfaces. This is used by ubuntu-sso-client, which is used by syncdaemon to provide the needed credentials.

You probably also want something on the system bus providing org.freedesktop.NetworkManager (typically Network Manager itself) to give the syncdaemon awareness of whether you are connected to the network or not. This isn't essential, however.

You also need the following python libraries: configglue, dbus (obviously), oauth, pyinotify, simplejson, twisted, xdg, and ubuntuone.storageprotocol (which in turn depends on some of the above and also protobuf). Optionally you could have pynotify, zeitgeist, and some Unity-related things that I'm assuming you won't have.

Good luck porting, and if I've forgotten anything or you get stuck, please let us know!


Window glitches and lagging problems in Ubuntu 14.04

Your GPU isn't completely supported. You can use a workaround or disable the GPU driver and use the CPU for rendering.

Workaround

Install the CompizConfig Settings Manager.

Open it, then go to Composite

Set as follows (change the refresh rate according to your monitor if needed):

Go back and go to OpenGL

Set as follows:

Disable the Intel GMA GPU

Open a terminal and enter:

`sudo apt-get remove xserver-xorg-video-intel`


Additional authentication via script's exit status upon OpenVPN client connection to the server

First, have you tried running the script from the command line?  Does it return exit 1? Have you tried debugging your if statement? Does /etc/secretfile exist? If it doesn't, the script is doing what you're asking it to do. What are the permissions for the secretfile? If the user can't access it, then it may not "exist" to them.

Lock a user account via expiry

Instead of putting the file there, or removing it, could you just lock the account?

Lock the account when you don't want the user to access the machine:

usermod username -e 1999-01-01

When you want to allow access, unlock the account:

usermod username -e

Here, we use something native to Linux authentication (vs our own, custom scripts) to solve the problem, which should help prevent additional security risks.  You could shiv this in as you described if you really wanted or needed to do so.  For example, lock/unlock the account, using a cron job, or by polling for the files, vs complicating auth upon connection.

Restrict via blacklist/whitelist groups in pam

If you don't want users accessing the entire system, vs restricting individual users, you have other options, such as disabling SSH entirely, limiting SSH connection to a whitelist CIDR block, or most simply and in-line with your goals, using pam against a specific group.

/etc/pam.d/system-auth

auth required pam_listfile.so onerr=fail item=group sense=allow file=/etc/login.group.allowed

/etc/login.group.allowed

wheel
sudo

In this example, we only allow users in wheel or sudo to login.  This will allow you to disable login to most users, while letting some admins access, or revoke all access if you so choose.  You'll want to make sure this is owned by root and has something like 644 permissions to prevent unauthorized writes (modeled after /etc/password permissions).

Use two-factor, one-time passwords (OTP) in pam

This is just a cool, alternative that could help restrict access based on a list of users with access to OTP secrets. The pam_oath module is easy to set up, and supports FOSS clients, such as Authenticator.  This example shows user-based OTP, but can be adjusted for groups, similar to the previous example.  You'll need oath-toolkit and want qrencode.

touch /etc/users.oath
chown 600 /etc/users.oath # Will contain sensitive information
vim /etc/pam.d/sshd

#%PAM-1.0
#auth     required  pam_securetty.so     #disable remote root
#auth      include   system-remote-login
auth      required  pam_oath.so usersfile=/etc/users.oath window=30 digits=6
account   include   system-remote-login
password  include   system-remote-login
session   include   system-remote-login

With each user:

USER=myusername
SECRET=$(head -10 /dev/urandom | sha512sum | cut -b 1-30)
echo "HOTP/T30/6 ${USER} - ${SECRET}" >> /etc/users.oauth
QR_SECRET=$(oauthtool -v -d6 ${SECRET} | grep "Base32 secret" | awk '{print $3}')
qrencode -o ${USER}-OTP-secret.png $QR_SECRET

This will only allow key-based authentication, followed by the requirement of entering the one-time password at login.  There are command line OTP generators, but typically QR codes are used bring in the credentials.  The SECRET and QR_SECRET and resulting image file should all be treated as confidential and ultimately be deleted after  setting up the OTP client.


stunnel changes https pages to http when clicking a link

From the description of the stunnel4 package, it looks like that the application just acts as a secured messenger: at the server side data is encrypted, at the client side it's unencrypted without touching the message contents itself (like rewriting http:// URLs to https://). Since you control the Apache server, you are recommended to configure SSL on Apache. For example, see How to easily deploy HTTPS in ubuntu 10.04?


I can not start my Ubuntu 15.04 pc after the update from yesterday the 18th off August to kernel 3.19.0-26

Like described in How to get to the GRUB menu at boot-time? you can access the GRUB Menue by pressing shift - there you should be able to select prior installed and not removed kernels...


Increase Windows partition in a working dualboot

use a live cd or usb version of ubuntu. Open gparted and change the size of the partion as needed. For me gparted never messed anything up.


How to install python 3.2 in ubuntu 13.04

Use the Deadsnakes PPA, which includes a range of Python versions packaged for a range of Ubuntu versions, including 3.2 for raring.

sudo apt-add-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.2


Here is a solution (get the file and replace original):

https://drive.google.com/open?id=0B-XSYP5W-8Wea2NWTGJtSkxybEk
I am using Mint 17.3 (64 bit) w/Mate DE and Linux Kernel 3.19.0.22 and
Cairo-Dock 3.4.0 and the file worked perfectly for me! Thanks for the fix!
I just copied the file as root in /usr/lib/x86_64-linux-gnu/cairo-dock/libcd-weather.so, and now see my screenshot: https://personal.filesanywhere.com/FS/M.aspx?v=8a6b688d5d65aeba6fa4


ssh agent forwarding not working after ubuntu 20.04 upgrade

seems that the ssh agent is not starting automatically. I add the following to my .bashrc (see here):
vi ~/.bashrc
# Start SSH Agent
#----------------------------

SSH_ENV="$HOME/.ssh/environment"

function run_ssh_env {
  . "${SSH_ENV}" > /dev/null
}

function start_ssh_agent {
  echo "Initializing new SSH agent..."
  ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
  echo "succeeded"
  chmod 600 "${SSH_ENV}"

  run_ssh_env;

  ssh-add ~/.ssh/id_rsa;
}

if [ -f "${SSH_ENV}" ]; then
  run_ssh_env;
  ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
    start_ssh_agent;
  }
else
  start_ssh_agent;
fi

After a logout and login with user it is working like it was in ubuntu before.


sudo chown -R ramiz /home/ramiz and sudo chmod -R 755 /home/ramiz should do the trick.

If you cannot run these commands from your user, boot into recovery mode (hold right shift during POST and when the grub menu is shown select the recovery mode (second line)), when you get a menu, remount everything rw, and select netroot. You will be dropped to the root shell, where you can execute the commands without sudo.


The light staying on constantly is what happens when you plug in the drive cable backwards.


new skype will not install in lucid due to dependency on libqt4-network 4:4.8.0

That would probably be very difficult, because newer versions of that package depends on newer versions of several other packages etc.

Sounds like it's high time to upgrade to a newer Ubuntu version. The desktop packages of Lucid are no longer supported.


How do I disable a touchpad using the command line?

To turn off touch pad:

synclient TouchpadOff=1

To turn it back on:

synclient TouchpadOff=0


For playing movies have a look at MPlayer with video output devices cvidix oder directfb, see the MPlayer documentation
For music cmus or ncmpc should work
For pictures there's fbi

You need to bee a member of the video group to use graphics at the text console.


Setting Workspaces in Gnome without activating gnome panel (and workspaces applet)

You can configure your workspaces through CompizConfig Settings Manager (ccsm)

sudo apt-get install compizconfig-settings-manager

It's placed in System > Preferences > CompizConfig Settings Manager.

You will find the setting under General Options>Desktop Size.


Getting thumbnails for .MTS (AVCHD) video files in Caja?

I don't use Caja but Nautilus; anyway I think they share this behaviour:
Nautilus thumbnail generation relies upon ffmpegthumbnailer which is controlled by /usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer.

Edit it in order to tell ffmpegthumbnailer to generate thumbnail also for that kind of file


Installing propriety Nvidia drivers on Ubuntu 13.04

Mybe look at this:
How to install a driver for an NVIDIA card not detected by Additional Drivers?
NVidia Doesn't Show Up in Additional Driver + Power Regression Issue in Ubuntu 12.04

  Know that The Nvidia card is not compatible with Unity 3D. The Intel HD 3000 is. That >means that if you're using Unity 3D now, it's the Intel card which is in use. And the >fact The Graphics Driver name does not appear in Systems Settings (Details),

also maybe helpful (external url)
http://linuxg.net/install-new-nvidia-drivers-nvidia-319-17-on-ubuntu-13-04-raring-ringtail/

I would remove all manually installed drivers, reboot and check if it appears then.
Maybe try running jockey-gtk as sudo "sudo jockey-gtk"

Last i checked the 310 experimental drivers where required for steam.


Why is my Ubuntu 18.04 distribution asking me to upgrade to Pop!_OS 19.10?

By adding the Pop PPA, you've received the patched version of GNOME Control Center, which pulls in pop-upgrade, which will prompt to upgrade to Pop!_OS 19.10. It's a required dependency of the patched version of gnome-control-center, so removing it would also remove the control center. We don't recommend adding the Pop! ppa on top of Ubuntu. We apologize for the issues it caused!


Any ideas on how to get the os back up? Or at least a way to get my files before reinstalling the whole os?

Please re-install the OS. You can make backups from the live session and during setup you can also mount without formatting the partitions that hold your data. The installer will only overwrite system related files when partitions are mounted. Make sure to use the same mount point names for the different partitions.

Another method could be to remove the disk from the system and install a new OS on a brand new disk and then mount your old one. That would allow you to copy all your files to the new system.


Help to restore perfect installation from Windows share or how to reinstall gnome with no effects 14.04

After you installed 14.04, did you bring it fully up to date to 14.04.1? Ubuntu Trusty saw a stack of graphics related fixes. What is slow now could suddenly be faster after applying all outstanding updates and rebooting.

Also if the graphics hardware is so substandard on that machine, consider using lightweight desktop environments such as XFCE ("sudo apt-get install xfce4").


You might want to try pipelight, instead -

These instructions from webupd8 worked flawlessly for me.


The Fn keys on my HP dv6t are mapped all wrong

Does your computer allow you to switch the fn key row from being the F1-12 keys or the media keys? I know my computer allows this, the way I can change this setting is by going into the BIOS and selecting the option from there. I'm not sure if that is what your computer is doing though.


keep on getting '404 Not Found [IP: 91.189.95.85 80]' error when getting wine repository

You have multiple PPAs that're not supported anymore.  Hence the 404s.

WebUpd8Team Java PPA
Err:18 http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release
  404  Not Found [IP: 91.189.95.85 80]

The WebUpd8Team PPAs are all old and deprecated and do not support Focal.  Further, if you are using this to get Sun / Oracle JAVA, the Sun/Oracle licensing has changed in the past two years and you no longer can distribute the Oracle Java flavors due to the licensing change.

Ubuntu WINE PPA
Err:17 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu focal Release
  404  Not Found [IP: 91.189.95.85 80]

The Ubuntu Wine PPA has not been maintained for at least three dev cycles of Ubuntu now.
Instead, you need to follow the instructions from WineHQ Upstream and use the WineHQ repos to get the latest Wine on your systems.  There's no way around this.

See also How can I fix a 404 Error when using a PPA or updating my package lists?


You need to install  a proprietary graphics driver for Nvidia.

Run in terminal

sudo apt-get install nvidia-331 nvidia-prime

and reboot.

You will be able to switch Intel and Nvidia adapters in "Nvidia Settings" program. It looks like Intel is enough for your activities.


grep "mail\.addres@example\.org" filename.log

will print all lines containing mail.addres@example.org


Create a file in $HOME/.local/share/applications/audacity.desktop with this content:

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Audacity
Exec=/usr/bin/flatpak run org.audacityteam.Audacity
Icon=__path_to_the_icon_on_your_filesystem__

After that the launcher will appear in dash: press super (windows) and type "audacity" and launch the application. While audacity is running right click on its icon on dock and choose "Add To Favorites".


How can I force unattended-upgrades to run on demand?

You can execute unattended-upgrade with -d option to run it any time you want :)

Open terminal and execute this command:

sudo unattended-upgrade -d

It will start checking for available updates and if found it will upgrade your system.

In addition to this I also want you to go to this site:

https://help.ubuntu.com/18.04/serverguide/automatic-updates.html

May 24, 2018: Changing the URL for18.04 as 12.04 is expired.

Reply if you need any clarification.


What makes items appear in Nautilus sidebar and how to change it?

Your bookmarks (the locations in the left side bar) are listed in ~/.config/gtk-3.0/bookmarks.

You can edit that file and restart Nautilus.


edit text file with sudo via ssh and script

I suggest using passwordless sudo than writing your password in clear typing in script.

In the script, use echo to write to the textfile, not nano.

like

#!/bin/bash
echo 'text to write to /etc/hosts' > /etc/hosts

or did i get your purpose right?


How to install Win8.1 after installing ubuntu14.04?

You can refer to the following article for your question:

https://help.ubuntu.com/community/WindowsDualBoot

Basically, you will need to perform the following steps:

Prepare a partition for your Windows installation (you can use GParted for the job)
Reboot your computer and install Windows on the new partition
Install GRUB2 again so that you can access both Ubuntu and Windows (you can check https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows, I recommend you to use Boot-Repair for that)

Good luck!


To hide banshee from the menu's in KDE you'll need to change the desktop file to only show the menu item in Unity/Gnome

mkdir -p ~/.local/share/applications
cp /usr/share/applications/banshee.desktop ~/.local/share/applications

Edit the file ~/.local/share/applications/banshee.desktop

Add to the bottom of this file

OnlyShowIn=GNOME;Unity;

Save.

However the above only hides banshee.  To prevent banshee from starting in KDE you'll need to edit the banshee executable script

sudo nano /usr/bin/banshee

now add the following at the position shown:

if [ x"$KDE_FULL_SESSION" = x"true" ]; then
  exit
fi


In Linux you mount the drive or can ssh the abc.cba.com server and access the machine if both the machines are Linux.

In case if you want to access windows folder in Linux then follow the below steps

sudo apt-get install cifs-utils

mkdir ~/Desktop/Windows-Share

sudo mount.cifs //WindowsPC/Share /home/user/Desktop/Windows-Share -o user=user_name


Check if the wifi card is blocked (Terminal)

rfkill list wlan     (for wifi)

OR

rfkill list all             (for wifi and bluetooth)

UNBLOCK:

rfkill unblock wlan     (for wifi)

OR

rfkill unblock all             (for wifi and bluetooth)

Restart the network:

sudo service network-manager restart

Also see:

http://www.iasptk.com/19593-ubuntu-1204-wifi-not-working-at-laptop-or-notebook-unblock-it


LAN works via Ethernet to USB adapter but not via Ethernet port

This was an outdated software issue. I fixed it by:

Boot into Windows
Fired up HP Support Assistant (my laptop was from HP, other companies might have different ways)
Launch updates for BIOS version and for LAN drivers.
Wait for 10-15 minutes for it to complete.

Restart the machine and now it works!


How can I setup hotkeys for tiling individual windows in Unity (Ubuntu 12.04)?

You can tile windows to the left and right halves of the screen using Super+Ctrl+← and Super+Ctrl+→ respectively. Also, Super+Ctrl+↑ maximizes the window, while Super+Ctrl+↓ minimizes/restores it.
You can also tile windows to the corners of the screen (bottom right, bottom left, etc.) using the keyboard combination Ctrl+Alt+NumPad, where the numpad number roughly corresponds to the position you want the window to be. For example Ctrl+Alt+NumPad 1 will move the window to the bottom left corner.
(Source: Window tiling (Move-to-{corner,side}) shortcuts in Ubuntu 13.04)

Customize these shortcuts
To customize maximizing (Super+Ctrl+←) and minimizing (Super+Ctrl+→) windows, simply go to your Systems Settings → Keyboard → Shortcuts tab → Windows and look for Maximize Window and Restore Window.

To customize tiling to the left (Super+Ctrl+←) and right (Super+Ctrl+→), you'll need to install CompizConfig Settings Manager . Once you have it installed, open it up, and search for Grid in the Filter box, and click on it. Find Put Left and Put Right and edit them accordingly.
(Source: Window tiling (Move-to-{corner,side}) shortcuts in Ubuntu 13.04)

Example screenshots of default tiling:
Window opened normally:

Super+Ctrl+←:

Super+Ctrl+→:

Super+Ctrl+↑:


Make W7 install as small as possible and increase Ubuntu size

This is because of the way WUBI works. WUBI is basically just a very big windows image file that can be removed just like any other program. It has no access to windows file system which is why you cant modify the partitions. (I bet you cant access any of your other windows 7 files?)

Uninstall Wubi via the normal windows 7 uninstall process (making sure to back up any files you want to keep from your linux install)
If you want to dual boot (run windows and ubuntu side by side) use the windows disk management tool to create a big enough partition for your linux install
ensure you have install discs for
windows 7, many manufacturers supply
only repair discs meant to rescue a
corrupted partition, these wont allow you to install windows 7 on your vm.
burn a copy of ubuntu to a dvd
Backup absolutely anything you might
need in the future
check everything has backed up correctly
check your backup again (its quite important, you might have noticed)
set your bios to boot from your cd
drive, theres far too much variance
bios setups to explain how to do
this, but it will be an option worded
something along the lines of boot
order
insert the ubuntu dvd
Think carefully, the next process
will format your hard drive, youll
lose everything thats on it
when the menu comes up select the install option you want: Use the entire hard drive will install linux on the selected drive, completely formatting it
if you select specify partitions manually and choose the partition you created earlier you will be able to install both os's side by side.

there is an online guide that details the entire process here:


How do I run rdesktop in a new x session?

In the end, I added these lines to /etc/lightdm.conf:

[Seat:1]
xserver-command=/usr/bin/X :1 -auth /var/run/lightdm/root/:1 -nolisten tcp tty7

[Seat:2]
xserver-command=/usr/bin/X :2 -auth /var/run/lightdm/root/:2 -nolisten tcp tty8

It allows me to switch between the screens with Ctrl-Alt-F7 and Ctrl-Alt-F8.  Each screen requires a login.


Use Nautilus with Xfce as default file manager

I installed Ubuntu 12.04 with Xfce(xfce4, not xubuntu-desktop) today and i have Nautilus as my default file manager. I Just pressed Applications Menu and selected File Manager. Then it prompted which app should be default for file managment. I selected Nautilus and voilà.


You need to figure out what processes will need to be doing this and set the appropriate owner/group permissions. For instance with drupal installation you have to set up certain directories as giving the www-data group write permission.

Basic unix commands for doing these things:

chmod nnn [file or directory]
or
chmod -R nnn directory/  (if you want a recursive change)

where "nnn" is the numeric value of the user/group/world permissions (google these values, but 777 means read/write/execute

chown : [file or directory]
changes the ownership


I figured out the ~/.bashrc and noticed that I'd added a path to the Graal /bin folder to the PATH.
Once I removed that, I opened a new terminal, re-ran the update-alternatives, and saw that the version was set properly.


If you want the newer kernel from HWE stack (currently 4.8.0-36), run

sudo apt install linux-generic-hwe-16.04

You can also choose to install the entire HWE stack, i.e newer kernel and X stack. If you want that, run

sudo apt install --install-recommends xserver-xorg-hwe-16.04


MongoDB suddenly stopped working today (12.04)

Diagnosis

The first thing to do is to check the MongoDB log files to see why the service didn't start. Run:

tail -f /var/log/mongodb/mongodb.log

in one terminal window and then run:

sudo service mongodb restart

in another. The log file should show MongoDB attempting to start and report an error message if it fails.

Repair

If the logs indicate that you need to repair your database, there are two points to bear in  mind:

By default, mongod expects the database files to be in /data/db/, but the Ubuntu packages configure it to look in /var/lib/mongodb/. So if you run mongod directly rather than using the upstart scripts, you need to tell it where your database files are by adding a --dbpath argument.
When running mongod using upstart, it will run as the mongodb user which is the user that owns the database files. If you run mongod using sudo without specifying a user then you will end up with database files owned by root. So you need to add a -u argument to sudo.

If your database files are currently owned by root you will need to change their ownership back to mongodb before MongoDB can use them again:

sudo chown -R mongodb:mongodb /var/lib/mongodb/

TL;DR

To run a repair on MongoDB when using the packaged distribution, you need to run:

sudo -u mongodb mongod --repair --dbpath /var/lib/mongodb/


How to read default key value with dconf or gsettings?

There does not seem to be a nice way to get at the default values directly, but since the client checks XDG_CONFIG_HOME in the environment a decent workaround to get values from a fresh config might be:

XDG_CONFIG_HOME=/nonexistent gsettings get SCHEMA KEY


Ubuntu 20 Kernel panic after moving and resizing root partition

Do you get the Grub screen when you boot. If so then boot with the oldest kernel you have. If that fails then drop to recovery, enable networking and then update and upgrade and then
sudo dpkg --configure -a.

and or
sudo apt install -f


Ubuntu 12, chromium/chrome facebook not loading

I found on way to change the MTU to a more permanent 1492 setting instead of "automatic." It's in Settings > Network > wlan0, and change the mtu from auto to 1492.

One of two, actually with that change it may just work, as it is now. I'll report back if there are more issues.


Default sources.list file on 14.04:

# deb http://be.archive.ubuntu.com:80/ubuntu/ trusty main restricted

# deb http://be.archive.ubuntu.com:80/ubuntu/ trusty-updates main restricted
# deb http://security.ubuntu.com/ubuntu trusty-security main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://be.archive.ubuntu.com:80/ubuntu/ trusty main restricted
deb-src http://be.archive.ubuntu.com:80/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://be.archive.ubuntu.com:80/ubuntu/ trusty-updates main restricted
deb-src http://be.archive.ubuntu.com:80/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://be.archive.ubuntu.com:80/ubuntu/ trusty universe
deb-src http://be.archive.ubuntu.com:80/ubuntu/ trusty universe
deb http://be.archive.ubuntu.com:80/ubuntu/ trusty-updates universe
deb-src http://be.archive.ubuntu.com:80/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://be.archive.ubuntu.com:80/ubuntu/ trusty multiverse
deb-src http://be.archive.ubuntu.com:80/ubuntu/ trusty multiverse
deb http://be.archive.ubuntu.com:80/ubuntu/ trusty-updates multiverse
deb-src http://be.archive.ubuntu.com:80/ubuntu/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://be.archive.ubuntu.com:80/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://be.archive.ubuntu.com:80/ubuntu/ trusty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu trusty main
# deb-src http://extras.ubuntu.com/ubuntu trusty main

The location of the file is: /etc/apt/source.list

You can edit it by issuing sudo vi /etc/apt/source.list or sudo nano /etc/apt/source.list (nano might be easier for you).

If you want to add those repositories mentioned, you should add these lines to the bottom of the file:

# Tor Project Repositories
deb http://deb.torproject.org/torproject.org trusty main
deb-src http://deb.torproject.org/torproject.org trusty main


How should I set up a FQDN and Intranet Sandbox 12.10 Server that won't be public

I usually configure the hostname of any Debian or Ubuntu machine as

/etc/hosts

127.0.0.1 host.example.com host localhost.localdomain localhost

/etc/hostname

host

and verify that hostname -s returns the short hostname and hostname -f the FQDN of the machine. I don't think it really matters whether the machine is public or not.

In your case I'd remove the both lines starting with 127.0. and add the line below:

127.0.0.1 blahblah-vps.example.com blahblah-vps localhost.localdomain localhost

Your /etc/hostname looks fine, although in both files I'd just use lower case letters, not because it matters but more for pedantic reasons.


Can I still use unity low graphics mode in place of unity 3d?

Unity 2D looks drab. Try the GNOME 2 desktop replacement MATE. MATE is a lightweight desktop environment, lighter than Xfce and a little heavier than LXDE. There is a full tutorial about how to install the MATE desktop environment in Ubuntu 14.04 in this answer.

To see how MATE looks visit the Ubuntu MATE screenshot tour.


"ImportError: No module named scapy.layers.dot11" is telling you that wifiphiser requires a module called "scapy.layers.dot11", and you do not have it.

Read all the documentation that came with wifiphisher - find out what additional packages are required.


What does "boot screen stuck" mean actually? At least you have to provide us information about what appears ultimately.

Anyways, you can try to do this:

Do you still have your Ubuntu live CD? If yes, boot into your live CD and run a live session.
Press Ctrl+Alt+T to open the terminal.
Input sudo grub-install to renew your boot configuration.

See if this works.


The package seems to have been pulled out of the repositories. Run:

sudo apt-get update

Then try again.

If that don't work, make sure that in your /etc/apt/sources.list you aren't mixing different repositories.

If you are using 12.10 (Quantal Quetzal), seems that you have some repositories that are for 12.04 (Precise Pangolin), replace all the repositories that are pointing to Precise to Quantal. You should verify this issuing:

cat /etc/apt/sources.list | grep -v $(lsb_release -c | awk -F ' ' '{print $NF}')

If you found lines that do not correspond to your distribution, replace the wrong release target. In this command we are assuming that precise should not being here, you should replace precise with some other word. This is dangerous, you should edit the file by hand using gksudo gedit /etc/apt/sources.list. Proceed under your own risk.

sed -i 's/precise/'$(lsb_release -c | awk -F ' ' '{print $NF}')'/g' test


As @steeldriver mentions in his comment, you need to install the libmysqlclient-dev package which is available for all currently supported versions of Ubuntu from Precise through Zesty and can be installed Either through the Software Center or from the CLI (terminal) with the command sudo apt-get install libmysqlclient-dev

Sources:

Unable to install mysql2

https://stackoverflow.com/questions/27832120/error-error-installing-mysql2-error-failed-to-build-gem-native-extension


Files Window (Explorer view) Will Not Open from Unity Bar

Just in case someone else comes across this, I often have this problem on 16.04.

I find that killing (-HUP) the nautilus process works for me.

i.e.

$ ps -eaf | grep nautilus
joe     2358  2115  0 Jan01 ?        00:00:11 nautilus -n
joe    15093 15084  0 08:08 pts/2    00:00:00 grep nautilus

$ sudo kill -HUP 2358
[sudo] password for joe:

$ ps -eaf | grep nautilus
jlowe    15100 15084  0 08:09 pts/2    00:00:00 grep nautilus

Now it seems to work.


Mouse drag highlight not working in Gnome 3

The problem ended up being self inflicted. In the process of trying to replace Nautilus with Nemo as my default file manager and attempting to get it to produce desktop icons (to no avail) I had caused this feature to deactivate. Reinstating Nautilus as the file manager in control of the desktop reactivated this feature.


What should be the partition scheme for Ubuntu 18.04?

Where you're installing Ubuntu in single boot, you only have one storage device (HDD), you don't have any specific needs related to partitions, and I assume you're a beginner Linux user, use the default partitioning scheme to keep things simple.


Laptop won't recognize my drives as bootable after installing Ubuntu

Solved. I found this Acer Aspire E15 will not dual boot solution for acer e15 but mine was acer v15, then i remembered my motherboard was replaced a year ago.
So the solution worked.

Marked as solved.


how do I get 11.10 to replace the Juniper driver with Catalyst

See post #4 in this thread. It worked perfectly for me, and I have a 6770 card, which is the same as a 5770.

http://ubuntuforums.org/showthread.php?t=1873072

Tim


How to specify the GPU to be benchmarked by Unigine Superposition?

Try adding DRI_PRIME=1 to your ~/.bashrc and then run it from command line on a newly opened terminal after modifying ~/.bashrc. In theory, if Superposition is spawning other processes they might now have DRI_PRIME set. Keep in mind that this will set DRI_PRIME=1 for everything you run which might not be the behavior you want but might fix it while you run Superposition.

You can easily add it to the end of ~/.bashrc by opening it with a text editor or from a terminal with this command:
echo "DRI_PRIME=1" | tee -a ~/.bashrc

To remove it you can open it with a text editor and delete it or from a terminal run:
sed -i '/DRI_PRIME=1/d' ~/.bashrc


Installing Ubuntu on Lenovo Yoga 710 with Signature Edition

Maybe it will help you, for me it's working https://swethmandava16.wordpress.com/2016/10/17/installing-ubuntu-14-04-on-lenovo-yoga-710/


Auto, or semi-automatic disk space management?

Assuming that you’re using Ubuntu 20.04, you should be able to do this with exactly five commands in Terminal (six if you want to confirm your volume has grown). There used to be a GUI available, but that was many years ago. As you’re looking for the simplest option, I won’t bore you with the alternatives for Ubuntu derivatives that may work, as I simply don’t know.
That said, as you seem ready to add your new disk to an existing Logical Volume, let’s get it done:

Open Terminal (if it’s not already open)
Confirm the name of the Logical Volume that will receive the new disk:
sudo lvs

This will give you something like:
LV   VG      Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
vol1 wwwdata -wi-ao---- <13.82t

Note: You'll see different values for LV, VG, and LSize, but the gist is the same.
Create a physical volume on your new disk. For the sake of this example, I'll call it /dev/sdn:
sudo pvcreate /dev/sdn

You should see a message like:
Physical volume "/dev/sdn" successfully created.

Note: This will use the entire disk. If you choose to assign just a single partition from a disk, specify the partition name. For example: /dev/sdn3.
Add the new disk to your Logical Volume:
sudo vgextend wwwdata /dev/sdn

Note: Be sure to replace wwwdata with the name of the Volume Group that was in the list from step 1. This would be the name under VG.
So long as everything is good, you will see a message like this:
Volume group "wwwdata" successfully extended

(Optional) Confirm the volume has been extended:
sudo vgs

This will give you something like:
VG      #PV #LV #SN Attr   VSize    VFree
wwwdata   2   1   0 wz--n- <17.82t  4.00t

Note: This example uses a 4TB disk as /dev/sdn. The size of your new disk will appear in the VFree column, as the space has not yet been assigned to the file system.
We will need to extend the logical volume to fill the new space:
sudo lvextend -l+100%FREE /dev/wwwdata/vol1

Note: Be sure to change wwwdata to the name of your Volume Group, which was found in Step 1, and vol1 to your Logical Volume, which was also found in Step 1.
When it's done, you'll see a message like:
Size of logical volume wwwdata/vol1 changed from X to Y
Logical volume vol1 successfully resized

Last step! Now that the new disk is part of the Volume Group, grow the file system so that you can actually use the space:
sudo resize2fs -p /dev/wwwdata/vol1

Note: Again, be sure to replace wwwdata and vol1 with the values that are correct for your system.
The volume will now be resized to fill 100% of the space available. This can be done without rebooting or unmounting partitions, or anything like that.

As you're coming from Windows, this will probably seem like a lot of unnecessary typing. A GUI can abstract a lot of this stuff away, after all. That said, I do hope this mostly-five-step process can solve your problem so that you can do you again


Will ubuntu 14.04 LTS work on Gigabyte GA-Z87-HD3 motherboard

I have Ubuntu 14.04 on Gigabyte GA-Z87-HD3 with an Intel processor i5-4670 .
Nearly all things are working fine; most without installing additional drivers. Installation was very easy. Even I installed Ubuntu on a bootable external USB-drive, to try it with several Computers. It works.

Internet, drives, CD/DVD, Audio, Video, usb, SATA, ... : no problems.
For my printer (HP officejet pro 8600) I installed the HPLIP Toolbox, included in Ubuntu's "software center", and it works fine.

Only my scanner (Epson perfection 4490) does not work until now; though I had installed the driver packages offered by Epson and made recommended corrections in epson* files. But on other computer the scanner works with the same ubuntu (for that the external installation). Today I asked Gigabyte support. Perhaps they will give me a satisfactory answer.

Of course, if you have other components, you will have more or less problems.

2 new remarks:
1. I forgot to say, that I use the Gigabyte Mainboard only in BIOS (MBR) mode, not in UEFI mode: In BIOS menu - BIOS Features - I set all Points which has a EFI choice to legacy or only legacy. With UEFI activated I got much more problems - in Linux and in Windows.
2. Today I got this answer from Gigabyte: "Da wir Linux und CO nicht testen / Supporten, können wir da leider nicht helfen. Wenn unter Windows 7 / 8 oder Win8.1 nicht auftritt, ist alles OK." This is of course very very unsatisfactory. In other words: if you have any problems with Linux on Gigabyte Mainboard, you will be left alone.


Troubles for Installing ubuntu in HP1000 with Windows to go

The partition table format in use on your disks normally requires you to create a separate partition for boot loader code. This partition should be marked for use as “EFI boot partition” and should be at least 35 MB in size. Note that this is not the same as a partition mounted on /boot.

This is a reference to an EFI System Partition (ESP). As described on the Wikipedia page to which I've linked, this is a FAT partition that has an EFI type code of C12A7328-F81F-11D2-BA4B-00A0C93EC93B. Because EFI type codes are so long and ugly, they're normally referred to in other ways in software. GParted and parted both identify them with a "boot flag" (which is unrelated to a "boot flag" under MBR), and gdisk and its relatives identify them as having a type of EF00. The lack of a type code is probably what's causing your problems.

Note also that 104MB is rather small for an ESP. I know the text you quoted specifies 35MB as the minimum size, but that's downright tiny. The problem is that some EFIs have bugs that cause such small ESPs to exhibit strange behaviors like files becoming inaccessible. I recommend making your ESP 550MiB in size. This is huge compared to the probable storage needs of the partition, so there's no need to go bigger than this; but it's big enough to avoid EFI bugs, which is the main point of it.

  I don't know what's wrong. I set up the BIOS for make able the legacy mode and avoid the secure boot from UEFI.

The error message you're seeing indicates you're booting in EFI mode, not in BIOS mode. This isn't really surprising; the boot-mode options in most EFIs are vague, and they often function more as suggestions than as commands. That is, enabling the BIOS/CSM/legacy support merely makes it possible for the computer to boot in that mode. Whether it will actually boot in BIOS mode or in EFI mode depends on quite a few factors that you probably don't even know -- things like algorithms in the firmware and details of how your boot medium is laid out. In other words, it's effectively random. It is possible to force a BIOS-mode boot (assuming the computer supports it), but doing this requires a fair amount of expertise. One way is to carefully select the boot option in the computer's built-in boot manager: Pick the option for your installation medium that lacks the string "UEFI". This approach doesn't work on all computers, though. Another way is to create a boot medium that lacks the EFI boot loaders (stored in the EFI/BOOT directory on a FAT partition on a USB drive, for instance).

Forcing an EFI-mode boot is usually easier: Disabling the BIOS/CSM/legacy support in the firmware normally does the job. Sometimes it's necessary to create a boot medium without a BIOS boot loader, or tweak the format of the boot medium to satisfy the peculiarities of your EFI.

Incidentally, Secure Boot is just one optional feature of UEFI. Any x86/x86-64 computer that ships with Windows 8.x is required, by contract with Microsoft, to enable you to disable Secure Boot. It's usually possible to disable Secure Boot and still boot in EFI mode. That's not to say that you should do this, though; Ubuntu works well with Secure Boot on most computers, and the feature can (at least theoretically) improve system security. IMHO, it's worth at least trying to boot with it active.


Asus K751LJ-TY316T touchpad not detected / working under Ubuntu 14.04

You should try to get a usb mouse and update ubuntu. The update will fix your issue!

sudo apt-get update
sudo apt-get upgrade

after a restart you should be up and running! Good Luck, Let me know if you need more help


Gnome-terminal blinking cursor gone after changing input-method

I can confirm this is happening with both IBus and fcitx, GNOME version 3.28.2 gnome-terminal version 3.28.2. After some messing around I think I figured it out - for me the cursor was dissapearing when I ran GNOME on wayland, switching to GNOME on X fixed it. If you're still experiencing this issue perhaps you can confirm this? If so I'll try and file a bug report.


The problem was that one off the screen was vga so when I rotated it side ways the above problem happens. But when not rotated there is no problem.


LibreOffice does not find libicui18n.60.so after upgrade 18.04->20.04

To add libicui18n.so.60 to Ubuntu 20. You can add
deb http://security.ubuntu.com/ubuntu bionic-security main

to
sudo gedit /etc/apt/sources.list

Then
sudo apt-get update
sudo apt-get install libicu60


Is it possible to enforce safe search on Ubuntu desktop across all search engines

I have answered this myself, since the only answer I received didn't work, but it got me thinking and after hours of research and testing I managed to get it working for Google Bing, Duckduckgo and Youtube, however I couldn't find a Yahoo equivalent and in any case I have blocked Yahoo completely since it doesn't (atow) play ball when it comes to privacy.

To lock safe search across the above search engines.  Its simply a matter of remapping all of the domains for each search provider to their safe search IP addresses, here's how:

In Ubuntu press CTR+ALT+T to open a terminal.
In the terminal enter the following command and press enter, you'll be asked for your password:

sudo gedit /etc/hosts

In the hosts file in the editor, cut and paste all of the lines as shown leaving any existing entries in your host file as they were.  Also I had to dos2unix my /etc/hosts file as somehow I had introduced some invisible and incompatible symbols and consequently some URL to IP mappings weren't working and it took me some hours to realise:

216.239.38.120 www.google.com
216.239.38.120 www.google.co.uk
204.79.197.220 www.bing.com bing.com
204.79.197.220 www2.bing.com
204.79.197.220 www.bing.co.uk
204.79.197.220 www3.bing.com
46.137.218.113 duckduckgo.com
216.239.38.120 www.youtube.com
216.239.38.120 m.youtube.com
216.239.38.120 youtubei.googleapis.com
216.239.38.120 youtube.googleapis.com
216.239.38.120 www.youtube-nocookie.com

Close and relaunch your web browser.
Test safe search is locked for each search engine. For google after a search in the top right corner of the google page it should say SafeSearch on. Using Bing in the drop-down menu at the top right, it should say SafeSearch= Strict, for DuckDuckGo the Safesearch option is no longer displayed under the search box, although if you go into settings its there and allows you to turn SafeSearch Off, however it doesn't actually save the change despite the fact you can click Save.  With Youtube you get the following message after a search which indicates SafeSearch is on and you will see that in Settings, Restricted Mode is locked ON:

Some results have been removed because Restricted Mode has been enabled by your network administrator.


Windows 8 installer complains about MBR partitions, but I don't see any?

You haven't posted detailed partition table information, so I can't be sure of what's happening; however, it's almost certainly one of two things:

Your disk uses the Master Boot Record (MBR) partitioning system and boots Ubuntu in BIOS/CSM/legacy mode. This is the safest way to install an Ubuntu-only system on a Mac, and it's what would result if you tried installing Ubuntu and the firmware happened to boot the installer in BIOS/CSM/legacy mode. If you then booted the Windows installer but the firmware made the choice to boot it in EFI mode, you'd see the error you describe. The solution is to force a BIOS-mode install of Windows. You might be able to do this by removing the EFI boot loader (which should be in the EFI/BOOT directory on your USB); or perhaps by holding down Alt or Option as you boot, you may be able to force a BIOS-mode boot.
It could be that your hard disk has a hybrid MBR on the partition table. When it's fed a hybrid MBR, Windows interprets the disk as an MBR disk, ignoring the GPT data. When fed the same disk, OS X and Linux both treat the disk as a GPT disk, ignoring the MBR data (except to the extent that an MBR's type-0xEE partition is part of identifying it as a GPT disk). A hybrid MBR is the most common way of dual-booting OS X and earlier versions of Windows on a Mac. The problem with this hypothesis is that GParted will normally convert a hybrid MBR back to a conventional protective MBR, so it doesn't match your description. It's still a possibility if you omitted something, like running gptsync on the disk. If this is what's happening, then the preferred solution is to make some trivial change to the disk with GParted; or use gdisk to create a fresh protective MBR by using the n option on the experts' menu (x followed by n followed by w to save your changes). (You could go for a BIOS-mode Windows install using the hybrid MBRs, but as hybrid MBRs are a dangerous hack, it's better to install Windows 8 in EFI mode, if possible.)

To be certain which course of action to take, you must examine your partition table. This is pretty easily done with gdisk, as in:

$ sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.0

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

This example (which omits partition details) shows a GPT disk with a conventional protective MBR, as identified by the GPT: present and MBR: protective lines. If the MBR line reads MBR: hybrid, then that identifies a GPT disk with a hybrid MBR. If the MBR line reads MBR: MBR only and the GPT line reads GPT: Not present, then the disk is a straight-up MBR disk.


"lo: Disabled Privacy Extensions" and ipv6 disabling?

Disbale IPv6 in Ubuntu

Method 1

gksudo gedit  /etc/modprobe.d/aliases

Find the line: alias net-pf-10 ipv6
change to alias net-pf-10 off

If the above change is not working you need to change the following one
    alias net-pf-10 off ipv6

Method 2

Edit /etc/default/grub file

gksudo gedit  /etc/default/grub

Change

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”

to

GRUB_CMDLINE_LINUX_DEFAULT=”ipv6.disable=1 quiet splash”

Save and exit the file

Update the grub from the command line

sudo update-grub

Keep me informed.

Regards,

Ilias el Matani


The ultimate low-level test for keyboard keys is:

Press Ctrl+Alt+F1 to switch to a text mode console.
Type your username and password at the login prompt (press Enter after each).
Run the command showkey and press keys. The command prints a scan code when you press a key and another code when you release the key.
Wait 10 seconds without using the keyboard and the showkey program will exit.
Log out of the text console by running the command exit, and switch back to the graphical interface with Ctrl+Alt+F7.

If pressing the Left key does nothing then you have a hardware problem, otherwise you have a software problem.

If you have a software problem, check if you've inadvertently set up the Left key as a shortcut key. (You can check this first if you prefer.) You can list all the keys that have been grabbed as shortcut keys by an application. Install the xdotool  package. Open a terminal window and run the command

xdotool key XF86LogGrabInfo
less /var/log/Xorg.0.log

Then look at the file /var/log/Xorg.0.log in a text editor. Scroll to the end and look for a line that says “Printing all currently active device grabs”. If there's anything below that line about the keyboard, some application wants a key for its own use.

This command doesn't list keys that are used as shortcut keys in the desktop environment. You'll find these in the “Keyboard” section of the System Settings.


Ubuntu 13.04 on UEFI system hangs at black screen

Try these instead of nomodeset or in addition to nomodeset:
acpi_osi=Linux acpi_backlight=vendor

Since you have a very new system, you may really need all the fixes that will be in 13.10 as both Kernel & Intel drivers have changes. But we only suggest 13.10 for those users who realize that is it not final, may crash and those bugs need to be reported so additionally fixes can be made. Or you are a tester not a user.


This issue is because of that mysql-workbench-community package dependencies is not be installed before.

So try to install them before installing mysql-workbench-community package.

sudo apt update
sudo apt install libgeos-c1v5 libhdf4-0-alt libjasper1 libmysqlclient20 libnetcdf11 libpcrecpp0v5 libpng12-0 libpq5 libxerces-c3.1 libzip4 python-paramiko python-crypto
sudo dpkg -i mysql-workbench-community-6.3.9-1ubuntu16.04-amd64.deb

Or as an alternative and best way automate this installation process by gdebi :

sudo apt install gdebi
sudo gdebi mysql-workbench-community-6.3.9-1ubuntu16.04-amd64.deb

UPDATE: Both libjasper1 and libpng12-0 packages are available in Xenial repositories.

So for install them your xenial-security main and xenial main repositories should be enabled. Then try sudo apt update. Now you can install them.

Also as a second option you can download and install these packages manually:

libjasper1 for Xenial 64 bit: download

libpng12-0 for Xenial 64 bit: downlaod

Then install them with this command:

sudo gdebi libjasper1_1.900.1-debian1-2.4ubuntu1.1_amd64.deb libpng12-0_1.2.54-1ubuntu1_amd64.deb


Ubuntu 18.04 does not show devices on Launcher (Ubuntu Dock)

Note that Ubuntu 18.04 comes with GNOME 3 instead of Unity by default and hence it does not have the Unity Launcher which used to have the removable drive icons feature. Ubuntu 18.04 with GNOME comes with Ubuntu Dock instead, which is a fork of the Dash to Dock GNOME Shell extension. Icons for removable drives in the dock is actually a missing feature for now, there is no (easy) way to enable it.

Hopefully this feature would be added soon as the developers of Dash to Dock are working on it (source: this omg! ubuntu! article).

Update: This feature was added to later releases of Ubuntu Dock, and it's available on Ubuntu 19.10 and later releases.


After installing ubuntu 12.04 my internet connection has completely disappeared

If you do not have network it stands to reason that your packages are broken and it is not able to install – Apt can't retrieve packages.

Manually download
As you are posting here you obviously have another unit with network access. If this one can be used to download packages you could do it manually.

At Ubuntu Packages Search you can specify distribution and package; search; select hit-link; go to bottom of page; select package; select Architecture; copy mirror link / or direct link;

Download (this is for i386, precise):
wget http://archive.ubuntu.com/ubuntu//pool/main/n/network-manager/network-manager_0.9.4.0-0ubuntu3_i386.deb

You'll also be served dependencies on that page.

Or - in terminal if other machine is same version and architecture:

uri=$(apt-cache show network-manager | grep "^Filename: " | cut -d' ' -f2) && wget "http://archive.ubuntu.com/ubuntu/$uri"

To list dependencies and state do:
apt-rdepends network-manager --follow=DEPENDS --print-state

If apt-rdepends isn't installed it's dependencies should be installed

Or - follow one of these instructions.

Post some more information
Now. An easier way would perhaps be to try to fix the network using other tools.
A
Open terminal Ctrl+Alt+T and issue the following commands:
lshw -C network
ifconfig -a
ip addr list
route -n

And post the output in your Question.
B
Or, - more complete - run a script. See code at bottom.

Save code to a file and copy it to machine without network.
Open terminal and make it executable:  chmod 700 name_of_file

Run it and save output to file:

    ./name_of_file > result
    # or
    ./name_of_file | tee result

Sanitize it if you want and add it to your Question.
Code:
#!/bin/bash

# No warranties, guaranties etc.
version=0.0.1

sep="=============================================================="

# has_tool "<tool>"
has_tool()
{
    command -v "$1" >/dev/null 2>&1
}

# prnt_header "<tool>" "<arg-execute>"
prnt_header()
{
    printf ";; %s\n" "$sep"
    printf ";; = tool: %-52s =\n" "$1"
    [[ "$2" != "" ]] && printf ";; = arg : %-52s =\n" "$2"
    if ! has_tool "$1"; then
        e=";; = ERR: \`$1' not present."
        printf "%-63s =\n" "$e"
        printf ";; %s\n" "$sep"
        return 1
    fi
    if [[ "$1" =~ cat|more|less ]]; then
        if ! [[ -e "$2" ]]; then
            e=";; = ERR: File; \`$2' not present."
            printf "%-63s =\n" "$e"
            printf ";; %s\n" "$sep"
            return 1
        fi
    fi
    printf ";; %s\n" "$sep"

    return 0
}

# tool_info "<tool>" "<arg-version>" "<arg-execute>"
tool_info()
{
    local v=

    (($#!=3)) && {
        printf >&2 "* $0 ERR: Bad call to cmd_present. Missing arguments.\n"
        printf >&2 ";; '%s'\n" "$@"
        return 1
    }

    if ! prnt_header "$1" "$3"; then
        return 1
    fi
    if [[ $2 ]]; then
        printf ";; Version \$ %s %s\n" "$1" "$2"
        v=( $($1 $2 2>&1) )
        printf ";; %s\n" "${v[*]}"
    fi

    printf ";;\n"
}

# tool_do "<tool>" "<arg-version>" "<arg-execute>" "<sudo>"
tool_do()
{
    (($#!=4)) && {
        printf >&2 "* $0 ERR: Bad call to cmd_do. Missing arguments.\n"
        printf >&2 ";; '%s'\n" "$@"
        return 1
    }
    if ! tool_info "$1" "$2" "$3"; then
        return 1
    fi

    printf ";; Output:\n"

    (($4==1)) && sudo $1 $3 || $1 $3

    printf "\n;;\n"

    return 0
}

ping_gateways()
{
    if has_tool route; then
        # TODO: Check for UG flag
        gw=$(route -n | awk '{print $2}' | grep -o '^[0-9\.]*')
        for g in ${gw[*]}; do
            if ! [[ "$g" == "0.0.0.0" ]]; then
                tool_do "ping" "-V" "-c 3 $g" 0
            fi
        done
    fi
}

printf ";; _______________________ NET TEST _____________________________\n" | tee /dev/stderr
printf ";; v. %s\n\n" "$version" | tee /dev/stderr
printf >&2 ";; Working ...\n"

tool_info "NetworkManager" "--version" ""

printf >&2 ";; Hardware ...\n"
tool_do "lshw"  "-version"  "-C network" 1

#printf >&2 "\r\033[KVarious information ..."
printf >&2 ";; Various information ...\n"
tool_do "ifconfig" "-V" "-a" 0
tool_do "ip" "-V" "addr list" 0
tool_do "route" "-V" "-n" 0
tool_do "netstat" "-V" "-rn" 0
tool_do "iptables" "--version" "-n -L" 1

printf >&2 ";; Some cat'ing ...\n"
tool_do "cat" "" "/etc/network/interfaces" 0
tool_do "cat" "" "/etc/hosts" 0
tool_do "cat" "" "/etc/hosts.allow" 0
tool_do "cat" "" "/etc/hosts.deny" 0
tool_do "cat" "" "/etc/modules" 0
tool_do "cat" "" "/etc/modules.conf" 0
tool_do "cat" "" "/etc/resolv.conf" 0

printf >&2 ";; Some dig'ing ...\n"
tool_do "host" "" "localhost" 0
tool_do "nslookup" "" "localhost" 0
tool_do "nslookup" "" "askubuntu.com" 0
tool_do "dig" "" "." 0
tool_do "dig" "" "localhost" 0
tool_do "dig" "" "askubuntu.com" 0

printf >&2 ";; Ping gateways ...\n"
ping_gateways

printf >&2 ";; Ping various ...\n"
tool_do "ping" "" "-c 3 216.239.32.10" 0

printf >&2 ";; Ping google DNS ...\n"
# https://developers.google.com/speed/public-dns/docs/using
tool_do "ping" "" "-c 3 8.8.8.8" 0
tool_do "ping" "" "-c 3 8.8.4.4" 0

printf "\n;; Fine.\n" | tee /dev/stderr


Cheese showing 'no device found' Thinkpad e450

Your webcam is not support "yet".

But hey! Don't worry, the patch to make it work is now in the -proposed pocket for 16.04 Xenial and 16.10 Yakkety.

When it's verified and confirmed working. It will be promoted to -updates pocket within two weeks from now if everything is fine. And you will be able to fix this issue by updating your system.

Or you can enable -proposed to give it a try, don't forget to provide your feedback on the bug report.

For more information, please refer to this bug report: Acer, Inc ID 5986:055a is useless after 14.04.2 installed.


Boot map is full command: sudo apt-get autoremove does not work: see text

As everyone say I think you should try to translate your output since it isn't wide understood.

We need more info, but what could be happening is not that boot is full but your nodes are.

Try

df -i

To see what is the real problem.
Cheers


Why isn't Oracle Java included in the standard Ubuntu repo?

Ubuntu has OpenJDK in its repository. It's the fully open-sourced version of the Oracle JDK, which contains some closed-source parts.

It is a myth that OpenJDK is lower and less stable, but this was the past.
Today (since version 7), they're pretty equal. OpenJDK is even the reference implementation for Java 7 and Java 8. It's a race between those two implementations, as some new features appear first in OpenJDK and then later get included to OracleJDK, while some features get included the other way round.

The major differences are that OpenJDK has no Webstart included (but the open-source IcedTea does this job) and some other closed-source tools of Oracle missing, but nothing important.

So to sum up: As Ubuntu supports everything that is open-source, it supports OpenJDK, especially as it has no real disadvantages any more.


Did you try pressing "Auto Set" button on your monitor??
I once experienced the same problem.
But i got it solved just by pressing "Auto" button on my monitor...


Why is network-manager adding 10 more seconds to shutdown time?

Because it's bugged & has been for a while now

Main bug with possible self fix
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/869635

Dup bug with alternate self fix
https://bugs.launchpad.net/ubuntu/+source/netbase/+bug/903825

This has worked fine here though I'd suggest you read both reports 1st

sudo mv /etc/rc6.d/S35networking /etc/rc6.d/S15networking

sudo mv /etc/rc0.d/S35networking /etc/rc0.d/S15networking

Or simply wait out a fix if one does show someday. The typical added delay is usually around 500 - 600% of your normal, so here it was 2 sec's to 12 sec's


Zip archive name using on the first zipfile's name

Using find to filter and format output for zip command:

$ find -maxdepth 1 -type d -name 'example.com' \
  -printf %f\\0 | xargs -0 -I {} zip -r $(date -d now +%Y%m%d%H%M)_{}.zip {}


I don't know where you're launching it from, but there has never been (to the best of my knowledge) a program called ubuntuone. Running ubuntuone-preferences (which is available in 10.10 in System › Preferences › Ubuntu One should bring up the old preferences application,

which should start everything running; if this is the first time you're running Ubuntu One on the computer, this should in turn pull up the Ubuntu Single Sign On application,

Lastly should ensure that ubuntuone-launch (visible under the user-friendly name of "Ubuntu One") is listed and enabled amongst the System › Preferences › Startup Applications:


Why is Pi 4 omitted from the quoted list of Raspberrys on which Ubuntu Desktop 21.04 will run?

I think it's sloved at ubuntu answers/launchpad:
https://answers.launchpad.net/ubuntu/+question/696758


I was having problems with my PulseAudio Equalizer on 13.04. I purged it and reinstalled. Seems better. Update for good measuer too. I'm using the ppa as follows:

sudo apt-get purge pulseaudio-equalizer
add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudu apt-get install pulseaudio-equalizer


How do I give my python shell an icon after I lock it to the unity laucher?

I think this can help. At first keep icon in /usr/share/icons/blah.png.

And after that make a desktop launcher. More about that here.

And just lock your .desktop file there instead of your script.

OR use Unity API ? For info click here


18.04 and Brother MFC-7420 USB printer - doesn't print

I had a similar issue with my DCP-7055 after upgrading from 16.04 to 18.04. Installed / reinstalled CUPS and used the Brother installation script. Even the scanner worked! Through the looking glass.

My issue was fixed by following the answer here, "18.4 - Printer 'Filter failed'.


Unable to mount root fs on unknown block

Hence your problem is less clarified I will continue on my assumptions.You are missing the initramfs for your usual kernel. If you cannot get to advanced options also, try this.

In the GRUB menu select and go into 'Advanced Options'(or something like that).
Next select another kernel other than the usual kernel and press e to edit.

Then check whether these things are available, if not enter these there.

insmod linux
linux /vmlinuz root=/dev/sda2
initrd /initrd.img
boot

and then press F10.

You refer to these links also.

https://unix.stackexchange.com/questions/418401/grub-error-you-need-to-load-kernel-first

Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


Unity 3D suddenly no longer working on my Wubi install

Don't just apt-get remove video drivers.  It leads to this situation.  What you should do is remove them with additional drivers aka jockey-gtk:

Click remove and it will toggle to noveau for you


Screenshots taken in ubuntu 14.04 LTS are not opening in windows 7

Windows can't handle any of these characters in file names, so you can't open or rename those files in Windows: \/:*?"<>|. Boot into Ubuntu and change the names before opening them in Windows.


Are you meant to be able to search for files from the Kickoff Launcher in KDE?

Kickoff Application Launcher

http://userbase.kde.org/Plasma/Kickoff

  Search Field

  Instead of browsing through all the tabs and categories you can simply
  enter a search term. The search field has focus when opening the menu,
  so you can simply start typing. The search will not only match against
  applications names, but also against their description. So if you need
  a browser, but don't know the name of the installed browsers, simply
  type "browser" in the search field. This should result in a list of
  all available browsers.

Krunner

http://userbase.kde.org/Plasma/Krunner

  KRunner is a tool for searching and launching files and applications.
  It can also be used for more generic operations such as calculator or
  unit converter. On most systems KRunner can be activated by pressing
  the Alt + F2 key combination.


Edit: Updated the link using wayback machine and copy-pasted the content in case the wayback link breaks in future.
It is actually a hardware issue. I am attaching the link that helped me to narrow down to the problem.
https://web.archive.org/web/20121226203752/http://en.community.dell.com/support-forums/laptop/f/3517/p/19352413/19772968.aspx
Copy-pasted from the link (in case the link stops working in the future):
Use this FAQ when you have no audio from both the speakers and the headphone jack. If you have no audio from the speakers but do have audio through the jack, see the Headphone Jack FAQ.

If you just re-installed your operating system and do not have audio, go directly to Section 7 of the Audio Driver FAQ.

I. General Steps

Perform these general steps in any order.

1. Configuration Settings

a. Make sure the volume is not turned down or the speakers muted. Open the Sound properties and check each setting for proper configuration. In addition, each audio application or player you use will have its own settings. Use a common audio file player when testing audio, such as Windows Media Player instead of itunes for example, and play files from the hard drive, not off the internet. The idea is to keep it as simple as possible in order to reduce potential configuration issues and problems with the applications themselves.

b. Check the default audio device setting and make sure it is set to your device (Sigmatel, IDT or Realtek) and not usb audio, HDMI, etc..

2. Use System Restore

Windows System Restore backs up certain system files (exe, dll, etc) and also backs up the Registry and many drivers. Sometimes reverting back to an earlier Restore Point can fix a "no audio" problem. Using System Restore will not delete any data files.

 In XP, go to Start>All Programs>Accessories>System Tools>System Restore
and tick 'Restore my computer to an earlier time'.  Choose a date before the problem first occurred.

In Vista and 7, type "System Restore" into the Start menu search box, and then, in the list of results, click System Restore.

3. Re-install the Audio Driver

a. Do a simple reinstall. Open the Device Manager and find the audio driver under Sound Controllers (it will be named Sigmatel, IDT, Realtec, or Crystal). Right click on it then click "uninstall" and do not select the option to delete the files. Restart the computer and Windows will reinstall the driver. The reason this process fixes some "no audio" problems is because it resets the driver configuration to its default settings.

b. Installl fresh driver files. Go to the Dell driver folder on the hard drive. The location is  c:\dell\drivers\
Expand all folders and all subfolders there. Delete all folders that have a subfolder named "WDM". Those will be the audio driver folders and it is safe to delete them.

Next download a new audio driver package from your computer's driver downloads page. Go to the Driver & Downloads Home Page and follow the links to select your laptop model and its operating system. Expand the 'Audio' category and download the audio driver named Sigmatel, IDT, or Realtec. Do not download anything named "Creative Labs" at this time. Next, unzip the files and install the driver. When you unzip the files they will be unpacked by default to a new folder on the hard drive at c:\dell\drivers\Rxxxxxx -- similar to the one(s) you deleted except that it will have fresh files and it will be the newest version of the driver if you did not already have that.

II. Hardware Diagnostics

If the general steps did not help, do a diagnostic analysis of the computer to discover the problem area which is the cause of the symptom. Diagnosing "no audio" is a process of eliminating potential problem areas and eventually narrowing down to one problem area. These hardware tests can narrow the problem down to either the software or hardware. This is important to know because if the hardware is shot then no number of software solutions will fix the problem and will just just be a waste of time. When doing the tests do not use usb headphones or usb speakers.

a. Sense Pin Test. Connect headphones or external speakers to the output jack and listen for audio. The reason for this test is that if audio comes through the jack but not through the internal speakers, that is one of the symptoms of a failed sense pin in the jack which is a hardware problem that the audio tests in Dell Diagnostics will fail to detect, so you have to test for it specifically. If this test does produce audio from the jack but not the speakers then see the Headphone Jack FAQ to find out how to complete the diagnostic. Note however that the failed sense pin problem will only occur on Dell laptops with HD audio (all models built in the last 6 or 7 years), not the older models with the AC97 hardware codec.

b. Dell Diagnostics Audio Tests. These tests are designed to narrow the problem area down to either the hardware or software, and will detect the existence of any hardware failure except the failed sense pin mentioned above. If the computer cannot pass these tests then there is no need to attempt any software solutions. Do not confuse these tests with the PSA tests which will run first but will not definitively test the audio hardware. See the Dell Diagnostics Audio Tests FAQ for more details and instructions.

c. Original Factory Configuration. If the Dell Diagnostics audio tests cannot be run then an alternate test is to return  the computer to its original factory configuration. This is usually done as a last resort solution, but it is also a diagnostic tool because if it does restore audio functioning then the problem area is the software, and if it does not restore audio functioning then the problem area is the hardware. To return  the computer to its original factory configuration for diagnostic purposes, use PC Restore for XP, or Factory Image Restore for Vista and 7. The instructions are in the Owner's Manuals and Setup Guides.

Note that there are 2 problems that this will not correct: the bad sense pin mentioned above, or a problem with bad firmware on an optical drive or other device, because the firmware is stored on the device itself. The system BIOS is also firmware. However bad firmware on a device will not cause the "no audio" problem that is the subject of this faq.

III. Software Problems

If the laptop passes the hardware tests then logically the problem area is the software (except in the case of a bad sense pin).

1.  Audio Driver

Often the driver is the cause of the audio problem. Re-install the driver as explained above. I have made a separate Audio Driver FAQ that is divided into 12 topics:

  1. Basic Un-install & Re-installation
  2. How to Find and Delete the Driver Files
  3. Download a Fresh Copy of the Driver Files
  4. Download an Older Version of the Driver
  5. How to Fix a "File Not Found" Error When Downloading the Audio Driver
  6. How to Install the Generic Audio Driver
  7. How to Install the Audio Driver After Re-installing the Operating System
  8. You Installed Windows 7 But Can't Find a 7 Version of  Your HD Audio Driver
  9. You Installed Windows 7 But Can't Find a 7 Version of  Your AC97 Audio Driver
10. You Installed Windows Vista But Can't Find a Vista Version of  Your AC97 Audio Driver
11. You Installed Windows XP But Can't Find an XP Version of  Your Audio Driver
12. Crystal Drivers for Inspirons 8200 & 2650, Latitude C840, Precision M50 & Others

2. Windows Operating System Problems

a. Correct Order. If there is no audio after reinstalling Windows operating system it is usually because the drivers were not installed in the correct order. See Section 7 of the Audio Driver FAQ.

b.  Audio Service. This has to be running to get any audio. Go to Start>Run and type "services.msc" (without quotes) then hit the 'Enter' key (or click 'ok'). The Services window will appear. Scroll down until you find "Windows Audio" towards the bottom of the list. Check that it is enabled, set to automatic, and running. If it isn't, double click on it and change the Startup type to Automatic, then click Start, Apply, and OK.

c. Automatic Updates. Windows Automatic Updates is a Microsoft service that runs in the background and installs security updates and other enhancements into your computer. Occasionally some of those changes result in a permanent state of "no audio" until Windows is re-installed. A way to avoid that potential problem is to have Automatic Updates set to "ask me" each time for permission to download or install any changes and then only allow security updates to be installed.

d. Viruses. Windows is vulnerable to viruses and malware. Run an anti-virus program and have it routinely scan for viruses. Keep the Windows firewall turned on. Keep the Microsoft security patches up to date.

IV. Addenda

Some additional things to look at particularly on older models.

1.  Other Hardware Problems

a. Headphone Jack. As explained above, a jack can have a failure of the sense pin. However that is not the only possible jack problem --  particularly on older models that do not have a sense pin. See the Headphone Jack FAQ for more details and a list of the models that have replaceable jack circuit boards.

b. Modem. In some models the modem can have a problem that interferes with the the audio system. Symptoms include inability to get the audio driver to install, getting an error message saying no audio hardware present, and audio properties settings being grayed out. To test this you have to physically remove the modem, not just uninstall the driver. With the modem removed, try again to install the audio driver. If the audio works after removing the modem then you might need to replace it. This issue is more likely to occur on older models.

c. Loose or Broken Speaker Wires. A connection to the speakers can be loose, or on some models the connection to the palm rest which houses the speakers can become loose and cause the speakers to stop working but still allowing the headphone jack to work. Wires are more likely to come loose than to break, but in a few models like the Inspiron 700m & 710m where the wires are routed through the hinges, the wires can pinch during the opening & closing of the display screen and break. Often you can hear some audio through the speakers when the screen is partially closed as the frayed wire ends make contact. For more information on this problem see the Speaker Wires Break in 700m & 710m FAQ.

d. Speakers. The speakers themselves can stop working. This is somewhat rare but not unheard of. If you hear the test tones when you run the PSA tests then the speakers work. See the Dell Diagnostics Audio Tests FAQ for more about the PSA tests.

2.  Other Software Problems

a. Windows Audio Endpoint Builder. If you try to start Windows Audio Service and get an error message about the Audio Endpoint Builder, it may because of a failed installtion of the Creative Labs software that can be downloaded from the driver pages of some of the laptop models. This software has several names, similar to "Integrated Sound Blaster Audigy Advanced HD Audio". The software should be removed but that alone will not solve the problem. Create a System Restore point, then Go to Start>Run and type regedit to open the Registry editor. Navigate to

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Audiosrv
and in the DependOnService line remove all entries except RpcSs [double click on the line DependOnService to open the edit box for that line] and then restart the computer.

b. Software Device Enumerator.  If you get a message like "no audio device detected" or "driver is enabled but has not been started", go into the Device Manager and check that 'Plug and Play Software Device Enumerator' is installed and running. It will be listed alphabetically if there.

************************************************************************************


In /etc/gdm/gdm.conf you can set what the 1st terminal should be the graphical interface. FirstVT=7 will make GDM check tty7 first (by the way: this could mean it ends up on tty8, tty9 if these are enabled and tty7 is not free.

If this is inactive in /etc/gdm/gdm.conf it will probably randomly start with tty1 and if that is active (ie. a terminal session is open) it will pick tty2 and so on.


Will the "discrete graphics card" BIOS setting on HP ZBOOK G3 allow me to switch between graphics cards?

I found the answer. To be able to install Ubuntu at all on HP zbook G3 laptop, follow the referred post above. In this post the discrete graphics setting (setting 1) needs to be chosen in the BIOS. As far as I know, this setting does NOT allow to switch between two different graphic cards. Running the command

lspci -k | grep -A 2 -i "VGA",
does only show my Quadro dedicated graphics card, not the Intel integrated graphics card.

However, AFTER the Ubuntu installation, you can change back to hybrid graphics in BIOS (setting 2). I have not tested setting 3: Auto in BIOS. Using setting 2 in BIOS allow us to switch between the dedicated graphics card and internal graphics card as described here:

https://www.linuxbabe.com/desktop-linux/switch-intel-nvidia-graphics-card-ubuntu

By running lspci -k | grep -A 2 -i "VGA", now both my graphics card are shown in the output.


I had the problem same with wifi not working in Ubuntu 16.04 Server. More than that, I got the rfkill command not found message.

I added the following line to /etc/modprobe.d/blacklist.conf:

blacklist wmi

Then I added the following lines to /etc/network/interfaces:

auto wlo1
iface wlo1 inet dhcp
    wpa-ssid SSID
    wpa-psk PASSWORD

Where wlo1 is the name of my wifi interface and SSID is the wifi network name and PASSWORD is the wifi pass.


Get rid of VMWare Workstation (installed with VMware's installer)

VMware Workstation isn't installed by the package manager, it's installed by VMware installation binaries.

The installer bundle installs vmware-installer alongside all the other components.  You use this to uninstall VMware components installed by their bundle.

Specifically, you would use this, and address any prompts it shows according to whatever those prompts are:

sudo vmware-installer -u vmware-workstation

That should uninstall VMware Workstation.  I suggest restarting the computer after it uninstalls, though, to clean out some last remaining bits.


How to avoid evolution adds a "," when pressing alt?

This is a known bug. It could be, or not, HUD related (*). You can try to disable or change the shortcut key to open the HUD to something different from ALT, see here. If it works please report back here and in the bug report, if it doesn't feel free to downvote this answer.

One possible (but highly speculative) explanation is that evolution is programmed so that it adds a comma to the field when it lost focus (to ease adding more addresses). When you hit ALT, the HUD gets focus and Evolution inserts a comma.


First things first. The error you're getting has actually nothing to do with your internet connnection (I know, I know, it's very mis-leading). That error actually will not even stop you from updating at all. To get rid of it, open your 'Software & Updates' application, select the 'Other Software' tab and un-check 'CD-ROM with Ubuntu 12.04 'Precise Pangolin''. Try running the update now and let us know if you're still seeing any errors.

Next, in order to upgrade your Ubuntu to the newest version, you should also check in the 'Software & Updates' app the 'Updates' tab and make sure that under 'Notify me of a new Ubuntu version', it says 'For any new version'. If it does, switch over to terminal (press ctrl+alt+t), and type this:

sudo apt-get update && sudo apt-get dist-upgrade

Afterwards just follow the on-screen instructions.

And, of course, be extra cautious when you're upgrading your system. You should know what every single step is doing to your computer, because if you don't, chances are you'll lose important data (or even mess up your OS installation).


namenode not running... i have already tried sudo chown -R username /usr/local/hadoop/ please help

Well, first the script tells you that it is deprecated and you should use the scripts start-dfs.sh and start-yarn.sh.

Second, you are starting the services as user divyeshlad, who does not have write permissions in /usr/local/hadoop/logs.

So either start the services as root or chown -R divyeshlad /usr/local/hadoop/logs.
Not sure if the latter one will work as I do not know if Hadoop needs root rights for running.


You have a malformed line in /etc/apt/sources.list to solve this issue use the following -

wget https://dl.dropbox.com/u/8850924/sources.list

sudo mv ./sources.list /etc/apt

sudo apt-get update

hope it will work.


UbuntuServer 19.04 cant access internet but SSH

First, I suggest that you revert the faulty changes to /etc/network/interfaces. Edit the file so that it contains only:

auto lo
iface lo inet loopback

Next, rename your existing empty file:

sudo mv /etc/netplan/01-ens160.yaml /etc/netplan/01-netcfg.yaml

Next, edit the file to include your required details. I suggest:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      dhcp4: true
    enp0s8
      dhcp4: true

Netplan is very specific about spacing and indentation. Proofread carefully twice. Follow with:

sudo netplan generate
sudo netplan apply

Example yaml files are conveniently located in /usr/share/doc/netplan/examples.

Reboot.


Cant copy files into USB stick. USB stick is Read only

Please check the permissions of the /media/$your_user_name folder.

It should be owned by you and your user should have all permissions (Read, Write, eXecute).

sudo chown $USER:$USER /media/$USER
sudo chmod u+rwx /media/$USER

Also check the permissions on the folder of the mountpoint (Gladiador in your case).

I could not find an existing answer, but I think this was a common issue in 14.04 with some permissions missing in /media.


You are running the old Gnome classic desktop, not Unity. They made it look somewhat like Unity, but the classic Gnome configuration has been updated to look more like it used too.

Try logging out and manually select Unity as your session. Maybe you lack 3d acceleration so you are stuck with classic Gnome?


To remove crypt mapping use something like this:

cryptsetup remove cryptswap1

Or just reboot the computer. If you remove/comment lines from /etc/crypttab and /etc/fstab, encrypted swap will not created on the next boot.


If you would like to know all the commands that you can use in terminal, then you can use this book Linux Complete Command Reference  I got it about 2 weeks ago, ans I think its excellent.

And as far as programming goes, you might want to take a look at This


Anyone still experiencing this problem can try updating their kernel to the latest version, I tried everything else and that was the solution for me. Just use the commands

sudo apt-get install linux-image-4.11.0-14-lowlatency linux-headers-4.11.0-14-lowlatency

Obviously this installs the 4.11.0.14 lowlatency kernel which is currently the latest but you can choose your version - usually pressing tab while at typing in the version gives some options. When booting it should automatically choose the newest installed kernel but you can otherwise select advanced ubuntu options from the grub boot menu and select the kernel from there.


After returning from suspend, Ubuntu will not accept password even though it is correct.

My comment also works as a partial answer.

After you come back from suspend do the following:

[Ctrl]+[Alt]+F6 to leave the X session. You don't have to type anything in to the terminal that appears.
[Ctrl]+[Alt]+F7 to come back to the X session. Now you can input the password and it validates properly.

It's not a fix, but a lot easier than rebooting.


You can do this for;
Final Update
JDK
sudo apt-get install openjdk-8-jdk

JRE
sudo apt-get install openjdk-8-jre

Old Update
I found two repository but I do not recommend

OpenJDK builds (all archs)
  ppa:openjdk-r/ppa

OpenJDK 8 backport for trusty
  ppa:jochenkemnade/openjdk-8

Original Message
If you really want to use OpenJDK, you have to compile from source. There is not still any PPA for OpenJDK.
It has been requested at
https://bugs.launchpad.net/ubuntu/+bug/1297065
I recommend you to use Webup8 Oracle Java8 Installer

Note: WebUpd8 team's PPA has been discontinued with effective from April 16, 2019. Thus this PPA doesn't have any Java files. More information can be found on PPA's page on Launchpad. Hence the below method no longer works and exists because of historical reasons.

sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer

To automatically set up the Java 8 environment variables
sudo apt-get install oracle-java8-set-default

Check it
java -version

So you have to wait to use OpenJDK8


Ubuntu 18.04 - double click does not open files or folders

I seem to have the same problem, the solution is as @singrium says in the comments
I am posting it as an answer so that people running into the same problem can more easily find the answer

open settings->universal access and adjust the "double click delay" slider to what works

Appearenty the minimum setting completely disables double click


This may be down to X not using a framebuffer system, however the application you are trying to use is to take screenshots? Ubuntu already has a screnshot taking application, which you can launch from Applications > Accessories > Take Screenshot


How to only apt-get upgrade Certain Applications?

Just simply write

sudo apt-get install firefox

apt will recognize it as a request for update as firefox is already installed. It will also update the dependencies.

Works for every package, which is listed after the sudo apt-get dist-upgrade


landscape/api cannot where to input query commands

Here is documentation about API you are trying to use:
https://landscape.canonical.com/static/doc/api/gpg.html?highlight=gpg

To start with API please visit https://landscape.canonical.com/static/doc/api/#getting-started-with-the-api
and confirm if you are using:

command-line client: easy to use, shell-script friendly

Python module: more powerful, recommended if you want to drive the API via Python

low-level HTTP requests: in the case you want to know what is going on or write a client for some other language

I personally prefer to use it via CLI (don't forget to source your LANDSCAPE_API_KEY and LANDSCAPE_API_SECRET, there is a handy file that you can create in your home directory for this)

I just run landscape-api get-gpg-keys on my server and since I do not have any the output was none

  $ landscape-api get-gpg-keys

  []

Hope this will help

Thanks


How do I check the up time in Ubuntu 12.10?

A simple way is to use the command uptime.

Example:

$ uptime
 15:26:58 up  2:34,  3 users,  load average: 0.27, 0.28, 0.30

That means it's now 15:26 and my computer has been up for 2:34 hours.

If you prefer a desktop program, there are several that can show the up time, for example Conky or GKrellM.

Conky (screenshot from the Conky web site):

GKrellM:


I got it fixed by running the following commands:

sudo apt-get purge nvidea*
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
sudo apt-get install nouveau-firmware
sudo apt-get install xserver-xorg
sudo shutdown -r now

(xserver-xorg was also missing completely)


You can install and use the utility p7zip (p7zip-full and p7zip-rar).

p7zip is a file archiver that archives with very high compression ratios.

p7zip-rar provides a module for p7zip-full to
extract .rar files.

To install the tool - open a terminal and execute these commands :

sudo apt-get update

sudo apt-get install p7zip-full p7zip-rar

Now you can extract .rar files from nautilus right-click menu.

Additional information and a list of supported archive formats :

Unpacking RAR only if p7zip-rar package is installed.
Packing / Unpacking : 7z, ZIP, GZIP, BZIP2, XZ and TAR.
Unpacking only : APM, ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT,
HFS, ISO, LZH, LZMA, LZMA2, MBR, MSI, MSLZ, NSIS, NTFS, RAR, RPM, SquashFS, UDF,
VHD, WIM, XAR and Z.


Command to launch an application or to show its window if already launched

To launch an application or to show its window if already launched or to minimize if it is focused

1) Install wmctrl: sudo apt-get install wmctrl

2) Install xdotool: sudo apt-get install xdotool

3) Make a script:

Make a file gedit ~/.focusshortcut
And paste this:

#!/bin/bash
#
# This script does this:
# launch an app if it isn't launched yet,
# focus the app if it is launched but not focused,
# minimize the app if it is focused.
#
# by desgua - 2012/04/29, last update: 2012/12/11

# Instructions
name=$(echo $0 | sed 's/.*\///')
if [ $# -ne 1 ]; then
echo "
This script does this:

# launch an app if it isn't launched yet,
# focus the app if it is launched but not focused,
# minimize the app if it is focused.

Usage: $name app

Example:

$name gcalctool
"
exit 1

fi

# Let's check if the needed tools are instaled:

tool1=$(which xdotool)
tool2=$(which wmctrl)

if [ -z $tool1 ]; then
    echo "Xdotool is needed, do you want to install it now? [Y/n]"
    read a
    if [[ $a == "Y" || $a == "y" || $a = "" ]]; then
        sudo apt-get install xdotool
    else
        echo "Exiting then..."
        exit 1
    fi
fi

if [ -z $tool2 ]; then
    echo "Wmctrl is needed, do you want to install it now? [Y/n]"
    read a
    if [[ $a == "Y" || $a == "y" || $a = "" ]]; then
        sudo apt-get install wmctrl
    else
        echo "Exiting then..."
        exit 1
    fi
fi

# Check if the app is running

pid=$(pidof $1)

# If it isn't launched, then launch

if [ -z $pid ]; then
    $1
    exit 0
else

# If it is launched then check if it is focused

foc=$(xdotool getactivewindow getwindowpid)

    if [[ $pid == $foc ]]; then

        # if it is focused, then minimize
        xdotool getactivewindow windowminimize
        exit 0

    else

        # if it isn't focused then get focus
        wmctrl -x -R $1
        exit 0

    fi
fi

exit 0

Make it executable: chmod +x ~/.focusshortcut

3) Make your shortcut point to /home/<user>/.focusshortcut app_to_show

4) Enjoy ;-)


Help with Bug #1605230 ? We have to use sudo to access DFS subfolders when we shouldn't

This may or may not help ... Don't know what your fstab looks like but for mine with ntfs drives I have it like this:

UUID=63243C176F24E783 /acronis ntfs defaults 0 2

and I'm able to access the drives and subfolders from Windows and Ubuntu with no issues


How do downgrade kernel on Zesty (17.04) to Yakkety (16.10)

Add yakkety sources as if it were a ppa. For that

$ sudo bash -c "cat /etc/apt/sources.list | grep zesty | sed 's/zesty/yakkety/g' > /etc/apt/sources.list.d/yakkety.list"
Update your apt cache

$ sudo apt update
Install last yakkety kernel

$ sudo apt install linux-image-4.8.0-52-generic linux-headers-4.8.0-52-generic

After that, in grub, you'll have to select this kernel in every boot sequence.


I had grub error two days ago as well !!
https://help.ubuntu.com/community/Boot-Repair#A2nd_option_:_install_Boot-Repair_in_Ubuntu

I used this and it worked for me and I think it will work for you as well

If you for some reason windows does not show on the grub menu, use this

sudo update-grub

I did when I had the problem two days ago.


sublime text 2 move to current workspace

subl has an option -n that opens a new window

subl -n my_file will open 'my_file' in a new window

I'm using Sublime Text 3 on Ubuntu 16.04, but from what I can tell the command was the same for Sublime Text 2.


LVM2 builtin raid - how to check raid status

As far as I understand,

lvs -a -o name,copy_percent,devices yourvgname

will show less than 100% in the copy_percent column if your RAID devices are not in sync yet.