How to right-align widgets in panel in Kubuntu 11.10?

KDE Plasma desktop

The KDE panel and the widgets are plasmoids or plasma widgets. More of the KDE plasma: http://userbase.kde.org/Plasma .

How to manage the KDE plasma panel: http://userbase.kde.org/Plasma/Panels .

Probably

Probably you have removed the "Task Manager". More : http://userbase.kde.org/Plasma/Tasks

You could add it back (KDE userbase):

  To place a widget in the panel first open the Panel Toolbox and from
  there open the Widget Explorer (click Add Widgets), locate the widget
  you wish to add and drag it to the desired position in the Panel.

You could move plasmoids: Open the Panel Toolbox and move mouse cursor over the widget. The cursor should change to the "compas rose". Move the widget to the right place.

Same from the KDE userbase:

  The panel can then be configured by clicking on the toolbox located on
  the right for horizontal or bottom for vertical panel. At that point,
  the panel will be in configuration mode. Panel configuration may also
  be accessed via the context (right click) menu in the panel.

  Widgets in the panel can be sorted by dragging them when in
  configuration mode.

New default panel (KDE userbase):

  To add a new panel either click on the desktop toolbox button and
  select Add Panel or open the context (right click) menu on the desktop
  and select Add Panel from the menu.

  If more than one kind of Panel is installed, you will be able to
  select between them to choose what sort of Panel you would prefer. By
  default, two Panel types are available: Default Panel, which creates a
  Panel containing all of the default widgets (launcher, pager, tasks,
  system tray, clock, etc.), and Blank Panel, which adds an empty Panel
  without any pre-configured widgets in it.


How to find only specific key word in this zcat loop?

The zgrep command is very useful for grepping in compressed files, and avoids your need to pipe zcat to grep. You also don't need to use the for loop to create a list of files by globbing (shell pattern matching).

zgrep U2779897722719715411 *.log.gz >> sara.log

That command will output the filename and the line containing U2779897722719715411 separated by a : character.

If you don't want the filename prefix, you can use the -h option to zgrep:

zgrep -h U2779897722719715411 *.log.gz >> sara.log

This can also be achieved with a loop, but avoid using ls, and carry out the redirection to the file after the loop completes:

for i in *.log.gz ; do zgrep U2779897722719715411 "$i" ; done >> sara.log

Alternatively if you only want the filename of files that contain that user string U2779897722719715411, you can use the -l option to zgrep in either of the above commands:

zgrep -l U2779897722719715411 *.log.gz >> sara.log

or

for i in *.log.gz ; do zgrep -l U2779897722719715411 "$i" ; done >> sara.log


Ubuntu Not Starting - Urgent Help Required

Press the 3 keys:  ctrl+alt+F1 : it will switch to a login screen (or not depending when the boot stops: then see the 2nd part)
Type your login and password : it will open a terminal
in the terminal, type sudo apt-get install libpam-smbpassword
Press ctrl+alt+suppr to reboot

If it doesn't work, reboot again and just after bios, press ESC key : it will show the Grub menu in which you can choose "advanced option" then  "recovery", then "root console".
In this console ,  type the above command .


Can I reset all packages to repo versions without ppa-purge?

Ideally ppa-purge should work, as it is same procedure. PPA has always a version that is higher then both of precise and trusty.
The only case I think of, is when dealing absolute packages or renamed ones (If a transient package is not provides).

In this case, I would suggest:

Add back all precise repositories.

echo -e "deb http://archive.ubuntu.com/ubuntu/ precise main universe multiverse restricted\ndeb http://security.ubuntu.com/ubuntu/ precise-security main universe multiverse restricted\ndeb http://archive.ubuntu.com/ubuntu/ precise-update main universe multiverse restricted" | sudo tee /etc/apt/sources.list.d/precise.list

Update package lists

sudo apt-get update

Purge the PPA

sudo ppa-purge ppa:...

If didn't work try:

sudo ppa-purge -d precise ppa:...

You can try also aptitude which provides solutions with downgrade.

Sometimes, manual fix is the only option.

You can use remove those package without their dependents, using

sudo dpkg -r --force-depends ...
##disable ppa source then
sudo apt-get -f install

Or force installing specific version from official repository. But you have to put all related packages in same command.

sudo apt-get install pkg1=ver1 pkg2=ver2 ...

In the worst case you can download those packages with version from official repository and force install them using:

sudo dpkg -i --force-depends ...

AFAIK APT does not have away to do that.


For those who have the same problem, I solved it:
in pavucontrol click on the tab "Input Devices", then click on the icon of a lock.  You'll find the volume for left and right microphones separately. Set one of them to zero


There is. You have to boot from live USB/CD and open GParted as root:

sudo gparted &

and then select sda6 and Resize/Move to enlarge the partition in to the unallocated space.

Please backup everything before you do that.

Also, I'm not sure what is in sda5 (the thing preceding sda6) be careful.

More information can be found here.


You can use

sudo rfkill list all

on the command line to see which devices are enabled or disabled.
To enable the device, you can try something like

sudo rfkill unblock wifi

or

sudo rfkill unblock all

Afterwards, the enable wifi option should be enabled on the applet.


Seeing partitions on hard drive in Ubuntu 14.04

try to used Gparted, it is easy and straightforward


FTP: Connect as local user with different password

All you need to do is to add alice user into bob's group,
since bob is the creator and owner of the files.

To check who is the owner of a file, use

$ ls -l filename

To see which groups bob is registered in, use

$ groups bob

To add existing user alice to a group, use

# usermod -a -G groupname alice

Also check this out, for more on user management.


Installed the Arc Theme, it doesn't look right

This is a known issue.

  This theme doesn't support Ubuntu 14.04, because its GTK version (3.10) is too old. I'm working on GTK 3.14 support, which will make the theme compatible with Ubuntu 15.04.
  I'm sorry about this, but I don't have enough resources to backport the theme to older GTK versions.

Source: https://github.com/horst3180/Arc-theme/issues/7

Workaround

Depending on which Arc theme you are using, edit the corresponding .css file. Even better, edit all of them and fix all Arc themes on 14.04:

Arc: sudo gedit /usr/share/themes/Arc/gtk-3.0/gtk.css
Arc Dark: sudo gedit /usr/share/themes/Arc-Dark/gtk-3.0/gtk.css
Arc Darker: sudo gedit /usr/share/themes/Arc-Darker/gtk-3.0/gtk.css

Once gedit opens press Ctrl + F and type the word dashed

Now simply replace the highlighted word dashed with the word none

i.e. change this line: outline-style: dashed; to this: outline-style: none;

Save, close, and you're done. Enjoy.


Your original script has a couple issues:

"$NAUTILUS_SCRIPT_SELECTED_FILE_Path" should be all capitalized and spelled differently, as in "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS".
echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | base64 will only encode the string "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" and that's it. If you want to encode a file, you need to pass that variable on via xargs or better yet - pass it directly. base64 can take files as  arguments , thus base64 "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" is what you really want to do. No pipes here, no echo.

Below I provide alternative and fairly simplistic approach
Script
#!/bin/bash
for item in "$@"
do
   file=$(basename "$item" )
   base64 "$item" > "$HOME/$file.base64"
done

Instructions

Place this file into ~/.local/share/nautilus/scripts/ directory

ensure it is executable with chmod +x  <path to script here> command.

Select the files that you want, right click , and go to scripts submenu. Select your script.

Once the the script is done, each base64 encoded file will be placed into your home folder, with original filename and .base64 extension. You may wish to alter the script to create .base64 files in the same directory, which is totally fine, but it might be a problem if you do not have permission to create files in that directory.
Of course this script is slightly simplistic. I've created a bit more involved script in Python3 , which you can find on my GitHub repository for nautilus scripts. It does a bit more than the other scripts -  checks for file type, show info and error popups,etc.


Relying on obscurity (an unknown host name) is insecure here. Anyone can set the host name, even from the outside:

curl -H "Host: example.com" http://the.ip.here/

A better way to restrict access it by setting access controls:

location / {
    try_files $uri $uri/ /index.php?$args;
    # Adjust the IP range if necessary
    allow   192.168.1.0/24;
    deny    all;
}

Documentation:

http://wiki.nginx.org/HttpAccessModule


Disclaimer: Sorry but it's an answer for VLC, not mpv player. I believe there are bugs or lack of support in mpv player because in my setup, while VLC is working fine with low CPU, mpv player doesn't. You may face the FFmpeg multithreading issue (see point 4).
I've really struggled to get this working, and I'm a bit disapointed of the limited NVIDIA GTX 10*0 (Pascal) HEVC support compared to AMD.
0. Check HEVC profile support
Edit: NVIDIA VDPAU driver now supports HEVC Main 10 profile on Linux since version 450.51+
Check media file HEVC profile: You can check your file HEVC profile by right-clicking on your file >  Properties > Audio/Video tab > Video > Codec.
Check driver HEVC profiles support: Switch to the NVIDIA proprietary drivers (see below) and run:
$ vdpauinfo
Information string: NVIDIA VDPAU Driver Shared Library  367.57  [crop]
Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
[crop]
HEVC_MAIN                      153 262144  8192  8192
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---

$ vdpauinfo
Information string: NVIDIA VDPAU Driver Shared Library  450.80.02  [crop]
Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
[crop]
HEVC_MAIN                      153 262144  8192  8192
HEVC_MAIN_10                   153 262144  8192  8192
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   153 262144  8192  8192
HEVC_MAIN_444                  --- not supported ---

1. Switch to NVIDIA proprietary drivers
You need at least version R367 (nvidia-367).
 software-properties-gtk &

Go to Additional drivers tab, check NVIDIA binary driver and Apply the changes.
2. Enable hardware acceleration in VLC
Of course, you must enable hardware acceleration in VLC > Tools > Preferences (Simple) > Input / Codecs > Hardware-acceleration decoding = Auto. For NVIDIA, you can choose VDPAU video decoder explicitely.
3. Update VLC to 2.2.4 or 3.0
There are several bugs in VLC 2.2.2 (Ubuntu 16.04), fixed in later versions (see: changelog), that lead to this misleading error:
$ vlc --version
VLC media player 2.2.2 Weatherwax
$ vlc <file>
[crop]
[00007fa4b42cc5d8] vdpau_avcodec generic error: unsupported codec 1211250229 or profile 1

That's clearly a misleading and buggy error. Hard to tell, but 1211250229 does mean AV_CODEC_ID_HEVC (can be checked by compiling with rustc this rusty code). And we've seen from vdpauinfo that HEVC profile 1 (= Main) is supported.
At this time, VLC 2.2.4 is not available from the official VLC PPA (check stable version here). So upgrade to VLC 3.0 from the master branch (check master version here) but keep in mind it's a nightly release:
$ sudo add-apt-repository ppa:videolan/master-daily
$ sudo apt update
$ sudo apt install vlc
$ vlc --version
[crop]
VLC version 3.0.0-git Vetinari

4. Temporarily disable VLC FFmpeg multithreading
As this is not enough, you may now face this issue:
$ vlc <file> --verbose
[crop]
[00007f6bc4ccc688] avcodec decoder warning: thread type 1: disabling hardware acceleration

Explainations on this thread at VLC forum:

It means you're using FFmpeg, which no longer allows enabling hardware
acceleration and threading at the same time. You need to use libav
[but] this is decided while compiling VLC. You can't change it at
run-time.

On the same thread, there's a workaround: In VLC > Tools > Preferences (All) > Input / Codecs > Video codecs > FFmpeg, change the value of Threads from 0 (auto) to 1.
And you're done!
But that's a manual workaround: keep in mind that to watch videos not GPU-accelerated, you should reset the VLC FFmpeg Threads setting to use all your CPU cores... or compile VLC from source with libav.


Two of the same application in "open with" option

It's an age-old problem that has been asked and answered many times in the past several years.

Here's an answer from Unix.SE:

  This list gets created by analyzing .desktop files located at:

/usr/share/applications
~/.local/share/applications

  There might be more than one usecase per application, take for example
  the media player banshee which has three .desktop files by default:

$ ls -1 /usr/share/applications/banshee*
/usr/share/applications/banshee-1-audiocd.desktop
/usr/share/applications/banshee-1.desktop
/usr/share/applications/banshee-1-media-player.desktop

  The only difference between those files is the starting parameter and
  the MimeType list.

  banshee-1.desktop: General media files
  banshee-1-audiocd.desktop: Audio CD's
  banshee-1-media-player.desktop Audio player (Also used by rhythmbox, vlc, and others)

  So we have three 'Banshee Media Player' in the 'Open with' list (and
  maybe also in the 'Main Menu').

  The other way of filling this space is by creating personal .desktop
  files in ~/.local/share/applications. Either manually or by using a
  tool. alacarte (or right-click on 'Main Menu' -> 'Edit Menu') is one
  of those.

  Every time you create or move an application within alacarte, a new
  .desktop file gets placed inside ~/.local/share/applications.
  Disabling an application will "remove" it from the 'Main Menu', but
  not from the 'Open with' list.   But the 'Delete' button does, by
  creating a identical copy from /usr/share/applications into
  ~/.local/share/applications and adding Hidden=true to the .desktop
  file, thus "overwriting" the system-wide inherited values.

  Deleting two of those entries from alacarte results in:

$ ls -1 ~/.local/share/applications/banshee*
/home/user/.local/share/applications/banshee-1-audiocd.desktop
/home/user/.local/share/applications/banshee-1-media-player.desktop

  Removing any entries from ~/.local/share/applications will reverse
  to the preexisting state (three banshee items).

  If you really don't have any duplicates in those two folders, try
  removing any duplicates from alacarte or playing with the
  Hidden=true option in the corresponding .desktop files.


Gtk-warning cannot open display Windows Ubuntu

i recommend xhost + which is potentially dangerous as it lets anyone in the universe to connect to your X session, but you can run that then run your command, after the software starts up then run xhost - so you will be secure again. Thats a temprary workaround :)


Install Ubuntu on Unallocated Space after E Drive?

We usually refer to "Unallocated space" as a part of a disk without any filesystem. So, technically, no, you can't install Ubuntu in an unallocated space.

But Ubuntu's installer (called Ubiquity) has a step which lets you partition/organize/format your disk. In Linux, drives, disks and partitions are not named with letters (unlike Windows), but with kernel-created special device files, inside the /dev directory. The first, main hard disk of a computer is usually represented by a file named sda. Its partitions are represented with the same name, but with numbers. For example, the first partition of the first hard disk is named sda1.

When you run Ubuntu's installer you'll need to format the partition where you want to install Ubuntu as ext4. Ext4 is the default filesystem for Ubuntu and most GNU/Linux systems, just like NTFS is Windows' and HFS+ is OSX's. You'll also need to set the filesystem's root's mountpoint to be in that partition.

If you choose "Erase disk and install Ubuntu" or "Install Ubuntu alongside Windows" everything will be done automatically, but you won't be able to choose how much space will be allocated to each system: it will be 50-50.

If you choose "Something else..." you'll be able to make your own partitions (including separate ones for /home, /var, /boot or any other directory), but have in mind that this is an option recommended for advanced users.


This issue has brought misery and woe to many, myself included. The causes and solutions seem to vary slightly. The solution I found is not quite ideal but it ended up working.

In my case, I was able to find success after using boot-repair to try to install the bootloader again. I ran boot-repair in the non-UEFI Ubuntu from the LiveUSB instead of from the UEFI version. I have a feeling similar success is possible after making an EFI partition but I was a little wary after I ran into a lot of trouble in this adventure. At one point my computer kept freezing at the BIOS splash screen. I think it was because Windows tries to "repair" the LiveUSB disk which puts it in a state that my EFI/BIOS had trouble with.

My Windows 10 is on a dynamic disk and I learned that the bootloader wasn't going to be able to be installed there. However, boot-repair was able to install it onto the disk that Ubuntu is on, which is what I was trying to do with the installer both when it first asked about the disks and later in that error window.

With this setup, I have to select the disk I installed Ubuntu on in the BIOS menu when the computer starts up. Grub shows up when I select the disk with Ubuntu and I'm able to boot into the OS, however I'm not able to get into Windows from any of the two selections it shows. Instead, I have to use the BIOS menu to select the disk that has Windows. This works alright, but I might try the UEFI boot solution when I'm feeling adventurous again.


The NTP "ntpdc" shell command "peers" returns "localhost: timed out, nothing received"

ntpdc uses mode 7 requests and ntpq uses mode 6 requests. Mode 7 requests are often used as a DDoS and therefore newer default configurations have mode 7 requests blocked. You can get all of the information you need from ntpq -p. There is no need to use ntpdc, but do not take my word for it:

  ntpdc is deprecated - please use ntpq now, as it uses a more sane interface and can provide all of the information that ntpdc used to provide.

https://www.eecis.udel.edu/~mills/ntp/html/ntpdc.html


How to cope with bad sector on a portable storage

Bad blocks can not be repaired. They are added to a special blacklistlist of bad blocks to be avoided in the future. This is done by using sudo e2fsck -c /dev/sdXY on an existing partition with a linux file system. There is no need to make special partitions, or leave blanks pace.
Here is a quote from man e2fsck
    This option causes e2fsck to use badblocks(8) program  to  do  a
    read-only  scan  of  the device in order to find any bad blocks.
    If any bad blocks are found, they are added to the bad block in‐
    ode to prevent them from being allocated to a file or directory.
    If this option is specified twice, then the bad block scan  will
    be done using a non-destructive read-write test.


Where is the java library class files located in file system

Open Alternatives Configurator:

Select java in the navigation sidebar:

This will show you which java runtime environments / SDKs are installed, which one is currently active and where to find them, all in one go. The respective package names are similar (e.g. search Synaptic or Software Center for openjdk or java6).


Text messaging and calls don't work on Ubuntu Touch dev preview

Calls and SMS should work if you use a SIM without PIN code

The important part here: "without PIN code". I would put your sim into another phone and disable the PIN-code. Then put it back into your Ubuntu-Nexus and off you go..


Directory Management / Permissions (Newbie Questions)

As with any tool in linux, you can launch it by proceeding the applications name with sudo.

$ sudo nautilus

This will grant the application super user rights during that windows usage.

You should probably add yourself to "staff," instead. You won't be giving an application with read/write capabilities control at that level for a simple permissions issue. There are exploits that will take advantage of this


Change Ubuntu Server 18.04 LTS Bionic Console Screen Resolution

1. Get supported video mode (use vbeinfo instead of hwinfo)

reboot
hold down SHIFT after the BIOS/UEFI finished
press `c´ for the GRUB command line
type set pager=1, then hit ENTER
type vbeinfo, then hit ENTER
take a note about the supported video mode you need Mode 0x031b: 1280x1024 (+3840), 24 bits
reboot

2. Modify / add the following lines to /etc/default/grub to match the ones below

>     GRUB_CMDLINE_LINUX_DEFAULT="video=0x0345 gfxpayload=true"
>     GRUB_CMDLINE_LINUX="video=0x0345 gfxpayload=true"
>     ...
>     # The resolution used on graphical terminal
>     # note that you can use only modes which your graphic card supports via VBE
>     # you can see them in real GRUB with the command `vbeinfo'
>     GRUB_GFXMODE=1280x1024x24
>     GRUB_GFXPAYLOAD=1280x1024x24
>     GRUB_GFXPAYLOAD_LINUX=1280x1024x24

3. Update GRUB

sudo update-grub

4. Reboot

sudo reboot

Note1: I've tested the above solution with Ubuntu 18.04 Server and Desktop on VirtualBox.

Note2: Didn't include linux terminal (emulator), putty, cygwin, conemu and other fancy tools, because this is about the bare console.

None of the sources I used had a complete solution, but putting the parts together, solved the problem for me.

Change Ubuntu Server 14.04 Screen Resolution

https://ubuntuforums.org/archive/index.php/t-1468789.html


Presumably you are trying to boot from disk. Will it boot from CD/USB? If not you may well have a hardware problem. You could try booting form an Ultimate Boot CD which you would need to create on a working PC but it would then allow you to test the CPU, memory, disk etc. The Ultimate Boot CD is available here. If this CD won't boot either, you have a very sick machine indeed. In this case, check the power supply, replug everything pluggable, but if the problem remains it's probably time to bin it.


how to abort shutdown command in ubuntu?

As we can read from manual page man shutdown

   -c
       Cancel a pending shutdown. This may be used cancel the effect of an
       invocation of shutdown with a time argument that is not "+0" or "now".


I still consider myself a noobie, but here's how I am running Arduino 1.6.3 (on Ubuntu 14.10 using a 5-year old 32-BIT HP computer. FORGIVE ME if this is very simplistic, but I spend HOURS sometimes trying to figure out what some people mean by "open a terminal and type %t/go -get run/play then you are on a rocketship to the moon!" SOOOO... this covers A LOT of basics you may already know (or not, honestly, I barely understand what I'm describing below)

I downloaded the zip file arduino-nightly-linux32.tar.xz from here (YOU MAY NEED 64-bit. Ask your computer what it is: 32-bit or 64-bit):
https://arduino.cc/en/Main/Software to my desktop.
I double clicked the arduino-nightly-linux.tar.xz icon and it opened a window that showed the .tar.xz file. I clicked the the extract button at the top of the window and extracted the contents of the arduino-nightly-linux.tar.xz archive to my desktop.
Once it was extracted, I could see and open the folder on my desktop (with all my other stuff), but could not run Arduino from there. I opened a terminal (Crtl+Alt+T)... Note: capitalization matters in the terminal and depends on what YOUR machine calls the files/locations you are using...
I typed: cd Desktop and it gave me this prompt: jay@jay:~/Desktop$
I Typed on the line after the $ ls --  I click Enter and it LISTED every file and folder on my desktop.
I could see Arduino-nightly in the list (it was blue for some reason).  If you DON'T see it in the list, you are in the WRONG directory and you need to "cd" to the directory it IS IN.
then I typed on the line after Desktop$ cd Arduino-nightly and it gave me this:

jay@jay:~/Desktop/arduino-nightly$

after the $ on that line, I typed ./arduino
...and Arduino IDE interface window thing 1.6.3 came up. I programmed a couple of stepper motors I had just bought on Ebay!

I hope that helped.


Unable to mount NTFS Partition after resizing - "Failed to read last sector"

This might do it:

sudo ntfsfix /dev/sdxy

change xy in the above to reflect the partition in question, e.g.:

sudo ntfsfix /dev/sdb1

Example output:

ubuntu@ubuntu:~$ sudo ntfsfix /dev/sdb1
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... FIXED
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.


A simple little audio player called decibel is a python program that is incredibly fast and powerful. You do not need to import all your mp3s or other tracks before you can play them. With the full view selected from the view menu, it gives you a directory tree in the the sidebar (see the screenshot). You can expand the folder you want and either select that entire folder or just one or two tracks and then drag and drop into the main window pain (again see the screenshot). By default it is set to show just the home folder in the sidebar, but that can be changed: on the menu, go to edit > preferences > explorer and double click on file explorer.

If you go to edit > preferences there are a number of useful plugins that you can enable and you can also switch on some desktop integration features. There is also an equalizer available as well which has various presets. Again, you can keep it as a minimal player or use these other features; it is very configurable.

It is available in the repositories and more information can be found at the official site. Compared to certain other music players, which tend to be somewhat sluggish, decibel is great and loads in seconds.

If you open Thunderbird and go to edit > preferences > attachments you can set decibel as the default program to open mp3 attachments.


It's a known bug, you can check it here: Bug #1153934

The workaround for this is to kill gvfsd-http after starting the stream. If it doesn't work, try using banshee for ex.


Did you install the VGA drivers for the Nvidia GeForce 6150SE nForce 430?, If not do so, If it is yes, then try without effects, (Look for Accessible settings, may be you have accidentally turn something on)


How do I clone a failing hard drive to a new hard drive using ubuntu

Caution: It is highly advised you run ddrescue from a live USB or similar, and not on the damaged hard drive. Using the damaged hard drive any more than absolutely necessary may cause more (and worse!) data loss.

First off, you're going to enable the universe repository:

sudo add-apt-repository universe

On Ubuntu 18.04 (and later, assumed for this guide), this will automatically update your package repositories as well.

Once you have universe enabled, we can go ahead and install ddrescue:

sudo apt install gddrescue

Next, find your partitions/disk data. This is usually achievable through the lsblk and blkid commands. On my (example) system, we will be cloning /dev/sda to /dev/sdb. Once we have our names, we can just run ddrescue:

sudo ddrescue -d -r3  /dev/sda /dev/sdb /path/to/rescue.log

We're going to use the -d option to read the disk directly, and the -r3 to retry a bad block three times before moving on. rescue.log is an (optional) log file used to restart a recovery if it is interrupted. You may store it in-memory, but it is highly recommended to store it to an external (third) USB drive.

Let this run, and hopefully your drive will be restored.

For further options, read the manpage for ddrescue after installing it. You can access it with the following command:

man ddrescue

A full disk ddrescue is doable, but is somewhat frowned upon due to putting unnecessary stress on the disk. If at all possible, try to only recover the minimum amount of data necessary - a single partition, for example. In order to do this, you'll need to create a partition on your target drive first.


I've had a situation like this where I had to configure the MAAS URL correctly.  The nodes need to be able to see it.  Could you just try:

sudo dpkg-reconfigure maas-region-controller
sudo dpkg-reconfigure maas-cluster-controller

and make sure the URL/IP is the IP reachable by the nodes.  After this, try your enlistment again.

For MAAS to be "working" you need to be able to enlist, commission, then deploy each node.  It's a good litmus test before you run the autopilot.


Power Turns Off When I Unplug My Headphones

Is this a PC you built yourself (assembled motherboard, memory, CPU, ...)? If so, I suspect it could be a problem with the wiring between the front panel (which usually has the headphone jack, reset button, some USB ports), and the motherboard. If any of those little DuPont connectors get attached to the wrong pins on the motherboard, you could send spurious reset or off signals to the motherboard when you disconnect your headphones.


It's not supported by Canonical. The Ubuntu Wiki page on ZFS says:

  In addition to be able to have ZFS on root, install:

sudo apt install zfs-initramfs

The zfs-initramfs package is in universe (for 16.04, 18.04 and 18.10), which means that it's maintained and supported by the community, not Canonical. If it ever gets promoted to main, where zfsutils-linux is, then we can assume support.


Before Ubuntu 12.10

As this seems to be hard-coded into Nautilus, your best bet be to report a bug, as there is no solution short of patching Nautilus. Even with the newer versions of Nautilus that use dconf, there is no option to change this setting:

Ubuntu 12.10 and up

In Ubuntu 12.10 (so far) it seems Nautilus no longer has this problem. If the final version comes with the standard Nautilus 3.6, you will be able to change the column width freely.


How can I make PCManFM open plain text files with Leafpad by default in Lubuntu?

Its perhaps worth checking that if you have a mimetype list that its defined correctly:

In the same folder - try removing/renaming any custom leafpad.desktop file just in-case it is due to an error in that definition.

Logout and login for changes to take effect.


Can you remove the flash drive after installing ubuntu using a flash drive?

After you have finished the installation to the harddisk, you will be asked to reboot. You can safely remove the USB flash drive after that reboot.


Any SAP (structural analysis program) software in linux?

A good starting point would be like these ones: bars3d (sourceforge.net/projects/bars3d), Estru3D (sourceforge.net/projects/estru3d) and Frame3DD (frame3dd.sourceforge.net). Sadly, i couldn't make any of those work on my Xubuntu 16. Estru3D installs fine, but it won't start at all. Anyway, these 3 are very crude projects, i'm looking for something more advanced.


No Audio on Lubuntu [booted alongside Windows]

I have a similar problem. Open alsamixer via Terminal and check out the headphones column. If it's at 0, increase the volume. At least in my case, every time I log in into my Xubuntu account sound doesn't come out although Master is above zero and I have to set a higher Headphones value manually. I hope it's only a temporary bug that will be fixed soon.


What's the best way to encrypt a flash drive?

sudo apt-get install cryptsetup then use disk-utility to create a partition on the drive and make it encrypted.  You will be asked for a passphrase on inserting the flash drive from then on


This is theoretically impossible - an ISO file represents the phyisical layout of the filesystem exactly as it would be written to disk. Therefore two ISO files could easily contain two different filesystems - how would an ISO image burner "merge" the two incompatible filesystems?

Even if the filesystems in the two ISO files were identical, don't forget that an ISO file can contain a boot image as well. How could two boot images be merged?

Instead, you could try opening the ISO file with archivemount :

mkdir mnt
archivemount some_iso_file.iso mnt
xdg-open mnt

Those two commands will mount the archive and open it in Nautilus (or your default file manager). You can then begin copying files out of the archive to another location.

Grub can be written to a CD. You might be able to figure out how to create a bootable CD that contains the contents of both ISO files and can boot either image.


Speakers not working - Sunrise Point-LP HD Audio

For those who have this problem, if the solutions in other similar questions won't work, like using pavucontrol etc., perhaps you need, like in my case, to look in alsamixer if you have auto-mute enabled by scrolling right in the alsamixer playback units, because if it's enabled it is not sufficient to raise the volume of your speaker from the alsamixer to solve the problem.
So step one make sure volume of playback unit is not muted.

And STEP TWO make sure that auto-mute is disabled.


There is this tool /usr/lib/update-notifier/apt-check giving simple output.

The --human-readable flag gives more information.

In short, /usr/lib/update-notifier/apt-check --human-readable gives two numbers :

<n1> packages can be updated.
<n2> updates are security updates.

/usr/lib/update-notifier/apt-check with no option has this output layout:

<n1>;<n1>

So it is possible to extract the first number and if it is greater than 0, say that some update is available.

Extract the first number, number of available updates:

/usr/lib/update-notifier/apt-check |& cut -d";" -f 1

Use it in a script:

#!/bin/bash
if [ $(/usr/lib/update-notifier/apt-check |& cut -d";" -f 1) -gt 0 ]; then
    # Some commands
    sudo apt-get -y dist-upgrade
fi


Why cannot WPS PDF add a note/annotation in Bengali language?

While I don't know how to make WPS office annotate PDF files in Bangla, I know that Evince (GNOME's default pdf reader) can do that (with ibus-avro).

Okular (KDE's default pdf reader) has excellend PDF annotation support, and it support Bangla.


Force permissions on directory for Netatalk

From this Ubuntu Forums thread

Edited /etc/netatalk/AppleVolumes.default so it reads:

# The line below sets some DEFAULT, starting with Netatalk 2.1.
:DEFAULT: options:upriv,usedots

# By default all users have access to their home directories.
~/          "Home Directory"
/srv/files/Agentur  "Agentur"       allow:@mitarbeiter dperm:0770 fperm:0660 umask:0007
/srv/files/Test     "Test"          allow:@mitarbeiter dperm:0750 fperm:0660 umask:0007


Creating a gnome desktop file with custom command

Not sure if it's the same problem, but I can never make my .desktop files or launchers work with sudo. I click on them and nothing happens. When I change it to gksudo, however, they work fine.


Are repository lists secure? Is there an HTTPS version?

In short, yes they're secure, because of public key cryptography used to sign the files.

All the files downloaded by APT have a signature that allows the downloaded file to be verified against the public keys stored on your computer as being signed by Ubuntu and only Ubuntu.  This verifies that the file you receive was authorised by Ubuntu at some stage and hasn't been modified or tampered with since.

A technical explanation of how this works is available from Ubuntu (and from Debian which uses the same system).

Because of the use of HTTP instead of HTTPS, yes eavesdroppers could see what files you are downloading, but privacy is not likely to be your concern in this case.  A man-in-the-middle attempt to modify the packages to inject harmful code would still fail because it would break the signing mechanism.

One possible gotcha in this signing mechanism is that it doesn't guarantee that you are getting the most up-to-date version of the package (indeed, sometimes mirrors are slow to update).  To help mitigate this problem, the signed release file includes a "Valid-Until" date after which all the files it references should be considered stale.  It would be plausible for a man-in-the-middle to substitute an archive with an unmodified earlier version of the archive within this Valid-Until date and cause your APT to believe there are no updates.  But they can't make any arbitrary modifications to packages nor could they go back in time past a certain point.

The signing mechanisms provide much better security than HTTPS in this kind of distributed environment where the files are mirrored over many servers not controlled by Ubuntu.  In essence you only need to trust Ubuntu, not the mirror, so you need to prove that the files originally came from Ubuntu and have not been modified since - there's no need to verify the identity of the mirror.

Note that when you add a non-official repository to your sources list, such as a PPA, you will be receiving files that are not signed by Ubuntu.  APT should warn you about this, because they haven't been signed by a certificate matching any of the public keys installed on your computer as authorised by Ubuntu.


CPU Freq Indicator only runs if I leave the terminal open

Looks like this needs to be in startup applications twice but the startup applet removes duplicate values from the list, adding "setsid indicator-cpufreq" with a delay of 20 and "indicator-cpufreq" with a delay of 5 appears to solve the issue on my Mint system.


Generally, you add a firewall rule to deny all traffic on a specific port number like 22 in the ufw firewall using:

sudo ufw deny 22

Note that ufw must be enabled so that this rule can have effect, of course:

sudo ufw enable

Check the status, defaults and a list of all rules with:

sudo ufw status verbose

You can also install the firewall GUI gufw to manage these rules and defaults, if you prefer that over the command line.

This way makes the port only inaccessible over the network, from outside your computer. You can still access the port on localhost or 127.0.0.1, as local traffic is not filtered by the firewall. The service listening on this port can also still be running and is not affected by any firewall rules.

If you want to prevent a systemd service from starting automatically at boot, you can disable it. To disable e.g. the ssh server, use:

sudo systemctl disable ssh

This command just disables the autostart of a service. It can still be started automatically if another service or target requires it, or you can also still start it manually. It does not affect the ports used by the service, just stops the service from running and listening on that port, but as soon as it gets started, it will listen again.

If you generally don't want to have an ssh server running on your machine, you can just completely uninstall the package:

sudo apt remove openssh-server

This uninstalls (and stops, of course) the ssh server application, but does not affect any ports and firewall rules.


Wireless doesn't work on an Acer TravelMate 5520G with a Broadcom 4311

I had exactly same problem and I think I solved it. I had Travelmate 5520G with Vista and Ubuntu 10.10 installed and with wlan working good. Then I replaced the 10.10 with 12.04 so the problems started. I installed b43-fwcutter and stuff but the problem persisted.

The problem solved by shutting down the SLA-driver that was on by default in Ubuntu and rebooting the laptop to Vista. When running Vista, the wlan led was on and blinked once in a while. I pulled the wlan switch so the wlan connection and the led turned off. Next I rebooted the laptop. And now, against all predictions, wlan worked on Ubuntu 12.04. I am not 100% sure if shutting down the SLA-driver had any effect to the result but that is what I did before rebooting to Vista.

We are living in a mysterious world, fellas.


Fast way to put images of 5 sizes in 5 drawable folder in Android Studio

I assume that after extracting your archive into a folder named zip, you have the following directory structure:

$ tree -F
.
├── myProject/
│   └── res/
│       ├── drawable-hdpi/
│       ├── drawable-ndpi/
│       ├── drawable-xhdpi/
│       └── drawable-xxhdpi/
└── zip/
    ├── drawable-hdpi/
    │   ├── ic_add.png
    │   └── ic_del.png
    ├── drawable-ndpi/
    │   ├── ic_add.png
    │   └── ic_del.png
    ├── drawable-xhdpi/
    │   ├── ic_add.png
    │   └── ic_del.png
    └── drawable-xxhdpi/
        ├── ic_add.png
        └── ic_del.png

Then you can simply move all *.png files from all drawable-*/ directories inside zip/ into their respective drawable-*/ directories inside myProject/res/ using the following command:

for folder in zip/drawable-*/ ; do mv "$folder"/*.png "myProject/res/$(basename $folder)" ; done

It will loop over all zip/drawable-*/ folders, compute the appropriate target directory by appending the last path component of the source folder to the myProject/res/ path, and move all *.png files from the source folder to the target folder.

You can alter the shell globs and paths to fit your real environment.
You can replace mv with cp to copy the files instead of moving them.
You can write mv -i to get asked before any existing files get overwritten or mv -n to skip files that already exist and don't overwrite anything. The same switches exist for cp.

However, note that neither mv nor cp create missing directories, so make sure the target paths for each file exists already.


Problem was in file /usr/share/gnome-session/sessions/gnome-classic.session in key RequiredProviders in parameter notifications

This parameter causes to fail loading of gnome-classic (which have window manager gnome-wm), and system try to load gnome-fallback (which have window manager metacity). I remove notifications parameter from RequiredProviders key, and my gnome-classic now loading with compiz (gnome-wm loads compiz).

Full story of solving this problem in Russian language: http://forum.ubuntu.ru/index.php?topic=170434.0


Is it possible to install dmg2img_1.6.1-1ubuntu2 on 12.04

The binary can be found by using "which" command in linux:

which dmg2img

The location of all the files associated with a package can be found out by:

dpkg -L dmg2img

If you simply want to delete the current version, you can do so by:

sudo apt-get remove dmg2img

Then you can install the version that you wish to use manually.


Auto-tune with powertop

From this Q&A: PowerTop showing BAD status in SATA Link and PCI Device:

  Whether the Good (lower power usage) or Bad (maybe higher performance)
  settings or a specific combination of those are more suitable for you
  depends on whether you need long battery life or high performance
  more. The decision is up to you.

To force all powerTOP settings to "good" when on battery you can use:

sudo powertop --auto-tune

tlp by design slows down system on battery power

You have tlp installed which automatically manages many system features. In this case look in your file /etc/default/tlp and locate this section:

# Set Intel P-state performance: 0..100 (%)
# Limit the max/min P-state to control the power dissipation of the CPU.
# Values are stated as a percentage of the available performance.
# Requires an Intel Core i processor with intel_pstate driver.
#CPU_MIN_PERF_ON_AC=0
#CPU_MAX_PERF_ON_AC=100
#CPU_MIN_PERF_ON_BAT=0
#CPU_MAX_PERF_ON_BAT=30

# Set the CPU "turbo boost" feature: 0=disable, 1=allow
# Requires an Intel Core i processor.
# Important:
# - This may conflict with your distribution's governor settings
# - A value of 1 does *not* activate boosting, it just allows it
#CPU_BOOST_ON_AC=1
#CPU_BOOST_ON_BAT=0

When you are on AC (plugged into wall) your pstate max percentage is 100 but on Battery it is only 30%.

When you are on AC turbo boost is enabled, when on battery it is disabled.

When following the instructions in the link, you may get an error using:

gksudo gedit /etc/default/tlp

if so use this instead:

sudo -H gedit /etc/default/tlp

Change the line #CPU_MAX_PERF_ON_BAT=30 to CPU_MAX_PERF_ON_BAT=100
Change the line #CPU_BOOST_ON_BAT=0 to CPU_BOOST_ON_BAT=1

Save the file and reboot. To save reboot time use sudo tlp start instead.

NOTE: Changing these settings will improve performance but reduce battery life.


Chrome based browsers doesn't dispaly indian languages

I put this two commands now its working perfectly

sudo apt-get install fonts-noto
sudo apt-get install fonts-noto-cjk

for more details visit this link

https://support.google.com/chrome/thread/5705492?hl=en

anyway thanks for this forum


HowTo: Upgrade java on Ubuntu 14.04 LTS?

Use ppa :

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

if you want java8 :

sudo apt-get install oracle-java8-installer

If you ABSOLUTELY need to have the latest update of java you must manualy install from official source, follow this tuto : http://www.cyberciti.biz/faq/howto-installing-oracle-java7-on-ubuntu-linux/

But I advise you to wait as ppa update


Will Quickly + pyside work properly like any quickly application?

In that case, I would recommend using the QtQuick Quickly template that's currently in development.

With it, you'll be able to use Quickly with PySide (and QML) as you're intending to do.

Note that this template is still in development and is thus not yet part of the Quickly core set of templates, so use it at your own risk and do not expect everything to work.

That said, last time I tried it, it worked quite well, and had no issues at all with it.

Here's how to install it, simply run this command on a terminal to install it from the daily PPA:

sudo add-apt-repository ppa:quickly-templates-hackers/quickly-community-templates-daily

Then install it:

sudo apt-get update && sudo apt-get install quickly-ubuntu-application-qt-template

Once installed, you can create a QtQuick application with the following command:

quickly create ubuntu-qtquick-application <yourappname>

You can also create a pure Qt app with the Qt template:

quickly create ubuntu-qt-application <yourappname>

If you find any bugs with the template, we'd appreciate it if you would report them, which would help us make it better for you and everyone else using it.


Intel wifi 6230 slows down when cable unplugged

Use the command

sudo iwconfig wlan0 power off


A glitch after Ubuntu Installation. Cannot boot Ubuntu

Follow the steps below to install GRUB from a live CD it needs to be installed into the Master Boot record of the partition with Ubuntu installed.


Recommendations for Remote-Server Desktop Access

It seems a very workable solution is vncserver running xfce4 and accessed with ssh tunnels -- the bit remaining to implement is to have the server auto-login with the admin account so the vncserver session can be bootstrapped, and from there xfce4 can include the necessary apps to auto-start.

since aws server access requires the pem certificate (ssh -i) the tunneling solution works well with ssh -L 5901:localhost:5901 -N -f -l <user> <serverIP>

many thanks to Digital Ocean for continuing to maintain their vnc/xfce4 guide at https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04


How to i convert this bat file to install a game with it?

You can't just "convert" this to a shell script, it calls other batch scripts, and exe files, which are Windows applications and not runnable under linux (or any other OS than windows for that matter).

The only way is to run it under Wine, which emulates a Windows environment.

Run the Wine windows console:

wineconsole cmd

And in this console, go to the path of the batch file and execute it:

cd path\to\batchfile
batchfile.bat


With svn+ssh://server1/ you'll login to remote server under local (see whoami) username
With svn+ssh://svn@server1/ you'll login to remote server under user svn name, which be not SVN-capable user, check ~/.ssh/authorized_keys of this user, command= content


As taken from this list, you'll likely want to run:
sudo apt install openjdk-14-jdk

This will install the Java 14 JDK which will allow you to run Java programs and develop in Java.  Remember that JDK 14 is not a "LTS" release - it will no longer be supported in September of 2020 (see the Oracle release roadmap for details).


There is some chance that all these data changes are lost, but here is a little way to find your hidden change if not :

Go to your file directory, and look for hidden file

on Nautilus, use Ctrl + H or click on  -> Show hidden files
with the terminal, use ls -a

If there is no files revealed, then you had lost your data, and need to retyped then manually
Hidden files shown had the same name as the normal file with a ~ after the extension (for a file named file.txt, his hidden file would be file.txt~). You can open it as the standard file, so right click on it -> Open with Gedit and save it with a different name (using the terminal, use gedit file.txt~ to open it, or use mv file.txt~ newfilename.txt)


Apache2 cannot bind to socket, and httpd cannot be killed

Noticing the problem

I noticed my apache server wasn't working as expected.

$sudo service apache2 status

Jan 03 16:34:22 vmi120100.contaboserver.net apache2[4414]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Jan 03 16:34:22 vmi120100.contaboserver.net apache2[4414]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Jan 03 16:34:22 vmi120100.contaboserver.net apache2[4414]: no listening sockets available, shutting down
Jan 03 16:34:22 vmi120100.contaboserver.net apache2[4414]: AH00015: Unable to open logs
Jan 03 16:34:22 vmi120100.contaboserver.net apache2[4414]: Action 'start' failed.
Jan 03 16:34:22 vmi120100.contaboserver.net apache2[4414]: The Apache error log may have more information.
Jan 03 16:34:22 vmi120100.contaboserver.net apache2[4414]:  *
Jan 03 16:34:22 vmi120100.contaboserver.net apache2[4430]:  * Stopping Apache httpd web server apache2
Jan 03 16:34:22 vmi120100.contaboserver.net apache2[4430]:  *
Jan 03 16:34:22 vmi120100.contaboserver.net systemd[1]: Started LSB: Apache2 web server.

The line stating "could not bind to address [::]:80" states that another program is using port 80.

Investigating the problem

To figure out what program uses port 80, i ran netstat.

$sudo netstat -tulpn | grep :80
tcp6       0      0 :::80               :::*                LISTEN      3979/httpd

The output told me that process id 3979 with the name httpd is the one using up port 80.

To find out what runs httpd, i used ps aux

$ps aux | grep httpd
root      4995  0.0  0.0   4512  1708 ?        Ss   16:38   0:00 /bin/sh /snap/nextcloud/4371/bin/run-httpd -k start -DFOREGROUND
root      5129  0.0  0.0   4512  1668 ?        S    16:38   0:00 /bin/sh /snap/nextcloud/4371/bin/httpd-wrapper -k start -DFOREGROUND
root      5152  0.0  0.0  50712  4544 ?        S    16:38   0:00 httpd -d /snap/nextcloud/4371 -k start -DFOREGROUND
root      5153  0.0  0.0 413920  6324 ?        Sl   16:38   0:00 httpd -d /snap/nextcloud/4371 -k start -DFOREGROUND
root      5154  0.0  0.0 348352  6028 ?        Sl   16:38   0:00 httpd -d /snap/nextcloud/4371 -k start -DFOREGROUND
root      5155  0.0  0.0 348304  6028 ?        Sl   16:38   0:00 httpd -d /snap/nextcloud/4371 -k start -DFOREGROUND

I see that it is run from /snap/nextcloud , which means that my nextcloud is the one who is messing about.

Fix

Further investigation, showed that i had both a snap and a regular install of nextcloud. All i had to do was to remove the snap, and everything was working fine.

If anyone has a similar problem, remember to assess how to resolve the issue. Uninstalling might not be the right option for you.


You can use dconf-editor for setting proxy settings. Firefox will understand them.


How do I get my desktop Icons back on my primary display?

I fixed this in in Display settings (System Settings --> Display). The three monitors I use are different sizes, but after dragging the monitors so that they were aligned along the bottom axis, my icons returned my primary monitor on the left

Like this


Problem with gnome-shell 3.10 in ubuntu 13.10

I'm not sure about your 1. and 2. questions, but for the 3.it helped me to switch the display manager to gdm. Therefore first logout, switch to terminal by [Strg+Alt+F1], login and enter:

sudo dpkg-reconfigure gdm

Then restart gdm:

sudo services gdm restart

Now, I hope some things are better now. Good Luck.


connecting 2 monitors on dell lattitude E5430

Config 2 should work fine
I don't know which desktop you used. Me I used mate, so I can use mate-display-setting for setting it.. I don't know application name with other desktop.
You can look here :
https://support.displaylink.com/knowledgebase/articles/675136-how-to-configure-displaylink-displays-on-ubuntu
In command line you can try something like that :
Get monitor list :
xrandr --listmonitors
Config a monitor :
Set the resolution: xrandr --output DVI-1-0 --mode 1680x1050
Set the position: xrandr --output DVI-1-0 --left-of DVI-2-1

or
French sorry : https://doc.ubuntu-fr.org/xrandr
xrandr --output DP-2 --mode 1680x1050 --primary
xrandr --output DP-1 --mode 1280x1024 --right-of DP-2

BR


Scanner of Epson ET-2750 doesn't work - "sane_start: Invalid argument" - Kubuntu 20.04

Preface

Kubuntu 20.04
Epson ET-3750, so not exactly your model. I faced the same problems, though.
The TL;DR solution can be found in the Epilogue below.
All the experiments were done over WiFi, the device was never connected via USB.

XSane

I was very biased to get XSane to work: I did the logo some 20 years ago.
For me, the error you describe goes away, when I do a preview scan first. This is my answer to your original question. But if you, like me, tried to get the thing to scan under Linux, be my guest for the odyssey in the rest of this post. I imagine that it'll be very similar to your printer/scanner.
BXSane usually crashes with a segfault while writing the results (using PNG target format). It did work once, but I've had many crashes.
Scanning without saving worked at 300DPI but never at 600DPI or higher. I didn't try all resolutions. At 600DPI I get the same error message (invalid argument, ungültiges Argument) after the scan finishes.

Then I installed Epsons imagescan packages (available at http://support.epson.net/linux/en/imagescanv3.php). I had to configure a suitable /etc/imagescan/imagescan.conf by adding the correct IP to the default file and uncommenting the relevant lines.
After that, another scanner is found by XSane. The label depends on what you enter into the aforementioned conf file.
With this backend, XSane even allows using the document feeder (ADF) as input, not only the flatbed. But it doesn't let me select the resolution at all. And the multi-page interface of XSane is ...uh... sub-optimal.
Skanlite
After all that, I tried the program Skanlite.

Works @300 DPI with the escl connection, throws invalid argument at 600DPI
Works with imagescan scanner at resolutions up to 600DPI, also with ADF.
Doesn't support PDF, let alone multi-page PDF. It saves all pages to separate files.

SimpleScan

SimpleScan also detects the out-of-the-box escl scanner and the imagescan-backed scanner.
ADF works almost fine with imagescan backend and produces a multi-page PDF. I can select different resolutions here. The scans are a bit on the bluish side of things, though.
It pretends to be able to do ADF via the escl connection, too. But that never works. Generally speaking, it never seems to grey out any options, regardless whether they work or not.
I scans well at 300DPI with the escl connection.
SimpleScan has almost no image quality correction settings, like the other tools provide.
Apparently only PDF is supported as an output format.
During my testing the ADF functionality with the imagescan connection stopped working. Crossing my fingers it will work again in the future.

ImageScan

The scanning tool from Epson only finds the one scanner that is configured in /etc/imagescan/imagescan.conf
It allows selection of input from flatbed and ADF
ADF scan produced a multi-page PDF
This was the only program that I could get to scan at more than 300DPI. At 1200DPI it produced a ca 200MB PNG file.

Scanner's Scan to Computer
I have no clue what the ET-3750 expects from a computer to be able to "scan to it". I tried some unprotected Samba shares but to no avail. Maybe USB would work?
Conclusion

Every solution sucks in some way or the other
I'll go with SimpleScan + imagescan-backend or imagescan program whenever I want to scan several pages from the ADF. Of course, this requires that the ADF thing works again in SimpleScan.
I'll likely go with Skanlite and either the imagescan or escl backend for 1 page scans from the flatbed.
(UPDATE) Also, let's wait for the next version of SANE which ships support for ET-2650 and ET-3750, hopefully covering your ET-2750 as well. See https://sane-project.gitlab.io/website/lists/sane-mfgs-cvs.html

Epilogue

I installed the latest release from SANE using the PPA of one of the SANE maintainers: https://launchpad.net/~rolfbensch/+archive/ubuntu/sane-release UPDATE This PPA doesn't exist anymore (as of January 2021), instead use https://launchpad.net/~sane-project/+archive/ubuntu/sane-release
After that everything just works with the eSCL backend. High resolution scans, ADF, multi-page scans.
You can use XSane, Skanlite, SimpleScan, depending on frontend features.
I'll eventually purge the Epson packages.
Kudos and a huge thank you to the SANE maintainers.


How often are packages updated in Lucid?

Updates in released versions of Ubuntu are for security and bug fixes only. Generally speaking you won't see new releases of things hit the archive, except in certain cases like Firefox.

The Stable Release Update wiki page explains this process.

There is a section of the archive called Backports where newer versions of software are backported to the older releases, this might be a good "middle ground" for you if you want newer packages of something.

These packages are based on versions of the packages in a newer Ubuntu release so if you have trust/quality issues with a PPA then that might work for you.


let me know if I'm mistaken... you want a persistant version of ubuntu and kali on a usb stick and to be able to switch between the two during bootup using grub...  Here's what you should do:

kali has issues installing from usb sticks so unless you resolved that issue i reccomend taking you kali distro and putting it on a cd in order to get it to properly install to your USB. make sure grub for kali goes to usb stick.
install ubuntu to usb stick... overwrite the grub from kali on stick and ubuntu should detect kali... if it doesn't you may need to use some grub editor to add a second boot and basically change the partition it boots to...

if i'm wrong then Ahmed Jerbi probably has your answer.
Good luck and hope you are successful in this endevor!


how to uninstall both unixodbc and freetds?

First only to inform you, the command

sudo make clean

doesn't removes the installed files. It exists only, to clean your source folder.

As you said

  But I notice when I run

tsql -C

  it said

tsql is not installed.

and there was no error after starting the command

sudo make uninstall

then the installed files are removed and you can simply remove the configuration file in /usr/local/etc via

sudo rm /usr/local/etc/freetds.conf

An other possibility is, install the tool checkinstall via

sudo apt-get install checkinstall

Go into the source folder, in your question named as <the file folder> and start the build process, because you have started sudo make clean:

./configure
make

After that don't use sudo make install. Use

sudo checkinstall

checkinstall creates a deb package and installs the package on your system. Remove the package and all installed files after that via

sudo dpkg -r package_name

The correct command (package_name) is shown after checkinstall is finished.

Use the checkinstall-way if you install software from source. In the most cases:

./configure
make
sudo checkinstall


You really have two options:

You could copy all the deb files for the packages you have installed from /var/cache/apt/archives just so long as you haven't ran sudo apt-get clean to specifically remove these files
I have always used aptoncd which is my recommendation.

Just open a terminal and run the following command:

sudo apt-get update && sudo apt-get install aptoncd

From their webpage:

  Create a removable repository with all packages downloaded with Synaptic, apt-get or aptitude.

This gives you a fancy GUI to make backups of all your programs, it is capable of others things as well but this is what I have always used it for.  Here is their website.


Multiple OneDrive accounts on Ubuntu 18.04 LTS

I use OneDrive Free Client.
When setting it up, be sure to complete the Configuration and OneDrive service steps.

We can now set up multiple accounts.
Start by making a new local onedrive and .config

mkdir ~/OneDriveWork && mkdir ~/.config/onedriveWork && cp ~/.config/onedrive/config ~/.config/onedriveWork/

edit sync_dir in the config file to sync_dir = "~/OneDriveWork"

nano .config/onedriveWork/config

Copy the service you have created in the initial setup

cp /usr/lib/systemd/user/onedrive.service /usr/lib/systemd/user/onedriveWork.service

Edit the new service configuration directory

sudo nano /usr/lib/systemd/user/onedriveWork.service

add --confdir="~/.config/onedriveWork" to the end of ExecStart=/usr/local/bin/onedrive -m

add onedriveWork service to autostart

systemctl --user enable onedriveWork && systemctl --user start onedriveWork

run onedrive and repeat the first time run instructions, similar to the initial setup, this time with your work account login.

onedrive --monitor --confdir="~/.config/onedriveWork

Reboot

Hope this helps!


How can I recursively search for directory names with a particular string where the string is only part of the directory name

You can use the find command:

find YOUR_STARTING_DIRECTORY -type d -name "*99966*" -print

Example:

find ~ -type d -name "*99966*" -print

should find all directories (-type d) starting from your home directory (~)that have their names containing the string "99966" (-name "*99966*") and output them (-print).


How to start after setting up a cluster through jujucharms.com?

It looks like you deployed the Canonical distribution of Kubernetes bundle (https://jujucharms.com/canonical-kubernetes/)

To interact with the cluster:

After the cluster is deployed you may assume control over the Kubernetes
cluster from any kubernetes-master or kubernetes-worker node.

To download the credentials and client application to your local workstation:

Create the kubectl config directory.

    mkdir -p ~/.kube

Copy the kubeconfig file to the default location.

    juju scp kubernetes-master/0:config ~/.kube/config

Install kubectl locally.

    snap install kubectl --classic

Query the cluster.

    kubectl cluster-info

Additional information around this can be found: https://jujucharms.com/canonical-kubernetes/

You may also like to follow the tutorial found: https://tutorials.ubuntu.com/tutorial/get-started-canonical-kubernetes#0


Why is GParted telling me I have 239.12 GiB of storage on a 64 Gib flashdrive?

You can run terminal commands, so I think we can manage this problem. Install mkusb-nox or the not yet officially released version dus. mkusb-nox tools can install a live system and dus can install a live or a persistent live system with Kubuntu in the external drive (both work in text mode, dus can work in graphics mode too), if that is what you want.

See the following links

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

Installation

dus - a revamped interface of mkusb and mkusb-nox

Or do you want to make a full installation of Kubuntu into the same drive as where you have the text mode system? It might be possible, but more tricky, because I suspect that that you have to edit the partition table in text mode. It might be better to do it in several steps:

Create a live drive (in the USB HDD or in USB pendrive or in a DVD disk),
Boot from that live drive and install Kubuntu into the internal drive.

-o-

You can check the S.M.A.R.T. status of the HDD. In graphics mode you can use Disks alias gnome-disks, and in text mode you can install smartmontools and use smartctl for this purpose. (See the manual to find out how to use it. Ask in a comment here, if you need help to select options.)

sudo apt-get install smartmontools
man smartctl


If the idea is to return KDE to the default state, if you rename your ~/.kde folder (hidden) to something like kde-bak, then when you log back in you'll see the desktop as it was when you first installed.  That will do away with some configurations that you might miss though, like for your kmail e-mail account (including e-mails), but in that case you can copy the ~/.kde/share/apps/kmail back from the renamed (kde-bak) folder.  You won't be able to rename the .kde directory while it's in use, because it will re-create itself, so the best way to do it is from the Recovery Mode or from a Live CD environment.


X11 Forwarding over ssh - Could not find ':' in DISPLAY: needs-to-be-defined

The Ubuntu side looks OK, but you need an X server on the Windows side.  Windows does not come with an X server so you have to install one. There are free ones like vcxsrv you can get. Haven't used it myself.


Ubuntu 16.04 virtual "On Screen" keyboard with different colors for every finger

I just had to go to Onboard Settings

On-screen keyboard in Ubuntu 14.04 LTS?

Theme > Typist

:)


I think you need to put an appropriate ExecStop= line and appropriate After= lines in the [Service] section.

Anyway, I have a similar script. It does not do rsync; but it does other network related things during system START and also during system STOP.

I am using the following service definition (file: /lib/systemd/system/zzz-my-sss.service)

[Unit]
Description=Execute system START and STOP script
After=network.target syslog.target
After=systemd-user-sessions.service
After=network-online.target

[Service]
User=_my_user_
Type=oneshot
ExecStart=/home/_my_user_/path/to/my/script.sh START
RemainAfterExit=true
ExecStop=/home/_my_user_/path/to/my/script.sh STOP
StandardOutput=syslog
StandardError=syslog

[Install]
WantedBy=multi-user.target

Here _my_user_ is my normal Ubuntu user. The script /home/_my_user_/path/to/my/script.sh will be called during system startup (after network is up) with a parameter START. Similarly, it will be called during system shutdown (before network goes down) with a parameter STOP.

You should enable this service using:

# systemctl enable zzz-my-sss.service

You can start / stop it manually using:

# systemctl start zzz-my-sss.service
# systemctl status zzz-my-sss.service
# systemctl list-units | grep zzz-my-sss.service
# systemctl stop zzz-my-sss.service

And disable it using:

# systemctl disable zzz-my-sss.service

If you update it, do not forget to run:

# systemctl daemon-reload


Unable to connect to local network after deleting everything in /var/log

As the apache errors indicate, it wasn't starting because there was no /var/log/apache2/ directory due to my deleting everything in my /var/log directory while trying to debug an unrelated problem.  I recreated the /var/log/apache2/ directories to get rid of the last two errors, and added 'ServerName localhost' to my /etc/apache2/apache2.conf file per these instructions: to get rid of the first error.

I don't know why the log directory isn't simply recreated if missing, but that was the problem.


Cannot start server with wrong /etc/network/interfaces config

In thais line iface enp4s0 inet static you want to make your ip static but you have not specified the gateway, netmask and IP address. Then how your server will get an IP address? The only solution is that you connect the hard drive of the server to another pc, edit the /etc/network/interfaces config file and reconnect the hard disk. If you want that DHCP should assign an IP to the server, then delete static from iface enp4s0 inet static.


How can I create a .desktop file that opens a directory in Nemo?

Just create .desktop launcher as described here and in Exec use the command nemo with your directory path. It may look like this:

Exec=nemo /home


just run it without --listen option.

gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100


unknown filesystem error after reinstalling linux

I ended up up following the instructions for Boot-Repair which fixed the boot loader.


how read documents (pdf, docx, etc) using orca in lubuntu 12.10

If you just want to be able to open/edit your documents then, for pdf you can use sudo apt-get install evince-gtk to install/update default pdf reader. for docx you can use libre office or open office


How to install Ubuntu-Personal development image on BQ M10 FHD?

Just switch to the staging channel (using https://github.com/MariusQuabeck/magic-device-tool if you wanna). But be careful, it is not ready for an everyday use, and I had an hard time switching back to the «normal» channels.
Good luck ;)


The Windows 10 update reseted it to the default fast startup which is a form of hibernation.

You need to disable this feature (again, probably) in Windows and then shutdown, not reboot. Once done properly you'll be able to access the data partition normally with read/write permissions.


The gmbrc is corrupted. Try a backup, you have several backups in ~/.config/gmusicbrowser

Sample output

% ls -og ~/.config/gmusicbrowser
insgesamt 34588
-rw-rw-r-- 1 12943689 Jul  5 19:33 gmbrc
-rw-rw-r-- 1 12943689 Jul  4 22:24 gmbrc.bak
-rw-rw-r-- 1  1893728 Mai  6 14:54 gmbrc.bak.20150506.xz
-rw-rw-r-- 1  1894384 Mai  7 09:34 gmbrc.bak.20150507.xz
-rw-rw-r-- 1  1895944 Mai  8 14:49 gmbrc.bak.20150508.xz
-rw-rw-r-- 1  1900908 Mai 19 10:17 gmbrc.bak.20150519.xz
-rw-rw-r-- 1  1923200 Jul  4 14:49 gmbrc.bak.20150704.xz

Open a terminal and do the following:

mv ~/.config/gmusicbrowser/gmbrc ~/.config/gmusicbrowser/gmbrc.xxx
cp ~/.config/gmusicbrowser/gmbrc.bak ~/.config/gmusicbrowser/gmbrc

After that, start gmusicbrowser again.

If all this does not work, then you will need to delete ~/.config/gmusicbrowser/gmbrc and start over. Sorry :\

But as little bonus, here is a daily build PPA.

gmusicbrowser in action with some additionally layouts


Black Screen after Grub menu with a underscore

If you were using the proprietary drivers you may need to revert to the open source drivers, and then you can experiment with re-enabling them.

During the boot, hold down Shift  This will get you to the Grub boot options screen.  From there, you will want to choose 'Network' which takes a while to complete, and 'Root' which will drop you into a tty terminal.

From there, the procedure in how-do-i-remove-the-proprietary-ati-drivers will remove the ATI drivers and load the open source drivers.


How to download files from URL to VMware ESXi using SSH Shell of it?

To enable SSH access in the direct console

At the direct console of the ESXi host, press F2 and provide credentials when prompted
Scroll to Troubleshooting Options and press Enter
Choose Enable SSH and press Enter once. On the left, Enable SSH changes to Disable SSH. On the right, SSH is Disabled changes to SSH is Enabled.
Press Esc until you return to the main direct console screen.

After this you can use wget read man wget:

Connect to your ESXi via SSH
Change to the folder where you want to download the ISO
Run wget http://releases.ubuntu.com/16.04.1/ubuntu-16.04.1-server-amd64.iso

This will download the ISO directly.

Setting up an ISO store on your ESXi server:

Go to configuration > storage
Right-click on a datastore and select Browse
Created an ISO folder
Use SSH to mv the downloaded ISO to the new folder


According to Ubuntu online help

  Ubuntu developers made a conscientious
  decision to disable the administrative
  root account by default in all Ubuntu
  installations. This does not mean that
  the root account has been deleted or
  that it may not be accessed. It merely
  has been given a password which
  matches no possible encrypted value,
  therefore may not log in directly by
  itself.

If you want to enable root account simply give it some password using

sudo passwd

When you enter this command you will be asked for new password. The password you enter will be the password for root account so be careful and choose a strong password.

To disable the root login use

sudo passwd -l root

This will disable the login using root user name i.e your system will be back to previous state.

If you want more information on Ubuntu user management read the official documentation.


Contents of apt.conf erased by operating system

The apt configuration provided by packages is installed as separate files in /etc/apt/apt.conf.d/ so that it can be added and updated independent of any local changes you make in the main configuration file. It's the same idea behind sources.list and sources.list.d or preferences and preferences.d. Either a single file or modular in the directory works.

The best solution is to create your own conf file in /etc/apt/apt.conf.d so you can guarantee that it won't be overwritten by package updates.

sudo touch /etc/apt/apt.conf.d/99mycustomsettings

And then you can put your settings in it:

Acquire::http::Proxy "http://user:password@ip_addr:port";
Acquire::ftp::proxy "ftp://user:password@ip_addr:port/";
Acquire::https::proxy "https://user:password@ip_addr:port/";


Ubuntu 13.10 came out over 3 years ago, and only had 9 months of software updates and support. It reached "end-of-life" status in mid-2014. (See https://www.ubuntu.com/info/release-end-of-life and https://wiki.ubuntu.com/Releases ). Since your Ubuntu version is no longer supported at all by Canonical, new versions of Firefox are not made available for your system. You'll need to upgrade to Ubuntu 14.04 or 16.04 (or 16.10) in order to receive ongoing security and software updates.


Unable to start VM using libvirt-terraform

It is a known issue in terraform libvirt. Please refer to :https://github.com/dmacvicar/terraform-provider-libvirt/commit/22f096d9


a common error is that your locale is wrong, running as root
locale-gen
localectl set-locale LANG="en_US.UTF-8"

Fixed it for me
Source: https://bbs.archlinux.org/viewtopic.php?pid=1405049#p1405049


How can I stop Unity 2d intercepting meta key when I'm in VirtualBox?

Unfortunately there is no way to grab the Super key when working in Virtual Box in non-fullscreen mode as this key is not released by by Unity.

By installation of compizconfig-settings-manager  and running ccsm we may define keyboard shortcuts to show unity desktop elements even when Unity2D is running.

  Warning: ccsm can lead to unwanted effects that may be hard to overcome and may leave you without a desktop (see also this question for more background information).

Browse to the Desktop -> Unity settings and choose the key shortcut you want to change from the Behaviour tab.

Note: The Unity plugin does not need to be enabled to change keybindings:

The key that controls the "huge black" dash is the Key to show the launcher. By doing so you can assign a different key combination on the host and on the guest to avoid that both open. Note however that still Super will open the Dash on the host when choosing any combination with the Super-key (e.g. Ctrl + Super) in the guest.

You can also disable the keyboard shortcut from here.

This procedure was tested on a virtual machine running 11.10. where we disabled the 3D graphic acceleration in the machine. It may not work the same on real hardware.


This was a challenge!

Download the compressed tar file from this website

Extract the downloaded file into a sub-folder in you Downloads folder called sheetmaker.

cd ~/Downloads/sheetmaker

Now install the following perl modules:

sudo apt-get install build-essential libgtk2-perl libimdb-film-perl libxml-bare-perl perlmagick libfile-finder-perl libimage-exiftool-perl libxml-tokeparser-perl libxml-treepp-perl

Run a test to check that all perl modules have been installed

perl ModuleTest.pl

It should say one more module "XML::RPC" needs to be installed.  If there are any more modules to be installed - look for them in synaptic manager.

The last module "XML::RPC" isnt available in Ubuntu. N.B. there is a similar named package libxml-rpc-perl but this is the "RPC::XML" library.

Run the following:

sudo perl -MCPAN -e 'install XML::RPC'

Press enter for ALL questions asked -

If the final question asked is to 'enter the URL of the CPAN mirror' then enter the value http://www.cpan.org

Re-run

perl ModuleTest.pl

It should now just say that mediainfo needs to be installed.  You install this by:

sudo add-apt-repository ppa:shiki/mediainfo
sudo apt-get update
sudo apt-get install mediainfo

now check that starting the application works -

perl SheetMaker.pl

Note - it might complain of missing templates - these can be downloaded from the website you linked to.

Finally - finish off by creating a desktop launcher

create a text file call sheetlaunch.sh with the following contents:

cd /home/homefolder/Downloads/sheetmaker
perl SheetMaker.pl

change the permissions so that is launches

chmod +x sheetlaunch.sh

now right click the desktop and create a launcher with the command line

/home/homefolder/Downloads/sheetmaker/sheetlaunch.sh

Click on the default icon and navigate to the sheetmaker folder to use the correct icon.

N.B. change homefolder for your home folder name

if you now move the launcher to the folder .local/share/applications then nattys' Dash will pick it up in its search.


Is there unexpected CPU usage? Whenever my system heats up, I open a terminal, run top, and press P to sort by CPU usage. Usually there's a process or two near the top using up more processor time than they should, and depending on which process it is, I either close that window or paste the name into a search engine to see if it corresponds to known performance issues in Ubuntu (e.g. pulseaudio, tracker, xapian, etc.).


I am not sure if it will solve your issue with Zoom but the package guvcview contains zoom controls for most webcams.  The package is in the Ubuntu repos and can be installed with sudo apt install guvcview.  Once installed it will appear in your list of applications.

The application launches in two windows.  One window is the view from your webcam the other is an extensive assortment of webcam controls including zoom.  I hope this helps solve your issue.


Unable to locate package python3-distutils in Ubuntu 16.04

python3-distutils and python3.8 are in the default Ubuntu 18.04 repositories, so you wouldn't get these errors in Ubuntu 18.04.

In Ubuntu 16.04 open the terminal and type:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt install python3.6
cd ~/Desktop/
wget -c http://launchpadlibrarian.net/449402985/python3-lib2to3_3.6.9-1~18.04_all.deb
wget -c http://launchpadlibrarian.net/449402975/python3-distutils_3.6.9-1~18.04_all.deb
sudo apt install ./python3-lib2to3_3.6.9-1~18.04_all.deb
sudo apt install ./python3-distutils_3.6.9-1~18.04_all.deb

You might need to run update-alternatives --config python3 after the first three commands to temporarily set python3.6 as the default Python 3.X version in order to install python3-lib2to3. Changing the default Python 3 version will break a lot of applications if you don't immediately change it back to the 16.04 system default Python 3 version after you finish installing python3-lib2to3 and python3-distutils and before you close the terminal. These two packages are also compatible with Python3.8, so after you finish installing them you won't need python3.6 and the ppa:deadsnakes/ppa anymore.
If you updated with a new python (from 3.5 to 3.6), then your /usr/bin/python3 points to the new python that does not have apt_pkg. Edit /usr/bin/add-apt-repository. Change the first line of /usr/bin/add-apt-repository from #! /usr/bin/python3.6 back to #! /usr/bin/python3


Why are Virtual Terminal Blank using NVIDIA propietary drivers?

when booting, nvidia drivers show the ubuntu splash screen in a 900x800 resolution like nvidia its not loaded yet. When nouveau it splash in a decent resolution.

This is because the nvidia proprietary drivers do not support Kernel Modesetting (KMS).  This is normal when you are using the nvidia proprietary drivers - with these drivers you should not normally expect your screen to switch to full resolution prior to boot, like you do with other open source drivers.

It's possible that a framebuffer mode is being entered and there is a problem with that somehow.

I don't know a fix but I can suggest troubleshooting steps that may help you get what you want.

In my /etc/default/grub, I have removed "splash" from the kernel command line, and uncommented the GRUB_TERMINAL=console line in order to give up totally on graphical boot.

But you could also try, instead, just adding "vga=normal" to your kernel command line (next to "quiet splash").  This should try and prevent a framebuffer mode loading.


You can go through the wiki entry below and see whether it fixes the issue.

https://help.ubuntu.com/community/Boot-Repair


How can I disable screensaver in Ubuntu 14.04 with icewm

Launch terminal using Ctrl + Alt + T and run these command:

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false


What service click-system-hooks.service in Ubuntu

I wondered also what this may be on my Ubuntu installation, so I had a look at the service file /lib/systemd/system/click-system-hooks.service:

[Unit]
Description=Run Click system-level hooks
Documentation=man:click(1)

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/click hook run-system
Restart=no

[Install]
WantedBy=multi-user.target

So, it is responsible for invoking /usr/bin/click hook run-system. According to its man-page, click is a

  package management tool for Ubuntu Touch

and the parameters hook run-system mean

Run all system-level hooks for all installed Click packages. This is useful when starting up from images with preinstalled packages which may not have had their system-level hooks run properly when building the image.

Concluding, if you don't run Ubuntu Touch, you may disable the service via sudo systemctl disable click-system-hooks.service or remove click completely from your system.

For me, I suspect, it came with the package unity8-desktop-session which indirectly depends on click and must not be installed without.


To remove the specific PPA, type:

 sudo add-apt-repository --remove ppa:thenameoftheppa/ppa

Then, update it with:

 sudo apt-get update

This removes the PPA permanently and if you were to install it again, you'd have to use the code like you haven't installed it.


It's a bug. AFAIK, it's caused by a Qt update for 16.04 that doesn't work for 14.04.  In the bug report, a user called awnz proposed a workaround: downgrading to 2.0.2 version (https://github.com/owncloud/client/issues/4828#issuecomment-219307594). It works for me.

To downgrade the owncloud client, you have to compile the older version from the source. Here are some instructions to do so. Please, let me know if this workaround works for you too.

Remove the current client:

sudo apt-get remove owncloud-client

Install some dependences:

sudo apt-get install libsqlite3-dev libssl-dev doxygen cmake

sudo apt-get build-dep owncloud-client

Download source of 2.0.2 version:

wget https://github.com/owncloud/client/archive/2.0.2.zip

Extract the zip file:

mkdir ~/.client-2.0.2

unzip 2.0.2.zip -d ~/.client-2.0.2

cd ~/.client-2.0.2

Configure the client build:

cmake -DCMAKE_INSTALL_PREFIX=/usr ../.client-2.0.2

Install:

make

sudo make install

Finally, you have to remove the owncloud repository from your sources to prevent further updates.

As the owncloud developers will fix the bug soon, this should be just a temporary solution. When the fix is released, you have to uninstall the old version and install the new one using the official repo.

Uninstalling:

cd ~/.client-2.0.2

sudo make uninstall


This should point you in the right direction.

Packages often come with pre- and post-install scripts. These integrate the package into the host system and are usually distribution-specific. AFAIK, (by default) alien does not setup these files to be run when the package is installed because they usually break things when run on another distro. This appears to be what you're running into. Did you specify -c or --scripts in the alien command?

Since your app is a jar file, it probably doesn't need to be installed. It will just run. But, the install may try to install needed dependencies and add it to your launcher menu. Things you will need to do manually in this situation.

What you need to do is read through the scripts that come with the package and figure out how to manually do what they do on your system.

I downloaded blazegraph.jar from https://sourceforge.net/projects/bigdata/

and was able to run it, using the command you linked to above, but it promptly died on an internal error.

I poked around some more and found a support list where you can sign up and ask questions at https://sourceforge.net/projects/bigdata/lists/bigdata-developers

It looks like it's very quiet. However, there do appear to be project updates in 2019 on their GitHub page, so someone may be there to help you.

I just reviewed the output from running the program and it lists licenses for some 30 dependencies. You would probably have to pre-install whichever of those are not already built into the jar itself.


Cannot enable desktop effects on a Thinkpad X220

Also, try running:

glxinfo | grep direct

You shoul'd see an output telling you Direct rendering: yes
Otherwise, your graphic card is not being properly detected.


How do I change the shortcut-key of show the unity dash?

Open the Terminal and execute the following command:

dconf write /org/compiz/profiles/unity/plugins/unityshell/show-launcher '"<Alt>space"'

To read the current value, use read option:

dconf read /org/compiz/profiles/unity/plugins/unityshell/show-launcher

If you want to set it to default value, use reset option as following:

dconf reset /org/compiz/profiles/unity/plugins/unityshell/show-launcher

From man dconf:

dconf read KEY
dconf write KEY VALUE
dconf reset [-f] PATH

read : Read the value of a key.
write: Write a new value to a key.
reset: Reset a key or an entire directory. For directories, -f must be specified.


Nvidia drivers not functioning on kernel 4.15.0-33-generic

I fixed it! I had to reinstall my kernel with sudo apt install --reinstall linux-image-4.15.0-33-generic and lshw shows the Nvidia driver is in use.


Is it safe to remove "diag" flagged partitions?

First, the "diag flag" is (sort of) explained in the parted documentation:

‘DIAG’

    (MS-DOS) - Enable this to indicate that a partition can be used as
 a diagnostics / recovery partition.

I've not seen any evidence that this flag is actually used, but my knowledge of the Windows world is limited. Thus, I wouldn't mess with the flag itself. I also wouldn't use it as an indicator of whether a partition is necessary.

Second, /dev/sda5 and /dev/sda7 are both pretty small -- 471MB and 1074MB, respectively. Your disk is 1000GB, so they consume a total of 0.1545% of your disk's capacity. Given that GPT can take up to 128 partitions by default (and that value can be raised, if necessary), these partitions aren't using up enough space or partition slots to be a concern -- certainly not compared to the risks involved in deleting a partition whose purpose you don't fully understand.

Third and OTOH, a lot of computers today ship with enormous amounts of bloatware, and there's been at least one recent pre-installed malware scare (Superfish). Windows 8 is also rather un-loved compared to its predecessor, Windows 7. Thus, many people prefer to wipe the pre-installed Windows and re-install using a Microsoft-provided image. This will result in a cleaner install, without any manufacturer-provided add-ons. A Web search will turn up plenty of sites describing how to get legal copies of Windows for installation; this is the first page to turn up in my search, but you can find others easily enough. Note that if you plan to install anything but the version that shipped with your computer, you may need to buy it, rather than rely on a free image from Microsoft. It's best to ask on a Windows forum if you need more help with this. The point of this paragraph, though, is that a re-install from a Microsoft image is likely to have a simpler partition layout than what you've got now, since some of those "extra" partitions probably exist to service the manufacturer-specific tools.


After downloading the latest 64-bit ver., that .iso installed a 32-bit platform in my notebook!

If the result to the command:

uname -a

Contains x86_64 then you are using the 64bit, else the 32.


Add more storage space to guest OS on VirtualBox 6

I'll recommend to run this command again

vboxmanage modifyhd --resize 46080 box-disk002.vdi

and then resize file-system by booting VM from some LiveCD with gparted.

References:

https://www.virtualbox.org/manual/UserManual.html#vboxmanage-modifyvdi


Running opendaylight on ubuntu using vmware workstation 14

For opendaylight you need openjdk-8 but you have installed the openjdk-11.
This Running Opendaylight from Ubuntu might help you


As you don't have a fixed or dynamic public address that you have control over, you'll need your ISP to port forward from the public address to your router.  And then from your router again to your web server.

If your public address (search on-line for "what's my IP?") on the other side of your ISP's router is not static (as in it periodically changes), then you will have a further problem as your public address will keep adjusting.  But this could be rectified with a dynamic DNS service.

I'd firstly talk to your ISP.  Explain that you want to expose a web service on the Internet from your home server.

An alternative could be to use a reverse SSH tunnel.  You connect to a server on the Internet from your web server and set up a reverse tunnel.  All web requests to the remote server are then mapped back to your web server through the tunnel.  There are many howtos for this available on-line.

Or you could place your files elsewhere on the Internet with web hosting.  And periodically publish.  This may be more secure than putting your home server on-line.


Ubuntu automatically keeps track of all batteries status:

The same information displayed in the GUI screen above can also be accessed from your terminal / shell / bash script (they are all sort of the same thing in many ways).

To get the same information from CLI use:

$ upower -i $(upower -e | grep -i UPS)
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2/1-1.2:1.0/usbmisc/hiddev2
  vendor:               CPS
  model:                CP550HGa
  serial:               BFBB104#BI1.g
  power supply:         yes
  updated:              Fri 12 Jul 2019 06:35:56 PM MDT (12 seconds ago)
  has history:          yes
  has statistics:       yes
  ups
    present:             yes
    state:               fully-charged
    warning-level:       none
    time to empty:       25.5 minutes
    percentage:          100%
    icon-name:          'battery-full-charged-symbolic'

Then to narrow it down to percentage use:

$ upower -i $(upower -e | grep -i UPS) | grep -i percentage
    percentage:          100%

Then to extract the second column use:

$ upower -i $(upower -e | grep -i UPS) | grep -i percentage | cut -d':' -f2
          100%

Then to extract only digits and eliminate leading spaces and trailing % use:

$ upower -i $(upower -e | grep -i UPS) | grep -i percentage | sed 's/[^0-9]*//g'
100

Now assign what you want to a variable and display it:

$ PERCENT=$(upower -i $(upower -e | grep -i UPS) | grep -i percentage | sed 's/[^0-9]*//g')
$ echo $PERCENT
100

Next step is to write a script something like this

#!/bin/bash

while true; do
    PERCENT=$(upower -i $(upower -e | grep -i UPS) | grep -i percentage \
        | sed 's/[^0-9]*//g')
    if [[ "$PERCENT" -lt 50 ]] ; then
        # email my cell phone
        mail -s "Electricity grid has shut down, run home" someone@example.com
        # text my cell phone
        curl -X POST https://textbelt.com/text --data-urlencode \
            phone="999-333-4567" --data-urlencode \
            message="Electricity grid has shot down, run home" -d key=textbelt
    fi
    sleep 300 # Sleep for 5 minutes to reduce resource usage
done

emailing cell phone: Use mail command
texting cell phone: How can I send mobile text message from terminal?

This is a script I would use, in your case adapt it to hibernate (I have a laptop so I never hibernate). My UPS is for window fan, not laptop which has it's own battery and is suspended when I'm at work. Technology can be used differently by different people.


Touchpad for Razer Blade doesn't work for ubuntu 16.04

Poured through dmesg and figured it out. Turns out it was due to having the nolapic flag set in grub. Took it out and touchpad works now.

When booting the laptop, wait for the Grub screen. When 'Ubuntu' is selected, press E to edit the startup options. Make sure that the line that starts with linux does not contain the 'nolapic' flag (this disables APIC, which the touchpad apparently requires). Press F10 to resume booting.

Once Ubuntu loads, the touchpad should work. To make the change permanent edit /etc/default/grub as well (make sure GRUB_CMDLINE_LINUX_DEFAULT does not contain the 'nolapic' flag).


-error: no such partition -Entering rescue mode -grub rescue>

I'm assuming you have already fixed this by now, but if you havent here is a soultion that worked for me

If you somehow can get a Windows 7/8/10 USB/DVD installation media you can overrule GRUB boot loader

1) Start Windows 10 USB from boot manager

2) Choose language

3) Repair your pc

4) Click the OS you wanna repair

5) Find Command Prompt

6) Then type: Bootrec.exe /FixMbr

7) Voila, now you are free to reboot and change the boot order

Found the solution for myself some time ago here: How to delete GRUB entirely from GRUB rescue and boot Windows only


You can extract the first column, pick up the duplicates, and grep them back from the file again:

cut -f1 -d' ' Original_File | sort | uniq -d | grep -wFf- Original_File


Error saving to PDF from Jupyter Notebook

The basic steps to correctly setup nbconvert  to convert ipython notebooks to pdf/latex are

Install nbconvert
Install pandoc
Install Texlive

Installing nbconvert

pip install nbconvert

or conda install nbconvert

Installing pandoc

sudo apt-get install pandoc for Ubuntu

Installing texlive

You can install recommended packages or full install.

sudo apt-get install texlive texlive-xetex texlive-fonts-recommended texlive-generic-extra texlive-generic-recommended

`

To full install texlive  follow the instructions given at  tug.
I downloaded tar.gz file from  tug-texlive-download and followed instructions given at  TeX Live - Quick install. Installation instructions in  summary:

Clean up

rm -rf /usr/local/texlive/2019

rm -rf ~/.texlive2019
Run installer

unpack the zip file

cd /your/unpacked/directory

perl install-tl

Enter command: i
Setting path

sudo vi /etc/bash.bashrc and insert

PATH=/usr/local/texlive/2019/bin/x86_64-linux:$PATH; export PATH

MANPATH=/usr/local/texlive/2019/texmf-dist/doc/man:$MANPATH; export MANPATH

INFOPATH=/usr/local/texlive/2019/texmf-dist/doc/info:$INFOPATH; export INFOPATH
Setting default papersize

tlmgr paper letter


What are the names of all released versions of Ubuntu?

All the development code names can be found on the following ubuntu-wiki:

https://wiki.ubuntu.com/DevelopmentCodeNames

Since you are building packages, the supported versions that you can build for are described on your launchpad PPA:

Since you are building debs - adjust the name of the target in your debian/changelog file:

Convention is that target names are lowercase.


Why is the space between each folder so big in Nautilus?

Install Ubuntu Tweak Tools.
Navigate to Tweaks tab.
Tweaks > System/File Manager > Thumbnail icon size > 128 or 150 (default is 64)


Evolution may be set to autostart in your settings. Depending on which desktop you are using this may differ, but on my "Ubuntu studio 16.04 (XFCE desktop)" It's in system settings > session and startup > Application Autostart. Either evolution itself is set to autostart, or a mail notification daemon.  Try disabling the more obvious one, or both.

Still on 14.04?  Latest stable release is 16.10.


Running 12.04 but installed from Vivid Vervet PPA by mistake

First you should remove the added repository. use ppa-purge Difference between "ppa-purge" and "add-apt-repository -r"?

  ppa-purge - Disables a PPA and reverts to the official packages if
  applicable. For example, if I added the xorg-edgers PPA and installed
  the Nvidia drivers, if I do a ppa-purge on said PPA, it would not only
  disable the xorg-edgers PPA but also revert the NVIDIA drivers from
  the one in the PPA to the official ones found on the official Ubuntu
  repositories.

Now after purging the added repository then update software list

sudo apt-get update

then do upgrade

sudo apt-get dist-upgrade

But you have to notice that you may still need to downgrade some packages manually. To downgrade a package you can use the command:

 sudo apt-get install pkg_name=version