How to install Ubuntu on an encrypted, error-correcting RAID 1 device with dm-crypt?

First of all, it's likely safer to create the encrypted volumes in an extended, logical partition if using LVM on it later.

I've tried to format a partition with dm-integrity in Ubuntu 20.04 before opening the installer and while cryptsetup was able to open it, I could not create a volume group or filesystem on it, because mkfs.ext4 would fail and pvcreate resulted in:

Error reading device /dev/mapper/sda5_crypt at 0 length 512.
Error reading device /dev/mapper/sda5_crypt at 0 length 4096.
Device /dev/mapper/sda5_crypt excluded by a filter.

The installer also did not know how to handle the partitions and wouldn't let me create any partitions on it.

I did not try this on a RAID device, but I doubt that would make it any better. I also noticed that dm-integrity creates two crypt devices as seen in lsblk:

└─sda5               8:6    0 237.3G  0 part
  └─sda5_crypt_dif 253:0    0 223.2G  0 crypt
    └─sda5_crypt   253:1    0 223.2G  0 crypt

The filesystem creation worked fine on a regular luks device without integrity, so I assume that might be the issue.

When trying to open the dm-integrity device on a virtual console, even after loading all dm-crypt modules, I got the error:

  Kernel doesn't support dm-integrity mapping.

I searched for the error online and found this blog entry, which deals with a very similar issue: https://kenta.blogspot.com/2019/07/ttvdpsoo-installing-ubuntu-with-luks2.html

The author suggests to:

Install encrypted to the extent that the regular installer can do it.
Reboot into a live CD.
Basically, create an image of the entire encrypted system partitions
Reformat the encrypted partitions with the integrity option
Push the system images to the new partitions and update crypttab, initramfs

I haven't tried this and can't comment whether this works or not, but I can see that the live system would get the same errors on step 4 while trying to format the new partitions, so it would have to be a system on USB that can somehow format them correctly.

The author also mentions at the end that:

  Unfortunately, these instructions do not work for Debian Buster (RC2) (and also probably later versions of Ubuntu), because of recent changes to cryptsetup, in particular /usr/share/initramfs/hooks/cryptroot . The first error ("Source mismatch") happens in print_crypttab_entry, where dmsetup info -c -o devnos_used returns a different major number when dealing with a dm_integrity device.

At the moment, this doesn't seem to be possible unfortunately, unless one can somehow copy and reformat the entire system without any further issues. Please feel free to correct me if I made an error or there is another option.


Boot failure - goes to BusyBox - 'gave up waiting for boot device'

Try to boot without using the UUID. For this

Highlight an old, working kernel from the Grub menu.
Press e to  the menu entry for editing.
Remove the entire search line. Use the Up/Dn  to placecursor at the start of the line and hold the DEL key to delete.
On the linux line, change the part root=UUID=<long number> to root=/dev/sdXY with X being your Ubuntu drive and Y being your Ubuntu partition. .
(In your case it should be root=/dev/sda5)
CTRL+x to boot.

If above method works, after booting open terminal and execute

sudo update-grub


The usermod -p flag is expecting the data to be the password already in an encrypted format.

Use openssl passwd to generate the encrypted data, or do it like this:

usermod -p `openssl passwd` (USERNAME)


Change Xubuntu icon theme from Cubic chroot

This trick may help you, as the default icon theme in Xubuntu is Elementary xfce darker.

Create a folder in your home directory named .icons.
Copy the folder /usr/shar/icons/Paper into the folder you've just created.
Rename the folder Paper as elementary-xfce-darker.

In my tests this worked, tell if this does to you as well.


FOR QR CODE

Install the zbarimg command line application by running:

sudo apt-get install zbar-tools

Use the program, zbarimg provided by the package to read your QR encoded image

EXAMPLE

from command line:

zbarimg "image-file-name.jpg"

The above will display what is encoded in the image in the terminal.

IF you would like to generate QR code you can install qrencode from the repositories.

< input.txt qrencode -s 10 -o test.png

The above will encode the information in the input.txt file in an image file called test.png.

or you can input text from the console with;

qrencode -s 10 -o ubuntu.png http://www.ubuntu.com

The above will generate a QR encoded image called ubuntu.png with the url http://www.ubuntu.com encoded in it.

WEB APPLICATIONS

You can encode and decode online at: online barcodereader.com and at: ZXing Decoder Online

FOR DATAMATRIX

Install libdmtx-utils from the repository and try using the tools it provides.

Libdmtx is a library for reading and writing Data Matrix 2D barcodes,
two-dimensional symbols that hold a dense pattern of data with built-in error
correction.

dmtxwrite - create Data Matrix barcodes. Simple example:

dmtxwrite  -o image.png input.txt

This will encode text contained in input.txt in current directory to an image, image.png in current directory.

dmtxread - scan Data Matrix barcodes. Simple example:

dmtxread image.png

That reads the encoded image.png and writes the decoded messages to standard output.

See some tips here: http://libdmtx.wikidot.com/helpful-tips
Home page: http://libdmtx.sourceforge.net/
Resources: http://libdmtx.sourceforge.net/display.php?text=libdmtx.3


kernel package linux-headers-4.18.5-041805-generic is not supported

The gist of the messages you're getting is that the kernel version you're using, 4.18.5, is not supported by the version of the VirtualBox tools you're trying to utilize.

To that end, you should go back to the supported kernel in order to use the VBox tools, which is likely the 4.15 that you had before.  (Not sure where you got 4.18.5 from, either...)

The other option is to not use VBox Tools and go without them, but that is likely to have its own headaches involved.


Kernel Panic Troubleshooting For Dummies

My ideas:

Make sure you always keep at least one older and stable kernel version  installed.
That way, if a new kernel update causes the panic, you will still be able to restart your system with the old one.
Write down as much information as you can regarding the error.
Take a photo of the screen output with your mobile phone perhaps.
Post these messages here or in other related forums so that someone else can help you out.
Keep an Ubuntu Live-CD always close.
A package update might screw things up, but you'll still be able to boot and through a chroot make the necessary uninstallation/reinstallation of the package.


Which of VLC's dependencies causes sound device detection?

Most of the libs at http://packages.ubuntu.com/precise/vlc are X libs or other junk unrelated to sound.

Of that list, the vlc-nox dependency is likely to be what fixed it for you.  You could probably try just installing that.

However, vlc-nox also has a hefty number of dependencies:
  http://packages.ubuntu.com/precise/vlc-nox

But filtering out the video and codec packages should leave you with a shorter list to look at.  I'd probably start with ones that explicitly mention alsa or audio.


apt install crashed because of full hdd and dpkg --reconfigure does not work anymore (because of full hdd)

Try to do some clean up

sudo apt autoremove && sudo apt autoclean


Nautilus - show folder size in List view?

I don't think there is a way directly to do what you want to do - if I understand what you want properly - however you might be interested in using baobab (can be run from the command line, or from the Unity Dash - also known as Disk Usage Analyzer) when managing folder sizes.


Much lower battery life on Ubuntu and laptop heating up badly

I use Indicator-cpu , It helped me to some extent... I use the ondemand mode

sudo add-apt-repository ppa:artfwo/ppa
sudo apt-get update
sudo apt-get install indicator-cpufreq


Samba cannot share folder - cannot convert name "Everyone" to a SID

The problem was with username. I have uncommented this line:

guest account = nobody

having nobody user in my system and now it works fine.


This is the normal way to create bookmarks in Geany:

  Bookmarks

  Geany provides a handy bookmarking feature that lets you mark one or
  more lines in a document, and return the cursor to them using a key
  combination.

  To place a mark on a line, either left-mouse-click in the left margin
  of the editor window, or else use Ctrl-m. This will produce a small
  green plus symbol in the margin. You can have as many marks in a
  document as you like. Click again (or use Ctrl-m again) to remove the
  bookmark. To remove all the marks in a given document, use "Remove
  Markers" in the Document menu.

  To navigate down your document, jumping from one mark to the next, use
  Ctrl-. (control period). To go in the opposite direction on the page,
  use Ctrl-, (control comma). Using the bookmarking feature together
  with the commands to switch from one editor tab to another
  (Ctrl-PgUp/PgDn and Ctrl-Tab) provides a particularly fast way to
  navigate around multiple files.

Source

To add a list of these bookmarks, you have to install the Geany plugin "Addons":

sudo apt-get install geany-plugin-addons

To remember the bookmarks at each file load, the plugin "Numbered Booksmarks" is required:

sudo apt-get install geany-plugin-numberedbookmarks

(You have to save the file if you want save the bookmarks.)

After the installation, enable the plugin to load at startup:

Next step: Activate the bookmarklist -

Bookmarklist example:


How to Clone Ubuntu installed on USB stick onto PC HDD?


Using bash commands in keyboard shortcuts

$(...) is a shell feature, and the keyboard shortcut command is not run in a shell.

Try this instead:

sh -c 'notify-send $(fortune)'

As for sh tell-fortune.sh, without giving the full path to tell-fortune.sh, where would sh look for it?

As for sh ~/tell-fortune.sh, ~ is also a shell feature, without a shell, it will look for a file at the relative path ~/tell-fortune.sh, where ~ is taken as-is.


Xfce Volume adjusting sound applet for 12.04

It's possible to use the standard GNOME volume control.

If you add gnome-sound-applet to your application startup list (it's in the Sessions and Startup settings dialogue in standard Xfce) then it will appear in the notifications area along with network-manager, dropbox and other applets.


How can I use two-finger swipe to switch windows?

Using only two fingers may not work with all touchpads as most of the time the two fingers operations are hardcoded in the driver to perform vertical/horizontal scroll.


MDM is Not Saving Session Data .dmrc file

Too quick on the draw. Solved this problem by changing home folder permissions to exclude Reading or viewing by others.


Follow Below Instructions

sudo apt-get install python-kivy

sudo apt-get install -f   # in case any issue

sudo apt-get install python-kivy #fire again after clear dependanceis issues.

Or

sudo apt-get install python-pip
sudo pip install kivy
sudo pip install kivy --upgrade

Kivy world is wounderful for GUI Apps Development.


Keyboard shortcuts for evince annotation?

The feature was added just one month ago (Aug 10, 2018) to evince.

I guess it will be available in the next evince version 3.31. The shortcuts in the addition are "S" to add text annotation and Ctrl + H to add highlight annotations.


18.04.4 Cannot turn on remote desktop sharing

I had the same issue and i solved it , just follow my steps :

Option 1 :
1. Just type this command in your terminal : sudo apt install vino and enter your Password.

2. Reboot your machine.
3. It's worked now.

Option2 :
1. Install dconf Editor sudo apt install dconf-editor
2. Open it and go to /org/gnome/desktop/remote-access/

3. Look for require-encryption , custom value = false. Then click on Apply.

4. Open terminal and type : /usr/lib/vino/vino-server --sm-disable start
5. See settings --> sharing again.

Hope that helps you to solve your issue, Good luck.


cd.. and cd- commands not found - how do I use the cd command?

Common Commands

View Directories:  ls

The ls (LiSt) lists files in different colors with full formatted text

Create Directories:  mkdir (directory name)

The mkdir (MaKeDIRectory) command will create a directory.

Change Directories:  cd (/directory/location)

The cd (ChangeDirectory) command will change from your current directory to any directory you specify.

Copy Files/Directories: cp (file or directory name) (to directory or filename)

The cp (CoPy) command will copy any files you specify. The cp -r command will copy any directories you specify.

Remove Files/Directories: rm (file or directory name)

The rm (ReMove) command will delete any filename you specify. The rm -r command will remove any directory you specify.

Rename Files/Directories: mv (file or directory name)

The mv (MoVe) command will rename/move any file or directory you specify.

Find Files/Directories: locate (file or directory name)

to go back to previous directory: cd ..(cd [space] ..)

just for extra information

source from http://linux.about.com/od/ubuntu_doc/a/ubudg24t7.htm


When you use sudo pip install pandas (with sudo) you use the system wide binary of pip. It is probably located /usr/bin/pip. You should activate your virtualenv and run pip install pandas, without sudo. Than you use the pip binary of your virtualenv. Now pip freeze will give the expected results.


You can't simply change the animations. I had a time when I wanted to do that. If you want to change the animations for gnome-shell. You'll have to change the code for the window manager itself. I know it sucks.


Can file transfer speed be increased with an application when copy-pasting large amounts of data?

I don't think a file manager will have anything to do with speed. It more your read/write speed on the drive. your processor, memory and cache are factoring in there somewhere too.

If were talking USB drive, then we have to factor in  USB bandwidth and if anything shares the same bus (like a raspberry pi. USB and network use same bus, so if your transferring files remotely, to a USB drive there a bit of a bottleneck, but I digress)

Also, cut/paste tends to be faster, since it don't have to do all that pesky copying too.

Edit: I guess after further thought is possible may get better/worse performance from different file managers, but I think it would be so miniscule it wouldn't be noticed, unless something is pretty wrong with code of said file manager. The file managers may do things differently, but again, the speed difference would be minimal, I suspect.


This sounds like a problem with the graphics driver. Try selecting "Ubuntu 2D" in the login screen as a temporary workaround. (How to change to Unity 2D.)

Then try selecting the other available driver options in the driver selection tool. (It should show up if you type "jockey" into the dash.)


This was a screwup caused by XFCE, Gnome and KDE all being installed on my machine. I removed/uninstalled/purged all three and now I do not have any issues!


Any Browser slows entire Ubuntu (18.04.4 LTS) (Gnome) system / Only one core is being used

I had this issue on Ubuntu 14.04 a while back. I don't use Firefox on Ubuntu anymore without going into Firefox's advanced settings and removing almost everything I can find that stores data on your device.

My previous coworkers and I had found that even after closing tabs and windows, if it was still running, Firefox was saving large amounts of data to RAM and it would eventually crash the machine if we didn't regularly close all tabs and exit the browser. You can use HTOP more info on HTOP here to check how many threads (on possibly long-since closed windows and tabs) Firefox has going on your machine. If I recall correctly, this issue was specific to using Firefox with Ubuntu, and not other OSs at the time.

The advanced settings URL is about:config and it only works in the Firefox browser. Unfortunately, I do not remember which settings I changed or what finally worked. Be careful which settings you play with. At the time we edited things, information was not easily found to describe what every setting was for.


How do I install a perl module in Ubuntu 12.04?

You don't need to download the file manually, you can install it through APT, Ubuntu's packaging system.

Run this command to install it:

sudo apt-get install liblist-compare-perl


I fixed this with xinput set-prop 12 "Evdev Scrolling Distance" 5, 5, 5


Low Graphics Mode- NVIDIA. No way to desktop

once i had luck with installing "gdm" and setting it as the default display manager.  i don't know why it worked with gdm and not with lightdm.  but it worked.

for it,  you have get to the cli and give 'sudo apt-get install gdm' , (while connected to internet) , give your password and select gdm as default display manager.

to connect to internet from cli, you can use ' sudo pppoeconf and give your ethernet details or you can use a wireless hotspot, which you have previously connected,   using the already used hotspot is much easy,  as it would most probably connect automatically.


How to remove unwanted configuration files/folders?

Ubuntu Tweak 0.6.x series has introduced some new features like: Unity-specific settings and tweaks,   a built-in Computer Janitor   , options to change the theme, icons, fonts and more.

  To install the latest Ubuntu Tweak 0.6, use the commands below:

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

Or download it from Launchpad.


GUI application on (from ?) a server without X11

When using X11 only need a X server on the machine that has the keyboard and monitor you want to use, you don't need a X server on the machine the applications (X clients) are running on.

So yes, you can use the programs from your client over SSH.


running wireshark "Lua: Error during loading"

That is because (I presume) you are running wireshark as root

From the link you were given in the message:

  You need to run Wireshark or TShark on an account with sufficient privileges to capture, or need to give the account on which you're running Wireshark or TShark sufficient privileges to capture. The way this is done differs from operating system to operating system.

  To be secure (at least in a way), it is recommended that even an administrator should always run in an account with (limited) user privileges, and only start processes that really need the administrator privileges. The Security page provides explanations why this is a good idea.

  Setting network privileges for dumpcap

  Ensure your linux kernel and filesystem supports File Capabilities and also you have installed necessary tools.
  "setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap"
  Start Wireshark as non-root and ensure you see the list of interfaces and can do live capture.

so ...

sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap

don't forget to add the user to the wireshark group

sudo usermod -aG wireshark $USER

and (!) logo-off and log-on again.
Then run wireshark as a non-root user.


Qemu libusb always fails with "Operation not permitted"

I've seen such issues and they are often due to apparmor denials.
You might report your dmesg here if and which `Apparmor Denies´ it contains to match them.

Others and myself have brought several changes to the apparmor profile upstream so that works by default, but this is only available in later versions.

Below you'll find the most recent section about it and the commits in upstream libvirt.

2df320609ac # For hostdev access. The actual devices will be added dynamically
2df320609ac /sys/bus/usb/devices/ r,
f88a3d9b0c7 /sys/devices/**/usb[0-9]*/** r,
bf3a4140877 # libusb needs udev data about usb devices (~equal to content of lsusb -v)
bf3a4140877 /run/udev/data/c16[6,7]* r,
bf3a4140877 /run/udev/data/c18[0,8,9]* r,
d4d50bcc799 /run/udev/data/+usb* r,

You can add what you need to your /etc/apparmor.d/abstractions/libvirt-qemu to get that back to your installation.

There are plenty of other changes that affect the dynamic creation of rules for your guest. So if the above isn't enough you might have to try a newer version of libvirt/qemu which means a newer Ubuntu release if that gets you going.

P.S. I file this as an answer, even thou there are chances it isn't your case. But the symptoms you have match exactly, so at least others might find the answer they need here.


Is there a way to stream screen to localhost?

I've found a way to stream to localhost via VLC tool cvlc.

I just concocted it, maybe someone improves it or posts a different approach.

 cvlc screen:// :screen-fps=10 :scre-caching=100 --sout '#transcode{vcodec=mp4v,vb=4096,acodec=mpga,ab=256,scale=1,width=1280,height=800}:http{dst=0.0.0.0:1234,access=http,mux=ts}'

EDIT: I am sorry, though it answers my question, I tested it on gmediarender, it worked, but I just tested it on Tv, it won't work on Sony Bravia Tv. Maybe it's a video format issue or missing seek table in the video format which is stated here


How can I change the font of a pdf file?

Correct me if I'm wrong, but I don't think that's possible. The nature of a PDF file is that the layout is fixed so that it always looks the same.

From wikipedia: "Each PDF file encapsulates a complete description of a fixed-layout flat document, including the text, fonts, graphics, and other information needed to display it".

If you want to edit the PDFs you could try this (first hit on Google), or just search for another PDF editor.


Why did I loose my internet connection after installing a VPN client?

Make a new connection via the wireless manager; this sometimes fixes the problem.


Unable to install anything on Ubuntu 17.10 due to libreoffice

Finally I installed Synaptic Package Manager from Ubuntu Software Center which is basically GUI alternative for apt-get. It let me install all the packages which I was facing difficulty with in APT. So I installed libreoffice, python3, and python3-minimal. It solved my problem. Now I'm able to install other packages too.


Touchegg at Ubuntu Gnome 14.04, multi touch not working

I had the same issue and solved it by replacing my bluetooth stick.

See this question.

My comment to the question itself names the exact chipset that was responsible for the misbehaving in my case.


Maybe you need node (dependency to bower work), verify with:

node -v

If not installed, install node with:

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

Then try install bower with NPM as admin access:

sudo npm install -g bower


Is it possible to move the dash home button?

No. To confirm my short (and maybe unpleasant) answer, I will quote the answer given here by Mark Shuttleworth:

  In the desktop interface, the Dash icon and the Trash icon use the top
  and bottom slots of the launcher, always.


Custom Keyboard Layout to use H J K L as ARROWS not working properly

Go to xkb/types/iso9995 and edit the "THREE_LEVEL" type by adding

  preserve[Shift+LevelThree] = Shift;

so it looks like this

  partial default xkb_types "default" {

// A key type which can be used to implement
// an ISO9995-style level-three shift.

virtual_modifiers LevelThree;

type "THREE_LEVEL" {
    modifiers = Shift+LevelThree;
    map[None] = Level1;
    map[Shift] = Level2;
    map[LevelThree] = Level3;
    map[Shift+LevelThree] = Level3;
    preserve[Shift+LevelThree] = Shift;
    level_name[Level1] = "Base";
    level_name[Level2] = "Shift";
    level_name[Level3] = "Level3";
    };
};

Then go to your symbols file and use this format

    key <AC06>  { type="THREE_LEVEL", [               h,               H,            Left ]     };
    key <AC07>  { type="THREE_LEVEL", [               j,               J,            Down ]     };
    key <AC08>  { type="THREE_LEVEL", [               k,               K,              Up ]     };
    key <AC09>  { type="THREE_LEVEL", [               l,               L,           Right ]     };

This is a related question from which I could figure out the answer to yours.


"Filter failed" stopping all printing - Xerox

I got the same error with a different Printer.

Looks like it is related to this bug https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1718215. So hopefully it will be solved with the next version of the package cups-filters-core-drivers 1.17.7.


Ubuntu Cloud Setup without formating node HDD

No it's not possible with MAAS to do this, it's designed to provision nodes from bare metal, this includes formatting and adding it to MAAS so that services can be deployed on it.


How to set a "3rd level" keyboard option in Kubuntu 18.04 for the Compose key?

In KDE to have 3rd level enabled and to allow entering Extra Typographic characters you should open Keyboard — Keyboard Hardware and Layout (kcmshell5 kcm_keyboard) and then set the following options:

in Key to choose the 3rd level choose Right Alt (as an example)

in Miscellaneous compatibility options check Enable extra typographic characters

and as the result you will get 3rd level for your keyboard layout.


Nope. It is a windows application. WineHQ has a garbage rating so the only option is through virtualization (VirtualBox or VM Player).

  as sub-searchers

VLC nowadays uses the VLSub extension as an integral part of VLC ("View", "VLSub/Download Subtitles").


Try this:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
apt-get update
apt-get install --reinstall aptitude deborphan
aptitude remove '?and(?reverse-depends(gnome),?not(?reverse-depends(?exact-name(budgie-desktop))))'
aptitude remove '?and(?reverse-depends(unity),?not(?reverse-depends(?exact-name(budgie-desktop))))'
apt-get install --reinstall budgie-desktop
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
apt-get autoremove
apt-get clean
reboot


There is nothing wrong with the command update-grub (which is actually a little shortcut for the command grub-mkconfig -o /boot/grub/grub.cfg) on your system. You have simply inserted some junk text into your /etc/default/grub file somehow when you were editing it:

zanna@toaster:~$ sudo update-grub
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: junk: not found

In my case the junk is on line 35. In your case, it's in line 1. Either you inserted the bad text at the beginning, or you overwrote the whole file.

You can probably fix this by editing the file again and removing the line containing ******* (or whatever that represents in your question), and any other lines you inserted which should not be there.

You will usually find the most recently downloaded package maintainer's version of the file for your system at /var/lib/ucf/cache/:etc:default:grub. You may read this file by running, for example:

cat /var/lib/ucf/cache/:etc:default:grub

You may see the differences between your edited file and this one by running, for example:

diff /var/lib/ucf/cache/:etc:default:grub /etc/default/grub

And in the worst case scenario that you need to replace your missing or broken /etc/default/grub then you could use this command (note that the existing /etc/default/grub is silently overwritten by this command).

sudo cp /var/lib/ucf/cache/:etc:default:grub /etc/default/grub


How can I change the default name that kate and gedit give to new documents?

I just checked the source codes of both the softwares and unfortunately we can't change those names, as those are hardcoded :(

For Kate : http://bazaar.launchpad.net/~neon/kate/kate/view/head:/part/document/katedocument.cpp#L3652

For gedit : https://git.gnome.org/browse/gedit/tree/gedit/gedit-document.c#n1223


Do not changed background on login screen

I create bug https://bugs.kde.org/show_bug.cgi?id=384222.
But really I'm get mistake. I forgot that login and lock screen has different settings.


Is it possible to use empathy in new facebook video chat?

Answered in comments by xangua

  No, and sice Empathy uses the Facebook XMPP server and this will be shutted down in a couple of weeks things seem a little dark


Research indicates that the information available on that interface is minimal however, It appears from your pastebin output that firmware is failing to load and no channel is getting configured. Since the QCA9377 supports it you might try iw which is a "new" nl80211 based CLI configuration utility for wireless devices. It supports all new drivers that have been added to the kernel recently. The old tool iwconfing, which uses Wireless Extensions interface, is deprecated and it's strongly recommended to switch to iw and nl80211.

You might start by insuring that there is no stronger signal than yours on the frequency/channel you intend to use (and if so pick a less crowded one) I've found the android app Wifi Analyzer useful in determining what the best channel to use in a specific area is. Having made this determination you can continue with configuring your router to that channel and then wireless as well with iw Documentation is available here.

You can get further useful information by getting station statistics against a peer

If you want to get specific statistics against a peer your station is communicating with you can use the following:

sudo iw dev wlp3s0 station get <peer-MAC-address>
In the case of a STA the above  would be the MAC address of your AP (router). Where wlp3s0 is your wireless device which matches to your pastebin output of wlp3s0: renamed from wlan0

You can use iw to specify specific Tx rates and Tx power as well which might be quite useful under the circumstances. I might also try turning off power saving for the interface. You can check it with  iw dev wlp3s0 get power_save

If it's on you can turn it off with sudo iw dev wlp3s0 set power_save off


Nautilus Connect to Server using open ssh

Default place where your ssh keys are stored is ~/.ssh/id_rsa for RSA key. But you can store the key in other places and say ssh, where it is using ~/.ssh/config, for example:

Host my-remote.com
  IdentityFile ~/.ssh/my_remote_rsa

The default files should certainly work and it should be picked up and used.


Looks like there are two obsolete gems(?) called in this example. Gem::SourceIndex#add_spec and rake/rdoctask.

If rake is replaced with rdoc/task, I think it will correct the problem.

Our problem (I ran into the same thing trying to run a book example) is how to go about replacing the rake function with rdoc. Can you just drop rdoc in in place of rake? May be worth a try; but, I haven't got around to it yet.

I was going to try to research the rdoc first when I came across your question. Hope somebody with the answer pops in but I thought you'd like to know at least someone else is working on it.


How can i solve this? Theres a problem with AMD configurations

amdconfig appears to be in the fglrx package.  You need to install it:

sudo apt-get install fglrx

Reference:

chris@chris-office:~$ apt-file search amdconfig
fglrx: /usr/lib/fglrx/bin/amdconfig
fglrx-updates: /usr/lib/fglrx/bin/amdconfig


Unable to share application window to apps (Google Meet, Discord)

BIOS
Dell Inspiron 7460
You have BIOS 1.11.0.
There's a newer BIOS available, 1.12.0, dated Mar 12, 2020, and can be downloaded here.
Note: Confirm that I have the correct web page for your model #.
Note: Have good backups before updating the BIOS.
Discord
Know that Discord is basically spyware, in my opinion. It has code that determines what other software that you're running at the same time. That's none of "their" business. The snap version of Discord also bombs /var/log/syslog with error messages, unless you've given it permissions to go outside of its sandbox (bad idea).
Update #1:
We've isolated the problem to something in your own account.
I'll outline a procedure to try and isolate common trouble areas.
There are three folders that can typically cause problems:

~/.cache
~/.local
~/.config

The process is the same to eliminate ONE FOLDER AT A TIME. I'll use ~/.cache as the example.
Note: It's normal for some system/application settings to change during this procedure. Screen resolution, etc. That's normal. Don't panic.

rename ~/.cache to ~/.cache.HOLD
a fresh new ~/.cache folder will get recreated at log in
log out of your account
log back into your account
try to recreate the sharing problem
if the problem still exists, then ~/.cache is not the problem, then do:
MOVE the fresh new ~/.cache folder out to the Desktop, we'll trash it later
rename ~/.cache.HOLD to ~/.cache
IMMEDIATELY log out
log back in
if the problem is fixed, then the problem exists in the ~/.cache.HOLD folder, then do:
MOVE, NOT COPY, everything from ~/.cache.HOLD folder back into the fresh new ~/.cache folder, SKIPPING any existing files
anything left over in the ~/.cache.HOLD folder is potentially bad
done


You can install thunar-archive-plugin from the software center or from the command-line by sudo apt-get install thunar-archive-plugin. It's a tiny install and when you next open Thunar and right-click on a file or folder, you'll see the Create Archive ... option:

On reflection, thunar-archive-plugin shoud be installed by default in Xubuntu. So, you should see it in default Xubuntu or even if you install xubuntu-desktop.


How to fix GDM3 Login loop (Ubuntu 16.04 LTS)

Ok so I did a few things but I'm fairly sure these are the lines that fixed my problem:

apt-get remove gnome-settings-daemon

apt-get install gnome-settings-daemon chrome-gnome-shell gdm3 gnome-control-center gnome-session gnome-settings-daemon gnome-shell

I have absolutely no clue why that is, but it just is. Just thought I might post so maybe some other people could use it.

If someone could explain it in the comments that would be awesome.


Ubuntu 16.10. how to resize fonts and icon?

It might be due to the upgrade that your resolution changed - pls check in ystem Settings - Displays` and if you use propriatory drivers, check if those are installed.

Also in System-Settings - Displays there is a slider named Scale for menu and title bars which changes system wide theme settings, some applications though might need extra changes.

The View and Behaviour of Nautilus can be changed in an open window via Files-Preferences.

The best place for almost all Settings regarding look&feel of your desktop is dconf-editor - which needs to be installed first.


I want to install the 14.6 beta. I want to use the open source
  version, instead of downloading from AMD's website

Well, you either use the open source drivers or the latest beta drivers(Also called 'proprietary' drivers) which is not open source. For the open source drivers you can open the Dash(Press Super key aka Windows key). Then start typing 'Additional drivers'. When you open the Additional drivers window you will something similar to this :-

There(as it is seen above) select the one that says open source, tested and you will be using the open source drivers.

For the latest beta you need to take this.


Start a full Ubuntu install from 128GB USB stick on MacOSX laptop with EFI

Live, persistent live and installed systems in USB drives

It can work to install an Ubuntu based system like into an internal drive but into a USB drive, and I have done it many times, but only with PC computers. I have no Mac computer, so I don't know the details how to do that.
You can make a live drive work in a Mac computer, and you should also be able to make a persistent live drive work.

Try with mkusb installed temporarily into your current Kubuntu live drive), or
try with a simpler method that works with Kubuntu 19.10 using mkusb-minp.

Suggested method for installed system to work from USB in a Mac

It should also be possible to make an installed system in a USB drive like you tried to do it, maybe with some minor modification. But it is more likely to work with the boot system of mkusb to make an installed Kubuntu system work from USB as described by C.S.Cameron. So I suggest to

boot into the Kubuntu live drive
install mkusb and have the iso file available (in a mounted partition)
use mkusb to create a persistent live drive in another drive, the 'target USB'
continue with gparted according to the method described by C.S.Cameron in the last link (which is an answer to another question here at AskUbuntu).

See the following links

mkusb
mkusb/persistent
How is it easier to make a persistent live drive with Ubuntu 19.10?

Installed system in USB ('standard' method)
Installed system booting via mkusb's boot system by C.S.Cameron


Linphone - Only default sound device available?

Try Ekiga, it works great and is in the Software Center. You can skip adding their SIP service. Ekiga has options for all the things you want , where you can decide what outputs the ring, the sound, etc.


How to create inside each directory a .txt file that is called as the directory with find command

In the find command, make use of -execdir instead of -exec, so the touch-command will be executed in the directory where find found a match. Use

find /path/to/directory -type d -execdir touch "{}"/folder.txt \;

or

find /path/to/directory -type d -execdir touch "{}"/"{}"folder.txt \;

depending on your desired file-name. The command you used does not produce the file-name you described in your question,so it's not really clear to me what you need here, but you can modify this examples to fulfill your needs. The first example matches the command you used, the second example matches your description.


Google Chrome: https://chrome.google.com/webstore/detail/blocksi-web-filtering-and/pgmjaihnmedpcdkjcgigocogcbffgkbn

Is it something like this you are looking for?

/Emanuel


Problem running ubuntu alongside windows 10

Have you tried to disable the Windows Fast Startup function?
This has caused me the same problem in the past. Try running this command from the Windows cmd Prompt:

Shutdown.exe -s -t 00

It will shutdown windows completely and if you still don't get the grub menu, then try setting grub as the boot manager for Windows with this cmd:

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi


Ubuntu 16.04 doesn't support wide screen 2560x1024

You can set up a custom resolution using xrandr. For example to get a display size of 2940 x 1260 at 55 Hz (nice easy-read resolution for an ultra wide screen):

sudo cvt 2940 1260 55
sudo xrandr --newmode "2944x1260_55.00"  284.00  2944 3144 3456 3968  1260 1263 1273 1303 -hsync +vsync
sudo xrandr --addmode HDMI-1-1 2944x1260_55.00

Note: Step 2 uses the output of step one. This resolution will now be listed as part of your display options.

Now if this worked, you may find that your settings are gone after you restart. So to make xrander load the mode after restart:

nano $HOME/.xprofile
Add the commands from step 2 and 3 to the file.
chmod +x $HOME/.xprofile

Your mileage may vary, but his worked like a charm for me. Hopefully it gets you down the right track at least.


Safe to exclude ~/.local/share/zeitgeist in a home folder backup?

Zeitgeist is effectively an activity logger (it does some other things), and removing it is entirely safe, so i would assume not backing up its data would not be harmful to your system. You would only be losing a list of recently run applications and accessed files.

More information on Zeitgeist


How to setup LBaaS with Openstack and Juju?

We figured it out.  We needed to add configuration to neutron-openvswitch to enable LBaaS agent.

juju ssh neutron-openvswitch/0
Install lb agent

sudo apt-get install neutron-lbaas-agent
Modify /etc/neutron/neutron.conf by adding the following lines

service_provider = LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
service_plugins = lbaas
Restart LB agent service

sudo neutron-lbaas-agent restart
This works with our previous step already being done

juju set openstack-dashboard neutron-network-lb=True

but the order doesn't matter.  Dashboard can be modified after the neutron configuration changes as well.


Hydra 7.5

This package is in Official Ubuntu Repository

You can install hydra by:

sudo apt-get install hydra hydra-gtk

Hydra 8.0

This can be installed with the Launchpad reository ppa:pi-rho/security

sudo add-apt-repository ppa:pi-rho/security

sudo apt-get update

sudo apt-get install hydra


Run in terminal:

sudo apt-get remove --purge lxde*

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

sudo apt-get autoremove

Reboot.

This should be it.


Disable ipv6.  You can do this by:

$ sudo nano /etc/sysctl.conf

Append this:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Run this command:

$ sudo sysctl -p

Details at: https://help.ubuntu.com/community/WebBrowsingSlowIPv6IPv4


Linux keeps on Logging and freezing after entering password

As per this bug report edit your grub command line with:

pci=noaer

I'm on mobile but will update from computer with instructions on how to update grub.


Is the 32 GB Nexus 7 compatible with Ubuntu?

I have just added support for 32GB variants via the ubuntu-nexus7-installer package (version 1.3):

https://launchpad.net/~ubuntu-nexus7/+archive/ubuntu-nexus7-installer/+packages

... working like a charm on my 32gb varient, let me know if you run into any oddities, No special rules apply for this image, just select 32GB and let the installer do its thing :)

Feedback appreciated!


How to merge multiple PDF files into a single file?

Yes, pdftk, in the pdftk package.

From the man pdftk page:

   If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses.  Pdftk is a simple tool for doing everyday things with PDF documents.  Use it to:

   * Merge PDF Documents or Collate PDF Page Scans
   * Split PDF Pages into a New Document
   * Rotate PDF Documents or Pages
   * Decrypt Input as Necessary (Password Required)
   * Encrypt Output as Desired
   * Fill PDF Forms with X/FDF Data and/or Flatten Forms
   * Generate FDF Data Stencils from PDF Forms
   * Apply a Background Watermark or a Foreground Stamp
   * Report PDF Metrics, Bookmarks and Metadata
   * Add/Update PDF Bookmarks or Metadata
   * Attach Files to PDF Pages or the PDF Document
   * Unpack PDF Attachments
   * Burst a PDF Document into Single Pages
   * Uncompress and Re-Compress Page Streams
   * Repair Corrupted PDF (Where Possible)


http sends a URL with the request (that's how multiple domains can be served under one IP address in clouds etc...). So websites are being programmed expecting the URL and don't like to be accessed by IP so some do funny stuff. Like google redirects me back go google.com when i try to access it by IP http://172.217.0.46, yahoo shows Will be right back... at http://98.139.183.24


LibreOffice exports pdf with mangled outline view when using Heading 3 style

You haven't mentioned the version of LibreOffice you're using but I have no problem with Heading 3 entries after exporting to PDF format.

The image below shows Evince with a pdf file generated in Libreoffice 6.0.7 running on Ubuntu 18.04. (I also have tried with LibreOffice 6.3 running on Kubuntu 18.04 and have no problem there either.)

As you can see, the pdf file is in the foreground and the parent .odt file is in the background; both show a Heading 3 item on screen. The first line of the paragraph below the heading does not appear in the pdfviewer's outline pane.

(The link to the .odt file used is https://wiki.documentfoundation.org/images/e/eb/CG3401-IntroducingCalc.odt.)


microphone level keeps going up and down

This question helped me Kubuntu microphone volume level keeps going down . Zoom has the same automatic adjustment feature. I turned it off.


Another MySQL daemon is already running?

Have you got the ubuntu mysql installed as well as the LAMPP one? I would stop everything and then stat LAMPP

 sudo /opt/lampp/lampp stop
 sudo /etc/init.d/mysql stop
 sudo /opt/lampp/lampp start


Is Mutter supposed to be my window manager on plain Ubuntu?

No, it must be lightdm.
Restore it by using:

  sudo dpkg-reconfigure lightdm

or

  sudo dpkg-reconfigure gdm


How can I remap my keyboard to create a lefthand numpad?

I am into custom keyboards running QMK and such which allows to redefine every key and allows advanced behaviours such as layers. I recentley came across Kmonad which is a software tool which allows most of the same features. I haven't tried it myself, but this should allow you to hold down or toggle a key to activate a layer on which you can map numbers to the left side of the keyboard.
Here is a link to the github;
https://github.com/david-janssen/kmonad
I think Kmonad is also included in a lot of recent distros so it might already be available in APT.


Search for shared lib using using:

locate libreadline.so

Then run configure with --readlinelib option:

./configure --readlinelib=/lib/x86_64-linux-gnu/libreadline.so.6 --prefix=/usr/local
make
sudo make install

If cint couldn't find the shared lib libCint.so.

sudo ln /usr/local/lib/libCint.so /usr/lib/libCint.so

or you may add /usr/local/lib to ld load path:

sudo echo "/usr/local/lib" >> /etc/ld.so.conf.d/usr-local.conf
sudo ldconfig

But keep in mind this not recommended, Local installed lib's may conflict with Distribution installed libs. So make links instead if you get such problems.
If it didn't work.  There are multiple readline lib versions. see if they work.

If your OS is 64bit install:

sudo apt-get install lib64readline6-dev:i386

I have checked it and it does work. Otherwise check the other one of 32bit:

sudo apt-get install lib32readline6-dev


Upstart doesn't recognize desktop-unlock event

Upstart has two types of jobs, session and system. system jobs only react to system events, but session jobs can react to session events or system events (when using the :sys: prefix).

desktop-lock and desktop-unlock are session events. You need to place your upstart job into ~/.config/upstart/ for it to work correctly. Please note that it will therefore be run as your user, not as root.


How to use .XCompose to produce snippets?

There is a bug report 1845332 about this at launchpad.
Could you please mark it also affects you?

Upd: There is a response for this bug report.

How to make Compose key combination generate strings (Ubuntu 18.04):

Open Settings → Region & Language → Manage installed languages → (Language tab)
Switch Keyboard input method system to XIM.
Close.
Reload.

It supposed to work also for distributions based on Ubuntu.

If XIM is working better, why it is not default?

Explanation:
(see answer for original bug report)

For keyboard input Ubuntu can use XIM (X Input Method) or IBus (Intelligent Input Bus) or none.

XIM is very old, it was designed for X (X Window System). If/when Ubuntu switches from X to Wayland it will be most likely dropped.

The default keyboard input method now (18.04) is IBus, because Ubuntu uses GNOME for GUI and GNOME relies on IBus to a large extent.
When IBus is selected for keyboard input method, GTK (not IBus) deals with Compose key combinations. GTK is not able to handle multi character strings. So it is not an IBus bug, it is GTK feature. No fix is expected here.

From the other side, XIM can make problems too, and most likely they will not be repaired either.

So far XIM works for me. I wonder what will happen with this issue if XIM will pass away.


Is using dpkg a must for using unattended-upgrades?

When you first install a package, you are sometimes asked some questions about how you plan to use it; your answers to those questions are then used by the system to do some initial configuration of the package. The command dpkg-reconfigure is used when you want the system to ask you those questions again after installing the package, for example when you change your mind about some of them.

The questions are divided into four priority levels as follows (from man 7 debconf*):

low    Very trivial questions that have defaults that will work in the vast majority of cases.

medium Normal questions that have reasonable defaults.

high   Questions that don't have a reasonable default.

critical Questions that you really, really need to see (or else).

The --priority flag of dpkg-reconfigure lets you specify the minimal priority level of the questions you will be asked; for example --priority=high says you want to be asked only the questions whose priority level is high or higher, and not be bothered by lower-priority questions. This is what happens automatically when you first install the package.

The source you have been reading, however, considers that, for the package unattended-upgrades, it is important that you answer the low- and medium-priority questions as well. Since you are not asked those questions during installation, it therefore recommends that you run dpkg-reconfigure with --priority=low afterwards.

* This man page is not installed by default; it is available in the package debconf-doc or online.


Creating the two column design of a scientific paper

If you decide to go with LaTeX, you can get pre-made templates for conference proceedings and IEEE transactions (journals) from the IEEE website. They also have Microsoft Word 2003 'templates' there (really just doc files) which should work to some extent in LibreOffice, at least to provide a basic format you can start with.

Everyone will have their own favorite TeX/LaTeX environment - personally I'm using TeXmaker at the moment (which you can find in the repository). To use the IEEE templates you will probably also need to install the texlive-fonts-recommended package.


How to know the vertical position of the command prompt?

See How to get the cursor position in bash on Stack Overflow. Essentially,

echo -en '\e[6n'
read -sdR CURSORPOS
CURSORPOS="${CURSORPOS#*[}"

$CURSORPOS will be <line>;<column>. Works for Gnome Terminal, XTerm, Linux console.


Where is the delete account button in Thunderbird on Ubuntu 12.04

Go to Edit → Account Settings, select the account, go to the bottom left Account Actions and choose Remove Account:

If your screen is too small you have to maximize the window first.


How to stop constantly blinking Wifi LED?

Turning LED blinking off for Intel Wireless Cards (and some Atheros)

Note: based on an extensive study of all in-kernel wireless drivers (i.e. compat-wireless, only Intel cards and one Atheros chipset support module options to control LED behavior. Note that the actual LED control code in most drivers is fairly simple, so if you have basic familiarity with C, building kernel modules and reading the occasional datasheet, it's pretty easy to disable LED blinking for almost any wifi card with an open-source driver.

Press Alt+F2, and type gksudo gedit /etc/modprobe.d/iwled.conf (or open this file in your favorite editor)
Add the line options MODULE_NAME led_mode=1

MODULE_NAME is listed below for your Ubuntu version and your card model
Replace led_mode with the appropriate option if it is indicated, for the Intel 2200BG/2900ABG or Atheros cards

Save and exit the editor; reboot

1. Ubuntu 13.04 (Raring Ringtail) - kernel series 3.8

iwlwifi for Intel Centrino Wireless-N series 1xx, 1xxx, 2xx, 2xxx, 5xxx, 6xxx
iwlegacy for Intel Wireless series 3945 (tested), 4965
ipw2200 with led=0 for Intel Pro/Wireless 2200BG, 2915ABG
ath9k with blink=0 for Atheros wireless cards using the ath9k driver

2. Ubuntu 12.04 (Precise) - kernel series 3.2

iwlwifi for Intel Centrino Wireless-N series 1xx, 1xxx, 2xx, 2xxx, 5xxx, 6xxx
iwl-legacy for Intel Wireless series 3945, 4965
ipw2200 with led=0 for Intel Pro/Wireless 2200BG, 2915ABG
ath9k with blink=0 for Atheros wireless cards using the ath9k driver

3. Ubuntu 11.10 (Oneiric) - kernel series 3.0

iwlagn for Intel Centrino Wireless-N series 1xx, 1xxx, 2xx, 2xxx, 5xxx, 6xxx
iwl-legacy for Intel Wireless series 3945, 4965
ipw2200 with led=0 for Intel Pro/Wireless 2200BG, 2915ABG
ath9k with blink=0 for Atheros wireless cards using the ath9k driver

4. Ubuntu 11.04 (Lucid) - kernel series 2.6

iwlcore for Intel Centrino Wireless-N series 1xx, 1xxx, 2xx, 2xxx, 3945, 4965, 5xxx, 6xxx
ipw2200 with led=0 for Intel Pro/Wireless 2200BG, 2915ABG
ath9k with blink=0 for Atheros wireless cards using the ath9k driver

5. Ubuntu 10.04 (Lucid) - kernel series 2.6

The default for supported Intel Centrino cards in 10.04 is to simply keep the LED on if wireless is on (and off otherwise), so this "mod" should not be needed (thanks htorque!)
ipw2200 with led=0 for Intel Pro/Wireless 2200BG, 2915ABG
ath9k with blink=0 for Atheros wireless cards using the ath9k driver


Normally they exist simultaneously.

List available versions:

$ qtchooser -l
4
5
default
qt4-i386-linux-gnu
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5.5-x86_64-linux-gnu
qt5

Find out where it is:

$ qtchooser -qt=4 -print-env
QT_SELECT="4"
QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt4/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"

Use it with qmake:

$ qmake -qt=5 --version
QMake version 3.0
Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu

For CMake set CMAKE_PREFIX_PATH to things like /usr/lib/x86_64-linux-gnu/qt5/lib/cmake/ (for Qt installs from the package manager) or /data/qt/Qt-5.5/5.5/gcc_64/lib/cmake/ (that kind of structure comes from the manual installs).


Laptop won't boot after upgrade to 15.10: The master control interrupt lied (any kernel)

Not sure if this would apply to everyone, but it worked for me: I downloaded 15.10 to a USB stick and run the installation again from scratch.
It wrote over the existing install, kept my home directory and even some of the installed applications. For example, once I reinstalled Java from Oracle, the previously installed PyCharm started working again. Even steam still had my account logged in once I reinstalled it.


How to get the latest gVim on Ubuntu 14.04?

An AppImage is basically just a self-mounting filesystem image that contains the application and everything it needs to run in a single file.

Here is an example that builds GNU Emacs on Travis CI and packages it as an AppImage: https://github.com/probonopd/Emacs.AppImage

You should be able to to the same for gVim.

Gather suitable binaries. If the application has already been compiled, you can use existing binaries (for example, contained in .tar.gz, deb, or rpm archives). Note that the binaries must not be compiled on newer distributions than the ones you are targeting. In other words, if you are targeting Ubuntu 9.10, you should not use binaries compiled on Ubuntu 10.04. For upstream projects, it might be advantageous to compile special builds for use in AppImages, which is what I would recommend in this case. See the GNU Emacs example above. (For re-using existing binaries, see https://github.com/probonopd/AppImages/tree/master/recipes/meta instead.)
Gather suitable binaries of all dependencies that are not part of the base operating systems you are targeting. For example, if you are targeting Ubuntu, Fedora, and openSUSE, then you need to gather all libraries and other dependencies that your app requires to run that are not part of Ubuntu, Fedora, and openSUSE in the default installation.
Create a working AppDir from your binaries. A working AppImage runs your app when you execute its AppRun file. Again, see the GNU Emacs example linked above.
Turn your AppDir into an AppImage. This compresses the contents of your AppDir into a single, self-mounting and self-executable file. The example above uses the generate_type2_appimage function from functions.sh for this.
Test your AppImage on all base operating systems you are targeting. This is an important step which you should not skip. Subtle differences in distributions make this a must. While it is possible in most cases to create AppImages that run on various distributions, this does not come automatically, but requires careful hand-tuning.

This sounds more complicated than it actually is, all the steps besides the testing can be done on one small bash script like in the example. As you can see at https://github.com/probonopd/Emacs.AppImage, it is easy to produce an AppImage.

I recommend to work together with the upstream authors of the software, so that the upstream project themselves will provide an official AppImage. This way, the upstream project can control the end-to-end user experience of their software; something many upstream application projects appreciate. Users also can be assured that the AppImage is put together exactly in the way the original authors of the software intended and not changed in some way by intermediaries.


[Ubuntu 18.04]Cannot connect to Cisco VPN

I am also searching on this, so far I found this works for me (I can login and pass the 2FA with okta verify): https://askubuntu.com/a/1038863


How to install Python 3.6 in virtual environment?

This question has been answered by @edwinksl here: https://askubuntu.com/a/865569

The 3.6 version of Python doesn't seem to have been added to the official repositories for Ubuntu 16.04 LTS. However there are others that have created repositories for it, among them J Fernyhough. You can add and install Python 3.6 via his repo:

sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6


Try another theme. Make sure in the description of the theme page has "3.4 compatible" in it.


Where are my themes? I am in 12.04 logged on to Gnome Classic

Edit: Wrong answer, sorry!
Correct answer here:

When a theme is downloaded from the internet, it is usually placed in an archive. All you need to do is extract this archive to the .themes folder, located in your home folder. To see hidden files (EG. those beginning with a .) press CTRL+H. If the folder isn't there, don't panic. Just create said folder, and extract the theme archive into this spot.

ALSO: Some themes have a set of instructions for installation on their website. This would be a good place to check.

OLD ANSWER:

Ubuntu 11.10 and newer uses GTK+ 3, meaning it uses a completely different system for displaying applications. This said, it still supports theming.

First, make sure your themes are compatible. If you had the "clearlooks" theme, and you really liked it and wanted to continue using it, google "clearlooks for GTK 3."

Also, the appearance dialogue is annoyingly limited now. It currently supports the Ambiance, Radiance, Adwaita, High Contrast, and High Contrast Inverse themes ONLY.

In order to get around this, you will need something called the "tweak tool." It can be downloaded through the software center or the Synaptic Package Manager by searching for "gnome-tweak-tool" or running the command sudo apt-get install gnome-tweak-tool in the terminal. Once that is done, look for something that says either "Advanced Settings" or "Tweak Tool" in your Accessories and System menus, and then launch it once you have found it. On the sidebar, click "Theme" and you will be presented with the option to change your theme. Hope it helps!


DLNA Server/Control Point like Windows Media Player

The control points in Gupnp-tools  are very basic, more a testing tool than a every day media player. Try rygel as a DLNA server and eezUPNP as a control point. There is also kinsky by Linn, but I wasn't able to get it to work, keeps crashing. Another alternative may be serviio, but I haven't tried that yet.


ssh: connect to host github.com port 22: Connection refused

Have you tried using port 443, and adding ssh. subdomain prefix?

This command will test it.  You should get an error since a shell is not supported.

ssh -T -p 443 git@ssh.github.com

Then you can use a full URL to specify the project path, see Stack Overflow answer for details:

ssh://git@ssh.github.com:443/yourname/reponame.git


Geany find and replace characters with accent

You don't need the regular expressions.

Go in the document to Rubén.
Select the é
Copy the é
Goto Search for and paste the é
Enter your Replacement-character


You can modify the font here : Window > Preferences > General > Appearance > Colors and Fonts.


How to speed up "Getting printer information"?

Disable Listening on /var/run/cups/cups.sock in cupsd.conf, keeping only "Listen localhost:631". See comment #29 in https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/475845

sudo perl -i.bak -pe 's/^(Listen .*cups\.sock)/#$1/' /etc/cups/cupsd.conf
sudo /etc/init.d/cups restart

If your application doesn't show any printers any more, restart it.


First, any partitioning operation is at least a little risky. You should always have backups and a recovery plan in case of data loss or a loss of bootability.

In the BIOS arena, moving a partition can render it unbootable because many boot loaders rely on absolute sector values to locate more complex parts of themselves. If that sector is in a partition that moves, the reference is unlikely to be updated, and the boot will fail. Details vary from one boot loader to another, though, which makes predicting the results of moving a partition difficult. In your case, you're not using BIOS, which means that BIOS rules don't apply. Unfortunately, there's an EFI issue that can be almost as pernicious: Under EFI, boot loader information is stored in NVRAM. These entries point to boot loaders by using various types of information, including a filename, a partition GUID, a partition number, and a disk hardware identifying code. Most of these things will not change when you move your partition, but its partition number might change.

You could protect yourself against this possibility in various ways. The simplest might be to create a small (say, 1MiB) partition before your current /dev/sda2. That way, if GParted (or some other tool) decides to number your partitions in a rising sequence, your current /dev/sda2 will remain /dev/sda2 (or the EFI's equivalent of that). Another thing you could do would be to use the transpose feature of gdisk (the t option on the experts' menu) to swap partition numbers, should your current /dev/sda2 become /dev/sda1. (Note that you can swap an existing partition number with an empty one, so this can work even if there ends up being no /dev/sda2.) In either case, though, you should be proactive -- some EFIs completely delete boot entries that are invalid, so if your partition numbers change and you try to boot, the entries may be lost and you'll have to re-create them. Check your partition numbers before rebooting, and if your ESP is no longer /dev/sda2, take action immediately.

Personally, I think it would be easier (and cleaner) to plan to restore your boot loader(s). You've probably got GRUB installed now, so you could use Boot Repair, which usually does a decent job restoring GRUB setups. If you install another couple of OSes, Boot Repair might or might not do as good a job -- but then, if you install another OS, it will install its own boot loader/manager, which might do what you need. (If it doesn't do what you need, you'll have to take action to fix it, since the new OS will almost certainly set its boot loader as the default one.) Another option and generally useful backup is having my rEFInd installed on a USB flash drive. It can help boot in an emergency situation, since it relies less on configuration files than most boot loaders. If the GRUB setup starts getting confused by having too many OSes, rEFInd might do a better job as your regular boot manager, too -- but that's a matter of both personal preference and what works well in particular situations.


VLC does not save my settings for TracktForVLC

According to an answer in unix SE, changing VLC binary will allow you run vlc as root :

sed -i 's/geteuid/getppid/' /usr/bin/vlc

However run in root is a bad idea, as you should not use a root account for doing anything other than installing/user management.


Install the package vim-scripts and vim-addon-manager, then do vim-addons install debPlugin. The second package is solely for vim-addons. The relevant file is /usr/share/vim-scripts/plugin/debPlugin.vim, which in turn states that it is the deb.vim plugin.


How do I sync music with Banshee and my iOS 5 device?

At present it seems banshee does not support iOS 5 due to 'libgpod' not supporting iPhone 4 or the iPod touch 4G.

See the Sourceforge release notes for more info


Picture: Stuck Screen (multiple colors) While Installing Any Distro

The boot menu offers a low graphics mode and even a text mode installer in case there's no working graphics driver included with the installation medium. It would be crucial to get your keyboard working so you can select the right mode.

The issue is usually a BIOS setting for “legacy“ USB devices, which you can read about in the manual of your computer/mainboard.
Investigate that issue on the internet, in particular the forums of your computer or mainboard manufacturer.
AskUbuntu should have a bunch of related issues as well. Often just playing around with the few different USB options can solve the issue.
Alternatively try a PS/2 keyboard, if you computer still has such a connector; USB keyboards often come with PS/2 adapters.


The exact location depends on your system, but you should be able to find it using this command in the terminal:

kde4-config --path config --locate kmailrc


How EC2 instances don't require password for sudo for Ubuntu user but 'include' is commented?

The line is not commented - it's a C-style include directive. From man sudoers:

  Including other files from within sudoers

  It is possible to include
   other sudoers files from within the sudoers   file currently being
   parsed using the #include and #includedir directives.


really i dont know what happen, i make

sudo alsa force-reload && reboot

you can also install
    sudo apt-get install pavucontrol

and in activities find pavucontrol and you can control dissapear devices

and working, really i dont know what happen, i test with card of pc and external monitor and tv


How to Fix Firefox when it freezes completely after open it?

It sounds possible you have a problem with an Add-On causing an issue.

I would suggest attempting to start firefox in safe mode with all your addons etc disabled and see if that stops the application freezing on startup.  You can do so by running the following command.

firefox -safe-mode

You should then get a dialog box with several options make sure that Disabled all add-ons is checked and click on Continue in Safe Mode.  There are other options there to reset certain settings and features that you can also try if it turns out not to be an Add-On conflict.  If that resolves the issue remember safe mode only applies for this session so you will now want to resolve which add-on is causing firefox to freeze.

First while in safe mode go to Tools > Add-Ons and disable all installed Add-Ons there that will make firefox run with no Add-Ons next time it is started in normal mode.  At that point close firefox down and start it in normal mode to ensure it still runs without freezing and that all Add-Ons are indeed disabled.

Your next course of action if this is all working still is to attempt to enable each Add-On you have in turn, restarting firefox in between each to identify the Add-On which is causing firefox to freeze note it could also be a combination of Add-Ons so in the event that enabling only one at a time does not cause the symptoms next try these steps.

After running through every Add-On singly start enabling all your Add-Ons again restarting with each you enable until you produce the freeze, at that point you know that the last one you activated is conflicting with one of the others enabled prior.  You can then use the safe mode trick to disable the others and try each of those candiates combined with just the last suspect Add-On you enabled to find the responsible pair of Add-Ons.


Simply add **/*.flac:

for flacfile in *.flac **/*.flac; do opusenc --bitrate 64 "$flacfile" "${flacfile%.flac}.opus"; done


Bluetooth not working on Ubuntu 16.04 LTS

My ubuntu 16.04 couldn't find the Bluetooth devices, even though the devices's pairing switch was on.

Ubuntu 16.04 Bluetooth Speakers

In short, I tried following process.

sudo nano /etc/bluetooth/main.conf
Change #AutoEnable=false to AutoEnable=true (at the bottom of the file, by default)
systemctl restart bluetooth.service

Then, my Ubuntu machine was able to find the Bluetooth devices!


Ubuntu 16.04 + NVIDIA GF114 GeForce GTX 560 Ti + Nvidia Driver = errors

I had an issue when I installed 16.04 where my laptop would boot to low graphics mode or just a black screen. It's a slightly different problem, but the same solution should apply.

Make sure all NVIDIA drivers are uninstalled by running sudo apt-get purge nvidia-*.
Run sudo add-apt-repository ppa:graphics-drivers/ppa and then sudo apt-get update.
Run sudo apt-get install nvidia-364 to install the newest NVIDIA driver from this repository.

It seems you know your way around the terminal and/or TTY, so hopefully those steps are detailed enough. If not, leave a comment, and I'll add more in.


apt-get -f install No space left on device (Ubuntu 14.04)

I can't say what causes the error to come back as disk space but I did run into exactly this issue tonight and I solved it by manually removing some of the old headers and then continuing on normally.

sudo rm -rf /usr/src/linux-headers-4.4.0-5*
sudo rm -rf /usr/src/linux-headers-4.4.0-6*

After this I was able to use apt for everything else like normal.


How can I remove Ubuntu from the UEFI boot options? 2

If you are using Ubuntu you can use EFI boot manager.

sudo install efibootmgr
sudo efibootmgr

BootCurrent: 0000
Timeout: 10 seconds
BootOrder: 0000,0004,2001,2002,2003
Boot0000* ubuntu
Boot0003* Windows Boot Manager
Boot0004* Windows Boot Manager
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

The boot order is the list, and if you want to delete ubuntu here, which is zero, just ask efibootmgr to remove it from the boot order.

sudo efibootmgr -o 4,2001,2002,2003

and if you want it back

sudo efibootmgr -o 0,4,2001,2002,2003

if you want to boot windows by default

sudo efibootmgr -o 4,0,2001,2002,2003

Edited: If you don't have access to ubuntu, try booting from a bootable Ubuntu via USB. Use the latest 18.04, it should have efibootmgr in the desktop live ISO.

Additional reading if you want to do this in windows, see microsoft documentation: https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/editing-boot-options-in-efi


Is Ubuntu 10.04's “Blank screen blinking with white stripes problem” resolved in ubuntu10.10?

According to the site below, the issue is largely resolved on Maverick but "sadly there is a kernel-bug, which prevents showing the mouse-cursor on 855GM-based systems". For these there is a quick fix dkms package that you can install.

http://glasen-hardt.de/?p=959


How to make a package manager wait if another instance of APT is running?

You can make apt-get to learn to wait if another software manager is running. Something similar with the behaviour from the next screen cast:

How I made it?
I create a new script called apt-get (wrapper for apt-get) in /usr/local/sbin directory with the following bash code inside:
#!/bin/bash

i=0
tput sc
while fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do
    case $(($i % 4)) in
        0 ) j="-" ;;
        1 ) j="\\" ;;
        2 ) j="|" ;;
        3 ) j="/" ;;
    esac
    tput rc
    echo -en "\r[$j] Waiting for other software managers to finish..."
    sleep 0.5
    ((i=i+1))
done

/usr/bin/apt-get "$@"

Don't forget to make it executable:
sudo chmod +x /usr/local/sbin/apt-get

Before to test, check if everything is ok. The output of which apt-get command should be now /usr/local/sbin/apt-get. The reason is: by default, the /usr/local/sbin directory is placed before /usr/bin directory in user or root PATH.


That probably would be the effect of this keybinding in /usr/share/byobu/keybindings/f-keys.tmux:

bind-key -n C-S-F2 new-session

You could edit ~/.byobu/keybindings.tmux and remove that keybinding:

unbind-key -n C-S-F2

Part of the default keybingings in tmux is (from man tmux):

s      Select a new session for the attached client
       interactively.

This is to be used with the prefix (default: Ctrlb), so you can try Ctrlb+s to switch sessions.

By default, tmux also asks you to select from a list of open sessions if multiple sessions already exist when it is run:

~ byobu-tmux

Byobu sessions...

  1. tmux: 1: 2 windows (created Thu Jan 18 18:03:21 2018) [80x23]
  2. tmux: 2: 1 windows (created Thu Jan 18 18:03:24 2018) [80x23]
  3. tmux: 3: 1 windows (created Thu Jan 18 18:03:25 2018) [80x23]
  4. Create a new Byobu session (tmux)
  5. Run a shell without Byobu (/bin/zsh)

Choose 1-5 [1]:


Ubuntu 20.04: Earphones don't output any sound after ubuntu-restricted-extras installation

for a temporary fix Run

alsactl restore

after plugging in headphones

to make it persistent so it survives a reboot run

sudo alsactl store


How to change drive label and default mounting location for exfat drive

I managed to change the drive label in Windows instead. This solved the labeling issue and also my biggest problem with the default mounting point since my annoyance was a space in the file path due to the space in the label.

An ubuntu native solution would have been nicer but the problem is solved.


just try sudo alsa force-reload

I had to try several other things and at last this ..

this should work in most cases


Move your hello_pass_arg.c file to a location other than the source code of your linux kernel and it should work.


On Ubuntu 20.04 the clipboard is cleared when I log out. Is this the same behaviour as on other systems?

On Linux the clipboard isn't a place to store data but a way of communication between programs:

If a program copies data to the clipboard it actually doesn't copy anything but just registers itself as the clipboard owner and waits for clipboard-related messages from other programs.

If a program wants to paste data from the clipboard it sends a message to the clipboard owner and requests data in some particular format (like e.g. text). The clipboard owner then answers with data in that format or an error if can't provide data in that format.

After logging out there is no clipboard owner so you can't paste from the clipboard.
There are clipboard managers, e.g. diodon or parcellite, that provide additional features for the clipboard. Maybe you can find one that can preserve the clipboard content between sessions.


Why is iSCSI Trying to Connect on IPv6 at boot?

I finally was able to figure out the problem. Even though I had IPv6 turned off on my box, even after I removed all targets, I noticed that when I re-discovered, it was still pulling both the IPv4 and IPv6 connection from the Synology Diskstation NAS.

I checked settings in the Synology and lo and behold it had its IPv6 turned on. I statically assigned IPv4, but didn't even look at IPv6.

Removed everything on my box again and re-discovered. STILL had both IPv4 and IPv6. After digging deeper into the Synology NAS, there is a setting in the ISCSI Manager -->Target-->Network Bindings that is checked for 'All Network Interfaces'. Not sure why it would still announce it's IPv6 since I disabled it in the network settings, but I specified that it only announce on its IPv4 interface.

One more time, I re-discovered and FINALLY, it was only seeing IPv4 target, which has seemed to have solved my problem.


Application window is not fully visible. Why? Help needed to fit it on screen

The combination of Alt + F7 will allow you to drag the window more towards the up, ultimately allowing you to look at the submit buttons  at the bottom.


lightdm failed to start session; user folder requesting Gnome

The user's .Xauthority file is the culprit. Moving the file and logging in will revert to the system defaults.


How to insert tabs before output lines from a executed command

You could do something like this - with file descriptors:

save the current output descriptor so we can restore it later

exec 3>&1

redirect the output stream to a process substitution that inserts the tab - for example

exec 1> >(paste /dev/null -)

From this point, any process that writes to standard output will have that output 'filtered' through the paste command to insert tabs at the start.

When you're done, you can resume normal behavior by restoring the saved file descriptor and closing the temporary one

exec 1>&3 3>&-


For me it was the usb cable which was bad, with a good quality USB cable it corrected the problem

And as a workaround, using Samba on your phone as mentioned in [this tread][1] worked for me as the best solution (take a look @ the sdcard share adding in the settings of the application)


Is there a way to disable a particular PCI port?

do not think that it is possible to disable a particular pci port.
It is possible to disable a specific device with a custom udev rule:

You need to know the device mac. For example create a file
/etc/udev/rules.d/90.disable.netcard.rules

SUBSYSTEM=="net", ACTION=="remove", DRIVERS=="?*", OPTIONS="ignore_device"
, ATTR{address}=="ZZ:AA:BB:CC:DD:EE", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

afterwards you have to restart udev


If the config can't be loaded you might have an error in it. Check in /var/log/apache.

ls -arlt

in the log folder will give you at the bottom of the list the last messages.
It should be error.log.
You can run

tail -f error.log

to see what is happening when you restart.

If everything is fine, you should have in thew old domain config file a line like :

RedirectMatch 301 ^(.*)$ http://www.newdomain.com

which is the proper way to redirect one domain tot another, with respect to SEO.


What KDE version do you have ? The integration may work with the latest of the KDE (KDE 4.8)

The KDE is having the Nepomuk. Trueg is blogging of the integration between the KDE Activity Manager, Nepomuk, and Zeitgeist : http://trueg.wordpress.com/2011/06/06/randa-and-ontologies-and-whatnot/

A bug report: https://bugs.launchpad.net/ubuntu/+source/qtzeitgeist/+bug/914923:

  Bug Description

  qtzeitgeist is requested by Phonon and kde-runtime to add zeitgeist
  integration

  It is a wrapper library around the Zeitgeist DBus API for Qt

  It conforms to everything needed in UbuntuMainInclusionRequirements as
  far as I can see.

Package:libqzeitgeist0

...
Source: qtzeitgeist
...
Description: wrapper library around the Zeitgeist DBus API for Qt
 Zeitgeist is a service which logs the user's activities and notifications,
 anywhere from files opened to websites visited and conversations, and makes
 this information readily available for other applications to use. It is also
 able to establish relationships between items based on similarity and usage
 patterns.
 .
 libQZeitgeist is a wrapper library around the Zeitgeist DBus API for Qt.
Homepage: http://zeitgeist-project.com/


I should update my post to say, "BIOS showed 8GB RAM installed." A sneaky fiend swiped the memory from this machine while I was away, and replaced it with two 2GB modules.

Thanks for the fast responses, sorry for taking your time.


I had the same problem and the reason was a link to a network drive folder which was not working anymore. After removing it everything starts loading instantly.


windows and ubuntu on ssd, another ubuntu on hdd, cannot access second ubuntu

By normal boot menu, do you mean Grub? If so, try booting to Ubuntu and then open a Terminal window with Ctrl+Alt+T. Then try updating Grub to see if it recognizes the new installation with this command:

sudo update-grub

If that doesn't work, you could try reinstalling Grub with:

sudo install-grub /dev/sda

Change /dev/sda to whatever your boot volume is.

Before doing either, it might be an idea to make sure you have a rescue disk on hand just in case something goes wrong and you can't access your OS anymore.


How you installed the eclipse luna in ubuntu 14.04...??

I generally prefer this method to install eclipse luna(latest version).

See in this Link.

It's always work for me. Try this.

Thanks.


What does sudo fdisk -l /dev/sdc tell you?

If you used the default ext4 filesystem, you can try adding -t ext4 to the mount command (or equivalently for other FS types). However, the message suggests the filesystem or partition may be corrupt so you may need to run e.g. sudo fsck /dev/sdc1 to check it.


Laptop fails to wake up after sleep for several hours

There are two possible modes when you put your computer to sleep:

Suspending aka "Suspend To RAM": Memory is kept in RAM, a small amount of power is still used, wake up time is short
Hibernating aka "Suspend To Disk": Memory is dumped to the harddisk, no power is used, longer wake up time

I suspect by closing the lid you put your computer into suspend mode. If it is only running  on battery, it gets drained after a while and the contents of the memory are lost, so you have to do a normal reboot.

Additional info:
https://help.ubuntu.com/10.04/hardware/C/pm-suspending.html


How to know which command is being executed without stopping it?

If you want to see the full command line for every instance of make that is running on your computer, open a new terminal and try:

pgrep -a make

pgrep is a program that searches through all processes on your computer.  In this case, it is looking for programs named make.  The option -a tells pgrep to list both the process ID and the full command line for each matching process.  (Without -a, it would just return the process ID.)  For more information on pgrep's many options, see man pgrep.


Wireless not being detected at all 12.04 Inspiron 15R

Step one: Connect your system to the network temporarily using an Ethernet cable.
Step two: Open a terminal and issue the commands:
sudo apt-get update
and then after that completes,
sudo apt-get upgrade
Step three:
Open Additional Drivers and install what is recommended. If there aren't any needed or recommended you'll see this:

If your wireless hardware isn't detected at all, consider trying a USB wifi adapter as the integrated one may be damaged somehow.


GRUB still showing windows 7 boot instead of windows 10

you have dual boot system in which you are using ubuntu grub . you have upgraded window but ubuntu system grub don't know about your change . it is simply searching in particular disk that you assign and loading window . so you have to change manually in grub.cfg file . open terminal in ubuntu and run command  sudo gedit /boot/grub/grub.cfg . here you need to search entry like:

menuentry “Windows 7 (on /dev/sda1)” {
insmod ntfs
set root=’(hd0,1)’

change Window 7 to window 10 or whatever name you want to give and save file and restart system next time you will see change .


If you need know if the phisical disk is correct you should see the smart info of the provider....

$ sudo smartctl -a /dev/sda # Show the phisical state of disk sda from smart...

If you have reaollcated sectors or  Offline_Uncorrectable you should save all
the data inside that disk and change it...

If not the problem is in the Filesystem...

Check the filesystem with the tools of the provider... if is ntfs you should see the info of chdsk...

https://en.wikipedia.org/wiki/S.M.A.R.T.


How does automated hotplug mounting work?

Maybe you should specify which part of the process is interesting to you but let's say a USB stick is added then...

kernel detects and initializes the device (see dmesg), then exports all the information it has found via a directory in /sys (see /sys/devices)
kernel sends a uevent signal which is picked up by udev daemon
udev daemon gathers available info and checks config files in /etc/udev/rules.d/ and /lib/udev/rules.d/ for rules about symlinks to create in /dev, permissions to set, programmes to run and sets some variables concerning the device (see man udev)
udisks daemon in cooperation with gvfs-gdu-volume-monitor creates the appropriate directory in /media and mounts the new volume if deemed sensible
nautilus checks the contents, creates thumbnails and opens a window if it is configured to do so; it also looks into /media/*/autorun.inf file for executable content


I want to use "border-image ... fill" in GTK+ theme

According to the GTK+ specs, only the following values are supported:

[stretch|repeat|round|space]

The default (stretch) is to resize the slice to fill in the whole allocated area.
If the value of this property is “repeat”, the image slice will be tiled to fill the area.
If the value of this property is “round”, the image slice will be tiled to fill the area, and scaled to fit it exactly a whole number of times.
If the value of this property is “space”, the image slice will be tiled to fill the area, and if it doesn’t fit it exactly a whole number of times, the extra space is distributed as padding around the slices.

So I would use in your example:

border-image: url("assets/sidebar-row.png") 6 23 6 / 6px 23px 6px stretch;


Cannot get new language support working on Ubuntu 14.10

I suggest that you try Korean (Hangul) instead.

Edit:

Seems to not be sufficient. So I downgraded to version 1.4.2-3 (the Trusty version) of the ibus-hangul package. Made a difference indeed.

얻얻언ㄹㅈ

(Hope that's Korean characters...)

Edit II:

It turned out that IBus Hangul works fine in 14.10 (and 15.04) as well. The thing is that they added a toggle, so it's not sufficient to select the Hangul engine, bug you also need to turn on "Hangul mode".

The bug report which was filed, and which is mentioned in the comments below, has rightly been closed as "invalid".


Figured it out, if the debdiffs are submitted for patching stuff, hand-editing does not cause an issue.


Perhaps you are suffering from this issue. The solution provided in the comments works for me (also a Inspiron 1525) so far.

The solution from erny(erevilla):

 * Create a file /etc/pm/sleep.d/50_custom with the following content:

 --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<--
 #!/bin/sh

 # Action script to shutdown modules before suspending.
 # before a hibernate
 #
 # Copyright: Copyright (c) 2009 Ernesto Revilla
 # License: GPL-2
 #

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

 case "${1}" in
    suspend|suspend_hybrid|hibernate)
        rmmod uvcvideo
        rmmod usbhid
        rmmod psmouse
            ;;

    resume|thaw)
        modprobe uvcvideo
        modprobe usbhid
        modprobe psmouse
            ;;

 esac

 --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<--

Now the script has to be made executable:

 sudo chmod +x /etc/pm/sleep.d/50_custom


By using theme that has good support for CSD windows. For example - Adwaita.


Open the svg up in Evince, it should cause librsvg to crash in the same way. It should also crash Eye of Gnome too. You can turn off thumbnailing in the nautilus settings, but the preview images are still generated when you click on certain media types.

Gnome isn't known for being very configurable or modular, you're only hope is to install a fixed version of librsvg or fix the svg files to remove the issue.


You can restore /boot from a live CD using a chroot.

http://ubuntuforums.org/showpost.php?p=11893615&postcount=2

Assuming ubuntu is installed in /dev/sda1 ...

sudo mount /dev/sda1 /mnt
sudo cp /etc/resolv.conf /mnt/etc/

Depending on your configuration, you may also need to copy the hosts file

sudo cp /etc/hosts /mnt/etc/

mount /mnt/dev and chroot, configure the chroot

sudo mount --bind /dev/ /mnt/dev
sudo chroot /mnt /bin/bash
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts

To avoid locale issues and in order to import GPG keys

export HOME=/root
export LC_ALL=C

Restore grub

grub-install /dev/sda

If that does not restore the grub files in /boot, reinstall grub first

    apt-get install --reinstall grub2
    grub-install /dev/sda

Reinstall the kernel

apt-get install --reinstall linux-gnereic


Redshift any way to set Hotkeys/Keyboard Shortcuts to +/- 100 temperature

I had the same question last night, and since no one has answered this,
here is a script I wrote. I haven't written a shell script for years, and this is my first ever post, so may need improvement. If you set the plus/increment script as start up, and stop redshift auto starting, this will allow you to attach the below scripts to a hot key.

#!/bin/bash
#Increase temperature
maxNum=2700
incNum=135
FILE="redshift_settings"
FILELOCATION="$(dirname "$(realpath "$0")")/$FILE"
if [ ! -f "$FILELOCATION" ]; then
    echo "File does not exist, creating"
    touch "$FILELOCATION"
    echo "$maxNum" > "$FILELOCATION"
fi
rsTemp=$(head -n 1 $FILELOCATION)
if [[ $rsTemp -lt $maxNum ]]; then
    let "rsTemp += incNum";
    redshift -O $rsTemp
    echo "$rsTemp" > "$FILELOCATION"
fi
exit 0

#!/bin/bash
#Decrease temperature
maxNum=2700
decNum=135;
FILE="redshift_settings"
FILELOCATION="$(dirname "$(realpath "$0")")/$FILE"
if [ ! -f "$FILELOCATION" ]; then
    echo "File does not exist, creating"
    touch "$FILELOCATION"
    echo "$maxNum" > "$FILELOCATION"
fi
rsTemp=$(head -n 1 $FILELOCATION)
if [[ $rsTemp -gt 1000 ]]; then
    let "rsTemp -= decNum";
    redshift -O $rsTemp
    echo "$rsTemp" > "$FILELOCATION"
fi
exit 0


The first thing you need to check is GLX Direct Rendering, You can use the generic mesa-utils, or fglrxinfo which is provided by FGLRX.  You already have fglrxinfo  installed, so you should try that first.
Run this command in a terminal.
fglrxinfo

Report back what the output shows, which will tell us if the fglrx is configured correctly.
next get glxinfo, which is installed via
sudo apt-get install  mesa-utils

Run this command to get your direct rendering status, it will be a yes or no answer.
glxinfo  | grep rendering

Use xvinfo to check for Video Overlay. Make sure x11-utils package is installed.
sudo apt-get install x11-utils

Run this command to check for Video Overlay, should be a long listing, not an error.
xvinfo

This is just the basics, it doesn't verify the new HD video extensions. It should however, tell you if acceleration is even working.
Update:
Your settings are correct, and composting has been identified as bringing down your performance. Composting often brings down performance, especially when playing games in WINE.


You may have it to run at runlevel 3, according to this http://en.wikipedia.org/wiki/Runlevel#Ubuntu.

I guess you can be sure to do the right thing not creating these links by yourself, but by using ad-hoc, standard programs. The usual command-line one is update-rc.d. Its manual page in section 8 of the manual is rich of details.


Bash Syntax Error Missing expecting "then"

You need to put then in next line or use semicolon

if [ ! -d upload-api/app-router/ ]
then

or

if [ ! -d upload-api/app-router/ ];then


If you installed surfraw using the following command:

sudo apt-get install surfraw

Then the configuration file is by default in:

/etc/xdg/surfraw/conf

Tip: To find where a package will install files you can check this kind of page:

http://packages.ubuntu.com/precise/all/surfraw/filelist


Why are my open files and applications closed automatically when I logout or shutdown?

When you logout or shutdown/reboot, all your open applications/windows are closed first. That's why you have to reopen them when you login again.

Previous versions of Ubuntu/GNOME had an option on to "save session" when logging out, which is what you may be referring to. Unfortunately, this is not currently possible with Unity on 12.04; your best alternative if you need this feature is to hibernate your computer instead of logging out/shutting down.

Please see this answer for more information: https://askubuntu.com/a/143616/58612


How would I know if my OS is compromised?

The key problem you have is this:

  You don't know just how much is compromised! Without skilled forensic
  analysis can you tell whether the attacker has just inserted some code
  which attaches to outgoing documents, has a rootkit which is snarfing
  your personal details, logons etc, or is using your machine as part of
  a botnet (or all of the above)

Treat it as fatally compromised, wipe the drives entirely and reinstall from known clean install media and backups!


Installing Ubuntu 16.04 on Dell XPS 8910

After lots of experimenting I think I've cracked it.

In summary:

with the failed installed partitions still on the HDD boot back
into windows and reinstate the RAID configuration originally
supplied by Dell (need to turn SATA OPERATION to RAID On in the BIOS
first)
turn SecureBoot off in the BIOS
boot back into the Ubuntu live disk and run boot-repair following the instructions in http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot. This should successfully install grub2 software without errors.
Remembering to remove the live USB drive, reboot the computer.  Grub2 then takes over and takes you to the Ubuntu log in screen.

To confirm Ubuntu is running with SATA set to RAID On and the disks still accelerated.  I have disabled SecureBoot but will try turning this back on and see what happens (boot-repair requested it disabled to run).

I had tried running boot-repair with the RAID disks disassociated and the BIOS set to AHCI but this failed with the warning that the EFI partition was locked.  This was resolved as described in points 1-3.

I haven't tested it but I'm assuming you should be able to install Ubuntu from the live disk without disassociating the RAID disks in Windows. The steps using boot-repair will still probably be required.


Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter -- Ubuntu 14.04

I had the same problem, found a solution on a forum and it worked for me. I am using a Toshiba Satellite L750 with Qualcomm Atheros AR9585 and my wi-fi was hardware blocked. So I did what was said in that forum. I simply rebooted and immediately I pressed my wi-fi activation keyboard combination (FN+F8) and the led for wi-fi turned on and so my wi-fi was hardware unblocked.


There's some problem with the NTFS partition that Linux is having trouble reading.

Do the following, while in Windows do a scandisc for errors on the USB pen.
Safely remove the same
Try again in Ubuntu

If the above doesn't work:

While in Windows backup your data
Format your USB pen
Copy your data back
Try it on Ubuntu

To avoid such problems in the future, always safe remove your USB pen.


Primary Network has a Unknown Interface which led PXE Installation Failed

An interface designation such as enp97s01 isn't created until the correct driver has joined with the hardware, The fact that the LAN-Over-USB device has an interface designation, namely enp33s0f3u1u2c2, suggests that there is a working kernel driver.

I believe that the notation Unknown Interface simply means that the description Redfish 1.0.1. LAN-Over-USB device is either not present or not readable from the silicon. This happens in a few cases with networking hardware that I've seen. It never, in and of itself, keeps the device from working.

  could we change the order to this situation below to make the auto
  installation worked?

In this context, I believe the TAB key allows you to select whichever device you prefer and to which the ethernet cable is attached.


Skype in Outlook.com in Ubuntu won't work

I believe the problem lies with the Skype Plugin not being installed for your browser. The page from where to load the plugin is:

https://skypewebexperience.skype.com/content/0-0-0/plugin_installation.html#get-started-page

However, after a couple of clicks the message "Your download has started. Please follow the prompts to save and run the Skype plugin" will be displayed but nothing else happens. I looked at the source html and then the javascript:

https://az351254.vo.msecnd.net/3-0-161/assets/javascript/plugin-install-js.min.js

and it appears that plugins are only available for Windows and Mac

SkypeWebPlugin-2.3.12417.17599.msi
SkypeWebPlugin-2.3.12417.17599.pkg

As things stand now there is no solution to the problem of Skype Messaging not being available on outlook.com.


How to install Rosegarden Freedom, and Linux Multimedia Studio properly etc.?

Rosegarden can be installed through the software center - that handles the installation for you.

LMMS needs to be started with the command line after installation (again through the software center). Run lmms in a terminal. If it does not start, run sudo apt-get install lmms

try restarting your machine and installing the software again.

If I were you I would run the following in the command line: sudo apt-get install rosegarden lmms qsynth. This will install all 3 packages.

Qsynth:


Disk usage analyzer report different free space than terminal

Try running disk usage analyzer as sudo -- open your terminal and run:
sudo baobab

(apparently that's the machine name of disk usage analyzer)
Source
EDIT:
Inconsistencies between what DUA shows and what terminal shows seem to be a known (albeit annoying) "quirk".  The thread I mentioned above, and its accepted answer, indicate that significant inconsistencies are commonly due to sudo/non-sudo access, but also can be due to how DUA analyzes system folders, and mounted devices.  The asker/answerer on that thread mentions unmounting certain mounted devices.  Section 5 of this Ubuntu Forums tutorial explains that DUA only reports on mounted devices. (...and, section 7 of ^^that tutorial has additional comments about reporting inconsistencies.)


Cant login after Ubuntu upgrade 16.04 --> 18.04

I fixed it. Just had to apt-get purge NVIDIA*
I don't know why, I don't even have an NVIDIA card on the machine.


In Ubuntu 16.04

systemctl enable poweroff.target

creates a symlink at /etc/systemd/system/ctrl-alt-del.target which changes the behaviour of hitting ctrl+alt+delete to poweroff instead of reboot

To reboot using systemctl you should run

systemctl isolate reboot.target

If you really need to reboot and nothing seems to work, there is an alternative way. This is pretty similar to holding the poweroff button, but I don't recommend using this unless it's a last resort. You can run:

echo b > /proc/sysrq-trigger

which will immediately reboot without doing anything (including unmounting filesystems) - which can cause filesystem corruption etc. More details can be found here and here.

This may also be useful.


Dual boot Windows and Ubuntu where Ubuntu does not have internet connection

It is better to have internet connection while installing ubuntu, but strictly speaking it is optional. You can install ubuntu without connecting to internet.
After that, if you want to install some additional softwares, then package manager (apt-get) is highly recommended, which needs active internet connection.


This is a bit more clarified answer: If you dont know how to access the shell in ubuntu press Ctrl + Alt + F1 - F6  any of these will work.  It will ask you to log in with your username and passowrd. Once logged in, use the next code

sudo start lightdm

It will ask for your password.

Once finished press Ctrl + Alt + F7 and see if the kernel loadsand you see everything correctly.