print parameters from a for loop in bash

The portable (though dangerous) way to do something like that is via the use of eval:
eval echo "$i \$$t2"

In bash, there is a cleaner, safer way to do it using a feature called variable indirection

   If  the  first  character of parameter is an exclamation point (!), and
   parameter is not a nameref, it introduces a level of variable  indirec‐
   tion.   Bash  uses  the  value  of the variable formed from the rest of
   parameter as the name of the variable; this variable is  then  expanded
   and that value is used in the rest of the substitution, rather than the
   value of parameter itself.  This is known as  indirect  expansion.

So in your case that would be
echo "$i ${!t2}"

However the canonical way to get the next positional parameter in a shell script is by using the shift builtin. So for example, you could do
#!/bin/bash

while [ $# -gt 0 ]; do
  opt="$1"
  case $opt in
    -1|-2|-3)
      shift
      printf '%s %s\n' "$opt" "$1"
    ;;
    *)
      printf 'unknown option: %s\n' "$opt" >2
    ;;
  esac
  shift
done

Nevertheless, what you seem to be doing here is re-inventing the getopts builtin:
#!/bin/bash

while getopts ":1:2:3:4:m:" opt; do
  case $opt in
    1|2|3)
      printf -- '-%s %s\n' "$opt" "$OPTARG"
    ;;
    *)
      printf -- 'unknown option: -%s\n' "$opt" >2
    ;;
  esac
done

then
$ ./name_of_script -2 aaa -m bbb -3 ccc -4 ccc -1 ddd
-2 aaa
-3 ccc
-1 ddd


Will installing Ubuntu on one partition affect the files on another?

Definitively no!

Creating a new partition for backups, then installing Ubuntu on a separate partition will not affect your files in the backups partition. What you will want to be cautious of is creating the partitions, because if done wrong you can lose all of the data on that drive.

My suggestion would be to make your partitions with GParted off the Ubuntu LiveCD.

here is a similar question with instructions on how to do this.


How to install drivers for brother printer

Follow these steps to install your .deb file:

Open terminal (Ctrl+Alt+T) and Go to downloads where you file is located:

cd ~/Downloads

Then execute this command to intall it:

sudo dpkg -i *yourprinterfilename.deb*

That's it.. Replace yourprinterfilename.deb with your actual printer's file name.

Reply for further assistance..


How to deal with MySql ERROR 1133 (42000): Can't find any matching row in the user table?

When you do

SET PASSWORD FOR root@'localhost' = PASSWORD('password');

you are updating the password for a user that has name root and location localhost. From your result of your user table I conclude that there is NO such line. There seems to be a line with root and 127.0.0.1, so therefore you probably need this line.

    SET PASSWORD FOR root@'127.0.0.1' = PASSWORD('password');

Please try and understand what the difference between the two lines is, and why this should be done instead of the former: I hope this helps you see what was wrong and why you should do this, as it might be not spot-on: the comment-additions would be much easier to read if they are in the question, and formatted correctly :D


Using SanDisk USB SecureAccess through Wine? If not possible, what are some good encryptions for USB between Linux and Windows?

The simplest option that I have found is to use a VeraCrypt container on an NTFS or exFAT-formatted USB stick. The container itself should also be formatted as either NTFS or exFAT so that it can be read by Windows and Linux (macOS and FreeBSD can also work with these partition types).
Depending on the purpose of the container, I also have one or two plaintext files that are visible to the world and a directory:

reward.txt, which has my contact information in the event the USB device is lost and someone finds it
password.txt, which usually says something like:
The password is that silly phrase with the numbers I had you save in a note on your phone

This is only done for encrypted containers that have things my family might want access to after my passing, such as edited home videos and whatnot.
/setup, which has the VeraCrypt binaries so that I can install the necessary tools to access the container from another machine if necessary

With this setup I've been able to securely move and share files between systems, family, and colleagues.


HP Deskjet F 4180 combi works with Ubuntu 14.04 but not Lubuntu 14.04

I did a google search for drivers and found the hplip website. Looked daunting at first but had no alternative but to go through with it and did the automatic install and all seems to be working, although I got this warning:
PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)
I don't know what this means, but everything is working any way.


Booting from USB and mounting a HDD is resulting in strange partitions

I think my problem was that I didn't have a partition table on the HDD even though it was only 1 partition.
Used gparted to format the drive again and then updated fstab now everything works smoothly.


Why is the ubuntu always updating and occupied the Harddisk memeory after installing the 14.04?

14.04 was released almost 2 years ago. http://distrowatch.com/table.php?distribution=ubuntu

Since the LTS versions are supported for 5 years, there are going to be lots of updates.  What you are going through is normal.  If hard drive space is that big of an issue, you could reinstall on a larger partition or switch to a newer version.


Recent changes to Ubuntu (13.04 and beyond) and Windows (8 for sure and beyond) start using GPT partition tables and UEFI booting by default to piss people off that haven't experienced them before.

You are likely running into a legacy vs. UEFI boot problem or your HDD boot order hasn't been arranged after you plugged in the boot disk.

Plug in the USB or DVD before getting to the BIOS, go to the boot settings and move it to the top of the boot order.

If it's the former issue:

Go into your BIOS and select whichever mode (legacy or UEFI) is not currently active to troubleshoot.  It may even be a combination of both of these solutions above.

This will not work with an installation of Windows 8 already on the PC using UEFI/Secure boot unless you use legacy mode and dual-boot in an annoyingly complicated way using EasyBCD

I have run into this issue many times and have completely given up on EFI booting since it makes no difference to me how fast the PC loads.  That just makes getting to the BIOS 102031x harder.

Besides, who uses Windows anymore anyway?  Right?  ;)  time to go *nix only son.  Join the cool kids.

This may not work for sure in your situation but hopefully it helps.

Let me know if there's more I can do.


Is there a hardware temperature sensor indicator?

I'm working on one at the moment (indicator-sensors) which with any luck will be ready in time for the final release of natty - code is barely functional at the moment and still need to figure out a bunch of UI issues, so will be a week or two at least until anything release worthy is finished.


How do I specify the repository `apt-get` pulls from when installing (e.g. Kdenlive)

APT fetches the packages from repositories on the basis of version, if no priority is defined in /etc/apt/preferences. It seems the PPA Kdenlive is merely a dummy PPA for releases older than 19.10 since their PPA page on Launchpad doesn't have details for still supported release such as 16.04 (Xenial Xerus) and 18.04 (Bionic Beaver). Moreover, the Packages file for Bionic is empty and there is no debian package for the release in /pool as well.
If you run apt-cache policy kdenlive, you may notice that this package is being provided by official Ubuntu repositories out of all repositories configured. So, in a nutshell, you're installing latest available version.
Related Posts:

Assign higher priority to PPA
How to see all packages in a package repository? Website or command line?


if you really are using the right password maybe your keyboard isn't using the right layout.
Could be that you are typing on a QWERTZ or AZERTY Layout but your system is interpreting it as a QWERTY. Try switching Letters Y and Z if u r on QWERTZ Keyboard and A and Q on a AZERTY


UBUNTU14.04 could not be loaded due to GRUB Error

Why are you installing an "old" distribution from 2014? The current LTS Version is 16.04.
Here how to install Grub: https://help.ubuntu.com/community/Grub2/Installing


If you want to run in shutdown you should add your script file into /etc/rc6.d/. If you want to run the things in reboot you should add you script file to /etc/rc0.d/.

Make sure at the first of your script file name should be K99. After creating your script file run chmod +x K99Something to give neccessary permission.


No network devices available Ubuntu 16.04

I had the same problem with this network device (Intel Dual Band Wireless-AC 3168). With my new Ubuntu Gnome 16.10, kernel version 4.8 and the correct firmware it should work out of the box (I read in other posts) - but it didn't.

The solution that is shown as "Update 2" in the question is working for me (but I have no idea why - where did you get this?):

"echo "blacklist acer_wmi" | sudo tee -a /etc/modprobe.d/blacklist.conf"


Startup a Ubuntu FTP and SSH server without logging in

OpenSSH and other services should start-up without requiring any user to login. OpenSSH also provides SFTP (and SCP) capability; you don't need any dedicated SFTP daemon. Essentially, install OpenSSH (and remove VSFTPD, unless you specifically want FTP), and you should be able to log into a shell and transfer files over SFTP just fine on a headless box.


How to Have Vectorized Small Unity Icons in Ubuntu 14.04 by Defaults?

The default icon theme in Ubuntu does use mostly vector (SVG) icons. For smaller sizes though, icons tend to be raster images, in order for the icons to be pixel perfect.

However, all graphics are going to be rendered into pixels for display. When you scale them to odd sizes, there are going to be artifacts, even for SVG icons.

For the best looking app icons in the launcher panel, make sure the launcher icon size is set to a value which is a multiple of 8, such as 32 or 48 pixels.


As pointed out in the comments, problem is that my volumes are LVM, and GParted doesn't know how to resize it. Solution was to boot on GParted LiveCD, and run the following commands:

# to find the name of the volume, /dev/zion-vg/root here
$ sudo lvdisplay

#to extend the volume (started at 15G, but had to bring it down to 13.9G since it had not enough size)
$ sudo lvextend -L13.9G /dev/zion-vg/root

#needed by resize2fs
$ sudo e2fsck -f /dev/zion-vg/root

#final resize
$ sudo resize2fs  /dev/zion-vg/root


this for the Nvidia driver

sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-current nvidia-settings

& about the the windows file you can use the disk-manage

gnome-disks

& you can easily remove the windows partition


Software center shows that Google Docs has been installed

It seems far more likely that you clicked Okay when you were prompted to allow Ubuntu to integrate Google Apps as a web-app. Ubuntu will do that.

I suggest that the problem here is heightened paranoia. That's not always a bad thing but you're seeing shadows where there are likely non. I'd suggest some herbal tea.


Windows 7 doesn't show up in Grub after installation

The first step is to edit /etc/grub.d/40_custom (using sudo) and add the following lines to the bottom of the file:
menuentry ‘Windows 7′ {
    set root=’(hd0,msdos2)’
    chainloader +1
}

Since the location of the Windows installation can differ widely, I need to explain the “set root” line because (hd0,msdos2) refers to /dev/sda2 on my machine.
More generally, hd0 (or /dev/sda elsewhere) refers to the first hard disk installed in any PC with hd1 (or /dev/sdb elsewhere) being the second and so on. While I was expecting to see entries like (hd0,6) in /boot/grub/grub.cfg, what I saw were ones like (hd0,msdos6) instead with the number in the text after the comma being the partition identifier; 1 is the first (sda1), 2 (sda2) is the second and so on. The next line (chainloader) tells GRUB to load the first sector of the Windows drive so that it can boot. After all that decoding, my final comment on what’s above is a simple one: the text “Windows 7″ is what will appear in the GRUB menu so you can change this as you see fit.
After saving 40_custom, the next step is to issue the following command to update grub.cfg:
sudo update-grub2
Once that has done its business,  then you can look into /boot/grub/grub.cfg to check that the text added into 40_custom has found its way into there. That is important because this is the file read by GRUB2 when it builds the menu that appears at start-up time. A system reboot will prove conclusively that the new entry has been added successfully.

Credits go to: http://technologytales.com/2010/11/21/manually-adding-an-entry-for-windows-7-to-an-ubuntu-grub2-menu/
Or check: Add Windows 7 to boot menu


Install from Ubuntu software.

  Restricted Options for Ubuntu

This is codec pack

>

or
you can install it from terminal if you prefer

sudo apt-get install ubuntu-restricted-extras


You still cannot do so using deja-dup but fortunately it doesn't matter as you can use duplicity to achieve the same purpose. Deja-dup is the gui front-end for duplicity. You can use duplicity directly from the command line and surprisingly it is simpler than using the gui of deja-dup!

You need to install the package python-gdata first as it is not part of the base system.

sudo apt-get install python-gdata

After that you can use duplicity to put a local folder directly to google drive by issuing the following command:

duplicity localfolder gdocs://username@gmail.com/remotefolder

or

duplicity localfolder gdocs://username:password@gmail.com/remotefolder

In the second case it obviously won't ask for your gmail's password(but would still ask for the encryption passphrase).

Command to restore:

duplicity restore gdocs://username@gmail.com/remotefolder localfolder

In all the above cases localfolder is a folder in your home directory and you are running the commands from your home directory.

Two minor caveats. Firstly, while restoring you have to ensure that localfolder doesn't exist otherwise duplicity will abort saying localfolder already exists. Secondly, I have tested the above in ubuntu 14.04 so can't comment about the other versions.


How to make Canon LBP2900B work on Ubuntu 16.04 LTS?

After clean installation of Ubuntu 16.04 my Canon 2900 refused to print. I found out a solution and will now share here with my experience.

Standard method to install driver doesn't work. To install driver manually I downloaded and unpacked them from the official web-site of Canon.

The next step was to choose between the 32- or 64-bit driver. First my decision was to use 64-bit driver, because my OS is also 64-bit. But it was a mistake, 64-bit driver refused to work. So I choose 32-bit driver, unpacked and installed two packages in the following order:

cndrvcups-common.deb
cndrvcups-capt.deb

Then I registered the printer in OS by typing in the terminal:

sudo /etc/init.d/cups restart
sudo lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59687 -E
sudo ccpdadmin -p LBP2900 -o /dev/usb/lp0
sudo update-rc.d ccpd defaults

After the printer appears in menu I marked him as default by right click. All these time the printer must be turned off.

Then I reboot and printer start work.

But after that appears a new problem. When I shuttdown my computer it hangs during 5 minutes. It was caused by ccpd service. So I run:

sudo systemctl edit ccpd

and added new two lines to empty file:

[Service]
TimeoutStopSec=4

Then:

sudo systemctl daemon-reload
systemctl show ccpd -p TimeoutStopUSec

and it shows that the delay was shorted. Next reboot took only several seconds.

That's all.

Source: https://yrfiles.blogspot.in/2016/12/how-to-make-canon-lbp-2900-printing-on.html


Unable to create a new partition for Windows

You are not able to create partitions because you have installed ubuntu in the total size of the disk.  So Gparted can't do the partitioning because the partitions are 'locked' because Ubuntu is running.
So you should make a live CD of ubuntu and boot from that live CD to make the partitions.
OR you can use GParted live CD.


Here is what I came up with. It uses caffeinate command from caffeine package which you are already using.

#!/bin/bash
while true
do
    pacmd list-sink-inputs | grep 'RUNNING' > /dev/null
    if [ $? -eq 0 ]
    then
      caffeinate sleep 1
    fi
    sleep 20
done

Another solution using xdotool. If something was playing it slightly moves the mouse without you noticing and leaves it where it was.
#!/bin/bash
while true
do
    pacmd list-sink-inputs | grep 'RUNNING' > /dev/null
    if [ $? -eq 0 ]
    then
        for ANGLE in 0 90 180 270
        do
            xdotool mousemove_relative --polar $ANGLE 0.1
        done
    fi
    sleep 20
done

Just make sure you've got xdotool installed:
sudo apt install xdotool


To allow communication between your Nexus 7 and your host system you'll need to enable the developer mode on your Ubuntu-touch device.

Go to System Settings -> About this phone -> Developer mode:

With the developer mode activated, you have several options to start a ssh connection to your device:

From the Ubuntu SDK (you can even reboot from there):

Using the phablet-tools package (sudo apt-get install phablet-tools):

Start the connection with phablet-shell and once connected type sudo reboot as you would normally do on a desktop system:

$ phablet-shell
/home/sylvain/.ssh/known_hosts updated.
Original contents retained as /home/sylvain/.ssh/known_hosts.old
Warning: Permanently added '[localhost]:2222' (RSA) to the list of known hosts.
Welcome to Ubuntu Utopic Unicorn (development branch) (GNU/Linux 3.4.0-3-flo armv7l)

 * Documentation:  https://help.ubuntu.com/
Last login: Fri Oct 17 09:50:34 2014 from localhost.localdomain
phablet@ubuntu-phablet:~$ sudo reboot
[sudo] password for phablet:


"Not a COM32R image" error when trying to install from a USB key

A quick/dirty way to solve this issue is to press TAB, the computer will provide a text menu with your options, i.e. live live-install test etc.

Now just type the option you want, i.e. live Enter. This will boot it as a Live CD [sic], and then continue installation from there.


To execute a jar file you need to use the java command. There's lots of information on how to do this available via Google run a jar in linux. But the simplest command is:
java -jar jarname.jar

If you want to run it by double clicking How run a .jar file with a double-click? should help.


Wicd does not like to reconnect upon resuming in the same or different location

The wicd-daemon package should add a hook for pm-utils to handle this with the file:

  /usr/lib/pm-utils/sleep.d/55wicd

I'm pretty sure pm-utils gets pulled in by default as part of ubuntu-desktop (via some other things) but if you removed network-manager and/or other gnome parts then perhaps you lost it somewhere along the way. Try:

sudo apt-get install pm-utils

Otherwise, I think you will have to start looking for errors in the log files, starting with:

  /var/log/pm-suspend.log


Keep windows from jumping workspaces when they request focus

Settings -> Settings Manager -> Windows Tweaks -> Focus tab.

There is a setting for what to do when a window raises itself.


How do I trigger a script to re-run every time there is a kernel upgrade?

Take a look at the man page for kernel-img.conf
http://manpages.ubuntu.com/manpages/intrepid/man5/kernel-img.conf.5.html
The postinst_hook keyword identifies a script you can select to run at installation.  Other keys select other times to run scripts, like at removal.


Install ubuntu minimal desktop and configure basic commands

You can start with either an Ubuntu mini.iso or an Ubuntu Server iso file. Install a minimal system.

Boot into the minimal system, and use apt-get to install the program packages you want. You may prefer a simple window manager, for example fluxbox or openbox (instead of a full desktop environment, for example Unity, KDE, LXDE, XFCE). You probably need xinit and xterm too as a starter for the graphics. The graphics is started with

startx

from the text screen.


Why does the installer say I don't have enough drive space on a new drive?

Before you attempt the installation, have you checked whether your drive shows up in any of the included programs (such as Nautilus or Disk Utility), and if you can mount it? If it does not appear there, you may want to check your drive was properly installed and all connections are secure.


How do I correctly group albums in Banshee?

You need to select the songs you want to change using Shift-click and go to the following dialog box (from right clicking on your selection and choosing "Edit Track Information"):

Then make sure the "Compilation Album Artist" is checked, and put what you want in the input box.  Click on the button next to the input box, then click "Save".  Your album should all show up under one cover now.


How to send custom notifications in KDE ?

You can use "notify-send" in KDE too. Such as this

notify-send "custom kde notification"

It works in default KDE setup. I think, KDE notification also uses "notify-send"'s library.

From a  later comment by OP, I understand the requirement of placing the notification at the top-right position of the screen like Unity's notify-osd. It's very simple to achieve.

First send a custom notification using notify-send "custom notification" and then drag the notification window to your desired location. From this moment, your notification will now be appear on your desired location.


after update right half of keyboard converted to num keys u-4, j-1, m-0 so on

Check your NUM lock key.  That controls whether that section of the keyboard is treated as a keypad.  If the NUM lock key is on the keys below the 7,8 and 9 become the key pad keys instead of the alpha keys on keyboards without an actual keypad section.  Your symptoms are those of having the NUM lock key on. Some keyboards have a light when the NUM lock key is on, but some don't.  Some keyboards will have the NUM lock as a function shift of another key, like the Scrl lock.  The key will toggle the keyboard, so type it once to shift back to the alpha keyboard.


Upstart Jobs and init.d scripts not launching

The problem is that your script is going to race with the rest of the shutdown/reboot procedure.

start on runlevel [06]

The runlevel event does not delay anything, so you have a race.. the event is just a signal in time, and so your sdmem starts running as soon as the shutdown sequence in /etc/rc0.d/* starts running, and they both run in parallel.

If you want to delay things you have two options. Either a)

task
start on starting rc RUNLEVEL=[06]

This will delay the entire shutdown from even starting until your sdmem exits. Note that the 'task' is important there as the job will not block other jobs until sdmem exits.

b)

task
start on some-other-late-hook-event

And then edit whatever script in /etc/rc0.d/* (or /etc/rc6.d/*) you want to emit this event and have it do

initctl emit some-other-late-hook-event

That call in whatever script you want it in, will block until sdmem exits. Note again the 'task'.


why lubuntu upgrade compile so many locales

You have to:

run sudo dpkg-reconfigure locales
specify minimal set of needed locales (select by Space)
confirm locale rebuild (by Tab and Enter on the <OK> CLI "button")


I don't believe Plex has any way to access drives from a network location, but like this thread on Plex for Mac suggests - http://forums.plexapp.com/index.php/topic/58993-add-folder-from-local-network-nas-hdd-in-plex-server-library/ - if you are able to mount them within the local filesystem, then you should be able to do it with no problem.

[I'm kind of modeling this after the answer to this thread: How do I access an external hard drive plugged into my router? ]
I'm not really that familiar with NFS, but this is how you can do it with CIFS (the successor to Samba - should be compatible with your MyBook if MyBook supports Samba).

You'll need to decide where you want the mounted files from MyBook to appear in your filesystem. I would suggest something like /media/Plex. Once you decide, open a terminal and type:

sudo mkdir /media/Plex

(This assumes you don't already have that directory. You'll need to enter your password, because usually only the operating system edits things in /media)

Now, let's install CIFS Utilities:

sudo apt-get install cifs-utils

Then, you'll want to edit your /etc/fstab - this is what tells Ubuntu what to drives to mount (and where) when it starts up. You may wish to backup /etc/fstab first (in case something goes wrong your you want to undo this easily). You can do this by entering in terminal:

sudo cp /etc/fstab /etc/fstab.bak

(Now you've got a backup copy called fstab.bak)

Next, to add your NAS. Still in the terminal, type:

sudo gedit /etc/fstab

This will open /etc/fstab in the text editor with write permissions. Don't touch anything already added to the document, but add to the end of that document this line:

//192.168.0.13/Plex /media/Plex cifs guest 0 0

Since you said there's no password, guest should work.

*Sidenote: If you use a password protected NAS, use this line instead:

//192.168.0.13/Plex /media/Plex
username={{username}},password={{password}},iocharset=utf8,sec=ntlm  0  0

And replace {{username}} and {{password}} respectively.*

Now, to test, type in terminal:

sudo mount -a

And open Nautilus (the file manager). Your MyBook's Plex folder should now show up in the left-hand sidebar!

So, also, you should now be able to "Add Section" in the Plex Media Server web UI by clicking the big + sign in the My Library section (below in red).

Select the type of media, and then you should be able to select the Movies or TV shows from your new /media/Plex folder (which is really your MyBook). I did the same thing with what I have available (I don't own a MyBook, but I did the same thing with my readyshare, and here it is after mounting it in /media/readyshare, ready to be added as a Plex section:)


suspended overheating problem on DELL G5 15 5590; 18.04 bionic - best way to proceed?

I solved this problem.

You have to use: Dell Power Manager
2.Thermal settings : Optimized
You can change-> Battery information->Settings->between 50% to 85%.


Configure two ipaddress from same subnet using 2 Bridged adaptor VirtualBox

Try removing gateway 192.168.100.1 line from the interfaces file and add a static route instead:

sudo route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.100.1


Applications don't start anymore after upgrade (Vs Code, Discord, Riot etc)

I solved this by reinstalling snapd & all the affected apps.
thank you.
this helped:
snap refuses to launch applications
ps:  after a while I had the same issue.
I also checked apparmour (it was dead) and I restarted it.
sudo systemctl status apparmor
sudo systemctl restart apparmor
now seems to be working again, let's see for how long.


Cannot mount remote drive. I get the error: mount.cifs: bad UNC (/servername//data.xxx.xxx.ac.uk/)

UNC syntax is //server/share, not /server//share/. Note double slash before the server name, one slash between the server name and the share name.


Installing a package with apt-get for a single user

It is not possible to install a package in a way that it would run correctly. The closest thing you could get to this is running apt-get inside a virtual machine or LXC container run by a normal unprivileged user. If you want to just unpack the .deb package, you can use dpkg -x archive.deb target_directory, but the installation scripts will not be run, and it will not be installed to the filesystem root.


Default entry for /etc/network/interfaces

If you wish to continue with /etc/network/interfaces, wireless will require the addition of the network you intend to connect to and any encryption details. I suggest:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wpa-ssid mynetwork
wpa-psk 0123456789

Restart the interface:

sudo ifdown wlan0 && sudo ifup -v wlan0

Check:

ping -c3 www.ubuntu.com


I have the same problem, ( http://ubuntuforums.org/showthread.php?t=2319196 ) and the workaround is the c-states property.

See https://bugzilla.kernel.org/show_bug.cgi?id=109051

There isn't a solution and I am currently studying the kernel and the bay trail system to try to help in the resolution but doesn't seem easy :/


My AMD Radeon graphic card is not working on 16.04

To tell if your card is working, do a xrandr --listproviders. Both cards should be visible.

If you want to use it, the best way is xrandr --setprovideroffloadsink radeon Intel, with it, you can use your discrete card for the applications who need it the most (for example games, 3D modellers...) by prepending the DRI_PRIME=1 environment variable:

DRI_PRIME=1 glxinfo | grep "OpenGL renderer" should give an output of OpenGL renderer string: Gallium 0.4 on AMD <platform>.


Why did Wubi install Gnome when I gave it the Xubuntu ISO?

The Wubi installer ignored your ISO, and simply downloaded and installed regular Ubuntu instead.

Uninstall Wubi, and try again. Follow the instructions in this answer on how to get wubi.exe to use your pre-downloaded ISO:

  How do I get the Wubi installer to use a pre-downloaded ISO?

Finally, to be safe, physically disconnect your Ethernet cable OR disable wireless (turn switch off, etc.) before you press the Install Button on Wubi.


Screen tearing in Chrome on Ubuntu 19.04 with Intel Graphics

I was able to fix for i7 Ubuntu 20.04 modifying my /etc/X11/xorg.conf file to include DRI3 as follows, which I found here.

Section "Module"
    Load "dri3"
EndSection

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "DRI"   "3"
EndSection


How do I configure the usb to function as com3?

I got the dongle talking by linking ttyusb0 to com 1-(sudo ln -s /dev/ttyUSB2 com1). To keep my answer short I searched for similar questions and found question labeled  “Ubuntu+wine, USB COM port issue. Simbolic link question “.

With this as a guide  I was able to get my problem fixed.


Problem with launching Steam [K-Ubuntu 16.04]

All the old hints didn't help me personally any longer, but maybe it'll help you to fix this annyoing steam 64bit update problem

cd .steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak
cd .steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak

LD_PRELOAD='/usr/$LIB/libstdc++.so.6' DISPLAY=:0 steam

Unfortunaley it didn't help with my steam version, but many other had success
-> Ubuntu LP 1527669

Running Steam on ubuntu 16.10 64-bit
STEAM_RUNTIME is enabled automatically
[2016-10-18 19:47:49] Startup - updater built Oct 13 2016 00:47:16
SteamUpdateUI: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)

More hints to solve the problem
link


make tries to install your code here:
/usr/bin/mkdir:
This space does not belong to you - you're not allowed to create or copy sth. Instead use:
sudo make  install-recursive

sudo will give you - and make - the right to do so


Linux kernel is both a monolithic kernel and a modular kernel :) Those things are not mutually exclusive.

Monolithic kernel refers to a kernel all parts of which share a common address space:

  This reduces the amount of context switches and messaging involved,
  making the concept faster than a Microkernel. On the downside, the
  amount of code running in kernel space makes the kernel more prone to
  fatal bugs.

The opposite of "monolithic kernel" is "microkernel", where the kernel is only responsible for coordinating services running in user space which do all the actual job.

"Modular kernel" means that

  some part of the system core will be located in independent files
  called modules that can be added to the system at run time. Depending
  on the content of those modules, the goal can vary such as:

  only loading drivers if a device is actually found
  only load a filesystem if it gets actually requested
  only load the code for a specific (scheduling/security/whatever) policy when it should be evaluated

Those modules are still running in the kernel space and not in user space, so the kernel architecture is still monolithic.


Cannot boot from USB created by Startup Disk Creator

Ubuntu Startup Disk Creator is sometimes buggy. Use dd command instead.

sudo umount /dev/sdb1
sudo dd if=/path/to/ubuntu.iso of=/dev/sdb bs=4M; sync

Wait for it to write to the device. That's it. Here bs refers to Byte Size


Somehow NVidia driver is not loaded. After:

modprobe nvidia_352

command everything works normal.
Second solution is logout and login again.


How to uninstall openstack-dashboard-ubuntu-theme?

Open the terminal and type sudo apt-get -f install
Then, follow the command indications and whenever it finishes, try installing whatever you need.


Dash to Dock doesn't disable even uninstalled

checked if the "Ubuntu Dock" is on, but isn't

Ubuntu Dock is a pre-installed system extension for GNOME Shell on Ubuntu 17.10 and later releases. It cannot be reliably disabled in the default Ubuntu session using tools like GNOME Tweaks or others. Refer to this to remove the dock: How can I get rid of the dock in Ubuntu 18?


How to analyze video card RAM and GPU load?

It seems this is actually a duplicate of How to measure GPU usage?

Here are all the suggestions in one simple list:

Nvidia GPUs: nvidia-smi --loop-ms=1000
Nvidia GPUs: ntop
Intel GPUs: intel-gpu-tools
AMD GPUs: fglrx (closed source drivers): aticonfig --odgc --odgt
AMD GPUs: mesa (open source drivers): RadeonTop
GPUstat: gpustat
Conky: sudo apt install conky ( I can't get this to work )
Glances: glances


Where can I find the most recent snapshot of gnome-shell?

There doesn't appear to be a PPA of git snapshots for 10.10, unfortunately. However, it is actually rather simple to build yourself: upstream (gnome-shell developers) have provided an easy-to-follow guide telling you how to do this. You could give that a go.


How do I reinstall cups in Ubuntu 18.04?

I was able to remove it and install it no problem on 18.04

sudo apt remove cups

sudo apt install cups


As to be seen in your boot repair disk summary, there is no Ubuntu operating system on the disk.
So it is not a question whether it is possible to get Ubuntu back without reinstalling, you have to.

There is also no Windows system shown there - whatever happened during the Windows update, it seemed to have wiped everything. I am sorry for being the harbinger of the bad news for you !

Means, unfortunately you will have to reinstall both operating systems completely from scratch, unless you have a backup image. You can try to recover the systems as pointed out by @oldfred.


Desktop icon foreground text is way offset

Here's the bug related to the issue:
gtk2-engines-murrine desktop text shadow problem

Until that's fixed, I downgraded to the previous version of the package

sudo apt-get install gtk2-engines-murrine=0.98.2-0ubuntu2

Then to prevent the package manager from automatically updating the package in the future

sudo echo "gtk2-engines-murrine hold" | sudo dpkg --set-selections


Manually force Brasero to burn an iso on a defined image speed

Your hardware is more then likely what is determining what speeds are avaible for you to burn with.  I would say that your hardware is determining the capable burn speeds. You can look at your burner and see its capable speeds.

You can get other burning programs such as
K3b:

sudo apt-get install k3b

This will install another burner you can try to use and see if it has settings to lower the speed as well.


Trying Network Manager's replacement ConnMan

You're thinking of ConnMan. For those that don't know, it was created by Intel and Nokia for Moblin and then Meego. My understanding was it provides slightly fewer options and at slightly better performance.

However, I can't see any plans for Ubuntu to replace Network Manager with it. There's another AU thread that essentially says the same thing.

The only changes that really need* to happen are to pull the network manager applet into the new Indicator Applet framework, which is being done in the indicator-network package.

*I starred "need" because none of this needs to happen for any other reason than unifying the "system tray" deployment options on desktops.


At your router, change the wireless encryption settings to WPA2-AES only, not any WPA/WPA2 mixed mode and certainly not TKIP.

This change alone should improve the network performance for all devices.


TCAdmin needs super user permissions despite using sudo and being su

The source of the following error:

dpkg: error: requested operation requires superuser privilege

Is that sudo was executed only on the first command, the 2nd command was executed as regular user.

One simple solution will be:

sudo wget http://www.tcadmin.com/installer/tcadmin-2-bi.noarch.deb
sudo dpkg -i tcadmin-2-bi.noarch.deb

You can execute also:

sudo bash -c "wget http://www.tcadmin.com/installer/tcadmin-2-bi.noarch.deb ; dpkg -i tcadmin-2-bi.noarch.deb"

Also possible, download the file as regular user, and install it as root

wget http://www.tcadmin.com/installer/tcadmin-2-bi.noarch.deb; sudo dpkg -i tcadmin-2-bi.noarch.deb


use this repository

sudo add-apt-repository ppa:tualatrix/ppa


This feature is currently bugged, see: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1724944 and mark yourself affected

You need to install the dconf-editor tool if you not have already:

sudo apt install dconf-editor

Then when you opened it navigate to:

/org/gnome/login-screen

and set the 'disable-user-list' button to 'on':

Since the above is still bugged, the only solution is right now via terminal edit the following lines in /etc/gdm3/greeter.dconf-defaults:

#[org/gnome/login-screen]
# disable-user-list=true

to:

[org/gnome/login-screen]
disable-user-list=true

Be sure to edit both lines otherwise you might crash your login completely.


Live-Ubuntu 12.04 ran fine, now stopped booting!

It sounds like you may have filled casper-rw and used up your persistence.
This can happen trying to do an update on a small drive.
You can access casper-rw, from a running copy of Ubuntu, and recover files thus:

sudo mkdir /media/casper

then

sudo mount -o loop casper-rw /media/casper/


How to recover from failed upgrade of Ubuntu 17.04 to 17.10, partitions messed up

Thanks @MichaelBay,
  Running from a USB stick I wound up mounting my homedir, which was encrypted (How do I mount an encrypted /home directory on another Ubuntu machine?) then used rsync to backup up the files to an external SSD over USB 3.0.

It turned out sda2 really was root after all, but the failed install deleted several dirs I expected to see such as /etc. I installed a fresh 17.10 using the "Something else" option and mainly left the partitioning unchanged. Turned out I didn't need the backup at all (thankfully).

The biggest challenge was that I tried backing up to an external USB drive which was mac formatted (hifs iirc) and after waiting > 6hrs, I gave up on it and bought a fresh USB SSD that I could format as ext4 (took < 7 mins for 160GB).

PS. Seems like the install process would be a lot better if it would create a file of the current installation state, that one could debug against in these situations.


Cannot get any flavor of Linux to install

I am answering my own question, not to be snarky, but to let anyone else in the same boat know about the solution I found to this.  I have found TWO solutions:

Solution 1:
For those of you who may get a lock up in the graphical installer at 'Preparing to install', or try to install Mint or Lubuntu and get a lockup 75-80% in: this seemed to work for me.  Your mileage may vary!  After 5+ days of frustration trying to install Ubuntu, here is my solution.

I tried installing Ubuntu, Mint and Lubuntu, and the graphical installer always locked up.  The cursor quit spinning, the keyboard and mouse was locked out, and no matter how long you wait, it does not progress.  The only thing that worked was a power off.

The problem system:

Gateway MX6442 (MX6440 series) w/ Turion64 single core CPU
(previously a Windows XP Multimedia Edition computer)
2GB ram
120GB HD
Philips CD-DVD drive
Ethernet
Broadcom 4313 wireless card *  One major issue is the wireless card!  **

I finally downloaded the alternate CD at http://releases.ubuntu.com/ (THANKS @Marky) and tried that install.  I selected the language and other settings it asked for, then selected Install Ubuntu.  It got to 19% and locked up at 'retrieving nic-modules-3.11.0-15-generic-di' and a power off was all that would work.

To get past the hangup in the alternate disk installer, I turned the wireless off via the keyboard: FN+F2 on the Gateway.  The Broadcom wireless is a known issue in Ubuntu as you can see by searching the forums for Broadcom.  There should be a way to turn off the wireless through the keyboard for most computers.  Consult your user manual for the combo for your computer.  This worked to get past the problem lockup at 19% above.

There SHOULD also be an option on the installer to skip/turn-off the wireless device to allow installation to continue, not just a totally locked system!

So, the install got to 92%, 'retrieving file 16 of 20' and appeared to stop again since there was no [n sec remaining] message as with almost all other files that took a while to load.  However, after waiting a while it did complete loading and continued with the installation and successfully completed.

It ejected the CD and rebooted into Ubuntu!  Woo-Hoo!  After 5 days, I FINALLY get to see Linux on this machine!

Now I will need to go see about getting the wireless to work.  I will try the solution here:

How to install Broadcom wireless drivers? (BCM43xx)

Hopefully, the system will then be fully functional.  I will continue this after trying the above.

Since this was a brand new Ubuntu install, I did not need to remove anything in the system.  I followed the instructions in the above link, turned the wireless back on via keyboard before the last reboot command, and the wireless came up after the boot.  I was able to see and log in to my wireless router, and so far it has worked with no issues!

So, after 5+ days of total frustration, I FINALLY have an installed, fully functional Ubuntu installation!  I hope this helps someone else that has the same type of issues!

Solution 2:
After three days of trying to get ANY flavor of Linux to install on the Gateway laptop, I installed PC-BSD 10.0.  The first install failed, but at least it told me WHY it failed.  I restarted the install in VESA mode, and lo and behold, it installed first time.

Why did Linux fail?  It would seem there are three problem devices on this system: the video card (ATI), the sound card (???) and the wireless card (Broadcom).  The PC-BSD either correctly identified and loaded the correct drivers, or disabled them and continued.  In the end, everything works except the sound card, and it can run the same DE's as Ubuntu, Mint or Lubuntu.

Hopefully this answer will not get deleted, and will prove useful to those of you who just cannot get Linux to install.  I spent three frustrating days trying everything I could think of, and less than 4.5 hours (including a 3.6GB download) installing PC-BSD.

Thanks for all the suggestions.  I do appreciate those of you who actually tried to help. :)


How can I disable Nautilus from automatically opening everytime I have my Android phone plugged in

Install dconf-tools if you haven't done so yet.

Then open Dconf Editor. Ctrl + F and search for media-handling. Disable the "automount-open" option.

This will disable all media, not only your Android phone.


How to block pdf file in apache2 - Ubuntu16.04

You can add this code in to the to the apache httpd config:

<Files  ~ "\.pdf$">
  Order allow,deny
  Deny from all
</Files>

This code will deny access to all the *.pdf files. But the question is why you keep in httpd docs directory files you do not want to expose to the world.

If you want to restrict access to only one file the code in config should be like:

<Files  test.pdf>
  Order allow,deny
  Deny from all
</Files>


Not all updates can be installed warning when installing Gnome 3

Can you try the following first?

sudo apt-get update
sudo apt-get upgrade

Start by closing the Update Manager first...

I am suspecting that the update part is not properly completed.
If that is the case, just doing the update part successfully (without errors) on the command line and then trying with Synaptic or the command line upgrade should work without further errors. Download speed is a different problem tho.


Mouse lag after updating ubuntu 19.04 to 19.10

Update:
by using htop instead of cpu monitor, I figured out that 100% of cpu was used in lower priority by tracker-miner-fs. I used the following script:

echo -e "\nHidden=true\n" | sudo tee --append /etc/xdg/autostart/tracker-extract.desktop /etc/xdg/autostart/tracker-miner-apps.desktop /etc/xdg/autostart/tracker-miner-fs.desktop /etc/xdg/autostart/tracker-miner-user-guides.desktop /etc/xdg/autostart/tracker-store.desktop > /dev/null
gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2
gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false
tracker reset --hard

Taken from Radu Rădeanu's answer to tracker-store and tracker-miner-fs eating up my CPU on every startup.

Now everything works like a charm.


sendmail expects email headers before email body on its standard input.

Try the test command below:

#!/bin/sh
/usr/sbin/sendmail -i -- myemail@domain.com <<END
subject: test

My test email being sent from sendmail
END

-i - do not treat "single dot" line as end of message
-- - end of command line options (only recipient addresses follow)
-t - get recipient addresses from email headers


How to restore a virtual system after accidentally removing all kernels?

You can solve this problem very easily, so go through the steps below one by one:

Insert a Live CD ISO image into the Virtualbox disk drive.
Change the boot order for the Virtualbox drives to boot from this ISO image and boot into it.
choose 'Try Ubuntu' and open a terminal by pressing Ctrl+Alt+T.
Run lsblk to find the proper device name for your VM main drive.
Mount the drive into /mnt where XX is the proper drive label for the drive you want to rescue:

mount /dev/sdXX /mnt

Now mount and bind the following to make a proper install possible:

sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /dev/pts /mnt/dev/pts
sudo mount -t sysfs /sys /mnt/sys
sudo mount -t proc /proc /mnt/proc
sudo cp /proc/mounts /mnt/etc/mtab
sudo cp /etc/resolv.conf /mnt/etc/resolv.conf

Chroot into the mountpoint with sudo chroot /mnt.
Run an update of the packet-lists:

apt-get update
# you might want to do an upgrade as well if you like
apt-get upgrade

Now you can install the kernel again with:

apt-get install --reinstall linux-image-generic

Run update-grub to make sure grub points again to a working installed kernel.
Now you can exit the chroot environment by pressing Ctrl+D and wrap up before you shut down the VM and reboot it on the normal drive:

sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt

This should have done it and your VM now again has a kernel to boot from


How to remove orphaned files and residues

Kinda embarrassing answering to my own question but found a solution how to remove orphaned packages that satisfies my needs.

First I made a new custom filter in Synaptic package Manager.

Settings -> Filters
Than Deselected All and checked only Orphaned check box and  saved.

Now synaptic is listing all orphaned files. Note that synaptic will list files with no dependencies as orphaned too so don't remove anything you're unsure what it is (and if it is really orphaned).

Than I installed GtkOrphan using CLI sudo apt-get install gtkorphan which is a GUI for deborphan but adds option to remove packages too.

Once started GtkOrphan and has to be run as root, under Orphaned packages tab expand the Options and check the "Show all orphan packages, not only those in the libs section". After that GtkOrphan will report as "orphaned" all packages that have no dependencies too, for example libreoffice, ubuntu-desktop, ubuntu-restricted-extras, myunity and etc. Now you can check the list and using right-click context menu chose to hibernate each package you don't want to be reported as orphaned. List of hibernated packages can be accessed from right click context menu or View menu.

Always under Orphaned packages tab and expanded Options check the "Show uninstalled packages with orphaned configuration files". Before removing anything make sure you know what are the files you want to delete. In my case GtkOrphan found some old nautilus configuration files not shown in Synaptic Package Manager.

In case you delete some of configuration files you need re-installing the package should solve the problem.


Searching fax in the software center I have found kFax and gtk-eFax, why aren't they good?


GNOME v3 is known to not work with x2go. XFCE / Xubuntu definitely works very well
This could help you: https://www.howtoforge.com/how-to-install-x2goserver-on-ubuntu-14.04-as-vnc-alternative


Ubuntu 13.04 won't shutdown or restart (Just a black screen)

I have the exact same specs as you, except with an Intel chip, and  I had the same problem.  Initially, I thought the culprit was the Nvidia GPU, and I tried both the proprietary and open source drivers, but was unsuccessful in fixing the shutdown problem.

Then, I came across two possible fixes, which I posted in this bug report Ubuntu 13.04 x64 doen't shutdown/restart

One solution option is to install the upstream kernel.  (For me the upstream kernel caused  network adapter emulation issues in VirtualBox).

The other solution option is to fix your wireless card, if you have one and it is not working.  The technique for the Broadcom 43B1 device is posted here: 14e4:43b1 Broadcom Corporation Device 43b1 (rev 03) - not supported


Watch TV on Ubuntu with PCI TV Card (tvtime no sound)

did you try to install XBMC and activate some plugins....
one my friend is solve his problem with


Bluetooth keeps "hanging" after a few minutes

Disabling "bluetooth coexistence technology" may fix the issue. It is no good in iwlwifi. Run in a terminal

sudo tee /etc/modprobe.d/disable-btcoex.conf <<< "options iwlwifi bt_coex_active=N"

and reboot.


Can't open grub menu through Shift or Esc keys

This finally worked for me :

Goto your BOOT menu and then go to BOOT settings - change "BOOT MODE" to "Legacy" from "UEFI" --> Save
Shut Down and restart.
In my case, it showed "No operating system found"
Quick shut down your system(by pressing the power button continuously for 15 secs)
Goto the Boot menu again and reverse the Boot mode back to UEFI.
Restart your System. This time most probably the GRUB menu will appear.


What's up with the libqtrpc2-1 / rds package in the archives?

The libqtrpc2-1 binary package is built from the rds source package, as is listed on Launchpad
It's quite common for source packages to build a number of binary packages, some of which may not appear to have a related name.


Here is a link to that image. Note that, though it may appear to be blank, it's actually white text with a transparent background.

Note that apt-file search /usr/share/unity-greeter/logo.png shows it's in the unity-greeter package, so you can also reinstall the image with the following command:

sudo apt install --reinstall unity-greeter


Can't suspend or hibernate with an Nvidia Ti 4200 card

Fixed it eventually by running nvidia config from sudo. The xorg.confg file isn't properly configured when the drivers are automatically installed. Once nvidia control panel has updated the xorg.config the usual work around here works :
https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia


If you check city.js, you will find this line:

  src/app/city.js:const Gnome = imports.gi.GnomeDesktop;

So you need something related to javascript and gnome introspection.

Try to search appropriate package using 'apt-cache search javascript introspection'. Do you have gir1.2-javascriptcoregtk-4.0 or gir1.2-javascriptcoregtk-3.0 installed?


How can I open .bak files from LibreOffice?

Not automatically because the file type is not registered. You can, however, tell Libreoffice to open the .bak file.

From the file manager: right click the file, choose Open with..., and choose Libreoffice.
From Libreoffice itself: use the open dialog.

.bak files are located in the backup folder. The location of this folder can be found with Tools/Options/LibreOffice/Paths.


Crash-sound on viber notification Ubuntu 18.04

Perform the following steps:

Settings → Sound → Sound effects

and turn off Alert volume?.

If you just want to turn off the sound for one application you could also go to:

Settings → Notifications

and select your application and turn off Sound alerts.


Here is a list of devices on which Ubuntu Touch is tested and (kinda) known to work. Touch works great on my Nexus 4. The chances of Ubuntu Touch running on a phone or ARM device not in that list by pure coincidence is functionally infintesimal.

Unfortunately, the Dragon is not on there.

I don't know if you want to install Ubuntu Desktop or Ubuntu Touch (wildly separate), but I know from experience that if you're like me and you're willing to sacrifice the usability of your device for pure awesome, you can follow this guide on how to put Debian on a tablet.

Yes, Debian, not Ubuntu, because suffice it to say Ubuntu is bloated, and Ubuntu is Debian, just with a buncha different stuff installed, and a lot of Ubuntu just won't work on ARM where Debian will. Same package manager, same distro. just kidding


How do I include image in my app from a url?

This works for me:
from gi.repository import Gtk

class Handler:
    def on_window1_delete_event(self, *args):
        Gtk.main_quit(*args)

def change_image(image):
    the_image = builder.get_object("replaceimage")
    the_image.set_from_file(image)
    the_image.queue_draw()

builder = Gtk.Builder()
builder.add_from_file("ui/sample.glade")
builder.connect_signals(Handler())
window = builder.get_object("window1")
window.show_all()

change_image("assets/image.png")

Gtk.main()

It uses this glade file.
It does, however, require that you save the image to disk first.


The "answer" to your question is: The message " getfattr: [file name]: Operation not supported" is because squashfs does not support ACL.

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

and http://manpages.ubuntu.com/manpages/trusty/man1/getfattr.1.html

  getfattr - get extended attributes of filesystem objects

  For each file, getfattr displays the file name, and the set of
  extended attribute names (and optionally values) which are associated
  with  that file.

So, because squashfs does not support ACL or "extended attributes" , you are getting the message " getfattr: [file name]: Operation not supported", the files in your squashfs do not have extended attributes, period. The never will no matter what version of squashfs you use.

See https://www.kernel.org/doc/Documentation/filesystems/squashfs.txt

  1. FILESYSTEM FEATURES

  ACL support:            no          no

In order to not get that message, don't use ACL.

That message has nothing to do with kernel version on version of squashfs-tools as you are asking in "i think this error becouse kernel version not equal squashfs-tools"

I am not sure how that affects your custom iso it should still boot just fine as ACL are not mandatory to boot or run Ubuntu and most people do not use them.

If you are having a problem with your custom iso you need to provide details of how you made it.

What was your base .iso ? What customization did you make ? and best, what command did you use to both make the squashfs and iso ?

Other than explain the cause of the message it is impossible to provide any further support due to the lack of information you have posted despite extended discussion.


There was a bug in the fontconfig package (I reported the bug, which has since been fixed in fonts-noto-cjk - 1:1.004+repack2-1~ubuntu1) which somehow let Chrome believe that "thin" is the correct weight to use. I removed the package and downloaded NotoSansCJK directly from Google, which contains fonts of different weights in separate files. After installing the fonts manually this issue seems to be fixed, and Chrome is able to render CJK correctly even though my default font is still unchanged (Liberation Sans).


Can't add Google account on Ubuntu Gnome 17.04

As a temporary solution you can login to your Google account without entering passwords and it works for online-accounts.

Go to https://myaccount.google.com/signinoptions/phone-sign-in/welcome
Select "Add a phone"
Follow the instructions
Open online-accounts, select Google, enter your email
Use your phone to add Google account to online-accounts

More information you can find here: https://support.google.com/accounts/answer/6361026?hl=en


Additional drivers for Nvidia Card does nothing with Blender

Determine the latest version of Nvidia driver available for your graphics card

a. Visit the graphics drivers PPA homepage here and determine the latest versions of Nvidia drivers available which is ‘nvidia-370’ as of January 1, 2017.

b. Verify that your graphics card is capable of running the latest drivers. You can search on this link to determine if your graphics card is supported by a driver version. Don’t be so particular about the version part after the dot (after nvidia-370.xxx), just make sure you’re supported on the main version 370.

Remove older Nvidia driver

 If your graphic is supported, you can go ahead and remove all previously installed Nvidia drivers on your system. Enter the following command in terminal.

sudo apt-get purge nvidia*

Add the graphics drivers PPA

Let us go ahead and add the graphics-driver PPA -

sudo add-apt-repository ppa:graphics-drivers

sudo apt-get update

Install (and activate) the latest Nvidia graphics drivers. Enter System Settings/Software&Updates/Additional Drivers Tab following to install the version of Nvidia graphics supported by your graphics card

Reboot your computer for the new driver to kick-in. You can check your installation status with the following command

lsmod | grep nvidia

If there is no output, then your installation has probably failed. It is also possible that the driver is not available in your system's driver database. You can run the following command to check if your system is running on the open source driver nouveau. If the output is negative for nouveau, then all is well with your installation.

lsmod | grep nouveau

Prevent automatic updates that might break the drivers by removing the graphics-drivers PPA from your software sources On Ubuntu, go to your software sources, and then other sources and remove all instances of the graphics-driver PPAs.
Removal

Are you running into issues with the new drivers, you can easily remove it.
       a. Remove the graphics-drivers PPA as indicated in the step above.
        b. Enter the following command to completely remove the driver
sudo apt-get purge nvidia*
       c. Reboot your PC for the open-source nouveau drivers to kick-in.

Source

Also, In order for Blender to Detect the NVidia Driver, you must Download the Latest Version of Blender from Here.

Or update the Ubuntu Repository by adding the Following PPA For Ubuntu 16.04 and Removing the Outdated Version of Blender: For Other Distros follow Here.

sudo apt-get --purge remove blender

sudo add-apt-repository ppa:thomas-schiex/blender

sudo apt-get update

sudo apt-get install blender

After that Blender Detects the Video Card without any Problems!


Your extensions should be installed in a directory in your home. Open your Home, press Ctrl+H to show hidden files, then navigate to .local/share/gnome-shell/extensions and make a backup of all the folders inside it.

Provided you will be using the same version of Gnome you're using now, you can simply copy all the backed-up folders in a new Home to have your extensions again.


Ubuntu 18.04 Uncompression error -- system halted

Thank you so much vanduim for your intervention.
i wanna inform you that i fixed this problem by booting using a flash memory contains the ubunto setup and repaired the messed files and then restart my os  finally  worked find hope this solution help others too


What to do with "filesystem root has low storage"?

There is a very good GUI application to visualize where your space is being used. It's called Disk Space Analyzer and it's installed by default in Ubuntu. It makes it very simple to see what's consuming all the space. It may be helpful to you when you're a beginner. I'm fairly experienced and I use it because it's comfortable. :)
A 20GB root partition is a little tight for a modern desktop system, I'd say. Particularly when you're using cross-distro packages like Flatpak and Snap, because they need their own dependencies, so they're fairly large.
Unfortunately, fixing this is not as easy as it could've been if you had used LVM. It's an option in the installer and it allows you to move and resize "partitions" at a later point in time. To fix this, I would recommend copying your home to an external device and reinstalling Ubuntu. If you want to use your space efficiently, there's nothing wrong with having the home directory on your root, rather than as a dedicated partition.
Apps should not be stored in your home, for the primary reason that Ubuntu is a multi-user system, so you want installed apps available to all users, while your home should be private.
There are many good reasons why Linux users like to have different partitions for different parts of the system. One of them is that different filesystems have different qualities and you need different partitions in order to use different filesystems. For instance, if you download large files using bit torrent, you do not want your home to be on a BTRFS filesystem, because the continuous writes of large files will make it very slow over time. On the other hand, you may want to use BTRFS for your /etc because BTRFS allows snapshots and reverting to previous states, so if you make some bad configurations, you can just revert everything to a known good state.
In the specific case of /home, it's also good to be able to reinstall your OS without having to touch your home. In your case, that won't be possible, since you're going to need a new partition table if you want to resize your root filesystem.


Disable scrolling through tabs in chrome

Unfortunately, as of early September 2018, there is no way to disable this really frustrating anti-feature without modifying the source code and recompiling Chromium.

A feature request for an option to disable this absurd behavior was submitted in August 2014 and has languished for more than four years.

A detailed solution involving modifications to the Chromium source code (basically rolling back the patch that never should have been merged in the first place) is available on SuperUser.


How to installed ubuntu 12.04 lts alongside windows 7?

So easy!

Install Windows 7, 64 Bit, don't use the entire hard disk let us say from 500GB, make a new partition with the win7 installer's partition manager and choose the 250GB partition and install. Let the rest of it untouched, that will handle linux!
After installation of Windows7 had been done, take the ubuntu cd inside, make sure you have internet connectivity (best through router via DHCP) and put the linux cd inside.
Ubuntu will ask you questions like keyboard, language and at the certain point ubuntu will ask you to start the installation "default".

I personally advise making the partition myself.

On a standard system (without EFI) you have 4 primary partitions... Windows reserved one primary partition so you still have 3 left.
create one primary partition for /boot with 1 GB, and one more for virtual partition.

Inside the virtual partition, you create partitions for linux folders!

Most imporant are:

/tmp (5GB)
/opt (50GB)
/usr/local (10 GB)
/home (20GB)
swap partition (doube the memory, but 8GB would do it fine, and more is not necessary)
/ (the rest of space -> 250 - 93 = 157GB)

during the installation ubuntu will fetch the packages too.
After the installation had been done, ubuntu writes the boot manager with grub    automaticly so that you can choose between win and linux which system you like to boot.

Does it have to be 12.04 ?! Take the latest xubuntu (http://xubuntu.org/), then you don't have to mess with the ressources hungry Gnome3 UI, which was not the case with Gnome2

But of course, it's up to you.....

Have fun!


Upgrade button is missing from Ubuntu Software when opening .deb file in Ubuntu 20.04

An equivalent of that action would be using dpkg command
sudo dpkg -i <your .deb file>

It will install and/or update (if it's existing) the software to your machine.


Try changing your encryption to WPA2, see Network Manager (nm-applet). It might work.


While @marosg answer is excellent, I just want to add..

nomodeset parameter is highly in use since the previous releases and lot of people are looking for a workaround or solution in the web while their first attempt failed due to graphics problem..

While there are answers how to edit the kernel parameter while booting the Live USB.

With the addition of this boot entry, it gives the user a fast way to try Ubuntu/ Install Ubuntu here onwards..

As I have tried to view the parameters for these new entries...
it just added nomodeset no other parameters other than default.

Please have a look on below images..

Try Ubuntu without Installing

Try Ubuntu without Installing (safe Graphics)

Install Ubuntu

Install Ubuntu (safe Graphics)

Here are few links to previous Questions about nomodeset.

How to set nomodeset GRUB2 before I've installed Ubuntu
How do I set 'nomodeset' after I've already installed Ubuntu?
Nomodeset Installation
Black Screen without nomodeset
How to boot without 'nomodeset'?
Is nomodeset still required?


How do I block GRUB from appearing when resuming from hibernation?

A bug causes GRUB to look for this line instead:

GRUB_RECORDFAIL_TIMEOUT=

https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/462888/comments/10


Failed build module _decimal of Python 3.6.5 on Ubuntu Trusty

My bad. No need to add option --with-system-libmpdec as libmpdec is included with python source, or if still need using specific compiled version, add -I  flags in the configure command, e.g:

CFLAGS="-I/home/user/.local/include ./configure ...


How do I configure the search domain correctly?

Search domain means the domain that will be automatically appended when you only use the hostname for a particular host or computer. This is basically used in a local network.

Lets say you have a domain name like xyz.com (it may be available globally or may be local only) and you have 100 computers in the LAN. Now you want this domain name to be automatically appended when you look for any computer by just hostname of the computer. If the domain name to be appended is xyz.com then the search domain should look like:

dns-search xyz.com ##If you put this into /etc/network/interfaces

or

search xyz.com ##If you put this into /etc/resolvconf/resolv.conf.d/base|head|tail

Now how do you check if its working properly, just use ping or any DNS resolving program like host, nslookup , dig.

For example if a host is test having the IP 192.168.1.5 then using host:

host test
test.xyz.com has address 192.168.1.5

Now as dig does not use the search list/domain by default you need to use it like dig +search test to enable appending search domain.

Using nslookup:

nslookup test
Server:     192.168.1.11
Address:    192.168.1.11#53

Name:   test.xyz.com
Address: 192.168.1.5

Here 192.168.1.11 is your local DNS server which has the IP address for the host test.xyz.com (notice the full form) that is 192.168.1.5. The DNS server will resolve the hostname test.xyz.com to IP 192.168.1.5 but will not resolve anything for only test as it does not have any entry like so.

So, what search domain is doing in our case is that it is automatically appending a domain name to make it a FQDN when we are just using the hostname to look up a computer.


Add languanges to be always present on "Tools > Language > All Text" in LibreOffice Writer

Download the desired language extension (*.oxt file) from here
After download right-click on this file and select open with libreoffice
Open libreoffice writer and open "Tools > Language > All Text" and select "more"
Now "Options- Language setting" will open. Here select desired language in "Locale Setting" tab and press apply. You are done.


How to apply newly installed theme in 14.04?

Probably there may be a dependancy problem. You can overcome it by installing through main repo.

Human-theme 0.39.2 is in Official Ubuntu Repository.

You can install it by:

sudo apt-get install human-theme

Edit:

Update the system before install:

sudo apt-get update


Sometimes, and this is really rare, the package system blocks itself. In this case, it is worthwhile to install that problematic package (libdpkg-perl) by hand himself. So in your case, as confirmed your comment.

sudo apt-get install libdpkg-perl
sudo apt-get install -f


Steam hangs without showing window on Ubuntu 17.04

For what it's worth, re-installing from the dpkg didn't fix it.
However, re-booting my computer (which is annoying to do because it talks to a bunch of other things in the background) did "fix" the problem.
What is this, Windows ME? :-(


Can you use guest account on system with full disk encryption?

TL;DR

If you use full disk encryption - which is the only option in the 18.04 installer - you will not be able to use 'Guest'-accounts without giving everybody your encryption key.
This is true not only for 18.04, but for every release before, if you used full disk encryption.

Backgrounds:

For 18.04 Canonical decided to not offer eCryptfs anymore since the package is (or was) not actively maintained. Hence, securty issues and broken user experience could have a negative impact on the distribution itself, which clearly should not happen on an LTS release.

Also, in favor of better data protection, LUKS can be used to encrypt the whole disk.
ecryptfs-utils however was moved to Universe Repo, so you can install it from there.

To answer your question:

If you still want to encrypt your users home directories (i.e. on multi user machines) you'd be better off not enabling encryption during installation and then install the ecryptfs-utils package later on to finally encrypt your user home directories.


Has the CVE-2019-11815 bug been patched in the kernel version 4.15.0-50-generic?

This affects all Linux kernels prior to 5.0.8 — therefore, it will affect version 4.15.0. It is currently being patched by the Ubuntu security team. For more details, check out the Ubuntu CVE Tracker page on CVE-2019-11815.


Not uninstalling paramiko at /usr/lib/python2.7/dist-packages, outside environment /usr

I guess your problem is related to the problem discussed here.

Try to delete paramiko package using apt-get first:
apt-get remove python-paramiko.

This should also work for updating pip:

pip install --upgrade pip
apt-get remove python-pip


Openstack via Landscape/Autopilot - "console is currently unavailable"

Found my own answer - Looks like for some reason the auto-pilot build script is not setup to enable and configure the console component via "VNC" so instead the end user has to connect to juju and push config to the cloud controllers and all nova endpoints.

Not sure if it should be logged as a bug or not but it will defiantly be putting people off taking up OpenStack.


Getting an error while installing calculator lens

You can try installing smart scopes (from 13.10). Here's how:

First, you want to add the repository.
Open a terminal window (Ctrl+Alt+T). Copy/Paste, or type:

sudo add-apt-repository ppa:ubuntu-unity/experimental-certified

Then update...

sudo apt-get update

Last, upgrade the scopes already installed, and install a bunch of new ones.

sudo apt-get dist-upgrade

NOTE::"for the last command above, make sure no packages are removed except for the unity-lens-shopping. If the command tries to remove more packages, it means something is broken on your system and you need to fix it so do not proceed with the installation!"

So the system doesn't overwrite the newly installed scopes if 13.04 gets new scopes, type:

sudo apt-get install ubuntu-unity-experimental-certified

then

sudo apt-get upgrade

... and you're done.

When you search in Dash, you'll have a bunch of new scopes, calculator being one of them. You may have to click Filter results on the right and activate calculator.

'Borrowed' from here


Why am I unable to connect to ftp, or git or mysql server from my ubuntu 14.04 LTS computer?

I have found a solution...

I have set a static IP from the "DHCP Static IP Configuration"..

and it worked!

I do not understand why the problem has popped in the first place, and why did this work at all, I just went by some friend's recommendations.

If someone understands what was the problem why did this solution solve it, please post it and I'll choose it as the answer.


The default block size was 512 bytes since the first Linux ever. Except until recently 4k block sizes where introduced to cater for the ever increasing size of disks. This is actually even nearly dictated by the disk hardware (see more:https://unix.stackexchange.com/questions/178899/optimizing-logical-sector-size-for-physical-sector-size-4096-hdd).

Yet for your specific question: you are right that all files waste the unused bytes of the last block on many types of file systems, which is particularly wasteful for small files. But btfrs and reiserfs seem to be able to cope, acvording to https://en.m.wikipedia.org/wiki/Block_suballocation


Remove all other mice. install the dongle on one of the back usb ports.

I couldn't get my M570 to work until I did that..once I did it just started working.


Installation of Ubuntu 16.04 from a USB drive freezes

I fought with the same problem. I have a brand new Asus GL553VW. I wanted to install Linux but I had to face a lot of problems and still have some. The beauty is that it's a gamer laptop and doesn't really have support for Linux...
So, I will write down my past problems and the solution for them.

I had the same freezing issue during the installation. You should go to the grub, where you choose the booting operating system. If it doesn't appear by default, you should press Shift until you see it.

Then choose the Ubuntu, or Install Ubuntu (it depends, you will see
it hopefully), go to it with the arrows and press the 'e' key.
Here    go to the line which contains quiet splash at the end
and add    acpi=off after these words.
Then press F10 to boot with these settings.

The installer didn't freeze for me after that. However, you should be aware of that it changes only for the initial boot, after it, when you want to install Linux, you need to change it again.

The next problem I faced was that after booting, in one minute the fans started to scream and work at maximum speed. Other was that the shutdown freezed and I had to press the shutdown key longly.
The solution to both of these was to install nvidia.
Type in terminal:

sudo apt-get install nvidia

Press tab twice and see which nvidia is the newest. For example, it will look like:

sudo apt-get install nvidia-352

Hopefully it will be the same for you.

Next problem: the fn keys. Only the volume control worked with it. Unfortunately I haven't find an exact solution yet. I'm trying, but it would need a driver, which I'm afraid doesn't exist. However, I set my shortcuts in settings and after that, at least for instance the brightness control works (but with another key combination). The only bug which I faced then was that the keyboard backlight doesn't work whatever I do (in Windows, it's perfect after the installation of drivers from the given CD). I'm trying to solve it. Hopefully I will find a way to bring it to life.
I haven't found any other bugs yet, and I hope I won't. I haven't started to use it really...

Hope I could help you! :)


Did You install nvidia driver, and if yes try to disable force(full) composition pipeline because (if enabled) it is said to decrease performance.


sudo access per folder? is that possible?

No, i'm pretty sure you can't, but you can let other users read/write in that folder by changing it's permissions.

Another approach is to create a group, set that group as the owner of the folder, and then add all the users you want to that group.


Starting from Ubuntu 17.04 you can install zfs-auto-snapshot like this:

sudo apt install zfs-auto-snapshot

For Ubuntu versions prior 17.04 you could setup zfs-auto-snapshot to use automatic snapshots from repository

sudo add-apt-repository ppa:zfs-native/stable; sudo apt-get install zfs-auto-snapshot

or directly from github

curl -L https://github.com/zfsonlinux/zfs-auto-snapshot/archive/master.tar.gz | tar xz -C /tmp/
pushd /tmp/zfs-auto-snapshot-master && sudo make install && popd && rm -rf /tmp/zfs-auto-snapshot-master

By default it creates snapshots for each data set every 15 minutes and saves snapshot up to 1 year. However you could disable snapshots for specific dataset by setting com.sun:auto-snapshot dataset property to false

sudo zfs set com.sun:auto-snapshot=false tank/tmp

You could also use com.sun:auto-snapshot:... properties to tune auto snapshot behaviour. E.g. save snapshots daily for 31 days for tank/backup dataset:

sudo zfs set com.sun:auto-snapshot=true tank/backup
sudo zfs set com.sun:auto-snapshot:monthly=false tank/backup
sudo zfs set com.sun:auto-snapshot:weekly=false tank/backup
sudo zfs set com.sun:auto-snapshot:daily=true tank/backup
sudo zfs set com.sun:auto-snapshot:hourly=false tank/backup
sudo zfs set com.sun:auto-snapshot:frequent=false tank/backup

By default script saves:

frequent snapshots every 15 mins, keeping 4 snapshots
hourly snapshots every hour, keeping 24 snapshots
daily snapshots every day, keeping 31 snapshots
weekly snapshots every week, keeping 7 snapshots
monthly snapshots every month, keeping 12 snapshots


You must audio systems settings,

Choose the hardware tab, on the hardware tab select your device and next select stereo digital output

Select the correct profile for your speakers.

I got 5.1 with that and I use an external AV Amplifier.


What version of linux supports rtl8723be?

I think it is supported from linux 3.13 .... Install ubuntu 15.10 (which has kernel 4.2)


Scrolling in less in a byobu pane in terminal

Source
# Emulate scrolling by sending up and down keys if these commands are running in the pane
tmux_commands_with_legacy_scroll="nano less more man git"

bind-key -T root WheelUpPane \
    if-shell -Ft= '#{?mouse_any_flag,1,#{pane_in_mode}}' \
        'send -Mt=' \
        'if-shell -t= "#{?alternate_on,true,false} || echo \"#{tmux_commands_with_legacy_scroll}\" | grep -q \"#{pane_current_command}\"" \
            "send -t= Up Up Up" "copy-mode -et="'

bind-key -T root WheelDownPane \
    if-shell -Ft = '#{?pane_in_mode,1,#{mouse_any_flag}}' \
        'send -Mt=' \
        'if-shell -t= "#{?alternate_on,true,false} || echo \"#{tmux_commands_with_legacy_scroll}\" | grep -q \"#{pane_current_command}\"" \
            "send -t= Down Down Down" "send -Mt="'


gnu tar without the "z" option glues the file without compression, files are stacked into the tar archive. Recovery of a single file is slow due to sequential read

formats like rar or zip use file indexing to permit quick recovery, these formats have option to disable compression.


Monitor network traffic "during a specific time" in linux

vnstat -l does do what you need
Simply open a terminal window and type vnstat -l. Then start your program that consumes network bandwidth. When your program ends return to the terminal window and press Ctrl+C. The terminal will then show time elapsed and network traffic consumed:
$ vnstat -l
Monitoring enp59s0...    (press CTRL-C to stop)

   rx:     1.74 Mbit/s   149 p/s          tx:       32 kbit/s    62 p/s^C

 enp59s0  /  traffic statistics

                           rx         |       tx
--------------------------------------+------------------
  bytes                     7.40 MiB  |         142 KiB
--------------------------------------+------------------
          max            1.84 Mbit/s  |       35 kbit/s
      average            1.68 Mbit/s  |    31.53 kbit/s
          min            1.51 Mbit/s  |       29 kbit/s
--------------------------------------+------------------
  packets                       5215  |            2187
--------------------------------------+------------------
          max                157 p/s  |          68 p/s
      average                144 p/s  |          60 p/s
          min                129 p/s  |          55 p/s
--------------------------------------+------------------
  time                    36 seconds


ubuntu 15.10 available in the netherlands?

I don't think the issue is with your being in the Netherlands. :)

Like Dustin Wortman said, you can't skip a version of Ubuntu when you do upgrades. If you want to upgrade from 14.04 you will first have to upgrade to 14.10, then to 15.04, and then to 15.10. To be able to do this you will have to switch your upgrade to 'For any new version' in Settings. (Settings > Software & Updates > Updates)

But if you are currently ok with your Ubuntu 14.04 LTS installation, you can wait for the next LTS (Long Term Support) version, which will be 16.04. This way you can skip these non-LTS versions (14.10, 15.04, 15.10) and enjoy the LTS versions, which generally are more focused on being stable.

More information on LTS Versions: https://wiki.ubuntu.com/LTS


"VLC could not read the file" error when trying to play DVDs

That title has structure protection & is the likely cause of your problem with playback. The protection isn't an issue with the latest couple of libdvdnav4 releases but it appears it is with the version provided in lucid.

Assuming your drive is /dev/dvd, if unsure you could run this & check the /dev/ links

sudo lshw -C disk

Look for the section *-cdrom, if it shows /dev/dvd then use below command, if it says /dev/dvd1 then adjust, you could also use the /dev/srX instead where X is usually 0 or 1

If you are in region 1 then the main movie is title 24 so this may work, -

vlc dvdsimple:///dev/dvd@24

command means -  dvdsimple:// (no menus), /dev/dvd (device), @ title number

(starting in vlc-1.2 the @ is now a #)

Otherwise it's quite possible you can upgrade libdvdnav4 & libdvdread4 to newer versions, there are no real dependency issues. I don't have a lucid install to d. check but shouldn't be an issue.

If so you need to upgrade both packages at the same time, I'd use the 11.10 packages. If you wish to let me know, I'll edit in how.

EDIT: - realized I had a lucid iso so did a quick boot to live session to check out. You may not be able to play Thor with the above method though it could be handy for some other structure protected disks. I went ahead & upgraded the libdvdread/nav libs & you should then have no issue with Thor.

In some cases even with the newer libs you may have to resort to playing by going directly to the main movie title, Cars2 is an example of that, Thor should be fine as normal

To upgrade 10.04 to newer libdvdread/nav

Will use the 11.10 packages, one could use the 12.04 though 11.10 will suffice.

Open a terminal, run this command, then leave the terminal open

sudo apt-get remove libdvdread-dev; mkdir dvd_fix; cd dvd_fix

Then go to these pages, pick your arch, right click on the top listed mirror > save link as, save into dvd_fix folder (it's in your home dir.

http://packages.ubuntu.com/km/oneiric-updates/libdvdread4

http://packages.ubuntu.com/km/oneiric/libdvdnav4

Once both packages are downloaded & in the dvd_fix folder run this in the still open terminal

sudo dpkg -i *.deb

that will upgrade you & disk should play

If you need or think you may need the libdvdread/nav dev files for building related sources

We'll do this way to avoid possible broken packages - do AFTER the above is done

In your dvd_fix folder create a new folder named devs

Go to these 2 pages & download the -dev packages to the dvd_fix/devs folder like before

http://packages.ubuntu.com/oneiric-updates/libdvdread-dev

http://packages.ubuntu.com/oneiric/libdvdnav-dev

When or if you need the dev packages installed then just open that folder, right click on libdvdread-dev & install with gdebi. Then do the same for libdvdnav-dev, do libdvdread-dev first


How do I set up my Ubuntu Server to let my Mac connect with FTP?

You should be able to use SFTP on your Mac to connect.

  sftp username@host_server

The commands to use SFTP on the Mac are:

pwd
Print working directory of remote host

lpwdPrint working directory of local client

cd
Change directory on the remote host

lcd
Change directory on the local client

ls
List director on the remote host

lls
List directory on the local client

mkdir
Make directory on remote host

lmkdir
Make directory on local client

get
Receive file from remote host to local client

put
Send file from local client to remote host

help
Display help text


Download mongodb compass and Install Using the Terminal

I encountered the same error. However, when I installed it using Software Center it was successfully installed.
To install it using Software Center, double click on the .deb package and Click install.


I have also a Nexus 7 (2012), I followed the instructions at :
https://developer.ubuntu.com/en/start/ubuntu-for-devices/installing-ubuntu-for-devices/

but to be able to flash the nexus with Ubuntu, I replaced the step involving ubuntu-device-flash by this command :

sudo ubuntu-device-flash touch --channel="ubuntu-touch/trusty" --device=grouper --bootstrap
I also tried a lot of things before this, one of them was in the recovery mode: I wiped the cache.

but, I'm not perfecty sure all that is good, as, even though I succesfully installed Ubuntu on the Nexus, I'm stuck at the unlock page : It doesn't accept the swipe from the right edge.

good luck !


Ubuntu 18.04 Dell Inspiron 7380 charging issues

It sounds more likely your USB-C charger is not delivering enough current. It seems like the minimum to charge and run via USB-C is 45 watts. You might check to see if the charger you are using is able to deliver at least 45 watts or more, otherwise it could be firmware related - needing a correct updated version?


I found this expect script that someone else had written. It works for me - I have remote/unattended devices behind firewall and routing owned by other companies. Instead of having to work with them to expose my ssh port to the world via port forwarding so I can access the devices, I wanted to be able to use Reverse SSH. So built my own little system to get around that.

The server side runs a PHP & MySQL based website. I can click on a device and go to it's page. I click "Reverse SSH" button, which puts the command "Reverse SSH" into the database with the device ID.

On the client side, I have a python script that runs every minute via crontab. Everytime it runs, it reports the system health info, cpu load, memory, disk space, etc via HTTP to the server. During that HTTP transaction, if a command is waiting for the device that checked in, I send the command back. The client side then matches that command, and executes a call to bash "expect /path/to/client/reversessh.expect".

The expect script is prefilled with my server ssh info (yeah, I know it's "insecure", but it works for now.), and establishes the Reverse SSH connection for up to 1 hour (you can set it to longer if you need). I can then log into the remote device from my locality.

The server I am running is Ubuntu Server 14.04, and the remote devices range from beaglebone black and virtual servers to desktop Pc's, RPi and RPi2.

On the debian based systems, I install expect via apt-get:

apt-get install expect

Here is the expect script, modify it as needed. It might take a moment to get it working but it does work. I hope the formatting doesn't get messed up, it is hard to copy and paste a large code block like this and get it to turn out right:

Example reversssh.expect

#!/usr/bin/expect -f
#Author: g0 2010 , kod.ipduh.com
#License:Same as Expect - Public Domain
#revtun sets up a reverse ssh tunnel
#ssh example: ssh -R 1025:localhost:22 -p 443 user@192.0.2.123 -fN
#Hardcode the arguments or pass them at this order on the command line
#eg:$revtun 1025 22 443 user 192.0.2.123 password http://kod.ipduh.com

set remoteport "1234" # this is the port on your server that will serve the tunnel
set localport "22" # ssh port of remote/target device
set port "2222" # This is the port in which the remote device will ssh into your server. If you use standard port for ssh on server then it is, it's 22.
set user "" #ssh user on your server
set host "" # server host ie blah.com or 123.123.123.123
set password "" # user password for servers ssh user
set report_to "" # I never used this...see below line that starts with curl. In your web server php script do <?php print_r($_GET); ?>

if {$argc > 0} { set remoteport [lindex $argv 0] }
if {$argc > 1} { set localport [lindex $argv 1] }
if {$argc > 2} { set port [lindex $argv 2] }
if {$argc > 3} { set user [lindex $argv 3] }
if {$argc > 4} { set host [lindex $argv 4] }
if {$argc > 5} { set password [lindex $argv 5] }
if {$argc > 6} { set report_to [lindex $argv 6] }

set message "m"

set timeout 3600 # number of seconds to keep the tunnel open, this is set to 1 hour.

set pid [spawn ssh -N -R $remoteport:localhost:$localport $user@$host -p $port]
while {1} {

        expect -nocase -re ".*yes/no?.*" {
                send "yes\r"
        } -nocase -re "password*" {
                send -- "$password\r\n"
                #send -- "\n"
        } -re "(%|\\\$|#) " {
                set message "$message-prompt"
                break
        } eof {
                set message "$message-eof"
                break
        } -re "incorrect|invalid" {
                set message "$message-incorrect"
                break
        } -nocase -re ".*Warning.*" {
                set message "$message-warning"
                break
        } timeout {
                set message "$message-timeout"
                break
        }

}

set user "$env(USER)"
exec curl $report_to?$user-$message --silent >/dev/null

#1 hour max connection time used to keep the script running

And if you want to keep it running if/when it goes down, I would use cron to run a bash script to check if the sshd program is running, if not running start it, otherwise do nothing. If you have other SSH connections going on, checking sshd may not work for you. Since this Reverse SSH script is the only SSH activity on the remote devices, it works for me. In my system, I can kill the Reverse SSH connection on a device by shooting off another command to the remote device when it checks in, "Disconnect Reverse SSH", and that causes the client side to run this command with bash:

kill `pidof sshd`

Edit your crontab with:
    crontab -e

The first 6 lines of the crontab file below are nice to specify, you may want to edit them to your liking.

Example crontab

MAILTO="" # local mail address to get cron messages, leave blank to disable
SHELL=/bin/bash
USER=root # run these cron jobs as root user
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOME=/root # root users home dir
LOGNAME=root

# Example check reverse SSH connection - runs every minute
* * * * * bash /path/to/check_reverse_ssh.bash

Example check_reverse_ssh.bash

#!/bin/bash
process_id=`ps aux | grep "sshd" | grep -v "grep"`
if [ -z "$process_id" ]; then
    echo "process not running for certain."
    expect /path/to/reversessh.expect &
else
    echo "sshd is running, If so, your tunnel should be good to go";
fi

Good luck!


Wait for this bug to be fixed: https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/669670


Configuring Apple Magic Trackpad in 12.04

Magic trackpad is basically a synaptic touchpad inside.  Many parameters can be adjusted with synclient, for example,

synclient TapButton3=2

will set three-finger tap to the middle button.


Configure ubuntu to record every keystroke in every session

OK, I found it myself and it's pretty simple.
To do this you have to

Install and configure logkey (sudo apt-get install logkeys).
Set the startup command for logkeys (with keymap and output file) to run in /etc/rc.local.
Then just reboot and see.


Viewing Error Details When Launching .desktop Files

Validating .desktop files

There is a tool to validate .desktop files: desktop-file-utils

Download the latest tarball from here.

To install

Unzip the file, cd into the unzipped folder's directory and run the commands:

./configure --prefix=/usr && make

and

sudo make install

as described here

To use it

Quoted from the link:, the desktop-file-utils can be run with the following commands:

desktop-file-edit

is used to modify an existing desktop file entry.

desktop-file-install

is used to install a new desktop file entry. It is also used to rebuild or modify the MIME-types application database.

desktop-file-validate

is used to verify the integrity of a desktop file.

update-desktop-database

is used to update the MIME-types application database.

The third option, ran with the .desktop file as an argument:

desktop-file-validate <.desktop_file>

will no doubt be the most interesting for you.

Note

When I tested the desktop-file-utils, it seemed to be more picky then necessary, and there were not many .desktop files that "survived" the test without at least a warning.

The good news is then that it is unlikely that the error, that makes your file fail, will be missed by the utility.


yes for me the same problem. I've workarounded the problem for Cardapio adding a custom launcher on Cairo associating the command "cardapio show-near-mouse". No solution yet for GnoMenu. Some help?


Try the KDE MP3 ID3 tag editor.

With the KDE MP3 ID3 tag editor, you can edit tags of multiple files, e.g. the artist, album, year and genre of all files of an album typically have the same values and can be set together.UA

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

sudo apt-get install kid3

Or just click KDE MP3 ID3 tag editor


You need some device on your local network which can send the WOL package needed. It must be the local network because the package isn't forwarded by routers to other network segments.

The perfect device to do this, would be your router.  Unfortunately very few routers support this, but if you get one which use OpenWRT or similar you can install software which can generate the necessary WOL packet waking up the machine you actually want to talk to.


External Hard disk being mounted in a different path after upgrade to 14.04

Use the blkid command to get the UUID of the partition on the external disk:

$ sudo blkid | grep sdb1
/dev/sdb1: UUID="cdff3742-9d03-4bc1-93e3-ae50708474f2" TYPE="ext4"

The corresponding fstab entry will look like

UUID="cdff3742-9d03-4bc1-93e3-ae50708474f2" /media/u10 auto defaults,nofail 0 0


There are two different versions of Skype. Version 4.x and version 5.x. You can run with either/both at the same time. If you're going to want to run the 5.x version, you must get the latest download from skype.com before installing/reinstalling (5.1.0.1 is the latest at this time).
There are a few problems that need to be addressed, especially if you're running Ubuntu 17.04.
17.04 fix...
To restore the missing top panel icon, the fix is similar to the one applied to the Dropbox indicator. Simply run the application with "env XDG_CURRENT_DESKTOP=Unity". For example, to start Skype For Linux, you would use:
env XDG_CURRENT_DESKTOP=Unity skypeforlinux (or skype for the 4.x version)

To make the fix permanent, copy the application desktop (skype.desktop for the older 4.x version, and skypeforlinux.desktop for the newer 5.x version... and you may have both) file from /usr/share/applications/ to ~/.local/share/applications/, then edit the file and change the "Exec" line by inserting "env XDG_CURRENT_DESKTOP=Unity" (without the quotes) immediately after "Exec=".
Exec=env XDG_CURRENT_DESKTOP=Unity skypeforlinux (or skype for the 4.x version)

Some applications are set to start automatically and in that case, you'll have to edit the desktop file from ~/.config/autostart/ in the same way.
General note: that some applications overwrite any changes made to their autostart files, located in ~/.config/autostart/. A way around this is to rename the autostart file, then in the application settings, set the application not to start on login. This way, the modified autostart file will be used (which has a different name and contains the workaround).
Repository fix...
If you've had the original Skype 4.x version installed, and/or one of the Skype 5.x beta's installed, be forewarned that you may end up with duplicate repository files in /etc/apt/sources.list.d named:

skype-stable.list

skypeforlinux.list

and you'll probably need to delete the second one, or future software updates may error out...
In terminal...
Confirm that the first file exists...
ls -al /etc/apt/sources.list.d/skype-stable.list

if the first file exists, then delete the second file...
sudo rm -i /etc/apt/sources.list.d/skypeforlinux.list


When I try to install mysql-server I get an error telling me i need mysql-community-server

I have installed earlier in my system and it didn't show any issues.

user $ apt-cache depends mysql-server
mysql-server
 Depends: mysql-server-5.7

It only showed mysql-server-5.7
Try these links:
digitalocean