Try this:

Open the ocrfeeder program.

Edit the engine: Click Tools - OCR Engine

Select the Tesseract engine and click Edit

Where it says arguments engine changed the script for this:

$IMAGE $FILE -l eng -psm 3 > /dev/null 2> /dev/null; cat $FILE.txt; rm $FILE $FILE.txt

To export the document click File - Export

Select the desired output format.

If the document has pictures I advise using the html format text.

If only has text the best is to use the format plain text txt .


When running a Wine application in fullscreen there may be issues from interference with the Unity desktop. In addition, fullscreen application will not benefit from Compiz.

We may therefore may want to consider to install gnome-session-fallback  and start a fallback GNOME session at login in case we plan to run a Wine fullscreen application.

Doing so has the following advantages:

no interference from Unity dektop items (Launcher, Dash, HUD).
All Unity key combinations are released for use in the Wine application.
more CPU power is left for the application because we do not need to run Compiz.
All our other applications are still available (through the Applications menu).


Change manage=true in your /etc/NetworkManager/NetworkManager.conf file if it is manage=false

[main]
plugins=ifupdown,keyfile
dns=dnsmasq

no-auto-default=08:00:27:9A:D4:9A,

[ifupdown]
managed=true


Comparison of Octave, Spyder, Freemat and Scilab as alternatives to MATLAB

Well you're in for a treat I have used all the programming languages/software you mentioned. FreeMat and Spyder I do not have too much experience with, but I have some. The others I am experienced in.
GNU Octave by far beets the competition. Its syntax has an extreme compatibility with that of MATLAB. The only differences, I'm aware of at least, aside from the odd toolbox, which you can attempt to replace by the packages here is that GNU Octave can define functions from the command line.
I don't know if you're aware of QtOctave. QtOctave is a frontend (GUI) for the GNU Octave programming language. QtOctave comes with an editor too.
Scilab is an adequate replacement for MATLAB too. It has some differences in terms of syntax but nothing you can't get your head around if you search the documentation that comes with it.
FreeMat is the worst, in my opinion at least, of software that's syntax is heavily based on MATLAB. My evidence for this is three part: firstly, in the software centre it receive the lowest star rating of the four software in question. Second, it isn't frequently updated, the latest version in the software centre, was last updated in 2008. Third as a result of my second piece of evidence its functions are somewhat lagging. The plus side, however, is that its syntax is highly compatible with MATLAB's.
I have used Spyder, but only briefly I'm afraid. It seems top-quality. The problem with it is that it has only limited compatibility with MATLAB, syntax wise. It requires you to learn some of the Python programming language, that is, if you plan to do well at it.
I would also recommend SageMath as it includes GNU Octave, (if its already installed on your system) Scilab, (if you already have it installed) NumPy, [NumPy and the rest mentioned unless otherwise specified come with Sage and therefore no installation is necessary] Scipy, Matplotlib, maxima, Fortran among many others. SageMath may be downloaded by going to the website http://www.sagemath.org/download-linux.html and selecting a suitable mirror, based on where you are and then installing the relevant .tar.lzma file. After this copy and paste the following commands into terminal (Ctrl+Alt+T):
cd ~/Downloads
sudo mv sage-linux-xbit-ubuntu_y-z-Linux.tar.lzma /home/username
cd ~
tar --lzma -xvf sage-linux-xbit-ubuntu_y-z-Linux.tar.lzma
cd ~/sage-linux-xbit-ubuntu_y-z-Linux
make
sudo ln -s /home/username/sage-linux-xbit-ubuntu_y-z-Linux/sage /usr/local/bin/sage

Where 'x' refers to the bits of your OS; 'y' refers to the version of Ubuntu the sage is designed for (e.g. 10.04_lts; 12.04_lts (the _lts is required in 'y'), etc.); 'z' refers to the architecture of your OS. (i386, amd64, etc.)


lxc nvidia error: xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

I had the same problem, so here is the solution. The reason the keyboard/mouse don't work inside the ubuntu 16.04 LXC container is that the xserver-xorg-input-kbd package was dropped, so if you used something like

...
Driver "kbd"
...
Driver "mouse"
...

in your container's xorg configuration - it would not work on ubuntu 16.04.

Instead you should configure xorg inputs with evdev. Since the exact number of event* entries in the configuration file (e.g. /usr/share/X11/xorg.conf.d/10-lxc-input.conf) will depend on what is in your container's /dev/input/, you could use a script to generate one:

#!/bin/bash
cat >/usr/share/X11/xorg.conf.d/10-lxc-input.conf << _EOF_
Section "ServerFlags"
     Option "AutoAddDevices" "False"
EndSection
_EOF_

cd /dev/input
for input in event*
do
cat >> /usr/share/X11/xorg.conf.d/10-lxc-input.conf <<_EOF_
Section "InputDevice"
    Identifier "$input"
    Option "Device" "/dev/input/$input"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
_EOF_
done

Which results in something like: cat /usr/share/X11/xorg.conf.d/10-lxc-input.conf

Section "ServerFlags"
     Option "AutoAddDevices" "False"
EndSection
Section "InputDevice"
    Identifier "event0"
    Option "Device" "/dev/input/event0"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event1"
    Option "Device" "/dev/input/event1"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event10"
    Option "Device" "/dev/input/event10"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event11"
    Option "Device" "/dev/input/event11"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event12"
    Option "Device" "/dev/input/event12"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event13"
    Option "Device" "/dev/input/event13"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event14"
    Option "Device" "/dev/input/event14"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event2"
    Option "Device" "/dev/input/event2"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event3"
    Option "Device" "/dev/input/event3"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event4"
    Option "Device" "/dev/input/event4"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event5"
    Option "Device" "/dev/input/event5"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event6"
    Option "Device" "/dev/input/event6"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event7"
    Option "Device" "/dev/input/event7"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event8"
    Option "Device" "/dev/input/event8"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection
Section "InputDevice"
    Identifier "event9"
    Option "Device" "/dev/input/event9"
    Option "AutoServerLayout" "true"
    Driver "evdev"
EndSection


How to get Ubuntu Touch recovery to boot into Ubuntu Touch on Nexus 4?

I had the same problem (not reading the instructions carefully).

Answer via information on
https://developer.ubuntu.com/en/start/ubuntu-for-devices/installing-ubuntu-for-devices/

After a first initial run with the --bootstrap parameter, you need to run again without that parameter.

(using the option reboot recovery may do the same, the ubuntu partition is flashed to the device by booting into the recovery that is created with the first run of the command)


After replacing my preinstalled Windows 7 with Ubuntu, how do I get it back?

If Windows was pre-installed, you should have a recovery partition on the hard disk to let you reinstall Windows; there's typically a way to start the recovery progress upon booting the computer, please see your manual.
However, if you chose "Use entire disk" when installing Ubuntu, the recovery partition may have been deleted. Unfortunately, you will then probably have  to contact your manufacturer for a set of recovery disks OR send the laptop in for service so they can reinstall Windows 7 for you.
Finally, if you are fairly computer-savvy and can find and install Windows drivers, etc. and other things that are normally preinstalled, you can install Windows by legally downloading and burning the ISO for your edition, using the key from the sticker on the bottom of your computer. Note that you will have to call Micosoft within 30 days to activate Windows though--if you tell them you didn't like Ubuntu and love Windows they will be happy to allow you to do it ;)


Dash shows a extra chrome icon related to Amazon

I found a file "google-chrome-stable.desktop" that contained the Amazon.com information of the icon. This was in ~/.local/share/applications. Deleting that file removed the icon from Dash and has solved my issue.


"WiFi adapter unplugged" Ubuntu 18.04 rtl8821ce

The error you're getting means a secure connection cannot be established with that address.
The driver you're looking for doesn't seem to exist in the official Ubuntu repository. However, here's a potential solution:

sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r)
git clone https://github.com/tomaspinho/rtl8821ce
cd rtl8821ce
chmod +x dkms-install.sh
chmod +x dkms-remove.sh
sudo ./dkms-install.sh

Source

The first line assures that kernel utilities and headers are up to date.
You then fetch the working kernel with git clone (you might have to run sudo apt-get install git beforehand).
After the repository living at "https://github.com/tomaspinho/rtl8821ce" is copied (i.e. cloned) onto your computer, you Change Directory to the  "rtl8821ce" folder (cd rtl8821ce).

"chmod" allows you to change permission (mode) for a given file, making it executable (+x). Finally, ./dkms-install.sh executes the file.
Keep in mind that you might want to keep the script somewhere, in case you wish to uninstall the driver (say you want to update it).
However, in case you where to lose it, you can clone the same repo(sitory) , chmod and run ./dkms-remove.sh as mentioned here https://github.com/tomaspinho/rtl8821ce

Good luck on your new journey!


Computer lock up troubleshooting tips/solutions?

There is a current bug in Intel Bay-Trail based devices involving frequent freezes, lockups and crashes, that have to do with Intel CPU Sleep States (C-states). The only current alternative, as of kernel ~4.8, is to prevent the CPU from entering C-states deeper than 1.

First, open up /etc/default/grub

sudo gedit /etc/default/grub

Find the line containing quiet splash, and add intel_idle.max_cstate=1 directly following it:

quiet splash intel_idle.max_cstate=1

Save and close.

Then, run the command:

sudo update-grub

And you're set!

Unfortunately, this fix is very dirty and results in far higher power consumption as a result of not allowing the CPU to sleep.


How can I make /etc/rc.local run on startup?

Can you run your script manually; if not, it's a problem with that script, otherwise look more at rc.local. If that script needs to run as root,  sudo must be used to manually run it.

Ensure /etc/rc.local, and the script it call, is executable:
ls -l /etc/rc.local
  -rwxr-xr-x 1 root root 419 2010-08-27 11:26 /etc/rc.local

Ensure rc.local has a shebang line, which is the default:
head -n1 /etc/rc.local
  #!/bin/sh -e


How to show 'arrows' for windows in other workspaces in the launcher?

Ubuntu 12.04

It seems this may no longer be possible, but what may work for you is using Alt+` (grave key) to switch between windows. To get this to show all instances of one program, you have to uncheck viewport bias in CompizConfig Settings Manager. (Install CCSM if you don't already have it)

To remove desktop bias-

Start CCSM
Click Ubuntu Unity Plugin
Click the tab Switcher
Uncheck Bias alt+tab to prefer windows on the current view port


Why am I getting a "network is unreachable" error on Ubuntu Server?

As you see from the hardware list, this is a NetXtreme BCM5705_2 Gigabit Ethernet device which needs the Linux driver tg3 and firmware to work.  The firmware are not free, so you need to install the package firmware-linux-nonfree to make it work.

Start looking at the logs with sudo tail -f /var/log/messages /var/log/syslog in
one new terminal. Here you can see what happens with the other commands.  Look for lines with tg3 or firmware.
Install the firmware package.  You need to add multiverse (nonfree in Debian) in /etc/atp/sources.list after the word universe, like universe multiverse.
After you have saved the changes, do sudo apt-get update; sudo apt-get install linux-firmware-nonfree.  Look in the manual for more information: man sources.list.
Run sudo modprobe -r tg3 to unload the driver and then sudo modprobe tg3 to load the driver to see if the propper firmware get loaded.  Look at the log you started to look at earlier with the tail-command to see what happens. It should show up there that the devices is installed and that the firmware is installed.
If it works, set up the network in /etc/network/interfaces and execute sudo ifup eth1 or what your device name are.

In short, you don't have the firmware that is needed to operate your network card.  The firmware for this card should be in the package firmware-linux-nonfree in section multiverse.

Good luck with the computer.


How to show date in top bar of deskop in ubuntu 18.04 LTS?

I've found 2 ways to do this.

from the command line

dconf write /org/gnome/desktop/interface/clock-show-date 'true'

or

Install gnome-tweaks and in it there is a setting to show the day/date along with the time in the top bar.  To install, do:

sudo apt install gnome-tweak-tool

After the install, when you run tweaks, you will see on the far left column "Top Bar". Click on that and you'll see the options on the rigth. Turn the one "ON" under clock where it says "Date".


Unable to connect Galaxy Nexus to Ubuntu 12.04 through gMTP

If you just want to be able to browse files on your Android phone in 12.04, you can just use the suggested PPA in this good article

http://www.webupd8.org/2013/01/upgrade-to-gvfs-with-mtp-support-in.html

I personally find it slightly unstable compared to ubuntu 13.04's support, but may be I am nitpicking and overall it works just fine :)


SD card not working on ubuntu 16.04 but does on Windows

Found a working solution for my Realtek Card reader RTS5209 on a sony vaio SVE15, ubuntu 16.04 LTS.

1) Install the driver found on github at https://github.com/chrisnew/rts_pstor (official Realtek driver won't compile on Ubuntu 16.04), following the instructions contained in the README.md. Maybe you will have to install some additional components (ex. git and/or dkms), cf. detailed instructions linked below.

2) blacklist previous driver (rts_pci)

3) reboot

Detailed instructions at Realtek Card Reader not working (first answer). Be careful, there is a typo in the command dkms install rts_pstor/1.11 that was dkms install rts_pstor-1.11 for me.

I hope this will solve your problem.


Install latest Ubuntu in dual UEFI boot with windows 8.1 64bits

You have to:

Disable Secure Boot in your BIOS;
Disable the "Fast Startup Boot" in Windows;
Use RUFUS to create a bootable USB Drive with GPT Partition;

Take a look in this guide. It will help you!


How do I activate my usb modem in my VM ubuntu server with windows host?

These modems require the firmware to be loaded by the driver to initalise the modem, this requires usb level access by the OS.  The serial/comport side of it is just for operational usage after the device is initialised and it wont be visible until that has happened.

You should pass through the whole device as a usb device and not as a serial device or comport. Serial pass through is only really for old school hardware serial ports not usb emulated serial ports.

Another approach would be to configure the modem on the host and then use virtualbox internal networking to pass through the network connection by adding a network adapter in bridged or NAT mode and selecting the correct uplink.  As your host is windows you should be able to use a supported driver on that platform. I wasn't sure if you wanted this modem to be private to the guest or was just struggling to share the connection.


How to shutdown a Windows 7 PC from Ubuntu 13.10

Yes, that's possible. I don't have any Windows computers available, so I can't test it, but it should be something like this: net rpc SHUTDOWN -C "Byebye" -f -I IP_ADDRESS -U USER%PASSWORD, where you obviously replace IP_ADDRESS, USER and PASSWORD with relevant values.


After tries and fails I tried with Aptitude (fortunately installed already) and pressed g to install/remove/repair packages. There I followed what it proposed to remove and... Error disappeared. libpq-dev was removed. Though some of other packages I actually need were removed as well.

Therefore I recommend it to people who are able to easily restore and reinstall missing packages.


As I read your /etc/fstab line; its format is wrong in my opinion.  Maybe try

//ip.addr/sharename  /pathname cifs credentials=/path/filename 0 0

where you can put username=blah & password=bleh in a file (permissions for privacy but root needs read access to work, user needs read if they are to mount without sudo) wherever you like.

The username, password you used may work if you put a comma & not a space (space means the end of options & next field, so your password was invalid, see man fstab).

I don't refer to mine by ip.addr, but use device-names (/etc/hosts or my dns.cache interpret to local addr). I also mount (by command) differently to you but I rarely use CIFS or Samba except for backups which are by script thus mounted/umounted without my invention.


I had the same problem, installing the following package fixed it for me: sni-qt:i386

To do that open up a terminal and type

sudo apt-get install sni-qt:i386

Worked in Ubuntu 13.10, 14.04 and 16.04


How to run a program with only one CPU core?

It is not terminator that is doing the "spreading" on all the CPU of a given process. Linux itself (the kernel) is doing this. A task (process) is scheduled as available to run on all CPUs by defaults; if it uses threads it can uses more than one CPU at a time.

To restrict a process to a specific CPU, you use the command taskset.

taskset --cpu-list 1,2 my_command

This command forces my_command to run just on CPUs #1 or #2.

To learn more, type man taskset or search for "linux CPU affinity" (first hit here).


Pidgin systray disappeared suddenly in 13.04 with Unity

I just installed this plugin: http://nevitus.com/2013/05/unity-integration-for-pidgin/

If you just want the plugin, scroll all the way down. It integrates perfectly with the Unity desktop.


How to set up a computer lab for a school?

Below are some of my "best practices" thoughts about it. Ask a specific question about the individual options, it's too broad to dive into the details of all of them in this single Q&A, I think.

Manage them in a centralized way.

You have several options here: Puppet, Landscape and Chef are just a few examples.
Preseed the installation.

This will avoid manual ask/answer question in the installation and allows you to install it automatically in your central management from the item above.
Consider PXE booting.

In case of issues and you want to completely restore the original state of the system, this will make it a lot easier to reinstall from scratch. Consider this to be automated as well, so you can let users do it themselves if they don't trust the current state of the system (security wise).

Alternatively, you can even run of a customized (updated) Live environment in a diskless set up by using a central NFS server. Users can then store files on their USB flash drive or you can configure it to have the homes on a network share.
Surveillance on the machines.

I'm not sure if you're asking about viewing the screens of the individual machines or to view the screen of the "master" PC on the individual ones.

Several options here as well. The easiest way I think it is to enforce the start of a VNC server on each machine (using the central management) and then find a client application being capable of tiling 15 of those on the desktop of the teacher. The other way around is quite easy as well: just pre-configure a VNC client on those machines or even add a shortcut on their desktops.
Install a central proxy.

If you expect the users to use the Internet in a similar way (visit identical web pages), a proxy like Squid can help you reduce the bandwidth usage on the link to the ISP as well as an improvement in speed. The squid-deb-proxy package is useful for package updates, yes, but a regular Squid can do more than that.
"cluster" SSH commands

I really recommend avoiding this, in favour of the first item (centralized management). However, if you need to run commands from a central location, PSSH  or Cluster SSH  can help you out in scripting. But really, look into options in Puppet/Landscape/Chef first.


Since non-programming users can learn little from coredumps, your shell likely suppresses them by default by setting the ulimit value to zero:

$ ulimit -c
0

You can set the value to any non-zero size, or simply remove the limit altogether using ulimit -c unlimited

See help ulimit or refer to man bash for details.


I solved it by installing libcurl4-openssl-dev

sudo apt-get install libcurl4-openssl-dev


Make LibreOffice A single button that when clicked offers choices and what type of document to open

In terminal type libreoffice brings up where you can choose what to open.
Its also in your under office in your application menu.


Saving files in new name highlight incorrect field

In this case the highlight indicates where to enter the name, not the selected field.


How to close a window but not actually quit/exit the program

A simple trick that I use when I want to have a program running, but out of sight, it is sending it to another workspace. I usually use two workspaces, one for the programs that I'm working on and another one for the "sleepers".


software "qucs" could not be installed on 13.04; but could be installed on 12.04 by apt-get

Qucs was removed from Ubuntu in 12.10, when Qt3 was removed, because it depended on qt3. The readme in their repository explains how to compile it, as the PPA only supports 12.10 and 12.04.

Source: http://ubuntuforums.org/showthread.php?t=2077639

To grab the repository: git clone git://git.code.sf.net/p/qucs/git qucs-git

Repository: http://sourceforge.net/p/qucs/git/ci/master/tree/


found a temp fix running pulseaudio -k && sudo alsa force-reload on every startup but will continue looking for a better solution


How to enable alt+right click to resize window

Install compizconfig-settings-manager

sudo apt-get install compizconfig-settings-manager

and run ccsm from the Dash or from a Terminal window.

ccsm

Click Window Management and Resize Window.

For  | Initiate Window Resize assign <Alt>Button3.


Run script after DHCP acknowledge or after succesful WiFi connection

The script below basically polls for output of ip addr. Once there is something , the while loop terminates, and moves on to launch whatever else you specify. Replace wlan0 with your wireless interface, and zenity --info part with whatever script you want to run. You may want to use exec /path/to/script.sh arg1 arg2 to replace the process.

#!/bin/bash

wifi_info=$(ip -4 -o addr  show wlan0 )

while [ -z "$wifi_info" ];
do
   wifi_info=$(ip -4 -o addr  show wlan0 )
   sleep 0.25
done

zenity --info --text="WE'RE ONLINE!!!"


At the terminal prompt, you can start your Desktop Environment with the command startxEnter.  Copy off everything you want to save to get it off the drive.

As to the LiveUSB you used to install Ubuntu, I would suggest recreating it after copying off all the files you need to preserve on that USB.   Redownload the version of Ubuntu you wish to use from https://ubuntu.com/download/flavours or https://ubuntu.com/download and verify it was not corrupted in transit.

Once verified, open Rufus again; if it isn't version 3.8, I would download the current version and install that.

Boot selection should be set to Disk or ISO image.  Click on SELECT to the right of the Boot selection field then choose the ISO file you just verified.

Partition scheme should be GPT.

Quick format should be checked.

Create extended label and icon files should be checked.

Click START

When it completes, boot your Ubuntu PC from the Live USB you just created, and reinstall Ubuntu (or the flavour you choose instead of vanilla Ubuntu).

When you reach  6. Allocate disk space  pick the option to erase the drive and (re)install Ubuntu.


You hit upstream bug https://pagure.io/SSSD/sssd/issue/3016. It's quite an old one, so perhaps you should consider upgrading..


Unable to install Virtualbox 5.1 on Ubuntu 16.04

These are all dependencies for most recent VirtualBox 5.1.18 installed from the Oracle repository for Ubuntu 16.04.2 LTS:

Dependencies:
5.1.18-114002~Ubuntu~xenial - debconf (18 1.1) debconf-2.0 (0 (null)) libc6 (2 2.15) libcurl3 (2 7.16.2) libdevmapper1.02.1 (2 2:1.02.97) libgcc1 (2 1:3.0) libgl1-mesa-glx (16 (null)) libgl1 (0 (null)) libpng12-0 (2 1.2.13-4) libpython2.7 (2 2.7) libqt5core5a (2 5.5.0) libqt5gui5 (18 5.3.0) libqt5gui5-gles (2 5.3.0) libqt5opengl5 (18 5.0.2) libqt5opengl5-gles (2 5.0.2) libqt5printsupport5 (2 5.0.2) libqt5widgets5 (2 5.2.0) libqt5x11extras5 (2 5.1.0) libsdl1.2debian (2 1.2.11) libssl1.0.0 (2 1.0.0) libstdc++6 (2 5.2) libvpx3 (2 1.5.0) libx11-6 (0 (null)) libxcb1 (0 (null)) libxcursor1 (4 1.1.2) libxext6 (0 (null)) libxinerama1 (0 (null)) libxml2 (2 2.7.4) libxmu6 (0 (null)) libxt6 (0 (null)) zlib1g (2 1:1.1.4) psmisc (0 (null)) adduser (0 (null)) virtualbox (0 (null)) virtualbox:i386 (0 (null)) virtualbox-guest-additions-iso (0 (null)) virtualbox-guest-additions-iso:i386 (0 (null)) virtualbox-ose (0 (null)) libasound2 (0 (null)) libpulse0 (0 (null)) libsdl-ttf2.0-0 (0 (null)) kmod (16 (null)) kldutils (16 (null)) module-init-tools (0 (null)) linux-headers-generic (16 (null)) linux-headers-generic-pae (16 (null)) linux-headers-686-pae (16 (null)) linux-headers-amd64 (16 (null)) linux-headers-2.6-686 (16 (null)) linux-headers-2.6-amd64 (16 (null)) linux-headers (0 (null)) linux-image (0 (null)) gcc (0 (null)) make (16 (null)) build-essential (16 (null)) dpkg-dev (0 (null)) binutils (0 (null)) pdf-viewer (0 (null)) libgl1 (0 (null)) virtualbox (0 (null)) virtualbox:i386 (0 (null)) virtualbox-5.1:i386 (32 (null))
Provides:
5.1.18-114002~Ubuntu~xenial - virtualbox (= )

From that we can see that all dependent packages are available through the default installation. No need to install any future package release.

You may have accidentally downloaded or installed a Virtual Box version built for Ubuntu 16.10 or another distribution. Please see this answer on how to add the Oracle repository to your sources and make sure you use the appropriate Ubuntu release for the sources line:

lsb_release -sc


Having trouble sharing screen in ubuntu 18.04

My problem was solved after doing the following steps:

sudo vi /etc/gdm3/daemon.conf
Uncomment #WaylandEnable=false
Reboot.


How I can deactivate the Ibus Input Method on Ubuntu Gnome?

You can use the "Input Method" tool, which is the GUI of the im-config package. To open im-config simply run that name in Terminal (CTRL + ALT + T), click OK on the first window you get, then on the second select Yes which should take you to a section which looks like this (there may be some differences between our systems in this section):

In this section you will be able to select (as you can see) a different input method from ibus if you so wish.


Is there a good reason to have separate /home and data partitions?

Go for whatever you like.

I have my data on a /discworld partition because at work I need more than 1 operating system (RedHat, CentOS, SUSE, Ubuntu, SCO) and it is a lot easier to have all my software in that partition (I use separate /home's per install and symlink the directories to my partition).

The data is also on a 2nd disc so I can pull it out of the system and insert it elsewhere.

For a single OS it does not really matter. Nowadays installing Ubuntu can be done without loss of /home (even if it is not in a separate partition).

If you do not hibernate/suspend you can even go without a swap (my notebook has an ssd as 1st disc and boots in 15 seconds so I just turn it off when I do not need the machine).

  Please tell me if this is a stupid idea.

There are no stupid idea's when it comes to partitioning. Just what I or others believe to be sane does not make your idea stupid. Just different. Some methods we all agree on are dubious but then again...

Example: a partition for /var is not really needed for most of us. When you use MySQL /var is going to be filled with larg(ish) files so it can run full. But you can also put the SQL database elsewhere. So it might look weird at first but it is also a valid argument to store the SQL database elsewhere (like in a user partition).

Any setup will have its flaws and good points. Just make sure your setup ticks all your good points.


Screen brightness for hp probook 4540s doesnt work?

I was stumped by this one also, but all you have to do is add the acpi_backlight=vendor

here:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

http://www.techjail.net/solved-brightness-problem-in-ubuntu-12-04-precise-pangolin.html


The output of ubuntu-drivers devices is not hard to understand. Open the terminal and type:

sudo apt-get install fglrx-updates
sudo reboot

After the computer reboots Ubuntu will be using the proprietary graphics driver that is compatible with your AMD Radeon TROPO XT2 R9 M375 graphics card.

This is the most up-to-date graphics driver for your graphics card that the default repositories of Ubuntu 14.04 have, but if you upgrade from Ubuntu 14.04 to Ubuntu 16.04 at the end of April of this year, you will be able to install a more up-to-date graphics driver from the Ubuntu Software Center.


This device is a 056a:00da device, which should work in 11.04, while the xinput driver doesn't know anything about the CTH-461 it's fairly flexible so long as the kernel driver is working.

See line 1469 of linux-source-2.6.38/drivers/input/tablet/wacom_wac.c:

const struct usb_device_id wacom_ids[] = {
        { USB_DEVICE_WACOM(0x00) },
        { USB_DEVICE_WACOM(0x10) },
        { USB_DEVICE_WACOM(0x11) },
...
        { USB_DEVICE_WACOM(0xD8) },
        { USB_DEVICE_WACOM(0xDA) },
        { USB_DEVICE_WACOM(0xDB) },
        { USB_DEVICE_WACOM(0xF0) },

Now to get a handle on what your problem is you need to confirm with us that the wacom driver is loaded using the lsmod command. You should see wacom in the list. Next you should report the contents of /var/log/Xorg.0.log (not all of it) plug and unplug the device to get a fresh set of logs. If nothing appears, report that too.


Why does the "d" key minimizes and restores the terminal?

On the user account, check the Keyboard control panel, under Shortcuts.  "Minimize window" is set to "Disabled" on my system, but it may have accidentally been set to the letter d on your system.

If it is, you can hold down the mouse on that row until it says "New shortcut...", then press Backspace.


is there a basic photo viewer that lets you flag individual photos for batch processing?

Shellscript tool with GUI

I modified a shellscript tool, that can create a list of selected pictures selected.txt. You can use the Enter key to select a picture, or the Escape key to skip it.

You can also redo the selection by appending files to the list, and you can skip the remaining files with the 'Skip other pictures' window.

The following files are created (in the current directory)

names.txt    # a list of all the files in the current directory tree
list.txt     # a working list of selected files, that may contain duplicates
selected.txt  # the final list of selected files

You need the viewer feh to show the pictures and xterm to help get the window with the question on top (according to tests in Kubuntu and Lubuntu).

sudo apt install feh xterm

The shellscript is tested in

Lubuntu and Ubuntu 16.04 LTS
Ubuntu 17.10
Kubuntu Bionic (18.04 LTS).

Here is the shellscript:

#!/bin/bash

# Copyright 2018 Nio Wiklund
#
# GPLv3: GNU GPL version 3
#
# This shellscript works with files in the current directory and its
# subdirectories. There is also an assumption that you
#
# batch resize the files to jpg and/or png files.
#
# This can be modified in the lines starting with 'find'
#
# You may need to select another 'sleep time' in order to
# get the question window on top of the picture window,
# if the files load slowly into the file viewer 'feh'.
#

########################################################################

marker () {

 xterm -geometry 10x1 -e bash -c \
 "zenity --title='Select this picture' --question --text='Select picture?' \
 --width=240 2> /dev/null && echo $1 >> list.txt"
}

skipper () {

 ( zenity --title="Skip other pictures" --width=480 --height=240 \
 --question --text="Are you sure that you want to skip all the other pictures?" \
 2> /dev/null && > skip ) &
}

counter () {

 cnt=$(wc -l "$1" | sed 's/ .*//')
 echo "$cnt pictures are listed in '$1'"
}
########################################################################

# main

########################################################################

if test -e skip
then
 rm skip
fi

if test -s selected.txt
then
 zenity --title="Create a new list or append?" --question \
 --width=360 --text="You can use the mouse, but maybe it is
 easier to use the 'Enter' and 'Escape' keys

 Append to previous selection?" 2> /dev/null

 if [ "$?" == "0" ]
 then
  cp selected.txt list.txt
 else
  > list.txt
 fi
fi

skipper

find -iname "*.jpg" | sort > names.txt
find -iname "*.png" | sort >> names.txt
counter names.txt

ifs0="$IFS"
while IFS='' read -r line || [[ -n "$line" ]]; do
 if test -e skip
 then
  break
 fi
 feh -g 1024x1024 "$line" & pid=$!
 sleep 0.5
 marker "$line"
 kill "$pid"
done < names.txt
IFS="$ifs0"

if test -s list.txt
then
 sort -u list.txt | tr -s '\n' '\n' > selected.txt
 counter selected.txt
else
 echo "No picture selected"
fi

Screenshots

The following screenshots were created in Ubuntu 17.10 (with Wayland).

feh-create-new-list-or-append.png:

feh-select-picture.png:

feh-skip-other-pictures.png:

feh-terminal-output.png:


Adding displays through usb-c dock crash

Not really a solution, just my experience so far:

I've had/have similar issues with the DA200 USB-C Adapter. The only thing I found out was that it could have something to do with enabled GNOME extensions and an erroneous calculation on screen height (or smth. along this way).

Today was the first day I've tried again and so far it did not crash (having installed the newest firmware and all updates)


storing a command as an icon in the ubuntu dock

for APT Install:
copy the flameshot.desktop file from /usr/share/applications/ to ~/.local/share/applications/ with below command..
sudo cp /usr/share/applications/flameshot.desktop ~/.local/share/applications

then open the file with below command
gedit ~/.local/share/applications/flameshot.desktop

and edit the content to match below content..
Exec=flameshot gui

Then open all apps and choose Flame shot to Add to Favorites..

for SNAP Install:
The flameshot installed by snapd is in /var/lib/snapd/desktop/applications , open the flameshot file there with superuser priviledges and edit the line from:
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/flameshot_flameshot.desktop /snap/bin/flameshot

to this:
 Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/flameshot_flameshot.desktop /snap/bin/flameshot gui

now, launching from the icon works, if the icon itself doesn't appear in the menu, then do what is mentioned with in link: here


wifi does not work on hp pavillion. got report from wireless info script

The problem is evidently the same as with this question. You can test it out by doing

sudo modprobe -r acer-wmi
sudo rfkill unblock all

You can then make this permanent by doing

sudo su
echo "blacklist acer-wmi" >> /etc/modprobe.d/blacklist.conf


Installing brackets needed libgcrypt11 on Ubuntu 16.04

Due to the dependency issue of libgcrypt, the solution can be found here

https://brbsix.github.io/2015/10/29/fix-missing-libgcrypt11-for-brackets-text-editor/

Brief steps:

  Unpack Brackets
  Remove the package’s dependence on libgcrypt11
  Copy the library into the unpacked package directory
  Rebuild the package
  Install


I followed the steps mentioned under manual installation on this page https://linuxconfig.org/how-to-install-steam-on-ubuntu-16-04-xenial-xerus and installation did run flawless on 64-bit ubuntu 16.10.

sudo apt-get install wget gdebi libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libc6:i386
wget http://media.steampowered.com/client/installer/steam.deb
sudo gdebi steam.deb

since I ran it on a virtual machine without proprietary drivers the launch of steam did spit out some errors of swrast not found but this should solve your installation troubles.


I was experiencing a similar issue when running Kexi on my Linux Mint 17.2 system:

...
kexi(9324) fileModule: Failed to load configured file module "kfilemodule"
KCrash: Application 'kexi' crashing...
...

The solution in my case (found here) was to manually install some KDE-specific packages:

$ sudo apt-get install -y kdelibs-bin kdelibs5-data kdelibs5-plugins

Initially I thought this was a packaging issue specific to Kexi, but since it seems to affect multiple KDE applications, I guess it might be a KDE packaging problem.


unintentionally 'moved'(?) Ubuntu by accidentally performing re-install

Seems you have been messed up your bootloader (so the local disk has no bootloader, the USB has two).
If you have a backup of the original operating system's bootloader, you can try this:

Restore the bootloader on the original disk
Remove the local disk and plug in two USBs
Install Ubuntu on USB


I accidentally formatted the wrong volume - is it possible to restore the old Ext4 Filesystem?

As long as you didn't completely shred your drive, if it was formatted fastly (it means, it just deletes the information, but it is still available in the hidden). It is possible, but requires amounts of time and a place to recover the files to (You should not recover to the same harddrive as they are located on)

I found this by searching, may wanna give it a try ?

http://www.cgsecurity.org/wiki/TestDisk

Step by step:

http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

Make sure to recover to an external hard-drive, and best of luck!


Ubuntu 16.04 suddenly stopped connecting to wi fi connections available

Here is what I think it might be . Probably your kernel might not support the driver and has failed to detect it. You can go to your advanced ubuntu boot option while restarting and boot with a different kernel version. I had a problem with my wireless driver not detecting and I realised that my ubuntu was booting from kernel version 4.14 generic, so I booted from 4.10 generic it worked like a charm.


Getting third monitor to work over HDMI - Ubuntu 14.04

I'm answering my own question in the hopes that future web-searchers can find a solution sooner than I.

Anyways: I was unable to get the HDMI output to work with my third monitor. However, connecting the same monitor to my laptop over VGA rather than HDMI worked instantly. Ubuntu autodetected the monitor immediately.

I hope this helps someone in the future.


When I press a volume up/down key, what shell command does it send?

Personally, I use two shortcuts , one bound to CtlrAltArrow Up for volume up and CtlrAltArrow Down for volume down, which you can set in Settings -> Keyboard -> Shortcuts -> Custom.

Shortcuts are bound to two script files, given full path (though you don't have to place the commands bellow into scripts necessarily ).

For volume up, the command in script file is:

amixer sset Master 10+ && notify-send "volume up 10" && sleep 0.25 && killall notify-osd

And for volume down the other command is

amixer sset Master 10- && notify-send "volume down 10" && sleep 0.25 && killall notify-osd

As you can guess, the two commands raise and lover volume in increments of 10 depending on your sound card. You can also use 10%+ to increase volume up 10% from what the current value is, but keep in mind that when decreasing the volume, the current value will get smaller and smaller, so it will be difficult to raise it back from smaller number (because 10% of small number will also be small)


I have dual booted my hp laptop and now having BIOS issues

BIOS
HP Elitebook 820 G3
You have BIOS version 01.33.
There's a newer BIOS available, version 01.47 Rev.A, dated 5/11/2020, and it can be downloaded here.
Note: Verify that I have the correct web page for your model #.
Note: Have good backups before updating the BIOS.


Wireless is disabled by hardware switch. Wifi doesn't work! (hard blocked: yes, Lenovo Y580, Ubuntu 13.10)

For my Lenovo Thinkpad's this worked.

Type this in a terminal(that can be opened with Ctrl+Alt+t):-

sudo nano /etc/modprobe.d/blacklist.conf

and add this at the end of that file:-

  blacklist ideapad_laptop

and then save the file.

Now reboot.


Deleted Ubuntu partition accidentally, Grub Rescue problem

I think you need to boot from an Ubuntu live cd/usb to fix that problem. You want to boot from the live USB (try Ubuntu without installing) and reinstall GRUB in the MBR. Some relevant instructions are here.

As a general rule: Use Windows tool to fix windows issues and Linux tools to fix linux issues. That will save you a lot of problems in the future.

P.S. Even though this approach should fix your problem I may have missed some important details, so do some research (and backup) before trying those things.


SSD Installation error: Read-only file system: '/target/bin'

Figured it out - the old SSD (that died) was of an earlier generation and used ATA mode. The newer drive didn't like this - I set the BIOS to AHCI mode and it worked okay.


Installing Quartus (Altera|Intel, v13.1) with 32 bit Libraries

Have a little faith in your ability to solve a problem and dig a little deeper!

By viewing (ie, using vim setup.sh) the shell file, a list of the dependencies it checks for could be btained. Inside the shell script, I found:

for item in libstdc++ glibc libX11 libXext libXau libXdmcp freetype fontconfig expat

Installed equivalent Ubuntu libraries:

sudo apt-get install libstdc++6:i386 libc6:i386 libx11-dev:i386 libxext-dev:i386 libxau-dev:i386 libxdmcp-dev:i386 libfreetype6:i386 fontconfig:i386 expat:i386

After viewing the script some more and recognized that the 32bit library dependence would print regardless of module existence from observing the shell code, I went back to the actual error, as above.

setup.sh: line .../QuartusSetupWeb-13.1.0.162.run: Permission denied
setup.sh: line 106 exec: ... 162.run: cannot execute: Permission denied

In particular, the commands using bash setup.sh or sudo bash setup.sh couldn't then execute the .run files, because of the permission properties of these files. A simple fix, allowing these listed files executable permission, solved all the problems.

chmod +x QuartusSetupWeb-13.1.0.162.run


Show unity launcher on with key combination

You can use the "Super" button for this. Most keyboards and notebooks have a button with a "Windows" logo on it.

As long as you press the button, the launcher is visible.

An other solution, if you press Alt+F1, after that the Launcher appears, press again Alt+F1, the Launcher disappears.


Auto backup or copy files onto another drive with ubuntu server 16.04

I would take a look at "rdiffbackup". I use it in the office (although I confess I did not set it up) and it works a treat. It makes a backup of full systems, and I have used the backups a few times to restore a system.

Sorry I can't give full details as I didn't set it up, I just know that's what's used.


When I try to install the haskell platform on 14.04, I get unmet dependencies

This could be because of some conflicts with some PPA.

You could try what is suggested here.

or, alternatively, use

sudo aptitude install haskell-platform

aptitude can offer some more suggestions to resolve dependencies.


I would support your "bug" theory.

However, according to Ayantana Design, the minimise/maximise buttons now work as expected:

Desired solution:
- When the Dash in windowed:
--- 'Close' window decoration closes the Dash
--- 'Minimise' window decoration is inactive (does nothing)
--- 'Maximise' window decoration makes the Dash full screen

- When the Dash in full screen:
--- 'Close' window decoration closes the Dash
--- 'Minimise' window decoration is inactive (does nothing)
--- 'Restore' window decoration returns the Dash to windowed state

As to the "increasing brightness" issue - if you take the above as the expected result - your observation could be classified as a bug - albeit relatively cosmetic.


Separate workspaces, not one huge screen

I had the same question. Apparently there is only a partial solution. Answer from : How to stop windows from moving past the edge of a workspace?

  This is currently a defect in Unity/Compiz. The best you can do is to
  enable edge stickiness. In ccsm (not installed by default because it's
  unstable as all get out), go to Window Management and enable "Snapping
  windows".

Install ccsm by sudo apt-get install compizconfig-settings-manager

  Make sure all 4 check boxes are checked and set resistance to 60 and
  attraction to 20.

  This should help you keep your windows on a workstation.

  However this is one of those taste things. Some people want things to
  span like this, others hate it. I personally am in the hate it group.
  I hope I am wrong, and that someone has a magic answer, but this is
  the best I have been able to find.

  Just to make it clear, this won't stop the behavior, but it will make
  it a bit easier to manage.


It depends on how you've set up Ubuntu and what choices you make during the re-installation.

Of course, before going any further, back up!

First, about your current installation...  Ubuntu is installed in the root partition (/).  That partition will be erased.  If your /home partition is separated, then you are fine.  If it is just another directory in /, then yes, that too will be erased.  If you don't know, then run df -h.

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2          -     -     -   2% /
/dev/sdb1          -     -     -  41% /home

This shows that my /home is separate from /.  If /home doesn't appear, then it is part of /, and it will get erased.  This is true for any other partition...  If /etc, /var, etc. do not show up here, then it'll be erased along with /.  You said you can't boot up so you probably cannot run the df -h command, but you can use a boot disk and run gparted to take a look at how everything is organized.

Anything of value in / that you want, you should use a boot disk and an external drive and copy it out manually.

During installation, you will be presented with the image here, under "Installation Type".  You should pick "Something else".  You will then be presented with images similar to those shown here.  (I can't remember if it uses gparted -- I think it does.)  You'll be able to choose which partition is mounted as /, /home, and so far.  The key here is to select your home partition to be mounted as /home but do not have it erased.  / will be erased...there's nothing you can do about that.

In summary, you need to be weary of two things:

Anything of value to you isn't currently in the root (/) partition.  If it is, use a boot disk and either move it to an external drive or move it to another drive if you have more than one on the computer.  Everything in (/) will be deleted.
During installation, carefully select which drives are being erased.  Ubuntu 18.04 no longer has a tmp partition.  If memory serves, this means only two partitions will be marked as reformatted:  (a) the root partition and (b) the EFI system partition which is mounted on /boot/efi .  Anything else won't be erased, provided you are careful and select that option.  (You can make a mistake and choose your /home partition to be mounted and erased.)

Hope this helps!  I just had to go through this a month ago...  Re-installation of Ubuntu took less than 15 minutes.  Moving files out of the root partition to a place that won't be erased took well over a day.  But, obviously, such preparation is worth it and I wouldn't rush it...

Good luck!


Volume Control keys (Mute, Volume Up/Down) auto-repeat key presses

This seems to be an issue with Medion laptops on Linux.  I have this problem as well, and there are reports here and here of a similar behavior.  It seems that the keyboard of these laptops only sends key press events and not key release events when pressing these three Fn keys.  Not sure if this is a hardware problem or some sort of "misunderstanding" between keyboard and OS.

One possible workaround is to go to Keyboard settings > Shortcuts, and map Windows-F10,F11,F12 to the appropriate command:

sh -c 'pactl set-sink-mute 0 toggle'                            Super+F10
sh -c 'pactl set-sink-mute 0 0; pactl set-sink-volume 0 -5%'    Super+F11
sh -c 'pactl set-sink-mute 0 0; pactl set-sink-volume 0 +5%'    Super+F12

and instead of pressing Fn-F10,F11,F12 you'd press Windows-F10,F11,F12.

EDIT: I've posted the answer here.


Konsole doesn't work with some (many?) of Byobu's key bindings.  It seems that Konsole "eats" some of these key presses, unfortunately.  While many terminals work to some degree with Byobu, the best experience will be found with gnome-terminal.

Full disclosure: I am the author and maintainer of Byobu.


If xbindkeys is not reloading automatically after a change you can force it to reload the configuration by using the following command:

killall -HUP xbindkeys


Just copy the file Unity_v5.x.ulf to drive_c/users/Public/Application Data/unity in your wine folder.

If there is no such folder in that path so create. It should works!


Wine runs fine from .wine folder, but not from flash drive

I installed, or at least tried to install Wine on my chromebook and it just wouldn't work.  It appears the chrome flavor of linux is bastardized to not comply with wine, and I suspect this limitation was intentional on the part of Google, but I admit that is speculation.


Try to create a new user account

sudo adduser myname

Then logout, and login into the new user account. Many Compiz/user interface problem was solved by this simple solution.


It's your sql file that's missing the newline. sed was "nice" and made sure its output had a trailing newline.

$ diff <(printf 'x') <(printf 'x\n')
1c1
< x
\ No newline at end of file
---
> x

$ diff <(printf 'x\n') <(printf 'x')
1c1
< x
---
> x
\ No newline at end of file

Notice how the "\ No newline..."-line is positioned according to which file was missing it.


Scroll *one* line at a time in a web browser

As mentioned in this Mozilla support page, You could try changing one (or both) of these hidden settings:

(1) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.

(2) In the search box above the list, type or paste wheel and pause while the list is filtered

(3A) Double-click the mousewheel.default.delta_multiplier_y preference and type in a higher value to make each movement of the wheel cover more ground. For example, you could try 300 or 500. You can keep this tab open and experiment with scrolling in a different tab until you find a value that gives you the speed you're looking for.

(3B) Double-click the mousewheel.system_scroll_override_on_root_content.vertical.factor preference and type in a higher value. For example, try changing 200 to 500. You can keep this tab open and experiment with scrolling in a different tab until you find a value that gives you the speed you're looking for.


Downloaded themes don't show up in Unity Tweak

Try this download to install  the ARC theme, it worked for me.


Boot Issues on Ubuntu 18.04 (Asus Vivobook S14)

I had the same issues.

I install (or update) a new kernel whit ukuu.

After that, the system work fine except because show an error at boot time related at acpi.


App for Syncing between Ubuntu and a very restricted Win7?

First: Do you have any sort of compiler on it? There is one, called Windows Power Shell, that comes integrated with Windows, some editions at least. You may learn it and create a script.
Second: you may use Windows Shared folder and Samba on Linux. After connection, you may use rsync on Linux to pull the data over network to your Linux machine.
Third: Boot that laptop from LiveUSB and do what you want.


No HDMI output (neither sound nor video) after upgrading to 20.04

Apparently it has something to do with the Kernel Version.
The above desribed problem was with Kernel 5.4
After rebooting with Kernel 5.3 the HDMI output worked perfectly fine.
Maybe I have to wait for a fix in 5.4...


lol @

I think I just time traveled back to my childhood.

gparted?

http://gparted.org/livecd.php

Create a bootable cd and use it to select and delete the partitions in question - just dont delete the win 98 partition. once deleted you would have to format the unpartitioned space - u can still use gparted or reboot and use your win 98 to format the unpartitioned space


There are a couple reasons this could be happening.

    First, be sure to format your USB completely, I recommend using Rufus to create the flash drive as it formats it as well as makes the bootable USB for you.

    Secondly, be sure that you give plenty of time for the loading screen to work. Depending on your hardware it could take up to an hour or more. On my laptop it took about 45 minutes to initialize.

    Third, be sure download the proper ISO and check the md5sum. I have noticed many times in the past that the ISO will affect the install. Either an incomplete download, or corrupted version of the ISO can cause this issue. When you download the ISO ensure you are using a wired connection.

This should resolve your issue, but the two main points would be to use Rufus to create the bootable USB drive, and to ensure you are using wired internet when downloading the ISO.


Moving files from several subdirs to a main dir

find /media/DRIVE-N-GO/Backup\ Wiebe/ -type f -name "*.jpg" -exec cp "{}" /media/Elements/jpgs/ \;

You were missing a ;.
The quotes are around the search term for preventing bash from expanding the asterisk
The quotes around the parameter of cp are when some files with spaces in the name are hit - because then cp would fail


Which packages recommended 'Missing Recommends'?

Aptitude can perform some fairly fancy searches

This will show all the packages that have a Recommends that isn't satisfied:

aptitude search '?installed?broken-recommends'

To restrict it to a specific recommended package:

aptitude search '?installed?broken-recommends(PACKAGE)'


Can an exisiting swap partition be merged into a new partition as a logical volume?

As Avinash Raj says, a GPT disk doesn't have the 4-primary-partition limit, so you may be worrying over nothing.

Beyond that, on an MBR disk you can convert a primary partition to a logical partition (with surrounding extended partition) with my FixParts utility, which is part of the Ubuntu gdisk package. There are caveats and limitations, though; see the FixParts page for details.

Alternatively, if your swap partition is the one adjacent to the free space, you can delete it, create a new extended partition, and create a new logical swap partition within the extended partition. Because swap partitions hold inherently transient data, this type of operation doesn't require backing up the data, although you will have to reconfigure the swap entry in /etc/fstab. You'll also need to disable swap before doing this, and maybe perform the operations from a live CD rather than from your regular installation.


Not GUI, only terminal after Ubuntu upgrade (apt-get corrupted)

Your APT package system is broken. This can be difficult to fix.

Perform a fresh install using an installation USB or DVD. If you want to keep your data and configuration, then in the installer, select "Something else". Assign the partitions as they were in previous install, and uncheck the format checkbox. This way, system files will be reinstalled, and your configuration and user files will be preserved.

Still, you always should ensure your backup is up to date before engaging in a system install.


Ubuntu one stream/download rest API calls lead to 404

Hrm, I don't know the cause offhand. The "id=egde%3A" looks suspicious because it looks like an english word and IDs are complex encodings of numbers.  The canonical hostname of streaming should be, as far as I know, "streaming.one.ubuntu.com"; probably nothing else is guaranteed to work.

So, to get the index of artists, then pick the first artist, the first album, and stream the first song, your conversation might look like this:

https://streaming.one.ubuntu.com/rest/getIndexes.view?&u=07136529&p=92874536&v=1.2.0&c=android

https://streaming.one.ubuntu.com/rest/getMusicDirectory.view?id=dcec086c78a8c170df18d500dd8f0b46&u=07136529&p=92874536&v=1.2.0&c=android

https://streaming.one.ubuntu.com/rest/getMusicDirectory.view?id=7b6b42accb9c20d3ac6c3cc4c34cc8e5&u=07136529&p=92874536&v=1.2.0&c=android

https://streaming.one.ubuntu.com/rest/stream.view?id=eLDxbcnwR1it2WTBVCSmXQ&u=07136529&p=92874536&v=1.2.0&c=android


Does it happen on all browsers? You could have a problem with the default MIME type. Let's learn what the browser sees. Install Firefox Web browser, and then the Firefox extension, Live HTTP Headers. Now, what MIME type or Content-Type was sent to the browser? You will see many headers, but the important one now is Content-Type. For XHTML you might see these among others...

HTTP/1.1 200 OK
Date: Sun, 25 Dec 2011 19:48:00 GMT
Server: Apache/2
Content-Length: 750
Content-Style-Type: text/css
Content-Type: application/xhtml+xml

Now look at your Apache config files, specifically the AddHandler and AddType directives. The default type is text/html. What is your Apache using?


Install the GNOME Shell 3.14 with this command:

sudo apt-get install gnome-shell

And for GNOME 3.16 or future GNOME versions

sudo add-apt-repository ppa:gnome3-team/gnome3-staging
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell


Unable to detect second display via HDMI with NVIDIA X Server Settings?

You tried to access "Display" from the menu ?
Some times in Nvidia X Server doesn't appear both displays.
Or try to reboot with botj monitors plug in and then acces Nvidia X Server again or Display from the menu.


How to install python packages with virtualenv without installing them globally?

After you create the virtual environment, you need to activate it:

$ virtualenv myenv
$ source myenv/bin/activate
(myenv) $ pip install pytest

or for Python 3:

$ virtualenv -p `which python3` myenv
$ source myenv/bin/activate
(myenv) $ pip3 install pytest

When you are finished using the environment, you can deactivate it like so:

$ deactivate


What is the difference between Ubuntu Kylin and Ubuntu with default language chinese?

It's just to be used as a national distro. Really deep there is no main differences between  them but just to meet the needs of the Chinese government.

The Kylin OS was formerly developed by academics at the National University of Defense Technology in China. It was based on FreeBSD and was intended for use by the Chinese military and other government organizations. In 2013, the Chinese Government reached an agreement with Canonical for them to release a Chinese version of the popular Ubuntu distro and it will be used as a national OS.

For more information and check this.


How to start application in specific workspace programmatically on GNOME 3

Not exactly a "programmatic" solution, but you may use a GNOME shell extension called Auto Move Windows to achieve your goal (assuming you meant Ubuntu 17.10 with GNOME shell). This extension lets you

  Move applications to specific workspaces when they create windows.

Once the extension is installed and activated, open its settings and click on "Add Rule" to select an application and a workspace for the application.


These 2 sites may help diag the issue.

https://wiki.ubuntu.com/X/Troubleshooting/Freeze

https://wiki.ubuntu.com/X/Debugging


Do an ifconfig to see what interface designation the adapter has been given(wlan0, wlan1 etc.) then make sure in your wireless settings for your access point that that particular interface is selected.


How to add a shortcut for Humble Bundle games in Unity?

Did you try creating a a launcher for them. Right click on the Desktop~

This is the way to have it on Desktop.

If you want to add it to the launcher just right click on the Item and choose Keep in Launcher

I hope this helps. I haven't tried out the Humble Game Bundle but it works for Eclipse since Eclipse is also a executable file that cannot be searched from Unity Search

How can I edit/create new launcher items in Unity by hand?


How do I copy the contents of every file in a list into another file?

Don't use simple command substitution to get filenames (that could easily break with spaces and other special characters). Use something like xargs:

xargs -d '\n' -a list_of_files.txt cat > all_compounds.sdf

Or a while read loop:

while IFS= read -r file; do cat "$file"; done < list_of_files.txt > all_compounds.sdf

To use command substitution safely, at least set IFS to just the newline and disable globbing (wildcard expansion):

(set -f; IFS=$'\n'; cat $(cat list_of_files.txt) > all_compounds.sdf)

The surrounding parentheses () are to run this in a subshell, so that your current shell isn't affected by these changes.


Cannot send email through Alpine 2.02 (via Comcast) on Ubuntu 12.04 LTS

It looks like you may be using the incorrect SMTP port.

Port 587 is usually used for plain SMTP [or STARTTLS].
Because you are wanting to use TLS, comcast lists port 465 instead.

Try changing your config line to:

smtp.comcast.net:465/tls/user=donaldjharrison@comcast.net


Since you have a 64-bit cpu, you should install the 46-bit version.

Even though you don't need it for the amount of memory you have, you might want more in the future, and there is no way to change from 32-bit to 64-bit.

I believe you should install 64-bit systems whenever you have a choice - there's really no reason to use 32-bit.


Weird log in menu after upgrading to Ubuntu 14.04.2

For some reason I have to use the pre-set wallpapers so that this won't happen. Now it boots up properly.


A required package was not found - Ubuntu SDK default template has this error

The problem is that you are trying to build something that requires packages only available on 14.10, on 14.04.

You will need to build in 14.10. You can do this from the SDK by setting up an appropriate kit for building your package, and it will create a chroot of 14.10 to build the package for a phone.


Finally fixed it.

The culprit was this line in my config:

fastcgi_param   PATH_TRANSLATED     $document_root$fastcgi_path_info;

If I commented this line, everything worked fine. However I saw this in almost every post I read about Nginx configs, so it bothered me. When looking at my configs for the millionth time, I saw that cgi.fix_pathinfo (in php.ini) was set to 0, where it should have been 1. The default value PHP uses is also 1, so I must have changed this in my debugging hours, because I remember reading about this value, and thought it was set correct.

Anyway, maybe it helps anyone Googling for this issue.


Other people are having this problem. Check this thread in Dropbox forum.

There is a workaround that worked for me that is using Dropbox through a proxy. I recommend a private proxy for security reasons.

Here are instructions on how to setup a proxy using AWS.
Then setup Dropbox to use the proxy and your files should start synching again.


Convert from armhf to arm64 on Raspberry Pi 3 B running 64-bit Ubuntu Server 18.04 LTS (Bionic)

Can I convert the architecture of my Ubuntu 18.04 LTS server from armhf to arm64? I've already got it doing a "multiarch" thing, but I'm not sure that's the best solution. How should I proceed?

Yes, you can, but here there be dragons - the initial conversion process will have to be largely manual, and even afterwards you'll have to initially pay very close attention to what your package manager intends to do. I've done multiple conversions - from i386 to amd64, from armel to armhf to arm64, and the other way around - from amd64 to i386 and from arm64 to armhf to armel. Why? Because I can.
First thing to note - if you are cross-grading from less advanced architecture to more advanced (that is, i386->amd64 and armel->armhf->arm64) you need to first install the target architecture kernel and boot into it and only then cross-grade the rest of the packages. If you're cross-grading the other way around (I've done so on a system after I found out 64-bit packages leave too little free RAM) you need to first transition all of the packages to the less advanced architecture and only then transition kernel (if such is available in lesser architecture at all).
Second thing to note - APT is not smart enough to cross-grade packages safely, it has a tendency to remove critical components if it believes some of the dependencies are broken. Until all of dpkg, apt, and aptitude (if used) and all of their dependencies are installed in the target architecture - the cross-grading will absolutely have to be done manually, though it should be possible to at least partially script it.
Now onto the process of cross-grading:

make sure you have some way of booting the system and chroot'ing into it in case things go south, e.g. on Pinebook Pro that normally boots from eMMC it can be achieved by keeping around a microSD card with another OS, on x86 - just keep around a live CD/USB.
add the target architecture to dpkg, e.g. dpkg --add-architecture arm64
update APT sources, e.g. apt update
install the kernel in target architecture, e.g. apt install linux-image-arm64:arm64, reboot into that new kernel
open at least a couple of root terminals, especially if you don't have root password and use sudo: sudo -i. Can be quite useful to also install mc and keep it running in one of those root terminals - it can make some recovery tasks easier.
use something like apt-rdepends to obtain full recursive list of all dependencies for the target architecture versions of dpkg, apt, and, optionally, aptitude, download all of those packages using apt download <package1> <package2> .... Do the same for sed, tar, coreutils, findutils - those are runtime dependencies for dpkg, and installing those manually will reduce the chances of getting broken system when moving onto automatic phase.
Use dpkg -i <package_file> to install all the downloaded packages one by one, starting from the most core dependency and moving onto dependent packages - this essentially "upgrades" the old architecture packages with the new architecture packages, correctly removing old files and installing new ones for non-multiarch packages like dpkg and installing new in parallel with old for multiarch packages like libc6.
Once you have new architecture version of apt installed you may run apt update and attempt apt -f install to install/cross-grade any missing dependencies for the target architecture, but be careful to make sure APT doesn't try to remove any packages related to package management or networking - without those the system can still be recovered, but the process is rather tedious. If you see APT proposing to remove any of those critical packages - fall back to apt-rdepends and installing missing dependencies manually.
Once you had at least one successful run of apt -f install you should run apt full-upgrade at least once - it will likely pick up more packages in target architecture that still need to be installed.
...
PROFIT!!!

How can I systematically go through all of the apt packages I have installed, and replace the armhf ones with arm64 where possible/available?

The way I do it is using aptitude and piping output through grep searching for old architecture, e.g. aptitude search ~i | grep :armhf. For all the found packages - first, attempt to install the new arch version, e.g., if the above command lists firefox:armhf then just do apt install firefox and that should replace armhf version with arm64. Eventually only multi-arch packages will be left installed, at that point it should be possible to just purge all the packages returned by aptitude search ~i | grep :armhf. Once all old architecture packages are purged you should be able to run dpkg --remove-architecture armhf.


Open terminal from Nautilus right-click menu

The right-click desktop, "Open in Terminal" option is in recent Ubuntu versions provided by the Gnome Shell desktop extension because it is not anymore nautilus that manages the desktop. This option is however consistent with the same right-click option in Files (nautilus).

Many users will prefer the current behaviour, where the right-click context menu opens the terminal in the current folder. The context menu is also aimed for that: have an action that applies to the object you are working with. In this case, have an action that opens the terminal in the folder you are currently working in. By extension, it is normal that a right-click on your desktop would open the terminal in the Desktop folder so you immediately can work with the files on your desktop.

If you just want a standard launching behaviour, there are enough alternatives.

An icon on the Dock can give you convenient one-click access to a terminal opening in your home folder - you do not even need to see the desktop for this
The build-in Alt+Ctrl+T is by far the quickest way to launch quickly launch a terminal opening in your home folder, anytime, anywhere.
You could remove nautilus-extension-gnome-terminal to remove this right-click option that does not behave like you prefer, and instead add a custom right-click menu option through a nautilus script (very easy to do) or a nautilus python script (see second part of the accepted answer, less easy, but integrates better). (This also answers your query on how this right-click menu item is implemented, not through a .desktop file, but through a nautilus extension).


What is the Ubuntu Accomplishments project?

What is it?

The Ubuntu Accomplishments project is designed to provide a means in which you can be awarded trophies for different types of accomplishments in the community and elsewhere. The project is designed for Ubuntu's needs, but actually supports any community and project.

Basically it is a trophy cabinet.

  Features:

Browse a Library of Opportunities: A wealth of different opportunities are available in the community and on your computer that you can explore.
Read Step-By-Step Instructions: For each opportunity read step-by-step instructions of how to participate, complete with tips and tricks, pitfalls, and useful reading and support resources.
Find What You Need...Fast: Opportunities can be filtered by category and sub-categories to find the right kind of opportunities that interest you.
Discover Accomplishments Automatically
Deep Desktop: Accomplishments in the community and on your computer are automatic; displaying notification bubbles to indicate when you have accomplished something new.
Deep Desktop Integration: Ubuntu Accomplishments integrates into your Ubuntu desktop with quicklists, hi-res icons, and a Unity dash lens to access your trophies and opportunities right away.
Showcase Your Accomplishments: Your trophy collection is easily accessible inside the My Trophies pane, and ready to show to your friends and family.

  Requirements:

Ubuntu 12.04 Precise Pangolin (or higher).
You need to have a working UbuntuOne Account

  Installation:

sudo add-apt-repository ppa:ubuntu-accomplishments/releases
sudo apt-get update
sudo apt-get install accomplishments-daemon accomplishments-viewer ubuntu-community-accomplishments

  Screenshots:

  More information:

Official Website
jonobacon.org
YT example by jonobacon


Can see samba shares but not access them

Name Resolution with Samba

I had the same problem with windows 7
To fix it All i had to do was change smb.conf

In terminal run

sudo gedit /etc/samba/smb.conf

Then change

wins support = no

name resolve order = lmhosts host wins bcast

To

wins support = yes

name resolve order = wins lmhosts host bcast

Then restart samba

sudo service smbd restart


Dual Boot: GRUB disappeared, boot-repair not working and linux partition cannot be accessed

I think you are trying to fix the wrong issue.

You can get a bootable Ubuntu with Secure Boot enabled even if it is not detected (caused by non-standard UEFI firmware behavior) or you somehow lost the EFI binaries on the EFI system partition.

Have a look at: How to use the Linux Foundation's PreLoader?

   Sadly almost no one cares about getting Secure Boot to work properly. If boot-repair fails it has to be an evil Microsoft, the reptilians or some other conspiracy.


Have SSD with Windows 7, ubuntu 13.04 installed but GRUB does not work

I'm having the same problem.

My "work" laptop ... Lenovo w530 came with Windows 7 Enterprise
and two partitions:
500MB boot partition
179GB rest of disk partition

I used clonezilla to copy that entire disk to a larger 320GB drive then resized the Windows partition back to just the 180GB size so I could install ubuntu 13.04

Installed Ubuntu as normal and it installed Grub but on reboot the machine boots directly into windows and not to the GRUB menu screen?

I've reinstalled Grub twice now and the same thing.  So I'll have to look back at this 2 partition scheme Lenovo preinstalled and see whats different about it.


Default state of apport messages in 14.04

No, they are not.
I'm using Ubuntu desktop 14.04.2 and never had a error reporting pop-up messages up until i installed Oracle VirtualBox. While Oracle Virtual Box runs just fine, and does what it's designed to do, now after the install, upon rebooting the Ubuntu, I get pop-up crash/error messages generated by apport and it's annoying as hell.

There is a way to disable it, look at:

/etc/default/apport

There is a flag you can set to: enabled=0

and that will disable the whole error reporting shenanigans.

Do it at your own discretion, and if you need to turn it back on, just change the flag back to =1 and reboot.


How do i get Ubuntu 13.04 installed in HP Pavilion dv4 series Entertainment Notebook PC

You need only to install.  Ubuntu standartly support those buttons so i already use on my hp. İf you will get wifi problem only install it.


That card reader hates that particular SD card & just won't read it. Or sometimes it gives errors (that could corrupt the card too).

Stop using them together.

Try a good USB card reader instead.


Windows Boot Loader not letting GRUB be default Loader

Have you tried changing the boot order in your BIOS/UEFI settings?

You can usually get to your BIOS/UEFI settings by pressing DEL, F2 or F11 right after powering on your PC. Set your HD with Ubuntu or Ubuntu's EFI entry as the first boot option and save your settings.

Your PC will restart and boot using GRUB by default.


Can I apply a different GTK3 theme from the main one to an individual application?

You can use the GTK environment variable GTK_THEME=elementary to launch an app with the elementary theme. For example, running GTK_THEME=elementary pantheon-files will launch the elementary Files app using the elementary GTK theme.
To get this to apply every time you launch a specific app, your best option is likely to create a custom .desktop file (launcher).
Create a custom .desktop file

Open your file browser
Navigate to /usr/share/applications/
Copy the launcher (highlight and Ctrl+C) for the app you want to launch with the elementary theme
Navigate to ~/.local/share/applications/ and paste the launcher (Ctrl+V)
Right-click and open the launcher with a text editor
Modify the line starting with Exec= to include Exec=env GTK_THEME=elementary and then the previous existing contents of the line. (So Exec=pantheon-files would become Exec=env GTK_THEME=elementary pantheon-files)
Save and close the file

The next time you launch the app from Unity (or your app launcher of choice) it will use the elementary theme.
Bonus: make it work when using command line
You may also want the app to launch with the elementary theme when launching it from the command line. To do so:

Open your Terminal app
Type alias pantheon-files="GTK_THEME=elementary pantheon-files" (replacing pantheon-files with the desired app)
Press Enter

Caveats:

This will not change your window manager's theme to the elementary theme.
This (by design) will only apply to your account, not root or anyone else on the machine.
The theme names are cAsE-sEnsItiVe and should be matched with the theme folder name.

Sources:

I'm an elementary contributor ;)
GTK+ 3 Reference Manual: Running GTK+ Applications
Set variable in .desktop file


Check to see if the fix outlined here resolves your issue.

It appears to have fixed the problem for a similar make, but different specific model numbers for other VAIO users with very similar problems (rebooting instead of resuming).

(credit to user Felipe Hummel, but reposting the steps in case future links break)

===

You just have to edit the /etc/default/grub file:

(in a terminal window do the following):

gksu gedit /etc/default/grub

Look up the line where it says:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_sleep=nonvs"

Save the file and close gedit.

Update the GRUB menu by typing in:

sudo update-grub

Reboot and enjoy!

===


I believe (and I am not an expert) that the UUID refers to a storage device that used to exist but now doesn't.

I think this might be due to the fact that you shrank the disk. When you expand the disk, the OS may put files into the expanded disk space. When you shrank that, those disappeared putting you in the situation you are now.

I know this isn't an answer, but an attempt at an explanation.

(EDIT: when shrinking the disk, you may actually have removed some sectors that were there before the expansion)

Oh, and also, a good rule of thumb is to never shrink a disk.


Resizing the file is the same process as making a swap file. So, you have three options:

Add another swapfile. 2 files of 2GB is the same as one of 4GB (ie 4GB swap)
Delete this file. and make a new one that is 4GB
Reuse this file.

To make new or reuse your current file, you have to type:

sudo swapoff -a   # turn off all swap
sudo rm /swapfile # this step is if you want to delete the current file
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 #makes a 4GB file
sudo chmod 600 /swapfile #set permission to root only if you made a new file
sudo mkswap /swapfile #converts file to swap format
sudo swapon /swapfile #enable swap on the file.

Note: if you are also using a swap partition it will have to be enabled also.

If you just want to add another 2GB file then:

sudo dd if=/dev/zero of=/swapfile2 bs=1M count=2048 #makes a 2GB file
sudo chmod 600 /swapfile2 #set permission to root only
sudo mkswap /swapfile2 #converts file to swap format
sudo swapon /swapfile2 #enable swap on the file.

Then edit /etc/fstab. Duplicate the entry for your current swapfile, and change the filename to the new file (swapfile2).


Offline MySQL installation (Using deb file and no internet connection)

How can I install that library in an offline way ?

The same way as you did mysql ofcourse. Find the package, put it on your system and install it with dpkg. You probably also need  http://packages.ubuntu.com/quantal/multiarch-support

btw: MySQL changelog for 5.5.10 states:

  The libaio library, which has been used on Linux systems since MySQL 5.5.4, is now linked into mysqld dynamically rather than statically. If the library is not already on your Linux system, install it using the appropriate package manager for your distribution. The libaio-dev library is not sufficient; you must have the libaio library.


Is it possible to do only the download part of apt-get/aptitude full-upgrade?

You can pass apt-get the -d option to only download the packages.

apt-get dist-upgrade -d

From man apt-get:

OPTIONS
    ...
    -d, --download-only
           Download only; package files are only retrieved, not unpacked or installed. Configuration Item: APT::Get::Download-Only.

From man aptitude

  -d, --download-only
   Download packages to the package cache as necessary, but do not install or remove anything. By default, the package cache is stored in /var/cache/apt/archives.


You should uninstall it, install it again, apply the official bug fixes patch us.battle.net/support/en/article/diablo-ii-patch-information end then apply any unofficial patches


What partition table does the ubuntu 12.04 installer make?

The Ubuntu Live CD also uses Gparted partition Manager only while installing Ubuntu & in the partition stage Ubuntu will give you three choices in the installation process. If you dont like those then you can choose custom choice & that will be the last selection. There you can create your partition manually.


To install vapoursynth on lubuntu follow these steps:

Open a terminal (Ctrl+Alt+T)

Add the PPA (Personal Package Archives) for vapoursynth

sudo add-apt-repository ppa:djcj/hybrid

Update package lists

sudo apt-get update

Install vapoursynth

sudo apt-get install vapoursynth


Install Qt5 on Virtualbox, get segmentation fault

You can sometimes get a segmentation fault when trying to install software that was manually downloaded from the buggy interspiderweb. Failing RAM can also cause segmentation faults as fkraiem mentioned in a comment, but I don't think that this is what's happening here because if a RAM stick was failing it would cause problems in the Windows host too.

Qt5 comes with its own Integrated Development Environment (IDE), named Qt Creator, so installing qt-opensource-linux-x64-5.6.3.run is not necessary. The easy way to install Qt5 is to install qtcreator from the default Ubuntu repositories. Open the terminal and type:

sudo apt install qtcreator # installs Qt 5.5.1 in 16.04

If getting the latest version of Qt5 is critical, you can get Qt Creator based on Qt 5.9.1 in Ubuntu 17.10 or wait for Ubuntu 18.04 to be released and get Qt Creator based on Qt 5.9.3.


You might not have any accounts set up.

The - button is for removing an online account.  It will not be there if no online accounts are configured.

If you haven't set up any online accounts, then you aren't using the feature.

If you don't want to use the feature, you could just ignore the "Online Accounts" category in the settings menu in the same way that some users can ignore "Printers" or "Universal Access".  Ubuntu includes these options for people who want to enable them, but you don't need to use a printer, magnifier, or connect to an online account to use Ubuntu.


First of all, you really don't want to be doing this. parsing the output of ls is very error prone and there are far better ways of achieving what you want (find, for example). However, I suspect your teacher wants to have you learn regular expressions and is just using this as an example. I certainly hope so, anyway.

In any case, this will work on the output you have shown on your question and for this week. It will fail next week and it will fail if your file names have spaces or other strangeness in their names. It will fail for any other dates than last week specifically. That said, it does work on your example:

$ ls -l | sed -En ' s/.*Feb *2[6-8].* (.*)/\1/p; s/.*Mar *[1-4].* (.*)/\1/p; '
4taOS.zip
_cmd.txt
dat1.txt
dat2.txt
dat3.txt
dat4.txt
dat5.txt
dat6.txt
lab1.sh
naredbi.txt
OSPRVKOL2015.plx
perl.plx
vlade.txt
vlez.txt

I am using -E which activates extended regular expressions (without this I'd need to escape the ( and )) and -n which means "don't print unless I tell you to". Then, the substitution operator isl ooking for lines matching either Feb 2 and any number between 6 and 8 (last weeks days in February) or Mar and any number from 1-4 (last week's dates in March). If those lines match, it replaces everything on the line with the last string of non space characters. That's what the parentheses do: they "capture" a pattern so it can be used on the right hand side of the substitution.


New Install 16.04 cannot access the Shared Drive : Step by Step guide you would do?

Found a fix, it seems the smb protocol is old in Ubuntu 16.04 so one need to make any server to accept incoming connection using this old SMB protocol.

found it here: http://forums.kerio.com/t/26684//

Change registry key on the Server to accept older versions of SMB
"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srv

Start REG_DWORD value should be set to 2 (instead of 3)

This key switches of any compatibility with old version of SMB. If key value is 3, then SMB compatible with SMB version 3 and above ONLY. "


3dmark test DirectX performance. Ubuntu / Linux uses OpenGL. So simply: No there is no 3dmark for Ubuntu.

Maybe this helps you to test your system:

Is there a benchmark tool for Ubuntu?

What I recommend you to test the systems 3D performance cross platform is the Unigine Heaven Benchmark:

https://unigine.com/products/heaven/download/

This Benchmark is free and uses OpenGL and is available for Linux, Mac and Windows.


There's a bit of a bug in Network Manager 0.9.4.0 that prevents it from detecting the 3G modem all of the time.  I had this intermittent problem with the built-in Huawei modem in my EeePC.  The problem seems to have been resolved with Network manager 0.9.6.0 which ships with 12.10.

You should try restarting Network Manager in the first instance.  In a terminal:

sudo service network-manager restart

and see if that enables the 3G modem when you insert after booting.

Consider upgrading to 12.10, installing Network Manager 0.9.6.0 (into 12.04 LTS), or wait until the later Network Manager 0.9.6.0 is upgraded in 12.04 LTS.  Version upgrades can take a while to be incorporated into previous releases, even (or especially) LTS ones.  I believe this will happen, but it probably won't be until this bug is also fixed to everyone's satisfaction.

3G has been a rocky road since 11.04, I'm afraid.  As stated in that bug, you will have to enable Wireless broadband again after every boot or resume.  There's a nice work-around that works for a clean boot however.


Broadcom BCM4313 802.11bgn can connect to WIFI but not to internet

Try this :

In your terminal (CTRL + ALT + T)

sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install bcmwl-kernel-source bcmwl-modaliases


Ubuntu 20.04 LTS not recognizing Nvidia 640M GPU after update. Having issues with Nvidia Driver

Suggestions:

Browse the Nvidia site to determine the exact driver for your card. note it: eg. nvidia driver 390.

Use synaptic or muon to change your graphics driver to the Nouveau driver.

Reboot

Issue this terminal command to purge nvidia drivers:
sudo apt-get remove --purge '^nvidia-.*'

Reboot

Open synaptic or muon. At top search box enter nvidia. search for your specific driver. you may find many entries. the one you want is the "nvidia meta" package.

Highlight your specific driver meta package and install it. Installation can take a long time.

Reboot. This should get nvidia working properly. You should be able also to invoke the nvidia settings GUI application.


Gnome Shell: Unable to log into Xorg directly, yet Gnome Classic lets me log in

This issue was caused in part by removing "ubuntu-session" from GDM. It still does not explain the reason that Gnome-Classic will allow logins, yet Xorg will not.

By reinstalling ubuntu-session, the issue was resolved.


That warning goes away with sudo apt-get install libcanberra-gtk3-module but it is just a warning, nothing that would conflict with installing software.


How do I get an HP LaserJet CP1025 color printer working?

seems you need version 3.11.1 for this printer.

The instructions on this page may help, follow the instructions on how to install the newer hplip package. I believe the installer will remove the older hplip.

The version of HPLIP that supports your printer is here:

http://hplipopensource.com/hplip-web/models/laserjet/hp_laserjet_cp1025.html


Go to extensions.gnome.org with Firefox or Epiphany, then to "Installed extensions". Some may me grayed out, that means that they aren't available in Gnome 3.4, but others probably have a green icon on the left with which you can update the extension.


If I have multiple OpenPGP keys in GnuPG with the same user ID/e-mail address, how can I distinguish between them?

You can always use a key ID instead of a user ID. For example, for encrypting a message to my newer key:

gpg --encrypt --recipient A4FF2279

In case of ambiguous key IDs, you might need to use a longer id or the full fingerprint.


According to Apache documentation:

  ServerName inheritance

  It is best to always explicitly list a ServerName in every name-based
  virtual host.

  If a VirtualHost doesn't specify a ServerName, a server name will be
  inherited from the base server configuration. If no server name was
  specified globally, one is detected at startup through reverse DNS
  resolution of the first listening address. In either case, this
  inherited server name will influenced name-based virtual host
  resolution, so it is best to always explicitly list a ServerName in
  every name-based virtual host.

ServerName requires FQDN try change sitedemo1 in sitedemo1.localhost in configuration file (/etc/hosts and sitedemo1.conf)

Add ServerAlias with:

   ServerName sitedemo1.localhost


Late response and I'm sure you have your answer by now but this will help if not..
http://www.pythian.com/blog/using-katesql-to-connect-to-an-oracle-database-in-kate/


It was identified as a bug in Filezilla 3.33.0 the day after Ubuntu 18.10 was released.

See https://bugs.launchpad.net/ubuntu/+source/filezilla/+bug/1798767

Apparently it was to be fixed in Filezilla 3.38.0, which was released on 2018-10-26, and quickly followed by version 3.38.1 on 2018-10-27, but these versions haven't yet made it to the Ubuntu repo to update the version available for users to install.

It was also recently raised on the Filezilla support forum with a work around mentioned there, however I couldn't get that to work on Kubuntu 18.10. Edit: my mistake, the work around does work on Kubuntu 18.10. It was KDE Neon 16.04 that I had trouble with.

See https://forum.filezilla-project.org/viewtopic.php?t=50159


Legacy mode, Grub can't load win8 even it's in grub list

Do you use Windows 8.1 or 8 ?
Because Windows 8.1 is the worsе edition of Windows I'd ever tried. It doesn't support many useful programs of Windows 8 and Windows 7 (You can just emulate Win 7 and 8, but as you know, it very bad affects to the perfomance). It doesn't work "very well".

And the second possible problem is in repairing of grub.

In your BIOS, disable QuickBoot/FastBoot and Intel Smart Response Technology (SRT). Also disable FastStartup (for Windows 8).

Sorry for my bad English :(


Disable authentication prompts in 15.04?

As I understand it, these prompts use Polkit, not sudo, for authorization. Therefore, setting NOPASSWD in sudoers won't make any difference to it. To make Polkit skip password prompts, create a .pkla file in /etc/polkit-1/localauthority/50-local.d/ (say /etc/polkit-1/localauthority/50-local.d/99-nopassword.pkla) containing:

[No password prompt]
Identity=unix-group:sudo
Action=*
ResultActive=yes

See the pklocalauthority manpage for more information.


Do I keep my Windows installation if I install Ubuntu with Wubi, the Windows installer?

Yes, WUBI installs Ubuntu inside the Windows filesystem and just changes the Windows bootloader.

Most people consider a WUBI install to be slower than a proper install (where the Windows partition is removed or resized) because it has to rely on the Windows filesystem to work. If you get on well with a WUBI install, you might want to consider a proper dual-boot install.


Ubuntu slow on old laptop with some non working keys

If you are sure about the functionality of the keyboard (you can try an external keyboard first), The problem may be that the key "Back" was assigned to another action. Try removing the shortcut following the steps found here https://help.ubuntu.com/stable/ubuntu-help/keyboard-shortcuts-set.html

To change the key or keys to be pressed for a keyboard shortcut:

Click the system menu Power cog icon and select System Settings.
Open Keyboard and select the Shortcuts tab.
Select a category in the left pane, and the row for the desired action on the right. The current shortcut definition will change to New accelerator…
Hold down the desired key combination, or press Backspace to clear.


You can scroll in the terminal app by using two fingers


Whay i am not able to merge ext4 partition with unalloted space?

Make sure the unallocated space exist to the left or right to your ext4 partition with which you want to join. Like -

From your question I guess you want to merge unallocated space with your root disk. It is a bit dangerous step. So, in that case, you should have a backup of your data.

To move the unallocated space to specific disk -

Go to the adjacent disk to the unallocated space and choose the move/resize option in GParted, and then move the unallocated space towards the disk you want to merge.


Assuming you have true 5.1 speakers and they are properly connected:
From etc/pulse/, copy daemon.conf and default.pa to your user's home folder. (If you've altered these configs previously, copy from your backup of the original files):
cp /etc/pulse/daemon.conf ~/.config/pulse/daemon.conf
cp /etc/pulse/default.pa ~/.config/pulse/default.pa

Add the following line to ~/.config/pulse/default.pa:
load-module module-combine channels=6 channel_map=front-left,front-right,rear-left,rear-right,front-center,lfe

Add (or uncomment) the following lines in ~/.config/pulse/daemon.conf:
remixing-produce-lfe = yes
remixing-consume-lfe = yes
lfe-crossover-freq = 80

Without the lfe-crossover-freq defined, it defaults to 0, which is not very helpful.
You can replace 80 with the desired crossover frequency (in Hz).  Frequencies below this value will be sent to the LFE channel.  Frequencies between 80Hz - 120Hz are generally recommended for the LFE crossover.
To enable the new settings, restart pulse with pulseaudio -k.  Some applications could require a restart.


How to print variable value in next line using echo command

What you describe is the standard behavior of echoing an unquoted variable:

$ prlist=$(curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls\?state\=all |
           jq -r '.[]|(.number|tostring)+" "+.user.login+" "+.created_at+" "+.merged_at')
$ echo $prlist
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z 4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z 3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z 2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z 1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z

That's because $prlist is not quoted. Compare with what happens if you quote it:

$ echo "$prlist"
5 SMYALTAMASH 2019-09-27T11:06:23Z 2019-09-27T11:09:28Z
4 ganesh-28 2019-09-26T16:56:40Z 2019-09-26T16:57:02Z
3 ganesh-28 2019-09-26T16:54:25Z 2019-09-26T16:54:55Z
2 ganesh-28 2019-09-26T16:52:59Z 2019-09-26T16:55:19Z
1 ganesh-28 2019-09-26T16:46:52Z 2019-09-26T16:47:25Z

But why use a variable at all? You can just parse the output of curl directly:

curl ... | jq ... | someOtherCommand

Like this:

curl -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls\?state\=all |
  jq -r '.[]|(.number|tostring)+" \
    "+.user.login+" "+.created_at+" "+.merged_at'curl \
    -s https://api.github.com/repos/harshavardhanc/dockerfile-ansible/pulls\?state\=all |
 someOtherCommand


How do I get to terminal after upgrading to 13.10

Try Strg + Alt + F1 to open the console even if you're not logged in.
You might need to add a function key if you are on a laptop.


mcelog: CPU is unsupported - how to fix it?

mcelog daemon isn't needed with AMD CPU, see:

https://bugzilla.redhat.com/show_bug.cgi?id=1069652


installing ubuntu 12.04 using wi-fi dongle

I would guess that your wifi dongle is not supported by the kernel out of the box. Therefore you have to continue the installation without internet connection and than use the jockey driver program to install the driver for the dongle and than continue to install what you need.


/ is full. How do I find out what's taking up space?

Try to install ncdu - it is a graphical disk usage app for the command line.

sudo apt-get install ncdu

And then

ncdu /

Then you'll see a list of the directories within / - you can navigate the directories and drill into them by hitting enter.


Forcing an external hard drive to run constantly

You could use hdparm to do this. Run sudo hdparm -S /dev/sdx | grep level to see what the current spin-down time of the drive is. Replace /dev/sdx with your hard drive.

You can change the spin-down time to 0 with sudo hdparm -S 0 /dev/sdx, changing /dev/sdx to the identifier for your hard drive.

I do not recommend disabling the spin-down time, as it will decrease the lifespan of the hard drive.


How to send SIGKILL and SIGSTOP to a process on remote shell?

If the problem is in /etc/profile, note that, over SSH, it is sourced for interactive shells that SSH itself starts. If you run another command, it is not sourced, even if that command is your shell:

ssh -t user@server bash

When a command is specified, SSH assumes you're not running it interactively, and doesn't allocate a pseudo-tty (which can cause problems with some programs). The -t is needed to tell it to allocate a pty anyway.

All of this is moot if your SSH server uses a ForceCommand option. If it does, no matter what you specify to the ssh command, whatever the server's configured to run will be run.