How can I get bluetooth working again in 20.04.1 and connect a ps3 controller via usb?

I think systemctl stop sixad is what finally fixed my bluetooth.


Mouse Scroll stopped working in Kate 15.12.3 Kubuntu 16.04

I was able to get mouse scrolling back in Kate (Kubuntu 16.04).

In system settings / hardware / input devices / mouse

Re booting rest it although after I had re-set, /system settings / hardware / input devices / mouse / reverse scroll direction, a couple of times.


Wow, well the answer I would give is to either use another video card or wait for 13.04 which will come with better support for the Intel 4000 HD series found in the Ivy Bridge CPUs. The support for the HD 4000 is not final yet in 12.10, it only got up to HD 3000 and still there were last minute changes that were needed to be included in the kernel. In kernel versions 3.7 and 3.8, all of this changes will be included, as well as several improvements for Mesa in regards to Intel HD in general.

For each individual point:

Yes. It is because of the TV. Same happened to me. It really depends on the TV and the "real" resolutions it can handle. For example I have a someview 32' that says to support 1920x1080, but if I use that resolution it looks horrible. If I use a lower one like 1680x1050 it looks many times better and smoother.
Related to drivers and support for Intel HD 4000. Intel is working hard on having full support for the HD 4000 Series (And the 3000 since it is missing a couple of things) as well as much MUCH better support in Mesa for OpenGL in Intel HD.
Bad move with the upgrade of the kernel. Typically they are made for a specific version of Ubuntu since it needs a lot of testing to get everything right. Your solution was he right one at the end.
and  This is because the drivers for the HD 4000 Series do exists for Windows. Intel is actually working on proper support for Linux.
Same as 4.
Ok ^^.
Same as 2.
Same as 2.
Same as 2
Won't do much. It will have the same performance.

You happen to have a very high end (latest model) of literally everything. I would recommend getting an Nvidia card while you wait for 13.04 or test the pre-alpha version.

For the Blender comments, when they mention "native", they mean for example, the proprietary drivers for Nvidia/Ati, or a fully supported Intel video card. Right now, the latest 2 series, the HD 3000 and 4000 are not yet fully supported but will be in the upcoming 13.04.


18.04 shuts off immediately after opening laptop lid to wake from sleep

sleep is for all intents and puposes broken on ubuntu 18.04/.1/.2

the symptoms will vary depending on the hardware. what I did to fix it was switching to ubuntu 18.10.

19.04 is right around the corner (18th of april) and should also provide the same fix.

hope this helps.


Why does forcing Qt applications to use GTK theme makes those apps startup slowly?

I did some testing as I had some machines with the problem and others without it. I have narrowed it down to this:
sudo apt install appmenu-registrar vala-panel-appmenu-common

With those both installed (and the recommends from appmenu-registrar), after reboot your qt5 apps should launch without delay, even with QT_QPA_PLATFORMTHEME=gtk2 in your ~/.profile or /etc/environment So GTK theme looks good plus no delay in launching qt apps!


You can install packages that are contained on the CD. vlan package is most likely not present on the iso for you to install. So you would have to use an offline method to install that package:
If you need to download Ubuntu packages using another machine or OS, check the desired packages in Synaptic and select File > Generate package download script. Alternatively, try http://ubottu.com/ljl/apt/


An anonymous user (possibly the original poster while not logged in, or possibly someone else, there is no way to know) proposed the following solution as an edit. I've made it into an answer instead (with slight formatting changes):

I found the solution (if you are able to login, e.g., via ssh):

Edit /etc/default/grub:

GRUB_GFXMODE=640x480

GRUB_TERMINAL=console

sudo update-grub

Reboot.


Is there an equivalent to book-keeping package "Pastel" in Ubuntu?

In general they are likely to be closed as off topic.

In your case , see http://wiki.clug.org.za/wiki/Comparison_between_Quasar_and_Pastel_Accounting_software

See also

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

http://wiki.linuxquestions.org/wiki/Linux_software_equivalent_to_Windows_software

http://www.linuxalt.com/


First error:

   W: Failed to fetch http://archive.getdeb.net/ubuntu/dists/trusty-getdeb/apps/binary-amd64/Packages  521  Origin Down [IP: 104.28.24.125 80]

means that server is down. I tested repository url and it is really down.

Second error that you got means that there are two entries for the same repository.

Check where are defined using these commands:

  grep "archive.getdeb.net/ubuntu/ trusty-getdeb/apps" /etc/apt/sources.list
  grep "archive.getdeb.net/ubuntu/ trusty-getdeb/apps" /etc/apt/sources.list.d/*

If you find out multiple definition, remove duplicated items and redo:

  sudo apt-get update

Today I checked repository url and now it seems up.


need to try several times to log into Ubuntu normally

Make a backup of your disk if you suspect error and experience boot problems already, if you haven't already made one.

Try a scan for bad blocks. Start by checking what partitions you have:

mount | grep sda

Then for Linux partition found do:

fsck.ext4 -ck /dev/sda7

where you replace 7 with the actual partion number.

There is also a badblocks command, but I'm not familiar with it. It seems to scan the device filesystem agnostic. In other words, the filesystem used doesn't matter.

man badblocks

Leave checking NTFS to Windows.

Allow some time to get this answer reviewed by other visitors.


What's the effect of Ubuntu upgrade on the session configurations?

Upgrades usually keep your settings. It's nice to backup just in case, but your settings are reused wherever possible.


How do I find if my video driver is working

Go to System Settings... > System > Details Under 'Graphics', you will see something like GeForce GTX 760/PCIe/SSE2 I'm using the same drivers, and that's what shows up for me.

Another way to verify that they're in use is to open your terminal and type in lspci -vnn | grep -i VGA -A 12. Look for the line that says Kernel driver in use If it says nvidia, you have the driver installed. To make sure that you have hardware 3D acceleration, type in glxinfo | grep OpenGL | grep renderer If it says anything other than MESA, you're in luck.

To get CUDA up and running for 3D rendering and such, type in one final command: sudo apt-get install nvidia-modprobe. This enables CUDA for the full experience. Once that's all finished, restart your computer.


I frequently use services like fail2ban or denyhosts to monitor for invalid login attempts (usually dictionary attacks) and ban the clients' addresses.

They typically work by adding the client address to /etc/hosts.deny, at which point you'll see the types of failures you're describing here, including the "ssh_exchange_identification: Connection closed by remote host" message when using ssh -v .

It's worth checking whether your client address is in /etc/hosts.deny and if a service like denyhosts is running.


You need to set the JUJU_DEV_FEATURE_FLAGS variable to whatever feature you are trying to enable. You do this when you bootstrap.

JUJU_DEV_FEATURE_FLAGS=vsphere-provider juju bootstrap controllername cloudname


12.10 unable to install or even run from Live CD with nVidia GTX 580

I managed to get my desktop running with a Nvidia Geforce GTX 580. I installed Ubuntu 12.04 via the alternative installer, which can be found here.

Before finishing the installation, i installed the nvidia graphics drivers. To do this, open a shell with ALT+F2, then run the command "chroot /target" and then run "apt-get install nvidia-current". Press CTRL+D and then ALT+F1 to exit the shell. Then finish the installation.

After installing, it was necessary to add the option 'nomodeset' in grub.

Credit for the alternative installer trick goes to joelalmeidaptg.

EDIT: Ubuntu 13.04 does not suffer as hard. Nomodeset is needed for installing, but afterwards it is able to boot, albeit with poor resolution. It is then possible to install the nvidia-current package and it works great afterwards. I have submitted a bug report to this issue.


Festival error when trying to use SayText

Your issue lies in the "-q" you passed to festival when you launched the interactive shell. The man pages state that "-q Load no default setup files", which is causing SayText to not be bound.

I suggest you run your test exactly as follows:

$ festival

Which will launch festival in interaction mode, prefacing your shell with "festival>"

At this point you can run your SayText command like so:

$ (SayText "hello)


Ubuntu does not have a flight mode. I think you mean disconnecting your wireless by simply turning it off? To do that either disable the hardware switch or right click the network icon and click disable wireless.

Correct me if I'm wrong about you wanting to disable the wireless and I'll update my answer.


the attempt to mount a filesystem with type ext4 failed

I have found this tutorial online and I think this is just what you are looking for. The tutorial will walk you through the steps on installing and setting up the OS. Only follow the part where it says "Install Ubuntu 15.04 desktop" DO NOT follow the part below where it says "Install Ubuntu 15.04 server" that is if you are going to be using it as some sort of server (as the OS implies) such as a file server or a web server.

I really hope this helps you out.


hosts.deny example:

ALL: 192.168.1.2
ALL: example.org

This denies all service to 192.168.1.2 and example.org. For further information, take a look here: http://linux.about.com/od/commands/l/blcmdl5_hostsde.htm

dnsmasq -d should give you the cached entries but I'm not so sure about that.

---UPDATE---

To block an IP Address with iptables:

iptables -A INPUT -s 11.22.33.44 -j DROP

to unblock:

iptables -D INPUT -s 11.22.33.44 -j DROP


How to include postinst file with bzr builddeb?

bzr builddeb's options include:

--strict    Refuse to build if there are unknown files in the working tree, --no-strict disables the check.

This makes me think it will include only those files which are added to the branch while building a package. Therefore, try adding postinst using bzr add.


BIND 9.16.1-Ubuntu '::1/64': address/prefix length mismatch '64'

In many places in the options you can manage what devices or what networks are allowed to transact with the DNS server.
When specifying single IP address, you need to either use binary all 1s mask, 32bit long for IPv4 (CIDR /32) and 128bit long for IPv6 (CIDR /128) or omit the mask.
In case you are specifying the network, you should not over specify it.
::1 is an IP address while the mask /64 is suggesting a network so the mask is over specified.
If you wish to use ::1 IP address then mask should be /128 or omitted like in the "allow-transfer" section.
1000:1000:1000:1000::/56 subnet is incorrect because it is from range reserved by IETF
Global Unicast addresses are in 2000::/3 range,
Unique Local Unicast fc00::/7,
Link-scoped Unicast fe80::/10,
Multicast ff00::/8.
Other addresses are reserved.
If you don't use IPv6 in your network, I would recommend to remove them from your configuration.


Boot stuck on logo screen after upgrading from 14.04 to 14.10

Try switching to a virtual console by pressing any of Ctrl+Alt+F1 through F6. You may see what you need: Error messages, et cetera.

Other than that, you don't really have enough information in your question to help out. I don't have enough karma to comment, but you should give it a shot and see if you can provide the relevant error messages, et cetera.

Even better, Google those error messages first.


libopenscenegraph80 error on ubuntu trusty partial upgrade

It seems like libopenscenegraph80 package is set hold. Try the below commands to unhold and install the above mentioned package.

sudo apt-mark unhold libopenscenegraph80
sudo apt-get install libopenscenegraph80


Ubuntu boots on terminal only, how do I recover the GUI desktop?

Try this.  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install --reinstall ubuntu-desktop


Maybe driver for your GPU is missing. Do you know what package in it is? If yes, use the Ctrl+Alt+F1 combination to switch to a TTY. Log in (if you've installed Ubuntu), and type:

sudo apt-get update; sudo apt-get -y install NAME_OF_THE_PACKAGE

After the successful installion, type:

sudo reboot

Check the result.

If you don't know the package's name, please look at this question&answer. If you need any further help, please write a comment!


Failed to startup : ubuntu--vg-root clean

I finally found a way to fix my issue :

sudo apt-get install --reinstall ubuntu-desktop

And then I rebooted my laptop.


Check out this link. I tried it and it worked fine on my Ubuntu 11.04 64 bit installation... Install Adobe AIR on 64 Bit Ubuntu 11.04


Need help fixing DPKG errors after update from 12.04 to 12.10

Try disabling any PPA's or other non-standard repositories. Then try updating again.

Also try opening Ubuntu Software Center. I had a similar problem and when I opened the Software Center it told me that no software could be installed until the repos are repaired. I allowed it to repair and all was fine after that.


Is there a possibility to export/backup the settings of PCmanFM in Lubuntu?

Shortcuts appearing in the side pane are termed "bookmarks" in PCManFM. These are stored in ~/.config/gtk-3.0/bookmarks even though the version of PCManFM installed by default in Lubuntu 14.04 is gtk-2.0.

By the way, I use this alias when I want to find what's recently changed in my home folder:

alias 5m='find ~/ ! -path "/home/dkb/.mozilla/*"  ! -path "/home/dkb/.cache/*" ! -path "/home/dkb/.config/google-chrome/*" ! -path "/home/dkb/.config/libreoffice/4/user/*" ! -path "/home/dkb/.dropbox/*" ! -name "recently-used.xbel" -mmin -5 -type f -ls'

It lists files that have been created or modified in the last 5 min but excludes certain folders and files that I'm not interested in knowing about.

So if I add a bookmark to PCManFM's side pane and immediately run 5m, this is what I see:

$ 5m
7209279    4 -rw-rw-r--   1 dkb    dkb         578 Jan  8 21:36 /home/dkb/.config/gtk-3.0/bookmarks
7739601    4 -rw-rw-r--   1 dkb    dkb         122 Jan  8 21:35 /home/dkb/.config/kupfer/config-kupfer.plugin.favorites-v1.pickle
7739514    4 -rw-rw-r--   1 dkb    dkb          36 Jan  8 21:35 /home/dkb/.config/kupfer/config-kupfer.plugin.triggers-v1.pickle
7739653    8 -rw-rw-r--   1 dkb    dkb        4726 Jan  8 21:35 /home/dkb/.config/kupfer/mnemonics.pickle
$


According to OP in a comment:

  Did change the GTK+ theme combobox because I thought that was
  sufficient. I don't really understand themes too well. I just found a
  setting in Appearance called Theme and that DID solve the problem.


The answers are now obsolete (2017), the logs are now here

journalctl -u NetworkManager


Hitting Screenshot key does not give a preview

Check your configuration. Go to "System Settings" > "Keyboard"

Then go to "Shortcuts" > "Screenshots"


Specifying JDK in eclipse.ini not being used

To specify the JDK in the 'eclipse.ini' you must specify the '-vm' and the path to the JDK on separate lines

-vm
/path/to/java

This entry must also be before any '-vmargs' line.

Note: This entry sets the JVM/JDK that eclipse itself uses. You can specify different JDKs for each project by adding the JDKs in the Preferences in the 'Java > Installed JREs' list.


Are there any Ubuntu Tablets for sale in the U.S.?

These are the tablets mentioned in OMGUBUNTU

here's the link


You need to figure out what the designation of your USB stick is and then during install you execute this command:mount -t auto /dev/sdxy /cdrom where sdxy is the correct designation of your USB stick.

Example: let's say your USB stick is sde1 then the command is mount -t auto /dev/sde1 /cdrom

disclaimer: I've never tried this myself and to be honest I don't believe this will work. But you asked for it and this was reported as actually working somewhere.


On Ubuntu 16.04 adding the following to '/etc/libvirt/qemu.conf' solved my problem:

user = "myUser"
group = "myGroup"
dynamic_ownership = 0

For those who wish to move the qemu/kvm image to Dropbox, I did this as well:

virsh edit machineName

and then changed this line:

<disk type='file' device='disk'>
  ...
  <source file='/var/lib/libvirt/images/generic.qcow2' /> // removed
  <source file='/home/myUser/Dropbox/vm/generic.qcow2' /> // added
  ...
</disk>

You have to change owner and group of:

/home/myUser/Dropbox/vm/generic.qcow2

to yourUser and yourGroup. Hope this will help you.


asserting ownership of a Windows-shared hard drive

I did use the option of editing the fstab, from the Disks utility in Ubuntu 17.04. (I found my info here.)

It's in the screenshot, but I'll also post my entry to the fstab for reference:

defaults,auto,uid=1000,gid=1000,umask=000,nls=utf8,x-gvfs-show 0 0

I opted for the umask=000 which might be too permissive, but since I have other users using this drive (logging into the same machine as their own users) I didn't want to accidentally lock it for them.

I'm not sure if the uid, gid, or umask made the difference; I had already applied ntfs-g using the Disks utility with no change to the problem, so I'm assuming it was a legacy user issue from when I had to reinstall windows and Linux.


You can not 'log out' technically but you can force your system to request your ID every time you open the application.

You need to do the following (Its a bit long winded!)

1.Open settings
2. Click advanced options
3. Remove device from U1

Now you have logged out however your device is still logged in to your OpenID

To solve this open the app again and you will be taken to the grant access screen where you can completely log out at the top of the screen.
This way whenever your open the app you will need to log in again.


how to remap Ctrl to Escape if pressed and released on its own

The latest reply to Remapping Caps Lock to Control and Escape (not the usual way) says this utility will do what you want: https://github.com/alols/xcape


How can I edit a variable in a running shell?

This can be done. Type var=$var and then expand and edit it. To expand,
use Esc+Ctrle (the default shortcut, check output of bind -p | grep shell-expand-line to confirm).

So:

muru@muru-1604:~$ PS1=$PS1

will become:

muru@muru-1604:~$ PS1=${debian_chroot:+($debian_chroot)}\u@\h:\w\$

Which you can then edit in an editor with Ctrlx Ctrle (edit-and-execute-command in readline terms). When you save and quit, the saved content will be executed by the shell.

If you already have PS1=... in your history, you can just go back to that and Ctrlx Ctrle.

From the bash manual:

  shell-expand-line (M-C-e)

  Expand the line as the shell does. This performs alias and history
  expansion as well as all of the shell word expansions.

  edit-and-execute-command (C-xC-e)

  Invoke an editor on the current command line, and execute the result
  as shell commands. Bash attempts to invoke $VISUAL, $EDITOR, and emacs
  as the editor, in that order.


Can't Find Windows's partitions in Linux

Ubuntu is different than windows, you can find your drives c:, d: or anything in Places, You have to just keep your mouse at left side at TOP panel, find your drives in Places menu. You may find drives name like 50 Gb, 100 Gb or anything like that. If you want give paricular name like System to C:  drive Entertainment to D: drive. Reboot your system with windows and rename drive names by going to my computer, click particular drive, press F2 and rename drive. Reboot machine with  Ubuntu you will find your drives with Names in Places.


I have had screen edges that sometimes stops working, don't know whether your issue is related.

For my problem, running the following command in the terminal usually fixes it:

kwin --replace &

It is important to include the &, otherwise the windows will crash when you close the terminal. See

kwin --help

on exactly what the command does.


Font rendering issues on 14 inch screens

If you haven't already tried GNOME Tweaks...


Is there Persian calendar in kubuntu yet?

A Persian (Jalali/Farsi) calendar, it will be called Gahshomar, to install it:

sudo apt-add-repository ppa:183-amir/gahshomar
sudo apt-get update
sudo apt-get install gahshomar


If you are following this guide, first, you are following something for Dapper Drake 6.06 (6 years old) that doesn't apply to recent versions of Ubuntu. Second, you need to remove that repository:

  COMPIZ / BERYL
  the repo on this server is out of date.
  for beryl or compiz head to http://opencompositing.org/

Remove the repository using this:

sudo sed -i '/beerorkid/d' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
sudo apt-get update

The opencompositing site also is dead (tried to get the repositories). I would also suggest you to upgrade Ubuntu and don't use Dapper.


Remove the grub menu after removing Windows dual boot

In that same grub configuration, there are two lines that are commented out:

#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true

Remove the # at the beginning of each line, then run sudo update-grub again.


Power button in Lubuntu 13.10 will not suspend

It seems that systemd-logind is in conflict with xfce4-power-manager. This seems to resolve it for me with xubuntu on and Inspiron 9400.

Tell systemd-logind to ignore the power button. Open a terminal with Ctrl+Alt+t. And enter the following command to edit the file:

gksu leafpad /etc/systemd/logind.conf

Un-comment the line for HandlePowerKey and change the value from poweroff to ignore so that it looks like this:

HandlePowerKey=ignore

Restart the service

sudo service systemd-logind restart
Use xfce4-power-manager-settings to set the power button action

Good Luck!


Adobe air is now available for Ubuntu 14.04+

wget -O adobe-air.sh http://drive.noobslab.com/data/apps/AdobeAir/adobe-air.sh
chmod +x adobe-air.sh
sudo ./adobe-air.sh

That's it, here is some more information


I am not aware of a "native" way to assign a shortcut in order to switch to an existing window. You can achieve this using wmctrl. I personally use a little tool jumpapp at https://github.com/mkropat/jumpapp, which internally also uses wmctrl.
Using wmctrl
wmctrl is not installed by default. Install it using sudo apt install wmctrl.
Following one-liner will switch to Firefox, or launch it if no Firefox window is currently open:
wmctrl -xa Firefox || firefox

In Bash shell, the command separator || means: if the first command was not successful, then try the next one. Thus, the first command wmctrl attempts to activate a window of WM_CLASS Firefox. Only if no such window is found, which implies Firefox is not running, the command after the separator is launched, i.e., starting the Firefox browser.
To find the WM_CLASS of a window to use in the wmctrl command, you can use
wmctrl -lx

The option x will add a column showing the window class, as in
0x04400003  0 Navigator.Firefox     hostname keyboard - Is there a way to bind shortcut keys to switch to already open applications in Ubuntu 18.04 LTS? - Ask Ubuntu - Mozilla Firefox

The third entry, Navigator.Firefox shows we can use Firefox (or "Navigator", or "Navigator.Firefox") as the window class to identify the window.
Using a tool jumpapp
While using wmctrl directly is not quite complicated, a tool jumpapp, in fact a bash script that relies in wmctrl, is even more simple in use, and has a few added benefits:

It is even simpler to implement.
If multiple windows of the same application are open, subsequent presses on your shortcut key will cycle through them.
You can bind another shortcut key, e.g. a Shift+Your Shortcut to cycle windows in reverse
You can have your hotkey toggle between bringing the window forward and minimizing it, if the app is already running.

jumpapp is not in the repositories, but can conveniently be installed as a .deb following the instructions on the website.
Once jumpapp is installed, simply precede the command to launch your application by jumpapp to launch your application launched if it is not running already, or switch to an existing window. Assign that command to a shortcut key.
You can also edit the Exec= line in a .desktop file, to provide the same functionality to a launcher. As a matter of fact, a command jumpappify-desktop-entry is included that will do that automatically for a .desktop file you specify.
Launchers in Gnome Shell already behave like this by default, but in other desktops, the app can be used to provide similar "launch or switch-to" functionality to launchers.


To toggle F1 .. F12 keys use media functions or to be
the "F" keys press Fn +  Esc .


This is what I have done on my laptop. I have a integrated Intel GPU.

Force Pipe A Quirk
This problem typically exhibits itself on Intel graphics hardware
(most particularly i855) by locking up the machine when closing the
lid.  The fix for this issue is to quirk your card to force enabling
Pipe A. If you suspect you're having this bug, try setting this option
in your xorg.conf:
Section "Device"
    ..
    Option "ForceEnablePipeA" "true"
EndSection

Fore more reference visit the source of the above quote:
https://wiki.ubuntu.com/X/Quirks#Force_Pipe_A_Quirk
There are some possible fixes about ATI and nVidia.


cowsay command line with random cowfile:

fortune | cowsay -f `ls /usr/share/cowsay/cows/ | shuf -n 1`

Result:

     ___________________________________
/ Q: Who cuts the grass on Walton's \
\ Mountain? A: Lawn Boy.            /
 -----------------------------------
  \
   \ ,   _ ___.--'''`--''//-,-_--_.
      \`"' ` || \\ \ \\/ / // / ,-\\`,_
     /'`  \ \ || Y  | \|/ / // / - |__ `-,
    /@"\  ` \ `\ |  | ||/ // | \/  \  `-._`-,_.,
   /  _.-. `.-\,___/\ _/|_/_\_\/|_/ |     `-._._)
   `-'``/  /  |  // \__/\__  /  \__/ \
        `-'  /-\/  | -|   \__ \   |-' |
          __/\ / _/ \/ __,-'   ) ,' _|'
         (((__/(((_.' ((___..-'((__,'

You can add this command line to end of your login profile script for seeing random cowsay in any terminal. For bash, you would need to put this line in ~/.bashrc.

To make it also randomly choose between cowsay and cowthink, you can do this:

fortune | `ls /usr/games/cow* | shuf -n 1` -f `ls /usr/share/cowsay/cows/ | shuf -n 1`

This allows to have a one-line solution with random cowfiles, instead of painstakingly extending the Linux Mint script.


Is there any apt-get/dpkg/aptitude option to get apt cache folder location?

try -

import apt_pkg
apt_pkg.init()
arch_location = apt_pkg.config.find_file('Dir::cache::archives')

http://apt.alioth.debian.org/python-apt-doc/library/index.html


Unable to send data to mysql database. It is not taking by my php code

I'd try to use the mysql_pconnect(host,user,password) function to connect to the server.
About your second problem it sounds to me the php library for apache is not installed or configured correctly.
open synaptic and look for any apache-php missing library and as minimum try to (re)install libapache2-mod-php5

Hope it'll help

G.


Enable/disable xdebug through a2enmod and a2dismod?

I believe xdebug belongs to php and not apache per say so I saw this solution to disable it with [since your using] php 7:

sudo phpdismod xdebug

And for php 5:

sudo php5dismod xdebug

Then restarting apache after that: sudo systemctl restart apache2


unable to run make during installation of kernel 3.3.6

Real simple solution:

apt-get install qt4-qmake libqt4-dev

It will also install a number of other files. Just say Y. Happy kernel compiling!


What is the easiest way to fix a mixup of 32-bit and 64-bit?

What is the easiest way to fix this? Mucking about with the kernel files or axing it with a reinstall?

Just reinstall. The way to fix it would be immensely time consuming and complex.

  Is it possible and safe to have a dual boot of 32 and 64-bit 12.04 LTS?

As long as you have a 64-bit CPU, there will be no conflict between dual-booting. The two installations will be completely isolated from each other and will perform independently.


Graphical artifact in Chrome and Chromium

Turn off the hardware acceleration in the settings of google chrome.It should solve the problem.

For me, this solved the problem.


Laptop hdd encrypted with LVM full disk encryption

full disk encrypted my laptop [...] swap partition [...]

It's totally up to you where you put swap partitions. Some typical set ups:

dm-crypt on raw partition and /boot as small plain parition, then on top of the large crypto 'device' as LVM Physical Volume:

-> LVM Volume Group (one PV as member) crypto -> LVM Logical Volumes:

crypto-rootfs as /
crypto-homes as /home (optional)
crypto-swap as swap (optional)
leave some room in the volume group to be able to use LVM's features

Don't try to set it up the other way around - crypto on top of individual LVs is not going to be of any advantage, but only giving you headaches.
dm-crypt on raw partition as / with separate /boot and separate non-encrypted swap.

less flexible, yet more portable without LVM (e.g. FreeOTFE)
if more crypto partitions are needed this means multiple times unlocking at boot using passphrases
swap could be set up to use a random key crypto on every boot - disables hibernation

The above without any swap. Might be a good idea if you have plenty of RAM anyway.

The 'alternate' installer for 12.04 will allow you to do this in a semi-GUI way. See for example: "How to install Ubuntu 11.04 on an encrypted LVM file system" (while a bit old, still relevant for 12.04).

  will the thief be able to extract my files from the swap partition?

Not directly. Swap contains bare memory pages. It would be a hell of puzzle to reassemble this, but even single memory pages might contain too much secret data already. It is considered unsafe to have swap unencrypted. As long as you put your swap op top of a crypto device (no matter using LVM, RAID, or whatever), you're fine.

  I am assuming s/he will not be able to extract anything from the main partition without doing some form of bruteforce code breaking attack?

No, it's fairly safe, as that's the whole point of good encryption! To see more about the technical details like the cryptography used, please refer to What is used in the 12.10 full disk encryption? (which also covers 12.04 in my answer).

Security concerns are elsewhere. You'll need a separate unencrypted /boot, no matter how you set it up. It contains kernel and initramfs. If someone can fiddle with the unlocking scripts or even put a backdoor in the kernel, they can steal your secret data. Practical advice: never leave your laptop unattended.

Workarounds for this (advanced set up!):

Use a smartcard+reader rather than a password and carry it on your body if your laptop is not in use.
Put the dm-crypt encrypted key on a separate flash drive, rather than on the disk itself. Make copies of this encrypted key in case your flash drive dies and put them in a safe where nobody can reach it.
Always use a trusted set of kernel and initramfs, for example by using the same USB flash drive as /boot - and always carry this with you.


After uninstalling Spotify using Synaptic run the following commands in terminal:

sudo rm -rf /opt/spotify/ /usr/share/applications/spotify.desktop

(This command removes the icon of the uninstalled application.)

Note : Also refer and proceed according our discussion.


Yea I didn't install the correct Pulse-Audio... Basic question right? I installed ProjectM Pulse-audio Visualization  instead of pulse-audio volume control.


My CPU clock speed is changing constantly. Is it normal?

This is what the CPU governor does - observe the usage and adjust frequency accordingly. CPU frequency scaling is a pretty standard technique for power saving. There are tools to manage frequency scaling, cpupower from linux-tools-common is one such.

To look at current governor settings, you can inspect the folders in /sys/devices/system/cpu/cpu*/cpufreq. For example, the available maximum frequency of my CPUs:

$ tail /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
==> /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq <==
3301000

==> /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq <==
3301000

==> /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq <==
3301000

==> /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_max_freq <==
3301000

The governor parameters might have a different (lower) maximum value, stored in the corresponding scaling_max_freq files.


Computer continously boots after Kernel Version 3.13.5 installed on Ubuntu 13.10

On grub select the kernal version 3.11.x and boot from it.

Then uninstall the kernal version 3.13.5 and update your grub.

sudo apt-get purge linux-image-3.13.5-xx-generic
sudo apt-get purge linux-image-extra-3.13.5-xx-generic
sudo update-grub

OR

You can try the GUI way of removing kernal through synaptic package manager.

Reasons why not to update an Ubuntu version to a newer/older kernel version


How to Print the Gridlines in Libreoffice Writer?

The appearance of table gridlines is actually provided by the borders of the individual cells.

The dialog for Table --> Insert table... should include a Border checkbox:

In a clean default installation of LibreOffice 5, this box seems to be checked by default - if yours isn't, you can change the default setting by going to Tools --> Options --> Libreoffice Writer --> Table and modify the New Table Defaults settings:

To add printable gridlines to an existing table, go to Table --> Properties --> Borders :


on 13.10 there is a bug. After you log in, there come a blackscreen.

Go to terminal by ctrg + alt + F1. log in and rm the file .Xauthority. Then reboot.


How can I enable right mouse click on my HP Stream 11

Copy /usr/share/X11/xorg.conf.d/50-synaptics.conf into
/etc/X11/xorg.conf.d/
Add Option "ClickPad" "true" inside the first InputClass section.

Source


How are Linux permissions handled when moving a drive between computers?

Linux permissions (for owner, group, world) are driven by the user ID and the group ID.  If you set up your new system with the same UIDs and GIDs (the two numbers following the "x" in the password field in /etc/passwd) You should be able to move the disks between systems without problem.

As for encryption, depends upon how you do that.  Do you have the encryption key yourself, or does the encryption software generate some of the key on the fly based on some system configuration?  If you control the key, no problem moving disks.  If not, maybe that encryption is designed to prevent easily moving disks.


Syntax for removing a package with its configurations is:

sudo apt-get purge [Package name]

Or

sudo apt-get --purge autoremove [Package name]

So run :

sudo apt-get purge lightworks

Or

sudo apt-get --purge autoremove lightworks

The section, Hollywood-strength editing for everyone is a description about software. Not the package name.


Problem with "gnome-terminal" on Gnome 3.12.2

You have to add LANG=en_US.UTF-8 to /etc/default/locale and reboot your system. (Solution from this Arch Linux forum post.)


What can I do to make edge-scrolling work in Kubuntu 18.04

Alright, I was able to answer the question myself. I figured I'd post my solution here for anyone who is having this issue in the future. It was as simple as running the following command and rebooting:

sudo apt install xserver-xorg-input-synaptics

After the reboot (at least in my case) side-scrolling on my touchpad works with no additional configuration or installs needed. Anyone who thinks this was a bad solution, please let me and other interested parties know!

Hope this helps someone.


Installed Java 6 in Downlods folder what should i do now?

Go to software center and search java 7 for the latest version and click install it will install properly.

Sticking to software center or using apt in terminal is the best way to install.


Why can't I open mendeleydesktop from terminal?

You have provided mendeleydesktop.desktop file, where it says that your executable is

/home/kp/.local/share/mendeleydesktop %f

%f is a parameter and stands for file (look here https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables). So typing

/home/kp/.local/share/mendeleydesktop

should work for you.

For me typing just

mendeleydesktop

works as it executes /usr/bin/mendeleydesktop, and /usr/bin is in PATH. I believe it should be in your path, too. Try to type

/usr/bin/mendeleydesktop

If that does not work, check, which files are installed with mendeleydesktop package. Type

dpkg -L mendeleydesktop

You will see all files that are installed, and find the one that is executed.


Intel 82801DB PRO/100 VE ethernet not connecting but wireless works great

Problem solved.  WRT54G router running DD-WRT needed firmware to be reloaded.  Flash memory must have become corrupted over time.  Before fix, Windows devices had no problem connecting with DHCP, but DHCP was failing with non-Windows devices.  Made this problem hard to diagnose.


apt: ureadahead will be reprofiled on next reboot

There is no need to reboot or worry.
Ureadahead, actually called über-readahead, is a system to speed up boot times by preloading boot files into pages and memory so they are ready immediately while called upon, via pack files which are already pre-packed into memory-friendly pages. It will generate a plan for preload monthly, and when files related to boot are modified, added, or removed. Since it only affects boot performance, it is not necessary to reboot since ureadahead only applies during boot, and the boot packing will be done on next boot anyway. However, it will sometimes run even when boot files or the monthly cycle don't apply.
How it actually works:
ureadahead is an executable that will trace the boot process, and then generate pack files. When run without arguments, this executable checks /var/lib/ureadahead for packfiles and if they are old enough, or don't exist, it begins tracing forever. It can then be given a SIGTERM with Ctrl+C, at which time it will save any packfiles. It can also be run with --timeout to make it automatically stop and save its packfiles.
Ref: https://wiki.archlinux.org/index.php/Ureadahead


How to remove the Unity Amazon package in 16.04?

Removing the unity-webapps-common package removes Amazon from the dash. Since the Amazon webapp is part of that package, you can't just remove the Amazon portion (well, short of editing the source code). This is a problem when other programs (like Unity Tweak Tool) depend on that package.

As noted by fitojb in this answer to another question, however, this command will prevent the Amazon icon from showing up in the dash:

sudo rm -rf /usr/share/applications/ubuntu-amazon-default.desktop

However, as dobey pointed out in a comment below, when the unity-webapps-common package updates the file will be replaced and the command will have to be run again. A more permanent method is to copy the .desktop file to your local applications directory and then add a line to the file to prevent it from showing up in the dash:

echo 'Hidden=true' | cat /usr/share/applications/ubuntu-amazon-default.desktop - > ~/.local/share/applications/ubuntu-amazon-default.desktop


Connect an external monitor to laptop with broken screen

I'm on Lubuntu and I'm not familiar with what monitor layout or autostart packages/tools ship in Ubuntu. I suspect that Ubuntu has similar tools, if not the same ones as these. I hope this gives at least a place to start working.

On Lubuntu, I use Menu -> Preferences -> Default Applications for LXSession, Autostart to run commands and scripts that adjust mouse settings + the like. It will probably run an xrandr command to set monitor configuration as well.

The easiest way to generate the command to set your desired monitor configuration is with ARANDR. ARANDR is a simple graphical user interface to xrandr (X Resize and Rotate monitors).  If this isn't installed, it's available in Synaptic. (You can also figure out the command without ARANDR. It's not particularly complicated but may take more time - look up xrandr manual.)

Start ARANDR and click Outputs in the menu bar. Activate + configure them how you want. Probably something like LVDS off (LVDS= local video display screen), and VGA-1 or HDMI-1 on (however your external output display screen is connected). Then save that layout with Layout -> Save As. Make a note of where you save it, or just put it on your desktop for convenience.

Then open that file with Vim, Leafpad, or another text editor. Copy the command that starts with xrandr --output. Be sure to copy the WHOLE command, not just those first 2 words, or the first line. Close that file, without making any changes.

Then from the Menu, select Preferences -> Default Applications for LXSession and select the Autostart section (button on the left).
On the right, look under the heading "Manual autostarted applications" for a button labeled "+ Add", and paste the whole xrandr --output ... command from the file into that box. Click the "+ Add" button. That command will then be run the next time you boot.


Record screen as well as internal audio?

So you're trying to record streaming videos.  This can be done, with sound, through browser add-ons.  In Firefox, mouse over the icons in the top right of the browser window.  Click the one that reads "Open menu."  It's most likely on the far right.  Click Add-ons. Switch to the new tab and look for the search bar with a grayed-out "Seach Add-ons."  In this box, type "video recorder" and click search.  You will be presented with several options.


I decided to build a system.  After a lot of research I bought the list of hardware below.  In trying to decide which motherboard to select, I sent emails to ASUS and Gigabyte, both of whom took a long time to reply.  Their replies were nothing more than a Google search with a hit listing Ubuntu and one of their mother boards in the article, both of which I had already run across.  I decide to go with ASUS.  I am not a gamer and am not interested in over-clocking, so I kept my hardware selection simple.  I could have spent much less or a lot more on the hardware, but I simply wanted to build a dependable machine.  I got most of my stuff from NewEgg.com, but I did buy some from Micro Center, who had some impressive sales prices the day I went in.

ASUS Z97 Pro motherboard with LGA 1150 socket – was easy to install, nice UEFI BIOS screens.
Intel Core i7 4790 Chip – not the ‘K’ version, as I am not interested in over-clocking for my testing.
Seasonic G650 80 Plus Gold Power Supply – runs cool and is very quiet.
Corsair Vengeance Memory , 16Gb – 2 x 8Gb DDR3. Mother Board defaulted it to 1333Mhz, had to change the BIOS to 1600Mhz.
Samsung 850 EVO SSD – real fast.
Western Digital 1Tb, 7200RPM HDD.
TP-Link PCIe wireless card – model TL-WDN3800 – worked right out of the box, no tweaks necessary.  I went with this add-on card because I read several reviews of the integrated wireless being unreliable.
Corsiar SPEC-02 Mid Tower – comes with 2 fans and front USB3 ports.
No Video card – as mentioned I’m not a gamer, so I just used the Intel video. There is room for a big video card if desired, but you probably would want a bigger power supply to drive it.
Downloaded Linux from Distrowatch.com – see the right side of the page and choose a flavor.  I went with Ubuntu 14.10.
Borrowed the Keyboard, mouse, speakers and DVD from another system I had.

The hardware installation went very well and pretty easy.  Watch a couple YouTube videos (NewEgg TV had some good ones) on how to install the hardware and read the directions to do it correctly.  Everything worked together from the start.  I have not had to go hunting for drivers.  The UEFI BIOS took some effort to figure out.  At this time, Ubuntu has been running fine for several weeks.  I used KVM to build a virtual machine that is running Windows7 (simultaneously, not a dual boot), also running fine.  Both boot up in about 10 seconds.

Hope this was helpful.  Best of luck to you.


Locking down an apache server - Prevent '/' page from being visible to all

With help from https://stackoverflow.com/questions/2530372/how-do-i-disable-directory-browsing

The following can be done to have only the ownCloud service available to WAN.  They may be redundant, but combined they can only make for a safer system.

1) Assuming it is not needed, Apache's default home page can be moved to a storage place (and out of the active sites):

$ sudo mv /var/www/html/index.html ~/index.html.orig

2) To prevent ZoneMinder from being accessible from WAN, changing /etc/zm/apache.conf to contain the following will make the server respond with Forbidden unless the page is requested from within the LAN:

Order deny,allow
Deny from all
Allow from 192.168 localhost

3a) To prevent / from showing a directory listing and show Frobidden instead, add the keyword Indexes in the '/' entry of /etc/apache2/apache2.conf:

<Directory />
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>

3b) And remove the keyword Indexes in all other <Directory> listings.

Finally, restart apache2:

$ sudo service apache2 restart


Ubuntu installer overwriting Windows 8 bootloader on disk to which it wasn't installed

Please forget everything you ever knew about boot loader installation, at least with respect to the computer under discussion. You're trying to apply BIOS assumptions to an EFI (non-BIOS) computer, and they don't apply. (Yes, I know that most people, and even manufacturers, refer to EFIs as BIOSes, but that just causes confusion. See Adam Williamson's blog post on this subject for more details.) The Windows bootrec /fixmbr command is intended for dealing with BIOS-mode booting, and so is inapplicable to you. I don't know about bootrec /fixboot; it might or might not be useful on an EFI-based computer.

Under EFI, all boot loaders and related programs reside in the EFI System Partition (ESP), which is a FAT partition whose purpose is to hold boot loaders and related files. Ordinarily, a computer will have just one ESP, although it is legal for a computer to have multiple ESPs. A two-disk computer might have one, two, three, or more ESPs. In the case of a multi-ESP computer, it's unclear which one the Ubuntu installer will use. In theory, the Ubuntu installer should use the one identified as the "EFI boot partition" (their own non-standard name for the ESP) in the installer; however, I have my doubts about whether Ubuntu does this consistently. (I haven't had the chance to look at this in depth.) In any event, the Ubuntu installer retains a BIOS-mode prompt for where to install the boot loader when installing in EFI mode, but it's completely useless! I think there's a bug report about that on Launchpad, but a quick search didn't turn it up.

In theory, then, an EFI-based computer can have dozens of boot loaders installed. Which one does the firmware actually use? This is determined by a set of NVRAM entries, which identify the boot loaders and list the order in which they should be tried. The NVRAM entries identify boot loaders by partition and filename.

It's unclear whether you've got one, two, or more ESPs; however, because the NVRAM entries identify boot loaders by partition and filename, that detail is essentially irrelevant. Chances are that what happened is that Ubuntu added GRUB to an ESP and added an entry to the computer's NVRAM telling it to use GRUB by default. (In fact, it would point to Shim, which is one of Linux's tools for dealing with Secure Boot. Shim will then launch GRUB.) I'm not sure why you're getting a Secure Boot warning followed by GRUB. Maybe you've got an NVRAM entry that points directly to GRUB without going through Shim followed by an entry that points to Shim. That would explain it, but AFAIK the Ubuntu installer doesn't set things up this way.

Under EFI, you can edit the NVRAM entries to control the boot order. In Linux, the efibootmgr utility does this job. In Windows, you can use bcdedit or a third-party tool like EasyUEFI. Using efibootmgr, type the command alone to see a list of boot entries, then use the -o option to set the boot order, as in efibootmgr -o 5,3,8 to have the firmware try Boot0005 first, then to launch Boot0003 if that fails, and finally to try Boot0008. (Of course, you'll need to set the order for your system, based on the output of efibootmgr without any options.) Most EFIs have their own boot manager to enable you to select a boot loader. Details vary greatly from one computer to another, though. You must typically press a function key early in the boot process to get to this boot manager.


How to make Inkscape remember its previous window size?

Open up the inkscape preferences (Shift+Ctrl+P) and find the Windows section.
Select the Remember and use last window's geometry option:


The /boot/grub/menu.lst was a very old way of configuring GRUB and it's boot options. I think I used to use it like that in Ubuntu 10.10 and below. Right now, if you are using a updated version of Kubuntu, the option should be in /etc/default/grub

Just do something like:

sudo nano /etc/default/grub (To edit via terminal)
sudo gedit /etc/default/grub (To edit via GUI)

The option you want to edit is:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

You can either add what you want after the splash parameterin the first line or add inside the quoted part in the second part.

After that, save the file and type in the terminal update-grub so the grub gets updated and adds what changes you have done to the boot part. Then just reboot the PC and enjoy the change.


Is it bad if the Update Manager doesn't show any new updates for a whole week?

Let me explain the way how package updating & upgrading works. Also, I'd like to cover distinguishes between them.

Updating is the procedure of fetching and comparing package lists. It can be initiated by this command:

sudo apt-get update

The APT application will get package lists, which contain information about packages available on download servers, their version and dependency information, and will determine which packages should be upgraded.
Upgrading is the procedure of actual changing installed packages. It can update, remove or install new packages. By default, for safety reasons, upgrade does only update:

sudo apt-get upgrade

but you can force it to make (un)installations:

sudo apt-get dist-upgrade

Just glance of these commands' output: the first will say that some packages will not be processed, and the second will make all the changes that should be made. For example, it will install new kernel image if it is available.

So, returning to your question, the 'updated x hours ago' message means that your package lists are updated, and there are not updates for installed packages. This is typical for LTS releases which are not frequently updated releases. They [almost] rarely receive security and stability updates.  And for accomplishing the same thing that the GUI update manager does you should run in the terminal:

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


Math editor for algebra 2 and trigonometry

Here is an article that I think will help you with what you are wanting to do :)

http://www.libreoffice.org/features/math/


clear understanding of grep backreference

Your capture group \([[:alpha:]]\{1,\}\) captures a sequence of one or more alphabetic characters, and you anchored it to the start-of-line with ^

So it will match abc in the first line, and aaa in the second line.

The whole expression '^\([[:alpha:]]\{1,\}\) .* \1$ therefore matches any line of at least two space-separated sequences that ends with the same alphabetic sequence that it started with:

abc <anything - or nothing> abc
aaa <anything - or nothing> aaa

and so on.


You can check to see if your ssd is trim active with this command

`sudo hdparm -I /dev/sda | grep TRIM`

If trim is available on your ssd you will see an output similar to this.

Data Set Management TRIM supported

If it does you can benefit from setting up trim.
In fact this whole article should work for you.

Just replace xed in the commands with gedit or whatever text editor you are using.


mplayer how do i hide the mplayer window while it is opened?

Using options

Play video but no audio example:

mplayer -nosound file.mp4

Play audio but no video example:

mplayer -vo null file.mp4

Using interactive controls

When running you can type 'm' for 'mute' to toggle between playing the sound and not playing the sound to the speakers or earphones.

When running the video in a window, you can click on the minimize control (looks like a minus sign) to hide the window. When running fullscreen, type 'f' to run in a window, and then click on the minimize control.


Unable to connect to wifi in hp pavilion ab032tx

go to software&updates and click on Addition Drivers there you can find your wifi drivers. before that update the ubuntu sudo apt-get update


How to disable automatic shutdown on UPS battery?

I think by default, ubuntu is configured to shut down or hibernate when battery reaches critical level. This could be the source of your problem.

Try disabling the critical battery level automatic shutdown as shown here - http://looselytyped.blogspot.in/2012/04/preventingdisabling-automatic.html


How do I hide a running application from tint2 in fluxbox?

Alright, I feel dumb, but I have learned more of Fluxbox's syntax now.

In the manual at:
http://fluxbox.org/help/man-fluxbox-apps.php
it states that [Hidden] etc. need a {bool} value.

The example gven was: [Hidden] {bool}

Knowing what a Boolean value is, yes/no true/false 1/0 etc. I had it set as:

[Hidden] {True}

I did this because in other files like init, everything true is set to "true". However, it should have been set to:

[Hidden] {YES}

Like I said, I feel like a dummy, but I am glad I learned something. I hope that this experience helps someone else stuck in the same way that I was.


Preparing to unpack /var/lib/dpkg/info/software-properties-gtk.prerm: 6: /var/lib/dpkg/info/software-properties-gtk.prerm: py3clean: not found

Run the following command:

apt-get  -f install

to correct a system with broken dependencies in place.

Try also: dpkg --configure -a.

Note that py3compile file is part of python3-minimal package, so if you still got the problem, try reinstalling that package. If you can't reinstall using apt-get, try to download .pkg file from kernel.org and install manually (python3-minimal*). E.g.

dpkg -i python3-minimal_*.deb


You can discover where a package puts its 'stuff' by running:

dpkg -L 'packagename'

There's still a set of 'standard' locations that programs are put into. For example, binaries (in windows parlance 'executables') are put in /usr/bin, and documentation is put in /usr/share/doc in a Ubuntu system.

This is a pretty simplistic answer. For more details about how linux/unix directories are typically structured, see this:

http://www.pathname.com/fhs/pub/fhs-2.3.html


Ubuntu 12.10 usb installation problems :(

The bad news: I can reproduce this as described above.

My description of the problem: With an Lenovo B570 notebook it is possible to boot the Ubuntu 11.10 AMD64 64bit CD and (supposedly) install it successfully. I did a clean install giving all hard disk space to Ubuntu, deleting Windows. However upon reboot the operating system does not come up, but booting from network is tried and "PXE-E61 Media test failure, check cable PXE-M0F Exiting PXE ROM" (if no ethernet cable is attached) is displayed. After 5 seconds you can choose to boot from HDD/CD/LAN, but choosing HDD will bring you back to where you started.

Installing the 32bit version with exactly the same steps results in a fully boot-able system, no tweak required.

The good news: Some background information, albeit no real solution.

I am convinced that this is not really related to the selected architecture (64bit vs. 32bit), but an issue with the bootloader installed by Ubuntu. With the 64bit version Ubuntu tries to use a uEFI setup, but what it creates does not work, and from a first inspection should not even work.
The 32bit version does not even try to use uEFI but goes with a master boot record (MBR), and things work the way it is used.

I tried to install the 64bit version with manual formatting of the disk MBR + MSDOS partition table, and replacing grub-efi* with grub-pc after the installation. In theory this should have worked and resulted in a boot-able system, but in my test it did not.


Why does my Ubuntu 20.04(even 19.10) randomly shut down?

I think I have found the solution. The problem was related to graphics. After setting nomodeset quiet splash from quiet splash it started working fine.
How to set 'nomodeset'?


Where are the shapes in LibreOffice Draw?

If you're after a set of consistently styled isometric network equipment shapes (similar to the Visio ones) try these: http://www.vrt.com.au/downloads/vrt-network-equipment
(Creative Commons licensed, in the Fedora repos as and RPM as well).

Now also added to extensions.libreoffice.org and extensions.openoffice.org


how do i access my dvd rom drive on ubuntu?

Ok well as soon as you put a disk in it should detect and mount automatically. As far as which folder it mounts to I believe its under File System [Main] And the subfolder is mnt. But you don't need to know this to access it. All you have to do is, start Nautilus and on the left hand column at the top near where it says File System it should have listed the Name of the Dvd Volume. That my friend is how I get to mine and with any luck should serve your purpose as well... Also if you find this solves your problem please mark this as the accepted answer, if not feel free to comment with any other questions/details about the issue. -Bill


Solution - use Viber wrapper to launch the program

To fix this, you need to install Viber Indicator package, which is a wrapper for Viber.

Once it's installed, use viberwrapper-indicator (showing gray icon in the notification area) instead of viber (which shows the purple icon).

You may also later add viberwrapper-indicator to startup programms.

Installation

Here's how to install the indicator wrapper via PPA:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install viberwrapper-indicator

Alternatively download the .deb file, and install it manually:

Index of /nilarimogard/webupd8/ubuntu/pool/main/v/viberwrapper-indicator

After the download of the .deb file: sudo dpkg -i viberwrapper-indicator_0.1.1-git20150611-webupd8-0_amd64.deb

After installation it will look like you - and others would - want it:

Note the new icon in the notification area.

Sources

Viber Wrapper Indicator Hides Floating Viber Icon, Adds AppIndicator Support ~ Web Upd8: Ubuntu / Linux blog

Related Pages:

GitHub: karas84/viberwrapper-indicator


3.5 audio jack issue doesn't work on a Dell Studio 1749

Chaz solved in comments:

  Adding options snd-hda-intel model=dell-m6-dmic to alsa-base.conf
  fixed my audio issue on Dell studio 1749 with IDT audio.

  cat /proc/asound/card0/codec* | grep Codec   spat out   Codec: IDT
  92HD73C1X5 Codec: Intel IbexPeak HDMI

  From there I googled and it led me to the following where I found my
  answer:
  https://answers.launchpad.net/ubuntu/+source/alsa-driver/+question/173137

Steps:

gksudo gedit /etc/modprobe.d/alsa-base.conf
Add this line, options snd-hda-intel model=dell-m6-dmic

or change options snd-hda-intel model=dell-m6-amic

to options snd-hda-intel model=dell-m6-dmic
Save the file, close gedit and reboot
Test to see if working


Unable to locate package python-pygoocanvas

Open your browser
Navigate to https://www.nsnam.org/wiki/Installation
Click on 2.1.2 Ubuntu/Debian/Mint
Then read the docs

  ...

  For Ubuntu 18.04, python-pygoocanvas is no longer provided. The ns-3.29 release and later upgrades the support to GTK+ version 3, and requires these packages:

apt-get install gir1.2-goocanvas-2.0 python-gi python-gi-cairo python-pygraphviz python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython ipython3

  ...

And follow it line by line.

Note: I have never compiled this thing.


Asus X200M, Super Slow WiFi Connection with Realtek RTL8188EE

If you did not upgrade to 14.10 yet, you can try another driver

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware


How can I specify an alias in ERIC python IDE

This is Python 2.7 code and both python programs in the same directory.

call_script.py

import os
from subprocess import call

if  "OTHER_PROGRAM" in os.environ.keys():
    program_name =  os.environ["OTHER_PROGRAM"]
    print "will execute",   program_name
    call([program_name ,"some_file.pro"])
else:
    print "OTHER_PROGRAM env variable not defined"

other.py (must be marked executable  - i.e.: chmod +x other.py)

#!/usr/bin/python
import sys

print "executing in other.py"

if len(sys.argv) > 1:
    print "was passed value of ", sys.argv[1]
else:
    print "no arguments were passed"

outputs:

executing in other.py
was passed value of  some_file.pro


If you compiled, run :

sudo make clean

If you used apt-get, run :

sudo apt-get autoremove
sudo apt-get clean


How to install the latest stable version of Chromium?

Chromium is currently not built for the chromium-daily PPA, which makes using it a bit of a security issue. Unless you can find a better PPA that stays up to date, I'd recommend you use the repo version of Chromium. Using an old browser on the internet will get you hacked. See:

Does someone know why the Chromium daily package isn't build anymore?

For the latest stable of Chromium click the button here:

https://snapcraft.io/chromium


Try one of the Ubuntu mirrors for example:
http://linuxfreedom.com/ubuntu-releases/12.04.1/

There's good list of Ubuntu mirrors here:
https://launchpad.net/ubuntu/+cdmirrors

You'll notice there's also a file available in the download directory called MD5SUMS.  You should check your downloaded file against the MS5sum for that iso in the MD5sum file.  To get the MD5sum of the downloaded file simply type

md5sum filename.iso

replacing the filename with the correct name of the file you downloaded.

Using a torrent instead of a direct download is a good way of getting one of the distribution files if you are having corruption problems downloading it normally.


Video lags behind sound on YouTube and other sources

I found at least a temporary solution to this while digging through my nVidia Settings application for clues.
At one point, in GPU0 - (GeForce GTX 750), I noticed a display of GPU Utilization -- standing solid at 100% while I was looking at an article with a few static images and ads blocked.  What could be running my GPU at 100%, and could it be the cause of my video lag?  One thing, in my case: Einstein@Home, a BOINC computing task that I have set to use GPU only (so it can coexist with MilkyWay@Home, running on my 8 CPU cores).  Checking my BOINC manager settings, I found I had BOINC set to stop computing "when computer is in use (any core above 25%)" -- but GPU wasn't set to shut down in the same circumstances.
I checked the box for GPU computing to shut down when computer is in use, popped up a YouTube video to check it -- and sure enough, my video and audio are now in sync, at least within the limits of my eye and ear.
I do plan to reinstall Linux on my system over the next couple weekends, but I'm seriously considering whether I want to continue with a system that both lags significantly behind current software development and requires me to reinstall every couple years (because the first thing an "upgrade" does is delete all my added repositories and ppa sources) -- or switch to a rolling distro based on Debian.


Displaying lxdm login screen on both monitors

I managed to solve it via xorg, with a file /etc/X11/xorg.conf.d/10-monitor.conf with contents:

Section "Monitor"
  Identifier  "DP-1"
  Option      "Position" "0 0"
EndSection

Section "Monitor"
  Identifier  "DP-2"
  Option      "Position" "0 0"
EndSection

where  DP-1 and DP-2 were again the xrandr names of the video outputs.


I would like only one application to run

Actually, it seems like MinerGate does have a command line interface:
https://es.minergate.com/faq/how-minergate-console

This way you won't even need a Desktop Environment. To avoid automatically starting the graphical interface, disable lightdm, it may vary from an Ubuntu version to another, but for 16.04 (and higher) sudo systemctl disable lightdm.service should do it.

If you are not satisfied, use ps -u $(whoami) to list your processes and use kill on any unnecessary process. Still not satisfied? ps -e will list all processes, just be extra cautious when killing processes owned by root. Daemons may need to be killed with systemctl.

Add in Shreyash S Sarnayak's suggestion to set a low nice value and you will get the most out of it.


VBoxClient (seamless): failed to start. Stage: Setting guest IRQ filter mask Error: VERR_INTERNAL_ERROR

Turns out I had to install gcc, make and perl, then reinstall the additions and reboot:

sudo apt-get install gcc make perl
cd /media/$USER/<...>
sudo ./VBoxLinuxAdditions.run
sudo reboot


You lack the needed firmware file to enable your card and driver to work properly. Please download this file on another computer and transfer it to the Ubuntu computer on a USB key or similar: http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.157_all.deb

Drag and drop it to the desktop of the Ubuntu computer. Install it from the terminal with:

cd ~/Desktop
sudo dpkg -i linux*.deb

Reboot. Your wireless should be working. If not, please show us:

dmesg | grep ath

It appears that the firmware you installed is ineffective. Please try:

sudo rm /lib/firmware/ath10k/QCA6174/hw3.0/* 2> /dev/null
sudo wget -O /lib/firmware/ath10k/QCA6174/hw3.0/board.bin https://github.com/kvalo/ath10k-firmware/blob/master/QCA6174/hw3.0/board.bin?raw=true
sudo wget -O /lib/firmware/ath10k/QCA6174/hw3.0/board-2.bin https://github.com/kvalo/ath10k-firmware/blob/master/QCA6174/hw3.0/board-2.bin?raw=true
sudo wget -O /lib/firmware/ath10k/QCA6174/hw3.0/firmware-4.bin https://github.com/kvalo/ath10k-firmware/blob/master/QCA6174/hw3.0/firmware-4.bin_WLAN.RM.2.0-00180-QCARMSWPZ-1?raw=true

Reboot. Your wireless should be working. If not, please show us:

dmesg | grep ath

Reference: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1520343

Please try:

cd /lib/firmware/ath10k/QCA6174/hw3.0/
mv board.bin  board.bin.bak

Reboot and show us:

dmesg | grep ath

Let's try a further step:

cd /lib/firmware/ath10k/QCA6174/hw3.0/
mv board-2.bin  board.bin

Reboot and let us see:

dmesg | grep ath


I've just solved it by installing glib-2.0-dev.


Test this:

Open a terminal,Press Ctrl+Alt+T

Run it:

sudo -i
rm /usr/share/man/man7/pcap-filter.7.gz
rm /var/cache/apt/archives/libpcap0.8_1.5.3-2_i386.deb
apt-get update
apt-get dist-upgrade
apt-get autoremove
apt-get clean


[Update  - Fixed]

I got this done! I can dual boot Windows 10 and Lubuntu. Both are working in EFI mode. The Disk is in GPT. Here's what I did.

List of Tools:

Yumi - UEFI version (Link)
Lubuntu Live CD - Just in case
Ubuntu Boot Repair Disk - Just in case (Link)
(Windows PE) Gandalf's PE - (Link)

The next step was to get all these tools in 1 USB. I used Yumi to first install Lubuntu, then Boot Repair Disk and then finally Gandalf's PE.

I booted the system using Gandalf's PE. I followed the guidelines and materials from Rod's Book, very useful and insightful.

Mounting EFI partition - using diskpart

I'm going to briefly state the steps (14 onwards) from this Microsoft TechNet Wiki

Select the Disk
Assign a letter your EFI drive (let's say B:)
Exit diskpart
Change your directory to the EFI partition

  cd /d  B:\EFI\Microsoft\Boot
  bootrec /fixboot

Creating a BCDstore using bcdboot

We are still in the WinPE environment and since C: Drive is being used by the PE, we need to see where is the Windows which we need to restore installed. Let's say Z:, "/l" switch is used for providing the language and "/f" switch will be used for generating the BCD store for UEFI or BIOS or ALL.

  bcdboot Z:\Windows /l en-us /s B: /f ALL

That's all I rebooted the system and rEFInd recognized the Windows EFI :) :) :) :) :) . It took a bit of time for Windows to boot up. But it's working absolutely fine.

  Goal achieved  :  Converted Disks to GPT, Converted Windows BIOS to UEFI, Dual Booted Lubuntu and Windows 10 :)


You forgot the space between the command name cd and the argument (the path):

cd /home/$USER/Desktop/"directory name" # or:
cd ~/Desktop/"directory name" # or, if you’re already in ~/Desktop:
cd "directory name"

You can use as much space characters as you like to separate command name and argument, but you must use at least one.


Will a spin off be recognized if it follows the branding guidelines?

The page you should be studying is this one:

Trademark policy - Ubuntu

It is a long document but note these selected quotations.

  Community advocacy. Ubuntu is built by, and largely for, its
  community. We share access to the Trademarks with the entire community
  for the purposes of discussion, development and advocacy. We recognise
  that most of the open source discussion and development areas are for
  non-commercial purposes and will allow the use of the trademarks in
  this context, provided:

Please see the provisions listed that must be complied with.

  Derived works. The ability to customise Ubuntu to meet your specific
  needs is one of the great strengths of free software in general, and
  Ubuntu in particular. While we encourage customisation and derivation
  of Ubuntu, we must balance that freedom with the integrity of the
  Trademarks and the quality which they represent. To help reach that
  balance, we have established the following guidelines and definitions.

Please read the guidelines and definitions. It is a section that is too long to be quoted.

  Building on Ubuntu or for Ubuntu. If you are producing new software
  which is intended for use with or on Ubuntu, you may use the Trademark
  in a way which indicates the intent of your product. For example, if
  you are developing a system management tool for Ubuntu, acceptable
  project titles would be "System Management for Ubuntu" or "Ubuntu
  Based Systems Management". We would strongly discourage, and likely
  would consider to be problematic, a name such as UbuntuMan, Ubuntu
  Management, ManBuntu, etc. Furthermore, you may not use the Trademarks
  in a way which implies an endorsement where that doesn't exist, or
  which attempts to unfairly or confusingly capitalise on the goodwill
  or brand of the project.

  Commentary and parody. The Ubuntu trademarks are designed to cover use
  of a mark to imply origin or endorsement by the project. When a user
  downloads something called Ubuntu, they should know it comes from the
  Ubuntu project. This helps Ubuntu build a reputation that will not be
  damaged by confusion around what is, and isn't, Ubuntu. Using the
  trademarks in your discussion, commentary, criticism or parody, in
  ways that unequivocally do not imply endorsement, is permissible.
  Anyone is free to write articles, create websites, blog about, or talk
  about Ubuntu -- as long as it's clear to everyone -- including people
  completely unfamiliar with Ubuntu -- that they are simply referring to
  Ubuntu and in no way speaking for Canonical, or the Ubuntu project.

There is a further section called: Restricted use that requires a trademark licence

It is a long section and an individual wishing to make use of Ubuntu in a way that you indicate you wish to use Ubuntu should study that page.

Just noted an important point:

  as long as it's clear to everyone -- including people
  completely unfamiliar with Ubuntu -- that they are simply referring to
  Ubuntu and in no way speaking for Canonical, or the Ubuntu project.

So for the record, I am in no way speaking for Canonical or the Ubuntu project. I am merely directing your attention to information provide by Canonical.


Launching an executable with sudo on startup - command not found

The solution that worked for my exact case was to remove the quotes in the command, as pointed out in the comments to the question. Put in the script as
gnome-terminal -- sudo ./app

it worked perfectly. Also got it to launch without prompting a password by adding a line
ALL ALL=(root) NOPASSWD: /home/username/app/build/app

to /etc/sudoers, so the ultimate purpose regarding this question was achieved.


It takes about a week or two after release before the upgrade path that is 'automated' with the upgrade manager or do-release-upgrade is actually opened.  (Why this is the case I'm not sure, but I think it has to do with bug squashing and bug handling of major issues detected post-release)

Patience is your best call here.  It should be available within the next week or so.

If you are supremely impatient, and want to upgrade now however, you can try doing

sudo apt update && sudo apt dist-upgrade -y && sudo do-release-upgrade -d

... on the command line.  However this could result in a broken system, or an unbootable system.  So you do this at your own risk.

(The reason I don't recommend you upgrade yet until the upgrade path is open is because there may be major issues that are unfixed that will leave your system unbootable or usable post-upgrade.  You upgrade now at your own risk.)


Adobe flash player can be download here @ http://get.adobe.com/cn/flashplayer/ .

And when you finish installing, you must restart firefox to see video online. If that does not work, you can go to firefox website to download the newest stable  version Firefox 11.0 at http://www.firefox.com. That may be help to you.

OR

You can install chromium web browser to have a try. Open the terminal and input the following command:

sudo apt-get install chromium-browser


I got rid of unity but have gnome-panel: blank screen

First, the package you should install to get the "classic" Gnome desktop is gnome-session-fallback.

I guess you just removed LightDM and didn't installed GDM, or GDM is not being run at startup.

To solve this, when you get to that part it seems the system is stuck (showing Checking battery state) press Ctrl+Alt+F1. This should take you to a prompt where you can login. After logging in, install the missing packages:

sudo apt-get install gnome-session-fallback
sudo apt-get install gdm

After all is installed, just execute in the same terminal

sudo service gdm start

This should show you the normal login window.

Edit

I'm assuming that despite your not being able to connect to your network now you have some connection configured in the system. To see the list of available networks, use

nmcli con list

This will display the list of the networks in your system, giving a name and uuid. If for example, your connection is named MYCONNECTION you can connect to it using

nmcli con up id MYCONNECTION

Then you should have network conectivity and can download/install the required packages.


How can I change the auto-hide function of Launcher to work better?

1) It is NOT about how hard you push the mouse cursor to the screen edge, but how far you push it. To be able to reveal the launcher, you must continuously push the cursor against the edge to reveal it.

2) To fix the launcher reveal sensitivity:

a. Install then start "CompizConfig Settings Manager"

b. Navigate to "Desktop" -> "Ubuntu Unity Plugin" -> "Experimental" tab

c. Find the string "Launcher Reveal Pressure"

d. The default is 20, change it to 8 (or whatever you prefer)

e. You don't have to close CCSM to apply the changes. Keep changing the value till you are satisfied with the result, then close CCSM.


Clean Install of 18.04 Boots to Grub Prompt

I was able to solve mine (though I was using EFI and not legacy) by booting from the install thumb drive, selecting rescue mode, and re-installing grub on /dev/sda.


Try zooming out, you do this by:

Menu (3 dots on chromium) -> zoom


What should i do with my reinstallation of Ubuntu?

Try ubuntu as the username with a blank password.

More info can be found here.


LibreCad in 13.10 has a 2.0.0~rc2+nolibs version in the repos.
Ubuntu before that had a 1.0.2+nolibs version in the repos.
14.+ does not have a package in the repos.

Looking around on launchpad and the web I found a PPA.

Install the latest version (works in 14.+) with:

sudo add-apt-repository ppa:librecad-dev/librecad-daily
sudo apt-get update
sudo apt-get install librecad

Version it will install is 2.0.4 (and this will update itself when a new update is available) but it is not in the Ubuntu repositories anymore. It looks like they pulled the packages and created their own PPA.
And this 2.0.4 version was updated 11 hours ago and the one before that 22 weeks (5,6 months roughly so that is about the time you saw the last update before this).

So your worries were correct but have been solved 11 hours ago.


The Ultracopier tool is in the Official Ubuntu repositories
For 18.04, its an old version 1.4.0 (See https://packages.ubuntu.com/bionic/ultracopier)
For 19.10, its an old version too 1.6.1 (https://packages.ubuntu.com/eoan/ultracopier)

On Github you'll find the current source version 2.0.4.8
https://github.com/alphaonex86/Ultracopier/

So, if you want the latest version you may git clone and compile it yourself
And to answer functional questions, read the manual : http://ultracopier-wiki.first-world.info/wiki/General_documentation#Order_of_transfer


ThinkPad W540 docking station: no sound on external speakers

Solution: Use HDAJackRetask tool from alsa-tools-gui package.

Install alsa-tools-gui package that contains HDAJackRetask.

sudo apt-get install alsa-tools-gui
Launch hdajackretask from the command line or unity launcher
From the drop-down menu at the top, choose Realtek ALC3232 as the codec.
Check show unconnected pins and Advanced override options from the right sidebar.
Look for the entry with Pin ID: 0x16 and check Override.

Use the following options for overriding:

Connectivity: Jack
Location: External
Device: Headphone
Jack: 3.5 mm
Color: Green
Jack Detection: Not present
Channel group: 3
Channel (in group): Front

Click Apply now to test new settings.
Finally after making sure it works, you may persist the settings by clicking Install boot override. This will make sure your settings will be loaded with every boot.


Ubuntu 16.04 running excruciatingly slow when external HDDs are connected

This has now been resolved, on second examination, there was another variable.
When I was plugging in the HDDS I was also unplugging the monitor which was causing the apparent frame lag and slow response from Ubuntu.

This has been resolved by installing a "dummy" monitor using xserver tools as per post TeamViewer slow on Ubuntu without monitor 16.04


The chntpw  tool has limited registry editing capabilities.  I don't believe it comes with Ubuntu by default, you'll have to install it by clicking the link above, or opening a terminal and runing the following command:

sudo apt-get install chntpw

Once you get the tool installed, you'll have to tell it which registry file to edit by entering chntpw <full registry file path> in the terminal.  These are the physical files where some of the registry information is stored:

HKEY_LOCAL_MACHINE\Software - WINDOWS/System32/config/software
HKEY_LOCAL_MACHINE\System - WINDOWS/System32/config/system
HKEY_CURRENT_USER - <path to user's folder>/NTUSER.DAT

Wine  comes with a registry editor, but I believe this is only for Wine's registry and not any other Windows registry.  I have an XP partition for gaming and could not open it through wine's editor.  If you want to try this approach, enter wine regedit through a terminal window.


apt-get and other utilities for working with traditional .deb packages do not work to install and upgrade applications on a Snappy Ubuntu Core system. Instead you use the snappy utility. See the Snappy Tour for details.

To summarize a couple examples from the Snappy Tour, to install the Docker application you would run:

sudo snappy install docker

And to install updates, you run sudo snappy update-versions (which corresponds to sudo apt-get update on a normal Ubuntu system), snappy versions to see what's newly available, and sudo snappy update ... to specify packages for updating (put their names in place of ...).

Because Snappy Ubuntu Core doesn't use .deb packages, Ubuntu packages created for regular Ubuntu systems will not work--the relationship between regular Ubuntu systems and Snappy Ubuntu Core when it comes to package files is, in effect, the same as the relationship between any two distributions that use totally different package managers. (For example: Ubuntu and Fedora.)

Like in just about any OS, you could manually install programs on Snappy Ubuntu Core provided you have or can obtain all the libraries (and any other dependencies) they need. However, just as the best way to install most software on regular Ubuntu systems is with a .deb package, the best way to install software on Snappy Ubuntu Core is with specially built snappy packages. Only a handful of these exist so far.

To search for Snappy Ubuntu Core apps from within a Snappy Ubuntu Core system, use:

snappy search search-term

This finds Snappy packages with search-term in their names. (You'd replace that with whatever you're looking for, of course.)

As for Raspberry Pi, those have ARM processors, which you're right are not the same as the usual 32-bit and 64-bit Intel and AMD processors most of us use on our traditional PCs. However, Raspberry Pi support does not appear to be the main point of Snappy Ubuntu Core. Instead, as you may be aware, the general aim of Snappy is for better speed, stability, and security, in circumstances where a minimal Ubuntu Core system is sufficient and appropriate.

Snappy is cloud-oriented ("Snappy Ubuntu Core is the perfect system for large-scale cloud container deployments..."), and explicitly supports many x86 (i.e., not ARM) platforms--see the list of options under "Try the new, snappy Ubuntu yourself!" on the Snappy home page.

Nonetheless, depending on your needs, Snappy Ubuntu Core may be a reasonable way to get a working Ubuntu Core system on a Raspberry Pi. Depending on which Raspberry Pi board you have, it may or may not support a fuller, more traditional installation of Ubuntu. Note, though, that there are other options that may be more Ubuntu-like in the ways that matter to most users of traditional Ubuntu systems:

Debian is quite similar to Ubuntu, and provides an experience in many ways more similar to most Ubuntu installations. In particular, like a normal Ubuntu system Debian uses apt-get. In fact apt-get originated in Debian. (Ubuntu is a derivative of Debian.)
Raspbian is a derivative of Debian made specially for the Raspberry Pi. Like Debian and normal (non-Snappy) Ubuntu systems, uses APT-based package management (i.e., with apt-get). The Debian project's page about Debian on Raspberry Pi even says, "Generally, your best bet is to use Raspbian".

See also this list of operating systems for Raspberry Pi.


What are the benefits of a disk install vs. Wubi? And can I migrate my settings easily?

Wubi doesn't change or alter your partitions, it installs to a virtual partition (a file) on the Windows file system.  This is good if you just want to try out Ubuntu, and it's easy to uninstall.

If you want a normal dual boot then you can use the Ubuntu CD/USB to partition during the installation. If you have Window Vista/7 then I would create the free space first, before attempting to install Ubuntu.

If your intention is to test Ubuntu, the you can boot from an Ubuntu CD/USB in live mode, and select Try Ubuntu, just to make sure that it's compatible or to see if you need any special drivers for your hardware.

Advantages

Wubi is easy for Windows users with basic computer skills
Its convenience
No need to burn a CD or create a USB Installer
It installs like any other windows application
It can easily be uninstalled from control panel.

Disadvantages

The system will run slightly slower than it would on a true
partition
The difference in speed will be especially noticable if your system is old
Data accessibility of other partitions when using Ubuntu
Anything happens to Windows can affect Ubuntu as well


The functionality on unattended-upgrades is automatically enabled after the installation of 16.04 Xenial Server. I mistakenly didn't really disable it so observed the unexpected behaviors above. Method Two here I had followed is unlikely effective.

To properly disable the automatic updates, we need change the configuation on /etc/apt/apt.conf.d/20auto-upgrades from:

APT::Periodic::Unattended-Upgrade "1";

to:

APT::Periodic::Unattended-Upgrade "0";


How can I launch apps on the screen that the mouse cursor is on?

I had wanted to do this myself.  Here is what I found:

Go to the CompizConfig Settings Manager (type compiz into the Dash).
Click on the Place Windows item in the Window Management section.
Select Use output device with pointer from the Multi Output Mode dropdown menu
Make sure you also click the checkbox that enables the Place Windows "plug-in"

You may run into trouble with the behavior remaining unchanged unchanged in certain cases.  This happened to me, but then I realized the reason:  Smart output mode will place a full-screen application on a monitor with a higher resolution by default, even if the "Use output device with pointer" option is selected.  To fix this problem, I changed the Placement Mode to Pointer.  I also found that the other available options, like Centered, also achieve the result of the window being placed on the screen currently containing the mouse cursor.  I recommend trying out each of the options to see which one you personally prefer (personally, I found that I like Centered the best).  It seems that Smart mode is trying to be "too smart" for what I want, I believe that it assumes that one wants bigger windows to be placed on the higher resolution screen regardless of what other options are selected, which is not necessarily what one may want in many cases.

I hope this helps!


Reformatted my Windows 7 install but forgot to get rid of my wubi install before I did so

If you have done installation using wubi, it should have some files on the hard disk and visible in windows. You can just delete those files.


How do I set up internet connection in VirtualBox?

go to virtual box official web page, and then downlaod and install extension pack for version of vb you using now. then just simply when it is installed, go to settings, and usder usb submenu enable usb connection, and leave NAT as it is.


If you look with dpkg -S <filename>, you'll see that these files actually came from a package called nginx-common. This is installed at the same time as the base nginx package. Many packages are split up like this.

When you purge something, only the specified packages are purged. If things need to be removed to satisfy dependencies (which may be the case here), they will just be removed, not purged. It may be the case that nginx-common is still installed.

Either which way, the solution is the same. Purge nginx-common:

sudo apt-get purge nginx-common

In other cases where you have remnant /etc/ files after a purge, this is often down to files that didn't exist at install-time. In your case they all looked like packaged files but in many cases there could be a user-created file sitting in there that they might want to rescue before manually deleting.

Apt will never remove these, even with purge. If you're sure you want to delete them, sudo rm -rf /etc/nginx will do the trick, but again, be very careful.


Protecting Live USB from Windows Viruses

The solution you proposed is complex and not portable (Windows will need special extra drivers to read ext, and they are not stable).
There is no trouble, use the freeware Windows software Ninja Pendisk.
Ninja Pendisk is fully portable, self-contained, requires no installation and protects your Windows machine from any virus or malware trasmitted via USB: (from the website)

  besides removing known virulent files, this tool will also immunize
  your pendisk and create a folder called autorun.inf with special
  protection permissions to protect your pendisk from being infected
  again when plugged on contaminated computers

I always used it and it's very handy!

Comment under here if you have other questions and press the UP arrow if I'm of any help.
Have a safe day.


HPLIP 3.19.6 didnt see USB HP LaserJet Pro MFP M125ra on 18.04

According to the official HPLIP page you need to install at least 3.14.10 with a proprietary plugin:

It seems that you have missed the installation of this binary/proprietary driver/plugin.
You have to install it with:

hp-plugin

Note: You do not really need HPLIP 3.19.6 and can use HPLIP 3.17.10 from the bionic repository. To proceed this way follow the uninstallation part of my other answer and afterwards install the plugin with hp-plugin.

References:

hp's Developer Portal | All Supported Printer Models
How to install HPLIP on my Ubuntu to support my HP printer and/or scanner?
How should I install HPLIP binary/proprietary plugin/driver for my HP printer or printer+scanner?


Recover data from old hard drives that have Ubuntu installed

From the comments...

Run testdisk on sda and see what it finds. See http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step for help.

Result:

Thanks for the advice. Testdisk managed to rewrite the partition tables and I can now mount them no problems. Great tool !


It's trying to install in a system directory and your user doesn't have permissions to do that.

You have 2 options:

Install locally, usually in a virtualenv. See here: http://docs.python-guide.org/en/latest/dev/virtualenvs/
Install globally, with sudo so you have root privileges: sudo pip install timestring

Personally I prefer option 1, and to keep each project's dependencies isolated in a venv, but that's up to you.


Backlight not working on Ubuntu 17.10, Lenovo P51, Xorg, NVIDIA Quadro M1200

I found a workaround that work with my HP Zbook 15 with a nvidia quadro K610M. But none of the UI or hotkeys work. I always have to use a terminal...

My solution was to set the acpi_backlight to none in the grub config (/etc/default/grub): GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=none"

Then I use the xbacklight command (just add it with apt-get install xbacklight)
http://manpages.ubuntu.com/manpages/xenial/man1/xbacklight.1.html

For instance for 50% of brightness I can type xbacklight =50.

Source: https://askubuntu.com/a/937133/783249


gui application to custom regional settings

You can try this, this is somewhat cleaner and more robust: it doesn't involve customising Ubuntu's locale files.

In Ubuntu, you can
assign locale components by editing the file /etc/default/locale.

LANG="en_US.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"

Which means: I want software messages in American, but time, paper size and units in British i.e.weeks starting with Mondays, A4, metric.

So change it according to your region and requirements. Hope this solves your problem.

Found it on Ubuntu Forums.


During our chat it became clear that the system in question is actually a “Linux Container” (LXC). This type of operating-system-level virtualization usually doesn't allow changes to the host system. In particular, the guest system can't change the configuration of the kernel that it shares with the host system. This includes kernel services like the system time.

See also:

date: cannot set date: Operation not permitted
[lxc-users] "date: cannot set date: Operation not permitted" inside Lxc Container


What i've done as a work round is amended the power management settings.

Select 'do nothing ' for lid closed
And 'power down ' for when battery critical.

This is a work round not a solution

Hopefully someone who knows more may throw light on this.

Cos power options need to be done per user, diff or similar could do it better.


How to record all modifications to directories, subdirectories and files in one session?

Use inotifywatch to collect statistics and redirect the output.

$ inotifywatch -r $HOME > /path/to/log

http://linux.die.net/man/1/inotifywatch

Or use inotifywait to get a change-by-change, file-by-file update.

$ inotifywait -mr $HOME > /path/to/log

http://linux.die.net/man/1/inotifywait


Command `ip a show` in `zsh` not working

You probably have an alias in your zsh configuration. Check with the alias command and/or with which ip.
Happy 20+ years zsh user here.  ;-)


How do I install old version of R (3.3.x) with apt-get?

Rbase 3.3.1 appears to be in archive.ubuntu.com

http://archive.ubuntu.com/ubuntu/pool/universe/r/r-base/r-base_3.3.1-1build1_all.deb

You will need to be sure the repository archive.ubuntu.com


How can I see the juju-core debug-log without tailing it?

Connect to the bootstrap node

juju ssh 0

You can find it here

/var/log/juju/all-machines.log


How to become root when your user is hardened?

If you are allowed to reboot the Virtual Machine you can boot into single user mode and have root level access assuming the boot loader isn't locked down. If the boot loader is protected then you can try rescuing the machine by booting into ISO mounting the Virtual Machine and editing the configuration, then add your self to the sudoers permissions.

IF you don't own the Virtual Machine then tread carefully as you may be breaking some laws by try to gain an unauthorised level of access into the system.


Customize splash screen on live CD. || Initrd.lz problem

Try This I have got 100% solution and done 99% of customization from here!!

Install pre-requisities
Make sure that you have installed the needed tools

sudo apt-get install squashfs-tools genisoimage

Obtain the base system
Download an official Desktop CD from http://releases.ubuntu.com/

Note: the example shown here uses the ubuntu-9.04-desktop-i386.iso Desktop CD. Replace it with the name of your iso. For example, if you have a ubuntu-11.04-desktop-i386.iso image, the command:

mv ubuntu-9.04-desktop-i386.iso ~/livecdtmp

would be changed to:

mv ubuntu-11.04-desktop-i386.iso ~/livecdtmp

Move or copy it into an empty directory

mkdir ~/livecdtmp
mv ubuntu-9.04-desktop-i386.iso ~/livecdtmp
cd ~/livecdtmp

Extract the CD .iso contents
Mount the Desktop .iso

mkdir mnt
sudo mount -o loop ubuntu-9.04-desktop-i386.iso mnt

Extract .iso contents into dir 'extract-cd'

mkdir extract-cd
sudo rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd

Extract the Desktop system
Extract the SquashFS filesystem

sudo unsquashfs mnt/casper/filesystem.squashfs
sudo mv squashfs-root edit

Prepare and chroot
WARNING: If you do this in 14.04 LTS, you will lose network connectivity (name resolving part of it). /etc/resolv.conf is and should remain a symlink to /run/resolvconf/resolv.conf nowadays. To enable name resolving, temporarily edit that file instead. If you need the network connection within chroot

sudo cp /etc/resolv.conf edit/etc/

NOTE: Recommended that you do not do this unless you know what you're doing Depending on your configuration, you may also need to copy the hosts file

sudo cp /etc/hosts edit/etc/

The remaining steps are good, unlike the ones above:

sudo mount --bind /dev/ edit/dev
sudo chroot edit
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts

(these mount important directories of your host system - if you later decide to delete the edit/ directory, then make sure to unmount before doing so, otherwise your host system will become unusable at least temporarily until reboot)

To avoid locale issues and in order to import GPG keys

export HOME=/root
export LC_ALL=C

Customizations
Apt-get
Prerequisites

In 9.10, before installing or upgrading packages you need to run

dbus-uuidgen > /var/lib/dbus/machine-id

and

dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl

From here Now you can do all your customization in depth!!

sudo apt-get install --reinstall plymouth-theme*

or any other theme u want to install and save it with

sudo update-initramfs -u


I would like to know what is this icon means

It is the network icon. It shows that you are connected to the internet, and is actually the Network Manager indicator icon indicating that connection.


Ubuntu 16.04 with Nvidia 750ti breaks every time: blinking cursor

so, I just did these steps and still broke my computer where it doesn't boot again... just the blinking cursor after reboot.

sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/GRUB_CMDLINE_LINUX_DEFAULT="nouveau.blacklist=1 /g' /etc/default/grub

sudo update-grub

after rebooted, graphics really bad.

sudo gdm service stop or sudo service lightdm stop
sudo sh ./NVIDIA-Linux-x86_64-334.21.run
it give you some warning on pre build script I have continued
it ask you to accept some condition, you give all yes
let it change xorg.profile for you

The install went exactly as described.  But reboot and the PC is "bricked."  Cant get into a recovery mode and cant do ctrl + alt + F key to get to a command line.


How to enable workspace switching selecting app in unity bar?

I think this may have to do with the workspace switcher being switched off by default now. To re-enable it pop into:

System Settings -> Appearance -> Select the 'Behaviour' Tab -> tick the 'Enable workspaces' box

The workspace switcher should now reappear on the Unity bar


Black screen on boot after installing ati drivers

This is a known problem with ATI drivers on Ubuntu 12.10 (see https://bugs.launchpad.net/fglrx/+bug/1068661/+index?comments=all). I got my hybrid graphics system working by following the instructions below:

How do I get AMD/Intel Hybrid Graphics drivers to work?

If you don't want to compile drivers, installing the xserver-xorg-video-intel and one of the fglrx packages from this PPA should work:

https://launchpad.net/~andrikos/+archive/ppa/+packages?field.name_filter=&field.status_filter=published&field.series_filter=quantal


Telling git to ignore files that end with ~ in ubuntu

a line with *~ in your .gitignore file should do it. Here is an example from the default .gitignore file for my yelp-tools git clone:

$ cat /home/doug/temp-yelp-git/yelp-tools/.gitignore
*~
INSTALL
Makefile
Makefile.in

/aclocal.m4
/autom4te.cache
/ChangeLog
/config.guess
/config.log
/config.status
/config.sub
/configure
/install-sh
/intltool-extract.in
/intltool-merge.in
/intltool-update.in
/missing

/tools/yelp-build
/tools/yelp-check
/tools/yelp-new
/xslt/mal-ncx.xsl
/xslt/mal-opf.xsl