How do I find the terminal command for anything?

You're looking for apropos. Just type apropos <KEYWORD> in the Terminal where <KEYWORD> is your search string.

$ apropos monitor
dbus-monitor (1)     - debug probe to print message bus messages
gnome-system-monitor (1) - view and control processes
gvfs-monitor-dir (1) - Monitor directories for changes
gvfs-monitor-file (1) - Monitor files for changes
inotify (7)          - monitoring filesystem events
iotop (8)            - simple top-like I/O monitor
ip-monitor (8)       - state monitoring
ip-netconf (8)       - network configuration monitoring
jconsole (1)         - Java Monitoring and Management Console
jstat (1)            - Java Virtual Machine Statistics Monitoring Tool
mmcli (8)            - Control and monitor the ModemManager
perf_event_open (2)  - set up performance monitoring
perfmonctl (2)       - interface to IA-64 performance monitoring unit
rtmon (8)            - listens to and monitors RTnetlink
sa-check_spamd (1)   - spamd monitoring script for use with Nagios, etc.
smartctl (8)         - Control and Monitor Utility for SMART Disks
smartd (8)           - SMART Disk Monitoring Daemon
smartd.conf (5)      - SMART Disk Monitoring Daemon Configuration File
syndaemon (1)        - a program that monitors keyboard activity and disables the touchpad when the keyboard is being used.
xconsole (1)         - monitor system console messages with X
XF86VidModeGetMonitor (3) - Extension library for the XFree86-VidMode X extension
xgamma (1)           - Alter a monitor's gamma correction through the X server

To get more information about one of the commands you can use man gnome-system-monitor


:set title in vim doesn't work in gnome terminal

Well, I found a work around for anyone who may be having the same issue:

add :silent !echo -en "\033]0;%:t\a" to your .vimrc

This changes the title to %:t which is the file name without the full path.


Executable files, office, mathematical equations

Unless you are willing to accept a new toolset, rather than using the old tools through wine, a change to Ubuntu doesn't make a lot of sense to me.

I'm sure there are lots of competent people here who can give advice on cross-compilation in Eclipse (or any other IDE) under Ubuntu.

LibreOffice with its modules (Writer, Calc, Impress) is a good replacement for MS Office (MSO). LibreOffice Writer comes with an Equation Editor, comparable to that in MSO. The latter is a stripped-down version of MathType.

If you want high-quality, publication-ready math typing, graphs, etc., please consider to give LaTeX a chance.


GTK Recent Chooser Menu callback not working

Well, it seems that it's a bug in the global menu somewhere. When adding the Gtk.RecentChooserMenu to a Gtk.MenuToolButton or simply disabling the global menu, the problem doesn't occur.

To test, add these two lines to the very top of your code:

import os
os.environ['UBUNTU_MENUPROXY'] = '0'


Music does not start in spotify under ubuntu 10.04

You don't need to run it over wine as there is a version of Spotify for Linux.
The guide for doing this is here. Let me know how this goes :)


Ubuntu / Linux / Windows Virus wrote to my "read only" 20.04.1 Live USB (Twice!) and infected two separate live USB's! How is this possible?

Finally had to contact and hire a security specialist to secure my network and to find and eradicate the problems.  Here's what we found.  Router was indeed infected and needed to be re-flashed and reset to defaults and then with max security options set (firewall, port closures, etc).  Also, 2 of the 4 laptops had BIOS level viruses for both Windows and Linux, 4 of 5 Androids were infected and needed Factory resets, one android seems to be deeply infected even after multiple Factory resets - it will be going the way of the garbage.  One work laptop was infected and got re-flashed, wiped and reinstalled.  The coauth.exe virus was found in a place related to that laptop.  So, in short someone screwed me badly.  I admit that I joked with my specialist about whether we could "hack them back" and start screwing with their hard and software.  That would be a fun time . . . "Oh no, my PowerShell script isn't working" - the hacker might say.
So, for the record, here's what happened.  I was infected by several trojans (one was Brave_Updater.exe, and another coauth.exe) and these delivered scripts for a file-less attack in Windows that disabled Windows Defender during a Windows 10 install and went on to use hidden runs of "PowerShell" and "Command Prompt" to spread the infection.  On reboot it would write code to BIOS that would infect the next OS or USB that loaded Windows or Linux.  Finally, it would phone home frequently to get C&C instructions from the hacker.  What a pain in the ass.  I tend to believe in karma and hacker you got a screwing coming - enjoy prison, don't drop the soap . . . on second thought, go ahead and drop it, you've earned it.  Fin.


Why is the root password required to install most applications?

In Ubuntu any changes to parts of the filesystem that are owned exclusively by root (such as installing, upgrading and uninstalling software from the default Ubuntu repositories) must be made by a user who has root privileges to prevent ordinary users from making changes to the parts of the filesystem that are owned exclusively by root.

Run commands that require root privileges by prefacing the command with sudo. Then you will be asked to authenticate the command by typing your user password. The authentication automatically expires after a short time, so if you walk away from the terminal after running commands as root using sudo, you will not be leaving a root terminal open indefinitely.

  Does that mean that at the point of installation I'm giving the application absolute permissions, even if the application doesn't run as root in the end?

When you install software using apt, you must run the command as root in order to give apt permission to install the package and any dependencies required by the package. A package that is installed by apt as root receives permission to access any dependency packages that it requires to work properly, even when the application is run by a normal user.

This policy enables Ubuntu to be a secure operating system.

From Ubuntu Documentation Root sudo

  In Linux (and Unix in general), there is a SuperUser named root. The Windows equivalent of root is the Administrators group. The SuperUser can do anything and everything, and thus doing daily work as the SuperUser can be dangerous. You could type a command incorrectly and destroy the system. Ideally, you run as a user that has only the privileges needed for the task at hand. In some cases, this is necessarily root, but most of the time it is a regular user.


Problems with running POVray in Ubuntu 16.04

First, PovRay will not render a postscript file, only Scene Description Language files (.pov) or batch files (.ini). Are you mixing PovRay up with GhostScript?

2nd, your instance is looking for /root/.povray/3.7/povray.conf while the answered question was looking for /home/fusion809/.povray/3.7/povray.conf.

So you should run that ln -s /etc/povray/ .povray from your /root directory.


How can I prevent cropping on a mirrored external screen which happens to have the same pixel sizes as my built in laptop screen

FedonKadifeli' question led me to the solution: On the Panasonic TV set under Option settings for Image I had to enable the option "1080p Pixel Direkt".

Obviously the interpolation done by the TV set reproduced the original image quality on the 1080p (HDMI) input.

So this was not really a Linux problem but rather one as known under the keyword overscan,

The image looked much sharper than it did before and it fits exactly to my laptop screen. Thanks for the trick!


How do I install wireless drivers on my Dell D630 laptop without a wired connection?

Okay, so, after many hours of dealing with this, I finally found an answer. First, I installed Ubuntu 12.04 instead of 14.04. Then I followed the steps on this page: Installing "firmware-b43-installer" offline

So for some reason the newer version of Ubuntu was causing the problem.


Set system proxy automatically on connecting to wifi network on ubuntu 18.04 Bionic

The solution I came up with has two parts:

1) A script that is automatically executed when you connect to a network:
Paste this in /etc/NetworkManager/dispatcher.d/ as 05-change_proxy.sh. It should be owned by root and executable.

#!/bin/sh

# Auto Proxy
# Sets the proxy based on the SSID of the wifi network
# place this script in /etc/NetworkManager/dispatcher.d/
# script must be executable and owned by root
# script needs a separate program setproxy to handle setting the proxy

# Parts the user needs to edit have a #EDIT comment next to them

# author:staticd(Sachit) 2018
# this software is released to the public domain

# See man NetworkManager for the parameters passed to a dispatcher script
# $1 is interface that changed; $2 is the specific change that occured; other information is set in the environmental variables of the script

# only run code if the script was called because a new connection was just brought "up"
if [ "$2" != "up" ]; then
    exit
fi

#EDIT SSIDS and the proxy settings
#echo "$CONNECTION_ID" >>/tmp/conlog
case "$CONNECTION_ID" in  # the CONNECTION_ID variable is set by the NetworkManager when it calls the script
    "MyHomeWifi")
        setproxy
        ;;
    "WorkWiFi 1" | "WorkWiFi 2")
        setproxy "proxy.company.com" "3128"
        ;;
    "OtherProxiedWifi")
        setproxy "192.168.0.1" "3128"
        ;;
#    *)                                   # any other connection is made
#        [ "$1" = "wlp3s0" ] && setproxy  # default to no proxy only if the new connection is on the wifi
#        ;;
esac

2) A script setproxy that is to be saved in /usr/local/bin. (also executable and owned by root)
this script can be directly called on the command line as sudo setproxy proxy port to set the proxy

#!/bin/sh

# setproxy
# Sets the proxy settings for
#    /etc/environment
#    /etc/bash.bashrc
#    /etc/apt/apt.conf
#    the gnome proxy settings for all logged in users so running programs are notified of the change

# author:staticd(Sachit) 2018
# this software is released to the public domain

setproxy_help() {
    cat << EOS
Usage: setproxy [server] [port]
Sets the system proxy (apt and environment) and updates the proxy settings of running gui programs
This program must be run as root

With -h or --help prints this message
With no arguments it disables proxying
With two arguments it sets the proxy and port

examples:
  setproxy 192.168.0.1 3128        # sets the proxy
  setproxy proxy.company.com 8080  # sets the proxy
  setproxy                         # disables the proxy
EOS
}

#EDIT this if you don't have the default session manager for example if you have a KDE or LXDE desktop
SESSION_MANAGER=gnome-session-b

unset_proxy() {
    #this function clears the proxy settings
    #delete any lines containing "proxy="
    sed -i "/proxy\=/d" /etc/environment
    #delete old proxy setting lines and unset any outdated environment variables inherited at login time
    sed -i "/proxy\=/d"       /etc/bash.bashrc
    echo "unset http_proxy" >>/etc/bash.bashrc
    echo "unset https_proxy">>/etc/bash.bashrc
    echo "unset ftp_proxy"  >>/etc/bash.bashrc
    echo "unset no_proxy"   >>/etc/bash.bashrc
    #delete any lines containing "Proxy"
    sed -i "/Proxy/d"   /etc/apt/apt.conf
    # ask the already running programs of logged in users to update their settings
    # programs load the get the settings in /etc/environment only when they just start
    for user in $(users | tr ' ' '\n' | sort --unique) ; do
        unset_proxy_logged_in_user "$user"
    done
}

unset_proxy_logged_in_user(){
    USER=$1
    su "$USER" << EOS
    export $(cat /proc/$(pgrep "$SESSION_MANAGER" -u "$USER")/environ|egrep -z '^DBUS_SESSION_BUS_ADDRESS=')
    gsettings set org.gnome.system.proxy mode 'none'
EOS
}

set_proxy() {
    # this function sets the proxy settings for apt and the environment
    # first argument should be server, second is the port
    unset_proxy
    proxy_url='http://'"$1":"$2"
    echo $proxy_url
    # set the default environment
    echo "http_proxy=\"$proxy_url\"" >>/etc/environment
    echo "https_proxy=\"$proxy_url\"">>/etc/environment
    echo "ftp_proxy=\"$proxy_url\""  >>/etc/environment
    echo "no_proxy=localhost,127.0.0.0/8,::1">>/etc/environment
    # set the proxy for all new terminals that are opened. (without this, new terminals that are opened may continue to inherit outdated environment variables from the state of /etc/environment file at login time)
    echo "export http_proxy=\"$proxy_url\"" >>/etc/bash.bashrc
    echo "export https_proxy=\"$proxy_url\"">>/etc/bash.bashrc
    echo "export ftp_proxy=\"$proxy_url\""  >>/etc/bash.bashrc
    echo "export no_proxy=localhost,127.0.0.0/8,::1">>/etc/bash.bashrc
    # set the apt proxy
    echo "Acquire::Http::Proxy \"$proxy_url\";"  >>/etc/apt/apt.conf
    echo "Acquire::Https::Proxy \"$proxy_url\";" >>/etc/apt/apt.conf
    echo "Acquire::Ftp::Proxy \"$proxy_url\";"   >>/etc/apt/apt.conf
    # ask the already running programs of logged in users to update their settings
    # programs load the settings in /etc/environment only when they just start
    for user in $(users | tr ' ' '\n' | sort --unique) ; do
        set_proxy_logged_in_user "$user" $1 $2
    done
}

set_proxy_logged_in_user(){
    USER=$1
    SERVER=$2
    PORT=$3
    su "$USER" << EOS
    export $(cat /proc/$(pgrep "$SESSION_MANAGER" -u "$USER")/environ|egrep -z '^DBUS_SESSION_BUS_ADDRESS=')
    gsettings set org.gnome.system.proxy mode 'manual'
    gsettings set org.gnome.system.proxy.http host $SERVER
    gsettings set org.gnome.system.proxy.http port $PORT
    gsettings set org.gnome.system.proxy.https host $SERVER
    gsettings set org.gnome.system.proxy.https port $PORT
    gsettings set org.gnome.system.proxy.ftp host $SERVER
    gsettings set org.gnome.system.proxy.ftp port $PORT
    gsettings set org.gnome.system.proxy ignore-hosts "['localhost', '127.0.0.0/8' , '::1' ]"
EOS
}

# print help message
if [ $# -eq 1 ] ; then
    case $1 in
    "-h" | "--help" )
        setproxy_help
        exit
        ;;
    *)
        echo "Invalid argument" $1
        echo "call " $(basename $0) "-h for help"
        exit 1
        ;;
    esac
fi

# check if running as root
if ! [ $(id -u) = 0 ]; then
   echo "This script needs to be run as root"
   exit 1
fi

if [ $# -eq 0 ] ; then
    unset_proxy
    exit
fi

if [ $# -eq 2 ] ; then
    set_proxy $1 $2
    exit
fi

# If the execution reached here it was called with too many arguments
echo "too many arguments"
echo "call " $(basename $0) "-h for help"
exit 1


DragonDisk is a decent Amazon S3 GUI client.(http://www.s3-client.com/) They have debian packages for ubuntu.


Is it possible to open an Access 2010 database file without using Wine or VirtualBox?

Yes, we can use the UCanAccess JDBC driver to connect to Access databases (.mdb and .accdb) in LibreOffice Base. Here's how I did it on a clean install of Ubuntu 14.04 LTS.
Important Note:  These instructions apply to UCanAccess version 3.0.5 and later (including version 4.x). Before proceeding, verify that you are using the latest version of UCanAccess, available here.
One-Time Setup
First, I installed LibreOffice Base

sudo apt-get install libreoffice-base

Then I downloaded UCanAccess (bin.zip file) and unzipped it into the folder

~/Downloads/JDBC/UCanAccess

Note: When unzipping the distribution file be sure to specify "Keep directory structure" (or similar, depending on your unzip tool) so the folder structure appears as in the screenshot above.
I launched LibreOffice (not Base, just LibreOffice itself)

and chose Tools > Options

On the Advanced tab I clicked the "Class Path..." button

and then added the following JAR file using the "Add Archive..." button:
/home/gord/Downloads/JDBC/UCanAccess/loader/ucanload.jar

Note that this is ucanload.jar in the loader/ subfolder, not "ucanaccess-x.y.z.jar” in the UCanAccess home folder.
Important: You must close and re-open all LibreOffice (or OpenOffice.org) components for the new "Class Path...” value to take effect. That includes any "quick start” features or other related processes. (If you want to play it safe, simply restart your machine.)
Per-Database Setup
I launched LibreOffice Base, and in Step 1 of the wizard I chose "Connect to an existing database (JDBC)"

The Access file I wanted to manipulate was named "uca301demo.accdb" in my Documents folder, so in Step 2 the "Datasource URL" was …
jdbc:ucanaccess:///home/gord/Documents/uca301demo.accdb

(note that Base supplies the jdbc: prefix for us, so all we need to enter is the remainder of the URL starting with ucanaccess: …)
… and the "JDBC driver class" was
net.ucanaccess.jdbc.UcanloadDriver

In Step 3, I left the "User name" field empty and just clicked "Next >>".
In Step 4, I saved the LibreOffice Base database as "accdbTest.odb" in my Documents folder.
When the wizard completed it opened my LibreOffice database and I could see the tables and saved queries in the .accdb file

Troubleshooting
If you are using a distribution that installs LibreOffice Base by default (e.g., Linux Mint) then you may receive the error

The connection to the data source "MyDatabase" could not be established.
'org.hsqldb.persist.HsqlProperties
org.hsqldb.DatabaseURL.parseURL(java.lang.String, boolean, boolean)'

That is because LibreOffice has installed its own (rather old) copy of HSQLDB that conflicts with UCanAccess. To fix that, remove LibreOffice's copy of HSQLDB. For example, on Linux Mint that would be
sudo apt remove libhsqldb1.8.0-java

Also, if LibreOffice Base won't work for whatever reason you can use DBeaver instead. Installing the (free) Community Edition is as easy as
sudo snap install dbeaver-ce


How to use existing partition in preseeded installation?

I had the same problem a while back and if you are also using the text based installer,
look at my post in the forums.

This solution will not work with the graphical installer.

I explain how I managed to bypass partman during the installation by telling the installer to get a config file and my custom udeb that does the partitioning the way I want with only the disks I tell it to then continue with the rest of the installation.

In my case, one of the partitions is using LVM and the installer obtains the files from a usb disk.  I think getting them from a web server should be possible without too much work.

Just make sure you to backup your data before trying any of this.


Regarding the "permission denied" message, maybe make sure that

setup.py is executable. You might do a simple chmod +x setup.py.
You run the install command with a sufficient privilege level. You may try sudo python3 setup.py install.

To know what are the different python versions installed on your machine, I would run

 ll /usr/bin | grep python

You should end up with a couple of directories and symlinks of the different python versions. Typically, you may have python pointing to your python2.7.


How do I switch back and forth between Ubuntu Classic and Core

The exit will put the terminal back into Ubuntu Core mode from Classic.

Very much like exiting an ssh connection.


How to redirect URL:PORT traffic to multiple external IP:Port?

"If all you have is a hammer, every problem looks like a nail..."

You need DNS redirection ;-)


It's a little tricky setting negative values with  gconftool, you need to prepend with --

So for your example

gconftool --set --type int  /desktop/gnome/thumbnail_cache/maximum_age -- -1


The proper method to remove a ppa and to use the program version of the official ubuntu repos, is to use ppa-purge.

First, you need to install ppa-purge:

sudo apt-get install ppa-purge

then, you purge the ppa you installed previously. (in your case vlc-daily)

sudo ppa-purge ppa:videolan/master-daily

This downgrades the vlc version from the daily version of the ppa to the stable version in the ubuntu universe repo.


ralink bluetooth now works but will not pair

The device driver is working with devices with older bluetooth V2. I guess the problem is somehow related to the automatic pairing process with newer V3 or V4 devices which are using it. However with an old v2 device i was able to pair and send and receive files using blueman utility and my rt3290le bluetooth wifi combo card. The hcitool command line tool is incorrectly reporting v2.1 bluetooth version and lspci reports it is rt3290le card, which is bluetooth version 4.


Temporarily Disable ZFS ARC for Benchmarking

In ZFS that is not just filesystem, benchmarking is really hard and should always be simulation of future workload. So do writes that you are expecting, otherwise you made your system for something else than usage.

Since ARC and ZIL in RAM are things that ZFS rely heavily, those should never be taken out of load simulation. For analogy, we tested a new Ferrari but installed lawnmower engine to reduce fuel cost in long testing.

If you want to test with L2ARC and without, just remove L2ARC disk for testing time. Same for Intent Log device.
That should be done just to see if you need one.

Article to gather more information on; Benchmarking ZFS


Well, I solved the problem. At first I didn't selected any grub bootloader location while installing. A youtube tutorial helped me. Then by changing the boot order (not drive order) I managed to bring the grub bootloader.


How can i delete from a text file these special characters

Python can do the job. The process here is simple, we read in all the lines into list while simultaneously replacing the UTF escape character ( which is \u001b ), and then print out lines again, but without the escape character. The < input.txt sends old text to python command , and > new_file.txt sends text to new file.

Script:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
lines=[l.strip().replace(u"\u001b","") for l in sys.stdin]
print("\n".join(lines))

Save it as delete_escape.py, make it executable with chmod +x ./delete_escape.py, and call it like so:

./delete_escape.py < input.txt > output.txt

Results:


"gcc --version" can't find gcc despite having g++-5 and gcc-5 installed?

It is a bad to update libraries from a testing PPA, unless you know what you're doing.

You're not getting any response for gcc --version because you don't have the gcc program with version 5.x available in current apt-repositories. The package-manager (here apt) have maintained two different packages for the same program but different versions 4.x and 5.x.

You can't get gcc-5 when you type sudo apt-get install gcc because it will try to get package named gcc not gcc-5 from the list of repositories defined by apt. Instead I would suggest you to get gcc-5 and then replace it with gcc or replacing an alias in ~/.bashrc file.

If you want to replace your gcc-5 with gcc you can try this gist link. Or mainly

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

A less recommended option would be to add

alias gcc='gcc-5

in you ~/.bashrc. It will use gcc-5 when you use it from terminal and any other calls to gcc won't trigger gcc-5.


How to make lubuntu (LXDE) terminal support Arabic or Persian language?

You need to install bicon for this purpose.

So you can use this method for enable Persian or Arabic in lxterminal:

First, install libfribidi0 and libfribidi-dev packages.

sudo apt update
sudo apt install libfribidi0 libfribidi-dev

Then download and install bicon:

For 64bit machines:

Download this package and then install with this command:

sudo dpkg -i bicon_0.2.0-1ubuntu0~ppa4_amd64.deb

For 32bit mchines:

Download this package and then install with this command:

sudo dpkg -i bicon_0.2.0-1ubuntu0~ppa4_i386.deb

Then for type Persian or Arabic in lxterminal you should run this command:

bicon.bin

But for automate this process you can edit /usr/share/applications/lxterminal.desktop file with this command:

sudo nano /usr/share/applications/lxterminal.desktop

And apply this changes to that file:

Change Exec=lxterminal to Exec=lxterminal -e bicon.bin
Add Terminal=true to this file.

So after save the changes , you can see these lines in that file:

Exec=lxterminal -e bicon.bin
Terminal=true

So After changes, you can tap on lxterminal icon and type Persian (or Arabic).

But if you want to run bicon , also with Ctrl+Alt+t buttons, you should do this steps:

Edit ~/.config/openbox/lubuntu-rc.xml file with this command:

nano ~/.config/openbox/lubuntu-rc.xml

Then change lxsession-default terminal command in <!-- Launch a terminal on Ctrl + Alt + T--> section to lxterminal -e bicon.bin.

So you should change:

  <!-- Launch a terminal on Ctrl + Alt + T-->
  <keybind key="C-A-T">
    <action name="Execute">
      <command>lxsession-default terminal</command>
    </action>
  </keybind>

To:

  <!-- Launch a terminal on Ctrl + Alt + T-->
  <keybind key="C-A-T">
    <action name="Execute">
<command>lxterminal -e bicon.bin</command>
    </action>
  </keybind>

Then run this command to apply this changes:

openbox --reconfigure


How can I run Windows on Ubuntu without vt-x?

I'm not sure if this is still true of the current version of VMware Player, but version 4.0 doesn't require vt-x, unless you are running a 64bit guest OS.
Sources:
http://www.vmware.com/pdf/vmware_player40.pdf
You can download VMware Player here:
https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/6_0
To install vmware player type in terminal: sudo cd /locationyousavedbundle/nameoffile.bundle


How do I enable password request after hibernation in lubuntu 14.04?

Open the menu, go to Preferences - Light Locker Settings. Then under Locking click the slider next to Lock on suspend from OFF to OonN.


Combine English language and alternative locale

No, you cannot arbitrarily select which part of a string in an arbitrary program uses which locale you have installed.

You will need to create a custom locale and translate strings to fit your desired translation and formatting, in a non-standard way as you describe.


Extract that file with

tar -xvzf Apache_OpenOffice_4.0.1_Linux_x86_install-deb_en-US.tar.gz

and then install .deb packages with

cd en-US/debs
dpkg -i *.deb

After that, you should be able to start it. If you want to enable desktop integrations (desktop shortcuts), also run

cd desktop-integrations
dpkg -i *.deb


I was able to disable GDM by entering the following command:

echo "manual" | sudo tee -a /etc/init/gdm.override


Installing a webserver

Owncloud is a webservice so you will need to install LAMP - a webserver for Ubuntu. Do that by running the following. Or choose to install LAMP when installing the server.

sudo apt-get install lamp-server^ php5-gd

Give MySQL root a password when asked - and remember it as you will need it later.

Getting Owncloud files

Next you will need the owncloud server files. You will find full instructions here, but here's a summary that should work for 12.04 and 14.04. It may cover other releases but check the repo availability first.

source /etc/lsb-release
REPO=http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_$DISTRIB_RELEASE
wget $REPO/Release.key | sudo apt-key add -
echo "deb $REPO/ /" | sudo tee /etc/apt/sources.list.d/owncloud.list
sudo apt-get update
sudo apt-get install owncloud

Setting the permissions of the owncloud files to those of the webserver by running.

sudo chown -R www-data:www-data /var/www/owncloud

Setting up a separate partition/drive for the data directory (optional)

If you want to keep the data on a separate drive then add it and set its mount point in /mnt/owncloudData (preferably)

Final setup

Go to http://your-server-ip/owncloud in the browser of a computer on the same network. Set the username and password that you want for the admin user.

Under Storage & database (after clicking it) you can change the data path if you prepared a separate one. You can also change the database engine, if you choose mySQL then set root as the user, the password is the one you set above when you installed LAMP and the database name is up to you ('owncloud' is a good name).

Giving server a proper name (optional) - only if server is gateway

Typing the IP address of the server to access the web UI can become hard to remember so lets give it a proper name. Type the following.

sudo nano /etc/hosts

And add the following to the end.

server-ip        server-name

Replace server-ip with its IP and server-name with the name (like just 'server' is good). Now lets get DNSMASQ to use the hosts file (like explained here) by typing the following.

echo 'addn-hosts=/etc/hosts' | sudo tee -a /etc/NetworkManager/dnsmasq.d/hosts.conf
sudo restart network-manager

You should now be able to go to http://server-name/owncloud to access the UI from any computer on the LAN.


Setting up a debug/profiling environment for remote site

To answer my own question, here's what I did to solve the issue I had:

sudo chgrp -R www-data ~/public_html/
sudo chmod -R g+w ~/public_html/

Then, nginx was able to write to the public_html folder and problem solved! It might seem straightforward (and there are countless threads on StackOverflow referring to this particular solution), but somehow I hadn't seen it.


Fix Windows 10 after removing the drive with dual boot Ubuntu physically

I've found the answer. If it could come in handy to someone - the thing was to create EFI partition on the drive where the Windows was installed. It looks like after installing dual boot Ubuntu it moved that partition to the partition where GRUB and Ubuntu were installed and I had to bring it back home.

It can pretty easily be done with diskpart utility, the main steps are listed here


How do I bridge my wireless to my wired connection?

There is a GUI application for creating bridges:

https://sourceforge.net/projects/bridger/


I got this working on a VMWare image of ubuntu 10.10.  I have documented my process at http://metkhoo.blogspot.com/2010/10/lotus-notes-853-on-ubuntu-meerkat-1010.html
Hope that helps


My external hdd not mounting on ubuntu 16.04 LTS

This happens on internal drives too. The way to fix this on internal would be to completely shutdown Windows holding the shift button while clicking shutdown. Please make sure you ejected the drive before you shutdown Windows. Another solution, would be to unmount and reformat the drive to ext4 using gparted. This would erase all data on the drive (if any) and would be very difficult for Windows to read without other software. If you don't have Windows or data on the drive, feel free to do the reformat. I hope this helped!


Unable to install VLC media player and video in ubuntu 14.04

Try Synaptic Package Manager
Have you tried to install VLC using the Synaptic Package Manager? Download the Synaptic from the Software Center or from here and search for VLC. If you have it installed on your system it will show you what version you have installed. Mark VLC (if it is installed) for complete removal (VLC only) and hit apply. After it has been removed search again for VLC and this time mark it for installation.It will automatically mark unmet dependencies. Click apply to install it again.
For the videos
For the videos goto the software center and search for videos and click on more info. Check the GStreamer codec install in the Optional add-ons and click apply change.
Hope this is helpful.


Either free up space in /var by moving stuff out, or move all of var to your root fs...

$ sudo -i
# cd /
# mkdir var2
# cp -av var var2
# mv var var-orig
# mv var2 var
# vi /etc/fstab     # and comment out the /var entry....
# reboot

... and, finally...

# do-release-upgrade

Note that you're original var fs is now unused and could be reclaimed, but that's another discussion... :)


Ubuntu 17.10 GNOME ctrl + shift + v in terminal triggers language change

It is known ugly bug - see launchpad bug 1245473.

I'm writing this from Ubuntu 16.04.3 LTS with MATE DE. It does not have this problem.
I'm using Ctrl+Shift layout switcher for English and Russian languages.
I see no interference here.

But MATE on Ubuntu 17.10 has this problem - see other launchpad bug 1720364.

My complete position is written in comment 528 for bug 1218322 at launchpad.


I don't know what that exactly happens, but that /scripts/init-premount/devpts is probably inside the initramfs. To locate the real file, you can do locate init-premount/devpts. Posting the problematic line will help resolve the problem.

Note: I don't have that file here on my machine (12.04), but I do have the folders /etc/initramfs-tools/scripts/init-premount and /usr/share/initramfs-tools/scripts/init-premount, but I will soon upgrade and look again.

Sorry, I can't comment, so I do it now via an answer.

Update: you can also try sudo update-initramfs. It might just fix it for you.


How to create a snapshot of an encrypted btrfs @home subvolume?

The default setup of ecryptfs on Ubuntu mounts the user's directory only after successful login (with the key derived from the user's password). If the user is not currently logged on, even root doesn't have access to the unencrypted version of the files.

For encrypted files, check the @.Private@ directories under the @home subvolume.


Make second monitor show workspace that's on the left of primary monitor

It's extremely clear what you're asking and a really neat idea but unfortunately this is impossible without digging deep into the bowels of the Window Manager and changing the code there.

Workspaces are duplications of your physical monitor set-up and what you're trying to do would create a bunch of problems if your monitors do not have the exact same resolution: windows would have to be moved to fit on the screen when changing around, or panning would need to be enabled automatically, etc, ...

Sorry to be the harbinger of bad news...


sudo apt-get install account-plugin-irc

to get irc account . after you can sign up your irc


In your kernel configuration file you will find this line:
CONFIG_SYSTEM_TRUSTED_KEYS="debian/canonical-certs.pem"

Change it to this:
CONFIG_SYSTEM_TRUSTED_KEYS=""

Depending on your source structure you might be able to do it via command line. Examples:
scripts/config --disable SYSTEM_TRUSTED_KEYS

or
scripts/config --set-str SYSTEM_TRUSTED_KEYS ""


Problem solved!
Apparently, it was a bad Hello World example I've downloaded.
It was a node.js server running the following code:

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(3000, "127.0.0.1");
console.log('Server running at http://127.0.0.1:3000/');

And when specifying an IP, the server listens to requests that are targeted to that IP.
Removing the IP - solved the issue.

}).listen(3000);


"undf" means "undefined".

Put simply, the file is corrupt or unrecognized, so your attempt to save the stream has failed and created an unplayable file.


/etc/X11/xorg.conf keeps getting renamed?

There are (at least) two packages that might do this:

/usr/bin/gpu-manager in ubuntu-drivers-common can replace /etc/X11/xorg.conf if it doesn't find the right contents in it (LP #1310489). If the generated settings doesn't conflict with your own edits, it's easiest to just leave them in.
The nvidia-prime package does this on upgrade. If you have automatic package updates and reboot seldom, it could explain your observations.

I don't know the reason, but I regard it as a bug - opened LP #1345585.

Both rename the old xorg.conf to xorg.conf.MMDDYYYY.


use the GUI archive manager to extract the installation anywhere suitable

command line tar -xzf RubyMine-6.3.2.tar.gz

 /opt/rubymine

Then just create a launcher icon to this.

/opt/rubymine/bin/rubymine.sh

I just right click create a link move that link to Desktop and then use the .svg icon from /opt/rubymine/bin folder


Wifi problem in downloading software packages Ubuntu 12.04

What worked for me is running the commands below in sequence:

sudo iwconfig wlan0 power off
sudo iwconfig

Basically, it turns of the power management system to mess with the wifi adapter. You may try other Ubuntu wireless problem fixes listed in this page. For me they did not work.


Ubuntu 14.04.3 LTS installer can't detect my pre-installed windows7 on asus S46C

The problem here, indicated by running sudo gdisk -l /dev/sda is multiple partition tables left over from a pre-install of Windows 8 (probably for 8.1 and 10 too).

You can use the program fixparts from a live medium, it is pre-installed.

Choose try Ubuntu and open a terminal Ctrl + Alt + T and run

fixparts /dev/sda

The program will detect the problem automatically and propose solution. More details here if you're interested.

Superuser source


Upgrading xubuntu broke brazilian keyboard

Xfce Goodies Project has a plugin that allows you to setup and use multiple keyboard layouts:

panel-plugins: xfce4-xkb-plugin

  It enables a convenient way of changing keyboard layouts and showing currently active layout on the xfce4-panel. It also makes install for keyboard layouts available and setting default keyboard change shortcut in a easy way.

Install and use it to change you keyboard layout to Brazilian.

Note:

There's a known bug where users report that the plugin resets all the settings (languages used and a switch layouts hotkey) every time the system gets rebooted.

If it happens to you, there's already a work around at this askubuntu answer.


Can I get coloured output in interactive python shell?

Use IPython for an enhanced Python interactive shell.

sudo apt-get install ipython     # Python 2
sudo apt-get install ipython3    # Python 3

For example:

IPython has other useful features, such as a browser-based interface.


The reason of having kernel meta-packages like linux-image-generic and linux-headers-generic pointing to real kernel packages is to allow having more than one instance of a kernel.

You can have linux-headers-3.0.0-13-generic and linux-headers-3.0.0-12-generic installed at the same time.

When you upgrade meta linux-headers-generic, it pulls the latest real package as a dependency. If we had these kernel packages as one with different versions, it would be always replaced.

apt-get upgrade doesn't install new packages

 upgrade
           upgrade is used to install the newest versions of all packages
           currently installed on the system from the sources enumerated in
           /etc/apt/sources.list. Packages currently installed with new
           versions available are retrieved and upgraded; under no
           circumstances are currently installed packages removed, or packages
           not already installed retrieved and installed. New versions of
           currently installed packages that cannot be upgraded without
           changing the install status of another package will be left at
           their current version. An update must be performed first so that
           apt-get knows that new versions of packages are available.

That's why it doesn't upgrade meta packages that are dependent on new packages.

It is not kernel related. There are some other examples.


Need Help on Ubuntu Server 18.04.1 Static Routing

You should be declaring a route

- to: 10.211.3.12/32
  via: 172.16.1.98

attached to your eth0 interface.


Depends on your point of view. The controversy is over the "unity shopping lens". The shopping lens lets you look for "things" right from your computer. So if you look for "candles" you will get results, even though it's not a file or app.  You will be presented with a choice to buy candles.

The real problem isn't that this lens exists, stuff like this has existed for a long time, the problem is the dashboard includes the results by default. So when you press the super key and the dash in unity pops up you type "can" and you get some applications, some files, and some amazon search results. You can scope you search to just files, or just applications, but by default, you search for everything (including shopping results).

Canonical has stated that the results go to their server, are made "more" anonymous and then sent to amazon. With Canonical acting as a go between.

The truth is it's probably not a totally bad idea. It would be nice to press super, type Mountain Dew, and have someone bring me a cold can of caffeine. However, the implementation leaves a lot to be desired. Most notably that it's on by default. It smacks of evil marketing, and it is quite offensive to many Linux users.

The good news is that it's very easy to remove or turn off.

From system setting, under privacy, disable "Internet searches".

It that's not good enough you can sudo apt-get remove unity-shopping-lens

Personally, I have it turned off and everything works fine. I do find it very annoying that my OS had "ads" in them, but at the same time, I can see how, properly matured, it could be friggin' awesome.

Honestly, we will just have to wait and see how the general community plays out, and rather it's accepted as the first step to a more awesome feature or totally unacceptable data mining.

A few other things to keep in mind:

It only effects Unity (Ubuntu default Desktop Environment)
It's easy to turn off
Ton's of other "searchers" existed before hand, this is just one that Canonical supports and makes use of
Stallman is a bit of a nut on some topics, and has a history of going, what most would consider 100% overboard on some issues.
The lens in question is about the same as the amazon store plugin in Amarok, Banshee, Rhythmbox, etc.
There are tons of people who want this feature and add it in via scripts, extensions, and add-ons.
Ubuntu's only real sin is having it on by default, and handling the PR extreamly poorly.

This article and the related ones may help you to decide.


Clicking link in PDF spawns thousands xdg-open processes

I just encountered the same issue, but then for opening a mailto: link. The approach to debug the problem is probably similar to yours, however.

First, find what handles the mailto (or in your case, http) scheme:

$ xdg-mime query default x-scheme-handler/mailto
kmailservice5.desktop

Now, what is kmailservice5.desktop?

$ locate kmailservice5.desktop
/usr/share/applications/kmailservice5.desktop

Opening the above file shows:

[Desktop Entry]
Type=Application
Exec=kmailservice5 %u
Icon=mail-message-new
MimeType=x-scheme-handler/mailto;

X-DocPath=kioslave5/mailto/index.html
NoDisplay=true

# KMailService is the handler for mailto URLs
Name=KMailService
...

I wonder what kmailservice5 does?

$ kmailservice5 --help
   xdg-open -- opens a file or URL in the user's preferred
   application

Synopsis

   xdg-open { file | URL }

   xdg-open { --help | --manual | --version }

Use 'man xdg-open' or 'xdg-open --manual' for additional info.

This is exactly the same output as xdg-open --help! That's weird... I looked up the source of kmailservice5 and found http://api.kde.org/frameworks-api/frameworks5-apidocs/kio/html/kmailservice_8cpp_source.html. It is a simple application that calls QDesktopServices::openUrl https://doc.qt.io/qt-5/qdesktopservices.html#openUrl (In KDE4, the mail application was explicitly invoked via KToolInvocation::invokeMailer; My partial upgrade to KDE5 is probably the reason for this breakage).

In other words, mailto:... opens the handler of mailto:, which opens the handler of mailto:, etc. This never ends and the only way to end this loop was to issue killall kde-open plasma-desktop.

To solve the issue I created a robs-mailto.desktop with the following content:

[Desktop Entry]
Type=Application
Exec=kdialog --msgbox "Rob's mailto handler: %u"
Icon=mail-message-new
MimeType=x-scheme-handler/mailto;

Name=RobsMailtoHandler

and registered it as follows:

$ xdg-mime default robs-mailto.desktop x-scheme-handler/mailto

and verified that it was correctly registered:

$ xdg-mime query default x-scheme-handler/mailto
robs-mailto.desktop

$ xdg-open mailto:test@example.com
# (opened a KDialog window that printed the email address, as I specified)


Here's a more elaborate guide, copied from the zfsonlinux wiki:

Step 1: Create a volume dataset (zvol) for use as a swap device

zfs create -V 4G -b $(getconf PAGESIZE) -o compression=zle \
      -o logbias=throughput -o sync=always \
      -o primarycache=metadata -o secondarycache=none \
      -o com.sun:auto-snapshot=false rpool/swap

You can adjust the size (the 4G part) to your needs.

The compression algorithm is set to zle because it is the cheapest available algorithm. With ashift=12 (4 kiB blocks on disk), the common case of a 4 kiB page size means that no compression algorithm can reduce I/O. The exception is all-zero pages, which are dropped by ZFS; but some form of compression has to be enabled to get this behavior. If your pool uses ashift=9, you could use compression=lz4.

Step 2: Format the swap device

mkswap -f /dev/zvol/rpool/swap

Step 3: Update /etc/fstab

echo /dev/zvol/rpool/swap none swap defaults 0 0 >> /etc/fstab

Warning: Always use long /dev/zvol aliases in configuration files. Never use a short /dev/zdX device name.

Step 4: Enable the swap device

swapon -av


Prevent Dualshock 4 from pretending to be a mouse?

Turning off touchpad in Ubuntu settings was my solution...


CSV to TSV without replacing commas within quotes

Use csvformat from csvkit:

csvformat -d, -D$'\t' file

or shorter:

csvformat -T file

  -d input delimiter (not needed here, as , is the default input delimiter)

  -D output delimiter

  -T set tabs as output delimiter

It will remove the quotes, as they are not needed for a tsv.

You should be able to install csvkit via pip:

sudo apt install python-pip
pip install csvkit


Ubuntu 19.10 Eoan won't play sound from my Java programs

I have the same problem with same environment.But today I tried running my JavaFX application on JDK 8 and it has done with success.

Download the Oracle JDK 1.8.0_251 from the following url:
https://www.oracle.com/java/technologies/javase-downloads.html


We see that the admin pretty much tied all your hands not to be able to perform tasks like this. I guess the best solution would be to write a message directly to him/her and ask for a solution on your problem.


How to make windows 8.1 first boot priorty in gnu grub menu

In file /etc/default/grub you have a line:

GRUB_DEFAULT=0

which you can change to indicate the windows selection, but every time a new kernel gets added, that number would change.
  A more permanent method is to rename the file /etc/grub.d/30_os-prober to 06_os-prober
(or the custom file if you put your windows boot paragraph into one of those).  The files are run in order, so that should always put Windows first.


Problem installing Ubuntu Touch on Nexus 4

I've had this too on Maguro.
Use the volume rocker to change 'start' into recovery than press powerbutton.
Leave the cable attached.


Adding grub2 menu entry, error: invalid filesystem?

The blkid output you posted in pastebin indicates that /dev/sdb9 was intended to be the Ubuntu partition, since it's formatted to ext4. /dev/sdb5 has the label "Windows8_os" suggesting that this is the Windows 8 partition (its large size and position after an MS Reserved Partition indicates this is true as well).

If this is indeed the case, then it appears that your custom grub entry is using the wrong number for the partition pointer gpt4 in the line set root='(hd1,gpt4)'.

GRUB2 hard drive numbering starts with 0, so the first hard drive on your computer would be hd0, the second hd1, and so forth.

However, GRUB2 partition numbers begin with 1, indicating that your chosen partition gpt4 is the 4th partition on sdb, not the 5th.

Try changing the line to set root='(hd1,gpt5)', so that GRUB attempts to load the 5th partition rather than the 4th. It may be giving you an 'invalid filesystem' error because your current grub.cfg points to the MS Reserved Partition instead of the actual Windows 8 partition.


Removal of the Lock/Switch Account menu in gnome desktop Ubuntu 14.04 LTS

The correct GSettings key for this is org.gnome.desktop.lockdown disable-user-switching, however an inspection of the indicator-session code shows this is not being correctly applied. See https://bugs.launchpad.net/bugs/1325353


debootstrap does not resolve dependencies

By default base image of ubuntu have only the following repository setup:
sudo chroot "${ROOTFS}" qemu-aarch64-static /bin/bash -c "cat /etc/apt/sources.list | grep '^deb '"
deb http://ports.ubuntu.com/ubuntu-ports focal main

By adding the universe repository to /etc/apt/sources.list the package is available.
sudo chroot "${ROOTFS_DIR}" qemu-aarch64-static /bin/bash -c "echo 'deb http://ports.ubuntu.com/ubuntu-ports focal universe' >> /etc/apt/sources.list"

sudo chroot "${ROOTFS_DIR}" qemu-aarch64-static /bin/bash -c "apt update"

sudo chroot "${ROOTFS_DIR}" qemu-aarch64-static /bin/bash -c "apt install --simulate libgcc1"
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
  libgcc1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst libgcc1 (1:10-20200411-0ubuntu1 Ubuntu:20.04/focal [arm64])
Conf libgcc1 (1:10-20200411-0ubuntu1 Ubuntu:20.04/focal [arm64])


One of the cause could be pulseaudio! Personally it is haunting me so long as I am forced to use pulseaudio (I have absolute hearing, and can tell notes from hearing). Pulseaudio tries to mix the sounds on the software level (something that most of cards are able to do on hardware level, especially professional tier ones, this however could be not the case for built-in audio).
The notability of all those clicks, burst of sounds depends from hardware (sound card, speakers, type of solder (Pb-Free solder worsen sound with aging as growing tin whiskers alters the powering of sound after the DAC) and perception (your ears and hearing, (You can get used to the constant same noise presented for prolonged time and loose perception of it)), and also from the levels set in global mixer and inside the software (i.e. noise will be easier heard if global mixer will be on max while application will keep minimal. The least effect of sound alteration can be achieved by using medium levels, and ~80-70% output at the software producing the sounds.
On VLC you can overcome pulsaudio dequalification of sound by selecting direct sound output. On debian systems it is possible to purge pulseaudio and install alsa, however in your case with built-in audio that could give even worse sound and are not guaranteed to fix the problems. (It however helps with more professional tier sound cards, and in some rare cases built-in sound). Pulseaudio allows to output sound much louder than ALSA, and this have to be kept in mind. Crossing those limits is not without the cost of quality.
You should check if you have no microphone un-muted! That can produce buzz sounds.
If it is PC, and you have CD-ROM, there is such legacy cable (well I didn't saw this anymore) connecting CD-ROM directly to sound card, in my experience it causes hum noise.
Some noise can come from not well grounded/designed (motherboard) PCB of your computer. In such case the bad supply (unstable, noisy power supply) can bring the noise to the sound card (those tiny low grade built-in audio chipsets is extremely sensitive to electrical supply artifacts). You could try borrowing the power strip with emi or noise filter built-in to check if that would reduce your problem.


PHP is failing with php_pgsql.dll on Ubuntu 16.04

Linux doesn't use .dll files (it uses .so files in a similar way) so you can likely replace .dll with .so for what appears to be your custom (and much older) version of PHP.

You can also get a much newer and easier to use version of PHP using:

sudo apt install php
sudo apt install php-pgsql

Now you should have a working version of PHP that is up-to-date and patched with postgres enabled.


Reboot / shutdown safely with command line

There are a number of options availabe, the easiest I have found for shutdown is sudo poweroff and for restart is sudo reboot. In general you will need to root privileges to perform these commands (security control - prevents users from bringing a system down without privilege escalation) although if you really tire of typing sudo every time, you can create aliases vim ~/.bashrc_aliases and add alias poweroff="sudo poweroff" and alias reboot="sudo reboot". You can substitute vim with your favorite editor.

Edit: It was pointed out to me that the Desktop versions of Ubuntu 16.04 or greater no longer require sudo to perform these commands, however the Server versions do. Thank you Zanna for pointing that out to me.


Where is the database file from redmine after using the defaultinstallation?

Solved.

It's managed all by mysql  so it's under var/lib/mysql/DATABASENAME


Ubuntu 20.04 Network printer works but scanner not detected

I am answering my own question (which is similar to this question)
In order to make your Samsung SCX-3405W network printer print and scan, follow these steps:
;tldr
Install the Linux driver from hp.com and add tcp <printer ip> <port> to xerox_mfp.conf
FIND & DOWNLOAD THE LINUX DRIVER FOR SCX-3405W

visit https://support.hp.com/gb-en/drivers/printers
look for SCX-3405W
change OS to Linux and Ubuntu
download the basic drivers
the filename should be something like uld_V1.00.39_01.17.tar.gz

UNPACK & INSTALL THE DRIVERS

tar -zxvf uld_V1.00.39_01.17.tar.gz
cd uld
sudo ./install.sh

ADD THE PRINTER AT THE CUPS ADMIN PAGE

go to http://localhost:631/admin
click Add Printer
Under the Discovered Network Pritners there should be multiple options for the Samsung SCX-3400 Series. Choose one and click Continue.
If the Connection starts with ipp:// you have chosen the correct one. In case it does not, go back in your browser and choose another until you find the one with ipp connection. Adjust the name, location, etc. and then click continue.
In the next step review the config and click Add printer
The printer should now be available in the Settings>Printers

PRINTING TEST PAGE

Go to Settings > Printers
Click the gear icon next to the printer
Click Printing options, set what you want and click Test page in the upper left corner. It should print a page.

CHECK IF SCANNER WORKS

Open Document Scanner and see if it finds your scanner.

IF SCANNER IS NOT DETECTED

Find the IP of your printer in the Settings > Printers > Your printer > Gear icon > Printer details
Edit this config sudo nano /etc/sane.d/xerox_mfp.conf and add the following lines (I found this tip here: http://www.sane-project.org/man/sane-xerox_mfp.5.html):
# Samsung SCX-3405W, network mode
# tcp HOST_ADDR PORT
tcp <ip.of.your.printer> 9400

Log out & Log in (not sure if this is necessary)
The scanner should now be detected.

Even after all this, the simple-scan seems to be very slow in scanning. Much slower than on to what I was used to on Ubuntu 16.04. Will investigate.


There is no actual difference; it's simply a naming convention that some people use.  A .inc file is included or required from a PHP file, and the file being pulled in is expected to itself by PHP.


Here's a download page for the 32-bit version. The link is on the right under "Downloadable Files".

Just download the .deb file and double click it to open it and install it with Software Center.

You might also be interested in the two libraries at the bottom of this page.


How do I combine all lines in a text file into a single line?

tr as you used it should work and is the simplest -- you just need to output to another file. If you use the input file as output, the result is an empty file as you observed;

cat myfile.txt | tr -d '\n' > oneline.txt

You need to remember some editors terminate a line with \r\n. For that case, use

cat myfile | tr -d '\r\n'


Unity somehow integrated my google calendar. Would like to know how

I had a similar problem.

I switched to Gnome from Unity to try it out, connected to a Google online account there, and switched back to Unity. In Unity I could not see the Google account under online accounts but it's calendars showed nevertheless in the default calendar app and in the time/date on top.

Except deleting the account in Gnome, I don't really saw a solution.


How do I get radarr.service to start automatically?

The ExecStart= path was incorrect. I figured out what to change for the path and it’s working now.


Can't install ns2 in Ubuntu with the below error as shown in picture

Nothing is to be added to .bashrc .

The old year ~1999 text ....
»» Please put .... ,,   IMPORTANT NOTICES: You MUST put .. ««
.. was meant only for a "University Computer" :
 I.e. when you had no write permissions to /usr/local/.

The executable 'ns' or "ns-[any-name]" is hard coded to know the location of it´s libraries:
ns-allinone-2.35/{ lib/{libtcl*, tclConfig.sh, tcl8*/}, bin/tcsh8* }.

This will usually do : $ cd ns-allinone-2.35/ns-2.35/ && sudo make install
I.e.  'make install' will copy 'ns' to /usr/local/bin/,  i.e. i.e.  a system PATH.

HOWTO, ns-2.35 :
tar xvf ns-allinone-2.35_gcc5.tar.gz   (The 2014 .. 2017 update)

https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing

cd ns-allinone-2.35/
./install
cd ns-2.35/
sudo make install
cp ns ns235-orig  (This is your backup)
sudo cp ns235-orig /usr/local/bin/
cd ../nam-1.15/
sudo make install

That's it. If you add some changes or a patch, the executable 'ns235-orig' can still be used for the default examples : $ ns235-orig file.tcl


The image size is over 200MB.  I downloaded, and tried to open with image viewer, and it won't open.  I opened with Gimp, and it works fine.  See below


Open your home folder and see if the drive is in the list on the left side if its not you will have to probably mount the drive manually via terminal.

Edit@
Is your HDD discoverable in the BIOS/UEFI?


i simply cannot get libreoffice to load on new system 76

1st off: forget about your problem and please install libreoffice from Ubuntu software center or command line and make sure it works.
So either open software center, search for "libre office" and install it or ...
sudo apt install libreoffice-common

About the font
in general you copy that font over to /usr/share/font/ (for system wide fonts) or /home/$USER/.local/fonts(for 1 user only) and libreoffice will gladly pick it up for you.
If that does not work for you please edit your question and add the location where you found the font.


Who compiles all the packages that are part of ubuntu?

Ubuntu Developers (there are many groups, see the linked page) don't compile the software on their own machines, though they do before uploading it to test it.

They upload a source package to a build farm which compiles all the packages for all the different architectures. You can see a list of uploads as an example of what packages are being uploaded to the Launchpad builders, which then build it and then publish it to the Ubuntu archive, which is then mirrored around the world.

The linked wiki page shows you the list of team, you can click on each team to see who is a developer for that team.

Ubuntu Developers as a group are composed of both Canonical employees and community contributors, though the bulk of the Ubuntu archive is imported from Debian and just rebuilt to use the Ubuntu toolchain.

https://wiki.ubuntu.com/UbuntuDevelopers has more details.

The version that is included in Ubuntu usually depends on the latest stable release of something available before Feature Freeze; in some cases it can be settled on ahead of time (like the kernel), or in other cases it will be whatever the latest stable release is (like Firefox), or in other cases it will be whatever version of the package was in Debian at the time.

The choice of which packages make up a specific image is made by that project lead(s) by what seeds are selected.  For instance, the Kubuntu community decides for Kubuntu.   During the release cycle,  the actual version to be included gets decide by developers and the release team.


Download Boot Repair http://sourceforge.net/projects/boot-repair-cd/
Burn it to a usb or a disk, and boot from it, and follow the instructions given by the boot-repair, and choose recommended repair :)


You set ownership and permissions in /etc/usbmount/usbmount.conf

The file is well commented, you are looking for the section

# For example, "-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" would add
# the options "gid=floppy,dmask=0007,fmask=0117" when a vfat filesystem
# is mounted.
FS_MOUNTOPTIONS=""

Enter in your options in the "FS_MOUNTOPTIONS=" line.

Example, to allow user and group, but deny otheres:

uid=your_uid,gid=your_gid,dmask=0077,fmask=0177

See man mount for options or identify the file system (NTFS / FAT) if you need assistance.


Need advise on ubuntu partition to install opensuse in dual boot

If you only have 128GB out of 450GB used on sda3, you can definitely downsize the partition to install OpenSUSE. Open Gparted in Ubuntu and use it to make sda3 a little smaller. Then select Apply. Make sure not to format it or resize the wrong partition.


How do I change hyperlink colours in LibreOffice Impress?

Styles and Formatting window

https://help.libreoffice.org/Common/Editing_Hyperlinks

  Change the attribute of all hyperlinks

  Open the Styles and Formatting window.

  Click the Character Styles icon.

  Right-click the "Internet Link" or "Visited Internet Link" character style, and choose Modify.

  In the dialog, select the new attributes, and click OK.

Notes

Character Styles icon = button on top of the styles and formatting window

Changes should be made to "Hyperlink" too (if you used or converted from a Microsoft Office Word document).
In order to make changes to a text, select the text you want to change and double-click (left-click) on a character style (e.g. "Hyperlink").


Can this plugin gstreamer1.0-libav be used in india?

There is no technical problem here, but a legal one. Some countries have illiberal laws called “Digital restrictive management” and software patents, if you country has these laws then it is probably illegal for you to use this software.

Therefore you question is a legal one. You need to find out about local laws.


How to map previous/next buttons of my dell mouse on ubuntu 17.10?

Your mouse is probably id=6 on that list. It ought to work with xinput test 6 or xinput test xwayland-pointer:14. On my machine, this only works when the mouse is over the root window (i.e., over the desktop, not over an application window).

On my Dell mouse, the previous/next buttons are 8 and 9 instead of 6 and 7. I can fix this with xinput --set-button-map <dev num> 1 2 3 4 5 8 9 (with <dev num> the id number in the output of xinput --list, i.e., 6).

Also, your system is now running its events through wayland, which is hiding the actual devices from you. That is why you see the xwayland-pointer, etc, instead of the actual device names. I have not yet sorted this out, but I think installing libinput-tools and using libinput debug-events is the preferred way to go. However, I can't find a way to fix this other than xinput.


Multimediakeys don't work after upgrade to 14.04

I've experienced same issue in Amarok.

In my case only play/pause key not working. The problem is in the system wide global shortcuts. I've assign another keys combination under Settings -> Keyboard -> Shortcuts for the "Play (or play/pause)" key

And then play/pause key starts working in Amarok.

Make sure global shortcut for Amarok has been assigned (see how: How to bind play/pause key to Amarok?)


how do I actually run Flash CS5 using wine(or virtualbox)?

Did you know that there is a Flash plugin for Firefox and also Chrome?  Will this do what you want?


When Ubuntu 14.04 was first released, it came with the 3.13.X kernel version. Then came the point releases. Point releases are versions of LTS systems that come with some newer software in the repositories, such as the kernel, but do not sacrifice stability.

Ubuntu 14.04 and 14.04.1 both had the 3.13.X kernel.
Ubuntu 14.04.2 brought the 3.16.X kernel.
Ubuntu 14.04.3 brought the 3.19.X kernel.

When you're in a point release and another one is released you won't get an automatic kernel upgrade, even though you can get it, as explained in How do I upgrade from 14.04 to 14.04.2?.

That's probably the reason why you have different 14.04 machines with different kernel versions.


Again I will answer myself to my own question for the sake of others:

the error was tied to an incorrect PATH, by typing

which python

the command returned a path which was NOT the system default python path.

Gdb looks for the default python installation so, in my case, was enough to comment out a source path command in my .bashrc which was overriding the /usr/bin/python path in PATH.


Not able to connect to internet when both ethernet and wifi is connected in Ubuntu 16.04

Likely a problem of routing. When you connect the Ethernet, Network manager assumes that it also connects to the Internet and since it has a higher priority (or smaller "metrics"), or is just assumed faster, it routes all the traffic through it.

Possible fixes:

Use the connection manager to declare the Ethernet connection to have a lower priority (which may mean a higher number)
Reset the default routing after connecting the Ethernet: ip route .... You maye have to set a specific routing for the Windows machine.
Don't use Ethernet on Ubuntu. Just connect the Windows system to the same LAN (Wifi or Ethernet to the router) and use its LAN address on the Ubuntu side.


Step 1. Install the Wine Team Ubuntu PPA

By installing the Wine Team Ubuntu PPA, we can ensure the version of wine we’re using is suitable and up to date.

To install the wine team PPA, execute the following, one by one:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7 winetricks

Step 2. Using winetricks to get install dependencies for Photoshop CS6

Now that we have the most recent build of wine, we can get started on fetching the necessary build packages to run the Photoshop installer.

Here’s the command to issue and pull those dependencies

winetricks atmlib gdiplus msxml3 msxml6 vcrun2005 vcrun2005sp1 vcrun2008 ie6 fontsmooth-rgb gecko

If a few errors pop-up, don’t worry – chances are this install will still work.

Step 3. Running the Photoshop CS6 installer

Now that you have all dependencies required to run Photoshop CS6, you can now run the Adobe setup. Either right click Set-up.exe, or from the terminal:

cd /home/user/path/to/installer
wine Set-up.exe

Source:

Complete guide to running Photoshop CS6 on Ubuntu 13.10 | Geebzor.com

Although this is for 13.10 it should work on 14.04 too as long as the Wine version is the same.


Can I use those Plasma KDE desktop effects on gnome shell?

Some of those effects you enjoy from KWin are available in other compositing engines. However, because Gnome based Ubuntu systems have been making drastic changes to their compositors for the last few years that forks into two answers:

16.04 with Unity/Compiz

The default compositor for versions up until 16.04 was Compiz. You can try using them by installing the Compiz Config Settings Manager and extra plugins:

sudo apt install compizconfig-settings-manager compiz-plugins-main compiz-plugins-extra

There is a plugin there called Magic Lamp which is almost identical to the KWin one in appearance.

18.04 with Gnome 3/Mutter

Starting with Ubuntu 18.04 Unity was replaced with Gnome 3 which uses the Mutter compositor. Mutter by design does not have much configurability or plugins. It's possible you may be able to configure Compiz to run with 18.04 and keep Gnome 3, I am not sure. See this question for more info on that:

Is there a settings manager available for Mutter?


I also have an Asus N56vz with Nvidia GT 650M. I got it running without problems with the first approach you tried, i.e. install ubuntu 12.04, add x-swat repository, apt-get update, and then install bumblebee. Optirun works fine after that.

I also installed the current CUDA toolkit and sdk without any special tricks and everything works fine (including building pcl-trunk).

Another problem I had with that setup: the Kinect (you probably want to use with pcl) doesn't support USB 3.0 with the current kernel of Ubuntu 12.04. Updating to the current kernel of Ubuntu 12.10 solved that issue.


Installed Ubuntu and now cannot Boot into it!

Assuming your BIOS was set as UEFI first when you installed Ubuntu, set it back to UEFI first and then boot using the ´boot-repair` CD. It's an Ubuntu-based boot disk that you can download. Once booted select automatic repair. It should fix your grub and allow dual boot again for both Windows and Ubuntu.


Can't Install Kubuntu 19.04 on MSI Laptop (GV62)

Everything you have done so far is useful. You just didn't know about the Secret Sauce which MSI didn't tell you about.

It won't go to GRUB until you install, which requires you get into a Boot Device Selection Menu.

Q: What is the key you use to reach the BIOS Setup during the Power On Self Test?

A: [DEL] (See your manual, p. 3-26) This link has your manual.

Now, when you turn on your laptop, you will see, perhaps for only a second, a prompt that you can use [DEL] to get into Setup.

Is there another key listed there? Like, oh, say, [F11]? That's what it is on other MSI laptops.  I can't tell for sure, because it is not in your manual; if it isn't [F11] then you may need to contact MSI Support with your model and serial number to ask.

Whatever that key is for the Boot Menu, you need to press that to get a choice of what to boot from. It may take you several times to finally get to where you want to go, because you have a very short time to do so, but once you do, you will see the option of choosing your USB drive to boot from.

Pick it, THEN, then Kubuntu will come up and offer you the choice to install it.

It will let you keep Windows on the machine, and downsize the space on your internal drive allotted to Windows.

When it's done with that (and other questions) it will install (see page 10 and up) and then prompt you to reboot. THEN is when you will see the GRUB menu, where you can pick Kubuntu.

Let the fun begin!


See this question and answers for all the info about PPAs. However the direct answer is as follows:

A PPA is not restricted to a particular release (like lucid, maverick etc). The same ppa normally contains versions for many distributions and this is the preferred way of migrating ppa's over to new distribution releases - where most of the effort is on the ppa owner.

So simply adding back the ppa to your sources list will make the maverick version of updates and new packages from the ppa available immediately to you. Of course, if the maintainer has not released versions for maverick yet, then these won't be available now, but as soon as these are posted they will be picked up "automagically" :-).

If you are not using add-apt-repository or providing the apt-line to synaptic (which are both distribution neutral) and are directly editing files in /etc/apt/sources.list.d or in synaptic, take care to replace any occurrence of the word lucid with maverick


Your personal config file will probably be stored in your home directory and called .toprc (in the Nautilus file browser, you can press Ctrl+H or click View > Show  Hidden Files to show files that start with .). Assuming you have created it in the usual way (by pressing Shift+W while top is running), its contents will look something like this:

RCfile for "top with windows"       # shameless braggin'
Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=3.000, Curwin=0
Def    fieldscur=AEHIOQTWKNMbcdfgjplrsuvyzX
       winflags=62777, sortindx=10, maxtasks=0
       summclr=1, msgsclr=1, headclr=3, taskclr=1
Job    fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX
       winflags=62777, sortindx=0, maxtasks=0
       summclr=6, msgsclr=6, headclr=7, taskclr=6
Mem    fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX
       winflags=62777, sortindx=13, maxtasks=0
       summclr=5, msgsclr=5, headclr=4, taskclr=5
Usr    fieldscur=ABDECGfhijlopqrstuvyzMKNWX
       winflags=62777, sortindx=4, maxtasks=0
       summclr=3, msgsclr=3, headclr=2, taskclr=3

On the second line change the number (of seconds) in Delay_time=3.000 to whatever you want it to be. For example, for very fast updating (which you should be aware will make top itself take up considerably more system resources), you could change it to Delay_time=0.250. Then top would update four times per second.


Viber is using Qt5 framework.
One of the Qt plugins is causing issues with the viber application: namely
libqxcb-glx-integration.so
We should replace this library with the library provided with our distribution as shown below:
$ cd /opt/viber/plugins/xcbglintegrations/
$ mv libqxcb-glx-integration.so libqxcb-glx-integration_bkp.so
$ ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so

Now viber should work normally.
This solution can also be helpful for other Qt applications.
Same fix can be applied for the zoom application (tested).
Tested on:
Xubuntu 16.04
Linux Mint Xfce 18.3


Why would a package be downgraded during a do-release-upgrade?

I'd say you're mistaken about the versions of Xournal on 12.04 and 14.04. From the package index:

  precise (12.04LTS) (gnome): GTK+ Application for note taking [universe]
  0.4.6~pre20110721-1build1: amd64 armhf i386 powerpc
  trusty (14.04LTS) (gnome): GTK+ Application for note taking [universe]
  4.7-1ubuntu1: amd64 arm64 armhf i386 powerpc ppc64el
  wily (gnome): GTK+ Application for note taking [universe]
  1:0.4.8-1: amd64 arm64 armhf i386 powerpc ppc64el

12.04 had 0.4.6, and 14.04 had 0.4.7, and moreover, the version scheme changed, so that it's now 4.7 (and it changed yet again later, so an epoch number was added: 1:0.4.8). The webupd8 PPA uses the older version scheme, 0.4.8. Of course 4.7 won out over 0.4.8.


I cant find Leauge of Legends on the playonlinux "testing" box

It might be temporarily hidden, try installing it from it's profile page or copy its installer's source code into local file and run it manually ( Tools > Run Local Script ):

https://www.playonlinux.com/en/app-1135-League_Of_Legends.html

Unfortunately I don't know any easy way to just download a script from PlayOnLinux page... it leaves us with Copy & Paste.


Click to minimize inconsistent in xubuntu 14.04

I had this too on upgrading Xubuntu. The windows would minimise on the first ever click on the panel button, but then refuse to from then on. I solved it by deleting .config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml - there's obviously some conflicting setting in there from the previous version of xfce. This means you will lose your xfwm settings, but they shouldn't be too hard to re-create.

Edit: Just done some more tests, it seems to be that having "focus follows mouse" rather than "click to focus", is what causes the problem :/ relevant launchpad bug


You can try mogrify and convert utilities from ImageMagick package. It is pretty useful for bulk scenarios like this.
A small working mogrify example would be:-

mogrify -compress JPEG -quality 5 /path/to/image.jpg

P.S: This will overwrite the source file so make sure you have a backup.

A small working convert example would be:-

convert -quality 80% /path/to/source/image.jpg /path/to/result/image.jpg

The above command as is evident reduces the quality to 80% of the original image.
A small bash script can call this command repeatedly for bulk use.
For futher details refer to this answer


Installing Oracle database 12c on Ubuntu 14.04

I tried to install Oracle 12c Release 1 on Ubuntu 15.04 and it worked well.
Following are the steps for reference
Ensure that the /etc/hosts file must contain a fully qualified name for the server.
IP-address  fully-qualified-machine-name machine-name

Run following commands using root / root equivalent user
sudo apt-get update
sudo apt-get dist-upgrade

Reboot the machine
Again run dist-upgrade to check if there is any new versions of packages.
sudo apt-get dist-upgrade

Run following command to install dependencies
sudo apt-get -y install alien binutils build-essential \
cpp-4.4 debhelper g++-4.4 gawk gcc-4.4 gcc-4.4-base \
gettext html2text lib32z1 lib32ncurses5 intltool-debian \
ksh lib32z1-dev libaio-dev libaio1 libbeecrypt7 libc6 \
libc6-dev libc6-dev-i386 libelf-dev libelf1 libltdl-dev \
libltdl7 libmotif4 libodbcinstq4-1 libodbcinstq4-1:i386 \
libqt4-core libqt4-gui libsqlite3-0 libstdc++5 libstdc++6 \
libstdc++6-4.4-dev lsb lsb-core lsb-cxx lsb-desktop \
lsb-graphics make odbcinst pax po-debconf rpm \
rpm-common sysstat unixodbc unixodbc-dev unzip

Creating Required Operating System Groups and Users by running following commands
sudo addgroup oinstall
sudo addgroup dba
sudo addgroup nobody
sudo usermod -g nobody nobody
sudo useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle
sudo mkdir /home/oracle
sudo chown -R oracle:dba /home/oracle
sudo mkdir -p /u01/app/oracle
sudo mkdir -p /u01/binaries
sudo chown -R oracle:dba /u01

Set the password for the oracle user which we have created for installation purpose
sudo passwd oracle

Make ourself as Red Hat by running following command as root/ root equivalent user
echo 'Red Hat Linux release 6' | sudo tee -a /etc/redhat-release

We need to create some soft links to start the installation. To do so run the following commands as root/ root equivalent user,
sudo mkdir /usr/lib64
sudo ln -s /etc /etc/rc.d
sudo ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib64/
sudo ln -s /usr/bin/awk /bin/awk
sudo ln -s /usr/bin/basename /bin/basename
sudo ln -s /usr/bin/rpm /bin/rpm
sudo ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/
sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64/
sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /lib64/
sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib64/

To change the shell configuration for oracle user run following commands as root/ root equivalent user
sudo cp /etc/security/limits.conf /etc/security/limits.conf.original
echo "#Oracle 12C shell limits:" | sudo tee -a /etc/security/limits.conf
echo "oracle soft nproc 2048" | sudo tee -a /etc/security/limits.conf
echo "oracle hard nproc 16384"| sudo tee -a /etc/security/limits.conf
echo "oracle soft nofile 1024" | sudo tee -a /etc/security/limits.conf
echo "oracle hard nofile 65536" | sudo tee -a /etc/security/limits.conf

Run following command to change the kernel parameters as root/ root equivalent user.
echo "#" | sudo tee -a /etc/sysctl.conf
echo "# Oracle 12C entries" | sudo tee -a /etc/sysctl.conf
echo "fs.aio-max-nr=1048576" | sudo tee -a /etc/sysctl.conf
echo "fs.file-max=6815744" | sudo tee -a /etc/sysctl.conf
echo "kernel.shmall=2097152" | sudo tee -a /etc/sysctl.conf
echo "kernel.shmmni=4096" | sudo tee -a /etc/sysctl.conf
echo "kernel.sem=250 32000 100 128" | sudo tee -a /etc/sysctl.conf
echo "net.ipv4.ip_local_port_range=9000 65500" | sudo tee -a /etc/sysctl.conf
echo "net.core.rmem_default=262144" | sudo tee -a /etc/sysctl.conf
echo "net.core.rmem_max=4194304" | sudo tee -a /etc/sysctl.conf
echo "net.core.wmem_default=262144" | sudo tee -a /etc/sysctl.conf
echo "net.core.wmem_max=1048586" | sudo tee -a /etc/sysctl.conf
echo "kernel.shmmax=1073741824" | sudo tee -a /etc/sysctl.conf

Note: kernel.shmmax = max possible value, e.g. size of physical memory in bytes. In my case machine is having 2GB so we are specifying 1GB. Adjust the parameter as per your configuration
Load new kernel parameters, by running following as root/ root equivalent user.
sudo sysctl -p

We need to do changes in start-up script, run following commands as root/ root equivalent user
for i in 0 1 2 3 4 5 6 S
do sudo ln -s /etc/rc$i.d /etc/rc.d/rc$i.d
done

I have downloaded the binaries in /u01/binaries folder.
To extract the binaries run following commands
cd /u01/binaries
unzip linuxamd64_12102_database_1of2.zip
unzip linuxamd64_12102_database_2of2.zip

Before doing the installation we need to give proper permission to the extracted file, to do the same run following command
chown -Rf oracle:dba /u01/binaries

Login as a oracle user and start installation using following command
cd /u01/binaries/database
/u01/binaries/database/runInstaller -ignoreSysPrereqs

And complete the set up there after.
Remember Ubuntu is not certifies OS for Oracle Database. In case of any issues follow below post.
How to Install Oracle 12c on Ubuntu 15.04


LDAP/Pam: No passwd entry for user while getent passwd shows all LDAP users

I've found the solution.  After I restarted nscd (not nslcd), it works.


You can install Ubuntu inside your partition C:, but this is Ubuntu-specific mechanism (Wubi) and it is not normal operating system installation scenario, so I would not recommend it.

However, it is quite easy to shrink your C: partition and create partitions for Ubuntu during Ubuntu installation. Boot your PC with Ubuntu installation disk, and when asked by installer about partitions, choose "Install Ubuntu alongside Windows" or something like that. Then you choose how much Windows C: partition should be shrinked and then creating Ubuntu partitions on the obtained free disk space is done automatically.


Getting Notification in Ubuntu 14.04 that "Update Information is Outdated"

Remove the PPA ppa:merlwiz79/cinnamon-ppa, as it doesn't contain any Trusty packages:

sudo rm /etc/apt/sources.list.d/merlwiz79-ubuntu-cinnamon-ppa-*.list

The removal via ppa-purge doesn't work in this case, because there are no Trusty packages
Remove the file extra.list.backup:

sudo rm extra.list.backup

Remove the entries http://ppa.launchpad.net trusty main:

Open the file /etc/apt/sources.list

sudo nano /etc/apt/sources.list

Search and remove the line deb http://ppa.launchpad.net trusty main

Upgrade your system:

sudo apt-get update
sudo apt-get upgrade


Since user pseudo may run ALL commands, you should be able to access the file regardless of the directory's owner given that you are already logged in as pseudo e.g.

sudo cat /root/token.txt


You might not like my answer but the easiest way is to first install the software on a windows box,  then copy the folder metatrader to your linux box. This is how I personally do it.

If you need more details just let me know.

Martin


You can download the Intel graphics installer, from there website, 15.10 supports the latest version of the driver

For a 64bit OS, run

wget https://download.01.org/gfx/ubuntu/15.10/main/pool/main/i/intel-linux-graphics-installer/intel-linux-graphics-installer_1.2.1-0intel2_amd64.deb
sudo dpkg -i intel-linux-graphics-installer_1.2.1-0intel2_amd64.deb
intel-linux-graphics-installer

On 32 bit, you can run

wget https://download.01.org/gfx/ubuntu/15.10/main/pool/main/i/intel-linux-graphics-installer/intel-linux-graphics-installer_1.2.1-0intel2_i386.deb
sudo dpkg -i intel-linux-graphics-installer_1.2.1-0intel2_i386.deb
intel-linux-graphics-installer

This will run a graphical installer and install the latest driver, however, you may find that 3D acceleration for these chips, just simply is not at the levels it on Windows, but it is getting better quickly.


How do I run a command prompt every time my computer reboots?

command '@reboot' not found

That part is related to a cronjob. You edit cronjobs by typing crontab -e and can then add a time and date or a moment (like @reboot) on when to start a command. Don't use that for this kind of action: what you want is related to your session, user and desktop. Cron is intended for action that require no desktop, no interaction.

Open a terminal
type cd Documents
type gedit input.sh. This open gedit with a new file named input.sh
Insert:

#!/bin/bash
xinput set-prop 12 146 2.400000, 0.000000, 0.000000, 0.000000, 2.400000, 0.000000, 0.000000, 0.000000, 1.000000`

exit gedit and type chmod 700 input.sh
You can test this by doing ./input.sh. It should not show errors, probably show nothing at all.
type exit  to close the terminal

Now find "startup applications"  in the menu, pick "add", give the new action a name and add the script you saved into the "command". Like thi (change rinzwind to your name):

And if done correctly this script gets started when you start a desktop session.


Confused about desktop/viewport switching, want to bind keyboard shortcuts to switch desktops

Have you tried setting them in the keyboard shortcuts? Seems to work fine over here:

(You can click on the shortcut field for each function and then the tool will prompt you to set a shortcut)


I have a Dell Inspiron 15 7501, and I experienced the same "issue" both on Ubuntu 20.04 and Pop!_Os 20.04.
I have BIOS version 1.4.1 and I found there the option "Eco Power" or something like that on Display settings. I disabled that and It worked for me.
Edit: Actually there is the possibility of upgrading the BIOS to newer version, 1.5.1. I am not sure which version you have, but I hope they did not change the name of that option above.


Setting multiple NTP servers in /etc/systemd/timesyncd.conf

this is by design of timesyncd.
TL;DR it is only capable to use one at a time.

Details: If you look very hard at the timesyncd man page you will see that is say in the section about multiple NTP servers:

  ... until one is found that responds ...

If you dig deeper you'll find issues like timesyncd: talks only to one NTP server at a time and systemd-timesyncd manual should explain it uses SNTP, not NTP.

So it will take the first one out of the NTP= list that works, and if all in there fail try the list in FallbackNTP=.

If you want real cross server checks for better sync you should take a look at NTPd (<18.04) / Chrony (>=18.04) quoting the systemd issue on that:

  Yeah, systemd-timesyncd implements SNTP, not NTP, hence multi-server
  support is out of focus. If you want a full NTP implementation, please
  use ntpd or chrony.


Pidgin has dropped support for Facebook XMPP as of version 2.12, together with a bunch of other deprecated services. See: http://www.omgubuntu.co.uk/2017/03/pidgin-drops-facebook-xmpp.

However, according to that same source, Purple-Facebook is still available, only not at the link you give. Instead, get the plugin here: https://github.com/dequis/purple-facebook/wiki


Intel Atom N270/N280 processors - 32-bit or 64-bit OS Compatible?

Both Intel Atom N270 and N280 are 32-bit processors


Launchpad can't find rsvg while building deb package for Precise Pangolin

Reading the Contents-i386.gz file for the Precise release (warning: it's a huge file), it seems that /usr/bin/rsvg is not provided by librsvg2-bin.

However don't worry: in other releases /usr/bin/rsvg is just a symlink to /usr/bin/rsvg-convert, so all you have to do is change your scripts and use rsvg-convert instead of rsvg.


Route subnet requests from wlan0 to eth0 on Ubuntu 14.04

Have you already solved your problem??

Try this route on your ubuntu machine:

192.168.1.0     192.168.1.1     255.255.255.0   U     1      0        0 eth0

instead of

192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0

I think you may have a route loop on that machine... ;)

Best,

JB


Power went out during install 15.10 Server

The easiest, not necessarily the quickest way  is to sinply start over with a fresh install.  Also,  reformat the hard drive, a quuck format will do,  this will help problems from occurring later.

BUT FIRST,  BEFORE DOING ANYTHING at all, get a good USP and connect both the monitor and the server  itself to it.  This way you can gracefully shut down the server when another power outsge occurs.


Installation of NVDIA drivers on ASUS ZenBook 14 UX431FN-AN001T

I had a similar problem with Nvidia graphics card in ubuntu.

You can try this

1) Remove all the drivers of Nvidia with the help of purge check here how to remove all Nvidia drivers How can I uninstall a nvidia driver completely ?. Then reboot the pc, this will solve your problem.

2) If that doesn't solve your problem then backup all your important data from ubuntu and get ready to reinstall ubuntu, but this time while reinstalling don't tick the option install third-party software then complete the ubuntu installation as usual.


How can I find files with 7 characters (and no extension) in their names?

Here's a sort-of solution with shell wildcards (exactly 7 characters that are not .)

ls [!.][!.][!.][!.][!.][!.][!.]

And here's a solution with find using regex negation (not literal . = [^\.]) and specifying how many characters {7}

find -maxdepth 1 -regextype posix-extended -regex '\./[^.]{7}'

Not what you asked for, but I doubt it can be done without some kind of wildcards or regex.


Aid in knowing if Ubuntu will function well of my PC

Make sure to find out first if there is a stable driver for your graphic card, also make sure there is a stable driver for your WLAN card, those two issues are usually the ones that irritate new users


Is it possible to transfer old LibreOffice user profile to the new version of LO 6.x?

It does not work.
Normally it works by coping the
/home/user/.config/libreoffice/ folder into the same on the new OS. But I get than an error and the program doesn’t start at all.

I'v tested then with debian 9.4 which has LO 5.2.7.2 and it works as ever, all your Styles and Formattings, added words etc. are restored.


You can try adding your user to the admin group, that should fix it. (Please leave a comment if it doesn't)


Thunderbird issue with proxy authentication

For what it is worth, my situation was similar. I am using Ubuntu 11.10 and the latest version of Thunderbird. I am updated with Ubuntu: this means apt-get is working through our proxy server. Basic web browsing with Mozilla Firefox is working through our proxy. I posted my answer in Thunderbird's forum to share what I did, but basically, after authenticating on our proxy server with the web browser, I connected to Thunderbird with NO PROXY SETTINGS. Very weird. But it worked. Here is my complete post:

http://forums.mozillazine.org/viewtopic.php?f=31&t=2449619

Hope this helps,

-Mike-


Is there an Ubuntu version that would fit on a 1GB USB stick?

You can choose Lubuntu or Xubuntu. But I am not sure if the final install will fit in 1 GB, so you could use Lubuntu minimal install OR xubuntu-core (I personally prefer xubuntu-core). To do this you have to download the mini.iso available in the Ubuntu website, here:

https://help.ubuntu.com/community/Installation/MinimalCD

The mini.iso is a live system for text-based Ubuntu installation. It is around 40 MBs. You can burn it to a CD or USB and boot from it. Follow the instructions in the above link, choose your USB stick to be used as the root filesystem and a base for Ubuntu will be installed on it. Do not install any extra packages in the end of the minimal install.

Now you have a headless (no graphical environment) Ubuntu system inside your USB stick. Boot from it and you will be dropped in a command line. From there you can run 'sudo apt-get install lubuntu-core' for a minimal version of Lubuntu or 'sudo apt-get install xubuntu-core^' (do not forget the ^) for a minimal version of Xubuntu. Lubuntu will leave you with more space for additional programs; in the other hand, Xubuntu has more features and customization, but you will be left with only a few MBs to use. The decision is yours.

Remember: the "core" versions of Lubuntu/Xubuntu do not have any programs beyond the Desktop Environment, a File Manager, a Terminal and some configurations. You will have to install other programs (like web browsers, software centers and media players) from the command line.

EDIT: seems like you would like to have Unity. You could try 'sudo apt-get install --no-install-recommends ubuntu-desktop' on the command line to get only the Unity desktop environment, but I am not sure if it will fit in 1 GB. You could give it a try, and if there's no enough space, just format your USB stick and start again, using xubuntu-core or lubuntu-core. Please tell us your experience.


Change command to launch firefox in 18.10

You should first create your own new .desktop file by running

gedit ~/.local/share/applications/firefoxtouch.desktop

substitute gedit with any text editor you prefer

Now, put inside those file

    [Desktop Entry]
Name=Firefox Touch
Comment=
Exec=env MOZ_USE_XINPUT2=1 /usr/bin/firefox %u
Icon=firefox
Terminal=false
Categories=GNOME;GTK;Network;WebBrowser;
Type=Application
StartupNotify=true

and save. Now searching for Firefox should five you another entry for Firefox with custom parameter you need.


Can't enter to BIOS after debian install only black screen

I am not completely sure, but I do believe that the boot loader and/or the boot manager does not affect accessing the BIOS Setup. Have you tried other key combinations to access the BIOS Setup?

If you want to boot into Debian, boot into Windows 10 and:

Press the Windows Key + R to open the Run Box
Type msconfig.msc and hit Enter
Navigate to the Boot tab

In this tab you should be able to choose what IS to boot into if Windows is aware of the dual boot configuration.

Hope this helps!


The problem seems to be a missing or an erroneous declaration / erroneous call of the function vfs_readlink() in HgfsReadLink()  in link.c:

/tmp/modconfig-NAS1rK/vmhgfs-only/link.c: In function ‘HgfsReadlink’:
/tmp/modconfig-NAS1rK/vmhgfs-only/link.c:186:10: error: implicit declaration of function ‘vfs_readlink’ [-Werror=implicit-function-declaration]

This might be fixed by editing one of the header files included in link.c or by editing link.c itself, but the easiest (and probably fastest) way would be to just patch the faulty file. There's this patcher around which between other vmware-tools bugs also specifically addresses your issue: Github.com: vmware-tools-patches.

I've checked the patches included and I found out that between those included specifically for your version of vmware-tools (9.6.2) two of them affect the offending function over two different kernels (04-vmblock-vfs_readlink-kernel-3.15-tools-9.6.2.patch > kernel 3.15 and 10-vmhgfs-vfs_readlink-kernel-3.16-tools-9.6.2.patch > kernel 3.16).

Since the vmware-tools installer you used messes with kernel modules, and since as you suggested some files probably have been written already during the previous attempt to install, considering furthermore that you have just reinstalled the system, instead of going through unnecessary headaches i highly suggest you to clean reinstall Ubuntu on the virtual machine once again before running the patcher and installing vmware-tools again.

Inside the virtual machine:

Download and install git: sudo apt-get install git
Download the patcher/patches somewhere, let's say in ~/: cd ~/ && git clone https://github.com/rasa/vmware-tools-patches.git
Move the vmware-tools tarball to ~/vmware-tools-patches: cp ~/Downloads/<vmware_tools_tarball_name> ~/vmware-tools-patches

Run the patcher: cd vmware-tools-patches && ./untar-and-patch.sh
Install vmware-tools: ./compile.sh


I can't execute eclipse under Ubuntu 18.04 L

Based on this answer you can do this:

  In your config.ini file of eclipse eclipse\configuration\config.ini
  check this three things:

osgi.framework=file\:plugins\\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator\\bundles.info

  And check whether these jars are in place or not, the jar files depend
  upon your version of eclipse

You can install OpenJDK 8 using instructions from this answer. Also there you will find the way to use alternatives.

sudo update-alternatives --config java
sudo update-alternatives --config javac


How do I find a proprietary driver for the Intel graphics card I have?

My laptop also uses Intel graphics (it is a Toshiba Satellite model), and it does not use proprietary graphics drivers. The reason for this is because the official Intel drivers for Intel graphics are themselves open-source; thus no proprietary drivers are available.

If you continue to have issues running Amnesia that appear to be graphics-related, then the issue is most likely with the game itself having a bug.

Relevant links:

Intel Download Center
Linux Graphics Drivers from Intel


The GnuCash bug tracker has moved. How do we fix all the Launchpad references still pointing az the old site?

The question you asked was the right place for this; it's just that we didn't manage to cope with it in time.  I've dealt with it now.


Ubuntu One File Sync problem - ssl handshake error

First, Sorry for the inconvenience. We are experiencing a temporary disruption in service. Our engineers are working to resolve this issue as soon as possible.


How do I fix my ethernet card losing network connection every few minutes with kernels 3.8.x?

I'm afraid you slipped into a kernel bug for your particular ethernet card (bug reports here and here). I suggest you to post your feedback to those threads.

It seems that removing and adding back the atl1c module fixes the issue temporarily:

sudo rmmod atl1c
sudo modprobe atl1c

Another more durable solution is to recompile the compact-wireless module you can find on kernel.org like so:

sudo rmmod atl1c
sudo apt-get update
sudo apt-get install build-essential wget
wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2
tar-xjf compat-wireless-2.6.tar.bz2
cd compat-wireless*
scripts/driver-select atl1c
make
sudo make install
sudo modprobe atl1c

If it doesn't work try to reboot.


Moving a partion to disk "/" with gparted

Boot gparted live cd or Ubuntu live cd.
If you boot ubuntu live cd then run the following commands to install gparted,

sudo apt-get install gparted
sudo gparted

After gparted opened,right click on the /dev/sda3 and click on the Resize option,and free up the space you want to add to the / partition.
The freedup unallocated space comes under the /dev/sda3 partition.
then right  click on the extended partition,select the Resize option and add the unallocated space to it.The unallocated space comes under the /dev/sda7.
Right click on the /dev/sda5 probably /partition and select the Resize option,now you can add the unallocated space to the / partition.