How tell my Ubuntu to look for thumbnails not only in ~/.cache/thumbnails?

For such questions, you try to locate the specification, if it exists.
In this case, the thumbnails do have a specification, https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html
And in there it says,

Thumbnail Directory
For every user, there must be exactly one place where all generated thumbnails are stored. This thumbnails directory is located in the user's XDG Cache Home, as defined by the XDG Base Directory Specification. Namely, if the environment variable $XDG_CACHE_HOME is set and not blank then the directory $XDG_CACHE_HOME/thumbnails will be used, otherwise $HOME/.cache/thumbnails will be used.


Why does LibreOffice have no icon in Ubuntu dock?

The icon currently added to the dock is the icon for "LibreOffice". It seems you want to add the icon for "LibreOffice Writer" instead.

To do that first remove the icon by right clicking and selecting "remove from favourites".

Then click on Activities and search for "LibreOffice Writer". Right click on the "LibreOffice Writer" icon and add this one to favourites instead.


How to share WiFi/hotspot over SSH tunnel

What you want is not possible with pure SSH (i.e. the -D proxy option to create the poor-mans VPN).

Here's two options that do work, though:

use sshuttle (available in the repositories) and tell it to forward all traffic from the subnet of your hotspot through the "VPN". See the manpage for more info.
set up OpenVPN on the remote system and your local system. The traffic of the connected hotspot users should go through the VPN by default. You might also want to look at this serverfault question.


What file do i have to run in order to launch a screenlet from the terminal?

Hmm... it really depends, the normal default screenlets should be located under /usr/share/screenlets/screenlets-pack-basic/ For example, the Clock screenlet starts with

usr/share/screenlets/screenlets-pack-basic/Clock/ClockScreenlet.py

> /dev/null

but if i remember right, after installing screenlets, a new menu entry appears in ubuntu menu. The "other" menu entry. There you can find some screenlets, and there, looking at the Launcher Command, you can see the command which starts the screenlet. so i would look in either usr/share/screenlets/ or usr/local/share/screenlets


It's available on the following URL:

http://releases.ubuntu.com/12.04.5/

As ever, these are just new CDs with all the updates and the latest hardware enablement stack pre-installed. Just install your updates (and the Trusty HWE stack) and you'll be on 12.04.5:

sudo apt-get install --install-recommends linux-generic-lts-trusty xserver-xorg-lts-trusty libgl1-mesa-glx-lts-trusty

If you're ever in the situation where you're close to a release and want the latest installer, you can always use a daily. In this case the precise/daily image would have given you practically the same thing as the final (if not exactly the same thing) just with added testing. Just note that it would technically be a pre-release so all the normal warnings apply.

And note that 12.04.5 is too big for a normal 703MB CD. You'll either need a super-extended CD or a DVD or USB stick.


Sources not authenticating properly error on update

I ran this code per the 3rd answer from this page and it worked for me:

sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 40976EAF437D05B5
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get dist-upgrade


How do I get rid of this module-combine error in Pulse Audio

The issue is in the 'paprefs' package, which on the 'Simultaneous Output' tab controls loading the 'module-combine' module.  It has not been updated to use the 'module-combine-sink', and the 'module-combine' is now a dummy module that simply warns and then loads the 'module-combine-sink'.

You can change the module loaded by the paprefs setting by using 'gconf-editor' and changing 'system/pulseaudio/modules/combine', the 'name0' key should have 'module-combine-sink' value instead of just 'module-combine'.

In theory there are two bugs:

'paprefs' shouldn't be using 'module-combine'
'paprefs' should migrate to 'dconf'

Hope that helps.


You can test out different options best by using crouton -- you can easily uninstall it by powerwashing your chromebook so it's a rather low-risk option (provided you back up your data!).

You can install quite a few versions of ubuntu and have a nice choice of DEs (unity, xfce, kde etc--you can even install cinnamon if you're willing to go the extra mile).

You can also create multiple chroots and delete the ones you don't like! You can then decide if you want to go with chrubuntu or stick with crouton! In my experience crouton runs better than I thought it would and booting into ChromeOS first hasn't really been much of a hassle.

There's an extra option, GalliumOS (look up the wiki) that's a bit more complicated to install depending on the model of your chromebook. Exercise extra caution if you choose to follow this approach.

Here's the 2016 guide to installing crouton.


Access denied to Samba share after update

I found this issue after updating Samba this morning, and I found an answer that worked here:

http://ubuntuforums.org/showthread.php?t=1600541&p=9995179#post9995179

Samba has changed the ability to follow symlinks because of a security issue:

http://www.samba.org/samba/news/symlink_attack.html

To circumvent the change you could try this:

Add the following lines to the [global] section of smb.conf:

follow symlinks = yes
wide links = yes
unix extensions = no

Then restart the samba service:

sudo service smbd restart


How can I uninstall my Bluetooth driver 16.04? I installed it using hex2hcd method

I would blacklist the btusb module and reboot
echo "blacklist btusb" | sudo tee -a /etc/modprobe.d/blacklist.conf
If you want to use bluetooth then just sudo modprobe btusb


How can I prevent my connection to automatically disconnect when I lock my screen?

I think that if you enable the connection "for all users" (you can set a checkbox for this when you edit the connection properties) it should not drop anymore.


Ethernet works during install, but after booting neither eth0 or wlan0 appear

Please open a terminal and do:

sudo apt-get purge bcmwl-kernel-source
sudo modprobe b44

Your ethernet should now be working. Hook it up and continue:

sudo apt-get update
sudo apt-get install firmware-b43-installer

After a reboot, you should be all set.


Where can I find pencil tool in Open Office drawing?

In the bottom bar you will see the picture of a pencil with a arrow pointing down, click the arrow.

You will see 6 different icons, choice the last one (counting from left to right, top to down).

The next picture is a screenshoot, showing what you should click. For better understanding.

And this is my result:


How can I modify the default behaviour of Ubuntu 12.04 (& 12.10) to prevent a symbolic link from /dev/shm to /run/shm ever being created on boot up?

In /etc/init/mounted-dev.conf remove the line

 [ -e /dev/shm ] || ln -s /run/shm /dev/shm


How did I login to another server without my private key?

Your desktop client uses an SSH agent. You can easily check if your connection has an agent running and if so if it is filled with your ssh keys by typing the following on the commandline:

ssh-add -L

Another possibility could be the use of the predefined identity file as defined by the 'IdentityFile' parameter in your global ssh config file /etc/ssh/ssh_config or your local ssh config file ~/.ssh/config

The way to figure out which key it has been using is to use a more verbose ssh output:

ssh -vv user@host


Problem with ATI Catalyst Drivers in Ubuntu 13.10

Try installing the BETA drivers. Ubuntu 13.10 is using Xserver 1.14 (supported by AMD BETA Drivers) and as far as I know the official drivers' support Xserver up to 1.13.

Using the automatic install using that setup file has worked for me or you can use the same guide that you referenced in your question.


juju bootstrap on private openstrack cloud failed

I think this is about security group in openstack, you should add default security group when you bootstrap the controller.


What's a good alternative to NVidia's proprietary drivers for a GF119

You can use the open source nouveau drivers. Alternatively (a better solution in my opinion), you can use bumblebee and run in the "nvidia optimus" BIOS mode. This will run the main X server on your intel card and allow you to run specific graphic-intensive apps on the nvidia card with a command called optirun. With or without bumblebee installed, there is a program called screenclone that will allow you to use the DisplayPort/DVI output from the intel card by copying data from the intel card to the nvidia card.

More information on the graphics setup can be found here:
http://zachstechnotes.blogspot.com/2012/01/tri-head-display-on-linux-thinkpad-w520.html
(the W520 is similar to the T520 except for the VGA output)

Instructions for screenclone can be found here:
http://zachstechnotes.blogspot.com/2012/04/post-title.html


Why do I have several application maps in usr?

The applications don't lie in /etc, only their configuration files are there. An application may have files in many different places of the filesystem. See [https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard] for a description. However, in ubuntu like in most of linux distributions, the easiest and cleanest way to install/remove application is using the package management (dpkg, apt-get, aptitude...).


if you have added the new PPA then you've to remove old PPA of Cinnamon.

one more point is that To  avoid configurations conflicts you should have to remove the old installed Cinnamon  completely that too with purge .

then you can go for installation .


How can I access the Ubuntu filesystem in Windows?

%LocalAppData%\lxss is the location where your ubuntu installation would be on windows. There is some magic going on with the files though (see: Alternate Data Streams) as you can't edit the files from windows otherwise they disappear from the ubuntu environment. I have found that they will come back if you touch them from within the ubuntu/bash environment.


I'm having trouble understanding your question. But I guess you have a problem with an empty file, /etc/default/isc-dhcp-server. This file isn't necessary to run the dhcp server, for example on my dhcp server there is content in this file, but it is all commented out and it works fine. Since you haven't configured anything, I would try to reinstall (sudo apt-get install --reinstall isc-dhcp-server) the dhcp server just in case.

But since this should be a non issue in default configs, maybe you simply want to configure your dhcp server? That is done in the file /etc/dhcp/dhcpd.conf. There you can set up network ranges, static ips over dhcp for your clients and well, anything that needs to be set in the dhcp server. There are a few examples here: https://help.ubuntu.com/community/isc-dhcp-server


I had the same problem, got rid of it by removing vim-gnome and installing vim-gtk instead:

sudo apt-get remove vim-gnome
sudo apt-get install vim-gtk


What programs can display an RTFD (rich text + attachments) document?

As far as I know, it is a mac file and it can't be opened in Linux.

See also in Wikipedia.

  In contrast to RTF, RTFD files cannot be opened properly by applications on non-Mac OS X operating systems, as bundles are currently only supported on Mac OS X.


I would go with option one, since you always want to separate the sites as much as possible. You probably also want to be able to host some other guys website later on or maybe you sell one of your own and the new owner should have access to one but not the others.

Maybe even go as far as:

/home/site

example:

/home/askubuntu.com/public/index.php

Just my opinion - not entirely sure you can have dots in the homefolder name, else use underscore.


Snap Store is not shown in application menu on Ubuntu 20.04

Launch the Snap Store from the terminal instead. Open the terminal and type:
snap run snap-store

Alternatively you can search for "snap store" in the Software app, click it to bring up the Snap Store information screen, and launch the Snap Store by clicking the    Launch   button.


Does ubuntu 14.04 still have desktop web app integration?

Yes it does, but I believe they are off by default now, you can enable the prompts by using unity-tweak-tool

sudo apt-get install unity-tweak-tool

Also you can find all webapps in the software center


EDIT:

Try the following keys combination while on desktop:

Ctrl + Alt + + = Switch to next X resolution

Ctrl + Alt + – = Switch to previous X resolutionGo to this page:

Source: https://www.maketecheasier.com/useful-shortcut-keys-in-ubuntu/

Further note: You can also search inside your machine for "Keyboard shortcuts" and read through them, spotting and fixing the one that created the trouble in the frist place.

Hope it works, it worked for me when I accidentaly pressed a combination that messed with my display too.


Logitech M570 wireless trackball mouse lags sometimes - how can I change the unifying receiver frequency band?

I have this problem often as well. It could be rf noise from other wireless devices, but also USB3.0 causes RF noise that influences the unifying receivers of logitech.
Aside from moving the receiver with a USB hub, cable, different USB port, what sometimes helps for me is unpairing my mouse from the receiver, and re-pairing it. It seems to me that the frequency used between the receiver and the periferal is chosen when you pair it. I'm not sure if this is true, but it does seem to help for me. On linux you can do this with the package solaar. It is a GUI that lives in the system tray that shows you the periferals paired to your unifying receiver and allows you to unpair and pair periferals. Often when I do this (hurray for touchpads....) the mouse stops skipping.


Use existing encrypted directory as home directory

I'm not an expert in ecryptfs, but it looks to me like it should just work, if your password on the new system is the same as on the old system.  Have you tried it?

If the passwords are not the same, you may need to rewrite /home/.ecryptfs/jordan/.ecryptfs/wrapped-passphrase but be sure to save a copy first!  You can create a new wrapped passphrase with

ecryptfs-wrap-passphrase /home/.ecryptfs/jordan/.ecryptfs/wrapped-passphrase

It will ask two questions.  First enter your ecryptfs passphrase (32-character hexadecimal string), then enter your new password.  Of course this is after backing up the existing wrapped-passphrase file).

Again, I am not an expert and I have not tried this, so proceed at your own risk and discretion.  The posting guidelines request I not post this opinion; however, I consider it an informed opinion, and no one else has answered.


Mounting using indermediate server and sshfs with autofs

I found the reason why this was happening. Automount needs to run with sudo but root did not have the proxy setup in /root/.ssh/config so it could not access machine B (since it is only accessible through machine A). Once I updated /root/.ssh/config with the correct lines (using ProxyCommand) and reran the ssh-copy-id command with sudo I was able to get autofs working fine. I don't like answering my own question but instead of deleting it I will leave it here in case someone else finds the answer useful or in case there is a more elegant solution that I have missed.


Booting into two different GNOME configurations randomly. How to investigate?

I had the same problem, although I don't login as root.

In my case there appeared to be two partitions with the same UUID. Both /dev/sdb3 and /dev/sda4 had the same UUID. /dev/sdb3 used to be my /HOME, but with my new disk /dev/sda4. I created the new /Home by copying the partition. And yes, than you get two partitions with the same UUID. You can see the partitions with ''

sudo blkid

I fixed it by creating a new UUID

uuidgen

gives

f0acce91-a416-474c-8a8c-43f3ed3768f9

and then assign the UUID to the /dev/sb3

sudo tune2fs /dev/sde5 -U f0acce91-a416-474c-8a8c-43f3ed3768f9

Why on boot sometimes /dev/sdb3 and sometimes /dev/sda4 was chosen, I don't know, but the new UUID worked for me. Hope it's useful.


How do you install Visual Studio 2010 Professional?

By adding the WINE repo and installing wine1.7 you should be able to run Visual Studio 2010 on Ubuntu...  To add repo and install type these lines into terminal:

sudo add-apt-repository ppa:ubuntu-wine/ppa

sudo apt-get update && sudo apt-get install wine1.7

...now you can right click any windows .exe file and select "Open with Wine Windows Program Loader" which you can set to be the default action...


How Does Gnome Know Where To Categorize & Place Shortcuts In The Gnome Menu?

The files in /usr/share/applications are *.desktop files. They are simply text files that hold the shortcut data. If you want to reorganize, I would not recommend editing those files, but using the application for editing the menu (alacarte)

You can get to it three ways (I'm assuming you are using 10.10):

Right click on the menu and select Edit Menus

System -> Preferences -> Main Menu
Open Terminal. Type: alacarte

You can move items around by dragging them into different categories, edit the shortcuts, make your own, etc.


Download ubuntu minimal CD from here. It has the minimal stuff you need, and it's very small. However, you need internet connection to install ubuntu this way. If you don't like text-based installer, you can download this older version of 12.04, and then update. This version fits on 700MB CD, I tested it myself.


subprocess paste was killed by signal (Broken pipe)

Open your terminal( CTRL+ALT+T) and paste as

 sudo dpkg --force-overwrite /var/cache/apt/archives/libhdf5-serial-dev_1.8.4-patch1-3ubuntu2_i386.deb


Possible to upgrade to 11.10 without the "extra applications". Like no-install-recommends?

The official way to upgrade Ubuntu from the command-line is intended to work the way you want: it should only upgrade the packages you've already got on the system.

If it does install new packages, it is because some upgraded packages have new dependencies. This applies especially to the package ubuntu-desktop, which will depend on all the new default applications. I doubt you have ubuntu-desktop installed though, as you installed the server edition.


The device causing the problem is probably the swap partition. Check by opening /etc/fstab (with your favourite editor) and compare UUIDs.

To confirm, invoke your favourite editor thus:

sudo gedit /etc/fstab

Comment the swap partition entry by placing a # at the beginning of the line.  -
Reboot.
If it boots OK, it is recommended that the swap partition is recreated, as in the post below:

A start job is running for dev-disk-by x2duuid-ad0b043b\x2d404c... .device (7s / 1min 30s)

Note: I run sparkylinux without a swap partition without any problems, but maybe that's because I never get close to using all of the RAM (8gb).


Downloaded Ubuntu, no dual boot, can't access Windows

The standard way to let Grub know about Windows is sudo update-grub. This merely forces Grub to look at the hard disks and see what operating systems there are. Usually it will find Windows if it's there.


To create a second virtual host for your wordpress installation save the following as e.g. /etc/apache2/sites-available/wordpress.conf:

<VirtualHost *:80>
    ServerName wordpress
    DocumentRoot /var/www/wordpress

    ErrorLog ${APACHE_LOG_DIR}/wordpress-error.log
    CustomLog ${APACHE_LOG_DIR}/wordpress-access.log combined

    <Directory /var/www/wordpress >
      AllowOverride All
      Require all granted
    </Directory>
</VirtualHost>

Then add the line

127.0.0.1   wordpress

to /etc/hosts. Adapt the configuration to your needs, but make sure the name after ServerName has an entry in /etc/hosts.

Enable this new site using

sudo a2ensite wordpress

If you didn't save the file as wordpress.conf but somethingelse.conf use somethingelse instead of wordpress here.

Then reload the Apache configuration:

sudo  service apache2 reload

Now you should be able to access the files in /var/www/wordpress/ using http://wordpress/. Use that folder to install WordPress

See the Apache documentation for more about virtual hosts.


Whats the difference between virsh destroy and virsh undefine

Let’s take a look into man virsh:

destroy domain
  Immediately terminate the domain domain.  This doesn't give the domain
  OS any chance to react, and it's the equivalent of ripping the power cord
  out on a physical machine. In most cases you will want to use
  the shutdown command instead.  However, this does not delete any
  storage volumes used by the guest, and if the domain is persistent, it
  can be restarted later.

undefine domain
  Undefine a domain. If the domain is running,
  this converts it to a transient domain, without stopping it.
  If the domain is inactive, the domain configuration is removed.

This indicates that destroy is a way to shutdown a domain quite ungracefully, while undefine just converts it to a transient one or removes its configuration.


Battery icon with problem with some themes

I had the same problem after installing Faenza icon set. The problems were the ~/icons/Faenza/status/scalable/battery****symbolic.svg symlinks. They were pointing at some ugly big squarish battery drawings. I replaced them with those in the usr/share/icons/ubuntu-mono-dark/status/24/

Just copied all the battery *.* files to ~/icons/Faenza/status/scalable/ overwriting everything.


As you can see from http://packages.ubuntu.com/xenial/amd64/audacious/filelist, the audacious package provides a man page that you can peruse. You should be able to find more information about the options you need from the man page. To view the man page, open the terminal and then type:

man audacious


Computer won't boot after clean install of ubuntu 14.04

That means GRUB couldn't be installed. GRUB is the bootloader used by many Linux distributions. To fix this, boot into the LiveCD session of Ubuntu. The easiest way to fix it is by opening the terminal (Ctrl-Alt-T) and typing in sudo grub-install /dev/sda

To explain: / is your computer's root folder. This is where everything else comes from. dev means device. sda is your computer's main hard drive (SSD in this case).

This should fix the issue. Just ask if it doesn't.


Get mtpfs package : sudo apt-get install mtpfs

Make sure to unlock your phone when connecting to PC

Then use it as follows :

Create a directory to mount Android fs
as user type : mtpfs /path/to/mountpoint

to unmount use fusermount -u command to unmount

This is for device fs access only, if you're looking for android tools (adb and fastboot) :

install android-tools-adb and android-tools-fastboot :

sudo apt-get install android-tools-adb android-tools-fastboot


Keyboard Shortcuts to switch directly to applications

An ugly solution is to use xdotool to simulate the Super-[1-9] keypress.  The xdotool command sequence can then be mapped to a custom keyboard shortcut from  "System Settings" > Keyboard > Shortcuts".  The commands to be run for the shortcuts are

Super-1

sh -c 'echo "keydown super sleep 0.2 key 1 super" | xdotool -'

Super-2

sh -c 'echo "keydown super sleep 0.2 key 2 super" | xdotool -'

Super-3

sh -c 'echo "keydown super sleep 0.2 key 3 super" | xdotool -'


How to check if an image has 2 bytes per pixel and how to convert it to an image with 1 byte per pixel?

An image typically contains a small amount of header data and large amount of image data. In most cases the percent of data in header is negligibly small so we can neglect it and do a simple calculation and see that it contains 4 bytes per pixel. Divide file size by resolution, you will get bytes per pixel. (But it must be verified that the result is close to an integer)
>>> 4194510/(1024*1024)
>>> 4.0002

Here, 4194510 is the file size in bytes, and 1024*1024 is the resolution.


Wireless 2915ABG not working on a Dell XPS M140

I was having a similar problem after a fresh install of Ubuntu 11.10 on my Dell Studio XPS with an Intel wireless card. Network traffic was very slow, down to barely a trickle.

Resolve slow connexion when using wifi in ubuntu 11.04, 11.10 Oneiric Ocelot and LinuxMint11 suggests disabling IPv6 or ath9k hardware encryption, but neither resolved the issue.

A couple of comments did the trick for me, however.

  DCL
  2011-10-15 00:42:13

  FYI, Ubuntu 11.10 seems to have a bug in regards to 802.11n. These methods didn't work for me and I actually had to turn N off at my router. It's a high priority bug right now...

  https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/836250

  Douby
  2011-10-15 08:56:36

  1 & 2 didn't work for me but this did:

sudo rmmod -f iwlagn
sudo modprobe iwlagn 11n_disable=1

  bug with n wifi

  make this permanent:

gksudo gedit /etc/modprobe.d/iwlagn-disable11n.conf

  add

options iwlagn 11n_disable=1

  save & quit


How can I get Ubuntu and Windows XP to dual boot?

OP found this answer:

---------------  FOUND IT!  ----------------

setting in bios

Primary Drive 0 ........  Hard disk

Primary Drive 1 ........  OFF

changed OFF to AUTO ..... save and exit .....

boot continues and Hooray! there is my boot menu with
Linux and Win XP

Odd that I had to change something bios for a drive that
could be seen by Windows and Gparted to get grub to work right


How can I turn down the sensitivity of my brightness slider?

I did it by setting acpi_osi= instead of acpi_osi="!Windows2012"
Now it works.


Press a key when start up your computer and check if there are any options for you to get into systems like "widows load manager" or "ubuntu".

I guess your windows system is under UEFI mode and your ubuntu should also be installed under this mode.

If that is the case, check your bios to see if your computer is booting under UEFI mode. If you choose legacy, the problem you described is likely to happen.

Also if you are using a RAID with any ssd caching technology like intel rst,, just turn that off.


same happened with me, apparently I was trying out the theme etc but I didn't configure them, I don't shut down my system often, so I forgot about it, when my system froze while coding I had to hard reboot, and then Ubuntu Kylin screen appeared, I was freaked out.

then I checked in the kylin packages and removed them, all fixed.


how to install netis WF2123 USB WiFi on Ubuntu 16.04.2 LTS x64?

This driver needs to be patched. I have a rtl8192EU in my PPA with a patch, but it does not have your device. I can't add it now.

You can fix it yourself.

Open Makefile in the driver directory and add there

EXTRA_CFLAGS += -Wno-date-time

after the existing EXTRA_CFLAGS lines. This will sort out the build problem.


Make "compact view" as a default directory view instead of "icon view"

Open File Management Preferences by clicking Edit->Preferences.

Under Default View, choose your preferred option under View new folders using:


How to upgrade openSSH version in ubuntu 10.04

The higher version you can get in lucid is 1:5.3p1-3ubuntu7. That's the only one. If you need higher you may upgrade your server to 12.04 instead otherwise I see difficult upgrading the package.

http://packages.ubuntu.com/lucid-updates/openssh-server


Completely remove package (GIMP), including all settings

Try deleting ~/.gimp. If you can't find that, it might be called something else, like ~/.gimp-2.6.


How do I install gnotime in Ubuntu 15.10 and newer?

For Ubuntu 17.10: Compile it yourself

Installing the Ubuntu 15.04 packages will not work here, so we have to compile the program ourselves. This is possible, but has become a bit difficult as we deal with quite old software on a recent distribution. Here's how I succeeded:

1. Install required build tools

sudo apt install checkinstall
Install dbus-binding-tool, later needed when compiling gnotime:

sudo apt install libdbus-glib-1-dev

2. Compile and install qof

Ubuntu 17.10 provides libqof2, but we need the earlier version. So we compile it from the unchanged 0.8.7 source package that was used for the Ubuntu 15.04 package:

sudo apt-install sqlite libsqlite0-dev
mkdir qof && cd qof
wget https://launchpad.net/ubuntu/+archive/primary/+files/qof_0.8.7.orig.tar.gz
tar -xzf qof_0.8.7.orig.tar.gz && cd qof-0.8.7
./configure
make
sudo checkinstall make install

3. Compile and install gtkhtml 3.xx

Ubtuntu 17.10 provides gtkhtml version 4, but we need version 3. We compile version 3.32.2 from source, using the package and patches as provided by the Debian maintainers. Without these patches, compiling would not work.

sudo apt install libenchant-dev
mkdir gtkhtml && cd gtkhtml
wget http://http.debian.net/debian/pool/main/g/gtkhtml3.14/gtkhtml3.14_3.32.2.orig.tar.gz
tar -xzf gtkhtml3.14_3.32.2.orig.tar.gz && cd gtkhtml-3.32.2
Apply the patches provided by the Debian maintainers (I follow these instructions):

wget http://http.debian.net/debian/pool/main/g/gtkhtml3.14/gtkhtml3.14_3.32.2-2.2.debian.tar.gz
tar -xzf gtkhtml3.14_3.32.2-2.2.debian.tar.gz (it is important that this creates the debian subdirectory inside the normal gtkhtml source directory we created above)
apt-get install quilt
export QUILT_PATCHES=debian/patches
quilt push -a

Replace all occurrences of G_CONST_RETURN in the source files with const. This backports a fix for a bug provided in a later version that otherwise would prohibit compiling.
./configure
In src/Makefile in line 580 for target gnotime, append "-lm" to the line. This fixes an error "undefined reference to symbol 'lround@@GLIBC_2.2.5" according to these instructions. The cleaner solution is to include it as an option to ./configure of course.
make
sudo checkinstall make install

4. Compile and install gnotime

We use the (so far) most recent commit version 2e3181c, so we get that as a snapshot first:

wget https://sourceforge.net/code-snapshots/git/g/gt/gttr/code.git/gttr-code-2e3181c7b16cc95b2ca50a94bf8d23453fb561a5.zip
Install the remaining build dependencies that we did not have to compile ourselves:

sudo apt install gnome-common libglib2.0-dev guile-2.0-dev gtk+-2.0 libgtk2.0-dev libgnome2-dev libgnomeui-dev libglade2-dev libxss-dev
./autogen.sh
make
sudo checkinstall make install
Now start gnotime with: export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib; gnotime or make this library path change permanent using these instructions.

For Ubuntu 15.10: Install the 15.04 packages

While not the cleanest solution, you can still successfully install the Ubuntu 15.04 package and its dependencies manually. Example commands for AMD64 architecture:

wget http://launchpadlibrarian.net/188278296/qof-data_0.8.8-1_all.deb;
wget http://launchpadlibrarian.net/188278297/libqof2_0.8.8-1_amd64.deb;
wget https://launchpadlibrarian.net/160508015/libgtkhtml3.14-19_3.32.2-0ubuntu4_amd64.deb;
wget http://launchpadlibrarian.net/188196809/gnotime_2.4.1-1_amd64.deb;

sudo dpkg -i qof-data_0.8.8-1_all.deb;
sudo dpkg -i libqof2_0.8.8-1_amd64.deb;
sudo dpkg -i libgtkhtml3.14-19_3.32.2-0ubuntu4_amd64.deb;
sudo dpkg -i gnotime_2.4.1-1_amd64.deb;

With this method, there will be no automatic updates, but updates are not expectable for gnotime anyway, at the moment.

(A better method would be using version pinning or installation from the source package.)


As @user79267 indicated, an OS reinstall is an option, but you could simply accomplish the same thing by trying the Ubuntu from USB without installing it. You don't want to lose everything.

If the WiFi behavior doesn't change, you may consider replacing that WiFi adapter.
It may simply generate noise on the network causing the router to enter a protection mode or simply crash.


Try updating drivers.In additional Drivers option.
or download the driver for your touch-pad and install in manually


Turns out a lot of the vnstat switches only work with the default interface (in my case eth0) unless another is specified.

Specify an interface with -i, like vnstat -h -i wlan0.  You can get a list of available interfaces using ifconfig.

Default interface can be specified in the config (probably in /etc/vnstat.conf).


How to compile a C program that uses stdlib.h?

You don't need to add anything. Only the math.h needs -lm.


Space (and pipe sign) works on occasion only

I found this link on a french site: http://forum.ubuntu-fr.org/viewtopic.php?id=65282 Now my french is bad but this link is also referred to on the Arch Linux forum (and that one is in english). This is probably the reason for your error too:

  With some keyboard layouts, type [AltGr] + product space character
  that appears as a space but is not interpreted as such by the shell.

  What's happening is that by typing the |, you stayed pressing the
  [AltGr] typing space. So, bash looks for the command [space] grep,
  which does not exist.

  Retries typing, paying attention, or copy and paste, it should pass.

  If your problem is well there, you should be able to adjust your
  keyboard to prevent it. (System -> Preferences -> Keyboard -> Layout)

and

  I figured it out.  Shift+ on my keyboard produces a
  nobreakspace.  When I type '| ' quickly I sometimes don't release the
  shift key fast enough after typing '|' and so instead of typing an
  ordinary space after '|' I'm typing a nobreakspace.

  Anonymous_user, thanks.  Your post was the clue I needed to start
  thinking in the right direction.

  Jay

Source


LibreOffice applies the paragraph style "Contents [n]" to ToC entries by default; [n] is the heading level. So, to indent the ToC entries, you will have to modify the the "contents" paragraph styles:

Menu "Format" -> "Styles and Formatting"
single-click on style entry (e.g. "Contents 1" for all top-level ToC entries) to select it
right-click and select "Modify" -> "Indents and Spacing" tab


Some pre-made cloud images are spun to have an "Ubuntu" user.
That user is created by a cloud-init setting. You can see it among the examples in the documentation.


Dual screen set up shows stylus position off set

I found 2 other questions very similar to mine here and here. As one of the contributors answered here, on start up I could just select that I want to use Wayland instead of xorg and this solved the issue completely for me. With just 1 click!


Can I install LAMP over an existing Apache?

sudo apt-get install lamp-server^ will install a bunch of packages. You will see something like this:

Note, selecting 'libdbd-mysql-perl' for task 'lamp-server'
Note, selecting 'tcpd' for task 'lamp-server'
Note, selecting 'libdbi-perl' for task 'lamp-server'
libaio1 is already the newest version.
libaio1 set to manually installed.
libwrap0 is already the newest version.
ssl-cert is already the newest version.

As you can see, if you already have a package already installed (via apt), it will not be installed again.


Ubuntu 14.04.1 Disable the mounting of internal hdd (sda)

First find out the UUID of your partition.

Open a terminal.

Run it:

sudo -i

blkid /dev/sda1

Second, create a mount point (/mnt/mydisk) accessible only to root:

sudo -i

mkdir /mnt/mydisk

Third  edit the file /etc/fstab, and add the lines not mount:

sudo -i

nano /etc/fstab

#/dev/sda1 was /mnt/mydisk
UUID=A70889A1788980GG /mnt/mydisk <file system> noauto,umask=222 0 0

Now after reboot from the usb-stick, you should not mount the partition, only root can mount it with the mount command.


ip address configuration in ubuntu 12.10

Try sudo vi /etc/network/interfaces, and sudo vi /etc/resolv.conf  that should let you edit the files.

If that doesn't work, try sudo su enter your password, and try editing the files that way.


Is iwlwifi or iwldvm or wext the wireless driver?

Not every module is a driver, and drivers can use multiple modules. For further information read this U&L thread.

As for your specific question:

$ modinfo iwlwifi | grep description
description:    Intel(R) Wireless WiFi driver for Linux
$ modinfo iwldvm | grep description
description:    Intel(R) Wireless WiFi Link AGN driver for Linux
$ modinfo iwldvm | grep depends
depends:        iwlwifi,mac80211,cfg80211

As you see, the iwldvm module belongs to a driver for a very specific group of Intel WiFi chips. It is optimized to work the best with the WiFi Link AGN devices.

However, it says to depend on iwlwifi, which, on the contrary, simply states to be a "Intel WiFi driver", so it is a generic driver, which should work with a lot of Intel WiFi devices.

I don't know the exact way Intel drivers work, but I could imagine the following:

iwlwifi enables basic interaction with the WiFi device. If you only had iwlwifi, your WiFi could work perfectly, reduced or not at all.

For the latter two cases, here comes a more specified module, such as iwldvm, which contains operations needed for more complex tasks. With this driver, the WiFi should work properly, but it still requires iwlwifi.


How to fix error 'This site can’t be reached. Took too long to respond' for a service on an Ubuntu server?

Many Chrome users facing this issue - "cant reach website" with the message showing "Unexpectedly closed the connection" or "Server DNS address could not be found" "ERR_CONNECTION_CLOSED" and took too long to respond..

The reason of the error causing some websites not loading is because of DNS lookup failed - I was also got stuck here, and then I found this tutorial showing server DNS address could not be found fix.

http://www.problogbooster.com/2015/03/fix-this-site-cannot-be-reached-err-connection-timed-out-reset-chrome-windows-error-dns-address-not-found-lookup-failure-localhost-refused-to-connect-solved.html

I got the solution by resetting, you may find something else check it


My /usr/share/python-apt/templates/Ubuntu.info file was corrupt. I simply replaced it with a new copy and it was fine.

Thank You Everyone


It appears as though the default VoIP client for Ubuntu/Ubuntu Phone OS is currently Empathy:

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

In addition to this, someone else was interested in something similar. Unfortunately, they found that VoIP is not a big feature with the current version of Ubuntu's phone os.

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

The VoIP client appears to work off of 3G/WiFi - type networks. You may have to start a new call after leaving the range of the cellular network. I don't think it's as automatic as you were hoping for, sadly.


No estoy seguro con el 13.04, pero con el 12.04 tienes que darle a Alt + Super(el boton con la icona de windows) + boton derecho
Not sure with Ubuntu 13.04, but with Ubuntu 12.04 you have to click Alt+Super(the button with the windows icon) + right button


Blinking cursor trying to boot from live USB

When you get the blank screen, instead of the graphical Ubuntu live CD interface, you could try

* press `TAB` - for a prompt
* type "live"`ENTER`

This is what I sometimes had to do to get into the Live CD on my asus X54-C


Eclipse throwing 'Editor does not contain a main type' error when running Java program

Well, I just realized after much deliberation and reading that facepalm I had forgot the public static void main() { }!

Wow. Anyways, it's now working and I am marking this as answered.


How can we mount multiple Google Drive accounts on our system using google-drive-ocamlfuse?

If you want to mount multiple google drives you will need to use the following procedure:

Create a new directory for the new Google Drive, for example mkdir /mnt/google-drive1
Then issue the below command:

google-drive-ocamlfuse -label label /mnt/google-drive1

A new browser tab will open asking you to allow the software access to your google drive.

If you already signed in with another gmail account you will need to sign out and sign in with the ID of the new Google drive you want to mount.


In order to use TLSv1.1 and TLSv1.2 for SSLProtocol, you need at least version 2.2.23 (in addition to OpenSSL 1.0.1 or higher).

Once you have the latest,

Add

SSLProtocol TLSv1.1

to

/etc/httpd/conf.d/ssl.conf


.desktop file. There was an error launching the application

This one works.

[Desktop Entry]
Version=1.0
Type=Application
Name=Phoenix Viewer
Comment=Second Life Client
Exec=/opt/PhoenixViewer/snowglobe
Icon=/opt/PhoenixViewer/phoenix_icon.png
Terminal=false
StartupNotify=true
StartupWMClass=snowglobe-do-not-run-directly
Categories=Game


difference between executable and ./executable

The reason is that if you don't begin it with ./, it will search the PATH for executable - you can see your current PATH by running echo $PATH - example output:

/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/wilf/.local/bin:/usr/games

So if you want to add DEV/ADT/sdk/platform-tools to your PATH, add the following in ~/.bash_profile (you may need to run source ~/.bash_profile first, or logout and login):

PATH=$PATH:DEV/ADT/sdk/platform-tools

Another example for ~/.local/bin:

PATH=$PATH:$HOME/.local/bin

If you prefix it with ./ , it will search the current working directory (you can find this with echo $PWD, pwd, etc) for the file.


How change default terminal in "open in terminal" in GIO

Right, thank you

It was done with gsettings

gsettings set org.gnome.desktop.default-applications.terminal exec /usr/bin/terminator
gsettings set org.gnome.desktop.default-applications.terminal exec-arg "-x"


Is there an app which links memo-notes to a window, based on the window's title?

Well, I've been on the learning curve again... (late nights and lots of coffee).

The net result is a moderately useable bash script (using an sqlite db/table) which does what I was after...
 ... ie. Creates a grouping of notes, based on window titles...

It works.. but it's definitely "alpha"..

So, I've got my home-grown app!  ... I'm posting it here for anyone interested in a "look-see"...

Here it is:

#!/bin/bash

clearAllDataAndStartAgain="false"

# Name: tinotes (Title Notes)
#
# What does it do? ... Aside from giving me a great opportunity to learn
#      more about bash (and sqlite, which I had previously barely touched).. not much ;)
#      Actually, it allows you to keep notes, grouped by window title.
#      The notes are kept in an sqlite database.
#      Each timestamped note-"event" is stored in a row of the main (only) table.
#      You can consolidate notes in a semi ad-hoc manner...
#      Notes are presented to you in a single editable text file (in Leafpad).
#      You must keep at least one "tinotes" timestamp-line at the top of the text...
#      All lines above this topmost timestamp-line are ignored,
#      including the "title", which is presented upon each viewing.
#      If you remove any/all other "timestamp line(s)", those particular rows are
#      deleted from the sqlite table, and the text which remains is associated with
#      the immediately preceding timestamp-line (and updated as such in the sqlite table)
#
# How do you drive it? .. Just associate `tinotes.sh` with a shortcut-key.. That's' it!
#      Just press the shortcut-key and you will be presented with Leafpad displaying
#      a  "title line" at the very top, and on line 2, is a "tinotes timestamp" line.
#      Type your note below the  timestamp-line, then Save and Exit Leafpad,..
#      NB.. You MUST fully EXIT Leafpad.. the script cannot proceed until you EXIT Leafpad..
#      Leafpad is effectively being used as a Dialog-box with "normal" editing capability.
#      A warning Dialog appears if another instance of this script is currently running..
#      (actually, if another ***tinotes** leafpad window is running).
#
# Caveat: This version is very much "demo-only"...
#         It works, but has typical "alpha" bugs...
#         I've presented it here, for anyone who is interested in the general idea.
#
# dependencies
# ============
#      sqlite3 ,, the notes are stored in a sqlite db.
#      leafpad .. to edit/view the notes (no need to re-invent the wheel)
#       wmctrl .. to detect if a ***tinotes*** leafpad window is currently open.
#      xdotool .. to get the active window's' ID
#     xwininfo .. to get a window's title via it's ID.
#       md5sum .. to check for mods to the presented/added notes data
#       zenity .. for warning dialog(s)
#          sed .. versatile!
#           wc .. word count? .. line count (here)

############################################################################

function FinalizeNote {
  title="$1"; note="$2"; timeline="$3"; preList="$4"

  # Remove trailing whitespace
  note="${note%"${note##*[![:space:]]}"}"
  # Does this timestamp exist in the  PRE-LIST
  timestamp=${timeline:0:19}
  preCt=$(sed -n "s/^$timestamp.\(.*\)/\1/p" "$preList" |wc -l)
  if [ "$preCt" -eq "0" ] ; then
      sqlite3 "$appdb" "INSERT INTO Tmain (time,title,note) VALUES('$timestamp','$title','$note');"
  elif [ "$preCt" -gt "1" ] ; then
      excod=3
      zenity --error --text "$preCt duplicate timestamps found. \
      \nThis is an 'alpha' problem! \
      \n\n    Exiting with code $excod"
      exit $excod
  else
      # TODO: At it currently stands, it is only known that "something" has changed,
      #       but not which rows have been effected. (Just update them all, for now.)
      id=$(sed -n "s/^$timestamp.\(.*\)/\1/p" "$preList")
      sqlite3 "$appdb" "UPDATE Tmain SET note='$note' WHERE id='$id';"
      # Remove line from PRE-LIST
      sed -i -e "/^$timestamp.*$/d" "$preList"
  fi
}

############################################################################

  sep="∘" # Field seperator
  sepmulti="∘∘∘∘∘∘∘∘∘∘∘∘∘∘∘∘∘∘∘∘∘∘∘∘"
  sepfirst="∘∘(write∘new∘notes∘below∘this∘line)∘∘"
  appnam="tinotes"
  appdir="$HOME/.$appnam"
  appdb="$appdir/$appnam.db"
  appsql="$appdir/$appnam.sql"
  apptxt="$appdir/$sep$sep$sep$appnam$sep$sep$sep"
  preList="$appdir/$appnam.pre"; echo -n>"$preList"

  tiwid=0 # Check for a currently running Instance of the "Leafpad"  window...
  tiwid=$(wmctrl -l |sed -n "s/\([^ ]\+\) \+[^ ]\+ \+[^ ]\+ \*\?$(basename $apptxt)$/\1/p")
  if [ "${tiwid:0:2}" == "0x" ] ; then
      # Warn of the need to finalize an already-running instance of this script
      zenity --warning  --text "You must first finalize a previously opened \n\t 'tinotes' window.\
      \n\n  To activate the window, select 'OK'"
      # 'wmctrl' can only activate via a title
      #   ..and it is case-insensitive and wildcarded!!
      # so use 'xdotool'
      xdotool windowactivate --sync $(($tiwid))
      exit
  fi

  #################################################################################################################################################
  [ "$clearAllDataAndStartAgain" = "true" ] && [ -d "$appdir" ] && rm -rf  "$appdir" # Typically for TESTING ONLY; Remove all data,and start afresh!
  #################################################################################################################################################

  # First-time create app's main directory
  [ ! -d "$appdir" ] && mkdir   "$appdir"
  # First-time Create the Tmain table
  [ ! -f "$appdb" ] && sqlite3 "$appdb" "create table Tmain (id INTEGER PRIMARY KEY,time DATE,title TEXT,note TEXT);"

# Get the active-window's title
# =============================
  activeT=$(xwininfo -id "$(xdotool getactivewindow)" |sed -n \
  "2s/^xwininfo: Window id: \(0x[[:xdigit:]]\+\) \x22\(.*\)\x22$/\2/p")

# Does a previous row of the same title already exist?
# ====================================================
  # First, prepare a new/"empty" note entry
    echo "$activeT" >"$apptxt"
    echo -e $(date '+%Y-%m-%d %H:%M:%S' |tr -d '\n')" $sep$appnam$sepfirst\n\n\n">>"$apptxt"

  # Count existing rows for this title
  if [ $(sqlite3 "$appdb" "SELECT COUNT(title) FROM Tmain WHERE title = '$activeT';") -gt 0 ] ; then
      # Previous notes FOUND for this window title
      # Make a list of timestamps to match-off against any user mods
      sqlite3 "$appdb" "SELECT time,id FROM Tmain WHERE title='$activeT';" >"$preList"

      # Build and Run the query to construct the "timeline"
      echo -e ".separator "$sep"\n\
      SELECT time||' $sep$appnam$sepmulti','\n\n'||note||'\n' FROM Tmain WHERE title='$activeT' order by time desc;">"$appsql"
      sqlite3 "$appdb" <"$appsql">>"$apptxt"
  fi
  # Present the notes to the user (get the  "before" md5sum, to compare with user's access/mods)
  md5bef=$(md5sum "$apptxt" |sed "s/\([[:xdigit:]]\+\).*/\1/")
  leafpad "$apptxt" # The script waits for the user to close "leafpad"
  md5aft=$(md5sum "$apptxt" |sed "s/\([[:xdigit:]]\+\).*/\1/")
  # Check for any modifications to the notes
  if [ "$md5bef" == "$md5aft" ] ; then
      # No changes have been made.
      exit 0
  fi
  # The notes have been modified. Commit the changes!
  # It's time to analyze the changes, and tidy up.
  #   Remove leading and trailing blank lines (per timestamp).
  #   Delete rows for which the timestamp has been removed.
  #   Update the table for all the remaining rows.
  note=""
  lnCt=0
  while read line ; do
      lnCt=$((lnCt+1))
      [ "$lnCt" -eq "1" ] && continue  # The first line is a throw-away copy of the "title"
      # Find timeline. Any leading data is lost. (It shouldn't be there... common-sense!)
      if [[ "$line" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}\ [0-9]{2}:[0-9]{2}:[0-9]{2}\ ∘.*∘$ ]] ; then
          # FOUND timeline
          if [ "$note" != "" ] ; then
              FinalizeNote "$activeT" "$note" "$timeline" "$preList"
          fi
          note=""
          timeline=$line
      elif [ "$line" = "" ] ; then
          if [ "$note" != "" ] ; then
              note="$note$line"$'\n' # append this blank line
          fi
      else
          note="$note$line"$'\n' # append this non-blank line
      fi
  done <"$apptxt"
  #
  if [ "$note" != "" ] ; then
      FinalizeNote "$activeT" "$note" "$timeline" "$preList"
  fi
  # Delete rows for timestamps still in the PRE-LIST
  while read line ; do
      eval $(echo "$line" |sed -n "s/.*|\([0-9]\+\)$/id=\1/p")
      sqlite3 "$appdb" "DELETE FROM Tmain WHERE id='$id';"
  done <"$preList"

exit

############################################################################


To secure your machine from unwanted root access we can disable the discovery root terminal in Grub2 by uncommenting the following line in /etc/default/grub:

GRUB_DISABLE_RECOVERY="true"

Note: To avoid security issues by editing GRUB2 entries while booting we may also want to restrict access to Grub boot menu by setting GRUB_HIDDEN_TIMEOUT=0 and enabling the OS_PROBER to prevent calling scripts in /etc/grub.d.

To take effect we also want to run the following command:

sudo update-grub

This will not prevent booting into a root environment with a live CD.

Therefore we also need to disable CD-ROM, Network or USB booting features in BIOS. To prevent BIOS changes we also need a password for BIOS access, and a hardware lock for your case to prevent resetting BIOS on your motherboard.

In addition your harddisk may have to be encrypted in case your hardware gets stolen.

  Warning: By securing your system in this way you may completely lock yourself out of your computer. Be careful what you do and proceed only if you know exactly what you do. Keep your passwords in a safe place.


is python -m SimpleHTTPServer a security risk, and if it is how do I turn it off

It's not really possible to assess risk without taking into account other factors such as what user you ran it as, any firewall(s) you may be using, and your network configuration (such as routers and port forwarding).

In any case, you can kill it the same way you would kill any other process e.g.

pkill -f SimpleHTTPServer

(you should see something like

[1]+  Terminated              python -m SimpleHTTPServer

by way of confirmation).


How to upgrade all 50 Desktops in a network?

You can proxy and cache the packages (as mentioned in Scaine's answer) but in my opinion, this doesn't save you much time, mostly just bandwidth. Of course the upgrades will download faster from a local source but if you still have to toddle from machine to machine... It's a lot of time. Even SSHing in and triggering the upgrade would take a while.

The best tool for the job is probably one of Canonical's paid services: Landscape.

With it you can manage all your computers from a nice central web-based UI. Push packages, updates, reboots, with monitoring.

It's not free but you can get a 30-day trial to see if it fits the bill.


Using CUPS via http://localhost:631 in Chrome has a bug that will not log into the CUPS admin pages in Ubuntu 18.04.  See bug report at https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1769893

Instead, use Firefox as the whole process will work fine there.


Courier-base fails to install on Ubuntu 16.04.4 LTS base install

/usr/share/man/man5/maildir.courier.5.gz ought to be part of the package courier-base but Apt claims that the file is missing during package configuration. I suspect the following course of events:

Something instructed DPKG to install courier-base but the package configuration failed for some reason and left the package in a half-installed state.
Something removed the file /usr/share/man/man5/maildir.courier.5.gz but not its “owner” the package courier-base.
Apt tries to configure half-installed packages but fails due to the missing /usr/share/man/man5/maildir.courier.5.gz that is required for the package's post-installation step.

You should be able to solve the issue with a complete re-installation of the affected package:

sudo apt-get install -f --reinstall courier-base

This will also overwrite the hackish work-around that you describe in your comment.


Tim,

Evince displays the page numbers in parenthesis based on the logical/actual sequence of pages; that is, the real page numbers if you used only 1 - n (instead of i, ii, iii, 1).

The numbers in the input box are the numbers (or "name") given to the page. For example i, ii, and so on.

This is an issue with any type of document/reader that uses mixed or after actual first page numbering.


Install amdgpu drivers on Ubuntu Server 16.04.3 LTS

The AMDGPU Pro package contains multiple debian packages which are installed by the installer. You would need to do dpkg -l|grep amdgpu-pro to get a more accurate listing.


My Viber aborts unexpectedly while launching on my ubuntu 14.04 LTS

Viber always aborts on startup when you have installed acestream package.
Just uninstall acestream:

apt-get remove acestream*

And then try to launch Viber again.
Tested on Ubuntu Desktop 14/15.


Project/work based desktop customization

Well, maybe not the exact answer you need, but you could use shell scripts to open the apps + files you need for each project.
For example on Windows I use AutoIt. I have a script for each project, that just opens everything I need for that...


Uncaught PDOException: could not find driver after upgrading to ubuntu 16.04

Upgrading to Ubuntu 16.04 updates automatically you php to php7 version , you are just missing php7-pdo extension sudo apt-get install php7-pdo then restart your web server should fix your issues.


Is it possible to set different browsers to open links based on the application that opens them?

I solved this by creating an alternative xdg config directory, and changing the .desktop file for the chat app that I wanted to have open in a different browser (specifically, Telegram)
Steps to solve:

Create a new directory on your home mkdir $HOME/.config-alt and created a mimeapps.list file it (touch $HOME/.config-alt/mimeapps.list)

Edit this file to use the alternate browser, e.g.:
[Default Applications]
text/html=Firefox.desktop;
x-scheme-handler/http=Firefox.desktop;
x-scheme-handler/https=Firefox.desktop;
x-scheme-handler/about=Firefox.desktop;
x-scheme-handler/unknown=Firefox.desktop;

Change the .desktop file that opens your application to add an XDG related environment variable - e.g., telegram.desktop (usually in /etc/share/applications or $HOME/.local/share/applications/, but depends on your setup)
Change Exec=/path/to/bin to Exec=env XDG_CONFIG_HOME=$HOME/.config-alt/ /path/to/bin

Restart the app through its shortcut, it should open links in your browser of choice without messing with the other apps


Unable to create a flakey file system for testing

Short answer:

Wrong syntax (may be that was for an older version), correct format:

'<logical_start_sector> <num_sectors> flakey <dev path> <offset> <up interval> <down interval>'

dev_path comes first
Unable access to mounted underlying file system. Avoid mount:

sudo losetup <loop_device> <image_file>

Details:

I got same error, using loop file system

~$ sudo mount -o loop image.iso  ~/Desktop/rmme0
mount: /dev/loop4 is write-protected, mounting read-only

~$ sudo dmsetup create test --table '0 123 flakey 1 0 /dev/loop4'
device-mapper: reload ioctl on test failed: Invalid argument
Command failed

It was wrong syntax as could find a reference:

linux-doc (package): /usr/share/doc/linux-doc/device-mapper/dm-flakey.txt

Table parameters
----------------
<dev path> <offset> <up interval> <down interval> \
    [<num_features> [<feature arguments>]]

Mandatory parameters:
    <dev path>: Full pathname to the underlying block-device, or a
                "major:minor" device-number.
    <offset>: Starting sector within the device.
    <up interval>: Number of seconds device is available.
    <down interval>: Number of seconds device returns errors.

So again with:

~$ sudo dmsetup -v create test --table '0 123 flakey /dev/loop4 0 10 2'
device-mapper: reload ioctl on test failed: Device or resource busy
Command failed

Found this thread: device-mapper: remove ioctl failed: Device or resource busy Command failed. It ended up that message could raise when underlying file system is already mounted.

So, checked with hard disk partitions

~$ sudo dmsetup create test --table '0 123 flakey /dev/sda1 0 10 2'
~$ file /dev/mapper/test
/dev/mapper/test: symbolic link to ../dm-0

You can verify in detail using verbose flag:

sudo dmsetup -vvv create test --table '0 123 flakey /dev/sda1 0 10 2'
The loop device should not be mounted, so avoid using mount to create it. Alternative way, using losetup:

sudo losetup /dev/loop4 image.iso
sudo dmsetup create test --table '0 123 flakey /dev/loop4 0 10 2'

Tested on Xubuntu 16.04 (real machine)


Remove Windows 8 bootloader from another drive

Windows starting with Vista sometimes create a separate partition for bootloader. if that's your case you should remove that partition too and then try sudo update-grub. it's good if you can add your sudo fdisk -l output in your question.

EDIT:

After you added the fdisk -l output I should say that in your case you have no separate boot partition. you have just one partition and that's interesting (not even a swap ;)

This bring us to the next troubleshooting step: reinstalling the bootloader

Boot with a live disk or live usb stick and type following commands in a terminal:

sudo mount /dev/sdb1 /mnt
sudo grub-install --root-directory=/mnt /dev/sda

EDIT 2:

After you commented that you have swap we should more concern about your situation! let me clarify a bit. You have two HDD and on one of them you have a EXTENDED+logical (count as one partition) for swap with size 150GB (wow that's too much) and on the other HDD you have a HTTP/FAT partition for your root! or your windows or maybe your data.

Consider This Please

It is not necessary for anyone to have such a big swap!

separate /home partition and / (named root) partition and swap to get a better partitioning schema.

A good schema for personal use is:

a / partition with EXT4 filesystem (read root partition and Don't confuse with /root that is something else) with a size between 10 to 60 GB depending on your use. I recommend more than 50.
a /home partition with EXT4. makes it as long as you want your personal data to be.
(optional but recommended) a swap partition with size 512 MB up to double size of your RAM. sometimes you get hibernate problem if you don't have enough swap.

You can decide between between primary and logical. It doesn't matter as long as you don't want more than 4 partition. It is not going to hurt you with less than 4 partiton.


Only half of screen height in VBox seamless mode on secondary screen

Execute these commands:

$ kill -15 $(ps aux | grep "VBoxClient --draganddrop" | grep "Sl" | awk '{print $2;}')
$ /usr/bin/VBoxClient --draganddrop

Source


How to change the view for open programs in the taskbar in KDE?

Click the Hamburger-icon at the right end of the panel, remove the 'Task Manager'-widget, then click Add Widgets, scroll the widget-list down to find the Icons-only Task Manager-widget and drag it to the panel.


Should you eventually reboot after a Livepatch?

Every once in a while, a high/critical security vulnerability issue arrises for which a livepatch can't be made, and you need to do the normal apt dist-upgrade and reboot.

Looking through the archives of the ubuntu-security-announce mailing list, it looks like livepatches are provided for all kernels going back to the last time you were required to do a normal update + reboot, in once case going back as far as kernels released a year and a half prior!

Its probably a safe bet they'll continue to do so, and in any case at the bottom of any Livepatch Security Announcement (LSN) on the aformentioned mailing list, there will be a list of kernels that can receive the livepatch, so if you are really running a kernel old enough not to be included, you can know to just do the normal update + reboot in that case.

(thanks to deadflowr from this thread for much of this info)!


Cannot login as Admin after vsftpd install

You will need to start Ubuntu in safe mode, then from the terminal issue this command:

chown myusername:myusername /home/myusername

Change myusername for your actual user name, of course. The problem looks like you make your home dir owned by root.


Getting trayer to work with dual screen setup

Yes, I think you are right when you say "the trayer panel is spawned outside my view". I just posted this answer in another forum (https://bbs.archlinux.org/viewtopic.php?pid=878706#p878706)

I think the problem is the interaction between where you place trayer and the virtual screen size and layout.  I had a similar problem where the trayer (bottom right) disappeared with my dual screen set up. In my case, I got into trouble doing this:

xrandr --output LVDS1 --auto --primary --rotate normal --pos 0x0 --output VGA1 --rotate normal --left-of LVSD1

trayer --edge bottom --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --transparent true --tint 0x191970 --height 12 --distance 20 --distancefrom right

(LVSD1 is my laptop)

The problem is that the left monitor is 1280x1024 whereas the laptop is 1600x900. That means that the trayer (--edge bottom) is located below the lower part of the laptop's screen. An easy fix is to align the bottom of the two screens, for instance doing (with my setup)

xrandr --output LVDS1 --auto --primary --rotate normal --pos 1280x124 --output VGA1 --rotate normal --auto --pos 0x0

Maybe in your case its just a matter of specifying the position of your primary monitor AND the trayer edge option so that they play nicely with each other.

P.S.1. I think in most recent distros with recent xorg, you do not really need to specify an xorg.conf file.


This question is already answered here. It is based on Windows 7, but is applicable to Windows 8 too.


C++ graphic on Geany + Xlib + BadAlloc = destroyed Friday

You have multiple problems and you should try googling each one separately.
For the first problem:Xlib: extension "NV-GLX" missing on display ":0"
See if this post helps and try the following...

PRIMUS_libGL=/usr/'$LIB'/primus:/usr/lib64/nvidia:/usr/lib/nvidia${PRIMUS_libGL:-$(dirname `readlink -ne $0`)/'$LIB'}

This fixed a similar problem on a OpenSUSE 12.2 64 bit it might help you as well.

For the Second: X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request

Check this post out.


How to migrate from RAIDZ1 to RAIDZ2 using ZFS-native?

Rebuilt the array using RaidZ2 instead as I couldn't see a way of changing it over.

Thanks anyway.


QML: What is the difference between Row and TemplateRow?

Template, TemplateFlow, TemplateRow, TemplateSection and TemplateSectionNavigation are all internal components used by the ubuntu-ui-toolkit-examples package (See the full list here).

To run the gallery, just type in a terminal:

/usr/lib/ubuntu-ui-toolkit/examples/ubuntu-ui-toolkit-gallery/gallery

They are not standard components of the Ubuntu SDK but show how you can use and reuse QML elements across your application(s).


Why do I get ImportError when trying to import Pandas Python module?

Following are the dependencies for Pandas:

NumPy
python-dateutil
pytz

And the Pandas project list the following two as highly recommended dependencies:

numexpr
bottleneck

It looks like apt-get only installed the required dependencies and not the highly recommended ones; as such you get an ImportError when trying to import numexpr and bottleneck. Installing these modules should most probably solve the problem.

Since, you are running Python 2.7 as evident from Python Traceback, install these two modules as suggested below:

numexpr is present in Ubuntu's repositories. So, install it by running:

sudo apt-get install python-numexpr

bottleneck is not present in Ubuntu's repositories. So, install it using pip. We would also need to install build-essentials package in order to build bottleneck:

sudo apt-get install python-pip build-essentials
sudo pip install bottleneck


How can I move all files matching a pattern into a folder?

You are confusing regular expression syntax (as used by grep) with glob patterns (as used by the shell).

In regex, . means any single character, and * means zero or more repetitions. So grep 'NC022.*nii' matches NC022 to nii with anything (including nothing) in between.

In contrast, . is literal in shell globs, while * itself means zero or more characters. So NC022.*nii matches NC022. to nii with anything (including nothing) in between.

In particular, if you are trying to match all files with a .nii extension, the . is in the wrong place: you'd want NC022*.nii i.e.

mv NC022*.nii NC022/


Probably is the windows bootloader installed, you have to replace that one with grub, you can do this with Resc-A-Tux

This is a live cd with a primary goal: Restoring grub/installing grub. It's a nice program which I used after windows just removed my grub without asking, and it worked like a charm.

When you boot it up, a popup pops up. In this popup you can select install/repair grub. Select this, it will ask some stuff, but if you click ok, it will install grub as it is always installed as default.

A small tip: Always install Windows first, since Windows just throws away grub without asking.

  Rescatux features:

  Fixes GRUB and GRUB2

  Regenerates Debian/Ubuntu grub menues

  Check and fix filesystems

  Fixes Windows MBR

  Blank Windows passwords

  Boot Info Script

  Change Gnu/Linux password

  Regenerate sudoers file

  Extra tools:

  Synaptic

  Gparted 0.7


How do I restore the password from another installation?

There is this link for instructions on how to recover a password in linux  http://www.debuntu.org/how-to-recover-root-password-under-linux-with-single-user-mode/


Uploaded a package to PPA but it's not showing and no email from Launchpad

According to Dobey in #launchpad, if you do not get a response via e-mail, the package doesn't show up in your PPA, and everything looks to be okay; then it's likely the GPG key you signed the package with isn't in Launchpad. Add you GPG key to Launchpad and re-upload the package.

If you get the message that the package is already uploaded, delete the *source.ppa.upload file, or add the -f flag to dput.


How to make KDE applications look native in GNOME?

First you need the KDE's "System settings" application by installing  systemsettings
from the Software Center.

Search the dash for System settings and launch it .
Then make the following changes:

under Style → Applications → Widget style, select GTK+
under Colors, select the colours to match your GTK theme or download the Ambiance colour scheme  .
under Icons → Theme, select the icon theme you are using in GTK apps
under Fonts select "Ubuntu", size 11


Webcam Problems Ubuntu 20.04 - DELL G3 3579

The first step would be to get the webcam working in Windows 10. You might find new drivers need to be installed from Dell:

Find a driver for your Dell G3 3579

After drivers have been updated in Windows 10, then you can focus on getting Ubuntu working. The first step though should be to fix your graphics mode setting errors that require you to use nomodeset. One possible cause can be found at:

Is nomodeset still required?


Since I'm too new here to comment and suggest that this is a possible duplicate of another question - you might take a look at this Question and it's answers - looks like a class file is possibly corrupted.  Does Tomcat run fine if you dont try and navigate to your application, e.g. can you get to the admin web pages?  Have a lok at this - hope it helps Tomcat suddenly throwing a ClassFormatError on startup


How to list all pdf files in a directory, sorted in reverse alphabetical order, with bash?

ls accepts -r/--reverse to reverse the order of its output. Since its output is in alphabetical order by default, reversing it should do what you want:

ls -r all_files/*.pdf

That shows the prefix all_files/ on each filename. If you don't want to do that, you can use:

(cd all_files && ls -r -- *.pdf)

The parentheses cause the command to be run in a subshell so that the effect of changing directory to all_files does not persist after the command has run (i.e., you stay where you were afterward). The additional -- argument to ls indicates the end of options, which makes it work even in the weird case where one of the .pdf files has a name that starts with - and that could thus otherwise be interpreted as an option to ls rather than as a filename argument.

If you want to list one filename per line regardless of whether or not ls is outputting to a terminal (and regardless of the width of the terminal), you can pass ls the -1 option as well:

ls -1r all_files/*.pdf

(cd all_files && ls -1r -- *.pdf)

(Passing the -1 and -r options as two separate arguments also works, and they may be passed in either order. That is, -1r, -r1, -1 -r, and -r -1 all work and have the same effect.)

Note that -r/--reverse should not be confused with -R/--recursive, which would list files in all subdirectories too, and in their subdirectories, and so forth. Some programs accept an -r option to mean "recursive," but (at least in Ubuntu) ls -r performs a reverse listing, not a recursive listing. You can write it out as ls --reverse if you prefer. For example:

ls -1 --reverse all_files/*.pdf

Since you have all .pdf files except one file with a .docx extension, ls -r on the directory as shown above should be sufficient. However, in the related situation where there were files named many ways but you only wanted to omit those named ending in .docx, you could use this instead:

ls -r all_files/!(*.docx)

(cd all_files && ls -r -- !(*.docx))

That uses a Bash feature called "extended globbing." This is enabled by default in interactive shells, but not enabled by default in shell scripts. You can check if it is enabled with shopt extglob, enable ("set") it with shopt -s extglob, and disable ("unset") it with shopt -u extglob. You can use a subshell to enable it for just one command, as shown for cd above. With that technique, the above two commands become:

(shopt -s extglob; ls -r all_files/!(*.docx))

(shopt -s extglob; cd all_files && ls -r -- !(*.docx))


I have seen something like that myself during an update. I think an important font is missing, maybe accidently uninstalled by a (bad) dependeency.

So take a look at the installed packages, if there are main font packages missing.

You can use the history log of the package installer in /var/log/apt/.

To list removals which removed a package matching *font*:

zgrep 'Remove: .*font' /var/log/apt/history.*

This lists very long lines, so let's see the first part of lines:
zgrep 'Remove: .*font' /var/log/apt/history.* | cut -c 1-120

Or take a look at the full lines, but highlight the word "font" to find them:
zgrep 'Remove: .*font' /var/log/apt/history.* | grep --color=always font

(To make sure, did you restart the computer? Normally restarting the DM would do, but as you changed that, better reboot)


Go to http://www.mpich.org/downloads/ and click on Xenial for Ubuntu 16.04. This takes you here: https://packages.ubuntu.com/xenial/mpich. Then click on amd64 and you are here: https://packages.ubuntu.com/xenial/amd64/mpich/download. Where it says:

  If you are running Ubuntu, it is strongly suggested to use a package
  manager like aptitude or synaptic to download and install packages,
  instead of doing so manually via this website.

So instead of installing manually, use:

$ sudo apt install mpich
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  cpp-5 g++-5 gcc-5 gcc-5-base gfortran gfortran-5 hwloc-nox libasan2 libatomic1
  libcc1-0 libcilkrts5 libcr-dev libcr0 libgcc-5-dev libgfortran-5-dev libgfortran3
  libgomp1 libhwloc-plugins libhwloc5 libitm1 liblsan0 libmpich-dev libmpich12 libmpx0
  libquadmath0 libstdc++-5-dev libstdc++6 libtsan0 libubsan0
Suggested packages:
  gcc-5-locales g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-5-multilib libgcc1-dbg
  libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg
  libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg gfortran-multilib
  gfortran-doc gfortran-5-multilib gfortran-5-doc libgfortran3-dbg blcr-dkms
  libhwloc-contrib-plugins libstdc++-5-doc blcr-util mpich-doc
The following NEW packages will be installed:
  gfortran gfortran-5 hwloc-nox libcr-dev libcr0 libgfortran-5-dev libhwloc-plugins
  libhwloc5 libmpich-dev libmpich12 mpich
The following packages will be upgraded:
  cpp-5 g++-5 gcc-5 gcc-5-base libasan2 libatomic1 libcc1-0 libcilkrts5 libgcc-5-dev
  libgfortran3 libgomp1 libitm1 liblsan0 libmpx0 libquadmath0 libstdc++-5-dev libstdc++6
  libtsan0 libubsan0
19 upgraded, 11 newly installed, 0 to remove and 213 not upgraded.
Need to get 41.0 MB of archives.
After this operation, 39.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]

At this point click y to install the package.

There is no need to compile from source like you were attempting to do.


Yes, it does look like a typical MBR error message.  I ended up with a similar situation, although I was able to reinstall grub from a liveCD and then boot into Ubuntu well enough.  (I don't know if your boot repair program reinstalls grub; if not, I'll post the instructions below.  I can't take credit for them, but I don't know any longer where I got them.) I was never able to get Windows working again and in the end I had to remove it; I hope your situation can come out better.  But, once I could boot into Ubuntu, at least, I was able to access my Windows partition and remove everything of value from it before I deleted the partition.

This is a quick and simple method of restoring a broken system's GRUB 2 files. The terminal is used for entering commands and the user must know the device name/partition of the installed system (sda1, sdb5, etc). The problem partition is located and mounted from the LiveCD. The files are then copied from the LiveCD libraries to the proper locations and MBR. It requires the least steps and fewer command line entries than the following methods. If for example Windows is on sda1 and Ubuntu is on sda5, and Windows has overwritten the MBR, then the target for grub installation will be /dev/sda5, and the MBR in the boot sector of sda will be re written for grub.

This operation will write to the MBR and restore the modules and core.img to /boot/grub. It will not replace or restore grub.cfg or fix corrupted files.

Boot the LiveCD Desktop.

Open a terminal by selecting Applications, Accessories, Terminal from the menu bar.

Determine the partition with the Ubuntu installation. The fdisk option "-l" is a lowercase "L".

    sudo fdisk -l

    If the user isn't sure of the partition, look for one of the appropriate size or formatting.

    Running sudo blkid may provide more information to help locate the proper partition, especially if the partitions are labeled. The device/drive is designated by sdX, with X being the device designation. sda is the first device, sdb is the second, etc. For most users the MBR will be installed to sda, the first drive on their system. The partition is designated by the Y. The first partition is 1, the second is 2. Note the devices and partitions are counted differently.
Mount the partition containing the Ubuntu installation.

sudo mount /dev/sdXY /mnt

Example: sudo mount /dev/sda1 Note: If the user has a separate /boot partition, this must be mounted to /mnt/boot Note: If the user has a separate /home partition, this must be mounted to /mnt/home. Encrypted home partitions should work.

Run the grub-install command as described below. This will reinstall the GRUB 2 files on the mounted partition to the proper location and to the MBR of the designated device.

sudo grub-install --root-directory=/mnt /dev/sdX

Example: sudo grub-install --root-directory=/mnt /dev/sda

In Grub 1.99, introduced with Ubuntu 11.04, Natty Narwhal, a new switch is available which more clearly defines where the grub folder is placed. The command above will still work with Grub 1.99, but the following command is preferred by the developers. The target directory in the command is the command into which the grub folder will be installed. By default, and without the switch, the location is /boot/grub. In these instructions, since the Ubuntu partition is mounted on /mnt, the target would be /mnt/boot/grub.

sudo grub-install --boot-directory=/mnt/boot /dev/sdX

Example: sudo grub-install --boot-directory=/mnt/boot/ /dev/sda

Reboot

Refresh the GRUB 2 menu with sudo update-grub


Ubuntu 14.04 cannot shutdown after kernel update

Do you have Intel CPU's? If so, start Synaptic from the dash, and install intel-microcode and linux-firmware.

start Synaptic from the dash
click the RELOAD icon
enter one filename into the search box
when the filename appears in the results pane, select it for install
click the APPLY button
repeat for the second filename

Let us know if that solves your problem.

Cheers, Al


How can I stop workspaces from switching automatically to other workspaces when selecting different applications?

Actually the easy answer would be to middle click on the app icon in the Unity launcher to launch another instance of the application if it's already opened in whatever virtual desktop you find yourself in.


ofono enable-modem fails with dbus.exceptions.DBusException: org.ofono.Error.Failed: Operation failed

The problem was that I didn't leave phonesim running, which is why enable-modem was complaining.
So the command
ofono-phonesim -p 12345 /usr/share/phonesim/default.xml

needs to be left running before running enable-modem. See my answer here on how to automate this: https://askubuntu.com/a/1278587/119592


Ubuntu 14.04 UEFI won't boot after upgrade from 13.10

I recommend you try my rEFInd boot manager. (It looks like you may have tried it at some point in the past but I see no evidence that it's currently installed.) Use the CD-R or USB flash drive version from the rEFInd downloads page for testing. If that doesn't work, you'll have done no more harm and you can move on to some other approach; but if it does work to boot both Linux and Windows, you can install the Debian package (either single-shot using the package from the downloads page or by using the PPA referenced at the bottom of the downloads page).


Broadcom BCM4352 Bluetooth lists MAC addresses and doesn't connect properly (WiFi fine)

You need firmware for this Bluetooth device. Here is how to get it and convert for Linux:

Download this Windows driver. http://drivers.softpedia.com/get/BLUETOOTH/Broadcom/ASUS-X99-DELUXE-Broadcom-Bluetooth-Driver-6515800-12009860.shtml#download
Extract Bluetooth_Win7-8-8-1_V6515800_12009860 from the archive.
Under Win8_Win81 -> Win64 directory you'll find BCM20702A1_001.002.014.1443.1469.hex file.
Convert it to BCM20702A1-0b05-17cf.hcd as mentioned here using hex2hcd:

Bluetooth Broadcom 43142 isn't working

Copy it to /lib/firmware/brcm

You can try to find an already converted file in some githubs.

For example this one has it.


1GB RAM?

There's your problem. Android studio requires at least 2GB RAM.

Also the Intel GMA graphics are terrible.


I want to Install Wine without an internet connetion?

Open a Terminal by pressing CTRL+ALT+T and type:

sudo apt-get -qq --print-uris install wine | cut -d\' -f 2 > urls.txt

copy the urls.txt to a thumbdrive and move over to a computer with Internet Access. Download all files from urls.txt (if the other computer is running Linux you can use wget < urls.txt) and save them in a folder called deb on your thumbdrive.

Go back to your Ubuntu machine, plug in the thumbdrive and open a Terminal

sudo cp /media/YOUR_USERNAME/THUMBDRIVE_NAME/deb/* /var/cache/apt/archives/
sudo apt-get install wine


linssid only displaying an empty form (version 2.9)

You can google for linssid version 3.6, download the debian package and install it...
... but my opinion is, that the official offered package should be of a version that works well.


To install keras using command line :
  pip3 install keras

To install tensorflow using command line :
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl


/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg

Or:

haproxy -f /etc/haproxy/haproxy.cfg


LibreOffice Calc - Background Fill Options All White

Try to reset the user profile!

How to reset LibreOffice user Profile?

Make sure LibreOffice is closed.
Open your home directory and Hit Ctrl+H to show the hidden files and folders.
Now navigate to /.config/libreoffice/3/user/
Rename "registrymodifications.xcu" to "registrymodifications.xcu.old".
Now start LibreOffice (Any application e.g LibreOffice Calc).
LibreOffice will automatically create a new user profile.

In case you want to restore the old user profile, Just delete the newly created "registrymodifications.xcu" and rename "registrymodifications.xcu.old" to "registrymodifications.xcu"


How do I change the window titles (as used by wmctrl)

Use the xttitle program from the xttitle package. Note the TWO "t"s in xttitle. Well, actually, there are 3 "t"s... but I've only had trouble mistyping the first two.

Here's an example from my ~/.bashrc, in which I override the cd builtin, and use xttitle to put the current directory in my window title:

# from the "xttitle(1)" man page - put info in window title
update_title()
{
    [[ $TERM = xterm ]] || [[ $TERM = xterm-color ]]  && xttitle "[$$] ${USER}@${HOSTNAME}:$PWD"
}

cd()
{
    [[ -z "$*" ]] && builtin cd $HOME
    [[ -n "$*" ]] && builtin cd "$*"
    update_title
}


try to remove preload with:

sudo apt-get purge preload

check if the /var/lib/preload/preload.state file is still there. If so remove it:

sudo rm /var/lib/preload/preload.state

then reinstall

sudo apt-get install preload


FGLRX (Catalyst 11.6) is it compatible with kernel 2.6.39?

There is a blog entry here which states that you have to patch the new catalyst driver to make it work with 2.6.39

Full instructions can be found in that blog together with links to the source code which need to be used to patch.

EDIT: Since the original question was for Catalyst 11.5, the question has been revised for Catalyst 11.6

This forum entry gives instructions on how to compile the patches for this new catalyst version - To complete the answer, I've reproduced the answer - note - this is for 64bit - if you are using 32bit, you'll need to change the entries for "x86_64" for the 32bit equivalents.  Also you will not need to install the ia32-libs library:

sudo apt-get install -y build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases
sudo apt-get install -y ia32-libs
cd ~; mkdir catalyst11.6; cd catalyst11.6
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-6-x86.x86_64.run
wget http://www.mindwerks.net/wp-content/uploads/2011/03/2.6.39_bkl.patch
wget http://www.mindwerks.net/wp-content/uploads/2011/03/no_bkl.patch
chmod +x ati-driver-installer-11-6-x86.x86_64.run
sh ./ati-driver-installer-11-6-x86.x86_64.run --extract ati
cd ati; for i in ../*.patch; do patch -p1 < $i; done
./ati-installer.sh 8.861 --buildpkg Ubuntu/natty
cd ..
rm -rf ati
sudo dpkg -i fglrx*.deb
sudo reboot


What is the easiest way to check if my camera & sound is working properly with Google Hangouts?

There are some online services which provide audio recording and playback, and they just work fine. However we can never know if they store our audios. I have used this one :

https://online-voice-recorder.com/

and for camera

https://www.onlinemictest.com/webcam-test/

NOTE : I'm not affilated in any means to these site, so use at your risk.

PS - Why don't you just record a video from your device using Cheesebooth?


Edit the file /etc/network/interfaces and add these lines:

# The primary network interface
auto ens33
iface ens33 inet dhcp

ens33 is the logical name of the NIC and may be different for other operating systems.

Don't change anything of the loopback interface.

Save the file and run sudo ifup ens33.


sudo apt-get check gives me the following error

Apparently, there are some mixed permissions and directories into the /var/lib/apt/lists/ removing them and recreating should fix the issue:

sudo rm -rf /var/lib/apt/lists/
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get update

First command should nuke away the directory, second recreate the partial directory, third populate the lists files.


Configure installation of dependency package in custom apt-get

Edit debian/control file and add mono-runtime to depends field:

Depends: mono-runtime

Reference: http://packaging.ubuntu.com/html/debian-dir-overview.html#the-control-file


can't install i386 packages on Ubuntu 18.04

First remove the disturbing file

sudo rm /etc/dpkg/dpkg.cfg.d/multiarch

Then you can add it with

sudo dpkg --add-architecture i386


Where to report a bug/feature for the Today scope of Ubuntu Touch?

I'm using the "Feedback" app:

https://appstore.bhdouglass.com/app/com.ubuntu.developer.nskaggs.feedback

You can find, and install it, from App Store.

BR.


Restore file and directory pointers after delete

In the end, after days of trying different approaches, the Reclaime.com solution worked fantastic. It allowed me to see all of the folders I originally deleted and just select those folders to restore. Plus it also knew the original file names! Restored, like the delete never happened.

I tried many solutions...TestDisk, PhotoRec, Home NAS Recovery, Easus, iCare Data Recovery, DiskInternals. None were able to view my old directory structure and file names. They all, IIRC, were able to do scans and find all files on the disk, but them name them to something like f1003940404.mp4. But that was not the desired outcome. These disks have 2 TB of data on them, I am only concerned with the known folders I deleted. And they were organized by date, so I didn't want to have to go through all the restored f21130054.... named files to reorganize them. Yes, I tried tools like exiftool, which was helpful, but many files restored didn't have the necessary exif data to be able to rename files by date created.


Ubuntu 16.04.1 LTS with kernel 4.4.0-34 does not boot after upgrading

Try this:

Switch on your computer.
Wait until the Bios has finished loading.
Press and hold the Shift key.
Will bring up the Grub menu.
Select the line which starts with: Advanced options.
Select the line ending with: recovery mode
Press Enter and your machine will begin the boot process.
Your PC should display a menu with a number of options.
One of the options will be: Drop to root shell prompt.
Press Enter with this option highlighted.

In the terminal run the commands:

mount -o remount,rw /
mount --all
rm -rf /var/log/journal
rm -rf /run/log/journal
systemctl mask nfs-blkmap.service
apt-cache policy systemd-sysv
apt-get install --reinstall systemd-sysv
update-mime-database /usr/share/mime
apt-get remove chemical-mime-data
dpkg --configure -a
apt-get -f install
apt-get update
apt-get dist-upgrade
apt-get autoremove
apt-get install --reinstall ubuntu-desktop
update-grub
apt-get clean
reboot


USB mouse and keyboard is not being recognized

Technically, running a hard drive, keyboard and mouse should all be possible. However with the root file system on the USB hard drive it is conceivable that there is to much traffic across the bus and the mouse and keyboard are not being detected properly. Usually this happens when running silly-massive amounts of data like 4 printers and 6 web cams. The hard drive should not be transferring that much, but it is possible.

All that said, you are in should work land so...

Make sure your using a powered USB hub (not direct to computer, or unpowered hub). A hard drive can require a lot of power, specially if it's the kind that draws it's power from usb.
Try to use different "controllers" for the hard drive and the input devices. On a laptop that can be kind of tricky, and you really just need to move the connections around.
Unplug the mouse, then run tail -f /var/log/syslog plug the mouse in, watch for errors. If nothing happens at all, you likely have a hardware issue (either real, or you just have "too much" happening on that bus and the BIOS isn't passing up events/data.) If something does show up you should get a error message that tells you why it isn't working.
Try running lsusb and see if your devices are listed. If they are they should be working, if not, then you have a kernel (or hardware) level problem.
Try a live CD. Do they work there? If so, your down to your configuration, if not, then your back to hardware or unsupported devices.


Basically, the boot process goes through the BIOS > Master Boot Record (MBR) > GRUB > kernel > init > run level. These two articles explain briefly and in detail:

6 Stages of Linux Boot Process
Inside the Linux Boot Process


Open a terminal and enter:

gsettings get com.canonical.Unity.Launcher favorites

The command would output the items currently in the launcher like this:

['ubiquity-gtkui.desktop', 'nautilus-home.desktop', 'libreoffice-calc.desktop', 'gnome-control-center.desktop']

Now if you want to remove libreoffice-calc, exclude it's .desktop entry and set the new favourite string as:

gsettings set com.canonical.Unity.Launcher favorites "['ubiquity-gtkui.desktop', 'nautilus-home.desktop', 'gnome-control-center.desktop']"

(take care of the separators and quotes.)

To delete the .desktop file in /usr/share/applications use:

sudo rm /usr/share/applications/libreoffice-calc.desktop


This happens because there is a directory higher in the tree where you do not have execute permission. If a parent directory has no execute permission for some user, then that user cannot stat any subdirectories regardless of the permissions on those subdirectories.

Example:

$ ls -l cake
drwxr-xr-x 2 zanna zanna 4096 Jul 12 11:43 brownies
$ chmod 666 cake
$ ls -l cake/brownies
ls: cannot access 'cake/brownies': Permission Denied

Even though I am the owner of the directory 'brownies' and all users have permission to read and enter it, I can't access it if its parent directory has no execute permission.

It's better to use groups to manage permissions than give to give directories 777 permission. Are you sure you need to do that?

How to fix the problem in a more secure way:

Let's assume on /var/opt/gitlab directory you have something like this:

drwxr-x--- 5 git git 4096 aug 14 17:30 gitlab

Add yourself and all the other users who need permission to the git group, for example:

sudo usermod -a -G john git

Users have to log out and back in for this to take effect. Even if write permission is needed on a subdirectory, you don't need to add it on a parent directory, by the way, so you don't have to use chmod at all. You might want to change your subdirectory permissions to prevent anyone from being able to write to it:

chmod 775 /var/opt/gitlab/git-data/repositories/GL/www.git/custom_hooks

or

chmod o-w /var/opt/gitlab/git-data/repositories/GL/www.git/custom_hooks


You could try switching to my-weather-indicator from ppa:atareao/atareao to cover the same functionality. I'd found them both to be flaky, but a few updates later, my-weather-indicator seems to be much better.


How do I get an SD card reader to work in Ubuntu 13.04?

I tested ubuntu 13.10 on clevo w310CZ, with similar realtek's chipset (no 5289 but 5286)
sd card no mount too

and no one kernel module load

$ sudo lspci -v -s 03:00.0
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5286 (rev 01)  Subsystem: CLEVO/KAPOK Computer Device 3110
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at f7400000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] ExpressEndpoint, MSI 00
Capabilities: [b0] MSI-X: Enable- Count=1 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 00-00-00-01-00-4c-e0-00

I've tried to fix this bug :Realtek Card Reader RTL8411 Device 5289 (PCI 03:00.0) Driver and udisks Rule.

worked on Ubuntu 12.04 but doesn't on 13.10

I posted a new Bug here 10ec:5286 [Clevo W310CZ] Realtek Card Reader not working.


Display is wrong at startup until I click on "display" then it's fine? -dual montors Unity 2D

I have had this problem and solved it by editing the monitors.xml file in your .config folder (Ubuntu 11.10 dual monitor set up instructions)

These are the steps you should try:

Open up a terminal (ctrl+alt+t)
Go to your config folder (cd ~/.config)
Open up your file for editing (gedit monitors.xml)
Ensure that <primary>yes</primary> is on the correct output/monitor (and <primary>no</primary> is on the other)
Ensure that <clone>no</clone> is included on the third line

This may not affect the log in screen though as LightDM has its own monitor settings (annoyingly). Hopefully this works for you


Change this:
foldername='$(date +'%Y%m%d')'

To this:
foldername="$(date +'%Y%m%d')"


What is the login password to unlock Keyring Authorization in 20.04?

Thank you crip659 for the prompt. I returned to the Users configuration to check on the status of automatic login. (I had not opted in for it...I am often wrong...) I was asked to supply password twice, once for the "Authentication Required" message and the other for the user account. This seems to have resolved.


Unable to install icaclient ("Errors were encountered while processing")

IMHO icaclient isn't installed properly. If it doesn't break any dependency, try to uninstall it first with aptitude remove icaclient:i386. Also always force yourself to use aptitude instead of apt-get. It's way more "smart".


Is full-disk encryption making my system unstable?

My apologies for posting this as an answer, but comments would not get the attention this needs.  It is my considered opinion, that your drive is in imminent danger of failing.

Please make a full system backup right now.

If you don't know how to make a system backup, please refer to this question.  You're user type 4. If you need any further help on making a system backup, leave a comment below this answer.

What???  You're still here?  Go away and make the system back-up first! (Disk-to-image)

Then, boot from a LiveCD and issue the following command:

sudo apt-get install smartmontools

Then:

sudo smartctl --scan

and for all /dev/?d? lines below that:

sudo smartctl --info /dev/?d?

until you see: Device Model: INTEL SSDSC2BW240A3 and verify that:

SMART support is: Available - device has SMART capability.
SMART support is: Enabled

and from now on, wherever you see sda, replace that with your own ?d? (sda is the most common, so yours will probably be this too)

Run:

sudo smartctl --all /dev/sda

and post the output of that to http://paste.ubuntu.com and provide a link to the ouput back here.  Then:

sudo smartctl --test=short /dev/sda

and post the output of that (by doing another sudo smartctl --all /dev/sda) to http://paste.ubuntu.com too and provide that link to its output back here too.

Hopefully I'm wrong and I can delete this answer safely and we can get back to encryption.


It does not appear possible to get Kile (or any KDE app) to behave the way that you want.

Gtk apps, such as Gedit, do behave the way you want. The keyboard shortcuts change according to the selected keyboard. They work this way whether under Unity or KDE.

KDE apps, in contrast, do not change the keyboard shortcuts when you change the keyboard layout. Rather, they will keep the shortcuts aligned with the system language setting. They work this way whether under KDE or Unity. I could not find any setting or configuration method in KDE to change this behavior.


Caldav (and carddav) compatible client with support for TLS Client certificate authentication

In the meantime, it seams that Thunderbird supports TLS Client certificates without the SoGo connector. I can not identify when this functionality was added. (It might also be relevant that we now use a third party CA Authority).

The certificates are inserted in preferences --> Advanced --> Certificates --> Manage Certificates as shown in the following two pics:

and here:

For CalDAV I additionally had to install the Cardbook add-on.


GRUB error (2) while booting Ubuntu 12.04

Boot from LiveCD and from a terminal run 'grub-install /dev/hda' command and then boot from the hard disk. The command will do a fresh install of grub on your hard disk and overwrite any previous versions of grub. Hopefully this will fix it.