For a certain definition of "merge" it's possible: you need to move the two partitions next to each other and then you can extend  sda8 with the empty space.

So:

Take a back-up
move sda6 to the left
move sda8 to the left
Press "execute" and go sleep
next morning, extend sda8


Found a way to get lightning back in thunderbird here, so I don't need gnome-calendar or evolution!!!


Find second instance of a word in a file and rename file

The script below renames all files in a directory, to the id in the second found string, starting with ProcID::

1. Renaming to the id in the second matching string (literally; no extension)

#!/usr/bin/env python3
import shutil
import os
import sys

dr = sys.argv[1]

for f in os.listdir(dr):
    file = os.path.join(dr, f)
    try:
        # only rename if the second instance exists
        new = [s for s in open(file).read().split() if s.startswith("(ProcID:")][1]
    except (IndexError, IsADirectoryError):
        pass
    else:
        # rename the file
        shutil.move(file, os.path.join(dr, new.split(":")[-1].strip()[:-1]))

To use

Copy the script into an empty file, save it as rename_files.py
run it with the directory as argument:

python3 /path/to/rename_files.py /path/to/directory_with_files

Notes

The script assumes the (exact) format: ProcID:0000014778
The script will not rename files if there is no second instance of ProcID (or none at all)

2. Only rename .txt files, and keep the extension

...Then use the version below, it will only rename .txt files and keep the extension in the renamed file. Usage is exactly the same.

#!/usr/bin/env python3
import shutil
import os
import sys

dr = sys.argv[1]

for f in os.listdir(dr):
    file = os.path.join(dr, f)
    try:
        # only rename is the second instance exists
        new = [s for s in open(file).read().split() if all([
            s.startswith("(ProcID:"), f.endswith(".txt")
            ])][1]
    except (IndexError, IsADirectoryError):
        pass
    else:
        shutil.move(file, os.path.join(dr, new.split(":")[-1].strip()[:-1]+".txt"))

What the script does

it lists the files in the directory:

for f in os.listdir(dr)

lists the strings inside the file, starting with ProcID:

new = [s for s in open(file).read().split() if s.startswith("(ProcID:")][1]

The ending [1] extracts the second occurrence of strings, starting with ProcID: ([0] is the first one)
splits of the id:

new.split(":")[-1].strip()

and renames the file, using the id:

shutil.move(file, os.path.join(dr, new.split(":")[-1].strip()[:-1]))

EDIT

Python2 version of script 1. OP turns out to have python2 installed, which requires IOError instead of IsADirectoryError to prevent errors in case the script runs into a directory instead of a file.

#!/usr/bin/env python
import shutil
import os
import sys

dr = sys.argv[1]

for f in os.listdir(dr):
    file = os.path.join(dr, f)
    try:
        # only rename if the second instance exists
        new = [s for s in open(file).read().split() if s.startswith("(ProcID:")][1]
    except (IndexError, IOError):
        pass
    else:
        # rename the file
        shutil.move(file, os.path.join(dr, new.split(":")[-1].strip()[:-1]))

...and for being complete, a python2 version of the second script:

#!/usr/bin/env python
import shutil
import os
import sys

dr = sys.argv[1]

for f in os.listdir(dr):
    file = os.path.join(dr, f)
    try:
        # only rename is the second instance exists
        new = [s for s in open(file).read().split() if all([
            s.startswith("(ProcID:"), f.endswith(".txt")
            ])][1]
    except (IndexError, IOError):
        pass
    else:
        shutil.move(file, os.path.join(dr, new.split(":")[-1].strip()+".txt"))


Thin client "Error: Socket failed: Connection timed out" when booting from Ubuntu 14.04.2 LTS LTSP server in virtual environment

After some guidance on LTSP IRC (special thanks to alkisg), I figured out the issue. Ultimately, it turned out that my VirtualBox host-only network was doing something weird. It didn't actually disable the virtual dhcp server when I unchecked the box.

Force VirtualBox Manager to disabled dhcp

Some other people had the same issue: https://forums.virtualbox.org/viewtopic.php?f=1&t=32201

On your host machine, list the running dhcp servers: VBoxManage list dhcpservers
Note the name of the dhcp service you want to disable, then VBoxManage dhcpserver remove --netname {name of dhcp server}. In my case: VBoxManage dhcpserver remove --netname HostInterfaceNetworking-vboxnet1
Do another VBoxManage list dhcpservers to ensure it's actually gone.

Debugging steps

On the thin server, modify the pxe boot command issued to the thin client located in /var/lib/tftpboot/ltsp/{architecture}/pxelinux.cfg/default where {architecture} is either amd64 or i386. Although the config file says not to edit anything because your changes will be overwritten, it's fine to do so as we're just testing. You'll want to locate the correct section that pertains to your LTSP setup (whether NBD or NFS) and make it look something like the following n.b. the break=mount:

label ltsp-NBD
menu label LTSP, using NBD
kernel vmlinuz-3.13.0-46-generic
# append ro initrd=initrd.img-3.13.0-46-generic init=/sbin/init-ltsp quiet splash root=/dev/nbd0
append ro initrd=initrd.img-3.13.0-46-generic init=/sbin/init-ltsp root=/dev/nbd0 break=mount
ipappend 2

First, from your LTSP server tail the log to see what errors come up: tail /var/log/syslog -f.
Now, reboot the thin client and you should be presented with an (initramfs) command prompt.
Check the ip address of your machine to make sure your on the correct network by running: ifconfig.
Check the network configuration provided by the LTSP server: cat /run/net-eth0.cfg. (For me, I noticed that the ip address assigned to ROOTSERVER was not the same as that of my LTSP server.)
Check to see if you can manually mount and boot the image from the LTSP server: nbd-client {ltsp server ip} -N /opt/ltsp/{architecture} /dev/nbd0.

As I said, ultimately, something funky was going on w/ my vm host-only network and after powering off the server and client and restarting, it all worked.

Hope this helps someone.


QSampler: "Could not start server. Sorry."

linuxsampler is not packaged for Ubuntu. This appears to be because of the exception in its GPL licensing "that USAGE of the source code, libraries and applications FOR COMMERCIAL HARDWARE OR SOFTWARE PRODUCTS IS NOT ALLOWED without prior written permission by the LinuxSampler authors."  An ancient issue from 2008 appears to explain the situation, though I did not read it in sufficient detail to confirm that the situation as described is still the same.

I ended up installing it using the KX Studio PPA: I followed their instructions*, then performed the usual steps after installing a PPA:

sudo apt update;
sudo apt upgrade;

Then I installed the sampler package with sudo apt install linuxsampler.  I installed the other linuxsampler-* packages as well, although they shouldn't be needed for basic use of qsampler.

After installing those packages, qsampler was able to start linuxsampler without complaint. After downloading and decompressing the Maestro Grand Concert instrument and doing what seemed like a rather unnecessary amount of configuration, I have an amazing piano sound that can run with considerably lower latency on my ancient laptop than the inferior sound I was getting out of qsynth.

*: I've refrained from including those instructions here in accordance with their request to "not copy these instructions to your own website, wiki, etc."


php file_get_contents causes segmentation fault (11)

Try using an other method to get the file content. As suggested by a user here who seems to have the same problem:

http://kb.odin.com/en/125759

function get_content($URL){
   $ch = curl_init();
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($ch, CURLOPT_URL, $URL);
   $data = curl_exec($ch);
   curl_close($ch);
   return $data;
}

$filecontent = get_content("URL");


using the quoted example you create a file in your home directory (~/.chrome-remote-desktop-session) and place the single line of text:

exec /usr/sbin/lightdm-session "gnome-session --session=ubuntu-2d"

The easiest way to do both together is to echo the text into the file as in:

echo  exec /usr/sbin/lightdm-session "gnome-session --session=ubuntu-2d" > .chrome-remote-desktop-session

The line i use for Lubuntu is

exec /usr/bin/lxsession -s Lubuntu -e LXDE


You can fix the error by:

sudo rm /usr/share/doc/libgcrypt11/*

Then do:

sudo apt-get dist-upgrade


It looks like you're trying to format the unpartitioned drive. File systems are supposed to be created inside partitions and therefore most file system creators refuse to create them on unpartitioned drives to avoid accidental misuse (unless you force them to).

You should create

a partition table on the drive (if none exists) and
at least one partition

before you create the file system. Gnome Disks (among other partition managers) can perform all of these tasks.

Side note: There is one known bad sector on the drive, which is a sign that the drive is likely to fail in the near future.


Blank screen after logging in with password

Try this:

install gdm from tty1 (ctrl+alt+F1),
#apt-get install gdm
#dpkg-reconfigure lightdm

change the default display manager from lightdm  to gdm


I installed android studio using umake, but I can't find the AVD Manager

There are two possibilities:

Directly from toolbar

Click on the second icon

You can also (I'm using Android Studio 1.5.1) choose Tools -> Android -> AVD Manager

If it doesn't work

choose File -> Settings, than find Android SDK menu item
click on `Launch Standalone SDK Manager
choose Tools -> Manage AVDs

It seems to you downloaded broken package, or Android Studio doesn't have or recognize Android SDK path.

You can also do these steps:

umake android --remove
sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio

Hope it help


Set turrent client to automatically start downloading a torrent when it's available

I use flexget for downloading automatically. Mostly series so I use it daily. You can filter on quality, subgroup and many many more. It even has IMDB filtering.

  Daemon Mode

  You can now run FlexGet in daemon mode, and handle scheduling directly in your FlexGet config. Traditional cron scheduling is also supported.

  Torrent clients

  Integrates with Deluge, transmission, and uTorrent directly, and other clients like rTorrent via watchdirs.

  Movies

  Internal movie queue. Automatic searching. Grab all movies which match predefined imdb and/or rotten tomatoes rules (score, year, etc).

Downside: it uses a text file you need to create and maintain so you will need to know upfront the movie name if you want to creaste a list of future downloads. Example from the link:

tasks:
  task name:
    rss: http://example.com/torrents.xml
    series:
      - pioneer one
      - some series
    download: ~/torrents/series/

This would downloade new episodes of serie "pioneer one" and "some series" the moment the torrent is active on "http://example.com/torrents.xml" and it will download the file to "~/torrents/series/". A configuration can become very complex and very large rather quickly.

Cookbook and Configuration examples.
Plugins


How to view content of a ubuntu installation by starting a live test session?

Yes, you can use sudo / su from the LiveCD without problems (even without password), it's a common way of quickly recovering info or doing some maintenance.

You can simply do sudo cp -a /home/Chanaka /destination/path/of/your/backup/.

Also keep in mind that if your backup media is formated on ext4 (also ext2/3 or any *nix filesystem), to access your backed up files from your new installation (or other pc) you'll have to change their ownership (from ubuntu to myuser) with sudo chown -R myuser:myuser /destination/path/of/your/backup/. This has no sense if backup media is formated on FAT or NTFS filesystems, which doesn't handle/hold unix permissions.

Another option would be directly from LiveCD, change original files ownership (sudo chown -R ubuntu:ubuntu /path) or permissions (sudo chmod -r 777 /path), and then copy those files from LiveCD file explorer (Nautilus). Note that after that process, old files have changed (ownership or permissions) and new files will have ubuntu user as owner, which is the default LiveCD user (you'll have to chown / chmod them from the new system).

Only if data is encrypted, would be the only way you´ll can't access the files.

Hope it helps.


With xrandr, use the options --right-of , --left-of and --primary as needed.

Once you find the options you desire, call xrandr (with the otpins you desire) at log in.

From your comment:

xrandr --auto --output HDMI2 --primary --left-of VGA1

See http://blog.bodhizazen.com/linux/use-xrandr-to-set-a-screen-resolution/ and man xrandr for details.


So how can I check if a progam is running?

open a terminal and type gnome-system-monitor

it should be listed in the "Processes" pane.


Some of the extensions to run well Yii2 are not installed, you can correct it by reinstalling the packages:

sudo apt-get install php7.0-xmlrpc php7.0-xml


You can use Windows' built in tools to fix it.

Follow the steps under Fix the MBR in Windows 7 or Fix the MBR in Windows 8 or 8.1 here

You probably only need to run "bootrec /fixmbr" and "bootrec /fixboot"

Windows 7

Boot from the Windows 7 installation DVD
At the “Press any key to boot from CD or DVD…”, press any key to boot from the DVD
Select a language
Select a keyboard layout
Click Next
Select the operating system and click Next. The “Use recovery tools that can help fix problems starting Windows” must be checked when you select the operating system.
At the System Recovery Options screen, click on Command Prompt
When Command Prompt successfully loads, type this command:

bootrec /rebuildbcd
Press Enter
Type the next command:

bootrec /fixmbr
Press Enter
Type the next command:

bootrec /fixboot
Press Enter
Remove the installation DVD from the disk tray and restart your computer

Fix the MBR in Windows 8 or 8.1 (also 10)

Boot from the original installation DVD (or the recovery USB)
At the Welcome screen, click Repair your computer
Choose Troubleshoot
Choose Command Prompt

When the Command Prompt loads, type the following commands:

bootrec /FixMbr

bootrec /FixBoot

bootrec /ScanOs

bootrec /RebuildBcd

Press Enter after each command and wait for each operation to finish

Remove the DVD from the disk tray
Type exit
Hit Enter
Restart your computer and check if Windows 8/8.1 can now boot


Recover Ubuntuone files after 14.04 installation

Ubuntu One has been removed from 14.04. You will no longer be able to get the app, using Software Center.

However, You might like to access/restore your data using (at least) following ways.

You may download all your data directly from https://files.one.ubuntu.com/download.zip as zipped file [Easiest way! Thanks to dobey]

Install UbuntuOne client on on other OSes (Like Windows, Android) and sync.
Use a live cd of an older version of Ubuntu and Install UbuntuOne (I haven't tested but it should work)
Access you file via FTP. It is easy to setup (and I did this right now).

Follow this Video. However, there is a small change in the connection setup. While trying to setup FTP server, use this address

ftp://127.0.0.1:2121

and hit 'Connect'. Everything else should be remain same as tutorial and video.

After connecting to UbuntuOne you will see your files in a directory named "Ubuntu One". Copy the entire directory to your local drive.

REMEMBER, It’s Time to say goodbye to Ubuntu One file services.


Thanks to steeldriver's comment, I found the solution !

Actually, the pgrep gnome-session command gives me 2 PID.
When I ls -l /proc/, I can see the first pid directory belongs to gdm (Gnome Display Manager), and the second belongs to my user.

So in my script, I just replace PID=$(pgrep gnome-session | head -n1) by PID=$(pgrep gnome-session | tail -n1) to use the PID associate to my user.

I don't know if this solution (with tail -n1) can work for everyone. I think the best thing to do is to run the pgrep gnome-session command, look at the owner of pid folders, and choose the one that belongs to our user.

Hoping that it will be useful !


Ubuntu server boot without keyboard/monitor

Have you verified that the system does not boot? For example add something like

    date>>/iamalive

to /etc/rc.local and check that file after reboot.

Are you using the correct IP to connect via Putty (static vs dhcp configuration)?


ERROR: dotnet CLI tools are not installed!

Setting up .Net CLI on Ubuntu 16.04 and Ubuntu 17.04

Register Microsoft trusted signature:

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg

Register the Microsoft Product feed for your distro version:

Ubuntu 17.04:

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-zesty-prod zesty main" > /etc/apt/sources.list.d/dotnetdev.list'`

Ubuntu 16.04:

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'

Ubuntu 14.04:

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'

Install .NET Core SDK:

sudo apt-get update
sudo apt-get install dotnet-sdk-2.0.0

How to use:

dotnet new console -o hwapp
cd hwapp

Run the app:

dotnet run

If all goes well your CLI is now setup.

Source:

https://www.microsoft.com/net/core#linuxubuntu


Ubuntu 16.04 freezes on boot after Windows 10 update

Check the bios has not been switched back to secure mode, this can problems with some nvidia graphics chips.


Why can't any Linux version boot Ryzen 7?

We ONLY support and answer about Ubuntu.

Ubuntu 18.04 has been proven to work with a Ryzen 7 so your statement does not hold up. 18.04 with a stock kernel and even with kernel 5.0+ installs perfectly.

The problem is with AMD. Ubuntu 19.04 with a stock kernel does not work and AMD admitted to never testing with 19.04; only with 18.04. The hardware seems flawed, or seems to pass wrong values to systemd and systemd crashes due to those flaws. So it is not even the kernel (ie. Linux) that is the issue but that beast called systemd. Ergo: systems NOT using systemd are likely to also install.

The site to visit regarding things like this is phoronix.

  AMD has identified the root cause and implemented a BIOS fix for an issue impacting the ability to run certain Linux distributions and Destiny 2 on Ryzen 3000 processors. We have distributed an updated BIOS to our motherboard partners, and we expect consumers to have access to the new BIOS over the coming days.

So update your BIOS.


Ubuntu dock changes version/style intermittently

What you're seeing in the second screenshot (right one) is not actually the dock, but the GNOME dash. The dash is a default feature of GNOME Shell, it appears only in Activities (and applications) overview. Ubuntu Dock (package name: gnome-shell-extension-ubuntu-dock) is a GNOME shell extension that turns the dash into a fully-fledged dock that may appear always.
Presumably you're seeing the second screenshot sometimes when the Ubuntu Dock extension is failing to load properly for some reason.

As a temporary workaround either rebbot your system (or log out and log in again) or simply restart GNOME shell by pressing Alt+F2, then typing r, and finally hitting Enter.


Please run the terminal command:
iwconfig

One of the details listed is Tx-Power. Here is an example from my machine:
wlp3s0    IEEE 802.11  ESSID:"GBR5"
          Mode:Managed  Frequency:5.745 GHz  Access Point: XX:2B:B0:DC:45:XX
          Bit Rate=866.7 Mb/s   Tx-Power=22 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off

I am unaware of the method to determine power level for bluetooth.


Ubuntu 16.04, apt-get upgrade leads to freezing without errors on MySQL server 5.7

I was experiencing this exact same thing, there appears to be a bug where the upgrade starts a new MySQL process that does not exit.  What worked for me was to manually kill the mysql process that the install started.  Something like this:

Run your apt-get install command (or whatever lead to this).
Wait for it to get to the stuck state with: This installation of MySQL is already upgraded to 5.7.21, use --force if you still need to run mysql_upgrade (or similar).
Do a "ps axu" on another terminal.
You (should?) see a process something like mysqld --user=mysql --init-file=/var/lib/mysql-files/tmp.14GvWpndwp --socket=/tmp/tmp.XwilP9D8VF/mysqld.sock --pid-file=/tmp/tmp.8V9FXDwilP/mysqld.pid  Note all of the temporary directories it's using, this appears to be an upgrade command that is not exiting.
Kill that process

This should let the apt-get process proceed.  I noticed that the upgrade script is sending a "stop" command (process) that is not obeyed by the MySQL process, so it's probably patiently waiting for MySQL to stop.  That's the observation lead me to this path.


MySQL Access denied for user 'root'@'localhost' ubuntu 20.04 and MYSQL8

I am updating what works for me everytime, follow these steps

Login as root user
sudo mysql -u root

select mysql db
use mysql;

Check plugin used for desired user, if it is auth_login? change this to mysql_native_password, using this query
UPDATE user SET plugin='mysql_native_password' WHERE User='root';

Now use this query to update root or any other user's password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'newpassword';

Restart mysql service using
sudo systemctl restart mysql


Multiple users, single laptop, private and shared files

To my opinion, the best option would be to create at least two different partitions for each home folder. In that folder you can keep the private files without them being accessed by other users. Then you can either make a third partition for shared files, or give permissions to a specific folder in the main system partition so that you can both access it.
The problem with it is that you have a fixed amount of storage for your files in each user(that may be a desired behavior)


I had the same problem and I solved it with

sudo mkdir /var/log/arpon

It seems that this folder is missing and the log file /var/log/arpon/arpon.log cannot be created during execution.


Let's see what packages depend upon libsnapd-glib1:
$ apt rdepends libsnapd-glib1

libsnapd-glib1
Reverse Depends:
  Depends: gnome-software (>= 1.55)
  Depends: snapd-login-service (>= 0.9)
  Depends: gir1.2-snapd-1 (= 1.58-0ubuntu0.20.10.0)
  Depends: snapd-glib-tests (>= 1.57)
  Depends: libsnapd-qt1 (>= 1.57)
  Depends: pulseaudio (>= 1.49)
  Depends: libsnapd-glib-dev (= 1.58-0ubuntu0.20.10.0)
  Depends: gnome-initial-setup (>= 1.42)
  Depends: gnome-software-plugin-snap (>= 1.50)
  Depends: snapd-glib-tests (>= 1.57)
  Depends: libsnapd-qt1 (>= 1.57)
  Depends: libgoa-backend-1.0-1 (>= 1.26)
  Depends: pulseaudio (>= 1.49)
  Depends: libsnapd-glib-dev (= 1.57-0ubuntu4)
  Depends: gnome-control-center (>= 1.57)
  Depends: gnome-initial-setup (>= 1.42)
  Depends: gir1.2-snapd-1 (= 1.57-0ubuntu4)
  Depends: cups-daemon (>= 1.49)

Looks like a lot more than snapd uses that lib. Removal is not recommended.


Disable Alt+Tab switcher grouping by script or command

I was scared to use ccsm until I read this blog which makes it look like all that ccsm does is to edit the compiz .xml configuration files.

A search for compiz reveals:

~/.config/compiz-1
~/.config/compiz-1/compizconfig
~/.gconf/apps/compizconfig-1
~/.gconf/apps/compiz-1
~/.cache/compizconfig-1

I backed up these directories and then made then changed from "unity switcher" to "static application switcher" using ccsm as shown here

I then logged out and back in again and compared my backup to the changed system.
Here are the results of diff -r compiz_before_change/ compiz_after_relogin/

CHANGED:

Binary file ~/.cache/compizconfig-1/place.pb
~/.gconf/apps/compiz-1/general/screen0/options/%gconf.xml

5c5
<   <entry name="active_plugins" mtime="1354022954" type="list" ltype="string">
---
>   <entry name="active_plugins" mtime="1354023761" type="list" ltype="string">
70a71,73
>       </li>
>       <li type="string">
>           <stringvalue>staticswitcher</stringvalue>

~/.gconf/apps/compiz-1/plugins/unityshell/screen0/options/%gconf.xml

2a3,5
>   <entry name="alt_tab_forward_all" mtime="1354023761" type="string">
>       <stringvalue>Disabled</stringvalue>
>   </entry>

NEW:

~/.compiz-1/session: 108caf9cb18e534392135401026619047100000017270046

These differences don't look big enough to me since I can't see anywhere that shows the keybindings which were changed, only the one which was disabled, so maybe compiz is a real pain and the change is in the binary file :-( Let's hope not!

I think if you expanded the backup and comparison, perhaps to the entire /home/ folder you would be able to find out which files contain the changes you want to make and then all you have to do is copy them from machine to machine.

Aren't human readable config files just awesome! :-D If compiz saves the settings in the binary file the coders who did that need a very stern talking to. >:-|

Good Luck.

P.S. In case your wondering, I actually made another backup of the same files after I had logged back in and then compared the two backups. It seemed quicker to me but then my brain does funny things sometimes ;-)


I can't actually use my Ubuntu install right now. It's a read only file system

In rescue mode, rescue mode mounts in read only. You need to choose the option "fix broken packages" or remount using the following command to mount in read write mode:

mount -o rw,remount /

NEVER try to do startx when running as root! This can mess up your file permissions for your xauthority file!


Is it possible to install Flash on Aquaris M10 tablet?

In the specific case of the bbc.co.uk website you can watch all their video content by going to this address:

http://www.bbc.co.uk/html5

and choosing 'opt-in' to their HTML5 Player beta.

If you then go to the iPlayer you should be able to watch any of their videos in the Ubuntu Web Browser without any problems.

I've been able to do this from Ubuntu on a Nexus 4 and a Nexus 7 (2013) and it works pretty darn well and should also work with videos on the rest of their site too.

Can't remember how I first heard about them having this option, but it wasn't well advertised by the BBC site itself.

It might be worth doing a web search for other media sites you want to use to see if they have a similar HTML5 beta too.


Can I install SQL Server Management Studio on Ubuntu 16.04?

No. You can use SQL Server Management Studio on Windows to manage SQL Server on Linux but the software itself needs Windows. The link from Microsoft does have a tip about a new tool that can:

Tip
If you do not have a Windows machine to run SSMS on, consider the new SQL Server Operations Studio. It provides a graphical tool for managing SQL Server and runs on both Linux and Windows.

SQL Server Operations Studio is currently only available as a preview but does have a download to a DEB installer.
Installation after downloading the deb:
cd ~
sudo dpkg -i ./Downloads/sqlops-linux-<version string>.deb
sqlops


Aliases cannot take positional parameters. For that you'd need a function:

$ c(){ echo "$(($@))";  }
$ c 2+2
4

This is not anything new nor dodges the question about aliases. Same has been covered here , here , here, and dozen other posts.

While it is possible to "simulate" the behavior for aliases in some cases with xargs, the approach is error prone, difficult to maintain, and doesn't work consistently. In general, if you don't want to use a function for some reason but want to have a command-line utility to perform calculations, use suggestions given in Any command line calculator for Ubuntu?. A dedicated tool such as those suggested can do more than just bash arithmetic expansion, which is another benefit.


How to change the colour xfce panel windowlist buttons flash

I am facing the exact same issue.

Found this solution:

http://ubuntuforums.org/showthread.php?t=1410349
(How to change active window color in xfce panel?)

It demands you to be aware of the theme you are using and then alter the file called panel.rc.

It is located at (you should edit the file as root): /usr/share/themes/theme_name/gtk-2.0

Find the line with the instructions for the bg[ACTIVE] color. Change the hexadecimal code for the color and save the file.

Then, you should log out and than back in. The color should be as you set in the file...

Hope I helped you.


There is now a simpler way to achieve this, it is an extension which modifies the hpadding for the right box only, which is basically enough for most. To install the extension click THIS LINK and click the toggle switch once, it will change to On and a box will come up asking you if you'd like to install. You will now see automagical spacing decrease. This works on 3.2, and 3.4, for 3.4 once it is installed you can configure it by refreshing the page and clicking the Preferences icon.

The OLD method to achieve this is to edit the default theme, but since it will get overwritten by updates, you should instead make a copy of the default theme, and edit the copy. You will need the user themes extension enabled to do it this way. To install the user themes extension refer to THIS LINK and then read below(at the bottom) to copy the default theme.

To edit the default theme you would run Alt+F2 or open a terminal:

gnomesu gedit /usr/share/gnome-shell/theme/gnome-shell.css

Now find and change hpadding to the desired setting: Ctrl+f, hpadding Note that hpadding only exists on 2 lines, here is where you will see it:

.panel-button {
    -natural-hpadding: 12px;
    -minimum-hpadding: 6px;
    font-weight: bold;
    color: #ccc;
    transition-duration: 100;
}

If you want to copy the theme instead you will open a terminal again and run for example

sudo cp /usr/share/gnome-shell/theme/ ~/.themes/GnomeShell/gnome-shell/

You also have to create a default theme.json file in the newly created gnome-shell directory, to do this with terminal touch ~/.themes/GnomeShell/gnome-shell/theme.json and gnomesu gedit ~/.themes/GnomeShell/gnome-shell/theme.json Paste the following:

{
   "shell-theme": {
   "name": "Gnome Shell",
   "author": "l300lvl",
   "version": "1.0",
   "type":   "custom",
   "thumbnail": "preview.jpg",
   "url": "http://l300lvl.co.nr/"
    }
}

Ctrl+s to save.

This will place the theme in your local users themes directory, i.e /home/USER/.themes/

To copy with Nautilus instead use Alt+F2(or paste in a terminal), gnomesu nautilus and browse to the above directory.

Once you've either copied the theme and done the desired edits, and enabled the extension mentioned above and then selected the theme, or edited the default theme, if you still don't see the correct results try restarting the shell: Alt+F2 r or reload the theme Alt+F2 rt


Install ffmpeg:

sudo apt-get install ffmpeg

Files can be converted to FLAC from ALAC via the command ffmpeg -i audio.m4a -acodec flac audio.flac. To do this for a while directory of files go to that directory (cd path) and issue the following:

for f in *.m4a; do ffmpeg -i "$f" "${f%.m4a}.flac"; done

(Optional)

Add replay gain to the FLAC files.
If the conversion is successful you can remove the ALAC files.

For reference see https://superuser.com/a/329278/87552 and http://ubuntuforums.org/showthread.php?t=1500430.


Dual-boot Windows 10: cannot boot latest Ubuntu but only older versions

Ok. I found the answer with the help of the French Ubuntu Forum :

so disable Fast Boot and Secure Boot.
resize partition in Windows to make space for Ubuntu.
boot from Live USB after editing the GRUB. I tried the following :

with  acpi=off : boots with low-resolution display (800x600)
with nomodeset : same thing.
with modprobe.blacklist=nouveau , boots with a correct display ! (1920x1080)

So from a Live USB session (with modprobe.blacklist=nouveau ), I installed Ubuntu (actually LM). At computer reboot, it started Windows with giving the choice between Windows and Ubuntu. I had to enter the BIOS and change the boot order to have "USB: Hard Disk" before "Hard Disk: Windows Boot Loader". Then at restart, I had the GRUB offering the choice between Ubuntu and Windows but still ought to edit the GRUB to add modprobe.blacklist=nouveau. Then from the Ubuntu session, I used the Driver Manager to activate the nVidia driver and now I can boot without editing the GRUB. At last !

Only small issues left : clock difference between Ubuntu and  Windows and for some reason, the Ubuntu install did not create a swap.


Kubuntu autostart program in a specific desktop

I believe what you are looking for is a terminal utility called wmctrl

It is not installed in Ubuntu by default but it can be found in the repositories:

sudo apt-get install wmctrl

You can use it to perform a number of operations - in your case it can move a window to a specific desktop after it has launched.

firefox &
wmctrl -r :ACTIVE: -t 2

The above set of commands will launch firefox and then move the active window (firefox) to desktop 2.

If firefox takes long to open its active window, you can try using a wait command before running wmctrl.

You can create a shell script with the these commands and make KDE to run it at startup in the "Autostart" utility.


Kubuntu 17.04: sddm shows only black screen with the cursor

I've downgraded xorg packages to previous versions:

  sudo apt install xserver-xorg-core=2:1.19.3-1ubuntu1
  sudo apt install xserver-common=2:1.19.3-1ubuntu1

After reboot login screen show up as expected.

I guess it's good idea to put packages on hold until the issue is resolved:

  sudo apt-mark hold xserver-xorg-core
  sudo apt-mark hold xserver-common


Well, there are a few different clipboards in X :) The one xclip copies text into by default is "selection buffer" - usually you just select some text with your mouse and then can paste it with middle mouse button. This buffer is separate from the one from which you can paste with Ctrl-Shift-V.

Try

echo "hello" | xclip -selection clipboard

also, see

man xclip

for more details about xclip


How to make `man` work for shell builtin commands and keywords?

The help command when is used with -m option can display information about builtin commands in pseudo-manpage format. For example:

help -m cd | less

will display information about cd command in a format almost exactly like in a manual page.

Starting from this command you can wrap man command in one function in your .bashrc file as follow:

man () {
    case "$(type -t -- "$1")" in
    builtin|keyword)
        help -m "$1" | sensible-pager
        ;;
    *)
        command man "$@"
        ;;
    esac
}

After this man will work also for all shell builtin commands and keywords. For example:

man :

will display:

NAME
    : - Null command.

SYNOPSIS
    :

DESCRIPTION
    Null command.

    No effect; the command does nothing.

    Exit Status:
    Always succeeds.

SEE ALSO
    bash(1)

IMPLEMENTATION
    GNU bash, version 4.2.45(1)-release (x86_64-pc-linux-gnu)
    Copyright (C) 2011 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>


I found this it appears to be what you want
http://www.my-guides.net/en/guides/linux/how-to-change-thunderbirds-date-format-in-date-column
export LC_TIME=en_DK.UTF-8 && thunderbirdoh and i did test it here


This is not a problem at all. My Ubuntu starts in blank and at the final stage the spash is shown and then I presented with the Login screen. So, if you aren't experiencing other problem, I would suggest you to ignore this issue.

  This time when I installed ubuntu I removed CD from the drive before restarting. I didn't let Ubuntu to first restart and then remove CD

Actually you need to remove Ubuntu CD before restarting, i.e after clicking the restart button (after installation is finished) you will be asked to remove the CD. And technically speaking, there is no harm in removing the CD if your installation says, it finished with success. So, no need to worry about it.


Which ubuntu derivatives plan to support xorg in the future?

Regarding the switch to Mir, please read the latest update of the Ubuntu Graphics Stack Roadmap. In short, Mir will be default compositor in 13.10, yet everything will still use x11 through xmir an x.org will be available as fallback. In 14.04 x.org will be completely removed and everything should run through xmir. Starting from 14.10, Mir itself will be used by Unity, and xmir will only be there for backwards compatibility.

Debian, on which Ubuntu is based, will not switch to Wayland or Mir in the foreseeable future, so I expect x.org to be available in the Ubuntu repositories still for quite some time.

According to a post in the phoronix forums, no other flavour of Ubuntu will use Mir anytime soon and probably none of them ever will. Those that rely on toolkits ported to Wayland will maybe switch to Wayland.

(Sidenote: If you have time, read also this slightly *cough* biased posting, it lists possible reasons.)


How to Access Ubuntu Files From Bootable USB "Try Ubuntu" Section

Install GParted and check whether you can get your stuff back.

sudo apt-get install gparted

Do you have Boot-repair installed? With that, you can repair your BOOTMGR.

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo set 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair- trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)


Asked on the IRC channel. I was attempting to use an AWS RDS PostgreSQL backend which isn't fully supported yet. There seems to be permissions issues when trying to actively update the DB on UI changes. This table should be created every time maas-region starts


How to startup with function keys defaulting to unlock

Usually there is a setting in the BIOS which allows different settings to be accomplished in the same way that the Caps Lock and Number Lock can be set from system boot.


In Advanced Settings, go to Desktop in the left pane.  You can choose the options there.  If you do not have it installed, the packaged name is also known as gnome-tweak-tool.


Asking remotely a computer to wake another via WOL

Easy-peasy:

Hike up to the remote observatory and turn on the Wake-On-Lan in the BIOS or on the NIC card if needed. write down the MAC address.

SSH into any other machine and type:
 sudo apt-get install wakeonlan
 wol MA:CA:DD:RE:SS

where MA:CA:DD:RE:SS is the MAC address of your server.

Done!


Why mounts are shared on Ubuntu 15.04, and how to turn it off?

This may "feel" like "leftover from some testings", but it is not.  It's a deliberate design choice by Lennart Poettering, made nearly three years ago in order to make systemd's containerization work. The intent was that if one wanted a private / mount one used a (future) /etc/fstab setting for it.

Note that those fstab options came about in those intervening years and now exist.  One could also, alternatively, use them in an explicit /etc/systemd/system/-.mount unit.

See Poettering's own explanation.

Further reading

Karel Zak.  mount. 8.  Ubuntu version 14 manual pages.
Lennart Poettering.  systemd.mount.  systemd manual pages.  freedesktop.org.
Lennart Poettering.  systemd-remount-fs.service.  systemd manual pages.  freedesktop.org.


Software Centre - how does it choose what to show?

Looks like you have the old buggy one there. I installed the new-look one which seems to work a whole lot better.


Lightning 1.8 has been uploaded

https://launchpad.net/~mozillateam/+archive/thunderbird-next

ppa:mozillateam/thunderbird-next  (Click here for instructions on using PPAs.)

Lightning 1.8 should also be pushed out with Thunderbird 16 when it is released to the main archive (with the exception of 10.04 which will need to go to lucid-backports and might lag behind a day or 2)


Yes, you can definitely do it:

Download the .iso of the Linux distro you desire.
Download the Universal USB installer.
Use the universal USB installer to create a bootable media, preferably a pen drive
Restart your PC and boot from the pendrive. You may need to go  into the BIOS and change boot device preference.
You will be guided through the installation procedure. It's quite informative and self explanatory.
Choose the correct set of options and if you face a doubt, feel free to ask.


Download and extract the Dell drivers for 1130
cd to the extracted folder and run the installer: sudo ./autorun


The next search returned chm2pdf

apt-cache search chm pdf

Have you tried it? You can install it with:

sudo apt-get install chm2pdf


Messenger - JavaScript error in the main process

Temporal workaround that I found is to switch off the option "Check for Update Automatically" from the menu "App". This will suppress the message "JavaScript error in the main process". In result the overall behaviour of the application will be improved.

Further when I check for updates manually, "Checking for Update..." process never finish (as you can see on the image above) or finish with the following error message.

Apparently there is a problem with their update server.


Remove Network Settings indicator/app on Ubuntu 11.10

You need to either Network Manager or WICD, not both.

For Network Manager:

Install network-manager and network-manager-gnome.
Deinstall wicd.
Reboot.

For WICD:

Install wicd.
Deinstall network-manager and network-manager-gnome.
Reboot.

Try the network manager first, to see if it solves your problem. If not, install WICD.


First, go to Main Menu, System, Preferences, Choose "Sound" choose the "Hardware" and "Output" tabs, see if the USB headphones (or similar) show up and are selected.

If so you will need to go to the preferences menu of the application you're trying to use and make sure the Audio Output is set to use the USB headphones instead of the default on board audio device.

Another possibility is that the device is muted, if so run "alsamixer" in a terminal and in the Alsamixer panel, press F6 to select the correct sound card (USB Speaker or similar) and make sure the volumes are not set too low and unmute them.

You might need to play around with these settings (as I had to also) to get them to work. Take note of what you change in case you need to change them back.


The manual page telinit(8) answers your question: use telinit.

  telinit may be used to change the system runlevel.


You could try update-grub to see if that will detect Ubuntu. This should check to see what operating systems are installed and update the grub


ubuntu 14.04 not detecting SamsungY Android via usb cable

I had the problem yesterday with a friends phone.  I had to go into synaptic, and install mtp-tools.

Once installed, the phone connected OK.


Make pycharm default for .py files in 14.04

Yes, this is possible. Follow these steps:

Right-click on the file, then choose Properties.
Click on the Open With tab on the Properties menu.
Select PyCharm from the list of applications, then click Set as default.


you can add more information from comment field . if you want to upload any files can choose attachments.

look at the image

yes you can save the BUG reports to a file and you can upload them manually

1 . Offline Method
For a bug report about a system crash:

apport-cli -p <package name> --save bug.crash

For a bug report about any other issue:

apport-cli -f -p <package name> --save bug.apport

2.Adding apport-collect information to an existing Launchpad bug

apport-collect <your bug_number here >

3.Adding attachments to an existing Launchpad bug
 for Linux pkg's

ubuntu-bug linux

for non-linux pkg's

ubuntu-bug my_crash_report.crash

Source


I've found a solution that worked for me.

Run the command: sudo vim /etc/default/grub

Here, edit the following from:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
To
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_psr=0"

Then run: sudo update-grub and reboot.

The issue apparently is with Panel Self Refresh (psr)


why doesnt ubuntu 13.04 prompt me for a password after suspend?

On ubuntu 13.10, macbookair 5.2, gnome-shell 3.8 I've had the same issue.

These have been the system settings:

gnome-control-center > brightness & lock > lock on and require password when waking from suspend enabled
dconf-editor > org/gnome/desktop/lockdown/disable-lock-screen disabled
dconf-editor > org/gnome/desktop/screensaver/lock-enabled enabled
dconf-editor > org/gnome/desktop/screensaver/ubuntu-lock-on-suspend enabled

This had no effect/didn't give any clues:

sudo dpkg-reconfigure gnome-screensaver
sudo apt-get install libnss-myhostname because of dmesg error "systemd-hostnamed[11869]: Warning: nss-myhostname is not installed. [...]" which was the only clue there

This made my day:

switching all the above mentioned keys in dconf-editor twice

So why? dconf bug? Or a combination of libnss-myhostname/gnome-screensaver/dconf? ... Didn't (want to) reproduce the problem and solution.

Edit:

After a reboot, the non-locking behavior showed up again. I found out that after locking the screen either by keyboard shortcut (set via gnome-control-center) or by console (gnome-screensaver-command -l) the locking was restored. So adding gnome-screensaver & to startup applications solved the problem. Check ps -A | grep gnome-screen if gnome-screensaver is running.


How to upgrade Unity on 10.10 UNR without upgrading Ubuntu?

The idea of creating a backport for Maverick was rejected. See https://lists.ubuntu.com/archives/ubuntu-devel/2010-November/032078.html


Ubuntu install (replacing Elementary OS) fails after BIOS

Suggest, on another machine, completely erase the USB flash drive before putting just Ubuntu back on to create an Ubuntu-onlu LiveUSB, then use that to reboot and do an {F12} reinstall. I've made that transition myself (although I used Xubuntu not Ubuntu) and it worked flawlessly on my Thinkpads, both models SL400 and R60.


Combine Multiple ISO Files To Burn A Single Bootable ISO Image

You should check out MultiCD. It might serve your purpose. For instructions on how to use it, check this webupd8 page.


Tipp 10 typing tutor app not launching at all

No, it's not you, it's Tipp10.
This answer assumes you have a 64-bit system
If you have a 32-bit system, Tipp10 should run out-of-the-box. If not, please comment and I will try to add instructions.
I used the tarball instead because I didn't like the script installed by the deb. There's no compiling to do, so there's not much benefit to the deb - it has the same dependency issues and APT wouldn't resolve them for me.
If you use the tarball, I would suggest creating a directory in your home (mkdir tipp10) and then unpacking it there.
In any case there seems to be only a 32-bit version, which means that if your system is 64-bit (whose isn't these days?) you need to install a whole bunch of 32-bit libraries to run it.
sudo dpkg --add-architecture i386
sudo apt install libstdc++6:i386 libglib2.0-0:i386 \
libfontconfig1:i386 libfreetype6:i386 libxinerama1:i386 \
libxcursor1:i386 libxfixes3:i386 libxrandr2:i386 libxrender1:i386 \
libxi6:i386 libsm6:i386

This list may not be exhaustive, because I've already installed various things on my 17.04 installation. I will show you how to troubleshoot in a moment...
If you have the tar, cd to the place you've put it and unpack
tar xzf tipp10*.tar.gz
cd tipp10*0

Now try to run the executable.
./tipp10

If you installed the .deb (using the command sudo dpkg -i tipp10*.deb in the directory where you downloaded it) you can instead use the command
tipp10

or more directly
/usr/share/tipp10/tipp10

In any case, if, when you try to run it, it throws an error like
./tipp10: error while loading shared libraries: libfoo.so.6: cannot open shared object file: No such file or directory

then you should be able to figure out which library you need to install using
dpkg -S /usr/lib/x86_64-linux-gnu/libfoo.so.6

replacing libfoo.so.6 with the name of the missing file from the error. This will return something like
libfoo:amd64: /usr/lib/x86_64-linux-gnu/libfoo.so.6
So you would satisfy the dependency by running
sudo apt install libfoo:i386
Another tip for figuring out the libraries needed by an executable is to use ldd with the absolute path, so in the directory ldd ./tipp10 should show you all the requirements (but you then still have to figure out the name of the package that provides the library...)
Once it does actually run, if you used the tar method you can make a symlink to it in a path location. Let's say you unpacked the tar in the directory ~/tipp10. You could do
sudo ln -s $HOME/tipp10/tipp10_linux_v2-1-0/tipp10 /usr/local/bin/tipp10

And then you can run it from anywhere with tipp10.


xfce4-mixer

Lubuntu shares many components with XFCE.  My suggestion would be to use the XFCE4-Mixer.  This still gives you a lightweight solution compatible with the lxde ethos.

to install

sudo apt-get install xfce4-mixer gstreamer0.10-alsa

This installs the following limited number of xfce packages -

exo-utils libgarcon-1-0 libgarcon-common libwnck-common libwnck22 libxres1
  xfce4-mixer xfce4-panel

to run

type xfce4-mixer in a lxterminal

In Options Auto-Mute Mode

It should be set as Disabled.

pavucontrol

Slightly more heavyweight - you could install pulseaudio and thus use the pulseaudio packages such as pavucontrol

to install

sudo apt-get install pulseaudio pavucontrol

This installs the following pulseaudio packages:

gstreamer0.10-pulseaudio libasound2-plugins libspeexdsp1
  pulseaudio-esound-compat pulseaudio-module-x11 pulseaudio-utils rtkit

to run

type pavucontrol in a lxterminal


Where do I find the sofware Omnis after downloading

Any thing that you download, by default will reside in the Downloads folder.  You can click on files from dash, and once opened, click on Downloads.

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

cd Downloads/


If I install GLX-Dock on Ubuntu 11.10 does it replace the Unity launch bar?

Oh yes ! GLX Doc made no Harm to my Desktop. Here is a Screenshot of what I achieved.


Kubuntu panel clock display in 12-hour format but without AM/PM?

I don't know how to remove AM/PM from Kubuntu's digital clock if the time display is set to "12-Hour" and don't see any such options. If it's possible, it would probably involve knowledge of programming qt applications.
However, it is possible to use Conky to display 12-Hour times without AM/PM. Conky uses the format specified by man strftime. In other words, date +%I:%M will output 06:05 when the current time is 18:05.
I used Conky with the conky.conf below to add 12-Hour times without AM/PM just below Kubuntu's panel so that both Kubuntu's digital clock displaying 24-Hour time and Conky's window showing 12-Hour time (without AM/PM) are visible:
Both 24-Hour and 12-Hour formats visible

To do this, I reduced the length of the vertical panel so that some space is available in the left lower corner of the screen.
I installed conky with sudo apt install conky-all and created 12h-conky.conf with the following content in ~/.config/conky.
conky.config = {
    update_interval = 1,
    double_buffer = true,
    no_buffers = true,
    text_buffer_size = 2048,
    own_window = true,
    own_window_class = 'conky',
    own_window_colour = '050505',
    own_window_transparent = yes,
    own_window_argb_visual = true,
    own_window_argb_value = 5,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    own_window_type = 'dock',
    background = false,
    gap_y = 0,
    gap_x = 1,
    alignment = 'bottom_left',
    draw_shades = false,
    draw_outline = false,
    draw_borders = false,
    use_xft = true, --needed to show font correctly
    uppercase = true
}

conky.text = [[
${font Noto:size=13}${color cccccc}${time %I}:${time %M}
]]

Notes:

update_interval = 1, should be changed to update_interval = 30, or more once the tweaking (of font, font size, font color, background color and transparency, etc) is done.
This Conky can be run on demand using conky -c $HOME/.config/conky/12h-conky.conf & exit or  it can be added to one's autostart.

Another route is to use latte dock. It displays an analogue clock (by default) which fits decently in the dock when oriented vertically. If need be, the conky can still be used but I changed bottom_left to bottom_right.

Latte Dock is very configurable. I have version 0.9.7 because I use the kubuntu-backports ppa in Kubuntu 19.10:
lattedock 0.9.7
Operating System: Kubuntu 19.10
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.65.0
Qt Version: 5.12.4
Kernel Version: 5.3.0-24-generic
OS Type: 64-bit


Found the best way to do using this answer (unbinding the usb device): https://stackoverflow.com/a/23033318/3526940


How to remove offending key in git when you try to push your changes?

It says:

  Offending key for IP in /home/alireza/.ssh/known_hosts:10

So for some reason you have to delete 10-th line in known_hosts.

Run this command to delete 10-th line in known_hosts:

sed -i '10d' ~/.ssh/known_hosts

Or use ssh-keygen

ssh-keygen -R git.mywebsite.ir

Quote from man

 -R hostname
         Removes all keys belonging to hostname from a known_hosts file.
         This option is useful to delete hashed hosts (see the -H option
         above).


See create slideshow from images. Their suggestion is to use "libx264" for better quality. The images need a sequence number (could that be your problem?)

ffmpeg -framerate 1/5 -i *%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4

(here %03 means a 3 digit numbering).


According to the top answer to this question, the Intel SDK does not work on VMWare. It suggests instead trying to use the AMD APP SDK, which can be downloaded from here. The APP SDK can be installed by untarring and running the only shell script included in the download.


mdadm automatically removes drive from array

disconnect sda's sata & power cable
  Boot degraded with sdb, shutdown
  Then connect sda again, disconnect sdb
  Boot degraded with sda, shutdown

When you do this, the two drives will have differences. This will be marked by differing timestamps in the metadata. It's intentional and expected behavior. You don't have an consistent array any more, and consequently one drive will be marked as failed.

Linux has no way of knowing which drive is correct, so you have to manually add the drive to array. It could be that one drive actually failed, but you managed to boot from it, as the error is far from the area used by system files. It may have the newest signature, yet have a fault.

Or it may be the other way around. This should not be automated - that risks overwriting data you want to keep.

I am not sure how you expect it to behave, but this is the sensible way for an RAID 1-array to behave when you have inconsistencies: manual resolution.

As md is a block layer protocol, it has to write everything from one drive to the other to guarantee that the content is indeed equal. If you want higher level (e.g. file system level) redundancy, you may have a look at btrfs or zfs, which both has advanced features in this direction.

Anyway, this sounds like an x-y problem, so I'm a bit curious as to why you even want this to work - because I don't think RAID is meant to solve whatever problem you are trying to solve.


The repeating ^[[6~ means that your Pg Dn key is being held down.  It also explains why your apps kept scrolling down.

Your Pg Dn key is likely jammed.  Try to release it.


Well it could jut be the ping, in terminal, type
    ping -c 20 192.168.1.1
This will ping your router or modem using an internal IP. If your ping is incredibly high (measured in milliseconds), then your router or modem is having problems talking to Ubuntu. Try talking to a qualified network engineer.


Swapping Caps and Escape, and having Compose Key only for one keyboard layout out of many

I can't help with xkb but you can still change the mapping with xmodmap which remains compatible.  For example, if I have configured my keyboard with xkb to, eg:

setxkbmap -layout us,fr -option "grp:lctrl_lshift_toggle,compose:102"

and I then dump the mapping with

xmodmap -pke | egrep -i 'less|greater|multi|caps|escape'

it lists the keycodes and the keysyms of interest:

keycode   9 = Escape NoSymbol Escape
keycode  59 = comma less semicolon period horizconnector multiply
keycode  60 = period greater colon slash periodcentered division
keycode  66 = Caps_Lock NoSymbol Caps_Lock
keycode  94 = Multi_key Multi_key Multi_key Multi_key
...

I can simply move around the columns for the key that I want to change and set up a new mapping for it. You can guess what the columns are for by looking at the keycode for an alphabetic key like "w":

keycode  25 = w W z Z guillemotleft less

The columns in this line seem to be: us, us-shift, fr, fr-shift, fr-altgr, fr-altgr-shift.

So the Escape in column 1 of keycode 9 applies to my keyboard in us mode. If I want Caps_Lock in us mode I do:

xmodmap -e 'keycode 9 = Caps_Lock NoSymbol Escape'

The change should be immediate. When you have tried all the changes, put all the new "keycode =" lines in a file and pipe them into xmodmap - at each login.


Error installing Package Control for Sublime Text 3 on Ubuntu 14.04

I found some language settings were missing on my install of 14.04 that make this an easy fix:

Install the language settings for system settings

$ sudo apt-get install language-selector-gnome

Go into Language settings (should be visisble from system settings now) and set your language to English (US) and apply system wide
Restart


why is openvpn.service running by default?

It is needed to connect to VPN servers. It probably came in with the Network Manager program, since NM has configuration GUI for it.

You ask why it is installed. I don't mean to insult you intelligence, but here goes.

A VPN is a server to which you at attach for security reasons. It locks your system to use a DNS server that is approved for purposes of VPN admin. It is protection against danger you will browse http://espn.com and the name server gives you back address for a porno site. Also protects you from monitoring by a dns server. If you are in hotel, say, there is danger your name lookups are monitored by hotel wifi. Use vpn to protect yourself in cases like that.  So don't remove openvpn.

If you like putting your finger in a light socket, you can just try to remove the package. synaptic would make that easy. Or in terminal

$ sudo dpkg --remove openvpn

It will tell you what other dependent packages would be removed.


What exactly do you mean by monitor calibration?  It's impossible to calibrate a monitor with software alone, you need a color measuring instrument for that (which is an rather expensive tool).

If you really want to calibrate your monitor, there is GNOME Color Manager and the commandline tool ArgyllCMS (the former uses the latter for doing the actual calibration).

sudo apt-get install gnome-color-manager argyll

GNOME Color Manager shows up in the system configuration as "Color Profiles" (or something similar translated in your language).


Failed to install Ubuntu touch on the Nexus 10, what can I do now?

POSSIBLE CONFUSION:
The command adb root simply re-loads the adb daemon (as root) on your desktop PC. This gives you greater privilege (if needed) to access and control the attached device.
This is not 'root' for the device. This does NOT affect the device (or its firmware).

What steps did you complete?
The (manual) install procedure has only 5 steps: (eg. for Nexus 7)
Image files from: http://cdimage.ubuntu.com/ubuntu-touch-preview/daily-preinstalled/current/
UPDATE: (2013-Jun-14)

Current daily is now Saucy (13.10) (early BETA)
To stay with Raring (13.04), use:
http://cdimage.ubuntu.com/ubuntu-touch-preview/raring/monthly-06/

/UPDATE

[1.] Check device is attached
adb devices
* daemon not running. starting it now on port 5### *
* daemon started successfully *
List of devices attached
##############        device

[2.] Load machine-specific image (eg. for Nexus 7/grouper)
adb push ~/images/raring-preinstalled-armel+grouper.zip /sdcard/autodeploy.zip
#### KB/s (######### bytes in ##.###s)

[3.] Reboot to Recovery Mode (and run autodeploy.zip)
adb reboot recovery
[3A.] (OPTIONAL) Repeat previous step: Reboot to Recovery Mode
Note: As the device may not be stable (until after step 4), this places device in a known state while waiting the 2-4 minutes for load to complete.
adb reboot recovery
[4.] Load ubuntu-touch (phablet) image (for ANY supported device)
adb push ~/images/raring-preinstalled-phablet-armhf.zip /sdcard/autodeploy.zip
#### KB/s (######### bytes in ##.###s)

[5.] Reboot to Recovery Mode (and run autodeploy.zip)
adb reboot recovery
The device should reboot to Ubuntu Touch (phablet) GUI


You can run  alsamixer  within a terminal  :
You will see various faders (master, pcm ...) or switchs .
Navigate with left/right arrows to  a switch called automute ,
change its value from "enable" to "disable" with up or down arrow :
Speaker should stay "on" with headphone connected.

Instead using  Alsamixer, you can install the graphical  mixer  gnome-alsamixer which as the same controls.


The templates that come with quickly are:

ubuntu-application (python+GTK3 desktop app)
ubuntu-cli (python command-line app)
ubuntu-flash-game (wraps an existing .swf file in a Gtk window with WebKit)

The quickly-unity-lens-template  package contains:

unity-lens (a python+Singlet lens for Unity)

In addition to these stable templates, there are some new ones that are still in the works and should only be used for testing purposes right now:

Quickly community templates

If you are participating in the Ubuntu App Showdown, you should use the ubuntu-application template.


did you set an admin password? Sometimes it asks you for that first so you might be putting your wireless username into your ubuntu admin without realizing. I should stress, that it depends on your settings. It could be something else but that is the first thing you probably should look at.

If that does not solve it, I would plug the laptop into the network with a cable and update yourself and see if that does anything for you.


How can I make dpkg-buildpackage stop after running configure?

If you look at the dpkg-buildpackage manpage, you'll see that it doesn't distinguish between a configure step and a make step  - as far it is concerned, there's a build step and a binary step. While ./configure; make; make install is very common, it's not sanctified as the one true build method by dpkg-buildpackage; it's left to debian/rules to invoke appropriate actions as needed.

In the specific case of dnsutils, or rather, bind, debian/rules seems to be highly manual (even though it invokes a number of debhelper utilities, it doesn't rely on debhelper's automation). So here, the simplest way is to take advantage of the targets in debian/rules:

$ debian/rules stamps/configure
dh_testdir
if [ ! -d autoreconf-bck ]; then \
    mkdir autoreconf-bck; \
    cp -pr config.h.in configure libtool.m4 ltmain.sh autoreconf-bck; \
fi
cp -r bin/named bin/named-pkcs11
cp -r bin/dnssec bin/dnssec-pkcs11
cp -r lib/isc lib/isc-pkcs11
cp -r lib/dns lib/dns-pkcs11
patch -p1 < debian/patches/extra-add_native_pkcs11.diff
patching file bin/dnssec-pkcs11/Makefile.in
patching file bin/named-pkcs11/Makefile.in
...
========================================================================
Configuration summary:
------------------------------------------------------------------------
Optional features enabled:
    Multiprocessing support (--enable-threads)
    GeoIP access control (--with-geoip)
    GSS-API (--with-gssapi)
    Native PKCS#11/Cryptoki support (--enable-native-pkcs11)
        Provider library: ${prefix}/lib/x86_64-linux-gnu/softhsm/libsofthsm2.so
    GOST algorithm support (encoding: raw) (--with-gost)
    ECDSA algorithm support (--with-ecdsa)
    AAAA filtering (--enable-filter-aaaa)
    Print backtrace on crash (--enable-backtrace)
    Use symbol table for backtrace, named only (--enable-symtable)
    Use GNU libtool (--with-libtool)
    Dynamically loadable zone (DLZ) drivers:
        None

Features disabled or unavailable on this platform:
    Large-system tuning (--with-tuning)
    Recursive fetch limits for DoS attack mitigation (--enable-fetchlimit)
    Source Identity Token support (--enable-sit)
    Allow 'fixed' rrset-order (--enable-fixed-rrset)
    OpenSSL cryptography/DNSSEC (--with-openssl)
    Use libseccomp system call filtering (--enable-seccomp)
    Very verbose query trace logging (--enable-querytrace)
    Automated Testing Framework (--with-atf)
    JSON statistics (--with-libjson)

Unrecognized options:
    --enable-rrl
========================================================================
touch stamps/configure

If it were using debhelper's dh_auto_configure, another way would have been to override dh_auto_configure in debian/rules to fail the build process after it.

In general, dpkg-buildpackage doesn't know anything about configure, and so has no way to stop there.


Where are the unsaved custom wallpapers saved?

I believe you can't do anything about it. My best suggestion is to take any screenshots with the wallpaper and image search it on google and you might find the page. Just download it next time. Oh, also check the history of the browser. I'll update for more solutions.


This fixed the problem for me in grub.cfg and removed the search error as well:
menuentry "Kubuntu" {
          insmod part_gpt
          insmod fat
          set root='hd0,gpt2'
          linux /boot/vmlinuz-5.8.0-33-generic root=UUID=79ff29a1-eb9c-4463-a39c-77b98c1a97f5 rw
          initrd /boot/initrd.img-5.8.0-33-generic
}

I also grabbed the answer from 14.04 Upgrade triggers grub-pc failure using Rossiar's answer to get a nice clean reset, so actually, that is the best answer:
sudo apt-get purge grub-pc grub-common
sudo rm -r /etc/grub.d/
sudo apt-get install grub-pc grub-common
sudo grub-install /dev/sda
sudo update-grub

I also found something to more easily modify grub once you set it up the way you like.  It's a gui program called Grub Customizer.  Package installs -> apt install grub-customizer
Quick and easy tutorial here: https://itsfoss.com/customize-grub-linux/


Will Ubuntu 13.10 work with the capacitive touch functions in HP EliteBook Revolve 810?

Ubuntu 14.04, as well as 13.10 recognise fingertouch.The autorotate function is however not an automatic feature!


OpenVPN Access Server and Network Manager

Open Access Server - Web GUI
I discovered that what I want is called "split tunneling". For this to work it is especially important to have the correct value in #4 (that is the one I missed).

Configuration -> VPN Settings -> Dynamic IP Address Network

Value: 10.42.25.0/24
Comment: The local network accessed through this VPN is 10.42.24.0/24. I reserved another local network for the VPN called 10.42.25.0/24.

Configuration -> VPN Settings -> Should client Internet traffic be routed through the VPN?

Value: No
Comment: The purpose of this VPN is solely to gain access to the local network.

Configuration -> VPN Settings -> Group Default IP Address Network (Optional)

Value: [blank]

Configuration -> VPN Settings -> Specify the private subnets to which all clients should be given access

Value: 10.42.24.0/24

Comment: This field is important. The GUI will fill it automatically, and you should check that it contains the right value.

User Management -> User Permissions

Comment: Add a user, and press "More settings" to set the password

Configuration -> Network Settings -> Admin Web Server.

(Local ip): Yes
Listen on all interfaces: No
Comment: Because I don't want the admin GUI publicly available.

Everything else I left untouched at default values.
Network Manager
In network manager, create a new VPN based on the opvn file, and then go to the ipv4 tab.
Below the Routes headline, Tick the "Use this connection only for resources on its network" option and fill in
Address: 10.42.24.0,
Netmask: 255.255.255.0
Gateway: 0.0.0.0


Default sudo settings did not require password

The ubuntu user makes me think that this is some kind of a live environment. In the live environment the ubuntu user has passwordless sudo access, because that is the purpose of the live environment.

In the above case the passwordless sudo access is defined in a file in the /etc/sudoers.d/ directory, more exactly the /etc/sudoers.d/casper contains this:

ubuntu  ALL=(ALL) NOPASSWD: ALL

So I think you have such a file in the /etc/sudoers.d/ directory. (Or another similar file with the same purpose, if you have a non-standard ubuntu installation.) You have to remove that file, or edit it to the way you like.


Just replace the file by typing y and then Enter.

The message you get asks you to replace an already existing file. You can just go on replacing it as it is very unlikely to cause any problems.


Downloading Ubuntu to OS X, installing on a laptop with no OS

To create a bootable USB stick with Ubuntu on OS X follow these instructions:

Download Ubuntu
Open the Terminal (in /Applications/Utilities/ or query Terminal in Spotlight).
Convert the .iso file to .img using the convert option of hdiutil (e.g.,hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso). Note: OS X tends to put the .dmg ending on the output file automatically.
Run diskutil list to get the current list of devices.
Insert your USB stick.
Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2).
Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2).
Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.imgor ./ubuntu.dmg).
Run diskutil eject /dev/diskN and remove your flash media when the command completes.

After you complete all of these, just insert your USB stick in the the laptop with no OS and start the laptop. If your laptop does not automatically boot from the USB stick, you might need to change (usually from BIOS) the device from which the laptop starts up to the USB.

Sources:

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
http://www.ubuntu.com/download/desktop/try-ubuntu-before-you-install


About install ubuntu for devices on Chinese android tablet

Ubuntu Touch also known as Ubuntu for devices or Ubuntu Phone, it’s crucial to know that the process will completely erase your device, removing not only Android but also your apps, photos and all other data. You absolutely must back up everything you want to keep first.

Here are instructions for installing Ubuntu on devices (phone and tablet) installing-ubuntu-for-devices

There’s a bigger list of devices  here

If you want to reinstall android reinstalling-android

  NOTE: Some of the links in this post are no longer functioning as a result of Ubuntu Touch being discontinued; the links have been left in place for historical reasons.


Making Umlauts in ubuntu 17.10 on a ThinkPad430

Suggested method

If you use the US English keyboard with international symbols via AltGr, you can type umlauts without switching keyboard.

This works at least in the X session (maybe not in Wayland). The following command line works for me (in Ubuntu 17.10),

setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl

When you use this keyboard setting 'as usual' you will have the usual mapping of the keys as illustrated by the first screenshot with an Onboard keyboard.

As you can see in the second screenshot with an Onboard keyboard, AltGr lets you type several special characters including the umlauts, that you want.

Alternative: Onboard and German keyboard

Using an Onboard keyboard it is also possible to switch temporarily to a German keyboard and see the layout (even if you use a US English physical keyboard). This might be more convenient if you want to type a lot in German, but if you type only a few random umlauts, the US English keyboard with international symbols via AltGr is probably the best choice.

Link

See the following link for more details,

wiki.debian.org/Keyboard


If you're using Docker, you can:

docker container exec mycontainer -it bash

or

docker container exec mycontainer -it /bin/bash

Enter inside the container and remove the directory or, depending of how you've built it, you can run the command directly:

docker container exec mycontainer sh -c 'rm /path'

By the way, I guess nobody uses lxc directly, only through Docker, Rancher or other container orchestration software.


The only reason you would need extended and logical partitions is if you have more than 4 partitions.  If you have 4 or less, they can all be primary partitions.

  I was told by someone else that the SWAP partition should be in a extended partition.

This is false.  I don't know what they were thinking of.

Whether a partition is primary or not (or for that matter, the partition number) makes no difference to Ubuntu.  The existence of extended partitions merely exists to facilitate having more than 4 partitions on a traditional MBR (DOS) partition structure.


can xdiagnose tools can help me with troubleshoot suspend/resume on my laptop

xdiagnose can be quite a useful tool for some issues concerning graphics cards, although not particularly for suspend/resume issues as they are to do with the ACPI implementation of your laptop. There isn't a manpage for xdiagnose and the --help option relays a pretty terse selection of commands. However, the utility is really used for diagnosing and repairing Xorg issues, even though it could be the case that the Xorg server might be locking up on resume.

You can use xdiagnose -v & to track X errors in a general way and let it run in the background, and the 'extra graphics..' option in the pop-up screen (see screenshot) can be ticked to send more graphics debug messages to dmesg. Even though this information doesn't concern suspend/resume directly, the results might indirectly be useful if X is freezing on suspend or resume.

You can get information regarding ACPI by using grep to search dmesg, /var/log/kern.log and /var/log/pm-suspend.log for ACPI, suspend, and hibernate errors.

There are also a lot of references to Dell Latitude laptops on Ubuntuforums, so there should be some useful information there; but to answer your specific question, xdiagnose isn't really that useful for diagnosing suspend/resume issues. See this Ubuntu wiki page and this one for a very useful and general account of how to debug resume/suspend problems.


Is plugin needed for php code completion in Geany?

Try to install the geany-plugins package :

sudo apt-get install geany-plugins


Ubuntu Studio 19.10 in VMWare 15 player problem

Per the release notes, Ubuntu Studio does not support being run in a virtual machine as virtual machines are known to have problems with the Low Latency kernel.


ATI Driver breaks Unity, Fglrx or Fglrx-updates

There seems to be lot of problems with proprietary drivers in Raring. It is a fresh release and not everything is always working as it should.

Make sure that you don't have proprietary and open source drivers installed at the same time. When you try different drivers, always keep track of which one is loaded. To do that you can use this command:

$ lspci -nnk | grep -iA3 vga

If you get into situation where something crashes and you will not be able to fix things by using graphical user interface you can still get to command line. Firstly you can try pressing Ctrl+Alt+F<1-6>( chose number between 1 and 6). Another option is to enter “recovery mode” at boot that also gives you access to command line. So maybe you don't have reinstall entire OS.

You get a list of installed packages with this:

$ dpkg --get-selections

When you remove a packages with apt-get use “purge”:

$ sudo apt-get purge <package-name>

Fglrx packages:

fglrx fglrx-amdccele

Fglrx-update packages:

fglrx-updates fglrx-amdcccle-updates

Open source driver packages:

xserver-xorg-video-ati xserver-xorg-video-radeon

To install a package use good old:

$ sudo apt-get install <package-name>

If you really want the benefits of the proprietary driver then you could also download proprietary drivers directly from amd support site.

Inside the zip-file there is a run-installer. I suggest you create deb-file from that (more details and tips here and here)as then the driver is easier to remove if it doesn't work.
If you have to do it all from command line then these are the steps:

Download the driver:

$ wget http://www2.ati.com/drivers/linux/amd-catalyst-13.4-linux-x86.x86_64.zip

Unzip the driver:

$ unzip amd-catalyst-13.4-linux-x86.x86_64.zip

Make the file executable:

$ chmod +x amd-catalyst-13.4-linux-x86.x86_64.run

Create deb-file from the run-installer:

$ sudo ./amd-catalyst-13.4-linux-x86.x86_64.run --buildpkg Ubuntu/raring

This might give you an error as you might lack necessary packages. According to this site at least Precise needed these packages to be installed.

$ sudo apt-get install dh-make dh-modaliases execstack

Install the deb file (replace * sign with the real ending – to check the correct file name you can use ls -l command):

$ sudo dpkg -i fglrx*.deb

If that also doesn't work I guess, you are stuck with open source drivers until problems get fixed.  Also than when something is supposed to work but doesn't it is a bug and these only get fixed if bugs are reported. On reporting bugs see this. Always check that the bug has not been reported already but even if it has you should still click that you are been affected by the bug as it raises its importance.


package javax.jnlp not in java.desktop ubuntu

You should use javaws command switch
$ javawa -browser http://192.168.1.211:7777/forms/frmservlet/config=mmcs


Why doesn't an SSD improve the speed of running applications?

Because running programs use RAM to run and not your disk. The only speed you see from the SSD is a quicker initial load of the software and that is just a fraction of time.

  What can I do to make performance better?

Regarding the components...

  Dell Inspiron 5570 i7

Get a better notebook. I9 will be quicker overall

  with following specs 8GB RAM

Get memory that has quicker timings. It will not make a lot of difference though.

If your system is using swap add more memory. More memory can mean a slower boot but will solve swapping. If the system uses swap it will be noticeably slower than when it does not.

Otherwise there is no speed to gain here.

  256GB SSD, 4GB Radeon Graphic Card, 2TB HDD.

Put the OS and /home/ on the SSD for better boot and load boot times if not done already. These have nothing to do with speeding up running programs.

  Still its performance is not good and the system hangs after 2-3 applications are open.

I do not see any proof in your question so what you are saying might be normal.
Why not include some statistics?  Like results from free, cat /proc/cpuinfo, iostat,  atop, and/or iotop Please add those to the question.


How to avoid opening duplicate files in new windows in gedit?

If you open the file from gedit (Ctrl+O, or use the big 'Open' button shown) it will open the new file in a new tab. If you open new files from Nautilus (or another file manager), it may or may not. Also, as @harisibrahimkv points out, files with different permissions/users will be handled differently.


How do I enable case-insensitive autocompletion on Xonsh?

As of xonsh v0.6.2, you should set the $CASE_SENSITIVE_COMPLETIONS environment variable in the ~/.xonshrc file. For example:

$CASE_SENSITIVE_COMPLETIONS = False


Variables are not expanded when put inside single quotes. Use double quotes instead:

sed -i "s/test/"$USER"/g" ~/.gtkrc-2.0

Also it is a good idea to take a backup while modifying file in place:

sed -i.bak "s/test/"$USER"/g" ~/.gtkrc-2.0

The original file will be kept as ~/.gtkrc-2.0.bak, the modified one will be ~/.gtkrc-2.0.


Users who are logged in more than 2 times - bash script

To modfy your current approach, you would need an array of counters for the different users, and an additional loop to test each value of $users against each positional parameter $1, $2, ... .
Note that for users in $(w -h) loops over all the whitespace-delimited tokens in the output of w -h, not just the usernames - it may "work" (because it's unlikely that other tokens match a valid username) but it's not "right" - you could use $(w -h | cut -d ' ' -f1) to extract just the usernames.
For a simpler approach, you could run w -h for each username given on the command line, and count the number of lines of output, for example using wc -l
#!/bin/sh

for user do

  counter=$(w -h "$user" | wc -l)

  if [ "$counter" -gt 2 ]; then
    printf "user %s is logged in %d times\n" "$user" "$counter"
  else
    printf "user %s is logged in less than two times\n" "$user"
  fi

done

Note that bash is not necessary for this - you can use the lighter /bin/sh shell (although the same code will run in bash).


The script uses the ff02::1 multicast address. That is the multicast address for all IPv6 nodes on the local link. So you will need to run it on each LAN. There is no equivalent for multiple LANs.

You either have to run this script on each LAN, or you have to use network management tools that get information from the switches and routers in your network.


In terminal...

ps auxc # to determine the PID (process ID) or process name

example...

           PID                                                     name
            |                                                       |
            V                                                       V
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0 205712  7904 ?        Ss   Jun17   0:05 systemd
root         2  0.0  0.0      0     0 ?        S    Jun17   0:00 kthreadd
root         4  0.0  0.0      0     0 ?        S<   Jun17   0:00 kworker/0:0H
root         6  0.0  0.0      0     0 ?        S    Jun17   0:01 ksoftirqd/0
root         7  0.1  0.0      0     0 ?        S    Jun17   2:57 rcu_sched
root         8  0.0  0.0      0     0 ?        S    Jun17   0:00 rcu_bh
root         9  0.0  0.0      0     0 ?        S    Jun17   0:00 migration/0
r

By process ID...

sudo kill -HUP PID # the nice way
sudo kill -9 PID   # if -HUP doesn't work

or by process name...

sudo killall -HUP process_name # the nice way
sudo killall -9 process_name   # if -HUP doesn't work


The menu appears at the top of the screen when you move your mouse-over it.

It is a context-specfic menu meaning that menu options available will change depending on what program/application you have open and have selected.


right click the dropbox tray icon and click Preferences, hit the Advanced-Tab and change the Dropbox Location to the new location.


Cannot login after suspend with multiple monitors

Here is a workaround that uses the idea from Malith's answer, but automates a few steps, let me know if it works for you, and if not, I have some other ideas that may work.

Create a file named /etc/systemd/system/suspend-workaround.service, with the following content:

[Unit]
Description=suspend lightdm workaround
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/chvt 1
ExecStop=/bin/chvt 7

[Install]
WantedBy=sleep.target

Type the following on a terminal to reload systemd files and enable the unit above:

sudo systemctl enable suspend-workaround.service
sudo systemctl daemon-reload

Try to suspend and report your results.

EDIT: If the above unlocks your session (it shouldn't), you can make your session lock post resume, by replacing the ExecStop=/bin/chvt 7 with ExecStop=/bin/chvt 7 ; /bin/loginctl lock-sessions.

You can also disable session locking on system settings, and force it to lock post resume using a systemd script like the one above, by calling /bin/loginctl lock-sessions and leaving all the chvt stuff out.


Boot error: No boot detected or disk has failed

It sounds like the disk is in failure stages according to the message.

Start your PC and go into the BIOS and see if there is a hard disk diagnostic test and run it.  Also you may see the hard drive manufacturer website, and see if they have a testing utility.

It also may have to do with the BIOS.  Check with Acer, and see if they have a BIOS update.


Ubuntu 17.04 Long boot time due to intel-vbtn

Update

As mentioned in the comments, if you have an encrypted home, Ubiquity still creates a cryptoswap partition instead of linking to the swapfile.

This can be fixed by following this guide:

Ubuntu Desktop 17.04 64bit slow boot

Original Workaround

First off I want to clarify that I have the same issue and so I want to give some further details on the hardware (for all those who might be able to debug the error):

HP Spectre x360 15-bl002ng
Intel i7-7500U
Nvidia 940MX
NVME PCIe SSD (Samsung I believe)

Second:

I found a workaround by setting the systemd timeout to 10s instead of 90s. To do so, edit /etc/systemd/system.conf. In my case I had to uncomment the following two lines set the timer:

DefaultTimeoutStartSec=10s
DefaultTimeoutStopSec=10s

After a reboot, the system is up after about 10 seconds. May be warned however, that such a low timeout may cause other, more severe problems. So do that at your own risk!

Third:

For all those who can actually figure out what might be wrong I would like to add what I found out:

After I upgraded to kernel 4.11 RC8 (to fix intel-vbtn INT33D6:00: unknown event index 0xcd, comment #24) I got way more debug info and so noticed that the boot sequence is actually stuck at A start job is running for [some dev + UUID presumably].

I stumbled across a German Debian forum where the error seems to be caused by a mismatch of the actually UUID of the swap partition reported by sudo blkid and the used UUID by fstab.

However, since 17.04 Ubuntu uses a swapfile instead of a partition, I am clueless on how to fix this issue.


Accept headers: application/rss+xml, text/rss+xml, text/xml

I found a solution by adding this to htaccess:

<IfModule mod_mime.c>
    AddType text/xml .xml .php
</IfModule>

Not sure why it even works but it does


how to add daily events via command-line?

There is a CLI tool named as pal.
we can install it by using sudo apt-get install pal in the terminal with CTRL+ALT+T.

for more information : pal man-page


Ubuntu 20 undesired initial setup after each boot

I think I found the solution.
Disable the gnome-initial-setup by commenting it out in /etc/xdg/autostart/gnome-initial-setup-first-login.desktop.
The line to comment was:
Exec=/usr/libexec/gnome-initial-setup --existing-user
I recommend to check this issue


The find function does not work in Ubuntu14.04

Not sure if this will answer your question but should push you along the right lines,

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

Here you will find a list of the existing short cuts and an example of how to make your own!

thanks,

Mathew


The Gnome Shell menu crash is caused by not having a user profile picture set. To set a user profile picture, click on your name in the Gnome Shell menu, then click System Settings.

Then, select User Accounts from the System Settings box.

Now, click the Unlock button at the top right corner of the User Accounts window, and click on the picture next to your name, and select the one you want. Now, you can install gnome-shell-extensions-alternative-status-menu, and it will not cause the menu to disappear.


Problem Installing Matlab 2012a in Ubuntu 12.04 LTS

First, in the terminal change directory to the MATHWORKS_R2012A folder.

cd /media/MATHWORKS_R2012A

Then change the permission on the installer so that root can execute it.

sudo chmod +x ./install

Now you can run the installer. I'm not sure if you need the extra options you have in your question or not, but it will look like this:

sudo ./install


One suggestion I have would be to check for hidden files within the trash can by pressing Ctrl+H to show these hidden files.
As far as dragging items to the trash can, this is a good idea and you might want to propose it do someone who develops the Unity interface. You can find them on Launchpad here: https://launchpad.net/unity


You don't need a special session for running Cairo dock in Unity. Just log into Ubuntu and run Cairo dock from the dash.

The "Cairo dock (gnome)" session is just a gnome-fallback session with Cairo dock instead of the panels.


Where can i configure themes?! and how?!

You should check the files in /usr/share/themes/THEME_NAME/gtk-* directories. As for example, open /usr/share/themes/Adwaita/gtk-2.0/gtkrc file in your terminal:

sudo nano /usr/share/themes/Adwaita/gtk-2.0/gtkrc

(or other text editors of your choice.)

make the changes; say change the colour theme from:

gtk-color-scheme = "base_color:#ffffff\nfg_color:#000000\ntooltip_fg_color:#000000\nselected_bg_color:#86ABD9\nselected_fg_color:#ffffff\ntext_color:#1A1A1A\nbg_color:#EDECEB\ntooltip_bg_color:#E7F3FD"

to

gtk-color-scheme = "base_color:#ffffff\nfg_color:#000000\ntooltip_fg_color:#00ff00\nselected_bg_color:#ff0000\nselected_fg_color:#0000ff\ntext_color:#1A1A1A\nbg_color:#EDECEB\ntooltip_bg_color:#00ff00"

(here I've made changes to the values of tooltip_fg_color, selected_bg_color, selected_fg_color and tooltip_bg_color)

(To save, in nano enter Ctrl + O and Ctrl + X to exit.)

Change and reapply the theme you've made changes to and see them in effect.


Proxy configuration on ubuntu 20.04 is not owrking

You need to setup the same parameter for HTTPS and FTP .

And after you need to restart .

Open a terminal and check you env variables .

export | grep -i proxy


Unity desktop broke after installing GNOME

Okay, I found a solution here.

Basically what I did was to install tasksel: sudo apt-get install tasksel

Then run it: sudo tasksel

Then deselect (using the space key) the entry "Ubuntu GNOME Desktop" and select "OK".

It then uninstalled a host of packages, including some programs that I didn't expect it to, and that I use on a daily basis (like Anki), but when I rebooted the computer, the interface was back to normal – including replacing the Gnome logo during startup (grub) and shutdown with the proper Ubuntu logo. Use at your own risk! :)


How can I prevent a window from automatically maximising in Ubuntu Unity?

ComizConfig Settings Manager has a "Place Windows" plugin where you can configure where newly-opened windows should be placed. Below is screenshot example of my setup for Google Chrome placement.

If that doesn't work, here's alternative solution. The script below runs continuously and prevents maximizing of the window in focus.

#!/usr/bin/env python
#
#
# Author: Serg Kolo , contact: 1047481448@qq.com
# Date: Oct 27, 2016
# Purpose: prevents x11 windows form maximizing
# Written for: http://askubuntu.com/q/842317/295286
# Tested on: Ubuntu 16.04 LTS
#
# Copyright: Serg Kolo , 2016
#
#     Permission to use, copy, modify, and distribute this software is hereby granted
#     without fee, provided that  the copyright notice above and this permission statement
#     appear in all copies.
#
#     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
#     THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
#     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
#     DEALINGS IN THE SOFTWARE.
from __future__ import print_function
import gi
gi.require_version('Gdk', '3.0')
from gi.repository import Gdk, Gio
import subprocess
import signal
import time

def run_cmd(cmdlist):
    """ reusable function for running shell commands"""
    try:
        stdout = subprocess.check_output(cmdlist)
    except subprocess.CalledProcessError:
        pass
    else:
        if stdout:
            return stdout

def main():
    """ defines entry point of the program """
    screen = Gdk.Screen.get_default()
    while True:
        active_window = screen.get_active_window()
        active_xid = str(active_window.get_xid())
        wm_state = run_cmd(
            ['xprop', '-root', '-notype', '-id', active_xid, '_NET_WM_STATE'])
        if ('_NET_WM_STATE_MAXIMIZED_VERT' in wm_state and
                '_NET_WM_STATE_MAXIMIZED_HORZ' in wm_state):
            active_window.unmaximize()
            active_window.process_all_updates()
        time.sleep(0.25)

if __name__ == "__main__":
    main()


Can I configure dm-cache to only cache small files?

So, to answer my own question: I found the required information in the documentation of dm-cache, more precisely in cache-policies.txt.

According to the documentation, dm-cache differentiates between random and sequential transfers right out of the box. To cite cache-policies.txt:

  Message and constructor argument pairs are:

  'sequential_threshold <#nr_sequential_ios>'
  'random_threshold <#nr_random_ios>'
  'read_promote_adjustment '
  'write_promote_adjustment '
  'discard_promote_adjustment '

  The sequential threshold indicates the number of contiguous I/Os
  required before a stream is treated as sequential.  The random
  threshold is the number of intervening non-contiguous I/Os that must
  be seen before the stream is treated as random again.

  The sequential and random thresholds default to 512 and 4
  respectively.

  Large, sequential ios are probably better left on the origin device
  since spindles tend to have good bandwidth. The io_tracker counts
  contiguous I/Os to try to spot when the io is in one of these
  sequential modes.

This is different from file-level differentiation (which the original question asked for), since presumably randomly read blocks from fragmented large files will also be cached. But this is a similarly feasible (and indeed, much more robust) solution to the problem. So, the original question wrongly assumed that the caching solution works with files; in fact it works on the level of file system blocks.


PHP 7.3 not installing on Ubuntu 16.04 LTS

Have you run sudo apt update yet?  If you haven't, your system isn't going to know that the PHP 7.3 packages are available.

Run sudo apt update and then try the install commands you were trying.


Adobe Air workaround for Pandora not working

This should only be happening if you did not run the Adobe AIR Installer (AdobeAIRInstaller.bin) as root using sudo.

Did you run

sudo ./AdobeAIRInstaller.bin

as in these instructions (step 6)?


How to bulk rename files numerically, in order of modification date?

In the directory containing the pictures, run:

mkdir renamed; num=0; for f in $(ls -t); do cp -p "$f" renamed/IMG_$(printf "%03d" $num).jpg; num=$((num+1)); done

This will copy the files to a new directory renamed, keeping timestamps untouched. The format will be IMG_###.jpg with three-digit numbers, using leading zeros. You can change the number of digits by changing the %03d part.


Ubuntu 14.04 - No Headphone Sound on Lenovo Thinkpad W540

What struck me odd was that Linux Mint (live) had the headphone jack working properly.  This led me to look into the /proc/asound/ directory, which I discovered was not being created at start up.

After digging around for this error, I found that by running the following installation command:

sudo apt-get install linux-sound-base alsa-base alsa-utils

I rebooted and the headphone jack worked!  I'm not sure why these were not installed by default, but the /proc/asound/ directory is now there and I no longer have any issues.


Same issue, as a temporary fix I rebooted my sound driver using pulseaudio -k && sudo alsa force-reload and it seemed to work without rebooting the system.


How can i set Lotus Notes as the default mail program?

Add the following to the end of /usr/share/applications/LotusNotes8.5.desktop, ie:

sudo gedit /usr/share/applications/LotusNotes8.5.desktop) and save the file:

  MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;x-scheme-handler/mailto;
  TargetEnvironment=Messaging Menu;Unity

Next, run the following command:

sudo update-desktop-database -q

Go to System Settings > System Info and click on Default Applications. Lotus Notes 8.5 should now show up as an mail application option.


libimobiledevice is not recognizing iDevice

If lsusb doesn't list the corresponding device then the device is not properly connected. Check the cable and the jacks on the device and host.


Keyboard doesnt work after resume from suspend (19.04)

I believe I have figured out a solution, as recommended by a friend. Adding i8042.noaux=1 to grub boot options completely eliminated the issue. Other topics had recommended atkdb.reset i8042.nomux which didn't work; in fact, i8042.nomux completely messed up my keyboard.


Ubuntu 14.04 failed LiveUSB boot on Lenovo G580

I always find it most reliable to use a dvd or cd, your computer doesn't seem to be recognizing the flash drive as a boot volume. Try burning a cd instead.


Failed building minitube with compiled libmpv v0.29.0

libmpv => 0.29.0 (0.29.1~bionic2) that is delivered by via ppa.

sudo add-apt-repository ppa:mc3man/bionic-media

sudo apt -y upgrade


How is starting Chrome from the launcher different from starting it from the command line?

I expect your launcher is running the command google-chrome.

Mine is:

[Desktop Entry]
Version=1.0
Name=Google Chrome
GenericName=Web Browser
Comment=Access the Internet
Exec=/usr/bin/google-chrome
Terminal=false
Icon=google-chrome
Type=Application
Categories=Network;WebBrowser;

Open terminal and run this command:

sudo -H gedit /usr/share/applications/google-chrome.desktop

and edit the Exec line.


Just finished installing Ubuntu Desktop 13.10, mouse clicking problem

I knew exactly what your problem was before your comment because I also own a RAT and took me forever to figure out what to google for.

Basically what you need to do is manually map all the buttons in the xorg.
Here is the link to the solution.

What is happening is your RAT needs a driver and linux isn't taking the button inputs correctly. Your symptom is due to the fact that it doesn't know how to click off. This gives it the illusion that none of your buttons are working. One workout around until you fix this is to unplug/replug or change mouse modes (RAT 7 and 9 only). You will get one click each time. Or just use a different mouse until you make the changes.