How to stop "cable snake" symbol from appearing in taskbar?

A blown up image shows the cable snake on the left:

From the author's blog:

GNOME Shell
The GNOME shell bits to enable Thunderbolt 3 support were merged some
time ago and made it into 3.28. This means that the GNOME shell will
act as authorization agent and will automatically authorize new
thunderbolt 3 devices — if the user has administrator rights, is
currently logged in and the session is unlocked. It will also show a
little indicator (called the cable_snake by some) in the status
indicator section while devices are being authorized because the whole
authorization dance can take quite a while.

Correspondence from developer
I emailed the developer and this is our conversation:
There are users annoyed with Cable_Snake icon making icons shift left and right in the application indicator top bar. Is there a way to disable the icon but keep boltd running?

This was introduced via a change in the kernel/udev, but a work-around
laded in bolt 0.9:
https://gitlab.freedesktop.org/bolt/bolt/-/issues/156
There is an ubuntu bug open:
https://bugs.launchpad.net/ubuntu/+source/bolt/+bug/1892657

Is there a way to disable the icon but keep boltd running?

Currently not, GNOME Shell is hardwired to react to boltd's probing
setting. Best way is to update bolt.

Follow the author's blog for updates.

Some ideas of my own
I use the Unity interface where application indicators are right justified on the top bar so new apps opening and closing on the left are preferred and not a disadvantage.
For Gnome Users to prevent icons jumping back and forth the only band-aid I can think of is moving all icons to the right side. This can probably be achieved here:

How can I order Gnome3 shell extensions at the top?

If this works, then when the boltctl icon appears and disappears on the left side nothing "jumps around".

I've emailed the developer again on December 24, 2020 with a link to OP's problem and asked these questions:

A) Is there an update to correct the problem?
B) Is it possible to define a new cable snake icon which is 0x0 pixels such that even if it still reappears every few seconds the effect is invisible?


The Master Boot Record (MBR) partitioning scheme doesn't support over-2TiB disks. You haven't said what sizes your physical disks are, but if some of them are over 2TiB in size, you're either under-utilizing them or you're using them with the newer GUID Partition Table (GPT) system, which has no problems with such disks and can handle much larger partitions, too.

I recommend you read the Wikipedia page on GPT and at least the first two sections of my GPT fdisk (gdisk) documentation. This will give you the background information required to revise your question. When you do, be sure to include information on the number and sizes of your existing disks as well as the current partitioning system. Try using sudo parted /dev/sda print on the first disk, and similar commands on the rest of them, and post the output in your edited question.


Trying to dual boot ubuntu 13.10 and windows 8.1 on my laptop however ubuntu installer doesnt pick up windows 8.1

1.On the ubuntu installation wizard.select something else option.2.Allocate the space for your Ubuntu 13.10 partition.3.Once booted up run the command sudo update-grub on terminal.you don't worrry about that grub will allow you to boot into windows 8.1 os.If this method not worked then download and run boot-repair disk,select recommended repair option.This will reinstall or update your grub.


The mydata directory has permissions only for your user:

Drwx------ agusgambina agusgambina mydata

The deluge user cannot access anything within mydata without execute permission on it (see Accessing files in a directory without x-permission?). So, grant execute permissions on the directory:

chmod o+x /home/agusgambina/mydata

Other permissions seem fine.


Broken sudo: can't open /etc/sudoers: No such file or directory

A hard link count of zero means that the directory entry doesn't belong to any file. That sounds like a damaged file system.


What are the differences between Mythbuntu and MythTV?

How are Mythbuntu and MythTV related and what are their major differences?

Mythbuntu is the official operating system based on Ubuntu.
MythTV is software that acts like a PVR (personal video recording) system. It is not limited to Ubuntu but can be used on Fedora called MythDora.

  What are the definitions of a frontend and backend in the case of Mythbuntu and MythTV?

The front end is the software required for the visual elements (GUI) and is used to find, play, and manipulate media files. The back end is the server where the media files, tuners, and database are actually stored.

  Is Mythbuntu required for MythTV to work?

No. You can also use other Linux based systems like Fedora and also Windows or Mac OS.


How can i see all my windows files in ubuntu?

If you installed a dual boot machine, you need to mount the windows partition in ubuntu.

You can have a look in ubuntu docs to see in details how to do that: ubuntu help.
Basically you need to identify your windows partition and mount it in /etc/fstab


You likely won't find a PPA with such an old version of libgmime for a new release (the current version appears to be 2.6 (libgmime-2.6-0)). Possible solutions include:

Contact the upstream developer of the software and see if a newer version would work instead.
Compile the libgmime version you need from source.
Install the Natty version of libgmime-2.0-2a


Looks like blkid gets confused what is actually on the drive.
If it truly is just a filesystem without partition table (what seems to be what gparted is thinking), then you still might be able to mount it directly.
You can check for it yourself with hex dump:

dd if=/dev/sdc bs=16 count=1 | hexdump -C

If the the line contains NTFS like this:

00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|

Then you should have no problems mounting it with: mount -t ntfs /dev/sdc /mnt

If you want to access files as normal desktop user, you probably need to specify -o uid=1000 etc. options as well (refer to man mount.ntfs).


Is Ubuntu and Kubuntu same in hardware compability?

You should be fine. The only difference between a release of Ubuntu and Kubuntu is that Kubuntu uses the KDE desktop environment instead of the Unity graphical environment. https://en.wikipedia.org/wiki/Kubuntu lists what is different, only your graphical frontend and other applications that are part of the KDE project are different. Underneath the user interface and the list of default applications that are present on installation (you can install everything from Kubuntu on a vanilla Ubuntu install too, if you'd like) you're running the same operating system.


try to install tp-link wireless adapter (Ubuntu 16.04)

You can install a driver from my PPA

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt update
sudo apt install mt7610u-dkms

This PPA supports xenial with the 4.4 kernel.


Ubuntu 19.10 freezes regularly (Dell XPS 13 9343)

From the comments...

To slightly re-tune your system, we'll make adjustments to your swap, and see if that helps.

reduce swap from 16G to 4G
set vm.swappiness to 80 (60 is the default)

sudo sysctl -w vm.swappiness=80 # make more use of swap

sudo sysctl -p # use the values from the current sysctl.conf


Seems that you are using privileged containers, so you should use sudo with your lxc-ls commands:

sudo lxc-ls -f


It's been a year since this incident. I kept using using the same Ubuntu 16.04 (without reformatting). At least I can say that I've not had this problem again. So, if anyone is panicking at this as I did a year ago, there is a chance that a single fsck /dev/sdb6 will solve the issue and you will not run into it again.


How to change color of the top bar (including menu bar) of terminal in 18.04.3?

Go to preferences in the terminal.

Go to Edit > Preferences > Unnamed > Colors

You will find how to change the color, or you can download the themes.


Medibuntu (Multimedia, Entertainment & Distractions In Ubuntu) is a repository of packages that cannot be included into the Ubuntu distribution for legal reasons (copyright, license, patent, etc).

Some of these packages include the libdvdcss package from VideoLAN and the external binary codecs package (commonly known as w32codecs) used by MPlayer and xine.

follow this ubuntu guide : here


Open "File system support" from the Gparted menu, and ensure that the intersection of "Resize" and "ntfs" is checked. If not, then install the ntfs-3g package:

sudo apt-get install ntfs-3g

In some cases, there are very small gaps which cannot be filled. For example, logical partitions are preceded by an Extended Boot Record, which describes the following partition. However, you should be able to fill all of the remaining empty space.


You should try Boot-Repair.
https://help.ubuntu.com/community/Boot-Repair

  Get a CD including Boot-Repair
   The easiest way to use Boot-Repair is to burn one of the following disks and boot on it.

  Boot-Repair-Disk is a CD starting Boot-Repair automatically.

  Boot-Repair is also included in [Linux-Secure-Remix][2].

  Remark : you can also install the ISO on a [live-USB][3] (eg via [UnetBootin][4]
  or [LiliUSB][5] or [Universal USB Installer][6]).

  Using Boot-Repair Recommended repair launch Boot-Repair from either : the Dash (the Ubuntu logo at the top-left of the screen) or
  System->Administration->Boot-Repair menu (Ubuntu 10.04 only)

  or by typing 'boot-repair' in a terminal Then click the "Recommended
  repair" button. When repair is finished, note the URL
  (paste.ubuntu.com/XXXXX) that appeared on a paper, then reboot and
  check if you recovered access to your OSs.

  If the repair did not succeed, indicate the URL to people who help you
  by email or forum.


Run sudo apt --fix-broken install in a terminal.

Then you can install gdebi.


Holy !@#$% Batman! You've got way TOO many GNOME Shell extensions, AND they're installed in the wrong place, AND, one or more of them is causing your GNOME Shell crashes.

When/if you get a System Problem window for GNOME Shell, make sure to click Do not send report, or Send report. Do not just click the window close "X". For this problem, click Do not send a report.

All of the extensions installed in /usr/share/gnome-shell/extensions are in the wrong place. The only extensions that should be there are ubuntu-appindicators@ubuntu.com and ubuntu-dock@ubuntu.com. Did you manually install the others there?

To troubleshoot which one, or more, is causing your problem, go to https://extensions.gnome.org/local/ and TURN OFF ALL extensions. Restart the GNOME Shell with ALT+F2 then r then ENTER, or just reboot the computer. Really. See if your system becomes more stable. It should.

Then later, enable ONE EXTENSION AT A TIME, and if problem returns, you found a bad extension. Remember that you can, and probably do, have more than one extension causing your problem.

If you have some experience, you can open the terminal application, and type grep -i gnome-shell /var/log/syslog* | more and you might be able to identify which specific extensions are causing problems.

Lastly, you'll want to remove all unnecessary extensions, and eventually move the remaining extensions (except for ubuntu-appindicators@ubuntu.com and ubuntu-dock@ubuntu.com) into the ~/.local/share/gnome-shell/extensions folder.

Update #1:

To remove the troublesome .crash files... (only do this one time...)

In terminal, type:

sudo rm -i /var/crash/*.crash

Remember, when you get a crash report window, you must click either Send Report or Don't Send Report to properly handle the crash so it won't appear again and again. Don't just close the window by clicking the x.

Update #2:

You may have a problem with an older computer, with an older GPU. Try this...

sudo -H gedit /etc/gdm3/custom.conf # edit this file

change:

    #WaylandEnable=false

to:

    WaylandEnable=false

Save the file and quit gedit. Then reboot.


cp: cannot create directory '/home/rexxi/usr/lib/firefox-addons/plugins': No such file or directory

~/usr/lib/firefox-addons/plugins

and

/usr/lib/firefox-addons/plugins

are different paths.

The first one is relative and is actually

/home/$USER/usr/lib/firefox-addons/plugins

The second is absolute.

The correct command seems to be

sudo cp -r ~/Downloads/flash_player_npapi_linux.x86_64 /usr/lib/firefox-addons/plugins

But it's not clear for me what are you trying to achieve.


pycharm 4.5 freezes the moment the autocompletion popup appears

found solution

enforcing other java version does the trick.

just as mentioned in above question's link, set environment variable in

  ~/.bashrc

by appending the line

  export PYCHARM_JDK='/usr/lib/jvm/java-7-openjdk-amd64'

and make sure you also have the openjdk java 7 installed.
logout of unity, log in again
starting pycharm should show an about message referring to openjre 1.7.* as java version


AMD catalyst driver 12.1 Kubuntu 12.10 (64 bit)

Imho you should try to install Catalyst Driver on Kubuntu. It will enable 3D graphics acceleration.

Regards,
Over Killer


I've written a set of Web pages on this topic:

http://www.rodsbooks.com/efi-bootloaders/

Briefly, boot loader options are:

GRUB 2
Fedora's patched GRUB Legacy
ELILO
The kernel's built-in EFI stub loader

Any of these programs can load a kernel into memory and execute it. In addition, there are separate boot managers available, which present menus of boot options:

gummiboot
rEFIt
rEFInd

These are usually paired with the EFI stub loader, which lacks a menu of its own. (GRUB 2, GRUB Legacy, and ELILO all have their own built-in boot menus, although ELILO's can only select between Linux kernels, not between kernels and other OSes.) If you like, though, you could use a boot manager with GRUB or ELILO, and use the boot manager just to select between Linux and another OS.

As a general rule, people who switch away from GRUB tend to gravitate toward the EFI stub loader, usually in conjunction with rEFInd, or occasionally gummiboot. The EFI stub loader is included in 3.3.0 and later kernels, so you don't need to do anything special to install it. Assuming you can boot into Linux, installing rEFInd should be easy -- just install the Debian package on its download page. gummiboot is harder because the developers don't make a Debian package (or any sort of binary) available. rEFIt is no longer being maintained (rEFInd is a fork of rEFIt, though). In practice, EFI bugs can sometimes complicate matters, no matter what software you select.


Two display monitors instead of built-in display

Been there.  Done that.  Still have dust on the lid of the laptop.  I don't know if what worked for me will necessarily work for you, but it probably will if your laptop is configured similarly.

AFTER MUCH fiddling with NVIDIA drivers and configuration screens, I discovered that my HP DV9000 laptop which I was initially given as a basket case broken laptop, was actually supposed to come with an IR wireless remote. I was able to purchase it on eBay which permitted me to turn it on while leaving the lid shut.  Unsurprisingly, HP designed these laptops to not power up their display when the lid is shut.

Providing yours is similarly configured, you may be able to do this.  Alternatively, you may be able to configure your power settings to not put the laptop to sleep when the lid is shut, and it is possible that the internal screen will power down with the lid closed.


Today I encountered the same problem.

Let's do this:

Press Ctrl + Alt + F1
Log in as root
Type startx and hit Enter

It should tell you if the X has encountered any problem and where the log file is.

If the X is already running, let's restart it using sudo service sddm restart


vgaswitcheroo on macbook 8,2: blank screen while switching from DIS to IGD

For the actual switch i have to shutdown X and do it from the console.

Also i've noticed that The blank screen issue I had (the screen seems to get completely shut off) issue seems to have some correlation to what GFX card you had running to in OSX before you reboot into Ubuntu.

Try installing gfxcardstatus in OSX and use the utility to set discrete or  built in card in OSX then rebooting and trying the switch in Ubuntu.


Upstart with a script that start and finish their own processes

At Ubuntu plymouth.conf have some similar things with my case, then like plymouth.conf I added to my upstart script a sentence to mark the service like a process that fork more procs: expect fork

# Listener Service

description     "Listener Server"

start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]

expect fork

exec /home/www-data/listener/bin/listener.py -startall

pre-stop        exec /home/www-data/listener/bin/listener.py -killall

And now all is working Ok!


Unable to install openjdk-8-jdk in Ubuntu Server 18.04

I suggest you remove the ppa and enable the universe repo instead.

apt policy openjdk-8-jdk
openjdk-8-jdk:
  Installed: (none)
  Candidate: 8u181-b13-1ubuntu0.18.04.1
  Version table:
     8u181-b13-1ubuntu0.18.04.1 500
        500 [my local mirror]/mirror/us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
        500 [my local mirror]/mirror/us.archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
     8u162-b12-1 500
        500 [my local mirror]/mirror/us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages


I don't think you're seeing different fonts but actually just different rendering methods of the same font. That font looks very thin and skinny because it has no "hinting" on it and it looks like when this happens you also don't get sub-pixel precision for you fonts either.

I think this happens because sometimes when your system boots it doesn't see the display as a laptop, or possibly it sees another output device and disables sub-pixel rendering.

My advice is next time this happens try going to the Display manager and changing your resolution in an attempt to tell Ubuntu to find your displays again. It's possible this won't help because the driver stack is already loaded and committed to not doing sub-pixel rendering, but I'm not positive.


To see if a package is available in the repo's you use, type apt-cache search dep or apt-cache search go-dep.

Go dep is not available in the 16.04 repo's. It is available in the 18.04 repo's, so 'someone' was (at least partially) right.

Maybe you can install it from Github?


How can I fix a broken Eclipse installation in Ubuntu 12.10?

First, try sudo apt-get purge eclipse followed by sudo apt-get autoremove, sudo apt-get clean, and sudo apt-get autoclean. Then, try reinstalling Eclipse.

If this doesn't work, move on to the directions below:

Eclipse files are also stored in a per-user directory in one's home folder, namely .eclipse, as well as the workspace folder you select at Eclipse startup(unless you set it to never ask you again). You can try renaming these folders in order to reset Eclipse.

Open your home folder, and press Ctrl+H to see hidden files. Find .eclipse and rename it to .eclipseOld. You can also rename your workspace folder in the same way.

Then, reinstall Eclipse via apt (sudo apt-get install eclipse) and try using it again.


Protect SSH server - 3 attempts at one day

Changing the SSH listening port will prevent these robot attacks.

Quick edit: This isn't exactly a long-term fix, but it'll stop those Chinese robots trying simple username & password combinations on most new SSH connections running on port 22.


Ubuntu Installation In PC After Removing Windows 7 Without Loss Of Other Data

Your question is too vague and broad.
Do you know where all your files are? C: , D:, etc...
Do you know how to move all your files onto another partition?
Is the partition big enough to hold all your data?
Then you could boot into Ubuntu Installer and perform the install as long as you did not delete the partition with your data while installing Ubuntu.

I think it would be easier if you backed up your data to cloud drive, external hdd, etc...
Install Ubuntu, and create a NTFS partition while doing the custom partitioning. You will then have Ubuntu installed, and a new NTFS partition and can restore your data to that partition.

More Info:
First, I highly suggest a full backup of your data on an external hard drive.
You said you want to format c: and Install Ubuntu there.
On an external drive as example create a folder named backup.
In backup create folders C, D, G.
Check root of C:/  for any folders/files that may need backed up there, and then copy to C folder on external drive.
Go to c:\users and decide if you need to copy any users profile data.
Go to c:\user\ and this is the basic folders you would want to copy:

Contacts
Desktop
Documents
Downloads
Favorites
Music
Pictures
Videos

You can choose to copy more, but may end up getting errors and that will not be covered here. Also, you can choose to view hidden files, but again that will not be covered here.

Next, view D partition and copy all data to D folder on external drive. Use same instructions example for copying G partition contents to G folder on external hard drive.

Next,after having a full backup you would  then boot from "Ubuntu Live CD" and choose to install Ubuntu, selecting a custom install.

Please view some of the duplicate answers and see how to do partitioning. The in-a-nutshell version is that you are ONLY selecting the C: drive partition to format. The thing that may confuse users is when they see all the partitions. With a Windows install you are going to see your c,d,g partitions as well as boot, efi, hidden and other partitions as well.  So, you would delete ALL partitions except D, G and create your partitions for Ubuntu.

I personally, if you have all data backed up would just format the whole hard drive, while doing custom partitioning, re-create a D, G partition as you wanted as NTFS or Fat32 and then continue with Ubuntu install and copy data back over. I say this because I think that is easier for someone who is not familiar with hdd partitioning.

I'd suggest looking at duplicate answers and/or find a documents that has details and screenshots detailing the process.


Is there a way to pull source for a package for a specific release?

Kind of.

Assuming you have that release in your sources.list you can do something like this.

apt-get source python-imaging/raring

Of course, if you are going to put other releases in your system sources.list you will also need to put appropriate pinning in place, or your regular use of apt-get will suffer. A better option then, in my opinion, is to use a separate apt environment, temporarily pointing to it using the APT_CONFIG environment variable.

The link below point to a blog post on how I put those pieces together for apt-get download. The exact same principle applies for apt-get source, just that you instead need the deb-src entries in your custom sources.list.

http://blog.bogosity.se/2012/11/03/fully-using-apt-get-download/


Problem with nvidia driver - display not working properly after install

I have the same problem with nvidia 7300 go in laptop Acer Aspire 5635WLMi. The driver indicate from Nvidia as the correct one is the v. 304. This driver works rigth in Ubuntu 12.04 but does not work in Ubuntu 14.04.
This is a big problem for users of nvidia 7300 go in laptops.


I used sudo chown -R yourusername:yourusername /etc but cant turn it back

Not all will be solved by chowning it to root:root, try installing same Ubuntu version on another PC or VM, install all the packages you currently have installed and run this command:

sudo find /etc -exec stat --format 'chown %U:%G %n' {} \; >> restore.sh

It will write a script that contains permissions from healthy /etc with content like this:

...
chown root:dip /etc/ppp/peers/provider
chown root:lp /etc/cups/subscriptions.conf
chown root:lp /etc/cups/printers.conf
chown root:root /etc/cups/raw.types
chown root:root /etc/cups/smfp.types
chown root:lp /etc/cups/printers.conf.O
...

Copy restore.sh to your current troubled Ubuntu and run it with sudo to restore your permissions.


It is better to install linux again in the existing drive and get grub installed .


Can't connect to my wlan router but can connect to any other router (but router works fine with other distributions)

On which version of Ubuntu are you working ?
Have you tried to

sudo apt-get remove network-manager nm-applet

and then

  sudo apt-get install network-manager nm-applet

Can you please type in your terminal

  ifconfig

and paste here the output ?


If it's just a matter of calling on psql directly you need to make sure the path "/usr/local/pgsql/bin" is included in $PATH when you are logging in.   Oftentimes this has to do with setting the PATH variable appropriately in in /etc/profile (or ~/.profile) or if you are using bash, then this would be /etc/bashrc or ~/.bashrc.

e.g.

export PATH="$PATH:/usr/local/psql/bin"

Additionally.. the psql command expects the args as follow;  psql <dbname> <username> (you can use --flags to specify the same).

If you supply "psql test"- then it will assume the username of the current user (as seen by whoami command).

Hope  this helps.


Install libdnet Python wrapper for ScaPy

You say you only need libdnet to use ScaPy.

But this is a false assumption. ScaPy only requires this library (or wrappers for it) when you are not on a Linux system.

You can read that on their site's installation page:

  (For non-Linux platforms): Install libpcap and libdnet and their Python wrappers.

  Scapy can run natively on Linux. I does not require libdnet and libpcap.

So unless you come up with another use case, there's no need for a Python 3 wrapper to libdnet.


Ubuntu 12.04 with Linux 3.5.0-39-generic has issues booting

It was because of lightdm display manager. I installded gdm display manager and I recovered from this problem. I hope it will also work for you.

Here are the steps how to install

1. Go to following link and download gdm for Ubuntu 12.04.2 according to your OS
architecture i386 or amd64. (chose ubuntu proposed universe out of three listed there.)

http://pkgs.org/download/gdm

2. Put the *.deb file to any drive of your system say C:\ or any other drive which was
mounted automatically when Ubuntu was starting before. (since ubuntu is not working
you have to use your Windows OS)

3. Then login in save mode. After a lot of text displayed in black screen one window
will come which list some options. First go to option "Grub Update", it will mount
your file system in read/write mode. Then chose "root" option in order to login
as root. Then go to the drive where you saved the deb file. The drive will be listed
in /media. I am assuming that you saved the file in gdm directory of C:\ which is
named as Windows, then:
   # cd /media && ls (which will list all your mounted drive)
   # cd Windows/gdm   (go to gdm directory where deb file is saved.)
   # dpkg -i *.deb    (installing gdm)
While installing gdm one window will come which will ask your to chose lightdm or gdm
from the list. Chose gdm. If this window doesn't appear then try following command.
   # dpkg-reconfigure lightdm (chose gdm)
   # reboot (reboot your system)

When you system will be reboot you will get a login screen. After login you should be able to successfully access your windows. If still you get black screen then while login chose some different options like gnome classic or gnome classic(no effects)


Recursive wildcards to a specified directory

Enable globstar

shopt -s globstar
cd ~/**/2.Mathematics


Mouse can't click on Wayland ubuntu 17.10

Disabling Wayland must solve this issue. Similar question was answered here. Worked for me.

If you wish to do it permanently, edit
/etc/gdm3/custom.conf and uncomment the line:

#WaylandEnable=false

Save the file and then on reboot you will never see the cog asking for which session to use.


To solve the window decorator issue, simply run the following in the terminal or Alt+F2 and the window decoration will immediately disappear:

gconftool-2 -s -t string '/apps/compiz-1/plugins/decor/screen0/options/decoration_match' '!state=maxvert'

Or just as @joschi's answer suggest, you can do that graphically using the CCSM:


SSH : config file not used as I expected

This a good illustration that sometimes, a person's bug is another person's feature...

This behaviour of OpenSSH in 14.04 is actually a bug introduced in OpenSSH 6.6 (which is the version in Ubuntu 14.04) and fixed in 6.8 (see also the changelog). The correct way to do what you want is

Host bar baz
    Hostname %h.homesweethome.com

Host foo
    Hostname foo.homesweethome.com

Host foo bar baz *.homesweethome.com
    User foobar
    Port 2222

Alternatively, maybe canonicalisation is really what you want... For example

CanonicalizeHostname yes
CanonicalDomains homesweethome.com

Host *.homesweethome.com
    User foobar
    Port 2222

... could work for you. A difference with your current configuration is that if for example goo.homesweethome.com exists, ssh goo will try to connect to it.


How do you use `scanimage` to scan two sides of a document with an adf scanner?

Use Simple Scan (Comes pre-loaded) to scan the image, once you have done one side, simply flip it over then scan the other part.


The right command should be:

cd Downloads

Note that the first letter is capitalized. This also applies to other directory names in $HOME.

Desktop
Documents
Downloads
Dropbox
Music
Pictures
PlayOnLinux's virtual drives
Public
Templates
Videos


You can find the settings here:

Open TB
Click 'Edit'
Click 'Preferences'
Click 'Attachments' tab
You will see 'Content Type' listed (mine shows 'http' and 'https')
Under 'Action' select 'Use Other'
Locate the browser you want to use (usually in /usr/lib/)
Repeat for both 'Content Types'
'Action' should now read 'Use [your browsername]'
Close. You're all set.


Import error when running update manager

The modules logging and xml.dom come from python3.2-minimal and python3.2 respectively.

This should fix the problem:

sudo apt-get install --reinstall python3.2 python3.2-minimal


Should/How to edit file /usr/share/X11/xorg.conf.d/10-evdev.conf Disable Touchscreen

Edited file the file with

sudo nano /usr/share/X11/xorg.conf.d/10-evdev.conf

Changed MatchIsTouchscreen from "on" to "off"

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "off"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        EndSection

"ELAN touchscreen" is disabled and no longer detected in xinput list.


Python 3.2 will be available as python3.2, or possibly python3 depending on which version of Ubuntu you are using.

Significant parts of Ubuntu are written in python and you cannot change which version the python link points to without breaking the system. You can install extra versions, but you'll have to use a longer name to start them, eg python3.3, python2.6).

See this answer for more details.

The default python versions are:

Lucid/11.10        2.6.5    3.1.2
Precise/12.04      2.7.3    3.2.3
Quantal/12.10      2.7.3    3.2.3
Raring/13.04       2.7.4    3.3.1


Access files in Home directory from live mode

First, you mount partitions, not folders. If your home folder is on a system partition, you will need to access that system partition in order to access the home folder.

If the volumes are not displayed in the file manager, ready for you to click and have them mounted, then you will need to mount using the terminal. A lot of text follows for something that essentially is very simple. I however also want you to gain some understanding on how it works.

1 Identify your partition

List the partitions with the command sudo blkid. (also sudo fdisk -l can be used). You may see /dev/loop partitions. Ignore these. You are looking for partitions on disks. This will typically start with /dev/sd.. or /dev/nvme.... You will also recognize disk partitions because other information, such as the UUID, the LABEL, the file system (TYPE) etc is provided.

That is all the information you have got. You will need to recognize the partition you need. One important hint is that the partition containing your home folder will most likely be formatted in ext file system format, so you can eliminate any partitions that do not have TYPE="ext4".

Example

$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/nvme0n1p1: UUID="CD64-FBDE" TYPE="vfat" PARTUUID="0fjkf6a9-66c8-2d08-be7e-75c8f23d5411"
/dev/nvme0n1p2: UUID="a370dd86-3284-41a6-32f6-a7343cc43886" TYPE="ext4" PARTUUID="2e4d8754-5ceb-401a-ad7d-0349abb54725"
/dev/nvme0n1p3: UUID="ee3a9083-a324-4396-b432-8542f46e85c2" TYPE="ext4" PARTUUID="d59af1dd-fafb-521b-2c33-9563633a8163"
/dev/nvme0n1: PTUUID="7bad0580-36c7-4458-84a2-d54a2f3aadde" PTTYPE="gpt"

I have two partitions formatted as ext4. One will be my home, the other my separate home partition. At least, you will find one if you have a single system partition containing your system and your data. The partition is referred to by the /dev/... entry, but actually is more commonly referred to by its UUID.

2 Mount the partition

Use the mount command, which takes two arguments: the partition identifier (/dev/...) and a folder in the system where you will mount the partition: the mount point. You then be able to access the partition from the mount point.

The folder must exist. Typically, a folder /mnt will exist in a linux system by default. If not, create it first:

sudo mkdir /mnt

Mount a partition with a command such as:

sudo mount /dev/nvme0n1p3

Of course, substitute /dev/nvme0n1p3 by the device names of your system. Now, you will find the contents of the partition under /mnt ("Other Locations, Computer, mnt" in the default Ubuntu file manager).

IF you have multiple partitions, and the one you mounted is not the one you were looking for, then simply unmount it and mount another. Unmounting is done with the umount command. The single argument you need to provide can be the partition, or it can be the folder where the mount has happened:

sudo umount /mnt

Thus, if needed, unmount and explore further. You cannot do harm with these commands.

You are not restricted to mount on /mnt. You can mount on any existing folder in your system.


Japanese JIS keyboard layout has one key column more, compare to the US layout.
We get ろ on ~ the US keyboard layout, but it usu on the left of Shift_R on JIS layout. Be aware of your keyboard, don't change setting for the OS, unless you have both.

I have another interesting example, the mobile Japanese keyboard likewise 84 keys has some functions on the same key should be used with Fn or other modifier keys, so that Hankaku/Zenkaku key and Tilde key are at the same place (on the left of 1), that gives you strange result, I think.

To fit the Japanese keyboard layout to your particular keyboard layout,

sudo dpkg-reconfigure keyboard-configuration

Then, still you probably can't type some letters which on the last column of Japanese layout or you need to solve the puzzle which goes where,  If you are using US keyboard layout, you should set the layout to US or default.
Open Imput Method Configuration by System Settings > Text Entry > select Mozc and click 'wrench'
or im-config

You can set the toggle key combination here.

You can set what kind of input mode Roman/Kana on Mozc configuration, that is inside of Mozc engine.

Finally,
ろぬふあうえおやゆよわほへ
たていすかんなにらせ゛゜む
ちとしはきくまのりれけ
つさそひこみもねるめ
These are the letters when I pressed the keys from left to right, 1st row to 4th row.
Note: my mother tongue is Japanese, sorry about my strange English. And I hope you get it.


You can also do the following way ...

sudo nano /etc/ld.so.conf.d/skype.conf

copy and paste the following line in it

 /usr/lib/i386-linux-gnu/mesa/

and then run

 sudo ldconfig -v

This issue was mentioned in the release notes.

Bug #1155327 “skype crashed with SIGSEGV in malloc@plt()” : Bugs : “skype” package : Ubuntu


I downloaded the .zip file from git hub

https://github.com/Androxyde/Flashtool

My md5sum is

ad6674b9797e92264c431f61723e57fb Flashtool-master.zip

If you download from github and get the same md5um then I would say the zip from github is accurately downloaded.

If you then want to compair to what you have, extract both archives and compare them with the diff command

diff -r first_extraction second_sxtraction

changing first and second extraction to the location where you extracted the archives.


Now it's SOLVED: The path to the indicator-sound-service is wrong.

In my case this is in /usr/lib/indicator-sound-gtk2/indicator-sound-service
So we have to modify /usr/share/dbus-1/services/indicator-sound.service

If you look in the file, there is another path so the emptiness is normal.. Change the path (use root access) to gain write permission to the file.

sudo nano /usr/share/dbus-1/services/indicator-sound.service

and change the Exec path to /usr/lib/indicator-sound-gtk2/indicator-sound-service.


Bridging LAN and WIFI using netplan not working and killing AP

I vaguely remember running into the same issue about a year ago, and am sad to find out this is still a problem. In my working configuration:

I keep the default networkd as the renderer.
In Netplan config, treat wlan0 as ethernet, and don't configure AP at all.

network:
  ethernets:
    eth0:
      dhcp4: no
      optional: true
#  wifis:
    wlan0:
      dhcp4: no
      optional: true
  bridges:
    br0:
      dhcp4: yes
      dhcp6: no
      interfaces:
        - eth0
        - wlan0
      optional: true

I manually created wlan0.config for hostapd, and made a parameterised instance - systemctl enable hostapd@wlan0. The installation on 19.10 is configured so that it starts as soon as the interface becomes available for configuration.


Broadcom BCM43225 can't connect to my home wifi

For anybody reaching here. The solution was changing my router channel to a channel less than 11. Then, it works like a charm.


how to install an ubuntu server with everything that the ubuntu desktop has?

There is a meta package called ubuntu-desktop that contains all packages you need for the desktop.

Install it with:

sudo apt-get install ubuntu-desktop


Go to https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html and download the 64-bit Linux client from Oracle then perform the installation instructions. You will need to convert the RPM files to DEB files using alien and these Ubuntu instructions. Installation detail follows:

Download the desired Instant Client ZIP files. All installations require a Basic or Basic Light package.

Unzip the packages into a single directory such as /opt/oracle/instantclient_19_3 that is accessible to your application. For example:

cd /opt/oracle
unzip instantclient-basic-linux.x64-19.3.0.0.0dbru.zip

The various packages install into subdirectories of /usr/lib/oracle, /usr/include/oracle, and /usr/share/oracle.

Install the operating system libaio package. For example, in Ubuntu, do sudo apt update && sudo apt install libaio This is called libaio1 on some Linux distributions.

If Instant Client is the only Oracle Software installed on this system then update the runtime link path, for example:

sudo sh -c "echo /opt/oracle/instantclient_19_3 > \
      /etc/ld.so.conf.d/oracle-instantclient.conf"
  sudo ldconfig

Alternatively, set the LD_LIBRARY_PATH environment variable prior to running applications. For example:

export LD_LIBRARY_PATH=/opt/oracle/instantclient_19_3:$LD_LIBRARY_PATH

The variable can optionally be added to configuration files such as ~/.bash_profile and to application configuration files such as /etc/sysconfig/httpd.

If you intend to co-locate optional Oracle configuration files such as tnsnames.ora, sqlnet.ora, ldap.ora, or oraaccess.xml with Instant Client, put them in the network/admin subdirectory. This needs to be created for 12.2 and earlier, for example:

mkdir -p /opt/oracle/instantclient_12_2/network/admin

This is the default Oracle configuration directory for applications linked with this Instant Client.

Alternatively, Oracle configuration files can be put in another, accessible directory. Then set the environment variable TNS_ADMIN to that directory name.

To use binaries such as sqlplus from the SQL*Plus package, unzip the package to the same directory as the Basic package and then update your PATH environment variable, for example:

export PATH=/opt/oracle/instantclient_19_3:$PATH

Start your application.


Swap partition is not being swapped on automatically

You've changed the swap partition, and thus its UUID. That must be reflected in the file /etc/fstab:
Open a terminal and type
sudo nano /etc/fstab
Search for a line that looks like this:
UUID=7a6bcacc-80cc-43ab-a6f9-bba2ad700fd0  none  swap       sw       0       0

Replace that number after UUID with 94a8fc28-7164-44c2-abfa-1f0a3ce8eb4fso it looks like this:
UUID=94a8fc28-7164-44c2-abfa-1f0a3ce8eb4f  none  swap       sw       0       0

Save it by using CRTL+X and reboot.
If you've enabled hibernate, grub needs the actual resume uuid as well.


"E: Package 'gs' has no installation candidate" for mindtouch installation

Those instructions are very outdated. Mindtouch transitioned from an open source project to a commercial product several years ago.

You can download a free trial from the above link.

You can download the source of an older version from Mindtouch at SourcForege. Development of this version seems to have mostly stopped a few years ago, but some of the files have recent dates so maybe there has been some minor updating.


0 Back up all your data by booting from a LiveUSB and copy the data (on sda3 under /Users/YourName/ ) you want to preserve to an external HDD or USB flash drive

1 Install with an Ubuntu LiveUSB, following the official Ubuntu install directions

2 In the Installation Type screen of the installation you started in (2) above, choose the first option Install Ubuntu alongside them. Ubuntu's installer will guide you through resizing the partitions; sda3 is the one you should resize to make room for the root and the swap partitions.


Select file instead of searching in Ubuntu 20.04 "Open File" dialog

This is difficult to change, and would require changing the source code.
In Ubuntu, you mostly see GTK dialogs. These are the standard dialogs of the underlying GTK toolkit. Many programs, even programs based on a different toolkit such as QT, can and do use them.
The behavior in the file manager nautilus and in the GTK file dialogs has changed from type-ahead search, which matches the first letters of the filename to a search function that narrows down the list to names matching the search string. The latter is useful if you do not remember the correct first letters, and also in user cases where you have filenames starting with a date.
It is difficult to reverse this new direction the developers have taken. As you indicate, some developers publish a nautilus version where type-ahead is introduced again. The same, i.e., editing source code, would be required to change GTK dialogs as well.


Access framebuffer /dev/fb0 in AWS EC2 (Ubuntu Server)

I did some research earlier. The problem are linux-image-aws and linux-image-extra-aws packages. They don't have framebuffer driver in them.

Solution is to use linux-image-gke packages. Although you will lose AWS optimization (I heard it also makes your server a bit slow), but you will get framebuffer device.

To install them run apt install linux-image-4.4.0-1031-gke linux-image-extra-4.4.0-1031-gke.

Note: If you have both linux-image-4.4.0-1049-aws and linux-image-4.4.0-1031-gke installed, Linux will prefer linux-image-4.4.0-1049-aws because of higher version number. Make sure you purge those AWS packages after you installed GKE (Google Kubernetes Engine) packages.

Update for Ubuntu 18.04:

Things have changed a bit in Ubuntu 18.04. This will do the job now :)

sudo apt purge -y linux-image-aws linux-image-$(uname -r)
sudo apt install -y linux-image-gcp
sudo apt install -y linux-modules-extra-$(ls /boot/vmlinuz-4.15.0-*-gcp | grep -oP 'vmlinuz-\K.*'-gcp)
sudo apt-mark hold linux-image-gcp linux-image-$(ls /boot/vmlinuz-4.15.0-*-gcp | grep -oP 'vmlinuz-\K.*'-gcp) linux-modules-extra-$(ls /boot/vmlinuz-4.15.0-*-gcp | grep -oP 'vmlinuz-\K.*'-gcp)
sudo reboot


The Creation of Swap Space in Partition #9 of SCSI3 (0,0,0) (sda) Failed

If i understand correctly you made a partition of 25 GB to install Ubuntu.If you want to have a swap then you gonna need two partitions.One for swap and one for root(/).Mount the smaller,usually 4 Gb on linux-swap and the rest on root(/).


How to fix mouse cursor out of sync with VirtualBox Ubuntu Server 16.04.3 LTS VM?

I had the same problem, that the mouse pointer was offset running out of sync. My VirtualBox Ubuntu is running in Window Mode (not full-screen).

My solution:

Resizing the VirtualBox window
Then maximize the window


Not able to switch between applications?

OK, totally rewriting this because I didn't understand the question. You're saying that if Chrome is active, then

Alt-Tab to switch applications doesn't work
Clicking the Launcher icon for other items doesn't work

I have no idea, but just to further understand it, can you click the Desktop or another non-Chrome window to get out of Chrome? And does normal use of Alt-Tab & the Launcher return until you use Chrome again? Or do you have to quit Chrome?

I can understand that Chrome might intercept Alt-Tab; VirtualBox does this and I just have to click on something else to move the focus out of VirtualBox, but I can click on the Launcher and it works just fine. I don't understand how Chrome is interfering with the mouse outside of its window.


Ubuntu 18.04.1 LTS update does not work - no release file / GPG errors

Just remove your repository above from sources.list,

The repository 'cdrom://Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64

and try update and upgrade again your system.

Hope this helps.


How to fix GRUB on dual boot Windows 10 alongside Ubuntu?

Your corrupt partition table must have had a cause, and that cause might be related to your subsequent problem of a failed GRUB installation. For instance, if the disk is failing, that could affect both the partition table and the GRUB installation; or if the partition table appeared to be damaged because of inconsistent RAID configurations across your OSes, that could also affect GRUB installation. Unfortunately, it's impossible to tell, given the information you've provided, what the cause of the partition table trouble was, so I can't offer any solutions that would be more than shots in the dark. It's also possible that these issues are unrelated -- for instance, some other tool might have damaged the partition table, and that would be unlikely to have any effect on a later GRUB installation. Thus, my first recommendation is to be aware of this issue and alert to future partition table troubles. If a problem recurs, get help. You might also run a SMART test on the disk, just as a precautionary measure.

I don't see anything in the information you posted that really helps diagnose your GRUB problem, so that's also a shot-in-the-dark sort of situation. I can, however, suggest a possible way to get moving again:

Download the USB flash drive or CD-R version of my rEFInd boot manager.
Prepare a boot medium from same.
If you haven't done so already, disable Secure Boot on your computer.
Boot to rEFInd. With any luck, it will show options to boot Ubuntu.
Boot to Ubuntu using rEFInd. (If there are multiple Ubuntu boot options, try each one until one works or until you've exhausted all the options.)
If you can get Ubuntu booted, you can proceed with further diagnostics and/or attempt to install a boot loader. You can try to manually install GRUB or install the rEFInd Debian package or PPA.

If you continue to have problems, post back with details. (Edit your original question or create a new one.) Cut-and-pasted error messages, or screen shots of the same, may be helpful. The output of sudo parted -l may also be helpful.


Is There A Way To Fix These Graphical Bugs?

If it is happening in both OS's, are you customizing your settings for the graphics? If you are not customizing your settings, perhaps there is a setting that is default creating your issue. Are you using generic or proprietary drivers? Try changing drivers. Perhaps it is a hardware issue. Overheating can result in almost random errors on LSI circuits and practically every chip ever made. Saying the computer is old doesn't tell us what you're packing. If there is no physics processor and the game needs one, that is asking for trouble off the bat.

Edit: Response to Comment: Open up software update and hit settings. pop open the tab for drivers and see if you are using proprietary drivers.

This thread shows you how to check what your graphics card is:

How do I find out the model of my graphics card?


Will the first server be added as one of 5 nodes in OpenStack Autopilot?

If you're asking if the MAAS server counts as one of the 5 servers required to use Autopilot, you're correct.

1. You can't add maas as a node as far as I am aware.  Autopilot is meant to build the stack in an automated way, if you're capable of adding maas, you'll be doing it against the will of autopilot.  Additionally, your landscape server will not be used as a compute node either.  Autopilot does still require 2 servers having 2 network cards.

2. Openstack Installer 0.99.27 is in 16.04LTS, so you should be able to use it.  If you're building a test enviroment, go for it, but if you plan on taking it into production, I would either use 14.04, or wait for the full release.


What can a Beowulf cluster help process?

If you mean by a Beowolf cluster a MAAS cluster, you're on-topic at Ask Ubuntu.

There is a huge difference between multi-threaded and clustered computing. The y-cruncher algorithm is a multi-threaded algorithm and needs shared memory to be able to function so computing π using that algorithm is not easily done on a cluster.

Anything that can use clusterable algorithms. E.g. a bunch of Apache servers or MySQL Cluster will be "easily" scalable on a bunch of old hardware (for a certain definition of "easy").

If your "everyday computing" includes running a web farm: Yes!
If your "everyday computing" is just using office productivity: Not really...

VirtualBox will not help you: you need the opposite: a cluster OS and a lot of fine-tuning to have the disparate hardware work well together as clusters are normally built using new hardware with identical performance specifications.
It is easier to have identical/similar machines work together than a 33 MegaHertz 80386 with 1 MegaByte of RAM and a 2 GigaHertz dual-core Intel I3 with 2 GigaByte of RAM…


Postgres uninstall: "server.key has group or world access" error

Fixed by purging this package

sudo apt-get purge postgresql-common


How to stop Ubuntu from changing numlock state on boot?

For Ubuntu Gnome 18.04+
When you are at the login screen the user ID active is gdm (Gnome Desktop Manager). To change that profile login with your own user ID and use:

sudo -i
xhost +SI:localuser:gdm
su gdm -s /bin/bash
gsettings set org.gnome.settings-daemon.peripherals.keyboard numlock-state 'on'
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true

For a plethora of even more options:

How to enable numlock at boot time for login screen?

For Ubuntu Unity 16.04+
Install the the program numlockx:
$ sudo apt update && sudo apt install numlockx

$ numlockx -h
NumLockX 1.2
(C) 2000-2001 Lubos Lunak <l.lunak@kde.org>
(C) 2001      Oswald Buddenhagen <ossi@kde.org>

Usage: numlockx [on|off|toggle|status]
on     - turns NumLock on in X ( default )
off    - turns NumLock off in X
toggle - toggles the NumLock on and off in X
status - gets the NumLock status

Next step is to get it running during login screen:
$ locate 50-unity-greeter.conf
/usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf

$ sudo -H gedit /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf

At bottom of file add:
greeter-setup-script=/usr/bin/numlockx on

Save file and login again.

Catchall when everything fails
Install numlockx as show above. Then
$ sudo -H gedit /etc/rc.local

At bottom of file add:
/usr/bin/numlockx on

Save file and reboot.


E: The method driver /usr/lib/apt/methods/https could not be found

After looking at your sources.list, I still don't quite understand why apt is in need of https (maybe some additional sources in /etc/apt/sources.list.d?), but to get apt-transport-https installed you can do this:

sudo wget http://ubuntu.mirror.atratoip.net/ubuntu/pool/main/a/apt/apt-transport-https_0.9.7.7ubuntu5_$(dpkg-architecture -qDEB_HOST_ARCH).deb && sudo dpkg -i apt-transport-https_0.9.7.7ubuntu5_$(dpkg-architecture -qDEB_HOST_ARCH).deb

The dpkg-architecture command is used to determine the architecture of your system. You could also replace it with i386 or amd64.


Xrandr not detecting HDMI/Displayport inputs on Ubuntu 18.04. Default graphics renderer is also set to llvmpipe instead of intel

I'd suggest you'd install Ubuntu 20.04- knowing that you want to run ROS melodic - you could then install instead the Ubuntu 20 Version named:
ROS Noetic
That software has a different name for each Ubuntu Version. For Ubuntu 20.04 it is called ROS Noetic. So look it up here how to install it. Then you'd have your hardware supported and your ROS app.


No write access to SMB share of windows drive after upgrade to 11.10

Have you read http://tldp.org/HOWTO/SMB-HOWTO-8.html? It has several diagnostic steps that might help you.


I had the same issue:

pst007x@pst007x-Serval-Professional:~$ dpkg -l skype*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  skype          4.1.0.20.0-0 amd64        client for Skype VOIP and instant
ii  skype-bin      4.1.0.20.0-0 i386         client for Skype VOIP and instant
un  skype-common   <none>                    (no description available)
un  skype-mid      <none>                    (no description available)
un  skype4pidgin   <none>                    (no description available)
pst007x@pst007x-Serval-Professional:~$

I could not launch from the icon in the Unity bar after install, but could launch it from terminal... I recreated the Skype launcher, using a Menu editor, and all worked ok after that.... just a strange glitch... :-/


Ubuntu 32 bit or 64 bit on windows virtual pc on 64 bit windows 8?

You can install either Ubuntu 32-bit or Ubuntu 64-bit. It depends on the amount of memory that you are allocating to your virtual machine. If you are allocating 3GB or more memory to your virtual machine, then you should choose Ubuntu 64-bit, otherwise you may choose either one. The performance of Ubuntu 64-bit will be noticeably better than Ubuntu 32-bit if you have allocated 3GB or more of memory to the virtual machine. By the way it is recommended to allocate not more than half of the available memory in your system to the virtual machine.


How to remove flagged identical lines in text files

Use the commands in a terminal,
sed -n '/^%/p' fileA.txt | awk '{print substr($0,3)}' > tmp.txt
grep fileB.txt -vf tmp.txt > modified_file.txt
rm tmp.txt

The file modified_file.txt contains your desired results. you can use these commands in a shell script also.
How it works:

sed -n '/^%/p' fileA.txt output is, % CCC - 980
sed -n '/^%/p' fileA.txt | awk '{print substr($0,3)}' produces CCC - 980, which you want to remove. I have stored it in tmp.txt using redirection so that it can work with multiple lines.
grep fileB.txt -vf tmp.txt gives you the part of fileB that does not contained in tmp.txt. Finally stored it in modified_file.txt

Alternate smart method suggested by AvinashRaj:
awk -v var=$(awk '$1=="%"{print $2}' fileA.txt) '$1==var{next;}1' fileB.txt


Gimp Fails to Load raw file (NEF) after upgrade to 12.10

Removing gimp-ufraw and installing gimp-dcraw helps. However, dcraw is not as nice as ufraw because it doesn't have an interactive user interface.


Is it fine to remove the /opt/gitlab/ directory manually after removing the gitlab package from the system?

That directory is populated with gitlab-ce reconfigure command after installation and holds variable data, configurations related to gitlab-ce package.
The recommended process to uninstall it was

Remove services
 sudo gitlab-ctl uninstall

Clean any data generated by usage of the package
 sudo gitlab-ctl cleanse

You may also want to remove any accounts you configured. To do so
 sudo gitlab-ctl remove-accounts

Then remove the package using
 sudo dpkg -P gitlab-ce

Furthermore, gitlab-ce uses these directories (as described here)

/opt/gitlab holds application code for GitLab and its dependencies.
/var/opt/gitlab holds application data and configuration files that gitlab-ctl reconfigure writes to.
/etc/gitlab holds configuration files for omnibus-gitlab. These are the only files that you should ever have to edit manually.
/var/log/gitlab contains all log data generated by components of omnibus-gitlab.

So, First remove the package recommended way (Even if you need to reinstall it). You can then remove those data using rm safely.
Information found from omnibus-gitlab README page


Can I convert a dmg file to iso in terminal?

Follow the steps below.

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

sudo apt-get install dmg2img

Once installed, run the following command:

dmg2img <file_name>.dmg

That will convert the .dmg to ,img file in ISO format. Then just run

mv <file_name>.img <file_name>.iso


Download and burn to cd/dvd a software called [Boot-Repair] from sourceforge.net.  Boot your machine to [Boot-Repair disk] and wait for the screen that gives you 2 boxes you can check, check the box that says [recommended repair] and let the software do its MAGIC. When it is done you will reboot and you should be off and running again. This is a FREE software download and works very well.


How can you unhold (remove a hold on) a package?

You can use sudo apt-mark unhold package_name. The package is unheld and it returns a confirmation: Canceled hold on package_name..
To unhold all held packages you can use sudo apt-mark unhold $(apt-mark showhold).


Terminal And Python console isn't showing Bangla

Most terminals including gnome-terminal do not support Unicode shaping.

Try with konsole (KDE) or mlterm, each had implemented a shaping functionality.


How to choose OS when the arrow keys won't work in grub

The original poster, Sitati, reported that user42257's suggestion that he use the PgUP and PgDN keys worked for him in this situation.


According to what I believe is the readme for this driver, it should already be available in Ubuntu's repos. If it does not appear in the third-party drivers menu, the readme says to run

sudo apt-get install --reinstall bcmwl-kernel-source

And then reboot. Have you tried this?


Go to System Settings, then to Language Support. From there open the second tab which is named "Regional Formats". Then change the drop down bar's content from "Arabic" to the English language variant you like and you're all set.

Re-login for this to take effect


Why this is not available in Ubuntu SOftware centre?

Oracle's Java is not free (as in freedom).  Its source code is not public and is released under a proprietary license.  Software available in the core Ubuntu repositories is all free software.  You can read more about that here.

I would suggest installing OpenJDK (which is free), it should suit your needs.  You can find it in the software centre, or type sudo apt-get install openjdk-7-jre (add openjdk-7-jdk if you need to do Java development) into the terminal.

If you do need Oracle Java, you can install it as vinaykrsharma suggested by following the instructions here.


You must enable hardware virtualization in BIOS

Source


Times have certainly changed and now an up to date FFmpeg, including the version packaged with Xenial Xerus LTS,  will now easily encode ProRes files. The following will work well:

ffmpeg -i input.mp4 \
       -c:v prores -profile:v 3 \
       -c:a pcm_s16le \
       output.mov

The available -profile settings are as follows:

-profile 0 = Apple ProRes Proxy
-profile 1 = Apple ProRes LT
-profile 2 = Apple ProRes 422 for SD (lower bitrate)
-profile 3 = Apple ProRes HQ for HD (higher bitrate)

You can test your own copy of FFmpeg for ProRes capability as follows:

andrew@ilium~$ ffmpeg -encoders -hide_banner | grep -i prores
 VF.... prores               Apple ProRes
 VF.... prores_aw            Apple ProRes (codec prores)
 VFS... prores_ks            Apple ProRes (iCodec Pro) (codec prores)
andrew@ilium~$

The leading letters indicate:

Encoders:
 V..... = Video
 .F.... = Frame-level multithreading
 ..S... = Slice-level multithreading

For playback you should find that most of the major media players, examples being MPlayer, SMPlayer and VLC, will happily play these files...


If you don't participate in any mongodb cluster then your security settings in configuration file should be:

security:
#    keyFile: "/data/key/rs1.key"
    authorization: "enabled"


Scope settings - what does "list" type returns?

Ok i just figured it out, the Variant contains an integer, so one should use:

config["listname"].get_int();

And then do the rest in the code (according to values order in settings.ini)


Okay, I don't know if this qualifies as an answer, but I re-installed the system one more time and third time was the charm. Pipelight installed this time. I still don't know why it didn't install before, but the problem got solved anyway, so thanks to everyone who at least took a look at this question. And thanks to arielf for trying to help me make clearer questions, I'll try to improve on that next time :)


How to resolve the "GPT detected. Please create a BIOS-Boot partition" error when using boot-repair?

First you should check if booting the system as MBR/BIOS instead UEFI is really what you intended.

The following is a quote from Is it still possible to install Ubuntu to an external harddrive with UEFI? which is about several ways of setting up bootloaders and necessary partitions. Refer to the original answer if some of the instructions are unclear (it would have been very repetitive to explain almost the same thing in detail 3-4 times).

  Creating a BIOS Bootable Partition (BBP) for GRUB is a bit
  different:

  Install the grub-pc-bin package.
  Create a partition similar to the instructions above by resizing the root partition and set the bios_grub flag. Choose no
  filesystem and leave it unformatted.
  Edit the configuration file /etc/default/grub with administrative rights and add GRUB_DEVICE=/dev/sdb6 to the end. Replace /dev/sdb6
  with the acutal device name of your BBP. You can use the commandline
  editor nano to keep things simple.

  Install the GRUB MBR image to the BBP with:

grub-install --boot-directory /mnt/test/boot/ --target i386-pc $device

  You might want to remove or comment out the line in
  /etc/default/grub and add it to the actual installation.


Ubuntu16.10 Pc shutdown when headphones jack is plugged

I had to disable the power saving mode for Intel HD sounds

1) sudo gedit /etc/default/tlp

2) Then replace

SOUND_POWER_SAVE_ON_BAT=1

with

SOUND_POWER_SAVE_ON_BAT=0

3) sudo service tlp restart

P.S it will also works upto Ubuntu 18.04 (If it was caused by tlp)


How to apply master font and color to existing slides in LibreOffice Impress

Replacing the template-based formatting should work, i've tried it with LibreOffice 3.4.3. Without any direct formatting (using the text formatting toolbar or right-click and select any of the formatting options), the new template is applied globally. But if there's any direct formatting, the new template's formatting rules won't affect that content.

If the new template isn't applied to some slides, you should check if there's any direct formatting defined for those slides, and remove it using Menu Format -> Default Formatting.


kvm disabled by bios after installing nVidia driver

I got rid of these errors by enabling CPU virtualizaton in the BIOS.


How do I automatically change to a specific folder on login for an account with no home folder?

You can set the home folder for a user in /etc/passwd. Find the line with that user name and change the sixth entry which represents the absolute path to the directory where the user will be in when he log in.

See also: Understanding /etc/passwd File Format


How can I stop unattended-upgrades from rebooting the machine?

Verify that in the configuration file: /etc/apt/apt.conf.d/50unattended-upgrades you have set:

Unattended-Upgrade::Automatic-Reboot "false";

This will prevent the software to issue reboot also if needed by the upgrades.

Documentation


How can one change login screen resolution with propreitary graphic driver installed?

After searching I found the answer in launchpad. This is an issue with xorg.conf file actually. One can generate the xorg.conf file by using the command

sudo aticonfig --initial

if one is having the AMD driver. Else one may try

sudo nvidia-xconfig

if one has nvidia graphic driver.

Then one needs to open the xorg.conf file by running the below command,

sudo gedit /etc/X11/xorg.conf

In the command above one can use one's favorite text editor instead of gedit. In the xorg.conf file one must edit the screen section which is this:

Section "Screen"
 Identifier "aticonfig-Screen[0]-0"
 Device "aticonfig-Device[0]-0"
 Monitor "aticonfig-Monitor[0]-0"
 DefaultDepth 24
 SubSection "Display"
  Viewport 0 0
  Depth 24
 EndSubSection
EndSection

To something like this:

Section "Screen"
 Identifier "aticonfig-Screen[0]-0"
 Device "aticonfig-Device[0]-0"
 Monitor "aticonfig-Monitor[0]-0"
 DefaultDepth 24
 SubSection "Display"
  Viewport 0 0
  Depth 24
  Modes "1366x768"
 EndSubSection
EndSection

One can give whichever resolution is compatible with one's monitor after Modes instead of 1366x768. This solves the problem.
Credits to this answer here from launchpad.


Changing the value in the ~/.dosbox/dosbox-0.74.conf from

core=auto

to

core=normal

Worked for me and everything seems to run fine now. I've only run a handful of games but so far it seems to be working well.


Make sure you set the permission 0400 on the .pem file.

1) Open a terminal.
2) go to the folder where the .pem file is.
3) type:

chmod 0400 pemFileName.pem


Ubuntu not finishing installing after reboot from windows installer

Had this exact issue (64 bit Windows etc.). Found the fix here: http://ubuntu-with-wubi.blogspot.com/2011/01/wubildr-wubildrmbr-and-grldr.html . In short, just copy all the wubildr files from the C:\ubuntu\winboot folder and paste into the root of your C drive. In my case, wubildr.mbr still existed in C; I decided not to overwrite. Everything else was missing. Reboot, and everything should be back to normal.


How to make Ubuntu 12.04 Server bootable again?

I'm not familiar if Kali Linux is using grub2, but try to edit the /boot/grub/grub.cfg after booting up your Kali Linux. (older version of grub using /boot/grub/menu.lst as far as i could remember) . Adding the following menuentry to chainload your original bootloader in your 1st hard driver.

menuentry 'Ubuntu 12.04 Boot' {
    set root='(hd0,1)'
    chainloader +1
}

root should point to where your /boot (if not separated, /) filesystem of your Ubuntu 12.04 server locates. (hd0,1) means first hard drive, 1st partition. Adjust it to fit your actual partitioning case.

P.S.: a little bootstrap background:

your case before change

  BIOS -> first hard driver -> MBR -> active partition (Ubuntu parition) -> grub installed in Ubuntu

after change

  BIOS-> first hard driver -> MBR -> active partition (Kali parition) -> grub installed in Kali


Kubuntu upgrade from 15.10 to 16.04 failed

There is a much simpler way to achieve the upgrade:

1st goto -> Software Sources -> Updates

There is a field that allows the system to check for new versions:
LTS only / any / never. Select "any" LTS will only be available with 16.04.1 Just remember to set it back to LTs before Oct.2016 if it's not in your nature to go in sync with every new release of (K)Ubuntu.

Then open the update-manager from the menu. After you have checked for updates, it will inform you about the availibility of a system-upgrade.

It's always recommended to read the Release-Notes beforehand for "Known issues". You find them in 7. Further information. It may also be a good idea to look at the Ubuntu-RN as this gives the underlying system, like drivers.

In case you are not certain if your sources.list is messed up right now:

You can easily reset the sources-list to it's origin without touching it with editor, as this was identified mainly to be a cause of errors.

kdesudo software-properties-kde

This will raise a GUI-window, with a reset-button in the left-bottom corner(+ other option). What does this button? It retrieves the most current list of standard-sources via Internet connection from Canonical.

As in the log-list you have offered the term vivid appears, you are requesting an impossible solution. Vivid is not on the standard servers as it is EOL (End of life cycle).


Normally if you check "Available to all users" for a connection, NetworkManager brings it up when the system boots, no login required. That would solve the login problem.

You can also let your roommate use the Guest account.

For blanking the screen, see Ubuntu 12.10 "Turn screen off when inactive for: Never" still turns off


How can I resolve x11 problem with Putty if I have this error? PuTTY X11 proxy: Unsupported authorisation protocol

I was able to finally figure out a solution. The problem seems to have been with the .Xauthority file. The owner of the file was root (see below).

-rw-------  1 root   root      124 May 13 18:19 .Xauthority
-rw-------  2 ubuntu ubuntu      0 May 14 19:56 .Xauthority-c
-rw-------  2 ubuntu ubuntu      0 May 14 19:56 .Xauthority-l

I tried to delete the file and restart xauth and ssh but that didn't work so I removed xauth entirely using sudo apt-get purge xauth.
Then I deleted all of the .Xauthority files in my home directory. Then I reinstalled xauth, again using sudo apt-get install xauth. The new .Xauthority file was owned by ubuntu.

-rw-------  1 ubuntu ubuntu    100 May 14 20:27 .Xauthority

I ended up testing Putty with the X display location of :localhost.0 as well as :0.0 but it didn't seem to matter since both worked.
I then tested with xclock & and it popped right up, finally.


How to edit the /etc/libvirt/libvirt.conf file

Edit the file: sudo vim /etc/libvirt/libvirt.conf.
Navigate to the desired text using your arrow keys.
Press i to go into insert mode, and edit the configuration.
When done editing, press ESC and save the file by entering :wq

After saving the file, make sure to either restart libvirtd, or reboot your system.

I believe what you're looking to change is the line #uri_default = "qemu:///system". Uncomment that line first, then replace "qemu" by "xen" so that the whole line should read uri_default = "xen:///system".

Note: It is always a good idea to take backups of configuration files before editing. In this case, sudo cp /etc/libvirt/libvirt.conf /etc/libvirt/libvirt.conf.bkp should do the trick, should you ever need to recover that file.

If you're new to Linux, here's a good tutorial on vim.


If you want to test out an old version of Cairo, you can build it in a temporary prefix in your home directory.

First of all, make sure you've got Cairo's build dependencies installed.  You can do this with the following command:

sudo apt-get build-dep cairo

Now download and unpack the old version of Cairo:

wget http://cairographics.org/releases/cairo-1.8.10.tar.gz
tar xzf cairo-1.8.10.tar.gz
cd cairo-1.8.10

Now you want to build Cairo into a temporary prefix.  I've used ~/prefix for this on a few occasions, but you can use any directory.

./configure --prefix=$HOME/prefix
make
make install

Now you need to make your own software use this version of Cairo.  If the software uses pkg-config to locate its dependencies, it should only be necessary to set the following environment variable:

export PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig

If it isn't using pkg-config, you might need to adjust CFLAGS to include -I$HOME/prefix/include and LDFLAGS to include -L$HOME/prefix/lib.

Finally, to run your program using the custom version of Cairo you will need to configure the dynamic linker so it looks for shared libraries in your temporary prefix:

export LD_LIBRARY_PATH=$HOME/prefix/lib

Once that is set, you can verify that your program is linking against your copy of Cairo using ldd.  If that looks okay, you're all done.

Cleaning Up

Once you're done with this temporary install, cleaning up is pretty easy.  Just reset the environment variables and remove the temporary install prefix:

unset LD_LIBRARY_PATH
unset PKG_CONFIG_PATH
rm -rf $HOME/prefix

You may need to reconfigure/rebuild your program after doing this to make it use the system Cairo again.


C/C++ Netbeans LInux --- Build Host not Connected

Wait for Netbeans 11.2 or may be later... https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+11.2

Netbeans has not c++ support after moving to Apache Foundation.


Installation of GRUB in MBR, Windows 10 not scanning is problem

The best way is probably to install Lubuntu and then install and run boot-repair. Instructions for installation and use are here


Quick question about users in my computer

All linux systems have a root user; that is the user responsible for starting all kind of services.

In Debian based systems (like Ubuntu is) root itself disabled and we use a "sudo" system where a normal user gets elevated permissions by entering the admin password.

You can see the root prompt when you enter with your admin user:

sudo su

and the admin password for your user. Example:

rinzwind@schijfwereld:~$ sudo su
[sudo] password for rinzwind:
root@schijfwereld:/home/rinzwind#

Mind you: using it is discouraged; if you use it to access nautilus it is possible to break your system since some files depend on being owned by your user (and not root) and can be changed to root when changing the file.


How to get the hostname using  terminal command-line?

Assuming you have a local DNS server set up, dig should do

dig +short -x 123.456.789.12

(Yes, that's not a valid IP, it's a Hollywood IP)


The facility to take a screenshot of an area only is already built in with the combination Shift+PrtScrn. With Trusty Tahr see under:

System Settings --> Keyboard --> Shortcuts --> Screenshots

And I demonstrate this in the following screenshot:

Directions are available on this screen, at the base, to disable or modify the keys as you wish...


Run this command from a terminal:
gsettings set org.gnome.desktop.background show-desktop-icons false

Or to do it with GUI open dconf-editor and go to org -> gnome -> desktop -> background and uncheck "show-desktop-icons."


How to lock Ubuntu login screen after a certain number of unsuccessful attempts?

See the command pam_tally2  From the link:

EXAMPLES

   Add the following line to /etc/pam.d/login to lock the account after 4
   failed logins. Root account will be locked as well. The accounts will
   be automatically unlocked after 20 minutes. The module does not have to
   be called in the account phase because the login calls pam_setcred(3)
   correctly.

       auth     required       pam_securetty.so
       auth     required       pam_tally2.so deny=4 even_deny_root unlock_time=1200
       auth     required       pam_env.so
       auth     required       pam_unix.so
       auth     required       pam_nologin.so
       account  required       pam_unix.so
       password required       pam_unix.so
       session  required       pam_limits.so
       session  required       pam_unix.so
       session  required       pam_lastlog.so nowtmp
       session  optional       pam_mail.so standard

The command

pam_tally2 --user {user}

where {user} is a user will show how many failures have been logged.

The command

pam_tally2 --user {user} --reset

will reset the tally for {user}.

Alternative would be fail2ban but that needs installing. It is in USC so sudo apt-get install fail2ban will install it.


Salem's comment is correct. Upstart has job configurations at /etc/init. start on started network-manager is also a reasonable choice.

You might also need to put respawn stanza in case ping exits for some reason. Adding stop on stopping network-manager might also be reasonable so ping will exit at shutdown.

Complete script might looks like this:

start on started network-manager
stop on stopping network-manager
respawn
exec ping -i 30 192.168.1.1

and would be placed at /etc/init/keep-alive.conf.


According to the Changes file included in the source tarball, the KML feature that you need is available since exiftool 9.41:

  Nov. 16, 2013 - Version 9.41

  Added the ability to use multiple group qualifiers on tag names when writing
  and copying (ie. "-QuickTime:Time:All=now")
  Added ability to geotag from Google Location Services KML files
  Added a new Pentax LensType (thanks Louis Granboulan)
  Added a new Canon LensType (thanks David Monro)
  Added a new Sony LensType2 (thanks Jos Roost)
  Decode a bunch more Nikon, Canon, Sony and FujiFilm WhiteBalance tags
  (thanks LibRaw)
  Extract information from the new Pentax APP7 segment

Unless you absolutely need a feature only present in a version > 9.41, your best option is to download the debian package of the 14.04 (Trusty) archive (just select the right mirror for your location):

http://packages.ubuntu.com/trusty/all/libimage-exiftool-perl/download

Then open a terminal with Ctrl+Alt+t and go to the folder where you've just downloaded libimage-exiftool-perl_9.46-1_all.deb and type:

sudo dpkg -i libimage-exiftool-perl_9.46-1_all.deb

Note: It's possible to install this package on Ubuntu 13.10 because the only dependency is on perl (which is obviously installed with Ubuntu 13.10)


Since I have already installed this package , I run this command:

apt show macaulay2

And its output is:

Package: macaulay2
Version: 1.9.2
Status: install ok installed
Priority: extra
Section: math
Maintainer: Daniel R. Grayson <dan@math.uiuc.edu>
Installed-Size: 65.2 MB
Depends: macaulay2-common (= 1.9.2), libblas3, libc6, libgc1c2, libgcc1, libgdbm3, liblapack3, libmpfr4, libreadline7, libxml2
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: a software system for algebraic geometry research
 Macaulay 2 is a software system for algebraic geometry research, written by
 Daniel R. Grayson and Michael E. Stillman.  Based on Groebner bases, it
 provides algorithms for computing homological invariants of rings and
 modules.
 .
 Home page: http://www.math.uiuc.edu/Macaulay2/.
 .
 This package contains the architecture dependent portion of Macaulay2.

As you see macaulay2-common (= 1.9.2), libblas3, libc6, libgc1c2, libgcc1, libgdbm3, liblapack3, libmpfr4, libreadline7, libxml2 packages are required to macaulay2 has been installed successfully.

So you need to install depends libraries as well before you install macaulay2:

sudo apt update
sudo apt install libblas3 libc6 libgc1c2 libgcc1 libgdbm3 liblapack3 libmpfr4 libreadline6 libxml2

Then you need to download macaulay2 and macaulay2-common from its official site.

So install macaulay2-common before, and then try to install macaulay2:

sudo dpkg -i Macaulay2-1.9.2-common.deb
sudo dpkg -i Macaulay2-1.9.2-amd64-Linux-Ubuntu-16.04.deb

And for test it you can type M2 in your shell and then type 2+2

M2
Macaulay2, version 1.9.2
with packages: ConwayPolynomials, Elimination, IntegralClosure, LLLBases,
               PrimaryDecomposition, ReesAlgebra, TangentCone

i1 : 2+2

o1 = 4


unable to complete updating process after first install

As my look, it's got kernel panic. You may try following steps:

Restart your computer with the hotkeys combination Ctrl+Alt+del.

Before Ubuntu loading screen displays (the purple one), press Shift to show Grub loader.

And then select Previous Linux versions as in the following figure.

After it is up, launch Terminal Ctrl+Alt+T, enter the commands

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

Restart Ubuntu


First of all you need to install CompizConfig Settings Manager from the Software Centre. Once you've done that then launch it, and find the Enhanced Zoom Desktop plugin.

Here you need to enable the Zoom In and Zoom Out mouse shortcuts. To get the same behaviour as in 10.10 then set Zoom In to Button4 and Zoom Out to Button5.

Be aware that the Unity panel and launcher are not zoomable (this is probably why this functionality was disabled by default). Also the panel shadow may get in the way.


No swap after moving/resizing partitions

In a terminal, run the command

sudo blkid

This command is used to locate/print block device attributes.
Then read the file /etc/fstab with the command cat /etc/fstab. You are looking for an entry denoting your swap partition, if it isn't there then

sudo gedit /etc/fstab

and add a line at the end of fstab to automount your swap partition. It will read as follows:

UUID=<enter here the UUID for your /dev/sda1 device> none swap sw

Save the fstab file and then reboot.


It sounds like your usb drive may have bad blocks, so many bad blocks that the kernel is forcing a read-only mount. To check whether this is true, check the kernel message buffer with sudo dmesg and look for signs such as Volume was not properly unmounted. Some data may be corrupted. Please run fsck or Input/Output error, and most importantly, Filesystem has been set read-only. If this is the case, it may be likely that there is not save (i.e. your drive is dying), however you could try the below to squeeze some life back out of it (it may not work though).

I had this problem once with a dying SD card of mine. You could try creating an entirely new partition table (not just reformat) and then reformat.

To create an entirely new partition table (this will destroy all data on the drive), run fdisk /dev/path/to/device (you want the device itself and not an individual partition -- in your case it would look something like like fdisk /dev/sdc and NOT /dev/sdc1).

At the fdisk prompt,

type o for new partition table, then
n for new partition (and accept all the defaults),
t then c to change partition type to one suitable for a FAT filesystem
then w to write changes to disk

At this point you should have a device with a new partition (something like /dev/sdc1: you can check with lsblk. Try and format that partition. Best of luck.


You can Try the this:

Open VLC media Player
In the Menu > Media choose Open(Advanced)...

In the Open Media window, click in Show more options and Play another media synchronously (extra audio file,...)

In the "File Selection" field add your mkv file, and in the "Extra media" field browse and add your ac3 file.

Click and play, and finally go to Menu > Audio > Audio Track and choose The track eg:

Hope this will be helpful.

Regards.


Cannot install virtualbox extension pack

it's a package bug, fix to be released shortly:
https://bugs.launchpad.net/ubuntu/+source/virtualbox-ext-pack/+bug/1605799

just wait a few days, update and try again.


The -s switch is for serial numbers not devices ID. The correct way is using adb devices then get the list of devices and from there you select the serial number you want to manipulate:

$ adb devices
List of devices attached
emulator-5554  device
emulator-5556  device
emulator-5558  device

$ adb -s emulator-5556 install helloWorld.apk

Source http://developer.android.com/tools/help/adb.html#commandsummary


“the disk drive for /dev/mapper/cryptswap1 is not ready yet or not present”

Try this if on 12.04, probably work for other distros too. Already answered here:

"Disk drive for dev/mapper/cryptswap 1 is not ready"

You could also look here:

http://punygeek.blogspot.nl/2012/10/ubuntu-1204-how-to-solve-disk-drive-for.html


Stylus eraser not distinguished from pen tip

I had the same.
I dont know if this is the right way to fix. I appended:

Option "Button3" "2"

to /usr/share/X11/xorg.conf.d/50-wacom.conf,
and then xsetwacom set "Serial Wacom Tablet eraser" button 1 3.


Error "undefined reference to xercesc_2_7"

It's actually failing to link to the Xerces library. You need to tell it what to look for with the -l argument and where to look with -L.

g++ -g -Wall -pedantic -L/usr/lib -o xercesTest xercesTest.cpp -lxerces-c

Obviously you also need the library present:

sudo apt-get install libxerces-c-dev


Now this is strange, because since Karmic the /etc/cron.d/anacron has looked like this:

# /etc/cron.d/anacron: crontab entries for the anacron package

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

#30 7    * * *   root   test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null
30 7    * * *   root    start -q anacron || :

as the job was moved to upstart.

Reinstalling anacron should then do the job (back up your existing configuration first of course).


Problems installing packages from downloaded files using terminal

You'll probably need to make the configure file executable - open a terminal, cd to the extracted folder and run the following and see how you get on:

sudo chmod a+x configure


Auto-change in brightness after reboot Ubuntu 13.10

you should have a look at this thread:

Brightness is reset to Maximum on every Restart

i used the following in a startup script, but that's on an imac:
echo 8 > /sys/class/backlight/acpi_video0/brightness

again, have a look at the thread above.  lots of advice, something should work for you.


Can I create a keyboard shortcut to kicking on my WiFi hotspot?

First step would be to create scripts to connect and disconnect WiFi hotspot. See this  Q&A for options: How to connect to WiFi from the command line?

To see list of available WiFi hotspots ()

nmcli d wifi list

Sample Script to connect:

#!/bin/bash
nmcli d connect <WifiInterface>

Sample Script to disconnect:

#!/bin/bash
nmcli d disconnect <WifiInterface>

Marks the scripts as executable with chmod:

sudo chmod a+x /path/to/script-name

Assign shortcut keys to scripts: How do I setup keyboard macros?

NOTE: Have your password automatically saved with your WiFi profile so it doesn't have to be reentered every time it is started up.


Need a simple, foolproof remote admin for Ubuntu Server

If you want a web (browser) based solution, try webmin.

May be a bit of an overkill, but lower on resources then VNC.

See also : https://wiki.ubuntu.com/webmin

If you want a VNC server, I advise FreeNX, it is by far the fastest VNC server/client.


How can I upload package for several ubuntu versions to Launchpad automatically?

I think you should look at this question that I asked, and got answered:

PPA & Packaging: Having versions of packages for multiple distros

You'd have to package multiple times to get each version of Ubuntu, however you can upload a package for one version, then copy it over to each other version.  For instance, I build packages for Lucid, however the same package is compatible with Maverick and later.  As such, using the instructions in the aforementioned link, I copy it over to Maverick and Natty within the PPA, and the system then copies/builds it in the background and then publishes the data to the PPA when its done copying.


Can't get my wireless to work on Toshiba-Satellite-C70D-B

Disable Secure Boot in BIOS and Wi-Fi will work.

See this answer for explanation.


According to the Xmodmap Manual, when you want to swap or change modifier keys you need to remove & clear their ties to their original keycodes and modifier groups.  Then after assigning them to a new keycode you must also assign them to a new, unique group.

It looks like the problem is that you've assigned two different modifiers to the same key: [ISO_Level3_shift] & [Mode_switch].  And you've also assigned them to the same modifier group.  The effect of assigning them to the same group is that: pressing one of them, activates/sends them both to the system.

[ISO_Level3_shift] & [Mode_switch] are not synonymous.  Each of these keys is meant to provide access to a unique layer/level of the keyboard.  And when pressed together they can access even higher levels if your keyboard supports them.

Another potential complication is that on virtually all systems Xmodmap is running on top of xkb (which defines certain aspects of the underlying virtual keyboard).

[Mode_switch] is synonymous with [AltGr] to Xmodmap providing access to level 2- that would be the second set of [q] & [Q] in your example.  Whereas [ISO_Level3_shift] provides access to level three- the [ä] & [Ä] in your example.

But since both keys share the same modifier group in your example they are both being pressed which is probably trying to access your highest level; but since there seems to be an error* you are probably either not getting any output, or some unexpected output coming from the underlying xkb.

Basically you can fix this by changing your .xmodmap file.  Just assign [Level3_shift] & [Mode_switch] to separate keys and separate modifier groups.  Or, actually I would just recommend that you just remove the reference to Mode_switch altogether.  I have found it to behave rather oddly; the 3rd level shift key seems to behave more consistently and reliably.

*-your second "adiaeresi" (sic.) is missing the final [s] so it wouldn't produce any character.

I know this rather confusing and convoluted for no apparent reason, plus this thread is old.  But hopefully someone will find my explanation useful at some point!


rsyslog Disable $RepeatedMsgReduction for specific filter

Edit /etc/rsyslog.conf

and change RepeatedMsgReduction from on to off.


Shell script error to check if file exists

I made a few changes to your script:

# !/bin/bash although it works is unconventional. Use #!/bin/bash instead.
Filename is one word but often we think it is two. Consequently it was spelled differently as file-name and file_name
Cosmetically lines between if -> else -> fi should be indented for greater readability. It still works vertically aligned it's just easier to read when indented.
Extra words in Enter the name of the file can be shortened to Enter filename to make programs shorter and faster. This also makes it quicker for people to read instructions.

#!/bin/bash

echo -e "Enter filename: \c"
read filename

if [ -e "$filename" ]
then
    echo "$filename found"
else
    echo "$filename not found"
fi


/etc/sysctl.conf doesn't persist after reboot

The answer from Gsus above also solved my problem.

/usr/lib/pm-utils/power.d/laptop-mode writes values dirty_ratio=10 dirty_background_ratio=5 writeback_centisecs=500 after sysctl processed the files in /etc/sysctl.d.

But I'm feeling not so comfortable with commenting out a line in a pm script.

Because I am running on a desktop system and being aware that I don't need the dirty_* changes from above, I tried moving /usr/lib/pm-utils/power.d/laptop-mode to another location. The pm utils didn't complain.

So a possiblity would be to divert the file, so that an update of the package won't recreate it.

sudo dpkg-divert --add --rename --divert /usr/lib/pm-utils/power.d/laptop-mode /usr/lib/pm-utils/laptop-mode.diverted

sudo mv /usr/lib/pm-utils/power.d/laptop-mode /usr/lib/pm-utils/laptop-mode.diverted

You should only do this if you want to adapt the parameters dirty_ratio dirty_background_ratio writeback_centisecs manually.

For the power management utils it would be clearer when they created a file in /etc/sysctl.d to better understand what is going on.


apt-get remove with wildcard removed way more than expected. why?

The command you want is sudo apt-get remove '^k3b.*', because:

You need .* to match any character, any number of times
You need ^ to match the start of the string
You need to quote the regex to prevent bash from interpreting * as a wildcard

(This answer completes and summarizes previous info provided by qbi and Flimm)


ubi-partman failed with exit code 10 - ubuntu 18.04

Do the following (for beginners):

I assume you already have a flash usb with ubuntu .iso

Boot your usb on try ubuntu
Ubuntu Software  > install Gparted
Open gparted, right click on you desired partition to install Ubuntu > new >  New Size : 200 MiB; filw system: fat32; > Add ; Something like this should be done:

Right click on EFI partition just created, Manage flags > boot
Apply changes on gparted then exit gparted
Install Ubuntu, when appears where to install choose something else>
double click on efi partition, choose EFI
Double click on desired partition to install ubuntu, choose ext4, mount point "/"
Install


Recovery Partition in Windows 8 hogging space

In the Windows 7 era, pre-installed versions of Windows typically came with programs to create a set of recovery DVDs. These could then take the place of the recovery partition. I don't know offhand if Windows 8 installations come with similar tools. (I'd expect them to use USB flash drives today.) You could look for such a thing. If it exists, use it, and it will then be (relatively) safe to remove the recovery partition.

In Linux, partitions are mounted to particular directories. For instance, your main Windows partition might be mounted to /windows. In this scheme, deleting files in Windows will make space available in Ubuntu, but only under /windows. You don't normally install programs there, but you might be able to use that space for storing user files. Also, there's a caveat: For native Linux use, NTFS is slow and lacks features that Linux requires for some purposes. Furthermore, Linux includes no good NTFS recovery tools (ntfsfix does only the most basic checks and flags the partition as needing attention in Windows). Thus, if you want to use space exclusively in Linux, or for tasks such as holding additional Linux programs, you've got to resize your partitions, shrinking the Windows partition(s) and giving space to the Linux partition(s). You'll probably have to use a Linux live CD/USB for this task, since GParted won't let you resize a partition that's in use.

Also, if you delete the Windows recovery partition, its space will be unusable unless and until you resize partition(s) to fill its space, or create a new partition in its place.

Finally, note that resizing partitions is inherently dangerous. This is especially true if you change the start point of a partition. You should back up any important data from a partition before you attempt to resize it.


Take a look at this AMD GPU Coolness page:

  the assumption that aticonfig --pplib-cmd "set fanspeed 1 85" will set the fan on the second GPU is incorrect. This would set a - hypothetical second fan on the same GPU. Rather the selection of GPUs has to be done via the DISPLAY environment variable, where a display of :0.0 would refer to the first configured GPU, and :0.1 to the second and so on.

You may want to try the following to set the second display card fan speed:

DISPLAY=0.1 aticonfig --pplib-cmd 'set fanspeed 0 31'


How to disable resize window on its right side?

Resizing a window by dragging its side is disabled if the window is perfectly aligned to the  edge of the screen. So with some more precise placement of your window, you will achieve the effect you want. You just need to "snap" your window to the right edge.

Try it as following: click and hold the mouse button on the title bar, and drag your window to the right. When it touches the edge of the screen, it will "resist" a little bit. If you continue the drag, the window will go past the screen. If the mouse cursor approaches the edge, an orange highlight will appear, indicating that the winow will be tiled when released.

In your case, release the mouse button  at the point where it resists a bit. Now, the window is snapped to the right edge, and it will work like you want.

The same effect happens when you tile the window to the right half, or full screen.


What Shotwell is meant to do in this case, is to auto-recognize them (not importing again) as soon as you have moved them somewhere under the directory where it copies the photos during import.  But I think you have to enable the auto-import feature for this to work.  Look in the Preferences, under "Library Location" there's also a check box that needs to be checked: "Watch library directory for new files".
Currently these photos are still in the database (hence the "duplicate" that does not allow it to re-import) but the file location has changed so they go "missing" under Shotwell.  Did you move them to the library defined under Preferences (or a subfolder underneath)?


Installing 14.04.1-first time user. What is Install Type window for-to format and select partition, or to create swap area?

Swap space is essentially disk space that gets used as RAM when your computer is running low on memory.

It's not essential to have swap space, but you could run into problems if you don't have any, and most of your RAM is being used.

Generally, unless you don't have a reason not to, you should create swap space. Follow this guide for choosing the amount - as a rule of thumb, create at least as much swap as you have RAM.

It doesn't matter if you do it before or after the installation. However, if you plan to do it after the install, be sure to leave enough space to create the swap partition - otherwise, you'll have to shrink your current partition from a live USB/CD.


Firefox stopped playing videos in Ubuntu 20.04

So the problem sort of miraculously went away after copious amounts of pulseaudio -k at the terminal.  After doing that a dozen or so times, the problem almost disappeared; now when I see a video start to spin, I use that same command and the problem goes away.


So the status of touch on laptops is that Ubuntu ships with hardcoded gestures in 14.04.

I've disabled the gestures as described in this post: Disable unity gestures. But it requires building unity.