How to use Internet Banking for Brazilian Banco do Santander in Ubuntu?

Unfortunately it seems that the protection module was developed for Windows only. The solution (for now) is to install Wine, then Mozilla Firefox for Windows (on Wine) and, finally, install the internet banking protection module provided by Santander Brazil.

Brazillian

Infelizmente parece que o módulo de proteção foi desenvolvido apenas para Windows. A solução (por enquanto) é instalar o Wine, depois o Mozilla Ferifox para Windows (no Wine) e, finalmente, instalar o módulo de proteção do internet banking fornecido pelo Santander Brasil.


This is known bug (#1735594) that was reported December 1, 2017. Numerous bug reports have been filed, but marked as duplicates.

According to a comment on bug #1741447, this PPA works, which many say fixed the issue. The main bug report also makes mention of this fix in reference to bug #1741447. Users can update their system with unsupported packages from this untrusted PPA by adding ppa:paulo-miguel-dias/pkppa to their system's Software Sources.

sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update

This solution works for me, and is probably going to become the official fix, or will be incorporated into an update, if it hasn't already. More information can be found in the given links. Be sure to restart your computer after this is installed.

If you are affected, let them know by marking you are affected at the main bug report.

Also make sure you keep up with all the latest updates, especially if you are uncertain about the above solution or if it did not work for you.


Upgraded 12.04 LTS to 14.04 LTS Now Wireless Networking is Disabled

Try this command as root:

ip link set wlan0 up

if it doesn't work then try this:

rfkill unblock all

If that also doesn't work then may be drivers for Wireless is not installed, you need to install it manually.


Genymotion hangs while starting VM on Ubuntu 16.04

I have just solved the problem by removing libdrm.so.2 from Genymotion installation dir and rebooting my computer.

If that does not work, you can try to disable GPU open drivers and enable proprietary drivers in
System Settings > Software & Updates > Additional Drivers.

Hope this help!


The MySQL command line interface uses readline to edit a command line.

Create a file ~/.inputrc with the following content to use vi mode:

$if mysql
set editing-mode vi
$endif

Of course, if you want to use vi mode in all applications (including e.g. bash) that use readline, you can leave out the $if & $endif ... lines...


Scaling Gnome login screen on HiDPI display

Was searching for a solution as well and found this:

http://askubuntu.com/questions/469515/adjust-text-scaling-factor-for-all-users

tl/dr

sudo nano /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml

Change the default value to 2 (or your desired scale factor):

<key name="scaling-factor" type="u">
<default>2</default>

and then running:

sudo glib-compile-schemas /usr/share/glib-2.0/schemas

This fixed it for me.  Let me know if it works for you as well.


Terminal emulator with keyboard scroll-copy-paste

Not sure about keyboard scrolling, but most emulators have keyboard copy and paste. You just need to press the shift key when you do the normal Ctrl+C/Ctrl+V


Windows 8 won't boot via GRUB after installing Ubuntu with boot-repair

I had this problem after installing Ubuntu 14.04 alongside windows 8.1 on my nice new lenovo thinkpad t540p laptop.

However, all I had to do was disable the secure boot option in the bios. Having done that, the grub menu allows me to boot either Ubuntu or Windows from the options.

I did not need to do anything else.


Customizing tray/taskbar date display in Ubuntu with GNOME 3

You can get the date displayed in the top bar by using gnome-tweak-tool. First open up a terminal with ctrl+alt+t and install the tweak tool with

sudo apt install gnome-tweak-tool
gnome-tweaks  #  now launch it

After that you can start it from the application selector (there the name is just tweaks) and navigate inside the tweak tool to the tab for 'Top Bar' and activate Date and Seconds (see screen-shot).

Although this might be the easiest approach for the casual user there's another method which works. By issuing the following terminal command you can set the same:

# makes the date appear
gsettings set org.gnome.desktop.interface clock-show-date true
# switches the seconds display on
gsettings set org.gnome.desktop.interface clock-show-seconds true

By replacing set with get you can ask the system to give you the actual settings. Example:

gsettings get org.gnome.desktop.interface clock-show-seconds


Nvidia-prime switch logout-login doesn't work (Ubuntu 15.10)

Why did you switch from bumblebee to PRIME???!!!! Is there a serious reason? For me PRIME gives me nothing but problems, screen tearing all over the place and no Vsync in games!!!

I strongly recommend you switch to bumblebee with the nvidia-355, works like a charm for me and many others!!


Does the keyboard work physically? As in, do the keystrokes register? And you just have an illumination problem?

I have this keyboard and am not a touch typist, so I would fumble for the keys in the dark, looking for the scroll/light key to turn on illumination while the wife is sleeping at night.

I opened up the case and there is a red wire with a fat resistor inline running down the side, to the white backing plate, which houses the LEDs. What I did was cut this wire from the circuit board in the corner and resolder it to where the red wire of USB cable is connected to the circuit board. This effectively bypasses the logic and you have constant on of the illumination.


Somehow mapped "-" to escape and can't figure out how to map it back

Nevermind, setxkbmap -layout us did the trick!


Yes, do a fresh installation and if you need a guide here's how to do that:

http://www.devicemondo.com/how-to/install-ubuntu-on-google-nexus-7/


Create a bootable USB drive for installing Linux

You can create the bootable usb stick on a mac using this utility.


Here's what I'd do:

Boot the machine using a Live CD.
Open a terminal.
Find out the name of the internal disk by using fdisk to look up the device's size.
For example:

sudo fdisk -l

Install GRUB boot loader onto the proper disk (the example below assumes it is /dev/sda):

sudo grub-install --recheck --no-floppy --root-directory=/ /dev/sda


Am 100% safe from malware?
If the question is "Am I 100% safe from malware?" Then the question would be marked as "too broad" and flagged for deletion.
Are MP3 files safe?
If the question is "Can I safely open a MP3 file downloaded from a shady source with VLC or Rhythombox". Then the answer is:
Yes, if you have the installed the latest updates.
MP3-Files are sound files that doesn't contain any part that will be able to direct the computer anything else to do than play their containing sound. So this is safe as long as you are running your software with the latest bug-fixes.
If you don't have the latest bug-fixes you might have a bug in your software that could be exploited by someone knowing about this who might try to bring your VLC or Rhythmbox to run arbitrary code on your computer.
I can't remember that this has happened anytime with MP3 files on Linux, but theoretically it still could happen. So to be on the safe-side: allways be sure to install the latest bug-fixes.


Using Compizconfig keybindings to run command

There are many ways to adjust the screen backlight of a monitor, laptop or integrated panel (such as the iMac) using software, but depending on hardware and model, sometimes only some options are available.

Examples:

brightness is controlled by vendor specified hotkey. And there is no
interface for OS to adjust brightness.
brightness is controlled by OS:
brightness could be controlled by ACPI
brightness could be controlled by graphic driver.

There is an excellent article on Wiki summarizing the possible ways of doing this at:
https://wiki.archlinux.org/index.php/Backlight

However if ACPI, xbacklight or xcalib fail to adjust your brightness levels we can use the setpci command to manipulate the graphics card directly.  This is the method we will be using for this tutorial.

Note: This method should only be used if the above mentioned programs fail to accomplish what your wanting to do and is not the preferred method for doing so.  However in numerous cases, its the only one that will.

What were going to do is bind the setpci command to a key combination on your keyboard using xbindkeys, so that when certain keys are pressed your brightness will adjust up or down.

Ok Let's get Started!!

First we need to determine the Device Address of your graphics
card, in most cases its going to be 00:02.0 but not always so
here's how to check.

Open up a terminal window and at the command prompt type the following:

lspci |grep -i vga

This will return a line displaying information such as vendor, model, version etc...  The part were interested in is at the very beginning and should look something like the following:

00:02.0

Note: Output may vary

This is the Device Address of your graphics card and we will be using this along with the setpci command to control your brightness levels. So Write It Down!

Next we need to download xbindkeys.  This will be the program that
does the actual binding of the setpci command to the key
combination on your keyboard.

Open a terminal window and type the following at the command prompt:

sudo apt-get install xbindkeys

Now we are going to create two files in our Home directory that
xbindkeys will use when it starts up.

Open a terminal window if you haven't already and change into your Home directory.  Type the following commands at the command prompt:

touch .xbindkeysrc

This creates a file that we will be typing our configurations into and it is read by xbindkeys each time it is started

touch .xbindkeys.noauto

This just creates a blank file but it is crucial because when it exists it keeps xbindkeys from starting automatically at boot.  Though we want xbindkeys to start automatically we want to control it ourselves because the Xserver starts it to early in the boot process.  This causes our configurations that we make to sometimes not function properly.  We will add a script called xb_start.sh to our Startup Applications later in this tutorial that will take care of the startup process.

Let's find out what keys do what!!

For time saving purposes I'm going to automatically assume that the Xserver already recognizes the keys you press on your keyboard to change brightness, it just doesn't do anything when you press them.  In my case its the Fn + Up Arrow or Down Arrow

But we can't just put the words Fn,Up Arrow or Down Arrow in our config file, we have to find out what the keycodes are.

In most cases they are going to be keycode 232 to adjust the brightness down and keycode 233 to adjust the brightness up but we better make sure.

Open a terminal window and type the following at the command prompt:

xmodmap -pke |grep -i xf86monbrightness

This should return two lines that look similar to the following:

keycode 232 = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown

keycode 233 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp

The info were concerned about are the numbers that come after keycode.  In this case it's 232 and 233.  Write whatever numbers it is down for we will be using them later.

Let's start putting it all together!!

Now we're going to use the information that we've gathered and
written down to add some lines to the .xbindkeysrc file you created
earlier in your Home directory.

Using your favorite text editor, open the .xbindkeysrc file and either copy and paste or type the following lines to it and save it:

Note: If 232 and 233 aren't the same keycodes you wrote down earlier, change them in this file

"/usr/local/bin/blevel_down.sh"
c:232
"/usr/local/bin/blevel_up.sh"
c:233

What were doing here is telling xbindkeys to run the blevel_down.sh script when we press the key combo on our keyboard that adjusts brightness down.  In my case it's Fn + Down Arrow.  On the next line we're telling it to run the blevel_up.sh for Fn + Up Arrow

Note:  Key combos vary, check the pictures on the keys of your keyboard to determine which ones they are for you.

Lets write the scripts!!

The blevel_up.sh and blevel_down.sh scripts are created to incrementally adjust the brightness up or down by passing arguments to the setpci command.  So pretty much when you press whatever keys that do the adjusting, the brightness goes up a little or down a little each time.  The xb_start.sh is used to start xbindkeys when the computer boots up but allows for other processes to complete before doing so.

Note: If your Device Address of your Graphics card that we determined earlier differs from the one in blevel_up.sh and blevel_down.sh you will need to modify accordingly.  Most likely they should be the same.

We will create blevel_up.sh first:

Open up your favorite text editor and either copy and paste or type the following into a file and save it as blevel_up.sh in your Home directory

#!/bin/bash

if [ ! -f /home/$USER/.blevel ]; then

    touch /home/$USER/.blevel
    echo "FF" > /home/$USER/.blevel
    state="FF"

else

    state=`cat /home/$USER/.blevel`

fi

new_state=$(echo "$[0x$state+0x10]")

if [ "$new_state" -gt 255 ]; then

    sudo setpci -s 00:02.0 F4.B=FF

else

    state=$(echo "obase=16; $new_state" | bc)
    sudo setpci -s 00:02.0 F4.B=$state
    echo $state > /home/$USER/.blevel

fi

Now we will create the blevel_down.sh script:

Open up your favorite text editor and either copy and paste or type the following into a file and save it as blevel_down.sh in your Home directory

#!/bin/bash

if [ ! -f /home/$USER/.blevel ]; then

    touch /home/$USER/.blevel
    echo "FF" > /home/$USER/.blevel
    state="FF"

else

    state=`cat /home/$USER/.blevel`

fi

new_state=$(echo "$[0x$state-0x10]")

if [ "$new_state" -lt 15 ]; then

    sudo setpci -s 00:02.0 F4.B=0F

else

    state=$(echo "obase=16; $new_state" | bc)
    sudo setpci -s 00:02.0 F4.B=$state
    echo $state > /home/$USER/.blevel

fi

Now we will create the xb_start.sh script:

Open up your favorite text editor and either copy and paste or type the following into a file and save it as xb_start.sh in your Home directory

#!/bin/bash

sleep 10
/usr/bin/xbindkeys &

Lets make the scripts Global!!

Now what we wanna do is move the three scripts we just created from
our Home directory to /usr/local/bin and set the permissions
so that no matter who is logged in on the machine they can execute
them.

Open up a terminal window and type the following at the command prompt:

sudo mv blevel_up.sh blevel_down.sh xb_start.sh /usr/local/bin

sudo chmod 755 /usr/local/bin/blevel_up.sh

sudo chmod 755 /usr/local/bin/blevel_down.sh

sudo chmod 755 /usr/local/bin/xb_start.sh

Now to make setpci be able to run without typing a password each time

Being that setpci makes changes to certain system files, a regular user would have to prefix setpci with sudo eachtime in order to run the command.  This would require you to enter a password eachtime you want to adjust the brightness of your screen.  If we make a particular entry in the /etc/sudoers file we can get around this.

Open a terminal window and type the following at the command prompt:

sudo visudo

This will open up the /etc/sudoers file so that we can make the required changes.

Scroll all the way to the bottom of the file and type the following:

ALL    ALL = NOPASSWD:/usr/bin/setpci

Note: File is Case-Sensitive so type exactly how it is here

Save the file and exit

Almost Finished!!

Last thing we need to do is add our xb_start.sh script to our Startup Applications so that xbindkeys starts at boot exactly when we want it to.

Reboot and Enjoy!


I would need the model of the laptop. But tipically most wireless problems like yours are solved by installing the drivers.

Go to System > Administration > Additional Drivers and install the Wireless driver that appears there.

Or press Alt+F2 and type jockey-gtk and install from there (It is the same as the above instruction)

That is, assuming you did not install the proprietary drivers which are the ones found in the additional Drivers window.

Let me know how it went.


Check how space is distributed on a Linux system

One nice Gnome application is baobab. It comes with default ubuntu installation.

To get it,

sudo apt-get install baobab

apt-cache show baobab

Description-en: GNOME disk usage analyzer
 Disk Usage Analyzer is a graphical, menu-driven application to analyse
 disk usage in a GNOME environment. It can easily scan either the whole
 filesystem tree, or a specific user-requested directory branch (local or
 remote).
 .
 It also auto-detects in real-time any changes made to your home
 directory as far as any mounted/unmounted device. Disk Usage Analyzer
 also provides a full graphical treemap window for each selected folder.


Why do I have to have CapsLock permanently ON

The problem happens when your hardware does not properly detect a key release (I have seen this
happen under Windows too) as the software you use automatically changes the state of the capslock.
So it only affects the light on your system.

Some solutions...

You can change the light from command line with

setleds +caps
setleds -caps

You can also reset it from the software you use. If you let it autocorrect again it will fix itself too. So type hELLO and after it changes to Hello the light is not switched again too so is corrected.
Do not use autocorrection in the software you use.


Nothing looked right because i was looking at 14.04 whereas all the videos I had seen were 15.10. that's why it didnt look right. Doh!
It didn't matter that the reboot hung. I shut it off and it (seemed to ) load fine. Although the drivers panel was still empty.

Now trying to upgrade to 15.10 without success as the laptop cannot see the 15.10 dvd for some reason. Any ideas on that?


install error - Try (hd0,0):NTF5: move memory fails

You can extract the downloaded 13.10 iso file with 7-zip and run the installer from the extracted setup.exe file. You do not have to boot from a DVD.


Wi-fi adapter not found (only the 1st boot after being logged on windows)

The problem is the Windows Fast Startup feature.

When you shutdown Windows, it doesn't really shuts down, but hibernates.

It may cause trouble for dual boot systems including wireless hardware and access to NTFS Windows partitions.

It is recommended to disable this feature in Windows settings.


kdenlive appimage file: how to get it to show in list of applications

Making AppImages executable
Before you can run an AppImage, you need to make it executable. This is a Linux security feature. There are three main ways to make an AppImage executable:
With the GUI

Open your file manager and browse to the location of the AppImage
Right-click on the AppImage and click the ‘Properties’ entry
Switch to the Permissions tab and
Click the ‘Allow executing file as program’ checkbox if you are using a Nautilus-based file manager (Files, Nemo, Caja), or click the ‘Is executable’ checkbox if you are using Dolphin, or change the ‘Execute’ drop down list to ‘Anyone’ if you are using PCManFM
Close the dialog
Double-click on the AppImage file to run

On the command line
chmod a+x Some.Appimage

Integrating AppImages with the system
You do not need to integrate an AppImage with the system (menus) in order to use it. If you still would like to integrate AppImages with the system (menus, icons, MIME types), you can use the optional appimaged daemon.
https://github.com/AppImage/appimaged
appimaged is an optional daemon that watches locations like ~/bin and ~/Downloads for AppImages and if it detects some, registers them with the system, so that they show up in the menu, have their icons show up, MIME types associated, etc. It also unregisters AppImages again from the system if they are deleted.
Automatically with the optional appimaged daemon
If you would like to have all AppImages be executable automatically, you can install the optional appimaged daemon. It will automatically add downloaded AppImages to the menu and make them executable for you. It can be downloaded from https://github.com/AppImage/AppImageKit/releases or installed from your distribution.


simple-image-reducer does not start / ImportError: No module named Image

It is a bug 1825832.

Please login to launchpad and click "This bug affects you and 1 other person" to confirm that this bug affects you.

The solution from proposed patch is simple - use PIL instead of Image.
We can apply the patch programmatically without installing other stuff:

sudo sed -i "s/^import Image/from PIL import Image/" /usr/bin/simple-image-reducer


Juju vm's in vsphere fail to boot when vmware hardware definition is updated above version 10

/etc/default/grub contains:

GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0"

If I remove the "console=tty1 console=ttyS0"

and rebuild the /boot/grub/grub.cfg to include this change then I can upgrade the hardware definition and reboot just fine.


It appears it may have been granola. After removing it it seems the fan does turn on, as I hear it working at low speeds at the moment.

Will experiment more, though I can still use help finding out how to diagnose the problem anyways just incase it was not granola and instead a random issue.


How can I find out where SSL Certificate is located?

Inheriting responsibilities for old programs is a fact of life.  Try the following:

Read The Fine Manual, if you're lucky enough to have one.
Scan any invoking script for command line arguments or setup of environment variables which might locate the cert.
Scan the code with grep looking for .crt
Scan the filesystem with locate .crt and pick out the one you are looking for.
Bang on the program, like running it in a restricted environment, and hope an error message will complain about not finding ...

A standard approach to these problems is good, because these sort of problems wont go away.


How to make dash search outside the home folder

As far as I know, Unity already searches the entire system for files or information, as long as the user has permission to read it and the drive the information is on is mounted.

I tested this with my internal "Storage" HDD, searched something in it, and it found it (albeit after a few seconds).

You need to make sure the guest user (or kiosk user, or whatever user is searching things) has read and possibly execute permissions, but not write permissions. You can ensure this by going to the folder above where your data is stored and run the command (assuming your data folder is named "Data" and your username is MYADMINUSERNAME):

chown MYADMINUSERNAME:MYADMINUSERNAME Data -R
chmod 755 Data -R

This will set the owner and group of the folder Data to your user, then give you full permission (755), your group read and execute permission (755), and anybody else read and execute permission (755).

After that, Unity will find your data, just it might take a while on a standard HDD. There's a lot of kiosk user mode settings you can do to optimize the search and the kiosk user experience, but that's for another post / question.


Laptop Brightness not remembered on Power Plugged in

This problem with brightness has been corrected as of 15.04, upgrading is the easiest fix.


Ubuntu 18.04 Trackpad Issues when scrolling

My HP 2000 does the same exact thing. I don't believe it is a software or hardware problem, I think it is just the way things are. I've tried moving my fingers a little more carefully and it helps some. It's just the way things are with touchpads I guess. Maybe we should invest in a mouse...


This error was resolved by compiling a new version (5.3.10) of PHP without the --enable-debug option.


How to make lxpanel show up on both the monitors

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

Anyhow, try this:

I created two scripts in the .screenlayout/ directory with the help of ARandR:

~/.screenlayout$ cat single.sh
#!/bin/sh
xrandr --output LVDS1 --mode 1024x600 --pos 0x0 --rotate normal --output VGA1 --off
lxpanelctl restart

~/.screenlayout$ cat dual.sh
#!/bin/sh
xrandr --output LVDS1 --mode 1024x600 --pos 0x0 --rotate normal --output VGA1 --mode 1920x1080 --pos 1024x0 --rotate normal
lxpanelctl restart

adding the string "lxpanelctl restart" by hand (ARandR doesn't do it). Then, in the file
~/.config/openbox/lxde-ec.xml
I added the following lines between two  lines:

  </keybind>
  <keybind key="W-2">
  <action name="Execute">
  <command>sh ~/.screenlayout/dual.sh</command>
  </action>
  </keybind>
  <keybind key="W-1">
  <action name="Execute">
  <command>sh ~/.screenlayout/single.sh</command>
  </action>
</keybind>

so that using <1> and <2> I can switch between single and dual monitor configuration.


Grub command `loopback loop...` does not work on Ubuntu 19.10

There is a workaround to Ubuntu Bug #1851331...

Disable the TPM module by adding rmmod tpm as the 1st command in your grub config file.

For example, here is my /etc/grub.d/40_custom file...

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry "Install" {
    rmmod tpm
    set isofile="/ubuntu.iso"
    loopback loop (hd0,2)$isofile
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
    initrd (loop)/casper/initrd
}

Remember to update grub after making the change.

sudo update-grub


Are the terms 'shell prompt' and 'command prompt' interchangeable?

The command prompt usually refers to the one Windows is using (cmd.exe) while a shell usually refers to the one Linux is using (usually bash or sh). The command prompt (cmd.exe) is also a shell, but the term "shell" gets used a lot more in Linux. And both of these are text-based (CLI) shells. explorer.exe is also a shell, although it's a graphical shell. Confusing, isn't it?

Basically, the Linux shell is more advanced than the command prompt. It gives users way more flexibility in commands and scripts than the command prompt.

Examples include but not limited to: way more complex commands (completely achieveable with cmd), way more complex string manipulation, more diverse built-in tools

Remember: we also have Powershell in Windows which IMO is Microsoft's attempt to be as good as bash. Yes, we have a lot of shells.


Function keys are not working on Toshiba Satellite L510 so brightness control is not possible

Open a terminal using Ctrl+Alt+t and type sudo apt-get install xbacklight. That will install xbacklight  if it isn't already there (I can't remember whether it's a default package!).

Then type xbacklight -set x replacing the x with a number between 1 and  99 to set the percentage brightness for your screen backlight. You can actually set to 0 (and I do because I hate bright screens) but I understand that can cause problems on some displays so I don't recommend trying it.


print xlsx file from command line using ghostscript and libreoffice

You can run libreoffice in headless mode, but before executing the following command, first quit/close all running Libreoffice instances.

In order to print xlsx files you'll have to install libreoffice-calc on your server:

sudo apt-get install libreoffice-calc

Then the following command will convert your filename.xlsx into filename.pdf in the same folder:

libreoffice --headless --invisible --convert-to pdf <filename.xlsx>

and print the document with lpr:

lpr -U username -P the_printer_name <filename.pdf>

Note: alternatively you could also print-to-file using this command:

libreoffice --headless --print-to-file --outdir /tmp <filename.xlsx>


batch rename zip files based on contained file names

find . -iname '*.zip' -exec bash -c 'name=$(unzip -qql "$1"  '*_IPC.csv' | grep -oE '[[:digit:]]{8}_IPC.csv' | head -n1); [ "$name" ] && mv "$1" "${name%csv}zip"' none {} ';'

How it works

This  command has the form:

find . -iname '*.zip' -exec bash -c '...' none {} ';'

This searches for .zip file in the current directory and all subdirectories under it.  For each such file found the bash command in single quotes is executed.  The name of the file found is supplied at argument one, $1, to the bash command.  In our case, the bash command has two parts.  The first extracts the csv file name and saves it in bash variable name:

name=$(unzip -qql "$1"  '*_IPC.csv' | grep -oE '[[:digit:]]{8}_IPC.csv' | head -n1)

The above uses command substitution: the command inside $(...) is run and its standard out is captured.  In this case, we assign it to the variable name.  The command unzip -qql "$1"  '*_IPC.csv' quietly extracts all file names from the zip file that match the glob *_IPC.csv.  We don't need to limit to the glob *_IPC.csv but, if the zip file has many files in it, this may speed things up.

The grep command, rep -oE '[[:digit:]]{8}_IPC.csv' further selects only those name that start with 8 digits.  The head -n1 command selects the first such name found.  If there was only one such name, head -n1 wouldn't be needed.  But, keeping head could speed things up because it causes the pipeline to terminate after the first match.

The second part tests that we succeeded in getting a non-empty name and, if so, renames the zip file:

[ "$name" ] && mv "$1" "${name%csv}zip"

The above uses suffix removal to change the csv file name to a zip file name.  ${name%csv} returns $name after having removed the suffix csv.  ${name%csv}zip adds a zip suffix.


Fill the area below/above an x-y curve in Calc

I don't know whether it is possible in Libreoffice Calc, so I advise you to use another program for doing the plot. If you don't want to learn the syntax of a program with serious plotting  capabilities, like R or gnuplot, you can use geogebra.

sudo apt-get install geogebra

Then just launch geogebra, and write in the Input field at the bottom of the window, e.g:

y>=x^2

and your graph is plotted. You can right-click on the object to change its properties (color, line width, etc.). After you are done, just Move the graphics plan to the position you want the graph to be displayed and use the Export option from the File menu. E.g export into .png then insert the image into Calc.

geogebra is a very handy tool for simple plotting, it is very easy to make animated plots in it also.


Can I have root partition on my SSD and swap partition on HDD?

On new installations of Ubuntu 17.04 and later a swap file is created by default instead of a swap partition. Among other things this saves valuable disk space on the SSD for users who have SSDs. So we don't put a swap partition on an SSD or on a HDD anymore. The swap file is located in the same partition where the root filesystem is located. On my computer which has 32GB RAM the swap file is the default size, only 1.5GB.


Nothing happens when I click on Transmission's tray icon

This is apparently not a bug in transmission.

Ubuntu have overridden the functionality.
There is a "discussion" in this bug report.


Ubuntu 14.04 Sound coming from both speaker and headphones

Install PulseAudio Volume Control from Ubuntu Software Center. Then go to "Output Devices" tab and change to suitable port (usually where should be a choice between headphones and speakers). Another way is to choose suitable profile in "Configuration" tab.


how to set some application to run only as root

First, set the owner of the application to root (if it isn't already):

sudo chown root:root /path/to/app

Then configure rights with chmod, e.g.:

sudo chmod 700 /path/to/app

This would give root the right to read, write and execute while all other users have no rights. There are other possible combinations. The number 4 is for read, 2 for write and 1 for execute, just add up whatever you want.

If your command is chmod xyz, x would be the rights for owner, y for the group and z for others.


Not all installed packages are listed in the Ubuntu Software app

To get a list of packages installed locally do this in your terminal:

dpkg --get-selections | grep -v deinstall

(The -v tag "inverts" grep to return non-matching lines)

To get a list of a specific package installed:

dpkg --get-selections | grep postgres

Alternatively, simply use

dpkg -l

Ubuntu 14.04 and above

apt list --installed


You'll need to install an other Bootloader, if you want a gui with mouse support.

gujin has such a gui i.e.
https://sourceforge.net/projects/gujin/


Can't map caps lock to ctrl after installed fcitx

After reading this Issue

I found this command works pretty well setxkbmap -option ctrl:nocaps.


This is probably a combination of one issue with the wireless and another with the gigabit connection. First let's look at the wired connection:
Your motherboard has an Intel I219V Gigabit ethernet port, and the I219V can sometimes have some speed negotiation issues with the host switch. What I've had to do in these cases is outlined below.
On the switch/router:

Set the connection negotiation to manual
Set the speed to 1Gbps

Note that this can cause problems if you have slower devices also connected to the switch/router.
If you cannot change the settings on the switch/router for whatever reason, you may be able to set the speed locally on a per-connection basis. What this means is that if you unplug the network then plug it in again, these settings will be reset:

Install ethtool: apt install ethtool
Set the speed to full-speed duplex without negotiation:ethtool -s eth0 speed 1000 duplex full autoneg off

Important: Be sure to change eth0 to whatever your device name happens to be.
As for the wireless, this is usually a problem related to the power saving mode of the device. You can typically get full speed from your wireless by doing this:

Open the /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf file. You will see something that looks like this:

[connection]
wifi.powersave = 3

Change wifi.powersave = 3 to wifi.powersave = 2
Reboot

Hope this helps you get the most from your network connections.


How to change the shortcut to adjust brightness?

Yes I did it again! Thanks to myself!

1) Install XDoTool and Compiz

sudo aptitude install xdotool compizconfig-settings-manager

2) Open CompizConfig Settings Manager

ccsm

3) Go to commands and add this lines:

xdotool key XF86MonBrightnessUp

xdotool key XF86MonBrightnessDown

I hope I enjoy ;-)


Missing package in Ubuntu SDK - qtdeclarative5-ubuntu-webapps-api

The ubuntu-html5-sdk metapackage only exists in Trusty (14.04), for which qtdeclarative5-unity-action-plugin should also be available (even though it shouldn't be required, according to the package details).

Are you installing the SDK from the package repository? If so, is your package index up to date? Run apt-get update to make sure.
If you're installing from a PPA, notify its maintainer of your problem.
If everything else fails, you could install the dependencies manually and then retry the installation, but I would advise against it, as it will prevent you from receiving automatic updates and is very likely to break things (due to incompatible versions).


re a cHow can I connect my Evolution client to my Outlook.com account?

The host names and ports are correct for the Outlook servers. Note however that "Network is unreachable" has absolutely nothing to do with the configuration of the e-mail client. This is a network configuration issue. It usually indicates that your routing table is misconfigured. Since these are Internet servers, it is very likely that the default route is not properly set up. Also, you may have misconfigured your proxy settings (either you are behind a proxy without having it configured or the other way around).


if you use ssh with ssh-key  then you just have to add  your identity to authorized_keys on your server.  more here

after you have done this you can just use sshfs in any cron job without any password


Lenovo Y560 won't boot unless it's on AC power

I have the Y560 as well and am experiencing the same problem.  I tried downgrading to older kernels but still have the same issue.  I did find this bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/775950 and verified that I have the same kernel panic and message happening. There is also someone with a Y460 with the same problem here Lenovo Y460 won't boot most of the time unless plugged in

Update 2011-07-16: It appears that the latest kernel update (2.6.38-10-generic) has fixed the issue on the Y560.


booting without full network configuration 13.10

First boot Ubuntu live disk.
Click on try Ubuntu option on startup.It will load the desktop.
Open up the terminal by pressing ctrl+Alt+T.
Run the below commands to download the network-manager package,

sudo apt-get update
apt-get download network-manager

It will download network-manager package and also some related packages in your home directory.All the packages are in .deb format.
Copy all the .deb packages to your system which was not able to connect to the internet.
Then install all the deb packages by running,

sudo dpkg -i filename.deb


Overheating and loud fan with ubuntu 14.04 on Dell Inspiron n5110

I had the same problem after installing xubuntu 14.04.4

That was fixed by switching to the intel driver (had the nouveau driver active which had been installed by default):

sudo prime-select intel

Then you need to log out and back in, but I played safe and simply rebooted. After giving out a few puffs the thing is now as cool and quiet as before

Hope that helps


How to get mplayer's volnorm working in 14.04?

The following ppa hosts a recent build of mplayer for Ubuntu 14.04 that has a working volnorm filter:

https://launchpad.net/~mc3man/+archive/ubuntu/mplayer-test


Using gparted to resize ubuntu partition

You cant extend the partition, you have booted Ubuntu from. This is the reason, why it is locked.

Additionally you have to move the Partition /dev/sdb2 so that the unused space is behind of it.*

Booting from your Ubuntu disk will solve the Problem of the locked device. GParted is contained in the Ubuntu disk/stick.

EDIT: *
@Bytecommander told me, that you dont have to move the partition /dev/sdb1. However you still have to boot from a different OS like the Ubuntu Disc/Stick.


Black screen when booting on an Acer Aspire 5732Z

Wubi is not dualbooting, it is just a way to run Ubuntu from a windows environment.

Dualbooting will require you to shrink a partition on your family PC (unless it already have an unused partition with enough space), and install Ubuntu as well as a bootloader (which is installed automatically, unless you disable it).

The default bootloader that comes with Ubuntu will also allow you to boot into windows, and hence this is the preferred way to have a PC with more than one OS.

I'm sure there's plenty of good software programs that can help you shrink your windows partition, however the easy way to get started with "the real" ubuntu experience is probably simply to burn the ubuntu image to a disk, and boot from that disc.

Simple step-by-step can be found on the ubuntu download site


Enlarging the right half of gnome-shell panel?

This seems to do the trick: https://extensions.gnome.org/extension/51/extend-left-box/

Here is an example:


You could

create an application launcher that
runs a command which simulates a keyboard combination.
You can then use gsettings to add the launcher to the favourite list.


I don't know if this is a good solution, but have you tried setting the resolution lower?  I had the same issue and I ended up setting the screen resolution to 1360x768 (from 1920x1080).  You can change the resolution by going to System Setting -> Displays -> Resolution.

That way everything is bigger, including the headers on the windows, the top panel, the cursor, the sizes of buttons inside applications (such as Firefox, LibreOffice), etc.


Thanks for the information. I deleted all but one of the old backup files and move it to a new folder. Then I deleted all the old backup files (about 500gb). I started the backup process and surprise the backup program made a new backup. So your solution worked.
 -PLS


can't startup after installation, only windows works

This sounds like you are running Win8 or Win10. If not let me know, but I'm going off of the assumption that you are. If this answer doesn't work, please provide your Windows version and the type of computer you have and I will edit my answer.

There are two things you need to do to get it working:

1) First, go into bios. The method to do this depends on what version of windows you're running, so I'll recommend you Google it. Then ensure that "Secure Boot" is disabled and that it is set to "CSM Boot" and not "UEFI Boot".

The bios also depends on what hardware you have, so try Googling it. Then,

2) Make sure you Turn Off your computer. Windows will typically go to sleep instead of turning off. Google this if you need help, but you should be able to shift-click the power button in the start menu and then hit the "Shut Down" option.

If will take longer than normal to shut down, but should take you to GRUB when you boot your computer back up.

Hopefully that works, let me know!


How to disable/prevent standard user from accessing the appearance setting in 16.04 LTS

First of: why? They can't do any harm with it and you might think it is easy but you are forgetting a couple of things.

You do it like this ...

sudo chmod 700 /usr/bin/unity-control-center

This will prevent users to change any settings provided by the graphical interface but ... this will not prevent them from using command-line or a TTY. If they know how to use gsettings they can still alter any of these options. So you probably also want to prevent them from using gsettings. And a can of worms opens :)

Now for a better method:

Why not reset these settings you do not want them to alter on every boot? Just create a script with the gsettings in  it.

gsettings set org.gnome.desktop.background picture-uri file:///dir/dir/dir/wallpaper.png

will change the wallpaper. Similar to that you can create lines for other options. Execute the script somewhere, and make the script non-mutable for normal users. This works if you only want a few settings.

If you really want to reset all settings: create a script to read all current settings and reload those settings when the system is booted.

--

Easier method:

cd ~/.config/dconf/
~/.config/dconf$ ls
user
~/.config/dconf$ file user
user: GVariant Database file, version 0

... copy this file and restore it during a boot.


What are the current legal issues going on between Ubuntu and Microsoft?

I don't know of any legal issues between Ubuntu and Microsoft. Indeed, Microsoft is contributing to the development of several key technologies we use in Ubuntu -- most notably Linux and Samba4. They're not the same bad guy they used to be. There are other companies I would be more afraid of, with Apple being the primary bully.


how to change language with alt+shift ubuntu 13.10

Hello you can find this answer in the following link.

Askubuntu Alt Shift Combo

Seems the solution is simply adding space to the combination  keys that you want to use for shortcuts.

The following link confirms the issue

https://bugs.launchpad.net/ubuntu/+source/indicator-keyboard/+bug/1218322


Where can I find all the wallpapers ever included?

There are mainly two ways to find wallpapers included in all Ubuntu official releases: Ubuntu repositories and Ubuntu Package Search.

From Ubuntu repositories

Ubuntu has four repository components, which are all enabled by default. The main component will contain wallpapers for current Ubuntu release and universe component will contain wallpapers for previous Ubuntu releases and other flavours.

Open a terminal and run the following command.

apt-cache search ubuntu wallpapers | sort -n

This will return a local search result: use "ubuntu wallpapers" as keywords and find package that matches with the name, then sort the result by string numerical value.

blubuntu-wallpapers - Blubuntu look - Wallpapers
edgy-community-wallpapers - Edgy Community Wallpapers
edgy-wallpapers - Edgy Wallpapers
edubuntu-artwork - edubuntu themes and artwork
edubuntu-wallpapers - wallpapers included in edubuntu
feisty-wallpapers - Feisty Wallpapers
gutsy-wallpapers - Gutsy Wallpapers
ubuntu-gnome-wallpapers-trusty - Ubuntu GNOME 14.04 Wallpapers
ubuntu-gnome-wallpapers - Ubuntu GNOME Wallpapers
ubuntukylin-wallpapers-saucy - Ubuntu Kylin 13.10 Wallpapers
ubuntukylin-wallpapers-trusty - Ubuntu Kylin 14.04 Wallpapers
ubuntukylin-wallpapers - Ubuntu Kylin Wallpapers
ubuntustudio-wallpapers - Ubuntu Studio - Wallpapers
ubuntu-wallpapers-karmic - Ubuntu 9.10 Wallpapers
ubuntu-wallpapers-lucid - Ubuntu 10.04 Wallpapers
ubuntu-wallpapers-maverick - Ubuntu 10.10 Wallpapers
ubuntu-wallpapers-natty - Ubuntu 11.04 Wallpapers
ubuntu-wallpapers-oneiric - Ubuntu 11.10 Wallpapers
ubuntu-wallpapers-precise - Ubuntu 12.04 Wallpapers
ubuntu-wallpapers-quantal - Ubuntu 12.10 Wallpapers
ubuntu-wallpapers-raring - Ubuntu 13.04 Wallpapers
ubuntu-wallpapers-saucy - Ubuntu 13.10 Wallpapers
ubuntu-wallpapers-trusty - Ubuntu 14.04 Wallpapers
ubuntu-wallpapers - Ubuntu Wallpapers
xubuntu-community-wallpapers - Xubuntu community wallpapers
xubuntu-wallpapers - Xubuntu wallpapers

The local search result will vary by releases: 14.04 release will show above output; 16.04 release will also include wallpapers from its current and earlier releases, which are 16.04, 15.10, and 15.04.

From Ubuntu Packages Search

For users running an older release but still want to get wallpapers for the newer releases, open a web browser and visit Ubuntu Package Search.

  This site provides you with information about all the packages available in the Ubuntu Package archive.

Scroll down until you reach "Search package directories". The suggested search options are:

Keyword: ubuntu wallpapers
Search on: [x] Package name only
Distribution: any
Section: any

Click Search to see the result.

Package blubuntu-wallpapers

* trusty (14.04LTS) (x11): Blubuntu look - Wallpapers [universe]
    0.3.1: all
* xenial (16.04LTS) (x11): Blubuntu look - Wallpapers [universe]
    0.3.1: all
* bionic (18.04LTS) (x11): Blubuntu look - Wallpapers [universe]
    0.3.1: all
* cosmic (18.10) (x11): Blubuntu look - Wallpapers [universe]
    0.3.1: all
* disco (x11): Blubuntu look - Wallpapers [universe]
    0.3.1: all

Package edubuntu-wallpapers

* trusty (14.04LTS) (gnome): wallpapers included in edubuntu [universe]
    14.03.1: all
* xenial (16.04LTS) (gnome): wallpapers included in edubuntu [universe]
    15.12.1: all
* bionic (18.04LTS) (gnome): wallpapers included in edubuntu [universe]
    15.12.1: all
* cosmic (18.10) (gnome): wallpapers included in edubuntu [universe]
    15.12.1: all
* disco (gnome): wallpapers included in edubuntu [universe]
    15.12.1: all

...

The result will include packages with name that matches with "ubuntu wallpapers" keywords. It is also possible for users to download the DEB packages from the links in the search result and install to any release in use, since there are no dependencies for installing the wallpapers.

Search result discrepancy

  Wallpapers from some releases are missing from the search result

Ubuntu Package Search will show all available packages regardless of the release. In comparison, the local search result from Ubuntu repositories depends on the release that is currently used.

For example, 14.04 release does not show ubuntu-mate-wallpapers-* in the Ubuntu repositories because Ubuntu MATE became an official flavour from 15.04 release. With Ubuntu Package Search, you can find such missing packages easily.

  Searching with "ubuntu wallpaper" does not show certain packages

The suggested search option will show most relevant results. The keywords will match packages that contain wallpapers for all official flavours, given that the names were derived from and contain "ubuntu" itself: Ubuntu, Lubuntu, Kubuntu, Xubuntu, Ubuntu MATE etc.

Therefore, some wallpapers are missing from the search result because of different package naming, such as wallpapers for Plasma Workspace and Shimmer Project.

This answer is applicable to all supported Ubuntu releases at any time.


Changing write permissions for jailed SFTP denies login

Found out the solution. The user is jailed to /var/www/sites. I then created another folder /var/www/sites/site1.

I use:

chown root:webmaster /var/www/sites/site1
chmod 775 /var/www/sites/site1

This enabled the home directory to have the correct permissions to login and then be able to write to the next folder up.

If the user needs write access to /var/www/sites, then you must jail the user at /var/www which has root:root ownership and permissions of 755.  You then need to give /var/www/sites ownership of root:(your group) and permissions of 775.


After installing Ubuntu 13.04 and running boot-repair, Ubuntu fails to load, gets stuck with a blank screen

1.First run this command on ubuntu,to know proper chaining was done or not,

sudo os-prober

IF it shows like this /dev/sda1:Windows 8 (loader):Windows:chain,then proceed to step 2.

2.Run the windows installation disk,select repair option and open the command prompt.Run    the below commands on the displayed command prompt

bootrec /fixmbr
bootrec /fixboot


Ubuntu 14.04 install stuck at Preparing to install

This problem occurred because some partitions were having bad sectors. I've formatted them and then the installation worked fine.
Another work around is to mount the partitions with gnome disks and then the installer works fine.


How to access my office postgresql server from home?

So there are 2 ways:

If the database is exposed on the public ip. Just connect using psql client to that host address.
Or if access is not that open and you have ssh access. just tunnel up the postgress port on your system using ssh and access it using psql client


If I want to login to my pe2900 server; I

ssh pe2900

and I'm in.

guiverc@d960-ubu2:~$ ssh pe2900
Last login: Sun Jan  6 22:03:34 2019
..  /* redacted welcome & stat messages */
[guiverc@pe2900 shared]$

I have password login enabled (using keys) and my machine knows the ip address by name.

If I wanted to login using a different account to an address unknown to my box (or DNS), I would

ssh user@192.168.1.3

where user & 192.168.1.3 are whatever are your user and ip.address of machine you want to use). I'd expect to be asked for a password (my example pe2900 won't do that; I've disabled that; and only allows login from certain accounts, addresses & using keys).

ssh is just a secure version of rsh (remote shell)


The artist is apparently called Sayantan Chaudhuri. You may visit their flickr profile.


My suggestion is to just install it on a flash drive and before it shows the apple boot logo, hold option key and select the flash drive. It performs surprisingly fast off a flash drive. I have a cousin that uses this method on his Mac.


Setting "Always on Visible Workspace" does not work

I had the exact same issue.  The following worked for me.

Open up CompizConfig Settings Manager (ccsm).  Go to the 'Workarounds' section -> Window stickyness (bottom of General Tab).  Select/enable the checkbox next to 'Make "on all desktops" windows "sticky"'.


'gzip: file.log.gz: not in gzip format' error

Its simple, I had the similar problem while ago, what I did was just rename the file.
that is to remove the .gz from the file name. Then it looks like access.log. So you can view it using any editor you have


Plugged-in headphone cannot be detected but bluetooth headphone works well

After tried many solutions, I found this post today: https://forums.linuxmint.com/viewtopic.php?t=315230, and it does work for me.
Simply speaking: Every time you switch your system from Windows to Linux, DON'T USE REBOOT, SHUTDOWN the whole system and restart will solve the problem.
Hope this will help.


Arrows next to Launcher Icons in Unity 2D

Yes, white arrow mean you have window opened in current workspace, the transparent with white border mean the window opened in other workspace.

Arrow number indicate how much window are open.


apache error AH00526: Syntax error on line 1 of -c/-C directives:

Use the -f instead of the -c switch to specify a config file, like

httpd -t -f httpd.conf

Make sure httpd.conf is the the current directory.


Permissions for Video folder for minidlna?

I tried following the examples in this thread but still could not get it to work. I ended up stumbling on this article here:  Running minidlna on Ubuntu and followed it step by step and I now have the media on my second drive being served through minidnla. If any one else struggles I suggest you follow his process.

I have quoted his text in case his page ever disappears.

He installed a service called minidlna which is supposed to allow streaming of media. However, it didn’t like the permissions on his chosen folder.
The path is /media/jw/drive2/foo.

jw@FooPC:~$ sudo service minidlna restart
* Restarting DLNA/UPnP-AV media server minidlna
[2014/07/23 21:03:30] minidlna.c:594: error: Media directory "/media/jw/drive2/foo" not accessible [Permission denied]

He pointed it to a folder in his home folder and it liked that just fine, but not the 2nd drive that holds the media.

He tried setting the user as me in the conf file and in the default file. But eventually He discovered he had to set the user as “root” to make it work.

He opened terminal and entered ...

sudo gedit /etc/default/minidlna

...and edited the file...

# User and group the daemon should run as
USER=”root”
#GROUP=”minidlna”

...then saved and back to terminal and entered...

sudo gedit /etc/minidlna.conf

... and edited the file...

# Specify the user name or uid to run as.
user=root

He restarted the service using...

sudo service minidlna restart

... in terminal and this time there was no error about permissions.

I hope that helps someone as it helped me. If it helps you then please visit his page and leave him a comment like I did so he knows that his page is helping!

UPDATE:

This works straight away but if you power off the machine and then restart it the second drive is not served by the minidnla server until you run:

sudo service minidlna restart

Getting it to work from bootup is a user-mode drive problem and can be fixed by adding the drive to fstab. The downside is that the system will not boot automatically if the drive is not plugged in, as it will annoyingly demand to retry or ignore before continuing to boot.

An alternative to adding the drive to fstab is to restart the minidlna service at reboot from cron:

sudo crontab -e

then add the next line at the end of the file:

@reboot sleep 60 && sudo service minidlna restart


Is it possible to restore only one directory with the backup utility?

Of course you can do that. From the gnome DejaDup Help wiki (oh and where it says file you can also read directory)

Restore a Lost File with Déjà Dup (wiki link)

Open the file browser (Nautilus)
Browse to the real folder containing the file you lost (not via any symlink)
Right click in the folder, between files ▸ Restore Missing Files… (this might not be available if you view your files as a list, choose grid of icons on the top of nautilus window)
When the Restore dialog appears, it will scan for files that are in the backup but no longer in the folder
When you see the file you want to restore appear, select it and click Forward
Review your selections and click Restore

Restore a Previous Version of a File with Déjà Dup (wiki link)

Open the file browser (Nautilus)
Go to the real folder containing the file you want to revert (not via any symlink)
Right click on the file you want to revert
Choose Revert to Previous Version…
Up comes the Déjà Dup dialog. Choose the date from which to restore.
Click Forward
Review your selections and click Restore. Note: this will overwrite
your current version of the file
Done!

Note that for Ubuntu you'll need the ubuntuone-client package installed in order for the menu entries to appear in Nautilus, even if you're not using Ubuntu One.
Also note that Mate's version of Nautilus, Caja, does not support restoring files.

Pro Tips

You can select multiple files at once before right clicking.
You can revert files on the command line:

deja-dup --restore FILE1 FILE2


There is a packaged called fprint available in this PPA However, it does not appear that your device is listed as "Supported". There is a bug Bug #285089 Which details issues with a similar USB device id though I don't believe it is related nor confirmation that this device does not work with the fprint package.


How to install ubuntu and remove windows 10

Start a Live Ubuntu, open GParted, delete all Windows partitions (recovery, oem, microsoft-reserved, installed-Windows partition). You can keep the EFI partition as it is needed for any operating system installed on uefi hardware. You can actually delete the EFI partition, but it will be (re)created during the install process of any OS on uefi hardware. Apply changes, close GParted and click the 'Install Ubuntu' icon. Let Ubuntu do its' install thing and you're done.


Where is documentation for [ x$feature_... = xy ] in grub.cfg?

feature_platform_search_hint (and others) and the shell-like syntax are a feature of the normal module in grub. The syntax is somewhat documented in the GRUB manual - although I couldn't find documentation for [] The script language is "obviously" modelled after bash, as it reserves words used in bash even if not yet implemented (such as [[) and implements bashisms such as function.

The predefined variables such as feature_platform_search_hint are hardcoded in the normal module at build time, and are essentially undocumented except by studying the source code. In current versions of grub, these variables are  defined to be y at all times, so these variables seem to indicate support for specific features of a given grub version, and testing them can be done to write grub.cfg files that work with multiple versions of grub.

For example, feature_platform_search_hint=y seems to indicate that the search command supports --hint-bios, --hint-efi and so on switches, while the absence of this variable might indicate a version of grub that doesn't support these switches, so you shouldn't try to execute a search statement using them to avoid syntax errors.

There is a lot of conjecture and "may" in my answer, as all of this seems to be essentially undocumented.


Mongod service doesn't start with enableEncryption: true option in mongod.conf

That parameter allows you to enable encryption in the WiredTiger storage engine, but you still need to actually configure it.  You also need to be running the Enterprise version of MongoDB, this is not available in the community/open source version.  Relevant snippets from the docs:

  Enables encryption for the WiredTiger storage engine. You must set to true to pass in encryption keys and configurations.
  Available in MongoDB Enterprise only.

Once you have the above done you have to actually configure keys (and manage them) as per these docs.  Key generation and management is a complex topic, beyond the scope of this answer, but generally unless you really need at-rest encryption (and most do not) it's usually not worth the effort.


USB mouse and keyboard suddenly stopped working in 13.10.

Ok.  I haven't figured out how my machine reach this state, but I think I've got the problem solved.

I booted from the live cd and copied some logs and such to my hard drive so I could compare against the system when it was running.  One of these items was the output of lsmod.  The livecd was using hid, usbhid, hid_microsoft, and hid_logitech_dj.  Aside from my only microsoft device being my keyboard and my only logitech device being my mouse, I remembered hid was necessary to get my usb joysticks working way back when.

modprobe didn't fix the problem - the modules were all missing.  (Still not sure how this happened.)

To install the modules I needed my kernel's extra drivers package.  I included the kernel itself, just in case I needed a reinstall.
    sudo apt-get install linux-image-{,extra-}uname -r

After that, modprobe added the usb devices and I was good to go.


Install Ubuntu / on SSD and /home on HDD

Here a solution

Finally I reinstalled ubuntu following this example : How to use manual partitioning during installation?
but the point is that you can create a root partition on SSD and a /home partition on HDD even if you have the device for boot selected as SSD - like the step 8 of this example.

For those how want to move /home the best solution is here : https://help.ubuntu.com/community/Partitioning/Home/Moving
and keep in mind you can't rename /home when you are on your ubuntu session. To do it boot on an usb key and you can use udisksctl to mount the partition and go from there: https://www.makeuseof.com/tag/mounting-hard-disks-partitions-using-linux-command-line/

Thank you for your comments, they really help me to understand how it works.

I hope it will help someone !


There are some issues in that unit file:

The file contains two instances of Type=, one
with simple and one with notify. It must contain
only one such line and that must be of the proper
type which in turn depends on how the executable
/home/ubuntu/venv behaves. For daemons, often forking
is used.
The filename given for StandardError should presumably be
/home/ubuntu/logs/icengine/std_err.log and not
/home/ubuntu/logs/icengine/std_err/log. Make sure the user
ubuntu is able to write to that location and the directories
exist. I reckon systemd won't create the path if it doesn't
exist (although it'll create the file).
The syntax of StandardOutput= and StandardError= is wrong.
According to the docs the sysntax is
StandardOutput=file:/home/ubuntu/logs/icengine/std_out.log.
Same for StandardError.


Junit4 giving "no tests found" when running junit on simple test cases

Of course not. Your class ClubMemberTest have to extend junit.framework.TestCase

import org.junit.Test;
import junit.framework.TestCase;

public class ClubMemberTest extends TestCase {
    @Test
    public static void test1() {
        assertTrue(1 - 1 == 0);
    }
}


Ubuntu is a Debian based Linux operating system.

That means you can install Debian software packages which will run natively on it and of course you can also run all kinds of scripts. However, the Windows binary executable format (PE) is incompatible with the one Linux systems support (ELF).

Ubuntu has a huge software repository where you can find tons of free applications written for Ubuntu, including many apps you know from Windows like Firefox, Thunderbird, VLC, GIMP, etc. Check out your Software Center application to browse the repositories.

If you need to run Windows applications, because it is a special software which did not get ported to Linux and does not have a Linux alternative, you have three options:

Install Ubuntu in dual-boot with Windows, that way you have two OS installed on your computer and can chose which one to load on every boot.
Virtualize one system, you can either run an Ubuntu VM on Windows or a Windows VM on Ubuntu. That way the guest OS runs inside a virtualization application on the host system. It will be slow though, but you can quickly switch and run stuff in parallel.
Use the compatibility layer Wine to run Windows executables directly on Linux. It is not a virtual machine but translates the system calls the Windows executables want to make to match the Linux interface. This is slower than a native application, but usually faster than a full VM. However, not all applications are compatible with Wine, some work better and some don't work at all. There's a list of tested applications which you can check before trying a piece of software in Wine.


I found out solution, these commands fixes everything:

sudo apt-get clean
sudo rm -fr /var/cache/apt/*.bin

I saved above commands as an sh file and I always run it when it crashes again.
Hope it helps you also.


Which package should I choose for the convert command?

According to the GraphicsMagick FAQ (which maybe outdated):

GraphicsMagick is originally based on (forked from) ImageMagick 5.5.2 in November 2002, from the version distributed by ImageMagick Studio LLC, which is itself forked in August 1999 from ImageMagick developed by E. I. du Pont de Nemours and Company starting in 1992. Other than utilities being executed as sub-commands of the 'gm' command, the command-line syntax and programming APIs remain entirely upward compatible with ImageMagick 5.5.2. A better question might be "How does ImageMagick differ from ImageMagick?" since ImageMagick continues to alter and evolve its interfaces so they are no longer completely compatible with earlier versions. While GraphicsMagick also adds new features, it does so in a way which assures that existing features work as they did before. ImageMagick focuses on adding new functionality and features and has dramatically mutated several times since the fork.
GraphicsMagick maintains a stable release branch, maintains a detailed ChangeLog, and maintains a stable source repository with complete version history so that changes are controlled, and changes between releases are accurately described. GraphicsMagick provides continued support for a release branch. ImageMagick does not offer any of these things.
Since GraphicsMagick is more stable, more time has been spent optimizing and debugging its code.

According to this SO question (also possibly outdated), GM is faster than IM. This blog post from 2013 concurs.
I have usually always used IM, and as the accepted answer in the above question indicates, for occasional low usage, it's fine.
Short answer: pick GM unless someone above you in authority specifically asks for IM. I'll be switching to it in short order.


What is the correct way to select an older installed kernel on Pi?

Workaround:

use apt to uninstall the new kernel that overwrote my custom kernel.
reinstall custom kernel
warning - deb files for custom kernel required
put custom kernel on hold to prevent upgrade

# getting rid of auto-updated kernel
# version to uninstall = 1028

# review installed kernels:
apt list linux-image*raspi

# get detail on an installed kernel
apt show linux-image-5.4.0-1028-raspi

# remove the "wrong" new version
# NOTE YOU WILL GET A WARNING ABOUT REMOVING THE BOOT KERNEL
sudo apt remove linux-image-5.4.0-1028-raspi
# DO NOT REBOOT

# cd to location of my compiled kernel .deb files
# reference: kernel compile for ubuntu on pi
# https://askubuntu.com/questions/1238261/customizing-the-kernel-arm64-using-ubuntu-20-04-lts-on-a-raspberry-pi-4
cd ~/kbuild

# install my previously compiled custom kernel as per instruction for installing a newly compiled or recompiled  kernel:
sudo dpkg -i *.deb

sync
sudo reboot

# put my kernel on "hold" status to prevent auto-update
echo "linux-image-5.4.0-1027-raspi hold" | sudo dpkg --set-selections

# review dpkg status setting for linux-image:
dpkg --get-selections | grep "linux-image"


command wget not found even though it's already installed

wget is normally installed in /usr/bin, so try the full path:

/usr/bin/wget

if it's not installed there I presume you did a custom install, rather than

apt-get install wget

if it is there then somehow /usr/bin is missing from your path:

echo $PATH

so you'll have to add it.


Setting proxy in Ubuntu terminal - proxy having special characters

Sudo does not preserve your environment variable. See the following link for an answer on how to configure sudo to do it:

https://superuser.com/questions/232231/how-do-i-make-sudo-preserve-my-environment-variables


Ubuntu 19.10 only needs a swap partition if you use Hibernation. If you do, the swap partition should be set to equal your memory size.

Otherwise, the Ubiquity installer used by Ubuntu will create an optimally sized swap file. If later on you discover you need to enlarge the swap file, because of very memory-hungry apps, it is far easier to enlarge a swap file than a swap partition.

Early on, before 17.10, swap partitions were also faster than swap files, but that was fixed two years ago. Now the only need for a swap partition is for Hibernation.


You should probably try defining tx_rate=0.15 before your if...else conditions. Because when your user inputs nothing for the first question where you ask for yes or no it directly goes to the else part where there's no tx_rate so giving you error "variable not defined"


Can't get Ubuntu to install [12.04, 64bit]

Make sure you're inserting your USB stick in a USB 2.0 port. The newer USB 3.0 ports can sometimes cause problems.


"The following packages were automatically installed and are no longer required:" what to do?

Is telling you that those packages that were automatically installed due dependency resolution, are no longer required, as the packages that depend on them has been removed or have other dependencies. You can remove them with a simple:

sudo apt-get autoremove

But you might want to upgrade your other packages too:

sudo apt-get upgrade


How do you quickly transfer a link from your computer to an Android smart phone?

Chrome to Phone is the official (Google) way to do it.

Browser Extension
Android App


If the logical operation is always the same (i.e. in this case ==) and you just want to change the field number and the value against which it is tested, then you can pass them as separate variables e.g.

#!/bin/bash

awk -v field=3 -v value="hello" '
{
  if ( $field == value )
  {
    print "hye"
  }

  if ( $3 == "hello" )
  {
      print "bye"
  }
}' test

If you truly want to create a variable awk script, then IMHO a different approach is required, for example using a here document to write the awk script on the fly using the shell to expand your command variable - something like

#!/bin/bash

mycommand="\$3 == \"hello\""

awk -f- test << EOF
{
  if ( ${mycommand} )
  {
    print "hye"
  }

  if ( \$3 == "hello" )
  {
      print "bye"
  }
}
EOF


yum whatprovides 'perl(Foo::Bar)' equivalent with apt or dpkg?

If you are looking to a similar apt/dpkg function, I don't know one, but you can use this:

dpkg -S $(cpan -D Net::Cmd | grep pm | awk -F '/' '{print $NF}')
perl-modules: /usr/share/perl/5.14.2/IPC/Cmd.pm
perl-modules: /usr/share/perl/5.14.2/Net/Cmd.pm

You can use cpan -D module to find basic information about a module:

cpan -D Net::Cmd
Going to read '/home/braiam/.cpan/Metadata'
  Database was generated on Fri, 16 Aug 2013 21:53:02 GMT
Net::Cmd
-------------------------------------------------------------------------
    For command based protocols (FTP, SMTP etc)
    S/SH/SHAY/libnet-1.23.tar.gz
    /usr/share/perl/5.14/Net/Cmd.pm
    Installed: 2.29
    CPAN:      2.30  Not up to date
    Graham Barr (GBARR)
    gbarr@pobox.com

Then parse the module path, in my case I was lazy, you can use whatever you like to do this:

cpan -D Net::Cmd | grep pm | awk -F '/' '{print $NF}'
Cmd.pm

Then use command substitution:

dpkg -S $(cpan -D Net::Cmd | grep pm | awk -F '/' '{print $NF}')
perl-modules: /usr/share/perl/5.14.2/IPC/Cmd.pm
perl-modules: /usr/share/perl/5.14.2/Net/Cmd.pm

Hope is useful to you. BTW, this requires cpan installed (which is in most of the defaults installations).


If I recall correctly, USB drives are mounted by udev after virtual-filesystems (an Upstart signal), not as part of $local_fs.

So one solution is a bug against CrashPlan - it's assuming the drive you want to backup is not USB.

A workaround is to change the dependency (or to add a second) is the CrashPlan init script.

Another (easier) workaround is to add a 'sleep 60' or other pause to the CrashPlan init script. Or to simply renumber the symlinks so they run later.


There should not be any problems, as long as you have the driver correctly installed by Jockey (Additional Drivers).


Is it possible to download the arch wiki docs for offline reading?

This package is ArchLinux specific - see https://repology.org/project/arch-wiki-docs/versions .

But you can get the contents from its PKGBUILD file. This file has a link to the Git-repository with the documentation.

So you need to run the following commands:

sudo apt-get install git python3-lxml python3-pip python3-cssselect python3-kitchen
sudo pip3 install simplemediawiki

cd ~/Downloads
git clone https://github.com/lahwaacz/arch-wiki-docs
cd arch-wiki-docs
LANG=en_US.UTF-8 python arch-wiki-docs.py --output-directory ./build_wiki --clean --safe-filenames

But it seems that they have some obsolete python coding here. So you may need manual patching.


Unity plugin - can't rebind the launcher button

This has been answered by Dell. They have a package which specifically disabled the button.

Removing this package has solved this issue for me.

sudo apt-get remove dell-super-key

https://bugs.launchpad.net/dell-sputnik/+bug/1154430


Deb installer: how to set Source, License, Icon

For license, you should use another file: copyright.

Here an example:

Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: *
Copyright: 1975-2010 Ulla Upstream
License: GPL-2+

Files: debian/*
Copyright: 2010 Daniela Debianizer
License: GPL-2+

Files: debian/patches/fancy-feature
Copyright: 2010 Daniela Debianizer
License: GPL-3+

Files: */*.1
Copyright: 2010 Manuela Manpager
License: GPL-2+


Ubuntu won't find any wifi near me to connect to

Short answer:

Connect to the internet by wire and run

sudo apt install firmware-b43-installer

After that reboot or run

sudo modprobe -r b43
sudo modprobe b43

Your Wi-Fi should work.


Not sure if this is the best solution to this problem but I ran this command:
sudo apt install printer-driver-gutenprint

Works perfectly...for now.


How do I install two different versions of Kdenlive?

Yes, it is possible, however you will have to install it manually through a source tarball or git clone. It will not be possible to simply input sudo apt install kdenlive and download an alternative version, because only one version is available at a time in the repos (for good reason; look up slapt-get for Slackware).


The variable PATH is a special shell variable. It defines the list of directories in which executables/commands can be found.

In the line PATH="${2}", you wipe out the default value of PATH and now the shell doesn't know where to find the ls command. For example, ls can be found in the directory /bin, but you modified PATH to have the value midhand.mp4 (the second argument), in particular PATH does not contain /bin and thus your shell cannot find the ls command.

Try this:

#!/bin/bash

echo "Hello, World"
the_name="${1}"
the_path="${2}"

echo "PATH is '$PATH'"
echo $the_name
echo $the_path
eval "ls"

Note. You can change the last line from eval "ls" to just ls.

You can run man bash to get further information.


PlayOnLinux install menu incomplete display

I just upgraded PlayOnLinux from 4.2.4 to 4.3.4 and they fixed this bug, now this windows can be resized.


Connecting iPod or MP3 player "breaks" usb

To watch the logs as something is connected you can either monitor kern.log in gnome-system-monitor or other logging software, or use the command-line and enter

tail -f /var/log/kern.log

When your device is connected you will see a lot of information, such as

usb 1-3: new high-speed USB device number 5 using ehci_hcd
Initializing USB Mass Storage driver...
scsi2 : usb-storage 1-3:1.0
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver uas
scsi 2:0:0:0: Direct-Access     CREATIVE ZEN_Stone

You can keep the log open in the terminal and monitor when any errors occur as well. You can grep the log for past errors with grep -i usb /var/log/kern.log, but you will probably need to use some more specific search terms with grep such as error or the name of your hardware, as just using usb as a search term will return a lot of results.

Most of the advice you read to restart the USB subsystem won't work in Ubuntu, and this way here at Ubuntu forums doesn't seem to work for me, but you could try restarting udev by entering

sudo service udev restart

but you may very well still have to reboot.


No reinstall needed you can use Gparted and extend your ubuntu partition. Create a live Ubuntu usb boot from it and use Gparted to extend your Ubuntu partition. (you cannot resize with Gparted while running Ubuntu so use Ubuntu live usb/cd).

i forgot to mention you should use "Try Ubuntu without installing" as @user68186 said


Error: invalid environment block. Press any key to continue

From http://ubuntuforums.org/showthread.php?t=1285098:

Press E at the GRUB menu. Find the line saying save_env recordfail and delete all of it with the Del or Backspace key. Press Ctrl+X to boot, and then open the Terminal by searching it in the dash(launcher menu).

Run the following command, and then when it asks for your password, type it, and press Enter. Your password will not be shown, not even asterisks.

sudo -i

Then, run each command, one-by-one.

cd /boot/grub
rm grubenv
grub-editenv grubenv create
grub-editenv grubenv set default=0
grub-editenv grubenv list
update-grub

The second-to-last command should show default=0. If it does, run the last command, and let it finish. When it finishes, you should get the prompt /boot/grub# or something like that again(it's what you see after each command). Run exit twice, and then reboot.


Disabling numlock in session startup does not work

Create a bash script and put in ~/.local/bin
If the directory doesn't exist create it.

Then create the file.

 nano ~/.local/bin/numlockoff.sh

And add

#!/bin/bash

/usr/bin/numlockx off && xmodmap -e "keycode 77 = """

Make it executable

chmod 755 ~/.local/bin/numlockoff.sh

Finally add it to Session and Startup/Application Autostart

/home/username/.local/bin/numlockoff.sh


In those two samples it looks like the font rendering algorithm is the same, one is just much darker than the other (and the darker one looks, to me, better).

This would be font smoothing "gamma" - gamma controlling how light/dark the partially lit pixels are adjusted.

Both the two following articles recommending setting font smoothing in Wine using regedit (yes, Wine maintains a Windows-style registry and has its own regedit.exe).

Run regedit.exe and adjust the following keys in [HKEY_CURRENT_USER\Control Panel\Desktop] to these values:

"FontSmoothing"="2"
"FontSmoothingType"=dword:00000002
"FontSmoothingGamma"=dword:00000578
"FontSmoothingOrientation"=dword:00000001

Articles:

http://wine-review.blogspot.com.au/2009/03/how-to-enable-font-anti-aliasing-in.html
http://alien.slackbook.org/blog/better-font-rendering-in-wine/


How can I make some command to run at certain times after login?

You can use a master bash file that contain a sleep time & all your executable.

Like,

#!/bin/bash
sleep 30 && StartmyJob1.sh

Now make this master.sh file to run at startup.

Also refer to this guide How do I start applications automatically on login?


If it's a zip you may need to install unzip first. If it's a rar you may need to install unrar.

If it was a .tar or .tar.gz you wouldn't get the error about "archive type not supported".

Rather than double click file, right click on it and choose uncompress. Like I said if it's a zip or rar, run the following commands first, or use software center.

sudo apt-get install unzip

Or

 sudo apt-get install unrar

One installed, again right click and you should see an uncompress option. Now with the right archive type installed it should uncompress.

Edit: what is the file extension by the way?

Update: Since the extension is .tgz you can either

 tar zxvf fileNameHere.tgz

From the command line, or as I said before, right click and select extract from file manager


Is there any way to get table of contents of a man page?

It's a bit hacky, but I guess you could use man -w to locate the compressed troff source, and then search that for section headings (.SH)

Ex.

$ zcat "$(man -w ls)" | grep '^\.SH'
.SH NAME
.SH SYNOPSIS
.SH DESCRIPTION
.SH AUTHOR
.SH "REPORTING BUGS"
.SH COPYRIGHT
.SH "SEE ALSO"


Your issue is certainly related to a regression introduced in TB16 and which impact some IMAP servers (like dovecot).

Bug 803843 - IMAP mailfiles keep growing to gigabyte size


umet dependency while apt-get install ros-kinect-desktop-full

INFO: I have recently updated to Ubuntu 18.01 bionic, I am also trying to install ros melodic.

SHORT ANSWER:

For me it worked to install libcurl4, libcurl4-openssl-dev

LONG ANSWER:

Hi,

I have got the same problem that you, which make me feel better that I amnot alone. The one way around is to use the installation from source http://wiki.ros.org/melodic/Installation/Source. Then, they provide a tool called rosdep that can be used to resolve dependencies:

rosdep install --from-paths src --ignore-src --rosdistro melodic -y

EDIT: If trying to install kinetic must be: kinetic

And then the error contained more information such as that libcurl4, and libcurl4-openssl-dev were missing.
I installed.
sudo apt-get install libcurl4
sudo apt-get install libcurl4-openssl-dev

And then changed to install again the recommended version in:
http://wiki.ros.org/melodic/Installation/Ubuntu

I have been digging in the internet and could not been able to find any other fixing that work for me.

Regards,


Binding a list of IPv4 addresses to Ubuntu Server quickly

Found the solution, in case anyone was needing this! I searched for hours and couldn't find anything so decided to come up with something on my own! I really hope this helps others who were seeking the same solution.

for i in {1..128}; do echo iface eth1:$i inet static >> /etc/network/interfaces; echo address 192.168.0.$i >> /etc/network/interfaces; echo netmask 255.255.255.0 >> /etc/network/interfaces; echo auto eth1:$i >> /etc/network/interfaces; done

Replace 255.255.255.0 with your subnet, and replace 192.168.0. with the first 3 parts of your IP range
Edit "eth1" to eth0 or whatever your main network interface is.

And replace 1..128 accordingly, for example the above commnad would route .1 to .128.


Headless Ubuntu 20.04 change resolution w/o breaking nautilus-admin

I was able to finally get this to work by following these instructions
https://ubuntuforums.org/showthread.php?t=2296872
I removed the xorg.conf file I had created in the original post and followed the instructions at the above link. I had to comment out the 1920X1080 modeline to get it to work (not sure why but it worked so I'm not complaining).  Was able to  connect to the desktop at the desired resolution 1920x1080 using NoMachine.  The changes have survived two reboots and a shutdown.  More importantly nautilus-admin is working. Not sure why this configuration works vs the original post but I'm happy in either case.


Slow startup of Plasma 5.5 in Kubuntu 16.04

There is a workaround to avoid this problems: "disable the splash screen (System Settings -> Workspace Theme -> Splash Screen -> Set Theme to "None")" (see https://bugs.launchpad.net/ubuntu/+source/breeze/+bug/1584604/comments/14). The bug seems to caused by breeze.


TRIMming shared partition in dual-boot on SSD

Currently all Samsung SSDs are blacklisted in the Linux kernel as TRIM used to corrupt the sectors on those SSDs. they are working on this issue with Samsung, though.
Right now Linuxers should maybe consider buying Intel SSDs instead, as they work flawlessly (atleast they aren't blacklisted). For details just look it up in the git repo.


Uninstall IntelliJ Ultimate edition version 12

First do whereis idea and it will tell you that you need to delete:

/opt/idea-IC-173.4548.28/ This is where I installed IntelliJ.
/usr/local/bin/idea Only if you chose to install "Launcher Script" during IntelliJ installation.

Also need to delete:

~/.IdeaIC2017.3  It's a folder named after IntelliJ's version.
$HOME/.local/share/applications/jetbrains-idea-ce.desktop Only if you chose to install a main menu shortcut during installation.
In some cases you can also find jetbrains-idea.desktop under /usr/share/applications/


If we are talking about graphical front-end to scripting, then you can use zenity. For instance, here are some examples from man zenity

Open a graphical dialog to select a file:
zenity  --title="Select a file to remove" --file-selection

Here's a line to list all files in current working directory and show them in a popup window: find . -maxdepth 1 -name "*" -printf "%f\n"  | zenity --list --column="Files"

And here is one example how I used it in practice to create a simple app launcher: https://askubuntu.com/a/606072/295286

There's other alternatives, too, for instance, yad which is called "zenity on steroids"


Can somebody run me through a clean install of 13.10?

If I understood your question correctly you want to update your current 12.04 to 13.10.

Ubuntu have a full document available on doing updates like this  here.

If you want to just run a terminal command if memory serves it's:

sudo do-release-upgrade

If, however, you are trying to install the updates version on a new machine simply download the ISO from  here, burn it to a disk and install.

Hope this helps


Problem while trying to burn Ubuntu Live disc

if this is a CD ROM drive like you said, it won't write disks. You can find with sudo lshw and searching for something like below in the answer to find out what is your CD drive:

       *-cdrom
            description: DVD-RAM writer
            product: DVDRAM GT30F
            vendor: HL-DT-ST
            physical id: 1
            bus info: scsi@1:0.0.0
            logical name: /dev/cdrom
            logical name: /dev/cdrw
            logical name: /dev/dvd
            logical name: /dev/dvdrw
            logical name: /dev/scd0
            logical name: /dev/sr0
            version: TS08
            capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
            configuration: ansiversion=5 status=nodisc

But maybe your CD drive is damaged (or the empty disk). You could try with another disk and see if your drive can read other disks.


command to install 32bit packages (lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6) on ubuntu 16.4 LTS

You should keep your system free from 32-bit software.  32-bit is on the way out and never to come back. Get used to 64-bit. If possible ignore 32-bit software. Now that my opinion is out here ...

Your best method is it to install virtualBox or VM Ware player and install a 32-bit Ubuntu (links to the torrent of 32-bit 16.04.1) in it. Then install android studio. It will work better than mixing it up with your current install.

If you still want to install it in your current system then the method to install 32-bit should be to add the architecture, update and it then should have imported the 32-bit packagea,

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1

This will show ...

...
The following additional packages will be installed:
  gcc-5-base:i386 gcc-6-base:i386 libgcc1:i386 libgpm2:i386 libtinfo5:i386
Suggested packages:
  glibc-doc:i386 locales:i386
The following NEW packages will be installed:
  gcc-5-base:i386 gcc-6-base:i386 libc6:i386 libgcc1:i386 libgpm2:i386
  libncurses5:i386 libstdc++6:i386 libtinfo5:i386
0 upgraded, 8 newly installed, 0 to remove and 3 not upgraded.
Need to get 2960 kB of archives.
After this operation, 12,9 MB of additional disk space will be used.

And that should install the 32-bit components you need for android studio.


ia32-libs package not found intalling Adobe Air

You can use this:

sudo apt-get update
sudo apt-get install libgtk2.0-0:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11:i386 gstreamer0.10-pulseaudio:i386 gstreamer0.10-plugins-base:i386 gstreamer0.10-plugins-good:i386 gstreamer0.10-ffmpeg:i386


Add my password as part of the script or argument?

echo password | sudo -S command

So you pipe your password to sudo, and the -S command makes sudo read your password from the standard input instead of the terminal.


Unable to change Display settings (esp "Display Scale") with some monitors in 17.10 with Gnome Shell

I think I may have figured this out... Should be a better answer than this though.

By going back to just the single monitor, I'm able to open settings again. If I switch the scale back to 200% (the default), I'm able to then plug the monitor in and open Displays with out anything weird happening, and change the laptop monitor scale to 100%. When I disconnect the cable again, my laptop screen goes back to 200%, but I'm able to switch it back to 100% at that point. The next time I connect that monitor, it goes back to the 100% scale I left it at, and at this point things seem hunky dory for me.

However, it appears that I have to go through this whole process every time I connect a new monitor. A bit annoying.

The bottom line here is that is seems like per monitor there is some "default scale", and when you connect a new secondary to it, it creates a new combination based on the default. But if for whatever reason it has to "change" the default going between the two, things get all snookered.

It would seem this is a bug with Gnome. Ideally this would be fixed, but at the very least having a more intelligent default monitor scale setting would do the trick. Hopefully someone has a better answer than I do about how to resolve this issues without going through this mess for each new monitor. If not, may my discovery serve useful to someone trying to hack their way out of the problem.


Cannot install Qt-4 on Ubuntu 20.04 - Quite Universal Circuit Simulator (QUCS)

The Qt4 framework has been removed from Ubuntu 20.04 main repository.
You can still get Qt4 libraries, adding the PPA  rock-core/qt4
Run in a terminal:
sudo add-apt-repository ppa:rock-core/qt4

sudo apt update

And install the required Qt4 libraries by running command:
sudo apt install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui


Synchronize Blackberry Address book and Calendar with Evolution Directly

There is nothing which is easy, basically what you must do is install the latest version of libbarry opensync (0.4x) opensync-barry and opensync-eds (evolution data services) then you can use the command line to make a configuration for your blackberry adding in the id of the phone which you can grab using barry-utils.

Then you use the command line to make a sync between the two.

Now I must warn you that the likelyhood of loosing data is very high, blackberries and evolution are not nice PIMs and aren't standardised.

Your other option is to use the ubuntu one phone syncing service which apparently works quite well. https://one.ubuntu.com/mobile/ but that costs money.


Ubuntu 18.04 Login Screen Blank Unless External Monitor Plugged In

Can you try to use "Integrated Intel® HD Graphics 4400" proprietary graphics driver over "Software & Updates" setting menu as shown in Screen Resolution Settings not Working after NVIDIA Driver Update


Ubuntu is showing multiple notification when volume is changed

I solved this by disabling xfce-volumed, Pulseaudio plugin was running along with it.

Open a Terminal window and type killall xfce4-volumed and try to change volume now. Only one notification will be shown.

To disable xfce4-volumed permanently open Session and Startup from settings manager. Go to Application Autostart tab. Look for XFCE Volume Daemon (pulseaudio) and untick it to disable.

Edit:

A more simple approach I found is to right-click on the volume icon in the panel and open properties. Uncheck the 'show notification when volume changes' box and log out/in.


Can the OS be the problem that makes my pc not show correctly?

It is a video card problem. You should reinstall the video driver, or even better: save your /home directory and reinstall the complete system from scatch. It will be faster than trying to debug this.


curl by default prints STDOUT to the terminal, hence the file you're fetching (in this case a binary file) is printed directly to the terminal.

What you want is to redirect STDOUT from the terminal to a file (you can do that using Bash's > operator):

curl http://files.unity3d.com/levi/unity-editor-5.2.2f1+20151018_amd64.deb > unity-editor-5.2.2f1+20151018_amd64.deb


Laptop touchpad is disabled after a while on an Asus X59GL

I'm not sure thereis a clear reason why yet, there could be some hardware specific difference involved here.
Myself & several others have seen this disappear by disabling the option, though I guess for others it is non effectual. (I have Dell

You may want to keep an eye on the current main bug report
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/868400

running this command seems to be the most effective method to prevent

gsettings set org.gnome.settings-daemon.plugins.mouse active false


Click ctrl+alt+ f2. Then login and type sudo rm ~/.Xauthority  and reboot
That should work


GUI program to shred or wipe files with options to make sure they are unrecoverable?

The easiest option I could find with your requirements is nautilus-wipe.

Go to the Software Center, search for nautilus-wipe, and install it.

After installing, you'll need to completely close Nautilus. The easiest way to do this is to log out and log back in.
Open Nautilus, navigate to what you want to wipe, right-click on any file/folder to see the options Wipe and Wipe Available Diskpace
If you click on wipe, you will see the following:

You can configure the options (type of wipe, number of passes, etc.) by clicking on the Options triangle:

Clicking Wipe Available Diskspace on any item or within empty space in Nautilus will offer to wipe free space on the that partition:

Close Nautilus when done.


How to disable OSD notifications for specific email addresses?

While this solution does not work with configurations for OSD notifications, you can deal with your issue within the filters you've setup on Thunderbird.

Since the email notifications presented by OSD refer to unread messages, you can add to your filter the option Mark as Read.

This will prevent those messages from being presented by the OSD notification, thus solving your initial issue.


This is because you don't have that unallocated space right after the /dev/sda7. In one step you can only enlarge a partition when unallocated space goes right after a partition. Bout you can do in multiple steps: moving partitions boundaries from right to left one by one. Note: Backup you precious data

You better remove swap in /dev/sda6 - for this boot up your machine from Live CD.

Boot from Live CD
Run Gparted
Delete swap = /dev/sda6
Move /dev/sda7 to the left. It will take a long time, because it's a copying itself, so probably one-two hours for 15Gigs.
Resize dev/sda7

Done.


My files disappeared from the UbuntuOne synced folder

I cant answer why Ubuntu One is failing.

you must run foremost from live cd otherwise you will lose deleted files (thanks for that comment!)

I recommend DEFT Linux LiveCD

To recover files I recommend you foremost. Foremost is for recovering files in harddisk.

foremost -t doc,txt,avi,jpg -i /dev/XXXX -o tmp/recovered

Also you must save the recovered files in other harddisk. /dev/XXXX you should put the partition with the deleted files.


MBR Lost after shrinking Active Partition

No worries people!
Found the solution by myself like all the time..

Following are steps to recover/fix your MBR in such case:

Create Windows 7 Bootable USB Using Windows 7 USB/DVD Tool (link to
download)
Boot using this USB Disc
When the setup shows partitions, press Shift+F10
Type "bootrec /fixBoot", enter
Type "bootrec /fixMbr", enter
Restart and boot without USB, Enjoy!


how to run a compiled CPP file with geany

You usually can't run a .o (object code) file directly: it lacks the necessary library linkage.

Instead of Compile, you need to Build (Geany shortcut F9 rather than F8). This will produce an executable file with default name the same as your CPP file but without the .cpp extension.

You should then be able to run it within Geany's shell using Execute from the Geany Build menu, or shortcut F5


Why does Ubuntu show boot messages when starting up?

short answer: yes! :) you can customize Ubuntu or Fedora whatever way you like.
I don't know what version you are running, but under any normal installation i believe plymouth should be installed.

Plymouth is the application which provides the graphical "splash" screen when booting and shutting down an Ubuntu system.

There is an entire Wiki on this topic on the ubuntu website here:
https://wiki.ubuntu.com/Plymouth
I think the reason yours is not working is because either the kernel is not set up to use plymouth correctly, or your grub bootloader was set up to boot the os in text-mode.

Another issue i've encountered before myself, is that my Ubuntu wasn't shut down properly, which causes it to boot in a system check, and that also shows the terminal output.


Updated 16.04 does not work after login - how can I recover?

I had a similar problem upgrading 14.04 to 16.04 on my desktop machine (hardware), but had the foresight to make a duplicate of the 14.04 partition before upgrading, so I was able to copy the duplicate back, fix the UUID entries in GRUB and fstab, and get back to the same setup I had before upgrading.

If you don't have a backup of the old OS (an image of the complete partition is best) there's no way I know to revert from a non-working upgraded install to an older version.  The old file versions are overwritten or deleted during the upgrade process.


Docky needs the libdbus-glib1.0-cil package and it looks like you don't have it installed.

Install it by clicking the link above or by running the following in a terminal:

sudo apt-get install libdbus-glib1.0-cil