Terminal Short-cut ctrl + alt + T, 2 terminals, different size

I will provide you a detailed and tested guide on how you can achieve your desired result.

First a short summary of the steps:

Write a short bash script that opens two terminal windows with specified sizes and positions.
Set the "executable"-flag of the script file
Test the script (to avoid typos and make sure everything works)
Disable/Change the old terminal shortcut to free the accelerator keys Ctrl+Alt+T
Set the new custom shortcut

Now follows the detailed guide:

As you can only launch a single command with a keyboard shortcut (as far as I know), we have to write a short bash script that opens the two windows. We can also hand a special parameter over to the gnome-terminal that sets the windows' size (in characters, not pixels) and position (in pixels on the screen). It should look like the following:

#!/bin/bash
# File: open-two-terminals.sh
# Purpose: launch two windows of gnome-terminal with different
#          sizes (in characters) and positions (in pixels)

gnome-terminal --geometry=80x30+400+400 &
gnome-terminal --geometry=60x20+500+50 &

# geometry-syntax: --geometry=[width]x[height]+[x-position]+[y-position]

# Info: & continues with the next command right after the execution
#       of the command it is written after, instead of waiting until
#       the program finished and returns.

Note that you can/must experiment a bit with the geometry values to size and position the windows in exactly the way you want them. I only used example values.

Save these lines (you only need the 1st and those without #, as the others are only comments) into a file like open-two-terminals.sh in whatever location you want. I would suggest your home bin directory /home/MYUSERNAME/bin (create this directory if it does not exist), but you can change this to what you want (as long as it's somewhere in the PATH) as well as the file name, it should only end with .sh.
So I now assume you have a script file /home/MYUSERNAME/bin/open-two-terminals.sh.

The next step is to make the script executable, as by now it is nothing more than a plain text file nice to look at. To do this, run the following command in a terminal: chmod +x /home/MYUSERNAME/bin/open-two-terminals.sh

Now after the executable flag is set, you can do a first test whether you did everything right until now. Run the script by entering open-two-terminals.sh in a terminal window or into the Alt+F2-HUD. It should open two new terminal windows with the different profiles and sizes.

If this works (else you made a mistake and should double-check and try all steps again), you can set the keyboard shortcut.
Go to your System settings panel and click on Keyboard. Change to the Shortcuts tab and select Launchers in the list on the left. You see the shortcut for Launch terminal in the list on the right.

First you have to either disable this shortcut (enter Backspace as new shortcut) or assign (a) different key(s) than Ctrl+Alt+T, as you want to use them later for your custom shortcut.

After that, select Custom shortcuts in the list on the left. Add a new shortcut by clicking on the + symbol below the right list. A window will pop up and request a name for the shortcut (anything you want, e.g. Open Two Terminals) and the command to run (enter the script file created before, e.g. open-two-terminals.sh). Confirm with a click on OK.
Now the last thing we still have to do is to assign the old terminal keys Ctrl+Alt+T to this new shortcut. Therefore click on the right column containing the accelerator keys (default value is Disabled - important, because a click on the left column containing the title opens the popup window) and then press/hold the keys you want to assign to the shortcut. You should see them written on the left of the shortcut's title now.

Close the control panel and enjoy your new double-terminal shortcut! :-D

Hope this detailed guide did help you and solve your question. If this is the case, please accept the answer with a quick click on the gray tick at the left side of it, to show your appreciation. Should you or anyone else reading this have a problem, need further clarification or find an error, please leave me a comment!


What are "$PATH" and "~/bin"? How can I have personal scripts?

$PATH is an environment variable used to lookup commands.  The ~ is your home directory, so ~/bin will be /home/user/bin; it is a normal directory.

When you run "ls" in a shell, for example, you actually run the /bin/ls program; the exact location may differ depending on your system configuration.  This happens because /bin is in your $PATH.

To see the path and find where any particular command is located:

$ echo $PATH
/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:...
$ which ls     # searches $PATH for an executable named "ls"
/bin/ls
$ ls           # runs /bin/ls
bin  desktop  documents  downloads  examples.desktop  music  pictures  ...
$ /bin/ls      # can also run directly
bin  desktop  documents  downloads  examples.desktop  music  pictures  ...

To have your own private bin directory, you only need to add it to the path.  Do this by editing ~/.profile (a hidden file) to include the below lines.  If the lines are commented, you only have to uncomment them; if they are already there, you're all set!

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ]; then
  PATH="$HOME/bin:$PATH"
fi

Now you need to create your ~/bin directory and, because .profile is run on login and only adds ~/bin if it exists at that time, you need to login again to see the updated PATH.

Let's test it out:

$ ln -s $(which ls) ~/bin/my-ls   # symlink
$ which my-ls
/home/user/bin/my-ls
$ my-ls -l ~/bin/my-ls
lrwxrwxrwx 1 user user 7 2010-10-27 18:56 my-ls -> /bin/ls
$ my-ls          # lookup through $PATH
bin  desktop  documents  downloads  examples.desktop  music  pictures  ...
$ ~/bin/my-ls    # doesn't use $PATH to lookup
bin  desktop  documents  downloads  examples.desktop  music  pictures  ...


Upgrade available after upgrading normal release to LTS

dist-upgrade does NOT upgrade the system.

From the apt-get man page:

  dist-upgrade

  In addition to performing the function of upgrade, this option also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones, if necessary.

To upgrade , run sudo updater

Or to do so graphically, see http://www.ubuntu.com/download/desktop/upgrade and https://help.ubuntu.com/community/UpgradeNotes


How can I make SimpleWelcome/ROSA Launcher Plasmoid appear on top of other windows?

It seems that...

Tested with the Rosa-laucher 2.0.0, Raring, KDE 4.10.5

It seems that the problem is the window focus.

KDE System Settings > Window Behavior > Focus tab.

If the focus is 'under mouse' then the Rosa-launcher appears on the top - at here


The answer is already here, CLICK HERE to read it (scroll down a bit).
Don't desist, the world needs more games. ;-)


Will my software and soundcards work in Ubuntu?

According to this site, at least SoundBlaster 1.0, SoundBlaster 16, SoundBlaster 16ASP, SoundBlaster 2.0, SoundBlaster 32, SoundBlaster 64, SoundBlaster AWE32, SoundBlaster AWE64, SoundBlaster Live!, SoundBlaster PCI 128   SoundBlaster PCI 512, SoundBlaster Pro, SoundBlaster Vibra16, SoundBlaster Vibra16X are supported.

Many times, older hardware works perfectly under Linux/Ubuntu.

Windows software does not run on Linux, unless it is through Wine (a "compatibility layer capable of running Windows applications") in many cases, but definitely not all. You will find more detailed information here to find if your application(s) will work through Wine.

At the same time, I should remark that in almost all cases the Linux equivalents of WIndows programs work perfectly and the exchange of files between Linux and Windows is no problem at all in these days. Many (nearly all) of the document formats are even the same.

There is an extensive post on Askubuntu about running software here.


Ubuntu 14.04: Can't connect to new password protected wifi network

Follow these steps for changing to new WiFi network

Click on WiFi Symbol which is beside the battery symbol.
Click on Edit Connection which is at the bottom of the drop down.
Select the network on which you want to connect, and then click edit button.
Click on WiFi-security tab over there and enter the pass word of that network, save and close.

Now if you connect to this, everything will work fine.


To leave from Grub's rescue mode and reboot the machine simply type

reboot

and hit Enter

Before doing that you should insert your live-USB or DVD. When the machine reboots, enter the BIOS/UEFI-settings to change the boot-order accordingly to boot from your live-USB or DVD.

It is hard to say what your problem really is, deleting the swap-partition usually doesn't result in a boot-failure, it will increase boot-time (at least this is my experience and may depend on the version of Ubuntu you use).

So you should add more information to your question. When booted into Ubuntu-live, open Nautilus (Files) and mount your Ubuntu-partition on your HDD/SSD with a left-click on it. You should see the file-system on your partition now. Browse to find the file /etc/fstab in this partition, open the file with a double-click, copy the content and paste it into your question.

Then open a terminal and run the command

lsblk -o +UUID

Copy the output and paste it into your question as well.

This will help us to determine what is going on.


How can I remove unmounted SD Card icons from my desktop?

Method 1

Install Ubuntu Tweak

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

Under Desktop > Desktop Icon Setting, choose to hide or show desktop icons.

Method 2

Install gconf

sudo apt-get install

Run it by pressing Alt+F2 and type this gconf-editor

In the Configuration editor, go to apps > nautilus > desktop. Untick the box that corresponds to the icons you'd like to hide.

To hide all desktop icons, go to apps > nautilus > preferences, look for show_desktop and untick the box.


How to remove shadow behind panel icons in Xubuntu?

I'm sorry, but there is no way to fix that. That is a part of the panel plugin. You could try going with a darker panel color to make the shadow blend in, but that's about all you can do.


Establishing persistent autossh reverse ssh tunnel

This is what I use..
Create the tunnel private/public key using ssh-keygen. When it prompts for a pass-phrase just press return so you don't have one.
Install the public key in your remote user@remote.hosts .ssh/authorized_keys file
Test it by manually trying the ssh command and make sure the reverse tunnel is working.
vi /etc/systemd/system/tunnel.service

[Unit]
Description=Maintain Tunnel
After=network.target

[Service]
User=localuser
ExecStart=/usr/bin/ssh -i ~localuser/.ssh/tunnel -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -gnNT -R 22222:localhost:22 remoteuser@remotehost vmstat 5
RestartSec=15
Restart=always
KillMode=mixed

[Install]
WantedBy=multi-user.target

Then run:-
sudo systemctl daemon-reload
sudo systemctl enable tunnel
sudo systemctl start tunnel


I used Kpatience (kpat). It is quite stable, good looking and it has many hotkeys like Ctrl-Z for Undoing.

Just go to the Ubuntu Software Center available on the Desktop's left side. Then enter the search text patience.

Kind regards and happy gaming.


18.04 and 18.10 fail to boot nvme0: failed to set APST feature (-19)

I finally got Ubuntu 18.10 to install. I added nvme_core.default_ps_max_latency_us=200 to my /etc/default/grub file.

So, it looks like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvme_core.default_ps_max_latency_us=200"

From this answer: EXT4-fs error after Ubuntu 17.04 upgrade

Now works like a dream.


Ubuntu (tested):

preseed --owner partman-basicfilesystems partman-basicfilesystems/no_swap boolean false

For more details see:
http://tech.mariusb.com/2009/programming/debian-preseed-with-no-swap.html


Installed Qemu 4.0 but version 2.11 still shows in terminal

Qemu packaging is split up into many pieces for better dependency management.
The system emulation binaries are in qemu-system-x86.
So if you want to get rid of that binary this is the package to remove.

You can always check which package a binary belongs to with dpkg:

$ dpkg -S qemu-system-x86_64
qemu-kvm: /usr/bin/qemu-system-x86_64-spice
qemu-system-x86: /usr/bin/qemu-system-x86_64


What is the difference between x86_64 amd64 and 64 bit?

This may not solve exact problem, but I'll clarify the difference between x86_64, amd64 and 64-bit.

Every micro-processor implements an instruction set (also called instruction set architecture or ISA in short).

64-bit ISA or 64-bit processor that the length of address bus is 64 bits. Intel/AMD have variable length instructions - they vary from 1byte to 15 bytes. So, instruction length does not determine what type(32/64-bit) processor it is.

x86_64 is name of specific 64-bit ISA. This instruction set was released in 1999 by AMD (Advanced Micro Devices). AMD later rebranded it to amd64.

Other 64-bit ISA different from x86_64 is IA-64 (released by Intel in 1999).


How to set default DISPLAY for all SSH sessions?

You can write at the end of your .bashrc file:

export DISPLAY=:0.0

You can also have a condition for ssh

if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_CONNECTION" ]; then
    export DISPLAY=:0.0
fi


How can I make my bluetooth works on Ubuntu 16.04?

You need to upgrade kernel and linux firmwares.

Upgrade your kernel to version at least 4.8
Then you can download a snapshot of linux firmware, for example https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-1dcf7691f623c24762976e2debe05248d627e814.tar.gz

sudo mv /lib/firmware /lib/firmware.old
 sudo tar xvfz linux-firmware-1dcf7691f623c24762976e2debe05248d627e814.tar.gz
 sudo mv linux-firmware-1dcf7691f623c24762976e2debe05248d627e814 /lib/firmware

Then download the package source of bluez 5.46 :

wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez_5.46.orig.tar.xz
wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez_5.46-0ubuntu3.debian.tar.xz
wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez_5.46-0ubuntu3.dsc
sudo dpkg-source -x bluez_5.46-0ubuntu3.dsc

Install build dependencies.

sudo apt build-dep bluez
sudo apt install devscripts
cd bluez-5.46

Build the packages.

sudo debuild -b -uc -us
cd ..
sudo dpkg -i bluetooth_5.46-0ubuntu3_all.deb \
bluez_5.46-0ubuntu3_amd64.deb \
bluez-cups_5.46-0ubuntu3_amd64.deb \
bluez-hcidump_5.46-0ubuntu3_amd64.deb \
bluez-obexd_5.46-0ubuntu3_amd64.deb \
bluez-tests_5.46-0ubuntu3_amd64.deb \
libbluetooth3_5.46-0ubuntu3_amd64.deb \
libbluetooth3-dbg_5.46-0ubuntu3_amd64.deb \
libbluetooth-dev_5.46-0ubuntu3_amd64.deb
sudo reboot

You should then be good to go.


Use Ubuntu 18.04 laptop as second monitor for Windows 10

Provided both computers are in the same network and as you do not want to use both monitors at the same time, you could use an rdp (remote desktop protocol) client on Ubuntu to access windows.

Unfortunately, I can not provide you with the windows side of things (but it is an internet search away). On Ubuntu you would use e.g. remmina.

PS1: Rdp is totally usable for such scenarios. During lockdown we use it on linux laptops via ssh tunnel at work to access windows desktops for people who need them.
PS2: I understand that this does not literally answer your question, as you refer to a second monitor, but it would seem to me to solve part of your problem.


Software versions of LTS and non-LTS releases synced from Debian

Due to the way the archive works, that doesn't really happen.

First of all, you should know that release n+1 is seeded from release n when it is opened for development. Roughly, this means that release n is copied and renamed to n+1 (there is some tinkering that happens before it is opened for development, but that's not important here). Thus it begins with the same package versions as release n had.

Now, in order to upload you must use a higher version than was uploaded previously. This means that you cannot 'go backwards'. Even if this were allowed by the archive, the package managers on your system wouldn't consider it to be an upgrade and so you'd keep the 'newer' version.

If a package gets taken from unstable in release n and somehow this version never makes it to testing then we will usually stay with the version in unstable for this reason.

Having said that, it is possible to hack the version numbers a bit to allow reversions — you may have seen 'foo-1.0+really0.5' versions before — this is a rare way to pretend to the archive and to your package manager that the versions have increased when in fact the upload contains an older version. This is only used as a last resort when a particular version of some software has problems that are so serious that a rollback is the only option. It's far more preferable to just fix the problem directly. Also, this is orthoganal to the release/LTS system — it can happen at any time.

So in summary, it's possible to revert packages to a previous version by using package manager hacks, but this isn't generally done.


Recording audio: What is the best volume setting?

When recording, especially to digital formats like this, it is important to monitor the recording levels, whether from a microphone or line input or whatever, and ensure they do not clip.  Most recording apps have a level meter that clearly indicates the max level you should allow. By adjusting to meet this level, you will be able to determine whether it needs to be amplified or not.

The other thing is to not have the level too low.  This allows background noise/hum/etc to increase in your recording.  It also wastes some of the resolution of the audio capture device (the analog to digital conversion).  This is why you should avoid having to increase the volume level later in ffmpeg or whatever processing you do.

So, set it to be close, but NOT exceeding the max level before clipping.


Why doesn't Unity retain my Compiz settings?

I ended up adding unity --replace to my startup applications and that did the job.


The correct file name is libSDL2-2.0.so.0 according to the search on packages.ubuntu.com.


Cross-compile for armhf and install a static library

Step 1 - Open terminal:

Press Ctrl+Alt+T.

Step 2 - Backup:

Execute:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.old

Step 3 - Open the editor:

Execute:

sudo gedit /etc/apt/sources.list

You can use other editors if you want.

Step 4 - Edit sources.list:

Remove everything here and add these:

deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ xenial main multiverse restricted universe
deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ xenial main multiverse restricted universe
deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main multiverse restricted universe
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ xenial-updates main multiverse restricted universe
deb [arch=amd64] http://security.ubuntu.com/ubuntu/ xenial-security main multiverse restricted universe

Save and exit.

Step 5 - Update your repository index:

Execute:

sudo apt update

Step 6 - Install libudev-dev for armhf architecture:

Execute:

sudo apt install libudev-dev:armhf

Clarification: Multiarch packages need to be installed with the same version on all architectures. So, you should have libudev-dev:armhf with version 229-4ubuntu21.4, but your current repository configuration does not include this version. So, you should add the line with xenial-updates where this version is supported.

About other suggested to add channels, I suggested you add these in case something goes wrong.


Webmin seem to think Apache isn't started when it really is, how do I fix this?

As can been seen from the first paragraph of the webmin documentation on the Ubuntu Wiki and Launchpad, webmin is no longer supported in Ubuntu. Instead, users are being pointed to eBox. The same issue was reported on the forums and was determined to be an issue with Webmin that needs to be resolved.

The issue was reported as a bug against Webmin here: http://sourceforge.net/tracker/?func=detail&aid=3081423&group_id=17457&atid=117457

The fix seems to be to edit /etc/apache2/envvars, to quote jcameron:

  Ok, thanks .. I see the issue now. The fix is to remove $SUFFIX from the
  lines :

  export APACHE_PID_FILE=/var/run/apache2$SUFFIX.pid
  export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
  export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
  export APACHE_LOG_DIR=/var/log/apache2$SUFFIX

  as it will be empty anyway.

So you have 3 options:

Use eBox
Patch the file yourself to resolve the issue
Wait for the Webmin maintainer to fix the bug and new packages to be released.


I'm not sure if this was your problem but this may help someone:

If you're getting the lpstat: Error - add '/version=1.1' to the server name error when you've added '/version=1.1to the server URI in yourlpstatcommand or in/etc/cups/cupsd.conf`, make sure the server is up, running, and accessible! It threw the error for me until I realized the server was down.


Accessing my windows partitions under Ubuntu 14.04 LTS

This happens because windows 8 has an enabled hybrid boot by default to make it boot faster. Try disable it using instruction from the link http://www.techulator.com/resources/5201-How-enable-or-disable-Hybrid-Boot-Windows.aspx. You should be able to access your partition.


How do I locate and remove Broken Packages that I have installed?

Install the Synaptic Package Manager, either through the Software Center or by running this command in the Terminal:

 sudo apt-get install synaptic

Open it by typing synaptic in the Unity dash and then hitting Enter.
Then follow this procedure:

Select the "Status" category. This shows packages organized by status.
Select "Broken dependencies" category from upper left pane.
Select the broken packages. If the packages are more than one, select them all by pressing Ctrl+A.
Then right-click on a selected package, and select the option "Mark for Complete Removal" in the menu.

That's it. The broken packages are gone.


Is there a patch preventing hacker from accessing a shell with root privileges on LUKS encrypted system?

As AlexP said, this article is B.S.  There are a myriad of ways that you can get a root shell ( this one is a bug, but most are intentional ) but without the password you can not access the encrypted data.  Given physical access to the machine there is nothing that can stop you from getting a root shell.  That is the whole reason for using encryption.


Well yes if you have 16.04 installed and want libkfscreen7 installed which is not in the regular ubuntu repos I think you might have backported it for a more recent version of kde as I know the kubuntu team does backports.
And yes the configuration center is part of the lxqt-config package. This is a danger of installing PPAs on your system in that you can have other packages with conflicts from new versions https://help.ubuntu.com/community/PPA . However lxqt-config in yakkety is http://packages.ubuntu.com/xenial/lxqt-config shows the dependences in xenial and http://packages.ubuntu.com/yakkety/lxqt-config shows the dependencies. If you have other packages that depend on libkf5screen7 then you will not run into this problem on yakkety. I don't see a reason you would install the the libkf5screen7 on xenial without dependencies on it as it a library then you could  sudo apt-get remove libkfscreen7. Although you can see if you use anything that depends on it with apt-cache rdepends libkf5screen7 and if you don't have anything you can remove it. This is a case of https://en.wikipedia.org/wiki/Dependency_hell. If you remove the things that depend on libkf5screen7 you then can remove it and then install lxqt-config. However this will not happen on yakkety but yakkety is not a long term support release.


Can't update Nvidia driver and having error near the end of the installation

I had the same exact problem and it didn't get removed with sudo apt-get install -f or sudo apt-get update. I followed the instruction here for purging NVidia drivers and it worked fine. You might want to try the same thing.


I have Nvidia Geforce on Ubuntu 14.04 , But don't know how to use it or install it on Ubuntu. Please help?

The intel open source graphics drivers are already installed.

To install the NVIDIA drivers - open a terminal and execute :

sudo apt-get update
sudo apt-get install nvidia-352
sudo reboot

Execute this command : lspci -k | grep -EA2 'VGA|3D'

You will additionally see : Kernel driver in use: nvidia

The complete output will show you something like this :

lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: i915

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: nvidia


if you try to launch it from Terminal, you will notice an error like this

  sqlectron: error while loading shared libraries: libgconf-2.so.4:
  cannot open shared object file: No such file or directory

which means you have to install the libgconf.

sudo apt-get install libgconf-2-4


It's all those directories from your /mnt/c drive/mount that contain weird characters like parentheses and spaces, confusing the OpenFOAM build script. You have a few options:

Umount /mnt/c while you build OpenFOAM, once it's built, you can remount.
sudo apt-get install openfoam; version 4.1 is available on ubuntu 18.04's repositories and you don't need to compile it.


First please try using

mysql -u root -p

and enter your password (if you remember) at the prompt to login as the sql-root user (note the switch -p is for password).

If you really have to reset your root password for mysql, here's an easy way - reconfigure the package with dpkg-reconfigure.

Easy steps to reset mySQL root password:

Check the version of your mysql-server;

apt-cache policy mysql-server

and see for the line which shows the installed version among other information. e.g. for my install it's:

Installed: 5.5.37-0ubuntu0.12.04.1

(From this I know that I have mysql-server-5.5 installed in my system.)
Start the reconfiguration with:

sudo dpkg-reconfigure mysql-server-*.*

where mysql-server-*.* should be replaced by the version that you have. (for me it'd be mysql-server-5.5). This will stop the database daemon. A prompt will then appear where you'd have to enter your new password and confirm the reconfiguration.

The daemon will be automatically started after the reconfig completes.
You can then log in with:

mysql -u root -p

and start your database admin tasks.

References:

https://help.ubuntu.com/community/MysqlPasswordReset [Which would soon be cleaned up as indicated in the page.]
Ubuntu Server Guide related to your specific version.


installed safari on ubuntu 14.04 using wine but not able to browse

playonlinux offers an installation script to install Safari in WINE, see here.

(if not already done) install playonlinux and start the program

sudo apt install playonlinux && playonlinux

in the playonlinux window, click + Install and search for “Safari”
double click the “Safari” entry and follow the installation instructions, the script will download and install everything needed


Using vmbuilder to build an 11.10 vm from 10.04?

I tried adding the vmbuilder team's PPA and pulling their "daily" build for lucid, but the build in the PPA appears to be several revisions behind bzr and only has support up to maverick.

Instead, I built the package directly from bzr. Living on the bleeding edge is not ideal for various reasons, but here's what I did:

sudo apt-get install bzr
sudo apt-get build-dep --no-install-recommends ubuntu-vm-builder
bzr branch lp:ubuntu/vm-builder ubzr-vm-builder
cd ubzr-vm-builder
fakeroot debian/rules binary
sudo dpkg -i ../*vm-builder*.deb

When I run the command in the question, I no longer get the error message about an invalid suite.


What do you mean by "disabled on upgrade to [xenial]"

During an upgrade of one release to another (say 14.04 to 16.04, or 16.10 to 17.04), only the official repositories are meant to be used. All other repositories (including PPAs) are disabled by the upgrade tool. While disabling them, the tool leaves a comment noting this: "Disabled on Upgrade to ...".


How to encrypt files using a cross-platform solution?

TrueCrypt can create mountable encrypted disk images

You can access TrueCrypt volumes on all three major OS. This is a disk encryption tool rather than a file encryption tool, so the choice of file system inside the disk image is important if you want to be able to mount the file system inside - chose a file system that works on all platforms you intend to use. FAT32 is probably the safest choice.

Note that in order to install the TrueCrypt driver on Windows, you will need to be an Administrator user, or gain the cooperation of one, for every workstation you wish to access a TrueCrypt volume on. In addition, any process with access to the mounted file system will be able to read your files in the clear, so you must trust all systems on which you mount your encrypted volume.

GnuPG can create individual encrypted files

If you can't use TrueCrypt, or don't like it's caveats, then you can encrypt individual files with GnuPG. Gpg4win provides easy to use Windows tools for GnuPG. While GnuPG will encrypt files at the simple "password" level, you may wish to read up a little on Public Key Cryptography.


Some application you use imported it. For example, your mail client perhaps. But they are still only public keys.


Different types of file systems for the booting partition

First, be aware that there are two partition table types: the older Master Boot Record (MBR) system and the newer GUID Partition Table (GPT). Windows ties these partition table types to the boot method: MBR works only with the Basic Input/Output System (BIOS) and GPT works only with the newer Extensible Firmware Interface (EFI) or Unified EFI (UEFI). Linux is more flexible, but deviating from this mapping can cause problems, as noted later.

This is important because the "boot flags" that parted, GParted, and other libparted-based tools present have different meanings depending on the partition table type. Specifically, the "boot flag" is properly named for MBR disks. It's used by some (but not all) BIOS-mode boot loaders to identify the partition that holds second-stage boot code. EFI boots in a completely different way, though, and for reasons that I don't pretend to know, but libparted developers chose to re-use the name "boot flag" on GPT disks to identify the EFI System Partition (ESP) -- that is, it's a partition type code on GPT. The concept is only very loosely similar to the MBR concept. As a practical matter, it's common to set the "boot flag" on a Linux partition on MBR disks, although this isn't required when using GRUB (because GRUB ignores the "boot flag"). On a GPT disk, though, you should never set the "boot flag" on a Linux partition; it should be set only on the ESP. Linux doesn't care about this, but the firmware might, and other partitioning tools or OSes might get confused if a Linux partition is set as the ESP. For clarity of discussion, the term "boot flag" is best reserved for MBR disks, because the term is not used on GPT disks outside of libparted-based tools -- the GPT fdisk family (gdisk, sgdisk, and cgdisk) doesn't use it, and neither do tools outside of Linux. In fact, there is a "legacy BIOS boootable" attribute in GPT that's closer to the meaning of the MBR "boot flag," but it's set in libparted via the "legacy_boot flag." I'm sorry that this is so confusing. You can blame the libparted developers for hacking something together with inadequate thought.

Moving on, you've asked about two partitions:

The ESP holds a FAT (officially FAT32, although FAT16 often works) filesystem and EFI boot loaders. It is, as I said, identified by a "boot flag" in libparted, or by a type code of EF00 in GPT fdisk. There's no officially-mandated size, but it's commonly between 100MiB and 1GiB. It's required to boot a computer in EFI mode.
The BIOS Boot Partition holds GRUB boot code for booting from a GPT disk in BIOS mode. It's not required when booting in EFI mode. This partition is typically 1-2MiB in size, although it can sometimes be smaller. Making it larger will serve no real purpose. It does not hold a filesystem; GRUB just dumps code into this area "raw."

It's possible for a GPT disk to have both an ESP and a BIOS Boot Partition; however, you need at most one of them to boot. (In fact, you can boot using SYSLINUX, LILO, or GRUB Legacy in BIOS mode with neither of these partitions.) Having both will enable you to switch between BIOS-mode and EFI-mode boots, assuming you've got both types of boot loader installed.

As to your problem of your firmware saying that there's no bootable device, I recommend you read the following pages:

My page on EFI-mode Linux installations. This page is distribution-neutral. It provides background on EFI and tips on working around EFI-related problems.
The Ubuntu UEFI wiki. This is the "official" Ubuntu wiki entry on EFI-mode booting.

The "no bootable device" error typically means that one of three things is happening:

The computer is configured to boot only in EFI mode, and it can find no EFI-mode boot loader -- say, because you installed Ubuntu in BIOS/CSM/legacy mode or because the ESP is mis-identified.
The computer is configured to boot in BIOS/CSM/legacy mode, but there's no BIOS/CSM/legacy-mode boot loader available -- say, because you installed Ubuntu in EFI mode.
The computer is configured to boot in BIOS/CSM/legacy mode, but the firmware expects to see a "boot flag" on an MBR partition. If you installed Ubuntu in BIOS/CSM/legacy mode but used GPT partitioning, no such flag will be present. This causes some EFIs to flake out. See my page on the topic for details.


"Unable to correct problems, you have held broken packages." when trying to install dnsutils?

Try to install missing dependencies first, open Synaptic Package Manager from launcher and search for the lib files (libbind9-80,libdns81,libisc83 etc..) you are missing. Install all of them, then try to install dnsutils again via sudo.


Having difficulties with "sudo apt-get update" after moving into another country

Can you not get updates directly from System Settings>Software & Updates?

You can select where the Download comes from in this screen...

Apologies in advance if I have misunderstood your request.


Why isn't Firefox scaled properly in a multi-monitor setup?

I'm using the following AutoHiDPI extension for Firefox and it scales pretty well in Ubuntu 17.04:

https://addons.mozilla.org/en-us/firefox/addon/autohidpi/


Module loaded even though it's blacklisted

As you can see from lsmod output:

rt2800usb              22300  0
rt2800lib              48717  1 rt2800usb
crc_ccitt              12595  1 rt2800lib
rt2x00usb              20092  1 rt2800usb
rt2x00lib              48114  3 rt2800usb,rt2800lib,rt2x00usb
mac80211              272785  3 rt2800lib,rt2x00usb,rt2x00lib
cfg80211              172392  2 rt2x00lib,mac80211

rt2800usb and rt2800lib are used by module rt2x00lib which itself is used by cfg80211

Thus these two modules you blacklisted are neccaissary to load module cfg80211 which is NOT blacklisted. That is why they are loaded despite are blacklisted.


Dpkg was interrupted, you must manually run 'dpkg-configure-a' to correct the problem

Do as I exactly said.

After you power on your PC and coming to login screen of Ubuntu. press CTRL+ALT+F1 , It will directs you to a CLI screen then login there with your username and password. Then run as

sudo dpkg-configure-a


Ubuntu is my Default OS, how do I install Windows 7

Step 1 Open Ubuntu Software Center

Step 2 Search For UnetBootin its a program for creating boot-able usb and double click it

Step 3 Click install i have clicked install already

Step 4 Now search Ubuntu dashboard Unetbootin And Run it

Step 5 Dont Slect any distribution or version

Step 6 Tick mark Disk image Browse to you windows iso

Step 7 Chose Your usb drive and click ok


24GB is excessive - my setup is relatively the same and occupies 7GB.

Open the Disk Usage Analyzer and have it scan your root volume / It will show the directories on the volume and how much space is being used for them. That might lead you to what is consuming so much space.


So major face palm on this one...

I wasn't closing the first running of the vpn client. What I was doing was suspending it (hitting Ctrl-Z) when what I should have been doing was closing it (Ctrl-C).

It turns out that suspending a VPN connection and then starting another one will indeed mess with your network config and also fail to create a VPN connection.


Install the nightly and then reinstall stable version.

You can see the full guide at the kodi wiki page: https://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux#Downgrading_to_a_stable_version_from_a_development_version

to do it you need to run this line in the terminal:

sudo add-apt-repository -r ppa:team-xbmc/ppa
sudo add-apt-repository ppa:team-xbmc/kodi-old
sudo apt-get remove kodi*
sudo apt-get install kodi


Screen tearing oddity when one window is on top of another with Radeon

Enable vsync to vblank in the CCSM panel, open a terminal and run

sudo aticonfig --sync-video=on

Reboot your computer

sudo reboot


unable to mount external hard disk error coming

You need to get the exfat utilites first. Follow the directions in this previously answered question:
How to get a drive formatted with exfat working?


you may want to put the guest users into a special group, ensure that your files are not assigned to this group and remove all rights from "World" for the respective files

example:

chmod o-rwx <filename>  # removes all rights for "World"

This should only be applied to your own files. Be sure not to change any system files, otherwise you may damage your system.


From my experience, no, Ubuntu will run just fine as a VM with direct disk access. You will have to install Guest Addition for enhanced graphical performance, and assign enough video memory and enable 3D acceleration for all the eye candy of Unity. Guest Additions will not be used when you boot physically; similarly, the AMD drivers won't be used by the VM but will be ready when you boot physically.


How do I have `w` command output 10 characters for USER?

From man w:
ENVIRONMENT
       PROCPS_USERLEN
              Override  the default width of the username column.  Defaults to
              8.

       PROCPS_FROMLEN
              Override the default width of the from column.  Defaults to 16.

so for example
PROCPS_USERLEN=10 w

You can of course export PROCPS_USERLEN=10 in your shell's initialization file to make it persistent.


Nvidia problem: freeze computer 14.04 x64

I had a similar kind of issue with my laptop. It use to freeze after almost every 15 minutes. The default nouveau driver was not compatible with my Nvidia GTX 950M graphics card. I installed the driver directly from nvidia website but end up in the login loop kind of issue. Please refer to this
Nvidia graphics card driver installed led to login loop

Finally I followed these steps:

sudo apt-get purge nvidia*
sudo reboot

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot

as your ubuntu is freezing - either do Ctrl+Alt+F1 and issue the following commands or simply login into text single user mode while grub2 loading(press e and edit the kernel params to add single ...) and then execute these commands.

and was able to get this fixed. Got into issue with the unity desktop and then fixed that also.

Please make sure that if you went to the nividia website and installed the driver from there(N*.run) - you must un-install this by going to /usr/bin/nvidia-installer. There should be something like nvidia-install(link to uninstall). Run that one and follow all the instructions. You should install the nvidia drivers from the ppa repository after cleaning up(purging the previous nvidia install). There is a bug in ubuntu and any time there is any issue in terms of installing the nvidia driver - you will end up with login loop.


Ubuntu 16.04 WiFi sometimes working and sometimes not

In my experience, you will always have trouble if there are two drivers and two interfaces active and competing at the same time. I suggest that you blacklist the more troublesome of the two and eliminate this competition. From the terminal:

sudo -i
echo “blacklist rt2800pci”  >>  /etc/modprobe.d/blacklist.conf
modprobe -r rt2800pci
exit

Next, we see this in your scan:

 Cell 01 - Address: <MAC 'Pratyush' [AC1]>
                     ESSID:"Pratyush"
                     Protocol:IEEE 802.11bgn
                     Mode:Master
                     Frequency:2.412 GHz (Channel 1)
                     Encryption key:on
                     Bit Rates:300 Mb/s
                     Extra:wpa_ie=dd1a0050f20101000050f20202000050f2020050f20401000050f202
                     IE: WPA Version 1
                         Group Cipher : TKIP
                         Pairwise Ciphers (2) : TKIP CCMP
                         Authentication Suites (1) : PSK
                     Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac020000
                     IE: IEEE 802.11i/WPA2 Version 1
                         Group Cipher : TKIP
                         Pairwise Ciphers (2) : TKIP CCMP
                         Authentication Suites (1) : PSK
                     Quality=100/100  Signal level=100/100

Many Linux drivers hate TKIP. Moreover, most Linux drivers hate automatic selection between WPA and WPA2.

Please check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

After these changes, reboot the computer. Any improvement?


Ubuntu Server 18.04 LTS - What kernel version does it come with?

The same kernel. It's the same distribution.

The only difference between the server media and the desktop media is the installer, and the default set of packages. The repositories and software versions is identical.

From Ubuntu Server FAQ:

  Before 12.04, Ubuntu server installs a server-optimized kernel by default. Since 12.04, there is no difference in kernel between Ubuntu Desktop and Ubuntu Server since linux-image-server is merged into linux-image-generic


I have deleted XFCE, exo and Terminal in Xubuntu, how to get them back?

You should be able to drop to a command shell with Ctrl+Alt+F3.

From there you can log in and run some fixit commands:

sudo apt update
sudo apt upgrade --fix-missing

Then you can try to install/reinstall xubuntu-core/desktop

sudo apt install --reinstall xubuntu-core xubuntu-desktop


laggy bluetooth mouse logitech M585/M590

I had the same problem,

following this answer instruction worked for me:

https://askubuntu.com/a/1180286

Instructions:

sudo nano /var/lib/bluetooth/xx\:xx\:xx\:xx\:xx\:xx/yy\:yy\:yy\:yy\:yy\:yy/info

where xx:xx.... is pc bluetooth address and yy:yy... is the mouse bluetooth address.

In the file, add this section at the end:

[ConnectionParameters]
MinInterval=6
MaxInterval=7
Latency=0
Timeout=216

then, restart bluetooth service with: systemctl restart bluetooth


Only one of two partitions on SD card is recognized

You can use Testdisk to fix partition table and recover missing partitions. To install Testdisk :

sudo apt-get install testdisk

To use it :

sudo testdisk

And after that you have a official step-by-step tutorial here :
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

P.S : Don't worry it's pretty easy and don't take long and you don't risk to lose your files (you can make a backup anyway if you want) and if you messed up with the partition table just run testdisk again and fix it


PostgreSQL Graphical Interface Alternatives

Maybe one of these tools can help: http://alternativeto.net/software/pgadmin/


How do you launch system applications from within a Ubuntu Touch app?

From simple QML apps, you can't launch an external application (the Ubuntu SDK will probably support this feature in the future though).

To start a system application, your Touch application must be using some C++ code an then rely on QProcess.

Regarding communication between apps, again using C++ you could use QDBus.


Did you try to launch minecraft thru command line?  The command to do this is:

java -jar 'your minecraft program with it's path'

(You can type java -jar then drag and drop the minecraft program in the terminal windows, to get the path to automatically be entered)

You can also try minetest which is an open source alternative to minecraft.


Apache2 ist still showing the default index.html after replacing it

Is your web browser caching the old page? Try holding Shift and clicking the reload button.


How can I stop the Software Updater from nagging me to restart?

Launch dconf editor the way you want, maybe Dash
Click Ctrl+F and search for hide-reboot-notification and click next

Click the checkbox and you are done!!!


how to do a pbuilder-dist build with dependencies in a ppa?

I'm using pbuilder with an enhanced config and not pbuilder-dist but the steps should be basically the same:

Add your extra sources to the OTHERMIRROR variable in your ~/.pbuilderrc:

OTHERMIRROR="deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu raring main|deb http://ppa.launchpad.net/tkluck/gnome3/ubuntu raring main"

Chroot into your pbuilder environment to add the repository keys (or alternatively create a local keyring with those two keys and add it to APTKEYSTRINGS variable or add your local /etc/apt/trusted.gpg keyring):

pbuilder-dist raring login --save-after-login
apt-key adv --keyserver pgp.mit.edu --recv-keys 3B1510FD 568F2AD3
exit

(Of course you can extend your sources.list directly and skip step 1 and 3 but an pbuilder-dist update will reset the sources.list.)
Update your pbuilder environment (with plain pbuilder you have to add --override-config):

pbuilder-dist raring update --release-only

Note: Since raring a development release has the proposed sources enabled as default. This is done by passing the proposed sources to pbuilder's --othermirror command line option - which overwrites the config file value. So you have to use the --release-only switch.
Build your package:

pbuilder-dist raring build YOURPACKAGE.dsc


Under "Tweaks > Keyboard & Mouse > Additional Layout Options > Alt/Win key behavior", what does the "Disabled" option mean?

Disabled means that no XKB option, which changes the behavior of the Win/Super key, is set. It reasonably means that Win/Super behaves in accordance with the default configuration of your desktop environment.


You resolve problems by trying one thing at a time

Is flash the problem?:

disable flash in Firefox

go to firefox/tools > addons > plugins and set shockwave flash to ask to activate

does the problem still exist?

Is Firefox the problem?

install another browser

How to install Google Chrome

does the problem still exists?

Good luck!


Can't get Ubuntu, but customised with LiveCDCustomisation, to boot from USB without Universal USB Installer on Windows

In the end, this is what I did to make the ISO work these days, plus it gives the ISO UEFI Support too:

cd "$LIVECDTMP"
cd ./extract-cd
sudo dd if=$UBUNTUBASEISOLOCATION bs=512 count=1 of=./isolinux/isohdpfx.bin
sudo xorriso -as mkisofs -isohybrid-mbr isolinux/isohdpfx.bin \
-V "$CDLABEL" -c isolinux/boot.cat -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 \
-boot-info-table -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \
-isohybrid-gpt-basdat -o "$PRODUCTISOTARGETLOCATION" .

DD is there to get a working isohdpfx.bin from the Original Ubuntu ISO File used for the base, so that it can be used for the MBR image part of the ISO, and then Xorriso is used instead of mkisofs because of it has the ability to also add EFI Booting Support to the ISO.

This is personally what works now for me, and so to aid others, I might as well put the answer I found in the end for this, and to also make it so the question is then 'answered' and is no longer pending an answer...

By the way, assign UBUNTUBASEISOLOCATION to be the full path of the Ubuntu ISO file, CDLABEL to be the string name of what the ISO should be labeled when flashed or burned onto a drive, and PRODUCTISOTARGETLOCATION as the full path location of where the Created ISO should be at, for this to work properly. Also, make sure your base Ubuntu ISO has all of these files before attempting this. As far as I know, the x32 Ubuntu ISO might lack some of these files, so be sure to make sure they all exist in the base ISO first...


does output from LHS of pipe become an arg for RHS of pipe

what is STDIN of RHS. Does it become the first argument?

No, they are completely separate things - see for example What's the difference between STDIN and arguments passed to command?

does cut take its input from stdin but cat doesn't?

In this case, they are both taking input from STDIN, and that input is the string txtfile. If you wanted to pass the filename textfile as an argument, you could use xargs:
ls | xargs cat
ls | xargs cut -c 2-4

but don't - see Why not parse ls (and what to do instead)?

How do you know which commands take their input from stdin and which don't?

You read the (fine) manual page for the command ex. man cut:

NAME
       cut - remove sections from each line of files

SYNOPSIS
       cut OPTION... [FILE]...

DESCRIPTION
       Print selected parts of lines from each FILE to standard output.

       With no FILE, or when FILE is -, read standard input.


Font showing strange characters in konsole (Kubuntu 20.04)

Assuming you ran ls -l to show that image, looks like the Month for the modified date is not showing correctly.  Some things to try:

Check that Language and region system settings is correct and the language settings.
Run echo $LANG to see what the console language is and that it matches the system setting, and that the language is currently installed on the system. You may need to find out what packages you need and install them sudo apt install {language packages}
Check that your font setting is correct and supports your chosen language
You mentioned you already tried a few fonts.  I use Hack font or FiraCode which supports a lot of different symbols, you could try those if
For some commands you can enter LANG={language-code} {command} to force it in a particular language (The language should be installed on your system first). For example: LANG=fr_FR ls -l or LANG=en_GB ls -l


Every model of hardware using this chip is different and it's hard to tell from software which reported fan speed is connected to what fan in your case. lm-sensors is just concerned about the chip responsible for providing this data and displaying this in a sane way.

Change labels and ignore entries

However, it's possible to change the labels and entries listed to match your situation properly. Create a sensors configuration file in /etc/sensors.d/, e.g. mypc.conf and include this:

chip "w83627dhg-isa-0290"

  ignore fan1
  label fan2 "CPU fan"
  ignore fan3
  ignore fan5

After saving this file, the output of sensors should be changed accordingly. The current system default configuration can be found in /etc/sensors3.conf. Please don't modify this file as you're supposed to override any values in your own files in the .d directory.

Changing ranges for ALARMs

If you feel that the reported values as ALARM are within a safe range, you can change that as well. From the sensors3.conf file I see that Vbat is actually in8 and defined with 10% margin. If you wish to change this, override this as well to become 15% like this:

  set in3_min 3.3 * 0.85
  set in3_max 3.3 * 1.15

I hope this will get you somewhere in changing the configuration to a point that it's actually useful for your set up! For more information on what you can do in the configuration file, see the manpage: man 5 sensors.conf.


Prevent packages from being removed after doing `dpkg --set-selections`

The correct way was parsing the output of --get-selections before importing the list. Now to correct the situation some workarounds should be applied:

On 'old' system:

dpkg --get-selections | grep -v 'deinstall` > packages.txt

This will get you a list of only the packages installed. Now in the target system:

sudo dpkg --clear-selections
sudo dpkg --set-selections < packages.txt

Now lets fix the mess of the previous command:

Save the following to some file, lets call it packages.fix;

e2fsprogs install
libblkid1 install
libuuid1 install
util-linux install
hostname install
mount install
libmount1 install
acpid install
adduser install
aptitude install
console-setup install
cron install
dmsetup install
dselect install
e2fsprogs install
eject install
grub-common install
grub-gfxpayload-lists install
grub-pc install
grub-pc-bin install
grub2-common install
hostname install
ifupdown install
initramfs-tools install
initscripts install
kbd install
keyboard-configuration install
libblkid1 install
libdevmapper1.02.1 install
libmount1 install
libuuid1 install
libxapian22 install
linux-image-3.2.0-49-virtual install
linux-image-virtual install
linux-virtual install
module-init-tools install
mount install
mountall install
netbase install
ntpdate install
openssh-client install
openssh-server install
passwd install
plymouth install
procps install
resolvconf install
rsync install
rsyslog install
tasksel install
tasksel-data install
ubuntu-minimal install
udev install
upstart install
ureadahead install
util-linux install

Now lets do sudo dpkg --set-selections < packages.fix continue with your operation, it should be fine now.


The option "Scale for menu and title bars" should suffice, it's kind of badly named, it scales everything and not only menu and title bars. I'm using it on a 13.3'' 3200x1800 screen and it works.

The only thing you have to add to that is an option in about:config in Firefox (and Thunderbird if you use it)


I want to use webbrowser-app in ubuntu 16.04

Unfortunately that is not possible with the standard Ubuntu web-browser. The reason for this is that it's not Javascript enabled.

If it is the minimalistic, simplicity and speed of it you like, you may want to try Epiphany web browser.

To install that open the Software Centre and search "Epiphany web" and hit enter. Install that and you will be able to add images to Facebook without any problem. :)

Any problems, just give me a shout I'll be on the couch doing what my username suggests!


Only one program showing in the top panel

Gnome-Shell is a very different work-flow compared to the traditional desktops like the previous Gnome-2 interface.

You can see all your running apps by clicking the Activities menu option.

Fortunately, there is the ability to "extend" the interface through extensions

For example you can install "frippery bottom panel" to have a more traditional panel to choose your running applications

or you could have a "Dock" which appears and disappears on the right-hand side of the screen depending if you position your mouse in that area.

If you dont want to use extensions you could use tint2:

sudo apt-get install tint2

add tint2 to your startup applications


How to "mash together" the contents of 2 hard drives?

You could merge the contents using a union mount, but this would not do what you want. All the system files from the new hard drive would mask the entire system on the boot hard disk, so you would effectively be trying to replace the whole operating system while it is running, not just the newly installed applications.

If you want to make the second system into a "clone" of the first, with all the same applications installed, you can use aptitude. First, you run aptitude-create-state-bundle on the first system. This creates a record of all the applications you have installed. You copy this file to the second system, and then use aptitude-run-state-bundle on it. This will install all those same applications on the second system.


Hi
Please enter in "advanced Ubuntu options" in grub and run Ubuntu with older Generic maybe this can help you to open the Ubuntu (or Kubuntu)
If it doesn't work you can enter in "advanced Ubuntu options" and go to last Generic, recovery mode and install the removed package again (from root option) or run "dpkg" and maybe your problem fixed :)


The simplest way is to try reading every file and see which ones give you errors.  Fake a tar backup and it should report any errors it has reading the files:

sudo tar -cf /dev/zero --one-file-system /

This will cause tar to back up all of your files but throw away the backup ( /dev/zero is a device psuedo file that returns as many zeros as you want to read, and throws away anything you write to it ).

On the other hand, this will put more wear and tear on the disk, possibly causing it to get worse, so instead you should just get another disk and make a real backup to it, then you can restore it when you get a replacement drive.


From what I understand, to put it in simple words, you want to create a custom key (be it a combination of keys).

If that's the case and you are using Ubuntu Precise go to SYSTEM SETTINGS then KEYBOARD and then hit the SHORTCUTS tab.

If the feature you want isn't in the list just go to the bottom on the list on the left hand side and click CUSTOM SHORTCUTS.

You can then click the little + symbol at the bottom of the screen to add a new custom shortcut. Then type in the Shortcut name followed by the command to invoke it (really depends and what you want to do). You'll have to research the command you need to start or invoke the application or task you want to do. After typing in the command hit OK.

You will now see the shortcut created in the list. Towards the right it will have the word DISABLED. click on the word DISABLED and then click the key or combination of keys you want to use to activate this shortcut (the command) you created.

  for example: if I want to create a key shortcut to open www.google.com in the browser and want to call the shortcut CHROME. I
  then want it to run when I hit CTRL + W, I would do the following in
  the SYSTEM SETTINGS > KEYBOARD > SHORTCUTS section

  NAME: CHROME

  COMMAND: chromium-browser http://www.google.com

  I would then hit the OK button
  Then, I would click on the word DISABLED that appears the right
  of the shortcut named CHROME
  After clicking on the word DISABLED I would hit CTRL and W
  key together.

You can use the SUPER key or any key on your keyboard. I've tested this on my system with a Logitech (being a Logitech Fan lol).


Install Everpad - unmet dependencies - libgtk2.0-0 (= 2.24.23-0ubuntu1) but 2.24.23-0ubuntu1.1 is to be installed

I solved the dependency issue using aptitude to downgrade 4 libraries. Aptitude will show solutions for the problem and accepting the one which downgrades solved it.

Here is more information about aptitude
general aptitude how-to guide

Everpad is working fine now.


Restarting plex media server corrected the problem. However, now I have to figure out why plex media server keeps eating memory.


Open the terminal using (ctrl+alt+T), and try to reset compiz and unity by:

sudo apt-get install dconf-tools
dconf reset -f /org/compiz/
unity-reset
setsid unity

If you are still facing it, then open terminal again and reinstall desktop and unity

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity

UPDATE

From the live CD, open terminal window and type this command

sudo fdisk -l /dev/sda

You will get some results like

/dev/sda1 Linux
/dev/sda2 Etendue
/dev/sdb3 Linux swap / Solaris

The one you want is the Linux one. Next step you have to try to repare it. First we will go with this fdisk command. It should repair it. After you are done reboot and try to use the old system

sudo fsck.ext3 -f /dev/sda1


How to view the DNS address assigned by DHCP?

For at least Ubuntu 15.10 onward (possibly also earlier versions) run  in a terminal:

nmcli dev show eth0 | grep IP4

eth0 is the most common iface, but it could be eth1, eth2, etc.

For older versions use nmcli dev list iface eth0 | grep IP4.


Where can I get Ubuntu templates/themes for Joomla or Wordpress?

The community maintains Ubuntu themes for some web frameworks. You can find themes for Wordpress, Drupal, and Django here:

https://launchpad.net/ubuntu-community-webthemes

But there does not appear to be a Joomla theme.


deepnest app image worked on Ubuntu 17 but not on 20.04

There seems to be an incompatability between the library versions of pango and harfbuzz on Ubuntu 20.04. One solution is downloading old versions of the pango libs to the same directory as the AppImage. The process is described at https://unix.stackexchange.com/questions/589993/pango-error-harfbuzz-version-too-old


who is the user 999? Is it just custom to him or a code used universally?

In Ubuntu and the Ubuntu family flavours, the numeric user ID in live sessions is 999. (The literal user ID is ubuntu, kubuntu, lubuntu ... xubuntu but in all these cases the numeric user ID is 999.)

When you boot from a USB drive, 'Try Ubuntu', you boot into a live session.

You can check with the command

grep 999 /etc/group

and you will find the user if you run a live session. Otherwise you will probably not find anything via that command.

The operating system used for the Docker tutorial is probably an installed system. And there seems to be a user ID with the numeric 999. It is possible to create such a user ID, but in an installed Ubuntu system there is no standard user with that numeric user ID.


How to Pass/Record audio output as an input device?

Wow, that was quick...I feel guilty for posting this, but I have been struggling to find an answer so I hope this helps someone else:

Taken from http://ubuntuforums.org/showthread.php?t=1440833 does exactly what I was looking for...tested and working. The term I used to find the solution was "record internal audio" rather than output/input keywords.

To sum it up:

Install pavucontrol (PulseAudio Volume Control) using apt-get or the Ubuntu Software Center.
Open PulseAudio Volume Control. It should be in the applications menu under Sound and Video.
Open Sound Recorder and start recording. Playing any sound at this point would be helpful, as your level indicator should react once you have finished.
Go to the "Recording" tab in the PulseAudio Volume Control window.
Make sure that "Applications" is selected in the drop down menu on the "Recording" tab.
Choose "Monitor of Internal Audio Analog Atereo" from the "Record Stream from" menu in the Sound Recorder entry of the application list.


Try using Gnote.You can found it on software center.


Ubuntu 16.04 Failed to created shared shared memory file: Permission denied?

As I wrote before in a comment: this happens when you reinstall without formatting the root partition (or partitions where the packages are stored e.g. /usr if you do such a thing). Ubiquity Installer tries to restore the previously installed packages and during that stage Webkit seems to act up. If you open a terminal and run top you will find a WebKitWebProcess consuming 100% CPU, kill it with killall WebKitWebProcess and the installation will continue. You may not be able to spawn a terminal when it already happened, instead switch to a virtual terminal with Ctrl+Alt+F1 login as user ubuntu with an empty password and kill the process there, be patient, it might take some time to perform this, then switch back to the GUI Ctrl+Alt+F7 and wait for the installation to continue and complete.

I filed a bug on Launchpad for this after some testing: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1607779

If all of this doesn't work for you and you can't get Ubuntu installed without formatting the partition, then make a list of installed packages (dpkg -l with minimal scripting and review of the output can do this for you) and compare modifications you made to /etc and other directories. This is another reason to make backups: compare what previously had after a fresh install.


I use Hathaway as ISP. Can not login without internet explorer to LAN

The issue was that the server would not redirect me if I was not using IE

But it is resolved now. I got IP address that I had to go to directly to login


Difference between output of `ls -sh` and `ls -lsh`

Read the man pages when in doubt.

man ls

shows the following:

   -l     use a long listing format
   -s, --size
          print the allocated size of each file, in blocks
   -h, --human-readable
          with -l and/or -s, print human readable sizes (e.g., 1K 234M 2G)

Without the -l you do not see all the permissions, owner, size and date information of the file.

The -s means to print the allocated size of the file.  The 193K you are seeing is the actual size.  The 204K is the allocated size as the drive is divided up into 4K clusters.  204K / 4 = 51 as that means the file takes 51 clusters.


Problems with wired ethernet connection Ubuntu 11.10

Probably there is a problem with the driver. First figure out which driver you are using. On my system, for example, it's the e1000e driver. I can see the name "pci:e1000e" in the listing of /sys/class/net/eth0/device/driver/module/drivers/. The driver name will appear in the module list obtained from the "lsmod" command. Search for this name in https://bugs.launchpad.net/ubuntu/+source/linux. If you don't find a bug report that describes your case then use apport-bug to open a new bug report against the "linux" package. Include the information above and make sure to say what Ethernet controller you have, as revealed by the lspci command.


using sed to find, compare and replace text

I suggest using awk for this task. Assuming you have two separate files Quiz and Answerin the same directory, cd into that directory and run the following command in the terminal:

awk 'NR==FNR{a[$1]=$4; next}{$4=a[$1]; print}' > Answered_Quiz Answer Quiz

A new file named Answered_Quiz will be created in the same directory and it will contain the desired result.

If all the lines are in one file, you can split it first:

run the following command replacing FileName with your text file name:

awk '$4 ~ /(^[\.]+$)/' > Quiz FileName

to make the Quiz file.

then run the following command replacing FileName with your text file name:

awk '$4 !~ /(^[\.]+$)/' > Answer FileName

to get the Answer file. Your original file will not be affected

Or if all the lines are in one file and you prefer not to split the file, use the following code in a script file (or you can just copy and paste it in the terminal and press Enter) from within the same directory:

#!/bin/bash

pat1="(^[\.]+$)"

while read f1 f2 f3 f4 f5
                do

                        if [[ "$f4" =~ $pat1 ]]

                        then
                        # change Quiz in the following line with your source file name
                        a4=$(awk -v ff1="$f1" '$4 !~ /(^[\.]+$)/ && $1 == ff1 {print $4}' "Quiz")

                        echo "$f1 $f2 $f3 $a4" >> "Answered_Quiz"
                        fi
                # change Quiz in the following line with your source file name
                done < "Quiz"

A new file named Answered_Quiz will be created in the same directory and it will contain the desired result.

Best of luck


Where can I find a list of packages that are default to a distribution?

Maybe there's another way to do it, but the way I do it is to visit the official Ubuntu Releases webpage, click the link for an Ubuntu release, click the first red URL in the list that says (Ubuntu Desktop and Server) after the link, and open the file that has the .manifest extension (example: ubuntu-16.04.3-desktop-amd64.manifest). I usually download and save the .manifest file to my hard drive, instead of opening it in a new tab in my web browser. The .manifest file can be opened locally in any text editor.


Try, first, to remove completely php:

sudo apt-get remove –purge ^php
sudo apt-get purge ^php
sudo apt-get autoremove

and then install php7.2

sudo apt-get install php7.2


ethernet not working in Ubuntu 14.04 after I installed it along with Windows 10

Its a bug
Enter Ubuntu recovery mode press Shift during boot up for GRUB menu
goto Ubuntu recovery mode select root enter password

enter these three commands in sequence

rmmod forcedeth
modprobe forcedeth msi=0 msix=0

resume normal boot ethernet should work
if this works edit the file

/etc/init/module-init-tools.conf or /etc/init/kmod.conf)
to make it permanent add the line after the wile statement's ending and before end script

exec rmmod forcedeth

And add the line modprobe forcedeth msi=0 msix=0 to /etc/rc.local

If none of these works try

sudo ethtool -s eth0 speed 100 duplex full autoneg off

I hope this helps :)


Ubuntu 12.04 impacting wireless speed of other devices

I'm new to Ubuntu, and I`ve had the same problem with my Toshiba L675.
Everything worked great (two cell phones, HP latpop and even Toshiba L675) when Toshiba was running on battery. When I plug-in my Toshiba laptop, connection on other devices goes down from 12Mb/s to 1, maybe 2.
The only difference is that, when Toshiba L675 was running on battery, when I type

sudo iwconfig

I see among other things Power Management:on. On the other hand, when it's plugged-in it turns off the power management and everything works fine.
Turning power management on manually sudo iwconfig eth1 power on did the trick for me at first, but I did some more digging, and I found that I had Additional driver installed for my wireless card.
When I`ve deactivated it everything went to normal.
I hope this helps, 'cause it was very frustrating for me.


How do I get a list of non-LTS packages installed efficiently?

I don't know about your system, but this is what I did:

time dpkg -l | grep 'ii' |  awk ' {print $2}' | xargs apt-cache show | grep '^Supported:' | grep -v '5y' | wc -l
158

real        0m27.549s
user        0m5.580s
sys         0m21.701s

doesn't seem so bad right?

The total number of packages:

dpkg -l | grep 'ii' | wc -l
2602

I am running a AMD E-350 which isn't exactly a blazing fast cpu...

Edit: maximum number of arguments to xargs:

xargs --show-limits

...
POSIX upper limit on argument length (this system): 2091826
...


Linux system rebooting automatically every 1 minute

This particular problem is frequently caused by a bad RAM stick. If there is a bad RAM stick something in the onscreen boot messages will usually report it, however there might not be enough time to read all the boot messages because the computer reboots after 64 seconds. Even without reading the boot messages it is possible to troubleshoot this problem by removing the RAM sticks one at a time if there are more than one RAM sticks, and testing if the computer is able to boot normally when one RAM stick is removed.

If you have successfully found a bad RAM stick, the next thing to do is to remove the RAM stick from the computer, and take it with you to the computer store when you go to buy a replacement RAM stick to make sure that your new RAM stick will be compatible with the old one(s).


As you can see on https://launchpad.net/~webupd8team/+archive/ubuntu/atom this PPA only contains builds for releases up to 18.04 (Bionic), nothing for 19.04. Therefore you can not use this PPA for your system. Please remove it again, e.g. with

sudo add-apt-repository -r ppa:webupd8team/atom

In their PPA description, they refer to the official Atom documentation for the recommended way to install Atom:

  Please use the official repository instead: https://flight-manual.atom.io/getting-started/sections/installing-atom/#platform-linux

Following that provided link, the official instructions are:

  Debian and Ubuntu (deb/apt)

  To install Atom on Debian, Ubuntu, or related distributions, add our official
  package repository to your system by running the following commands:

wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
sudo apt-get update

  You can now install Atom using apt-get (or apt on Ubuntu):

# Install Atom
sudo apt-get install atom
# Install Atom Beta
sudo apt-get install atom-beta


How can I delete all but the newest 10 hidden folders in a directory

Try this:

ls -tA|tail -n +11|xargs rm -R

This deletes all but the latest 10 files or folders (by file modification time) in a simple one-liner.

ls -tA lists all files including hidden ones, but without the . and .. special files, sorted by modification time (newest first).

tail -n +11 then takes only those files starting from the 11th entry (i.e. all but the 10 newest).

xargs just takes the output from tail and uses it as arguments to rm (executing rm once for each line from tail). Useful for commands that don't work with a simple pipe.


I got the Open64 compiler built on my 64-bit system running Ubuntu 11.10 by following these steps that I pieced together from a few places:

Make sure you have prerequisites installed:

sudo apt-get install mawk csh bash make flex bison gfortran ia32-libs gcc-multilib g++-multilib gfortran-multilib

Make sure sh is linked to bash and not dash:

sudo dpkg-reconfigure dash

and select 'No'.

Make sure that awk is linked to mawk:

ls -al /etc/alternatives/awk

Fix looking for the crt libraries in the wrong locations by making symbolic links:

cd /usr/lib
sudo ln -s /usr/lib32/crt* .

sudo mkdir /usr/lib64/
cd /usr/lib64/
sudo ln -s /usr/lib/x86_64-linux-gnu/crt* .

Download the Open64 source and uncompress:

cd ~
wget http://downloads.sourceforge.net/project/open64/open64/Open64-5.0/open64-5.0-0.src.tar.bz2

tar xjvf open64-5.0-0.src.tar.bz2
cd open64-5.0/

Now make another directory inside this for building the compiler

mkdir objs
cd objs

Decide where you want to install, and run the configure script.  Replace /opt/open64/5.0 with where you want to install open64.  If you want to use the default location, leave off the --prefix argument.

../configure --prefix=/opt/open64/5.0

Now fix an unrecognized option error:

nano ../osprey/ipa/local/Makefile.gbase

and delete or comment out the last line containing:

ipl_summarize_util.o: OPTIMIZER += -CG:all_sched=0

Build the compiler (assuming an 8-core machine, -j 6 seems reasonable)

make -j 6
sudo make install


PPPoE connection not configuring properly

The logs clearly indicate that the PPP CHAP authentication has failed. How have you verified that the CHAP credentials you configured are valid?

Take a look at the link

Does your /etc/ppp/chap-secrets have the username and password supplied by the ISP?

If you don't know what the login credentials for your ISP are - have you ever used an off-the-shelf PPPoE modem with this ISP? Perhaps you can view your login/password there.


lsof (you may have to sudo apt-get install lsof) will show you which process has port 680 open, thusly:

sudo lsof -i tcp:680

On my system (and looking at port 22, because I have nothing listening to port 680) the result is:

$ sudo lsof -i tcp:22
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
sshd    4063 root    3u  IPv4  20684      0t0  TCP *:ssh (LISTEN)
sshd    4063 root    4u  IPv6  20686      0t0  TCP *:ssh (LISTEN)

Be sure to read man lsof (in general, whenever some "helpful" stranger tells you to sudo *anything*, be sure to read man *anything*).


The Raspberry Pi 0 and 0 W use the same chip as the original Raspberry Pi and Pi Ab/+.  It's an ARM v6 architecture, which Ubuntu no longer supports.  Snappy and Snappy core definitely don't run on it (they're relatively new releases/distros).

DDG was happy to give a concise answer when I searched.

There's also a question here that goes in depth to the answer.


Newbie question on service, python and console

You must tell the system exactly which $DISPLAY you want the script to use.
Since there cannot be a $DISPLAY active at boot (before login), you seem to have a design problem.
Most folks have their script write to a file or to a log or to some other service, then retrieve the values using a different process that does have a $DISPLAY.


I found a Solution:
the installation of dkms audio upgrade did it.
Instructions are here : https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS

See you


If I were debugging this, I would cause the event (freeze when shutdown/reboot), boot into a recovery mode (do the least recovery possible), and do an ls -lrt /var/log. This would tell me which log files have been modified recently. Any messages having to do with the problem would be in these files.


need help getting terminal and getting a browser

Your on xterm and cannot download software center which is a GUI app and your on console..
I suggest you use apt-get to install software and you begin with installing ubuntu-desktop and then you can install your browsers and related.. there is one browser you could use called elinks

to install Ubuntu desktop

 sudo apt-get install ubuntu-desktop

or install gnome desktop

 sudo apt-get install gnome-desktop-environment

then install your software center or use apt-get. To install the commandline browser

 sudo apt-get install elinks

and browse like this

 elinks www.google.com #opens Google

Good luck!


Just a reminder:

Ubuntu create folders with default permissions 755 and files with default permissions 644. You can change this default value playing with umask. So in general No files don't inherit their parent permissions, instead newly created files/dirs have the default permissions

Back to your question:

You are getting confused with permissions. Just want you to know permissions is related to what you want to do and what level of security you want to use, thus this is relative to the user himself and nobody can answers your questions!!

Also you have to distinguish between permissions of the folder itslef or the files inside. for example you ask for permissions of /var. So what /var you mean? you mean the directory itslef or also the included files. Any let's take it as example to explain what I said before. let's see what /var include.

$ ls -l /var
total 128
drwxr-xr-x   2 root root      4096 Jul 17 08:18 backups
drwxr-xr-x  27 root root      4096 Jun  2 13:01 cache
drwxrwsrwt   2 root whoopsie  4096 Jul 24  2014 crash
drwxr-xr-x   2 root root      4096 May 20  2014 games
drwxr-xr-x 107 root root      4096 Jul 14 12:25 lib
drwxrwsr-x   2 root staff     4096 Apr 19  2012 local
lrwxrwxrwx   1 root root         9 May 22 12:52 lock -> /run/lock
drwxr-xr-x  31 root root     12288 Jul 23 08:02 log
drwxrwsr-x   2 root mail      4096 Apr  7  2014 mail
drwxr-xr-x   3 root root      4096 Jun 20  2014 NX
drwxr-xr-x   2 root root      4096 Apr  7  2014 opt
-rw-r--r--   1 root root     65408 Jul  2 10:27 _r_udev_201310127.shm
lrwxrwxrwx   1 root root         4 May 22 12:52 run -> /run
drwxr-xr-x  14 root root      4096 Jun 17 20:29 spool
drwxrwxrwt   3 root root      4096 Jul 23 08:24 tmp
drwxrwxrwx   8 root root      4096 Jun  4 13:16 www
drwxr-xr-x   3 root root      4096 Jun 13 09:10 yp

As you see in the sample list above there are some directories such as crash,local and mail whom group is not root!! Why? because that whhat I've said before this is related to use.

So in general, just use the permissions that make you secure as possible and make your stuff work.

Take a look for my answer https://askubuntu.com/a/638799/150504 for more information about permissions.


WiFi on both iMac 7,1 and MacBook Pro 12,1

So, for the WiFi to work both on the iMac 7,1 and the MacBook Pro 12,1:

Copy the firmware file brcmfmac43602-pcie.bin to /lib/firmware/brcm.
Open the terminal and enter:

$ cd /etc/modprobe.d

$ sudo -H gedit blacklist-bcm43.conf
Remove the brcmfmac module from the blacklist by entering a # before it:

# blacklist brcmfmac
Save changes and reboot.


SVG-edit is a fast, web-based, JavaScript-driven SVG drawing editor that works in any modern browser

If you don't know what to do now, then you probably took a wrong approach. You have compiled a JavaScript SVG editor, that you need to embed in a web page...

If you're looking for a program to edit SVGs then you probably want to use inkscape.


Toshiba Satellite dual boot after upgrade to Windows 10

Looks like the Windows update broke grub. It can be fixed using a Ubuntu live CD or USB drive. If you have one you used to install Ubuntu use it, if not - create a new one. There a different ways to proceed.
you can see them in this post (different answers for different methods):
How can I repair grub?


How do I fix the install error for my video driver?

The output says that libnvidia-gl-390:i386 is not installed and it looks like libnvidia-gl-390:i386 needs to be installed to fix the issue. Run the following commands and please post any errors:

sudo apt update
sudo apt install --reinstall libnvidia-gl-390:i386
sudo apt -f install
sudo dpkg --configure -a

If you get an error, please post the error.


The package evince needs to be reinstalled

The PPA your error mentioned has no packages for Ubuntu 16.04,

Please remove the PPA if you have installed packages from it with this command:

sudo ppa-purge ppa:skunk/pepper-flash

or remove it from your sources with:

sudo add-apt-repository -r ppa:skunk/pepper-flash

Then run sudo apt-get update again to check everything is fixed.

Please update your question with apt-cache policy evince to determine its origin.
Clear APT cache and lists, then install evince again with:

sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install evince

Enable xenial-updates repository:
4.1. launch Software & Updates
4.2. on Ubuntu Software tab make sure you have checked first four marks, in Download from drop-down list select Main server  (for more predictable results)
4.3. on Updates tab make sure you have checked two marks (Important security updates (xenial-security), Recommended updates (xenial-updates) )
4.4. Press Close and confirm Reload of package lists.
Edit your /etc/apt/sources.list with sudo gedit /etc/apt/sources.list and place the contents of my file to it. You can comment your manually added repositories. Then start over.
Install aptitude and try sudo apt-get install -f, sudo aptitude dist-upgrade -f and sudo aptitude reinstall -f evince.


You can follow to steps given in this link to download and install Facebook App on ubuntu:
http://www.noobslab.com/2013/07/fb-messenger-and-facebook-applications.html.

After installing the Ubuntu Desktop Facebook Application, you will find it in the Unity dash Applications.

For creating a shortcut on desktop, Go to the folder /usr/share/applications and find the facebook app.
Then right click on it and copy.
Now open up the Desktop folder.
Right click and then select paste.

The facebook app will be on your desktop !!


So confused about 32-bit vs 64-bit, please help

64 bit computers can run 32 bit executables, but 32 bit computers cannot run 64 bit executables.  Even if your computer is 64 bit capable, if you're running a 32 bit operating system, you'll be unable to run 64 bit executables.


ceph version on ubuntu ports repository for armhf

muru's point is right. It is now available in the Xenial proposed section. it wasnt like that a couple of days ago.


VNC slow connection on Ubuntu 16.04 in Intel NUC

Ubuntu default desktop is a bit slow, so I have installed xfce4 desktop by using command

sudo apt-get install xfce4

after this the connection is very stable and fast.

Thanks


According to this page you may want to try to add the ppa first:

sudo add-apt-repository ppa:juju/stable
sudo apt-get update
sudo apt-get install juju-core


I actually had this same problem not long ago. I have since fixed the problem. Unfortunately, what i did wasn't pretty. I created a new account and then deleted EVERYTHING from my home directory and moved everything from the new account to it. Meaning that I had to reconfigure everything. Of course, shortly after that I found a possible solution to the problem. The problem MAY be caused by a corrupted highlighting definition file. To easily test this try disabling highlighting and see if the issue goes away.

If that worked for you then you'll need to get another copy of your highlighting definitions which aren't borked. You say you can use other accounts just fine so try to just use the ~/.kde/share/apps/katepart folder from a working account in your account. Just delete yours and copy the other over to the same place in you profile.

Hope it helps and let me know.


Upgradable packages seem to appear from nowhere on Ubuntu 14.04 server?

dist-upgrade is not the option you want to resolve that issue.

Use apt-get update and then apt-get upgrade.

dist-upgrade is meant to upgrade to a higher version of Linux. The two commands look similar but all you need is apt-get upgrade.


New Ubuntu 18.04 install screen is very zoomed in. Zoom is off in universal access and I’m not sure how to fix this

You need to install Nvidia drivers.
Run in a terminal:
sudo apt install ubuntu-driver-460

Reboot and disable Secure Boot in BIOS.


Start synaptic and install gtkorphan.  Select System-->Administration-->Remove Orphaned packages, this will run gtkorphan. Ensure the Orphaned packages tab is selected and you'll see a list of orphaned libraries. Go down the list, ticking the checkboxes as you go: when you've ticked the lot, click on  Ok and the prog goes to work. On completion, don't be surprised if the list fills again; just keep at it until finally there are no more orphans presented.

Then click Options and check the top box, 'Show orphaned packages with orphaned configuration files' and go through the same routine as previously described. This gets rid of the config files too, which is a Good Thing.

Ubuntu Tweak has a very useful Janitor function which also ferrets out 'surplus' files and deletes them; the Ubuntu Tweak web site has good install instructions (you have to add a ppa to your repositories)

Also, and closer to home, you have the option of opening a terminal and entering 'sudo apt-get autoclean'and hitting the return key to remove packages on your machine which are no longer installed.

Installing bleachbit and running it sudo is another great way to clean away unwanted stuff.  So far, I've had no problems with it.

You'll be surprised how much more sprightly your machine is after a good spring clean...

Good luck!


Need help creating a share folder in Ubuntu 12.04 desktop

Samba would be your perfect solution. Read more about Samba

Watch this video: Samba sharing in Ubuntu 12.4


How to remove transparency when resizing a window [kubuntu 19.04]

I managed to find a solution with help from this reddit post, but the workaround for this bug didn't work out of the box and so I'll post an answer here too.

First of all, the effect is caused by the "sticky window snapping" kwin script. Not usually a problem but apparently a bug prevents users from accessing its configuration gui to remove this effect. So to get the settings back type:

mkdir ~/.local/share/kservices5
cp ~/.local/share/kwin/scripts/sticky-window-snapping/metadata.desktop ~/.local/share/kservices5/kwin-script-sticky-window-snapping.desktop

The first command creates a folder called kservices5 into which the second command then copies a file. Now press Alt+F2 and run kwin --replace.

Then open the settings app (close it if it was previously already open)  and go to the kwin scripts section and tweak the sticky window snapping settings to match your preferences.


Can I change the colour of the terminal tab based on the title?

gnome-terminal does not let you change the tab color, and does not provide any automatic means of changing the background color based on the title. It provides an explicit means of changing the background color, e.g.:

echo -ne '\e]11;#abcdef\a'

If you like this, I recommend to hook it up to your shell prompt on all the hosts you use (including the local one) (e.g. PS1=$'...\[\e]11;#abcdef\a\]...', with varying colors of course) so that it's reverted when you exit ssh.

Note that this approach changes the background color for all the history of the terminal (similarly to changing the background color in the profile settings), rather than just for the output produced on the given host.

By the way, simply having a different shell prompt (maybe consisting of different colors) could already help a lot.


lines visible in screen after entering Login password

I know. it's a pain those dots.

type in your terminal,

sudo xhost +SI:localuser:lightdm
sudo su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter draw-grid false

you will be asked for the administrator password., that's it. You should not see them in your next login

Source: http://www.noobslab.com/2012/05/remove-white-dots-from-login-screen-of.html


You can also use the compose key.

This is a good option if you do not want to change your keyboard layout, which can bring other complications to your keybindings in various settings.

Setting the compose key in 12.04:

Go to System Settings >> Keyboard Layout >> Options.
Click Compose key position to expand the list of choices and select an option. A common selection is right alt.

Using the compose key:

compose key+'+a = á
compose key+-+n = ñ (that's a dash or minus)

The keys following the compose key can be in either orders, so you can also use the the following.

compose key+a+' = á
compose key+n+- = ñ

For keys requiring shift, you use shift as normal, but it is only needed once.

compose key+shift+?+? = ¿
compose key+shift+!+! = ¡

See the full Gtk compose table.


If you're talking about the default video player (called Gnome Videos (was Totem)), this feature is in the Wishlist category. It's marked In Progress after about 4 years, so there's no telling when it might actually arrive. It's not going to happen. According to Bastien Nocera [totem developer]:

  I don't want to see options like that in Totem. FWIW, use Shift+Left Arrow if
  you want to skip back by 5 seconds.

  ... I rejected a patch to make the arrow keys skip time configurable.

If you do wish to configure, you might want to look at alternatives such as VLC, SMPlayer, etc.

In VLC, the option is available, but hidden away. Go to the Tools menu and open Preferences. In the bottom-left corner, change Show Settings from Simple to All, and search for hotkeys:

Set the jump lengths to the duration you want (in seconds).
You can also change the shortcuts for the jumps. (This option is also available in the Simple interface under the Hotkeys section - only the jump duration needs the advanced view.)


I found that if you enable the Libnotify Popups plugin (pidgin-libnotify) in Tools->Plugins then this problem is resolved. You can set your status via the system tray menu and you can also close the Pidgin Buddy List window and it will remain running. If you don't want notifications you can also configure this plugin in the Plugins menu.


What's the official name for that area on the top of the screen?

The bars at  the top and bottom are the panels. Within these I've annotated a screenshot to give you some idea of the different components.


How To Create a Bootable Clone of boot disk

My first answer does not clone the system in general.  I have succeeded in cloning everything and making it bootable.  (This is for EFI|UEFI, including Mac, not MBR booting.)
The device configuration:
mac2011-linux% lsblk -f|grep -v loop
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1 vfat     FAT32 EFI                 67E3-17ED                             172.8M    12% /boot/efi
├─sda2 hfsplus        SSD 1T              0492d65c-8b14-356a-9d3d-337f44e8d58a
├─sda3 hfsplus        Recovery HD         87867aee-1d5c-3c9e-ae36-8d2df5c162f1
└─sda4 ext4     1.0                       dc68435c-f80c-4beb-a09b-69015ad516e6  161.5G    60% /
sdb
├─sdb1 vfat     FAT32 EFI                 B4A1-A82A                             172.8M    12% /media/alba/EFI
├─sdb2 ext4     1.0   Ubuntu backup       e370d38b-7cdf-4a2a-b9e5-cc4ff1723f51    165G    59% /media/alba/Ubun
├─sdb4 hfsplus        Mac OS X El Capitan 3771b656-357f-3ac4-a993-704353fc89b7
└─sdb5 hfsplus        Recovery HD         1925d052-aca6-307a-8025-ad6321a399f4

Check that all the above four partitions are mounted and mount them if necessary (with Ubuntu Disks).
sdb2 (Ubuntu backup) is the intended clone of the Ubuntu system and user files, shortly, the root partition.  As sdb is an external device, sdb2 is mounted by default as /media/alba/Ubuntu backup.  sdb1 is the intended clone of the EFI system partition, mounted as /media/alba/EFI.
Each partition must have a different UUID.  FAT partition UUID can be changed only by formatting.  The clone partitions should be large enough to contain all the files of the original partitions.
Clone the root partition:
sudo rsync --archive --executability --hard-links --update --verbose --xattrs --one-file-system --delete --progress --exclude={/etc/fstab,/boot/grub/grub.cfg,/export,/home/alba/.cache,"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*",/lost+found} / /media/alba/Ubuntu\ backup

The contents of /dev etc. do not need to be copied because they are useless or should not be copied because Ubuntu creates them.   However Ubuntu won't boot if /dev etc. do not exist, so only /dev/* not /dev etc. are excluded.
I also exclude /export that is a NFS mount in my configuration.  Not excluding /export may cause duplicates.
Copy /etc/fstab from original to clone:
mac2011-linux% sudo cp /etc/fstab /media/alba/Ubuntu\ backup/etc/fstab

In /media/alba/Ubuntu\ backup/etc/fstab, replace the original root and EFI system partition UUIDs by the UUIDs found in device configuration above, so that:
mac2011-linux% sudo cat /media/alba/Ubuntu\ backup/etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda4 during installation
UUID=e370d38b-7cdf-4a2a-b9e5-cc4ff1723f51 /               ext4    errors=remount
-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=B4A1-A82A  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw
  0       0

Copy the EFI system partition:
mac2011-linux% sudo -i
root@mac2011-linux:~# cp -r /boot/efi/* /media/alba/EFI

Edit /media/alba/EFI/EFI/ubuntu/grub.cfg to define root partition, so that:
root@mac2011-linux:~# cat /media/alba/EFI/EFI/ubuntu/grub.cfg
search.fs_uuid e370d38b-7cdf-4a2a-b9e5-cc4ff1723f51 root hd1,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

Partition numbers in GRUB are the same as in Ubuntu.
Copy /boot/grub/grub.cfg from original to clone (as you did for /etc/fstab) and make it writable:
root@mac2011-linux:~# chmod +w /media/alba/Ubuntu\ backup/boot/grub/grub.cfg

Replace everywhere gpt4 by gpt2 and original root partition UUID by clone root partition UUID.
Reset permission:
root@mac2011-linux:~# chmod -w /media/alba/Ubuntu\ backup/boot/grub/grub.cfg

Reboot, select the clone EFI in the firmware boot menu.  If you made no mistake, then GRUB will launch Ubuntu, else it will prompt.
Remarks
I have checked in he GRUB shell that the GRUB device number hd0 used in /boot/grub/grub.cfg does not refer to any of the /dev/sdb?.  It is not necessary to edit it.
I advise to disconnect the original at least once while booting the clone in order to make sure that the clone can boot by itself.  If you don't want to open the computer case, you can just check that the original partitions can be unmounted after booting on the clone.
update-grub is not needed but once you have booted on clone you can update GRUB and reboot on clone to check that the clone is still bootable.
Using --delete-excluded in rsync would wipe out the edits of /media/alba/Ubuntu\ backup/etc/fstab and /media/alba/Ubuntu\ backup/boot/grub/grub.cfg.
In Bash script to backup/clone Ubuntu to another partition is a script that does very similar things.
It is better first to clone manually in order to understand and check every step, and only later script, according to the system peculiarities.
The copying and editing /etc/fstab, /boot/grub/grub.cfg and the EFI system partition should be repeated if those files change on the original.  This happens during system updates.
Bibliography or references
Does rsync requires changing UUID after copying a partition?
Dual boot and the files /boot/grub/grub.cfg — which one is used?
UEFI
GRUB starts in command line after reboot
How to Rescue a Non-booting GRUB 2 on Linux
Bash script to backup/clone Ubuntu to another partition
File system cloning Arch Linux


Blinking cursor and black screen when trying to boot from USB

I suggest that you make it with Linux Live USB Creator - http://www.linuxliveusb.com. If the problem still occurs try changing the flash drive.
Hope this helps.


If you want to minimize all windows, you can use the Ctrl+Super+D keyboard shortcut.

It is possible to set the touchegg program to send this shortcut on a 3-finger swipe.

The only problem is that touchegg does not work with libinput, only with xorg-synaptics.

For libinput you can try libinput-gestures. It works for me.