Missing Python in LibreOffice organize macros menu

I was experiencing the same problem and have solved it by installing libreoffice-script-provider-python:

sudo apt-get install libreoffice-script-provider-python

Hope it helps.

Update: in order to get your scripts listed in the macro dialog, you should put them in a folder called: ~/.config/libreoffice/4/user/Scripts/python, as pointed out by @Mark in the comments.


I've figured out the solution, this answer helped me https://askubuntu.com/a/461978/104548.

basically what you need to do is run this

sudo apt-get update && apt-get install fglrx fglrx-pxpress

and reboot.


Is it possible to setup LVM with the ubuntu 20.04 graphical installer?

When you're in the desktop installer of a Live USB or Live DVD version of Ubuntu 20.04, progress to the Installation Type screen.

Select Erase Disk and Install Ubuntu
Click on the Advanced features button
Choose the second option, Use LVM with the new Ubuntu installation
Choose the optional checkbox option, Encrypt the new Ubuntu installation for security

You now have an LVM-encrypted install of Ubuntu 20.04.


Xubuntu (14.10) installation on asus x205ta - problem after installation

I solved the problem

I created a 14.10 hotkey, and I copied a bootia32.efi file in the EFI/BOOT directory.
After the installation was complete, I could only access the Grub menu. I hit c, and marked in the command line (autocompleted by hitting tab, so I do not remember the exact versions):

linux (hd1,gpt2)/boot/vmlinuz-3.16-24-generic root=/dev/mmcblk0p2 reboot=force,pci
initrd (hd1,gpt2)/boot/initrd.img-3.16-24-generic
boot

To fix wireless issues: kernel must be upgraded to version 4.00 at least, so I manually downloaded the new kernel images and installed them (there are three files)
Reboot and prompt in the grub edit menu the same code as in 2., but with the new kernel's name. The wireless works perfect with kernel 4.0 (I had solve the problem with the WiFi card before installing grub, because my USB WiFi adapter - NeatGear WNA1000M - wasn't recognized).
After that, I followed this guide from the grub installation
Qouting it...

  After the OS boots open a terminal and type sudo bash then type the following:

  Install deps for task (type the line below and hit Enter):

apt-get install git bison libopts25 libselinux1-dev autogen m4 autoconf help2man libopts25-dev flex libfont-freetype-perl automake autotools-dev libfreetype6-dev texinfo

  Clone repo (type the line below and hit Enter):

git clone git://git.savannah.gnu.org/grub.git

  Compile (type the line below and hit Enter):

cd grub
/autogen.sh
./configure --with-platform=efi --target=i386 --program-prefix=""
make
cd grub-core
mkdir -p /usr/local/share/locale
../grub-install -d . --efi-directory /boot/efi/ --target=i386
cd /boot/efi/EFI
cp grub/grubia32.efi ubuntu

  And then reboot, and that's it. Good luck!

  Installation of drivers for Edimax (EW-7811Un RTL8188CUS)

  First finish other configurations desired (ie apt-get update/upgrade, etc).

sudo apt-get install linux-headers-generic build-essential dkms git
git clone https://github.com/pvaret/rtl8192cu-fixes.git
sudo dkms add ./rtl8192cu-fixes
sudo dkms install 8192cu/1.9
sudo depmod -a

  edit /etc/modprobe.d/blacklist.conf and add the following at the bottom of the file:

blacklist rtl8192cu
blacklist rtl8192c_common
blacklist rtlwifi

Battery monitor is available with the 4.0 kernel, however, the sound card is not recognized yet unfortunately... And Bluetooth does not work, either.
If anyone has a suggestion to fix this issue, I will be very grateful!


Lubuntu not displaying native resolution?

I had similar issues connecting to a TV although mine was 1368x768, so my exact answer won't apply.  But you may be able to use the same method.

You can try to add a "mode" by opening a terminal and typing cvt 1920 1080 60 (if 1920 x 1080 is the resolution you want, otherwise change the numbers). This will generate a line of data that you need for the next commands.  Copy all the line of data except for the word Modeline, and type the command

xrandr --newmode ****  where *** is the data that you copied

For the next command you need to know your display output name. It's probably VGA1, but make sure by typing xrandr by itself. Now type the command

xrandr --addmode *** XXXX where *** is your display name and XXXX is the first part of the data line, the part in quotes.  Mine was 1368x768_60.00

Finally try switching to the new output by typing

xrandr --output *** --mode XXXX where the fields mean the same thing as in the previous command.

If this all works, there is a way to automate it at login.  Post a comment and I'll add that to the answer if you get this far.

Edit: my exact commands, to use as an example are:

xrandr --newmode "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync
xrandr --addmode VGA1 1368x768_60.00
xrandr --output VGA1 --mode 1368x768_60.00

Edit 2: Assuming the output is VGA1, your commands could look like

xrandr --newmode "1280x720_60.00" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync
xrandr --addmode VGA1 1280x720_60.00
xrandr --output VGA1 --mode 1280x720_60.00


New Ubuntu install, only see's 1 core of my dual core CPU

It sounds like your VM has been configured to provide a single virtual core given that dmesg output.

The following documentation might help you in reconfiguring your VM to provide multiple cores:

https://www.virtualbox.org/manual/ch03.html#settings-processor


Can Windows filesystem files show different size after being copied on a linux filesystem?

Yes, the discrepancy could be due to block size and other file system overhead. Linux (EXT) uses less fragmentation overhead, and a more compact disk structure so most of the times it will result in smaller files.

The easiest tool to compare files is diff if all you want to know if a file is the same.

diff file1 file2

It will tell you if files are identical and show nothing when there is no difference.

Example:

rinzwind@schijfwereld:~$ more 1
1
rinzwind@schijfwereld:~$ more 2
1
rinzwind@schijfwereld:~$ diff 1 2

and

rinzwind@schijfwereld:~$ more 1
1
rinzwind@schijfwereld:~$ more 2
2
rinzwind@schijfwereld:~$ diff 1 2
1c1
< 1
---
> 2

You can also let diff compare directories.

diff ~directory1 ~directory2

Without any option, diffing 2 directories will tell you which files only exist in 1 directory and not the other, and which are common files. Files that are common in both directories are diffed to see if and how the file contents differ. If you also want to search into subdirectories add the -r option.

Basically this should not show any differences if a copy was done correctly.


StartUp Disk Creator always crash at the end of process

First of all make sure that the downloaded ISO is OK.  Do an MD5SUM on it to verify.  Make sure that you USB drive is formtted with fat 32.  Then try using a different program to create you USB.

Some of the programs that you can use to create your USB UNetbootin or Live USB Creator.  If you're running windows, you can use Yumi


How do I replace "fancy" unicode chars with their ascii equivalends?

You can use iconv

NAME
       iconv - Convert encoding of given files from one encoding to another

SYNOPSIS
       iconv -f encoding [-t encoding] [inputfile]...

e.g.

$ echo "some ‘fancy’ chars" | iconv -f utf-8 -t ascii//translit
some 'fancy' chars


I have done some more investigation. Looks like KDE clock will depend on /etc/localtime. Mine was incorrectly set (it was a symlink to "../posix/Europe/Rome" which does not exist).

To solve, I first went to KDE clock (right click on the clock applet - adjust date and time - timezones tab, and selected Europe/Rome).

Then I launched sudo dpkg-reconfigure tzdata and configured it again. It outputted this:

Current default time zone: 'Europe/Rome'
Local time is now:      Fri Mar 15 10:36:52 CET 2013.
Universal Time is now:  Fri Mar 15 09:36:52 UTC 2013.

Finally I went to Digital clock settings (right click on the clock applet) and selected Rome, then set "Clock defaults to": Local.

Now everhting seems correct...

You can also set the clock to precisely match a remote NTP server, like this:

sudo rdate time.ien.it

Note: be sure to update tzdata package.


Kubuntu 18.04 - Application Launcher - Not opening when apps are open on the desktop

Had the same issue. Seems to be caused by Window Focus Behavior. This can be searched for or found in Window Behavior in System Settings for KDE. Lowering or disabling the setting for "Focus Stealing Prevention" seems to solve the issue.


compile

A simple guide:

sudo apt-get install build-essential pkg-config
wget https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
./configure
make -j4 examples

This will compile all of the examples in-tree using the source code from the current git master branch and may be less error prone than using gcc.
The compile and make commands will take several minutes to complete.
For more info see doc/examples/README.
As doug mentioned the example in question is named encode_video.c.

encoder name

The codec name is mpeg4 (no hyphen). See ffmpeg -encoders for a list of encoder names supported by your particular build.


Not much in the way of personalisation can be done yet, but if you wish you can get rid of the inbuilt contacts.


During installation of ubuntu you will be asked to do a full hard drive wipe OR create a new partition along the current
operating system.


Do I have to check "Enable Bookmark Sync" on both machines running 11.04?

If you don't enable bookmark sync on a machine, then it will only use the local bookmark store.

So if you want to share bookmarks between two systems, both must enable bookmark synchronisation.  Unfortunately, I don't think any of the Firefox bookmark synchronisation systems support one-way synchronisation, so this will give you two way sync.


The installation of the NVIDIA display driver 340 fails in Kubuntu 20.10

First you should know that NVIDIA supports different graphic driver packages for different GPUs.
NVIDA ended the support of their Linux legacy drivers earlier this year; specifically with the NVIDIA display driver 340 the last supported Linux kernel is 5.4; newer kernels are not supported.
Kubuntu 20.10 ships with Linux 5.8, which is not supported by the latest NVIDIA display driver 340.108. On the other hand Kubuntu 20.04 has long term support until April 2023 and will continue to work with the NVIDIA display driver (provided you don't make use of the newer kernel which comes as part of the LTS Enablement Stacks).
Some third parties are trying to patch the NVIDIA display driver 340 to make it work with newer versions of Linux according to this Launchpad ticket. But keeping up with the new Linux version is not trivial (other distributions already decided against it) and the maintenance of a proprietary driver in a GPL context raises some legal issues.
Alternatively one can remove the proprietary driver (sudo apt-get autoremove --purge nvidia-340) and use the built-in driver of the kernel instead (nouveau). My experience is that the 3D and even the 2D acceleration suffer a lot after switching from the proprietary driver to the open source driver. This would be fine with a more powerful GPU but since my GPU is very old and slow I decided to retire it and to replace it with a newer model which comes with recent drivers.


What is the purpose of OpenVPN's /etc/openvpn/{client,server} directories?

In v2.4 they introduced new systemd service profiles tailored for client resp. server applications.

  As of OpenVPN v2.4, upstream is shipping systemd unit files to provide
  a fine grained control of each OpenVPN configuration as well as trying
  to restrict the capabilities the OpenVPN process have on a system.

  These new unit files separates between client and server profiles.
  The configuration files are kept in separate directories, to provide
  clarity of the profile they run under.

  Typically the client profile cannot bind to any ports below port 1024
  and the client configuration is always started with --nobind.

source

It remains backward compatible, i.e. you can still store your .conf file in /etc/openvpn.

If your configuration is in  /etc/openvpn/MyVpn.conf,
use systemctl start openvpn@MyVpn to start the service
If your configuration is in /etc/openvpn/client/MyVpn.conf,
use systemctl start openvpn-client@MyVpn to start the service
If your configuration is in /etc/openvpn/server/MyVpn.conf,
use systemctl start openvpn-server@MyVpn to start the service


Errors while trying to install applications

I tried removing the packages manually as suggested in the comments

I removed from /var/lib/dpkg/info/ every file that was mentioned at the end of the error log.

Now, I have managed to install a few  applications without any errors. So far it seems to be working fine, hopefully it won't happen again. Thanks for your help!

Edit: After I tried to boot again some time later, I get an error saying that a file from /boot is missing - I give up, I'll just reinstall ubuntu


I think that this is what you are looking for ?


How to list the source URLs from saved html files from a folder?

Run the following command in a directory holding html files.

for f in *.html; do echo $(cat "$f" | sed -n '2p' | grep -o 'http://.*\.html') $(stat -c %y "$f");  done > References.tx

Script:

#!/usr/bin/bash

ref_file='References.txt';
> "$ref_file";

for html in *.html
do
    mtime=$(stat -c %y "$html")
    address=$(cat "$html" | sed -n '2p' | grep -o 'http://.*\.html')
    echo "$address $mtime" >> $ref_file;
done


Nautilus cannot write into 1st directory of a NFS share

It is not merely a bug in Nautilus.  I use nemo as my regular file manager and it exhibit the same behavior.

When I use PCManFM, it works.

PCManFM uses a different type of graphic library. I suspect the problem is more on the gnome side.


The original poster, Graubart, was able to solve their own problem. The Ubuntu system was being chrooted into from another, non-Ubuntu system. But the dpkg command was accidentally being issued outside of the chroot. By chrooting into the filesystem in which Ubuntu was installed, Graubart was able to run dpkg with no problems.

  Okay, I discovered why I couldn't find dpkg--it's in chroot, and I was
  in chronos@localhost. Switched to chroot, and there it was! Typical
  greenhorn error, I suppose.

– Graubart Apr 24 '14 at 3:18


How can I get Unity to show the menu icons in Inkscape?

This is a long running bug for which there are workarounds (see comments #29 and #30 in the bug).


If you downloaded the apache version from their website you downloaded a "tar.gz" file and extracted it into your system. Ubuntu Software Center will know nothing about your installation so apt-get is not the correct method.

Uninstalling it is equal to removing the directory you extracted it into. So open a terminal, navigate to the directory you extracted it into and remove the directory "hbase-0.94.20/".

Let us assume you extracted the software in "Downloads" in your "Home". Open a terminal with Ctrl+Alt+T

cd ~/Downloads
rm -rf hbase-0.94.20/
exit


The focus-stealing behavior of Cinnamon seems to be a matter of some debate. See the Cinnamon bug tracker:

Issue #1727: https://github.com/linuxmint/Cinnamon/issues/1727
Issue #2445: https://github.com/linuxmint/Cinnamon/issues/2445
Issue #2640: https://github.com/linuxmint/Cinnamon/issues/2640

At the moment there does not seem to be a solution in vanilla Cinnamon. :)

However, you may want to use the hack proposed by user ac000 in issue #1727:

Comment out the line

window.activate(global.get_current_time());

in the function

_onWindowDemandsAttention : function(display, window)

in the file /usr/share/cinnamon/js/ui/windowAttentionHandler.js. Note however, that this will prevent any windows from stealing focus when they require your attention. Also, this file will get overwritten each time you upgrade Cinnamon, so you may have to re-apply the hack every so often.


Install Ubuntu on windows 8 HDD / SSD system

First:

  I don't have enough space to make a backup of my files.

Correct this problem! I've seen too many people who post here or elsewhere with sob stories about how they've lost all their data because they tried X, Y, or Z and it had unintended consequences, or because their hardware failed. These things do happen, and by and large, they happen suddenly and unpredictably. So keep backups!

That said, you can certainly install Ubuntu on the SSD, either instead of or in addition to Windows, and retain access to files on your 1TB disk. (Under Linux, the designations "C: drive" and "D: drive" are meaningless. Even under Windows, these terms refer to filesystems, which don't necessarily correspond with physical disks in a 1:1 manner.)

If you intend to replace Windows, though, I strongly recommend converting your data disk from NTFS (which it probably uses now) to a Linux-native filesystem. This action will require either a multi-stage process of moving file and resizing partitions or a backup-and-restore operation. As resizing partitions is particularly risky, a backup is highly recommended for the former procedure, at which point you might as well just do a backup-and-restore. Anyhow, although Linux can read and write NTFS, performance will suffer, the disk will lack Linux filesystem features you might need, and Linux lacks any sort of NTFS repair tools. Thus my recommendation to switch from NTFS to a Linux-native filesystem. If Windows will remain on the computer, though, the last of these issues becomes much less important under Linux, and the first two issues favor NTFS under Windows. In a Linux/Windows multi-boot scenario, FAT is the most compatible filesystem; but it's got file-size limits that make it impractical for many purposes. NTFS is the second-best choice (or the best choice if FAT's file-size limits are a serious problem).


Actually you can't. In the Preferences window you can only disable/enable the visual notifications. If you don't like/want the message to be revealed to everyone looks at your desktop, you can disable the visual notifications and pay attention only to the Indicator Message (the envelope  on the top panel).


Did you use manual or automatic partitioning? Sometimes, manual-defined partition causes conflict with Secure Boot, because not all needed partitions to avoid conflicts are created.


You may have a bad DNS (Domain Name Service). It's used to look up the numbers that your computer needs to connect to websites.

Go to your network settings. Edit the connection you use for Internet. Under "IPv4 Settings" tab, change the "Method:" scroll down to "Automatic (DHCP) addresses only". Then in the box labeled "DNS servers:" put in 8.8.8.8,8.8.4.4

This will set your computer to use Google's public DNS which is a fast and reliable DNS.


How can I view Ms-Office 2007 built-in help on Ubuntu 12?

Problem solved. I needed to install Internet Explorer 8. I think this was the dependency that needed to be fixed.

 Use winetrick's own built-in installation feature to install IE8


1) reboot computer and spam the 'SHIFT' button until you see GRUB bootloader
you will see:
2) advanced options -> recovery mode generic
3) boot into recovery mode
4) run fsck from there and pkg repair.
5) continue normal boot from the same menu
see if that helps


Different toolbar icons depending on active tab

You could use the parameter visible in ToolbarButton. For example:

ToolbarButton {
    visible: {
        if(currentTab == 0) return true
        else return false
    }
    action: Action {
        text: "Whatever"
        iconSource: Qt.resolvedUrl("images/icon.png")
        onTriggered: { print("Hello world") }
    }
}

This example will make it so this specific button is only visible when currentTab is equal to 0, in other words, the first tab.


Can't run application with wine due to environment variable

Since Wine will pass on the entire shell environment variable settings to the Windows environment variable space you can set this environment variable in the Linux shell.

Example for the bash shell :

export MYENVIRONMENTVAR=myenvironmentvarsetting

This will make sure your Windows program can access the MYENVIRONMENTVAR environment variable once you start your program using Wine. If you want to have MYENVIRONMENTVAR set permanently, then you can place the setting into /etc/profile, or also ~/.bashrc when using bash.


Ubuntu 17.10 can't ping a server, which was a home network previously

Same problem for me, at the University of Southampton. After disconnecting from the university network and connecting to home Wi-Fi, I cannot browse some university-related webpages, I cannot connect to VPN, and Thunderbird fails to connect to the university e-mail account.

The problem appeared after the upgrade to Ubuntu 17.10 and is resolved with a reboot. Before reboot, cat /etc/resolv.conf gives

nameserver 127.0.0.53
search Home soton.ac.uk

whereas, after reboot, it gives

nameserver 127.0.0.53
search Home


Architectures EM64T® , x86-64 , ia32 , IA64 , Intel®64 , x86 , amd64 , amd32

In practice, on modern Windows and GNU/Linux, the following are indistinguishable (meaning, if your system claims to support at least one of these, the same software will run on these):

EM64T
x86-64
Intel 64
amd64

Likewise for these:

ia32
x86
amd32

IA64 is "Itanium", which is a totally different architecture that is not in any way related to any of the above.

Also, all modern CPUs that support the first group (amd64, etc.) also support code compiled for the second group (x86, etc.) because 64-bit CPUs can execute 32-bit code in a sort of compatibility mode.

There's also an x32 architecture, which is a very new development in software and currently only supported on GNU/Linux, which uses 32-bit addresses, with the 64-bit (amd64) architecture.

So, throwing out all the marketing terminology, what we really have as far as distinct software compatibility environments is:

amd64, which uses the 64-bit instruction set and uses 64-bit virtual addresses (actually 48-bit in current implementations);
x86, which uses the 32-bit instruction set and uses 32-bit virtual addresses;
IA64 also known as Itanium, which runs on "Itanium" CPUs only (and uses a 64-bit virtual address);
x32, which uses the 64-bit instruction set and 32-bit virtual addresses (basically the instructions/registers from amd64, and the memory model of x86). This results in slightly reduced memory usage in sacrifice for a lower maximum memory per process.


Dual monitors - HDMI Monitor doesn't display top menu bar

Kinda stupid that I can't just comment,  but whatever. It might be an overscan problem.  There should be a 'just scan'  option on your TV. If not, it might be an overscanning problem with Ubuntu, which can be set in xorg config settings. Does your mouse 'hit' the top of the screen? Or does it go past the top?


Kubuntu Pinned Items Behaviour Like Windows Quick Launch

If you have Kubuntu 20.04 i took two pictures for your problem.


Minecraft Pocket edition on Ubuntu Touch?

According to the official website, Minecraft Pocket Edition is only available on Android and iOS.  So you won't be able to run it under Ubuntu Touch at this point in time.


When I want to shutdown Ubuntu appear a pop up notification

There should always be some programs running; if nothing else, there should be top.  There's usually more depending on which desktop environment you're running.

But this pop-up will always appear no matter what might or might not be running.  It also prompts for whether to shut down or restart.  You could create a shortcut that would immediately shut down with no dialog if you wanted, such as a command like sudo init 0 to shut down, or sudo shutdown now.


What images can you store in lxd containers?

See https://insights.ubuntu.com/2015/04/28/getting-started-with-lxd-the-container-lightervisor/ for information on lxc

The “lxc” command line tool lets you interact with one or multiple LXD daemons. By default it will interact with the local daemon, but you can easily add more of them.

  As an easy way to start experimenting with remote servers, you can add
  our public LXD server at https://images.linuxcontainers.org:8443

  That server is an image-only read-only server, so all you can do with
  it is list images, copy images from it or start containers from it.

  You’ll have to do the following to: add the server, list all of its
  images and then start a container from one of them:

lxc remote add images images.linuxcontainers.org
lxc image list images:
lxc launch images:ubuntu/trusty/i386 ubuntu-32

images listed here : http://images.linuxcontainers.org/images/

  [DIR] centos/ 2014-07-09 03:27    -     [DIR] debian/ 2015-05-12 00:20    -
  [DIR] fedora/ 2016-01-04 03:44    -     [DIR] gentoo/ 2014-01-28 11:15    -
  [DIR] opensuse/   2014-06-25 22:40    -     [DIR] oracle/ 2014-01-15 18:12    -
  [DIR] plamo/  2014-01-14 20:28    -     [DIR] ubuntu/ 2015-11-10 20:22    -


Nope.  Windows uses "dynamic disks" for raid and spanning volumes, which is not supported in linux.  Of course, if you aren't backing up your data already, it is only a matter of time until you lose it, so you should already have a backup method.  With that, back up your data, and when you install ubuntu server you can format the drives as a linux raid, then restore your data.


FSTab, manage 2 boot partitions 'priority'?

It is not possible to setup automounting options in fstab to mount two partitions to the same mount point.

You can mount your pen drive somewhere else with nofail parameter.

You will not get error messages if pen drive is not plugged.


Wine installation of CS6 requires msxml3. Make sure you have winetricks installed then run

winetricks msxml3


Inserting variable into sed command in bash script

Edited : You may use the variable in sed as follows,

count=1
extension=".jpg"
cp yourfile tempfile
for (( i=1; i<=`wc yourfile | awk '{ print $1 }'`; i++))
do

#for (( j=1; j<=`sed -n ''"$i"' p' yourfile | wc | awk '{ print $2 }'`; j++))
#do
        sed -i ''"$i"' s/[a-zA-Z0-9]*[Kk][Ee][Yy][Ww][Oo][Rr][Dd]/'"$count$extension"'/1' yourfile
        diff yourfile tempfile
        if [ $? -ne 0 ]
        then
        count=$(expr $count + 1)
        cp yourfile tempfile
        fi
#done
done


ddclient with google domains dynamic DNS to ssh into my desktop

Turns out you need quotes around your password, i.e.

password='generated_password'

which the google article doesn't allude to.


Xsane doesn't find network scanner (printer works)

I faced a similar issue (works on one computer and not another). The resolution was to make sure HPLIP was set up on the non-working one. Here's what worked for me:

apt-get install hplip python3-pip simple-scan
pip3 install pyqt5
hp-setup

Update

There's an even simpler way which can avoid the pyqt5 requirement:

apt-get install hplip simple-scan
simple-scan $(hp-makeuri SCANNER_HOSTNAME_OR_IP | grep ^SANE | cut -d ' ' -f 3)

Substitute the hostname or IP address of your scanner instead of SCANNER_HOSTNAME_OR_IP

See here for more ideas: https://chrisjrob.com/2016/01/02/ubuntu-simple-scan-hp-all-in-one/


list of programs with apt installation with missing packages

I don't see any options that make apt (or apt-get) skip a non-existent package and continue installing the others.

However, you could run apt install for every single package in your list separately, that way one non-existent package does not abort installation of the others.

A simple Bash for loop is very useful here:

sudo bash -c 'for pkg in cowsay cowtalk ; do apt install $pkg ; done'

This command executes a for loop in a Bash shell with root privileges. The loop itself runs apt install PACKAGE for every PACKAGE in the list cowsay cowtalk.

While cowsay exists, cowtalk does not. You see the output here:

$ sudo bash -c 'for package in cowsay cowtalk ; do apt install $package ; done'
[sudo] password for bytecommander:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  cowsay-off
Suggested packages:
  filters
The following NEW packages will be installed
  cowsay cowsay-off
0 to upgrade, 2 to newly install, 0 to remove and 0 not to upgrade.
Need to get 21,7 kB of archives.
After this operation, 112 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.uni-stuttgart.de/ubuntu xenial/universe amd64 cowsay all 3.03+dfsg1-15 [18,0 kB]
Get:2 http://ftp.uni-stuttgart.de/ubuntu xenial/universe amd64 cowsay-off all 3.03+dfsg1-15 [3.640 B]
Fetched 21,7 kB in 0s (117 kB/s)
Selecting previously unselected package cowsay.
(Reading database ... 304276 files and directories currently installed.)
Preparing to unpack .../cowsay_3.03+dfsg1-15_all.deb ...
Unpacking cowsay (3.03+dfsg1-15) ...
Selecting previously unselected package cowsay-off.
Preparing to unpack .../cowsay-off_3.03+dfsg1-15_all.deb ...
Unpacking cowsay-off (3.03+dfsg1-15) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up cowsay (3.03+dfsg1-15) ...
Setting up cowsay-off (3.03+dfsg1-15) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package cowtalk


How do snaps work exactly and why are they mounted?

Snap packages are squashfs file systems. The only way to access snaps is to mount them. So yes, they will always be mounted.

They are a different thing from what traditional package managers implement. I would say they are neither a replacement for .deb packages, nor are they complimentary.


How to get rid of numerous .dotfiles in home folder?

In Nautilus File Manager, you can show/hide the .dot files by hitting Control-h.

Otherwise, leave the .dot files alone. Some of them are system related. Also don't change your $HOME. Both actions will break your system.


Repair Ubuntu broken files under live Ubuntu

No need to chroot first, you can just mount your / and then copy the file over. Make sure the owner UID / GID are the same.

Open terminal and run this command:

sudo cp /home/ubuntu/org.gnome.settings-daemon.plugins.media-keys.gschema.xml /mnt/usr/share/glib-2.0/schemas/

assuming /mnt is where you mounted your original /.


Best practise to patch Ubuntu server LTS enterprise

If you offer services to the internet, which i think you do with webservers, you should patch promptly. What promptly means depends on the value of your data and the visibility of your
Services. You dowload the updates from canonicals repository, the packages are signed and you have to trust your os vendor, if not you should change the vendor.

Be aware that not all packages in ubuntu lts are getting long term support. Depending on your software stack you might want to consider updating to 16.04


Falied to to create a bootable USB stick

Is the PC dual boot?

OR, is Ubuntu 13.10 (or Windows 7) in a virtual container?

Wild guess::

The last stages of creating a 'LiveUSB' needs a compatible kernel and boot files (from somewhere) and Startup Disk Creator writes these to the USB in privileged mode.

This is NOT the just the standard 13.10 install, so anything could be wrong here ..


Run lsb_release -a to find the version of Ubuntu you are running.

If you are running 16.04:

sudo apt-get update
sudo apt-get install openjdk-8-jdk

If you are running 14.04:

sudo apt-get update
sudo apt-get install openjdk-7-jdk


Is it bad practice for folder name to contain dot (.)? How about file name with multiple dots?

As far as I know there is no issues with naming folders and files with a single or multiple dots.

Ubuntu generally does not use the dot and three characters (such as .txt) to identify the file type. So this has no special meaning in the Ubuntu context. This is useful when sharing files with Windows. Ubuntu uses Magic Numbers in the first few bytes of the file to identify the file type. However, Nautilus. ignores the magic numbers if the dot and three characters extension is available to identify the file type. This setting can be changed. See  Force nautilus to ignore extensions

In Ubuntu, starting a file or folder names with a dot, such as .experiment_L0.5, makes the file or folder hidden. You can toggle the display of hidden files by pressing Ctrl+H in Nautilus. In Windows a file name starting with a . is not hidden. So if you transfer a hidden file named .experiment_L0.5 into a Windows system it will be plainly visible.

In Ubuntu a file name can end with a dot as it has no special meaning placed at the end. However, in Windows a dot separates the file name and extension, and a file name ending with a dot but no extension is not allowed. When I tried to create such a file in Windows I got a file with just the name, no dot, no extension.

Reference: Wiki on Filenames

Hope this helps.


How can i safely remove extra GRUB installs?

Are you seeing multiple Linux icons in rEFIt? If not, I'd just leave it alone, since the extra boot code is doing no harm. If you are seeing extra Linux icons, though, you should first check that none of them refers to an EFI boot loader that you're not using. (Check the description that rEFIt shows when you highlight an entry; EFI boot loaders normally show a path to the boot loader, like EFI/ubuntu/grubx64.efi.) A stray EFI boot loader would be the easiest to remove, since it's just a file on the disk (probably on /dev/sda1, your ESP).

If you're sure you've got extra BIOS/legacy boot loaders showing in rEFIt, you can remove the unnecessary code by using dd, as in:

sudo dd if=/dev/zero of=/dev/sda2 bs=512 count=1

The details vary depending on what you want to wipe, though. Applied to the MBR (/dev/sda), you'd set bs=440 rather than bs=512, so as to erase just 440 bytes rather than 512 bytes.

This procedure is VERY DANGEROUS. A mistake can make a partition, or even your whole hard disk, inaccessible. Thus, you should be very sure that you're wiping out the correct data. You haven't presented sufficient evidence for me to be confident enough to recommend wiping any specific location. If you want more advice, post a link to the RESULTS.txt file produced by running Boot Info Script. That will produce detailed partitioning information and data on what boot loader(s) you have installed.

One more comment: If you determined that your Mac needs to boot in BIOS mode to get an X display prior to installing Ubuntu 12.04, you may want to re-examine the issue. Such problems tend to get ironed out over time, so Ubuntu 12.04 (or 12.10, should you care to upgrade again) may be better on this score than whatever you've tried in the past. Booting in EFI mode will enable you to eliminate the flaky hybrid MBR that you're presumably using now.


Installed nvidia driver, activated it, and now Unity is gone. No bars, menus, nothing

There are some problems with the nvidia drivers that cause this problem.  It seems to be a problem with the accelerated drivers and how unity/X tries to use the GPU.  Reverting to the nouveau drivers should fix the problems, or you can try nvidia-current or nvidia-current-updates.  I haven't had a lot of luck so far with the newer 304.x driver modules.


When you see the Grub menu, hit the e key.

  This special mode of Grub allows you to temporarily modify Ubuntu's boot parameters.

Add to the end of the line:

acpi=off

If this worked, do the following once Ubuntu is loaded to make the change permanent:

gksu nano /etc/default/grub

Change the line that looks like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

So that it now reads:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off"

Save the file, then run:

sudo update-grub


You can use the dd command. Sorry for the very short answer. You'll have to look it up in the manual. man dd will explain how it works.


How can I check if Python´s ConfigParser has a section or not?

You need to read the config file before checking for the section.
Put the line

config.read("/tmp/myfile.conf")

just after

config = ConfigParser.ConfigParser()

It's no error if the config file doesn't exist yet.


Can I remove the 3.13 kernel series from Kubuntu 14.04 LTS?

Yes, you can remove the kernel packages (image and headers) with the 3.13 version. It is quite safe.

Meta packages linux-image-generic and linux-headers-generic will also be removed.

You already have other meta packages (linux-generic-lts-xenial, etc) to update the 4.4 kernels.


Re-enable graphical root-login on 12.04 LTS

First, check that the file /etc/lightdm/lightdm.conf is there.  If it is, then do this:

sudo passwd root
sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'

Root won't show up as a user, but "Login" will, which is how you manually log in with users not shown in the greeter.

Rebooted and then you should be able to login as root.


I can't install update because I need more space

It's possible to remove the running kernel, but I wouldn't recommend it. I'd reinstall and make sure you get enough space. Do you really need to upgrade the kernel though?

Which bootloader are you using? Using GNU Grub, it shouldn't matter much where your kernel is located, you can load it from the GNU Grub console as long as Grub can read the partition.

If you want to resize instead of reinstalling, try booting from the live-CD and running gparted. See Why I'm seeing a lock besides the partition I'm trying to modify with gparted?


Auth succeeded No requires line available

Just add AuthMySQL_Authoritative Off to .htaccess


I had the same problem.
I tried with unity --reset (as it used to fix things when I messed things up before with compiz-config) but that didn't solve my problem now.
The only thing I could do for getting everything working as normal was to reset compiz settings.

Just backup (rename) ~/.compiz-1 and ~/.config/compiz-1 directories and let them to be created again with the default settings (you'll need to logout and log back in again).

mv ~/.compiz-1 ~/.compiz-1.BACKUP
mv ~/.config/compiz-1 ~/.config/compiz-1.BACKUP

After having restarted and confirmed that everything works as expected, you can simply remove these backups (unless you have a use for them).

rm -Rfv ~/.compiz-1.BACKUP
rm -Rfv ~/.config/compiz-1.BACKUP

Note: To some people, one of the following links might have the solution. Try them if you don't want to lose all your compiz customizations.

Unity doesn't load, no Launcher, no Dash appears
How do I reset my Unity configuration?

In my case just resetting Unity wasn't enough, so I decided to get rid of all compiz settings.


How do I disable filesystem checking on boot in 20.04?

Hope this works for you, in brief:
tune2fs -c 0 /dev/yourdevicehere

Note: yourdevicehere is where your / (root) is mounted. To check its location, run the following command:
df -h

Source: How to force file system check (fsck) after system reboot on Linux


How to get rid of overheating in Dell studio 1558 laptop installed with Ubuntu 12.10?

As you said you are using Ubuntu 12.10 so you can install Jupiter in it.

sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter

Once installed use it in power saving mode.

More information and complete tutorial: Solve Overheating Issue In Ubuntu 12.10


Google Chrome won't launch on a Pentium 4

This error happens when the CPU tries to execute an instruction that is not part of its instruction set. This may be caused by several reasons, like:

a corrupted executable file
a bug that makes the CPU load instructions from a memory segment that doesn't hold executable code
the program was compiled targeting an instruction set unsupported by the CPU
hardware failure

File corruption is easy to detect, you could just download the deb file again and reinstall. Hardware failure would probably affect other programs, not only Chrome.

I guess your other systems in which Chrome runs flawlessly have a newer CPU, right? Maybe last versions of chrome dropped support for Pentium 4 (although Chrome requirements for Linux states that Pentium 4 is supported). It could even be a bug in code that detects CPU capabilities and directs execution for a branch optimized for a particular instruction set.

There's one thing I think is worth trying. Open "Additional Drivers" and try to enable (or disable) the processor microcode firmware:

I've seen this causing "illegal instruction" errors sometimes.


In Linux all files are organized into a single tree so there's no notion of "other drive" as in Windows. Your partitions are mounted into that tree as directories, so basically the problems boils down to moving files to another directory, while making the system think the files are still in their original location.

To achieve that, you can replace any directory with a symlink to another directory, possibly on another partition:

mv /some/dir /mnt/otherdisk/some/dir
ln -s /mnt/otherdisk/some/dir /some/dir

the only tricky part is that non-root partitions may be mounted later in the boot process than the program is needed which is now located on that partition, so you need to exercise common sense when doing that.

Alternatively, you can mount some root directories, say, /home, /opt, /var to another partition.

You can also resize the root partition to make it bigger.

Before doing anything drastic though - have you deleted old kernels, apt cache and other cruft which accumulates over time recently? You may find that you're not that short on space.


Why can't I open the "root" folder in Xubuntu?

The /root folder is the home folder of the root user (the administrator). That is, you (as a normal user) cannot see the personal stuff of the administrator which is fine and is the right thing to happen. Now, the root partition is just /. I guess you just misinterpreted the meaning of the folder /root and the root partition /.

The root partition (and corresponding folder) is called /. So if you need to see your file system you just need to type / in the locations bar.

Also, notice there is an item (in the image you uploaded) which reads File System under DEVICES. Click it and see what reads on the locations bar.


I'm having exactly the same issue ! My cursor is blocked in the upper top left corner... I have a GTX1070 in a laptop.

00I tried to install the 637, 370 375 drivers from PPA and put nomodeset in the boot line but I can't boot...

Anyone have found a solution ?


Less Sound in Ubuntu, More in Windows. Why?

Go to the sound settings, turn up application volume to max or enable sound over-amplification and be happy with very loud sound.


I suppose you mean static word wrap. To configure it go to Settings → Configure Kate, in Editor Component open Editing, then on General tab set Static Word Wrap to the following values:

[x] Enable static word wrap
[x] Show static word wrap counter (if applicable)
Wrap words to 80 characters

To get something like shown below:

Temporarily hitting Tools → Apply Word Wrap may get text better too.


Eclipse luna missing titles after theme revert

Might be something in the theme css file, check ${ECLIPSE_HOME}/plugins/org.eclipse.ui.themes_X.Y.Z/css/e4_default_gtk.css

There are settings such as ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_OUTLINE_COLOR

It's the only thing i can think of that might cause this.


You need to set the server to talk.google.com under advanced settings. I'm not on my Ubuntu machine, so doing this out of my head. Should point you in the right direction though.


Installing Ubuntu on a spare SSD connected externally to a Windows laptop

What you propose is possible. Remember that you will need to configure the bios to boot from the ssd.
It is not necessary, but if you want to access Windows you must make sudo update grub every time you change computer to update the bootloader.
it also may need to install additional drivers from the wizard for each laptop.
Remember that if you want compatibility with older computers should choose the 32-bit version


Ubuntu 16.04 live CD not accepting password for wifi - Ralink RT3290

The wifi password manager is not able to store the password for all users in the keychain. Therefore when entering the password choose the people icon in the password box and choose store the password only for this user. The system will prompt you for a keychain password. Next go to network manager and choose your wifi network. The network manager should connect you this time.

In case you need to troubleshoot use following commands:

sudo service network-manager restart
sudo ifconfig wlo1 up


Copy files in a directory to another directory

Open the terminal and run:

find /home/troy/Downloads/ -type f -exec cp {} /home/troy/.gs/ \;


Include any directory from tree to httpdocs folder

According to apache documentation:

  The Alias directive allows documents to be stored in the local
  filesystem other than under the DocumentRoot.

Try to add this line inside VirtualHost definition:

Alias /testfolder /testfolder
<Directory /testfolder>
    Require all granted
</Directory>

And restart apache2 service.

If this doesn't work, check file and directory permission.


Difference between bt_coex_active=N and bt_coex_active=1

bt_coex_active

is an option for bluetooth and part of the wireless driver (iwlegacy; Intel PRO/Wireless 3945 and WiFi Link 4965 devices).

It is used to enable both wifi and bluetooth at the same time. Something that not always works.

0 means not active (or false)
1 means active (or true)

The valid options are listed in

/sys/module/[module name]/parameters/[optionname]

As an example using iwlwifi:

/sys/module/iwlwifi/parameters

it shows bt_coex_active: Y.So N or 0 will be inactive and Y or 1 active.


How to import Contacts form Sim Card to Ubuntu Phone?

The feature of SIM contacts import is not on the current stable phone images. However, it is available on the development images. Soon, the development images will be stable enough to ship as an OTA update to all the phone users, and will become the new stable images.

You can choose to wait for the update to come which will include that feature, or you can switch to the development channel to test it.


After upgrade ubuntu 18.04 changed from GUI to Terminal

Your OS is not properly installed. Try the following:

exec sudo -i
dpkg --configure -a
apt-get -f install
apt-get update
apt-get dist-upgrade
apt-get install --reinstall ubuntu-desktop
apt-get autoremove
apt-get clean

If it doesn't work, reinstall Ubuntu.
Follow this to reinstall the OS without loosing data. The post is about Ubuntu 16.04 LTS but it'll also work for Ubuntu 18.04 LTS.


Why is ifup not running all of the if-pre-up.d scripts?

I had this same issue. From what I can tell, if you remove the trailing ".sh" this should work as expected.

sudo mv /etc/network/if-pre-up.d/iptablesload{.sh,}


How to change the default version of python in ubuntu permanently

See this existing question about creating a bash alias permanently:

How do I create a permanent Bash alias?

Essentially you want to edit the file ~/.bashrc and put that command somewhere (likely near the bottom) in there. The linked question is pretty old (2010) and mentions gedit but you don't have to use that text editor to modify the file, you can use whatever text editor you want.


QuickCam E 3500 working from Cheese, but not Skype

Well for me the issue was solved with my logitech which is slightly different that yours.

I have Logitech, Inc. QuickCam E2500 series but have always had skype problems until I edited the main menu entry and inserted a special command
Here is how:

First access Main Menu via your special key (windows logo) and type 'Main Menu'
Up comes Main Menu,click on that and then under Menus>Internet you will see Skype. Left Click on Skype and on the right hand side select Properties. Here is the name and command used to open Skype as well as the icon etc etc

In the command box paste the following command as it is written below:

bash -c 'LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype'

Select close and shut down the menu

Now when you open skype your web cam should function

Try back in Skype> options>Video Devices
Hopefully now where it allows you to select webcam it should say something like USB Camera (o46d:089d)
Hit test and see what happens.
Let me know if this helps or not
This has been a continual pain in the rear for Skype /Logitech users which used to be solved by opening using the same command in the terminal but that is SO boring so adding it to your menu entry does it for you.


How to mount an AES-encrypted .DMG file containing a FAT12 filesystem?

emm what's coming to my mind I can help you this way only:

If it's possible or if you're willing converting .dmg to .img hfsplus open a Terminal Ctrl + Alt +T and type:

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install dmg2img

then install mountable manager, I use AcetoneISO:

sudo apt-get install acetoneiso

or Mountmanager:

sudo apt-get install mountmanager

firstly try to mount .dmg using one of these packages, if no access you can still use converting tool mentioned above.


Chrome is not opening magnet links properly with deluge?

xdg-mime default deluge.desktop x-scheme-handler/magnet This command in the terminal should fix your problem


error en el arranque del computador failed to start dnsmasq (ubuntu 18.04)

hello all people i save it problem.

well the url of post before it is run. post with more details.

Answer:

In /lib/systemd/system

open with command cli:
 vi dnsmasq.service
i just have to add that command vi:
  a = add text
 :qw = save

You made these changes:
 After=network-online.target
 Wants=network-online.target

I also ran "systemctl enable systemd-networkd-wait-online.service".

and with save problem.


How can I know if my GPU card driver supports Vulkan?

a Simple way is to look the unofficial vulkan gpu database https://vulkan.gpuinfo.org

The best way is to install vulkaninfo utility from your repository manager, like apt-get install vulkaninfo, emerge or pacman

It does depend upon hardware, though, most of the late decade gpu are compatible. Then, it needs support from drivers, o.s. and game.

I'm afraid in your case, i915, does not support Vulkan at all (see https://wiki.gentoo.org/wiki/Vulkan for more about i915 not being able to run Vulkan software)


Query regarding installing wireless WiFi in ubuntu17.10

Try using the icon just to the right of the battery indicator on the top right corner of the screen.  It has wifi options, log out, power off, and others.  Something new to get used to


How to install program from Live-CD chroot?

Actually Live CD consists of very Limited software that needed to install a basic Ubuntu System with required software.All the software will be available in .DEB format and you can install those software in your system if you want.

Simply copy that software somewhere in your directory and then open your terminal and cd to that directory.

If you want to install all those packages once then simply

sudo dpkg -i *.deb will help you.

If you want to install application by application then do as

sudo dpkg -i <place the file name here >.deb

hope that helps.


Set usergroup and persmissions ftp folder back to default

There is no "reset" of permissions, you need to note what they are before the change. It depends what folder you are sharing as to what the defaults should be but at expected less permissions are better than more.


Is there an Opera turbo feature available for Ubuntu?

Opera turbo feature is avaiable in Ubuntu, as well. To enable it, press Alt + F10 to summon Menubar and Navigate to File. There tick on the Opera Turbo.


How To Update Ubuntu 8.10 to Have Recent Updates

Ubuntu 8.10 and even 8.04 are no longer officially supported.

"After each version of Ubuntu has reached its end-of-life time, its repositories are removed from the main Ubuntu servers and consequently the mirrors."

This might be why you are not able to update transmission. Are you able to upgrade? i.e Does your update manager show the new version available button?

If not you might want to reinstall 12.04 if you want Long term support, else just go for the latest 12.10 version

Alternatively some other methods to do the upgrade are posted at Updating Ubuntu server from 8.10 to 10.04


maybe i'm wrong, but i also got my system freezed after a suspend; so i had to hard-Power-off it (On/Off-button pushed > 4s).
The only reason i could find was the newly added boot-option at the grub command line:

acpi_osi=Linux.

After i removed it (plus sudo update-grub2), the suspend / resume behaviour is now ok again.

Kubuntu 12.04 (LTS) with dist-upgrade to Trusty Tahr 14.04.1 (LTS) on a Lenovo T500

Hope this helps maybe


"$: command not found" Command error while reconfiguring keyboard configuration in Ubuntu 18.04.03 console

Found the solution. We just have to remove $ from the command $ sudo dpkg-reconfigure keyboard-configuration. So the correct command is sudo dpkg-reconfigure keyboard-configuration.


You can add the ppa manually:

Just add the following line to your /etc/apt/sources.list:

deb http://ppa.launchpad.net/noobslab/apps/ubuntu trusty main
deb-src http://ppa.launchpad.net/noobslab/apps/ubuntu trusty main

Just run apt-get update afterwards.


Unity, gnome-shell and Cinnamon don't have their top panel after removing Lubuntu

I have experienced this bug as well.  The only way I have been able to fix this is by deleting my ~/.config folder.
A better option is to simply move your .config folder into another folder

mv -f ~/.config ~/.backupconfig

in case you are unfamiliar with terminal commands:

'mv' is the move command and '-f' forces the move

This will return Unity to normal and allow you to use it again, though you will have to set up your Launcher panel again.  I have yet to find a way to use both together, unfortunately, because I really like Lubuntu and Unity.  I hope problems will be resolved when LXQt is finished and Unity migrates to Qt.  I think the problems arise mainly from openbox, and some sort of conflicting config there.


Check if the "adbusers" group exists in you system. If not, try to change it to "plugdev" in rules files, and add yourself to "plugdev" group.

In my case, i've just to install android-tools-adb, android-tools-fastboot, android-rules via apt, and edit files: /lib/udev/rules.d/51-android.rules, /lib/udev/rules.d/51-android-rules.rules for replacing "adbusers" with "plugdev". So now my tablet's rule looks like:

SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0660", GROUP="plugdev"


If you do not have mobile broadband in your computer, then turning of both WIFI and Bluetooth effectively puts the device in airplane mode.


evolution -> thunderbird migration and archive size

The most simple way would be to use an imap account to do the switch. Don't you have one that you could use?


Error while compiling a GTK application on ubuntu 13.04 - missing headers

The gdk header file is part of the libgtk2.0-dev package, so you will need to install that before you can compile GTK applications. You can install it using apt.

sudo apt-get install libgtk2.0-dev

While you're at it, you'll probably need the build-essential package too. It contains applications like g++, gcc and other standard headers.


It will have no affect on your Windows hard drive. It does not change anything on the hard drives itself but just where the motherboard should look for a OS to load.


Can assembly directives corrupt my Ubuntu?

No, you cannot corrupt your Linux system this way. If your programme tries to access a memory page it doesn't have access to, Linux will raise a Segmentation Fault exception. Your programme will receive back a SIGSEGV signal and execution is immediately halted.


Gnome Tweaks - Applications - Shell Themes Folder

That "(None)" button is for installing themes manually from .zip archives.

If you have a .zip file containing a GNOME shell theme you can select and "install" the theme using the "(None)" button, then load it from the drop-down list ("mininal-conception" in your screenshot) next to it.

The archive gets extracted to your ~/.local/share/themes/ directory. If you want to remove the theme from the drop-down list, just delete the corresponding folder from ~/.local/share/themes/.


A previous question's answers suggest that variable interpolations like $MANPATH are not supported in /etc/environment: difference between bash.bashrc and /etc/environment file . I think you would need to extend /etc/manpath.config itself with your customizations instead of using /etc/environment.

However, you probably don't need a custom installation of texlive in /usr/local in the first place. If you install it using Software Center (or sudo apt-get) instead, then the man pages would go into the default system path and the question of how to update MANPATH would be moot.


Why does Ubuntu handle keyboard shortcuts on-release while other distributions don't?

It's an Xorg bug. Fixed here for Manjaro Linux. I had to follow these steps to manually skip PGP checking !


try dhclient after sudo ifconfig wlp68s0b1 up.


Problems With Ubuntu 13.04 Booting from Live DVD

When using live DVDs there is always the chance that your copy is corrupted or something like that.

Although, before checking it, put your DVD in the drive and turn on the computer and repetitiously press the up and down arrows in your keyboard, it may lead you to the boot options of the Live DVD, try first the option: Explore Ubuntu without installing.

If it doesn't work try the second option: Install Ubuntu.

If it fails too you should try the 4th option: Check disc for defect, it may point out that your disc has a defect, so you just need to burn it again if it is re-writable.

But, if it doesn't point out any defect, it may be the DVD itself, I used to burn several DVDs, and sometimes, depending on the PC, a certain DVD just won't work, so the solution will be buying another one, preferably of a different manufacturer, and burn it again.

Of course if you want to try burning the same DVD again it can happen to work, there are a few cases that I just re-burned the same DVD and it worked, other that I re-burned it in another drive and it worked. DVDs and CDs behave all kinda strangely and randomly sometimes.

Although, if you have a USB flash drive that you can use, do it through the USB, it is much better.


To me it looks like you missed installing libssl1.0.0:i386 (which includes libcrypto.so.1.0.0).  And/or installed libssl-dev:i386 when not doing YYC builds, which will redirect the 1.0 ssl files to 1.1 files on later versions of Ubuntu, or something like that.  I can't say I remember all the nuances exactly.
I ran into the same thing on Mint 19 and just spent a hard week working it all out.  It's too long to put here so I threw it to a blog post here:
https://namethattech.wordpress.com/2020/09/04/from-gamemaker-to-ubuntu-14-16-18-and-beyond/
I hope it helps.  GM:S 1.4 games need more love from YoYo.


Is it possible to individually uninstall packages previously installed using a meta-package?


First of all, I'm going to explain what I think you did, so there aren't any misunderstandings which may lead you to lose your data, so please object if there is anything wrong.

Before installing Ubuntu, the hard disk in question contained two partitions. The first one you call "C", with Windows operating system files on it and a second one you call "D" with personal data. When you installed Ubuntu, you repartitioned your "D" drive to free some space for Ubuntu's root and swap partitions. After doing that, you booted up Windows, where "D" was still displayed but when you wanted to display the partition's contents, it told you is was not formatted. Maybe you rechecked using Windows' disk management tool and noticed a block containing "unallocated space".

Before you take any further actions, I strongly recommend you to stop using the computer/hard disk in question immediately! Every further usage will lead to disk writes you cannot control and may destroy your data forever, so turn it off asap. The first step you should take is to take a full backup of your hard drive to another one if possible. In any case, you should not boot into an installed operating system until the problem is resolved but use a live cd like the one you installed Ubuntu from.

Taking a backup of your hard disk

Boot from Ubuntu live
Mount external hard disk (no partition from the internal one!), for example by selecting it inside the file manager
Remember the path the external data source was mounted to. As I'm not using Ubuntu myself I'm not sure the full path is displayed right there. Do a right-click in free space and select the "Properties"-ish option from there. The full path should be displayed now. I'm going to use it as /media/usb
Open Terminal and get root by entering sudo -s
Install ddrescue by entering apt-get update && apt-get install gddrescue
Type fdisk -l to show hard drives and their partitions. Guess which hard drive is your "broken" one. It should be something like /dev/sda
Backup /dev/sdX by typing ddrescue /dev/sdX /PATH/TO/EXT/HDD/hddimage.img /PATH/TO/EXT/HDD/hddimage.log
As soon as it's done have a quick look at the created logfile to see if everything went well

You are now ready to try any rescue operations. Before we continue, a quick overview over how that partition thing usually works (may vary a little bit for MBR/GPT and BIOS/UEFI but that's not really relevant here):

The first few sectors contain the hard disk's MBR. For BIOS systems, this is where the code is stored that gets executed first (usually a part of the boot loader) and the information, where partitions on the hard drive begin). You can then see a partition as a big block on your hard drive containing data.
Every "big block", aka partition, begins with information about the file system (e.g. NTFS or ext4), which itself stores information about where the single files are that are important to you.

As I see it, there are two possibilities: First is, the Ubuntu partitions were created at the beginning of your data partition. This would be pretty bad as this would have probably overwritten the NTFS structures of your former "D" drive. It basically means it won't be able to recover the exact file names and information about where the files are (which makes the recovering process MUCH more reliable, as then it's mostly a matter of recognizing the data structure and recovering the whole partition at once. The recovering program would need to look for every single file which can be pretty unreliable and often won't work for files which were not saved sequentially but were split up across different regions of the drive.

In case Ubuntu's partitions were created after the NTFS structures it should be way easier to recover at least some of your files.

With the information provided above (please read & understand!) it should now be pretty straight-forward for you to use a tool like TestDisk. You can install it (still, inside your live system!) using sudo apt-get install testdisk and use it by running sudo testdisk /dev/sdX. There are some very good guides how to use it on TestDisk's wiki you can find using the link. If it shouldn't be able to recover your whole partition, you could use different tools made for recovering single files instead of partitions. Examples for this are photorec (installed together with TestDisk, just sudo photorec) or foremost. Ubuntu's wiki has some good documentation and guides about data recovery, too, be sure to check it out for further tips.

Please consider reading the answer mentioned in How do I recover my accidentally lost Windows partitions after installing Ubuntu? too. It includes a very detailed description about installing and using TestDisk, together with some very helpful screenshots.


Is there any GNOME extension to display account name in the top bar instead of a group of function button?

There is a gnome-shell-extension named "Add Username to Top Panel"
https://extensions.gnome.org/extension/1108/add-username-to-top-panel/


I might found a solution.
There was a message about IBUS during the instalation. The owner is not root. Somewhere here I found that it could load gksudo. So, in directory /usr/share/applications find DraftSight and paste to terminal gksudo /COPIED_DIRECTORY.

Again fill in email and other info. Open your email inbox and click the link. (DraftSight site will load). Start again command with gksudo and DraftSight will load.

I know that it isn't a complete solution just small way around, but it's running!


To clear only the mail cache (which is responsible for slowing down) it is recommended to delete only the mail cache after the evolution is shutted down:

rm -rf ~/.cache/evolution/mail/

So everything except your mail cache will be safe.


Which display manager are you using? I had a similar problem when I switched to GDM while testing something. Switching back to SDDM resolved the issue. Apparently there's something in GDM's configuration which prevents vt switching.


think or swim not working on 12.04 or 14.04

I tried PlayOnLinux - it's a little glitchy, but runs pretty good on Ubuntu 14.04, Mint 17 and Zorin 9.

I am new to Linux - testing out Ubuntu 14.04, Mint 17 and Zorin 9 for three weeks finally got ThinkorSwim working. From what I have been able to determine is it worked fine on earlier versions of Ubuntu as a Java program - TDameritrade has made some changes in the past few years and this is no longer the case.

I have tried the majority of the suggestions offered on this and other boards with no success. For me - I would get the installing updates screen and it would hang there (white color) then starting again same screen, but black color. Never would get to log on screen. Tried Wine with exe file - it didn't work either.

It ran best on Ubuntu and plus side Charts on my second monitor are better resolution than Windows 7 - two days now - I have not fired up Windows at all.


change alt-tab to ctrl-tab on ubuntu 12.04

You can change your Keyboard Settings from System >> Keyboard >> Shortcuts.

Under Navigation, you should see "Switch Application". You can click it and set the new short cut as you want. Hope it helps.


How to install drivers for Canon MX920 in Ubuntu 18.04 LTS

Canon have provided a driver for this device since 2013; so if you go here http://support-asia.canon-asia.com/contents/ASIA/EN/0100517002.html and click to download and save what will be cnijfilter-mx920series-3.90-1-deb.tar.gz

if you open a terminal; copy the commands below; line by line; paste into the terminal; hit the ENTER key for each command then move to the next line

cd Downloads
tar -zxvf cnijfilter-mx920series-3.90-1-deb.tar.gz
cd cnijfilter-mx920series-3.90-1-deb

then run the install script; watch as it runs as it may ask you questions

sudo ./install.sh

that should install the drivers and register the printer and you should be good to go

(I thought michael gruz ppa was no longer supported ........)


How to review thumbnails for photos on file browser?

isn't it sometimes enabled by default? if it's not you can go to /menu/preferences/search&prewiew and toggle these options...


Recommendations for a network monitoring data counter?

You can use the program nethogs from the standard repository for this.

sudo apt-get install nethogs

sudo nethogs (it requires root privileges to run)

This tracks the network usage of all processes while it is running. When it starts it shows the current rate at which everything is sending/receiving, but you can press 'm' to switch it to cumulative amounts (and further times to display it as kB/B/MB). It will split sent/received data as well as show you a cumulative total across all processes from the time at which it was run.

Source: Software to show amount of data transfer of each process


20GB is probably not enough. If 20GB is not enough, resize the Windows partition again before starting the install.

Select the partition you want and press the - sign. This will delete that partition and free up space.
Create a /swap partition. Select free space and press the + button and set the parameters as in the image below. To find out how large this should be and to learn more about swap read Swap Faq.

Create a / (root) partition. Select free space and press the + button and set the parameters as in the image below. Have at least 20GB to be on the safe side. (I have 40). For the type of partition, you can chose "primary".

You don't have space to create a separate /home partition. So your personal files will be stored in the / (root) partition.
Press "Install now".

However, I too recommend that you upgrade windows somehow and choose Ubuntu 20.04 LTS instead of 16.04.

After install, you will need to make sure that you create a separate NTFS partition so that you can share files between Windows and Ubuntu through it.

For more information on installing read How to use manual partitioning during installation.


Is Ubuntu compatible with the hp spectre x360?

I have tried Ubuntu 14.04.02 via a USB stick on my Spectre x360 (8Gb RAM Intel 5200). As mentioned, secure boot needs to be disabled.

Works without any additional steps: touchscreen, trackpad, windows keys, WIFI, USB, bluetooth, networking, SD card.

Not working: On board sound. HDMI audio is detected, but no other audio device. (So no speakers and nothing out of the headphone out).


Maybe service siemcy is not yet started, so you should first start it, and then restart it.

Alternatively, you could copy your code in /etc/rc.local before the exit 0 tag.

Hope it helps!


I solved the problem by running Synaptic.  I unchecked all repositories but one, did an update, checked the next repository, did an update, etc., until all updates were done, one repository at a time.  Why this worked, I do not know.


Installation problem (16.04, Thinkpad T460s): initramfs unable to find a medium

Using yet another usb stick solved the problem. Seems that it was the type of stick that caused the problem.
It now runs very smoothly with only minor problems.
Sorry for bothering...


You should be able to switch to the regular graphic interface on the netbook remixed edition of Ubuntu, by selecting the proper environment at the login time. If you are setup for an automatic login, you can still logout and re-login with the proper credentials. The selection is done through some of the icons on the bottom of the desktop BEFORE logging in. This is how I got rid of the Unity environment, which is also giving me hard time on my Eee900 netbook.

Because of performance, I now use Jolicloud on my netbook. It is much faster, although the environment is not what I would personally prefer. But id does a better job than Ubuntu.

I realize it might not answer your original question, but it may solve the keyboard issue you had with Ubuntu.


In web.xml in the welcome file List. Example:

<welcome-file-list>
   <welcome-file>index.jsp</welcome-file>
   <welcome-file>index.html</welcome-file>
   <welcome-file>index.htm</welcome-file>
</welcome-file-list>

Just add another line that refers to admin.jsp.

Thanks
Chris


Try the following out:

https://sourceforge.net/projects/docx2txt/

It's open source and terminal based.


Cannot run Word2007 on Wine 1.4 / Ubuntu 12.10

Wine is not very good.  There is probably some kind of DLL missing, and Office tries to fix it with the installer.  Have you tried link?


Windows XP guest in Ubuntu VirtualBox OSE VM does not install driver to use host's HP laptop webcam.

Unfortunately, your laptop does not have XP drivers according to HP.  So I would recommend that you give cheese a try.  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

sudo apt-get install cheese

Or you can install it using the Ubuntu Software Center.


How do I make a popup message that will open whenever the user open firefox?

James is correct, however if you wanted an actual pop-up box:

First, make a new file somewhere called runffox.sh, make sure to create it as your user.
e.g. /home/username/runffox.sh

Inside it put

zenity --warning --text="MESSAGE"
firefox

Where MESSAGE is the text you want to show them.

Then in terminal

sudo chmod 755 /home/username/runffox.sh

This allows all to execute the file, but only user to edit it. If you want only root to be able to edit the file change 755 to 555

Now in terminal type

sudo gedit /usr/share/applications/firefox.desktop

Change

Exec=firefox %u

to

Exec=/home/username/runffox.sh %u

Now, if you launch firefox from the sidebar or desktop etc, it will show the message, then open firefox after you close the message.

Also, for more options with zenity to edit the popup message,

man zenity

p.s. I'm not sure if a two part command can be put after Exec=, if anyone with more experience could verify, might be able to skip creating the .sh file.


Solved using Create VPN server using the Ubuntu VPS

This is the only line I needed in rc.local

iptables -t nat -A POSTROUTING -s 192.168.0.0/24 ! -d 192.168.0.0/24 -j SNAT --to-source XXX.XXX.XXX.XXX where XXX.XXX.XXX.XXX = the public IP of the VPS


Try recovery mode. If it doesn't work, reinstall the operating  system.


How do I share a folder with another Linux machine on the same home network?

What does Windows have to do with
  this? I'm not trying to share with a
  Windows machine...

You're right, this can be confusing. So let me try to clarify the terms first of all:

The way Windows shares files and printers is called SMB. The people from the SAMBA project have implemented all of Microsoft's protocols and specifications for Linux. Ubuntu therefore supports the same sort of file sharing as Windows, which is called Samba.

You can use SAMBA to share files between Linux machines. In fact, you might prefer it in case you have, for example, have a friend over with their Windows computer.
Alternatively, you can use The Linux Way of sharing files, which is NFS (Network File System) - This answer to a previous question explains how to do it. (but it's rather technical)

So, when the Sharing Options dialogue asks you to install the packages, you're not actually installing any Microsoft software or anything like that. Go ahead and do it, it's perfectly safe.

Addendum:

You can try to just enable sharing before you follow Salih Emin's instructions; if it doesn't work, you will get a simple warning, you can then do the steps Salih describes if needed. I have tried it on a freshly installed and up-to-date system, and I indeed needed to do this.


As mentioned by Warrent Hill, Execute command before shutdown/reboot is the way to do it. Create a script under /etc/init.d/shutdown_google_drive.sh and add softlinks as required in rc6.d.

However, if the synchronization may take over 60 seconds (I'm pretty sure this is the default timeout,) then it won't work because the shutdown process has a watchdog and a script that takes too long is simply stopped (as in killed) and the shutdown process moves on.

To make sure you do not lose data, you may consider using shutdown -c in your script (I would think it's possible) and let the user know that the shutdown was cancelled in the event your sync-ing is taking too much time.


Device drivers in linux are written as kernel modules.  Typically if there are updates for special drivers (nvidia like drivers come to mind) you may be able to get binary files and an installation script for your architecture.  Otherwise, you will likely get any driver changes (if there were any) when you install kernel updates.

If there are special changes for your specific model sometimes you can find kernel patches.  This would be a bit more involved as you would likely end up compiling the kernel then installing the newly compiled version of the kernel.


Games display across both monitors when opened

I have two monitors connected to my Xubuntu 14.04 machine right now and encountered the same problem. I think that the best way to fix this is through a script file, so that you don't have to enter the commands every time you want to play the game.

I have written a script file that, among other things, will fix the Dungeon Crawl Tiles window to consume only one desktop, instead of spanning across two. You may download or view it here.


Cannot type with Apple Bluetooth Keyboard

If (and I say IF) you can get BlueTooth to work in a Live session on your existing computer, you should be fine. One thing that I noticed with the Apple BlueTooth keyboard is that it will never properly bind to your adapter until it is given some "name". This is something done, for example, when auto-detected on a MAC computer. I had this issue under Ubuntu 9.10, back then, and a friend of mine just tested the device on his Mac. At that time, the device was given the name of his computer, automatically. From then on, the keyboard never had any problem connecting to my Linux box. I just asked him to rename my keyboard to something else than his own name, of course. The only issue I had, and this is normal is that if I bind my keyboard, say, to my desktop, it will be unbound from my laptop. Or when it is bound to a Windows machine, instead of a Linux box.


"Message did not receive a reply" browsing iPad 2

Yes, you may need to unpair and pair your device..

Try this: http://ubuntuforums.org/showpost.php?p=10205459&postcount=32

Originally Posted by DodgeV83

  The PPA by itself didn't work for me. I then had to run:

idevicepair unpair
idevicepair pair
idevicepair validate

  Got the answer from the following Bug Reports

  http://libiphone.lighthouseapp.com/projects/27916/tickets/183-cannon-mount-iphone-with-ios-421-in-ubuntu-1010#ticket-183-13
  http://libiphone.lighthouseapp.com/projects/27916/tickets/181-cant-mount-iphone-in-ios-421#ticket-181-10

  Just remembering: to do that you need to have libimobiledevice-utils
  installed, if you don't have it

sudo apt-get install libimobiledevice-utils


Upgrade to Linux kernel 4.15.0-44 in Ubuntu 18.04 breaks VirtualBox

Canonical seems to have recognized this issue and released another version already. They probably just reverted it back to 4.15.0-43 but called it 4.15.0-45 just to make a quick fix, so we'll probably see another kernel version soon after they resolve 4.15.0-44's issues.


Where is the output of a Terminal (Gnome Terminal) stored

If the output produced by your scripts is very important to you (to look for error, warning, actions that were run and so on), then you shouldn't rely on the display of the console you're using.

You have to redirect the output of your scripts to some files, this has advantages :

you are no more bounded to the number of lines in the scroll buffer of the console you are using
you can archive the result for as long as you want to be able to retrieve what was done, even some days/weeks/months after you effectively run the script
you can have the errors logged to a dedicated file, different from the informational messages, making it more easy to find errors. (if the commands used in your scripts send error to STDERR and information to STDOUT).
you can even log to a file while still displaying output on the terminal is you use the command tee.

So, you can do this :

./script.sh | tee -a output

to copy all the output of script.sh to a file called output, appending the text to the end of the file and displaying the text on the terminal too.


Finger print driver for Dell Vostro 3460

I am using a HP Pavilion laptop with Finger print reader from Validity sensors, Inc., But my model differs from yours (VFS301). A Reverse Engineering has been done by someone to make it work under Gnu/Linux

You can download the source code and compile to generate binary to check if this works for you. Take a look at the README file to get started.

Get code here


Ubuntu 18 - Touchpad Buttons not working

synclient has no effect because Synaptics is not the TouchPad driver on Ubuntu 18.04. Default installs use libinput instead.

Now, what kind of hardware do you have and what do we need to do to enable the buttons? Previous asked for info from X input. That may help.

Why isn't libinput just doing the right thing? More likely issue is your hardware is unfamiliar to libinput and the system is guessing incorrectly on measurements. Your buttons may be under the hand rest. Possible your attempt to config with Synaptics setting makes this worse.

What brand laptop, what model TouchPad?

Oh, does a USB mouse work?


I found a solution on youtube https://www.youtube.com/watch?v=sj08gKkHDpY
To properly launch my wine, i had to command winecfg.
Hope this helps.


On Sourceforge wiki, they directed me to this link. I'd recommend using the XP driver, as I've always done with ndiswrapper. Otherwise the driver should be on the original driver CD. This thread claims you should use the rt2870.inf from the XP2K driver. Make sure you have ndiswrapper properly configured (add ndiswrapper to /etc/modules, run sudo modprobe ndiswrapper to have the driver kick in right away...). Otherwise you can try the XP64 driver if the XP2K driver fails.

For blacklisting rt2500usb, you can try that, you can also add rt2870sta to /etc/modules.

That's the best I've found on the forums, seeing as I don't own that device myself. Basic steps for troubleshooting hardware in Linux (in my experience anyway) are:

get the Vendor ID / Product ID (for USB devices) and Google it (and
identify it in a system file or two if needed)
grab libraries from the package manager that might be useful
download a driver and point to it in a system file

Give it a try and post a comment.


Is there an advanced hemorrhoid simulation software available for Ubuntu?

The answer to your question is: No, there is not such a simulation software (publicly) available for Ubuntu that fits your criteria.


how do i prevent my WiFi to be disconnected when laptop goes to sleep

When you "put my computer on sleep" do mean Hibernate or Suspend? Either one removes power from the WiFi hardware, which is set to its initial power-on state on restoration. Unless you're command-line-literate, and willing to read man pages, and look at the pm-utils package, you will have to continue to wait for (how much time did you say? Seconds, Minutes or Hours?).


I have succeeded in this, by doing the following on fstab

  //192.168.1.1/SharedFolder /mnt/SharedFolder  cifs
  guest,uid=1000,iocharset=utf8,codepage=unicode,unicode  0  0

make sure you have created the /mnt/SharedFolder location, and have given regular users permissions to read/write


rm is command to remove/delete stuff.
-rf is two options joined together
-r for recursive removal ( typically used with directories)  - -f to force the action
linux in this command is either a file or directory.

Therefore, this command reads delete folder called linux. If the command really comes from a tutorial on uninstalling an application, likely that application has files that are specific to Linux and other files specific to other OS. Some applications don't have a .deb package and don't have installation scripts; essential files are compressed in a zip or tar archive, and deleting the files  extracted from those archives is sufficient.  Hence why this command is suggested.

However, you may see another command, which looks similar and somewhat dangerous: rm -rf /.  This is intended to recursively delete everything (!) from hard drive partition where root filesystem is installed (in Windows terminology it would be "delete everything from C:\ drive). This command might be intentionally ( maybe maliciously ) suggested to newbies or clueless users as a way to uninstall Linux, but it doesn't uninstall an operating system, technically speaking not without loss of data. Uninstalling an operating system differs from uninstalling an application.


Script for keeping a cache directory a specific size and removing based on last accessed

That's actually quite simple:

#!/bin/bash
max_size=2000 # size in kilobytes
i=0
while [[ $(du -s "$1" | awk '{print $1}') > $max_size ]]; do
  i=$(($i+1))
  [[ -z "$file_list" ]] && file_list="$(find "$1" -type f -printf '%T@ %P\n' | sort -n | sed 's/[^ ]* //')"
  rm -f "$(head -n$i <<<"$file_list" | tail -n1)"
done

Start it like /path/to/script.sh /path/to/dir and it will test whether /path/to/dir exceeds max_size (in kilobytes) and if so delete the oldest files one after another until max_size is matched or undercut. Be careful, this deletes files without mercy, run it in a terminal with rm -i instead of rm -f to test its functionality.

To start the script periodically, create a cronjob with crontab -e like e.g.

@weekly /path/to/script.sh /path/to/dir

to run it weekly.


Section "InputClass"
    Identifier  "Mouse Remap"
    MatchProduct    "Madcatz Mad Catz R.A.T.3 Mouse"
    MatchDevicePath "/dev/input/event*"
    Option      "ButtonMapping" "1 2 3 4 5 6 7 8 0 0 0 0 0 0 0 0 0 0 0"
EndSection


Error "System is booting up. See pam_nologin(8)"

I just did a hard restart. Turn your computer off, unplug all accessories (cords, exterior cooling fan, joysticks, etc.), take yor battery out, hold power button down for 60 secs, put the battery back in, and restart the computer.

Worked for me. Good luck.


What are the risks if install a secondary desktop environment / interface on my ubuntu?

The risk is that stuff will randomly not work, and you will have no idea why.

Hypothetically desktops should be able to share a system, and developers should ensure that having one desktop installed does not interfere with another. The problems appear when desktops rely on different software to implement the same services, and the developers of both desktops just say "well, it works on our desktop, you should just remove the other desktop".

One example: bug #984230 - the packages xfce4-notifyd (from XFCE) and notify-osd (from Gnome/Unity) are incompatible, and if you install XFCE and Unity at the same time, you will find that notifications in XFCE do not work as expected, because the notification service is activated by DBUS, and notify-osd always gets run instead of the XFCE version. notify-osd developers do not consider this a bug in notify-osd, and xfce4-notifyd developers do not consider this a bug in xfce4-notifyd, since both work fine when the other is not installed!

Another example: bug #889394 - having gnome-screensaver, xscreensaver and xfce4-power-manager installed at the same time. They both had the same timeout. The result of this was that after some time, one screensaver kicked in and turned off the monitor (dpms), but the other would just black the screen (no power off). So depending what order they got run, which was essentially random, the monitors would either stay on or turn off.  One of the confusing thing about this situation was that both screensaver applications have different settings, so  changing settings can result in no effect on what is actually happening.

Another confusing thing is that XFCE will try to lock the screen using xflock4, but it will always use xscreensaver if it is present, never gnome-screensaver, and you have no way of knowing this unless you look at the source code. And xubuntu-desktop depends on both xscreensaver and xfce4-power-manager, even though they conflict.

So, that is why I try to avoid installing more than one desktop, and instead install each desktop with its own full install on a different partition. You can install more than one desktop on the same system, but the developers of each desktop are less likely to care or fix bugs that only occur when two or more desktops are installed.

Some more incompatibilities to watch out for:

When running lightDM user switching doesn't work  (Gnome uses GDM DBUS service, GDM is the "one and only supported display manager" for GNOME, patches for lightdm are rejected)
Gnome Keyring incompatibilities (Gnome Keyring uses Gnome Session DBUS service which is not available on other desktops)


Uninstall Redis after manual Installation

Go into the folder where you ran sudo make install and run sudo make uninstall and that would get rid of it but first you have to stop it see steps below.

Steps:

Stop redis with:

sudo systemctl stop redis
sudo systemctl disable redis

Change into install location as per the tutorial link:

cd redis-stable
sudo make uninstall

Get rid of the folders created:

sudo rm /etc/redis/redis.conf
sudo rm -rf /var/lib/redis

Remove redis user:

sudo deluser redis


Installing software on live USB so I can access it from a live session

You should be able to run the program from where it's mounted, no install needed, provided the mount of the device did not have the "noexe" qualifier on it preventing execution of programs.

Check how the USB is mounted -- in a terminal (ctrl-alt-t to start one) type:

mount

Locate the USB, and confirm that there is no "noexe" in that line.
If there is, you'll have to issue a remount command yourself to remove that qualifier.

Now you can run the program by typing its full path (/media/usr/xxxx/yyyy/sweethome3d) or  add the program's location to your PATH

export PATH=$PATH:/media/usr/xxxx/yyyy/

Consider using a home-rw file or partition to allow persistence on just your home directory.  That might be able to be on the second USB (file home-rw with ext2 filesystem).  The persistence USBs will scan FAT filesystems  for possible casper-rw and home-rw files to mount, but both are optional.

Programs may be run from anywhere, unless steps are taken to prevent them from running.  Your "Documents" USB must be mounted for you to copy files to it, so locate the program on it and try to run it.  Either the full path to the program (e.g. /media/username/..whatever../sweethome3d  or if your current directory is set to that location, try ./sweethome3d (note the dot slash in the name). Unless you explicitly have "." in your path, that ./ is necessary.


My experience with the Xonar U3 and 11.10 on a Samsung RV511 laptop has been very good.

Installation is dead simple, just plug in and go to Sound Preferences (right click on Sound icon) and the hardware, input and output tabs selecting in turn the USB Advanced Audio Device. And there you have it, a noticeably improved sound output, haven't used the Xonar with a mic yet so I can't comment on the input capabilities of the Xonar.

The Xonar can also be accessed through alsamixer, not sure whether this is any different to using the Sound Preferences (probably not).


How can I list replay of 'ls /usr/share/applications' in python

It's not trivial to understand your question, and it's probably the wrong stackexchange for this, because it's more python than Ubuntu.

That being said, I believe the code you are looking for is

import os
print(os.listdir('/usr/share/applications'))

Unless your question is really about how to list all files that end in .desktop? Then it would be

ls /usr/share/applications/*.desktop.

For more on this, you may want to look into wildcards and globbing.

I'll leave the list part as an exercise to the reader.


No root file system - Alternate CD + LVM

You need to set the mount point of root-lv to / and format it with a filesystem.

Also, you don't have to have a separate /boot partition anymore.


Problem installing ubuntu alongside windows

First, you're not dealing with memory, but with disk space. The term "memory" refers to random access memory (RAM), which is temporary storage space that's erased whenever you power off the computer. Modern desktop and laptop computers typically have about 4-16 GiB of RAM. Disk space is more permanent, and ranges in size from about 128 GB to 2 TB on modern computers. (Both RAM and disk space can be significantly less than this on older computers or on tablets or other specialty devices; and bigger than these values on high-end computers and servers.)

Your problem was ultimately created because you enabled your Compatibility Support Module (CSM; aka "legacy boot support" or something similar) in your firmware setup utility. You probably did this because you followed somebody's well-meaning but poor advice when you installed Ubuntu the first time, but it didn't bite you until recently -- or if it bit you earlier, you found a workaround. See this page of mine for details. You needn't read that to fix the current problem, but I suggest you do so at some point, or if you run into additional problems trying to solve this one.

In brief, the immediate problem is that Windows has overwritten some of the original installation's GUID Partition Table (GPT) with a simpler and smaller Master Boot Record (MBR) partition table. The result is that you've got leftover GPT data, which is confusing the Ubuntu installer. The easiest solution to this problem is to run my FixParts program on your disk. This tool is part of the gdisk package and should be accessible from a boot of the Ubuntu installer in its "try before installing" mode. FixParts will detect the extraneous GPT data and give you the chance to delete it. After you do so, the Ubuntu installation should proceed normally, with one caveat: If the Ubuntu installer boots in EFI/UEFI mode, it will either complain or try to install an EFI-mode boot loader, which won't work well with your BIOS-mode Windows installation. (This type of mis-match is another possible consequence of enabling the CSM.)

A better solution, though, is to wipe the partition table entirely (use sudo sgdisk -Z /dev/sda from an Ubuntu live CD), disable the CSM in your firmware, and re-install both Windows and Ubuntu. This solution has the advantage that you won't be as likely to run into the conditions that can lead to the problem you've encountered, or other related problems, in the future. Fundamentally, the issue is support for multiple incompatible ways of booting the computer -- BIOS/CSM/legacy vs. EFI/UEFI. Each boot mode has its own unique needs in terms of disk partitioning, and it was a switch from EFI mode to BIOS mode that created the leftover-GPT-data problem you're seeing now. Locking BIOS mode out of the equation by disabling the CSM in your firmware will simplify things and make a whole range of problems go away. You can't do that without either re-installing Windows or jumping through hoops to get Windows to boot in EFI mode, though, which is why this solution will take more effort than the one of removing the stray GPT data and installing Ubuntu in BIOS/CSM/legacy mode.


Can one define a keyboard shortcut to perform command on file selected in nautilus?

You can use scripts to do that. Look here http://g-scripts.sourceforge.net/

These can be incorporated into Nautilus for right click operation. Sharing options, copy and move per se.


CoolerMaster 5.1 headset not working properly on Ubuntu 14.04

This is a USB 1.x device, using full speed, i.e., 12 Mbit/s signalling.
This means that the bus just has not enough bandwidth for all the channels used.

To reduce bandiwth requirements,

remove all other USB devices from the same bus (it is often not obvious which ports belong to the same bus),
reduce the sample rate to 44.1 kHz, or
reduce the number of playback channels to 4.


Is it possible to disable/enable indicator in ubuntu 16.04 VM?

You are running Unity. Maybe try, as suggested here, disabling the service providing the infos for the indicators (therefore, avoiding unity indicators to launch), type :

   sudo mv /usr/lib/unity/unity-panel-service ~/unity-panel-service.bak

(You basicaly move the service file to a backup file in your home directory, to undo, simply remove them tho other way around).


Cannot log in after upgrade: xcb plugin missing

Installing libqt5xcbqpa5 helped me:

sudo apt install libqt5xcbqpa5

Rant: looks to me this was semi-intentional -- J. Riddell must be happy now.


Rearrange file contents based on two columns

I would use the awk command as following.

awk '{arr[$1]=arr[$1]d[$1]$NF; d[$1]="-"}
    END{for (x in arr) print x"\t"arr[x]}' <(sort -V <(column -t infile))

column -t infile reads the file and here prints just the columns in left alignment.
sort -V sorts the file as Version sort.
and awk just reading to the fields into array called arr with the key as column#1 and value as respecting column#3, then at the end print the elements.
Here I used process substitution <(sort -V <(column -t infile)) while we could use Pipes instead if your shell doesn't support it as muru pointed /bin/dash doesn't.

The output is:

ID      Domaind
1       Y-X-Z
2       L-M-N
3       J
4       I-k

Or you can use as below instead of holding whole file into array.

awk 'p!=$1 &&p{print l}{l=($1!=p)?$1FS$3:l"-"$3;p=$1}' <(sort -V <(column -t in))


installation of 17.10 freezes on HP Pavillion Power 15-cb0xx

I successfully run Ubuntu 16.04.4 LTS Desktop AMD64 alongside preinstalled windows 10 on a 15-cb070nz HP pavilion notebook. I needed to start linux with nomodeset:

disable secure boot in bios
boot ubuntu installation image from USB stick
on bootmanager press e and then add "nomodeset" in front of "quiet splash", then CTRL+X
Install ubuntu
After installation remove USB stick and change boot order ubuntu first in BIOS
once again: in bootmanager press e and then add "nomodeset" in front of "quiet splash", then CTRL+X
When in desktop, enter terminal with CTRL+ALT+T, and edit that GRUB starts linux every time with nomodeset:

sudo nano /etc/default/grub
add nomodeset: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset", CTRL+X
sudo update-grub
reboot

After that you should be able to running ubuntu.


Expect extra characters after close-quote

You've got bash syntax in the expect body (I don't see why you think you need a process substitution there). When dealing with quoting hell in bash, a here-document is quite handy

expect <<END_EXPECT
    spawn ssh-add "$SSH_PRIVATE_KEY"
    expect "Enter passphrase"
    send "$SSH_PASSPHRASE\r"
    expect eof
END_EXPECT


ploplinux is a bootable iso that will allow a machine to boot from USB or CDROM if it is not supported.


how to scan all clients if they contain files with a specific line of text

This

ssh user@host -p port "grep -rl 'help' /home/" >> /tmp/search.txt

will return any file inside /home that contains "help" on remote server {host} on {port} using {user} and add it to "/tmp/search.txt". This assumes {host} will accept {user} as a valid user and might prompt for passwords.

For this to work over multiple machines you could read a config file with users and hosts and iterate over them. It would probably be easier to do this in "python" or "perl" as you can easily manipulate and format the results on each pass and then write to stdout the results.


Kernel Update *breaks* Oracle Virtual Box frequently - How do I avoid this?

VirtualBox User Manual, "The VirtualBox kernel module":

  If DKMS is available and installed, the VirtualBox kernel module should always work automatically, and it will be automatically rebuilt if your host kernel is updated.

  If DKMS is not already installed, execute one of the following: On an Ubuntu system:sudo apt-get install dkms

  Otherwise, there are only two situations in which you will need to worry about the kernel module: (...)

The kernel of your Linux host was updated and DKMS is not installed. In that case, the kernel module will need to be reinstalled by executing (as root):

  /etc/init.d/vboxdrv setup