You should aim for a customized routing table. The way you describe your problem, you want the following:

A route to the proxy which uses the WiFi interface
A route to your ssh server which uses the G4 card
A default route on either device, or none at all, as you are not expecting any
connections to hosts other than these two, right?

I must confess I'm not much of a GUI user in things like these. I know you could set up the routing table like this using the rourte command line tool. You'd basically add a route to the specific target through the default gateway of the device in question. You could even write a script to automate the process, once you've worked out the commands to use.

I guess there are ways to achieve similar effects using the Ubuntu graphical user interface tools. Someone else might know that detail. Answers to questions bearing the routing tag might also provide useful information on that, although I haven't found a GUI tutorial on custom routes at my first glance.


Does you have windows option in boot menu. Try to repair the boot. First log into ubuntu and execute these commands in commandline:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

type boot-repair in terminal or search in Dash. Run boot-repair by clicking on it. select "Recommended repair". When repair finish note the url that appear and reboot.Check with booting to window. If not successful indicate the url to people who can help you.


Kdenlive is a nice video editing program. it is available in the repo
sudo apt-get install kdenlive


Frozen Synapse started crashing with a "Unable to initialize OpenGL" error after upgrade

This appears to be an issue with the way the libraries are handled.

see the thread: http://frozenbyte.com/board/viewtopic.php?f=23&t=3706

The developers are reporting:

"It seems that libglade has no multiarch support, it's mainly a shared library packaging issue, but we are too late in debian and ubuntu developpement cycle to ask for a fix. Is there any alternative to request request repackaging this library to get this installer (and game) to run in Oneiric ?"

They are apparently working on a solution. For now my Frozenbyte Humble Bundle programs simply do not run on Ubuntu 11.10.


"/dev/mapper/cryptswap1 is not ready yet or not present" error with Virtualbox

Another way to check to see if swap is mounted is with free. To manually correct this problem, do sudo swapon -a, which will tell the system "start swapping on ALL of the pre-configured swap areas"


Have you started deluged (the deluge daemon) as a service? The command for running the client in CLI is deluge-console.

Here are some guides:

https://wiki.archlinux.org/index.php/Deluge
https://whatbox.ca/wiki/Deluge_Console_Documentation


Move audio stream from OpenAL application to different audio device

The solution is to add the option allow-moves = true to the OpenAL configuration file (the per-user file is located at ~/.alsoftrc).

If you don't already have this file (it doesn't exist by default), you can copy it from /etc/openal/alsoft.conf or use this sample default configuration.


copying a file from a USB storage if it exist with udev rules

Probably usb has not been mounted at the time your rule is processed. Try adding a hook to the usbmount i.e. create a file named /etc/usbmount/mount.d/10_autocopy.sh

#!/bin/sh
[ -f $UM_MOUNTPOINT/luah_v2_version.zip ] &&  cp $UM_MOUNTPOINT/luah_v2_version.zip /home/luah

then make it executable:

chmod +x /etc/usbmount/mount.d/10_autocopy.sh

variables set for mount scripts (/etc/usb/mount.d):

UM_DEVICE: mounted device
UM_MOUNTPOINT: mount point of the device
UM_FILESYSTEM: filesystem type
UM_MOUNTOPTIONS: mount options
UM_VENDOR: vendor string of the device
UM_MODEL: model or product string

variables set for unmount scripts (/etc/usb/umount.d):

UM_DEVICE: mounted device
UM_MOUNTPOINT: mount point of the device
UM_FILESYSTEM: filesystem type

Note:

all scripts are by default executed as user root.
usbmount uses the syslog facility if VERBOSE=yes - /etc/usbmount/usbmount.conf


Try updating your BIOS.
http://h20000.www2.hp.com/bizsupport/TechSupport/ProductList.jsp?lang=en&cc=us&prodTypeId=321957&prodSeriesId=4247645&taskId=135

Edit: Intel Atom is not an ARM processor. If this were the case, it could not have shipped with Windows 7.


Install to HP Elitebook 850 has flipped screen. How to correct?

Use this command

sudo apt-get remove iio-sensor-proxy

OR

Use the icon that is available in the top right corner of the screen, when you click on the down arrow. The icon is the one in red in the screenshot below:


Backports

It sounds like you need a backport. A backport makes a more recent version of an upstream project in an older Ubuntu release.

See:

More information on backports and how to use them.
How to request a backport.

However, this isn't necessarily a complete answer for you. Backporting a library successfully and without unintended consequences is considerably more involved, because as you say it can break things.

Stable Release Updates

If it is a simple bug that you need fixed, rather than new functionality, then it is also possible to cherry-pick the fix into a stable release update. See:

Documentation of Stable Release Updates.

However, bugs fixed this way generally need to be simple enough that they obviously won't break anything. Again, this is difficult in this particular case.

Personal Package Archives

Finally, you can make changes to packages and put them into your own personal package archive. This way you don't have to worry about adversely affecting others who aren't expecting it (as they have to explicitly enable your own specific archive), and so you don't have to follow the stricter rules required for SRUs and backports.

See:

How to use personal package archives.


Serial port terminal > Cannot open /dev/ttyS0: Permission denied

The tty devices belong to the "dialout" group, I suspect you are not a member of this group and hence are denied access to /dev/ttyS0, so you need to add yourself to that group.

First check if you are a member of that group:

groups ${USER}

..this will list all the groups you belong to. If you don't belong to the dialout grup then add yourself to it, for example:

sudo gpasswd --add ${USER} dialout

You then need to log out and log back in again for it to be effective.  Then see if it fixes your problem.


Can someone please compare the safety issues between Ubuntu and windows OS?

The simple answer is Yes.

There are many complicated reasons for it all regarding the internals of how Windows works (mostly to support legacy software, but also the history of raw sockets and the single user system).

The simpler case is that almost every major business in the world uses a windows environment, therefor, mal-ware is written to attack the largest population.


How to make a script that interacts with screen lock / unlock

How to run scripts or commands on changes in lock state
According to this answer on U&L, you tried an outdated dbus command. For 14.04 and up, you can use:
dbus-monitor --session "type='signal',interface='com.ubuntu.Upstart0_6'" | \
(
  while read X; do
    if [[ "$X" =~ desktop-lock ]]; then
      SCREEN_LOCKED;
    elif [[ "$X" =~ desktop-unlock ]]; then
      SCREEN_UNLOCKED;
    fi
  done
)

which works fine on my system (16.04).
(Thanks for improvements by @Serg and @muru)
Of course you need to replace SCREEN_LOCKED and SCREEN_UNLOCKED by the commands or scripts you want to run on changes in lock state, but tested it, and it works fine.


Reinstall/purge apt package without redownload

It seems by remove a package, all are removed from the system except modified configuration (which is removed if use purge) man apt:

install, remove, purge (apt-get(8))
           Performs the requested action on one or more packages specified via regex(7), glob(7) or exact match. The requested action can be overridden for specific packages by append a plus (+) to the package name to install this
           package or a minus (-) to remove it.

           A specific version of a package can be selected for installation by following the package name with an equals (=) and the version of the package to select. Alternatively the version from a specific release can be selected
           by following the package name with a forward slash (/) and codename (stretch, buster, sid ...) or suite name (stable, testing, unstable). This will also select versions from this release for dependencies of this package
           if needed to satisfy the request.

           Removing a package removes all packaged data, but leaves usually small (modified) user configuration files behind, in case the remove was an accident. Just issuing an installation request for the accidentally removed
           package will restore its function as before in that case. On the other hand you can get rid of these leftovers by calling purge even on already removed packages. Note that this does not affect any data or configuration
           stored in your home directory.

I'm not sure it is possible to do.


tunneling to a webserver via another ubuntu machine

You have two options.

ssh -D1080 firewall

which creates a local SOCKS5 server you can configure your browser to use.  Then it is for all practical purposes running on the firewall.

ssh -L8080:router:80 firewall

which forwards the local port 8080 to port 80 on router (which sees it coming from firewall).

Also you may be able to use "ssh -Y firewall" to run a shell on the firewall where you can run a browser which then displays on your computer.  If not, you may be able to run links or similar.

Note that if what you want to do is intentionally hard, you may want to check with the local network administrator that what you want to do is allowed.   Breaching network security without permission is usually not a good idea.


How do I replace the desktop by an application?

Replacing Desktop By An Application

Define User Defined Session

First we will have to define a User Defined Session that handles the special case when no desktop should be loaded. We will define this session by creating a custom.desktop file in /usr/share/xsessions/ with a content similar to this:

[Desktop Entry]
Name=Custom
Comment=Custom Session to run ~./.xsession
Exec=/home/<username>/.xsession
X-Ubuntu-Gettext-Domain=<gnome-session-3.0>

This will tell GDM to run the script .xsession located in the HOME of the user <username>.

Optional X-Ubuntu-Gettext-Domain is needed for a correct language translation in case we load Unity/GNOME desktop later (replace with gdm in 10.04).

Make A Script To Start

This script ~/.xsession could look as simple as that:

#! /bin/bash

xterm
logout

Load Custom Session On Login

If we now define to load our session "Custom" during the given user's login at the gdm screen only the X-Terminal will be started and we will be back at gdm on exit. Next time we login as the user this setting will be remembered as default.

Run Application That Need Windows-Managing

Of course we are not yet able to run an application that needs a windows manager such as GNOME. To do this replace the .xsession script by something like:

#! /bin/bash

gnome-wm &
firefox
logout

We can see that the GNOME windows manager is now loaded but no desktop elements are present. This enables an application (e.g. firefox here) to start.

But take care what you do: If we minimize the application to the non-existent tray we will end up with a nice wallpaper to look at. Because of this it is very important to include logout at the end of the script to logout the session after the application terminated. There really is no other programm running to do this for you until you add one to your script. You deliberately replaced your desktop by firefox only (a bad idea).

Of course we would also be able to start gnome-desktop or gnome-session (resp. options) from the script but this is what we already do by default.


Good application for printing envelopes?

OpenOffice.org does envelopes quite excellently.

Open any text document, click on Insert → Envelope. The rest is completely self-explanatory to anybody who's ever had to use office-type software.


System logs out instead of sleep/suspend

It turned out to be issue with Nvidia driver 460. Updating to 465 solved all issues with sleep.


How to fix: extension "NV-GLX" missing on display. Ubuntu running on Oracle VM Virtual Box

because you are running Ubuntu under virtual box, you don't need the Ubuntu drivers - you just need the virtualbox virtual display driver. You can get it by installing the VirtualBox "guest additions"


The package you are installing has its dependencies. To install it, install the dependencies first.

Issue this command on the terminal.

sudo apt-get install -f

This command will attempt to correct the broken dependencies of the package.


Error while installing kernel from source

You didn't actually ask a question, I assume your question is "Why do I get this error and what does it mean?".

The problem is not with the kernel compilation process, which seems to have gone fine. Rather, the error occurs when dkms (the third-party driver manager) tries to compile your wifi driver for the new kernel. The compilation fails, most probably because the driver is not compatible with the kernel version you are compiling.


EXT4-fs error (device sda2): ext4_find_entry:1436 Ubuntu 18.04

Basically, the power saving features of your drive are triggering a bug that leads to the failures you're seeing - disk io errors.

Typical symptoms are the logs you show above, fonts not rendering, and your desktop environment crashing. While the issue has been identified for some SSDs, it is still a problem for some of us. I am also experiencing this issue.

Workaround

As a workaround, You can prevent this by adding this to your start script in grub:

nvme_core.default_ps_max_latency_us=6000

Although, others report that only by setting the value to 0 will you stop running into the error. Of course, then your SSD's power performance suffers.

The real bug

This is a bug that is partially reported here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1805816

If you want to help fix the real problem, add more details about your problem in your initial question here in SO and in the bug tracker I link to above. For example, Look at the person who opened the ticket to see what relevant info he included. I'm just starting to tackle this myself by adding my details.


Make a file called .Xmodmap in your home directory and copy and paste all of that into it. Log out and log back in again, or run xmodmap ~/.Xmodmap from the command line.


Connection issues with rtl8723ae wireless (maybe bad driver?)

I'm sorry, I'm having a hard time helping you , because I don't have enough rep to leave comments. Yes, BT is bluetooth, but there are further instructions and links on that thread. I hoped your answer would be on there. Looks like alot of people have same issue.


PPA for vim builds with python, ruby etc interfaces enabled?

This repo has daily vim builds with python, ruby and lua enabled:

https://launchpad.net/~dgadomski/+archive/vim-daily


"Failed to load Main-Class manifest" => This is not a problem with you JDK but only with your MANIFEST.MF file. Have you specified a main-class? Your manifest file should be like this :

Manifest-Version: 1.0
Created-By: 1.7.0_06 (Oracle Corporation)
Main-Class: MyPackage.MyClass

Then you could try to execute again :

java -jar ccnChat.jar


Two issues:

It sounds like your package lists are missing a fair number of packages that should be there.  This might be a temporary problem that you can fix by running sudo apt-get update (or clicking the Check button in Update Manager), or it might indicate that your package sources are not configured correctly.  If it is a problem with package sources, I would suggest picking Settings... from Update Manager and checking the Ubuntu Software and Updates tabs.
The squid package contains Squid 2.x.  If you want to install Squid 3.x, install the squid3 package instead.  If you're running Ubuntu 11.10, this will give you version 3.1.14.


How install Ubuntu 16.04 on notebook with Windows 10 and have space for Windows

In your Ubuntu Live CD, you should use the program gparted to shrink your Windows partition (right-click your Windows partition and click resize/move) down to the desired size and once you have some unallocated space make a new partition thats ext4 (or whatever your are going to use) afterwards go into the installer and when it asks where to install Ubuntu, click Something else, select your new ext4 partition and hit change, set its mount point to / after that you should just click install.


Dual Booting W10/Ubuntu with 2 separate SSDs in UEFI mode

The options to choose where to install boot loader in UEFI mode do not work.
The old Ubuntu install entry in NVMe drive will be overwritten and boot new install.
Posted work around to manually unmount & mount correct ESP during install #23 & #26. Very old bug but still an issue if not installing to same drive as Windows.
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1396379
Others suggest disconnecting all other drives physically or logically in UEFI settings, so install drive is first drive.
Or removing boot flag/esp flag from first drive, so only ESP is install drive. See Tim Richardson's answer in second link in concord42's answer above.
Or if you have ESP on second or external drive, you can just reinstall grub, either manually or using Boot-Repair's advanced mode & full reinstall to correct drive.
If you have ESP on second drive, use Boot-Repair's advanced mode to reinstall grub to second drive. Default fix may not be correct, only use advanced mode.
Grub installs to any drive without issue, it is Ubuntu's Ubiquity installer that only wants to use first ESP found.
https://help.ubuntu.com/community/Boot-Repair
UEFI/gpt partitioning in Advance, newer versions do not need swap partition as swap file is now used as default since 17.10, but some still prefer swap partition and it will be used if created in advance:
How to prepare a disk on an EFI based PC for Ubuntu?
Windows settings also required, if you want to dual boot or read NTFS partitions from Ubuntu. Particularly UEFI fast boot and Windows fast start up.
https://help.ubuntu.com/community/UEFI


Is there a pywinauto equivalent to automate the GUI from Python?

The linux desktop testing project (ldtp) should offer what you need. With the python-ldtp  package, you can write scripts in python. The project uses the accessibility methods to perform actions, so the application in question has to be a “standard” GTK/QT/… application and you need to enable accessibility (“Assistive technologies”).

sudo apt-get install python-ldtp

The following python script would click the “New” button in an (already existing) gedit window and enter the string foo:

#!/usr/bin/python

from ldtp import *
from ldtputils import *
click('*-gedit', 'btnNew')
generatekeyevent('foo')


how do I make my profile's folders and files private from other profiles on the same PC running Ubuntu 14.10?

You need to change permissions on folder, removing 'execute' and 'read' attributes.

To do it, open 'Nautilus' or 'Files', go to /home, select the desired folder, right click and select 'Properties'. On 'Permissions' tab, select 'None' or 'Nothing' only in 'Others' dropdown and then click on 'change permissions on files in folder'.


Slower Start, Hard Drive makes strange sound?

It's dying, get your data off it ASAP. You're lucky that the disk is even giving you an audible warning. Most SATA drives just fail to spin up one day. Whatever you do, don't turn it off until you get your stuff off it. Then we can start running smart tests on it to verify how far gone it is.

Might I suggest a nice backup program called [deja-dup]?1


Cannot find steam.exe on wine installation

On my system the full path is

/home/[username]/.wine/dosdevices/c:/Program Files (x86)/Steam/Steam.exe

But it sounds like it can differ.  So try this.

Open a terminal and type

wine regedit

Then click the + beside HKEY_CURRENT_USER
Then click the + beside Software
Then click the + beside Valve
Then click on Steam

In the right hand pane look for SteamExe.  Over on the right it should show you the path to Steam.


How do I install a text-only Ubuntu server like I have had for years?

There is a separate Desktop and Server version now. The Server install does not come with anything graphical and also includes some nice server features, like load overview when you log into ssh.


Install USB wireless adapter tp-link tl-wn8200nd in Ubuntu

Run the following commands to install the driver located at https://github.com/clnhub/rtl8192eu-linux:

sudo apt -y install linux-headers-generic build-essential dkms git

git clone https://github.com/clnhub/rtl8192eu-linux

cd rtl8192eu-linux

./install_wifi.sh


How to transfer the apt keyring to another computer

The apt-key command can export all trusted keys:

apt-key exportall > trusted-keys

Copy the trusted-keys file to the other system and import them:

sudo apt-key add trusted-keys

Exporting via apt-key doesn't need root privilege, but importing does.


How to Restore/Reset Unity after Messing up with Unity Tweak tool?? [Ubuntu 16.04 LTS]

I've just got the exact same problem and solved it by opening a terminal with Ctrl+Alt+T and typing these commands:

unity-tweak-tool --reset-unity
dconf reset -f /org/compiz/
setsid unity

This will make unity-tweak-tool reset every setting to the default value, then reset the compiz configuration, and finally restart unity.


Siege cannot perform load testing for more than 255 tests

Based on https://linode.com/docs/tools-reference/tools/load-testing-with-siege/, it appears that if you run siege.config, it will create a .siegerc for you, which you can then update per your requirements.


An Application won't launch via Terminal or Desktop File

As described in the comment, to run software on chromeboook, you will need arm package. From the command I see you have package for amd64

You can find out what is your architecture (and packages you need) by running

jakuje@E6430:~$ uname -i
x86_64

DPKG will probably allow you to install packages with different architecture, but it will not work, as you see.


Shrink ZFS Partition and Increase Swap Partition Size

According to Aaron Toponce's guide:

You cannot shrink a zpool, only grow it.

Source:
https://pthree.org/2012/12/04/zfs-administration-part-i-vdevs/
Here is another guide:
http://www.resilvered.com/2011/07/how-to-shrink-zfs-root-pool.html
It looks like this second guide "shrinks" a pool by creating a new (smaller) pool on a different disk, and then sending a snapshot from the old pool to the new pool.


What is the difference between Lubuntu and LXDE?

LXDE is a Desktop Environment, in other words, a collection of specific programs and tools like OpenBox window manager, Pcmanfm file browser, lxpanel, etc. You can have it anywhere (in fact, you actually do), for example, on Debian, Suse, Fedora, PCLinux, etc.

Lubuntu is a distro, in other words, a *buntu base with LXDE on top, instead of Gnome, Unity and other stuff specific to Ubuntu. (Note, LXDE on Debian is not Lubuntu).

Since you want Lubuntu installed, there is no reason to install Ubuntu first. Download an ISO of Lubuntu, make a CD/USB, run in Live mode, and if you like it, proceed installing.


Open Up System Settings From The Dash.

Click On Software & Updates

Tab To Additonal Drivers. Select A Broadcom Wifi Driver Or Any Other Driver Listed That Has Network In Its Name.

Click Activate.

Let Me Know If It Helps!


How to add an html page in the apache2 root?

The default Apache2 Document Root directory on Ubuntu is: /var/www/html.

It is defined in the configuration file /etc/apache2/sites-available/000-default.conf. You can enable and disable this default virtual host via these commands:

sudo a2ensite  000-default.conf    # which means Apache2 enable site
sudo a2dissite 000-default.conf    # which means Apache2 disable site

You can create other virtual hosts, that points to other directories. After each of these steps or after some edits in the configuration files you must reload (or restart) Apache2:

sudo systemctl reload apache2.service
sudo systemctl restart apache2.service

By default, the directory /var/www/html is owned by root. This means when you want to edit a file in this directory you have to use sudo command.

For example. There is a file that contains the default welcome page. This file is called /var/www/html/index.php. To edit it, open a terminal window (ctrl+alt+T) and use this command:

sudo -i gedit /var/www/html/index.html

It is not good practice, but for testing purposes (while using the web server only locally) you can change the owner of this directory and files in it. Use this command:

sudo chown -R $USER /var/www/html/

After that you will be able to edit and create files there, with your current user (try the command echo $USER).

About the permissions of this folder, please read this topic: How to avoid using sudo when working in /var/www?


DNS Caching for ssh in Ubuntu 14.04.3 LTS?

It might be nscd that does the caching for you in this case.

You can flush nscd cache with a restart of the service.

$ sudo service nscd restart

nscd is a name service caching daemon, and several utilities on a system will try use this before going further. All tools using libc for name resolutions.


Can I host customized Ubuntu ISO on my website?

I personally believe that not only would this not be a problem but there are even some Ubuntu Community Wiki guides to help you along in producing a customised ISO:

LiveCDCustomization
InstallCDCustomization
LiveCDCustomizationFromScratch

However if you wished to redistribute your ISO there would be a few caveats: your ISO could not be called 'Ubuntu' and you could not use Ubuntu or Canonical logos on your product. There are some other issues that can be seen where Canonical asserts its legal rights here:

Intellectual property rights policy

and you would do well to read this document thoroughly. But remember that Ubuntu has been altered and redistributed before to create new distros. Some great 'official' examples are:

Edubuntu: Ubuntu for education
Ubuntu GNOME: Ubuntu with the GNOME desktop environment
Kubuntu: Ubuntu with the K Desktop environment
Ubuntu Kylin: Ubuntu localised for China
Lubuntu: Ubuntu that uses LXDE
Mythbuntu: Designed for creating a home theatre PC with MythTV
Ubuntu Studio: Designed for multimedia editing and creation
Xubuntu: Ubuntu with the XFCE desktop environment
Ubuntu MATE: Ubuntu with the MATE desktop environment

Reference:

Recognised Ubuntu flavours


This tutorial is really a bad idea.  You do not want to have a normally unmounted grub partition where you have to manually write your own grub config file that will not be automatically updated when new kernels are installed, and will break when grub is upgraded.  If you want a separate /boot partition, you need to keep it mounted in /boot, it needs to be significantly larger ( at least 100 mb, preferably 200 ), and it should use ext4 instead of the antiquated ext2 filesystem.  You will need to edit your /etc/fstab to mount it in /boot ( you can look up the uuid with sudo blkid and follow the template of the existing entries in fstab ), and then mount it with sudo mount /boot.  After that you want to run sudo dpkg-reconfigure grub-pc to reinstall grub to the mbr of your boot drive, and then run sudo update-grub to generate the config file.

You also do all of this from the installed system, not the live cd.


Can I recover my data after deleting the partition?

You could give TestDisk and PhotoRec a try. It's an open source software package that
is able to recover lost partitions and also deleted files.

EDIT:
The installation on an ubuntu system can be done via package system

sudo apt-get install testdisk

To recover lost partitions just start testdisk in a terminal go ahead the menu.

sudo testdisk

To recover deleted files just start photorec in a terminal and you can also use the menu to recover files

sudo photorec

When you see the menu, it is self-explanatory.


USB External Hard drive unplugged but still shows up!

Try running the unmount command with root permissions from the CLI.

Open a Terminal window with alt+t or by searching for "Terminal" in Finder.

Going off the data you provided about the error, it looks like your HDD is mounted at '/media/My Passport'. To unmount it, run sudo unmount "/media/My Passport". Enter your password when prompted.

If it's not mounted at '/media/My Passport', type df and hit enter. A list of the mounted volumes on your system will be displayed. Find the one for your HDD (will likely say something about "My Passport", and the size will be what you expect). Note the last column of that output for your HDD (labeled "Mounted on"). Let's call it /path/to/hdd for this example. Run sudo unmount "/path/to/hdd" to unmount your HDD as root.

I suspect that the second part of your question, regarding plugging it back in, will resolve itself once you unmount your drive properly.


Text editor with coloring to highlight "non-parameters" in conf files?

Emacs does automatic syntax highlighting for .conf files. It's possible you won't like (I don't!) its colors for .conf files, so check https://stackoverflow.com/questions/1076503/change-emacs-syntax-highlighting-colors and you'll be able to change it to your tastes. And it can do it the same way with a GUI or in console mode.

GEdit also does it, but not automatically. Manually set the highlighter (click on "Plain Text" on the status bar, or through View > Highlighter) to awk or sh, and you'll have a similar effect.

I'm just suggesting these two. There are many other editors that will do what you want.


How do I search for a process by name without using grep?

The pgrep command, and its sibling pkill, exists precisely for this purpose:

pgrep firefox will list all processes whose commands match firefox
pgrep -f firefox will list all processes whose entire command lines match firefox
pgrep -x firefox will list all processes whose commands exactly match firefox
... and so on.

And naturally, pgrep will exclude itself from the match, so none of the grep rituals associated with ps | grep are needed.

The other set of tools for this are the pidof and killall commands. These aren't as flexible as pgrep and pkill.

pidof firefox will list processes whose command is firefox


Install the libraries, it should be enough to bypass the error compiler giving you.

sudo apt-get install libncurses5-dev

If the command didn't do the trick, there could be another problem coming somewhere else. Feel free to report back if you found anything else.


That is required to flush old logs. You can disable it, but what I’d recommend you is change the vacuum time:
sudo journalctl --vacuum-time=5d
will delete all logs but retain the last 5 days logs. This way your system never will be sluggish because of the big sized logs.
You’ll notice that a lot of space is freed.
Tell us if it helps.
Oh, you can also setup the the journald, the config file /etc/systemd/journald.conf has some configuration fields:
SystemMaxUse=
SystemKeepFree=
SystemMaxFileSize=
Check man journald.conf for more info.
Cheers!


Just like the error says: createdep is not a program.

Change this:

echo $(createdep)
mkdir createdep

to this:

echo "$createdep"
mkdir "$createdep"

Note that the format string for date can contain regular characters too, so you don't need the "now" variable:

createdep=$(date +"nowt_%H_%M_%S")


If you have a paid app (or game in this case) developed in Unity3D you can submit it via the "MyApps" website. Canonical have people who can assist with the packaging of your game once submitted.

https://myapps.developer.ubuntu.com/dev/apps/


Ubuntu 14.04.02 downloads lts utopic kernel

If you use Ubuntu 14.04, it is normal.

In version 14.04.2 there is linux-generic-lts-utopic kernel meta package by default.

And 3.16 kernel version is indeed the "utopic" line of kernels from 14.10.

You can read about LTS HWE Stack.

But it depends on which point version you installed initially.

If you installed 14.04 or 14.04.1, it has been apdated to 14.04.2, but the kernel major version stays as it was 3.13.


If your goal is to execute a one-line command that:

Removes and recreates the directory ~/Desktop/foo if it already exists.
Just creates the directory ~/Desktop/foo if it does not already exist.

Then you can use:

rm -r ~/Desktop/foo; mkdir ~/Desktop/foo

; is equivalent to a newline, but it lets you execute multiple commands on a single line (i.e., as a "single command").

If the directory you're removing may contain readonly files, you'll need the -f flag to remove them without prompting the user interactively. This is okay, but I do recommend being especially careful with rm -rf .... See man rm for details.
You need the rm command to finish before the mkdir command executes; this is the reason to use ; instead of &. (A command preceding & runs asynchronously in the background.)
You need the mkdir command to run when the rm command succeeds; this is the reason to use ; instead of ||.
You need the mkdir command to run when the rm command fails (usually failure will mean the directory didn't already exist); this is the reason to use ; instead of &&.
The rm command might fail even when the directory already existed, in which case the mkdir command will fail also, but the error messages will make sense and there's probably no need to add a middle step checking for foo's existence before trying to create it.

See 3.2.3 Lists of Commands in the Bash Reference Manual for more information and explanation about the ;, &, ||, and && operators.

As muru suggested (and Rinzwind elaborated), I do recommend you look into rsync to see if it will meet your backup needs. There are some additional useful guides on the rsync documentation page, as well as this Ubuntu rsync guide.

  why mkdir doesn't has this option ?

mkdir creates directories (the "mk" stands for "make"). For it also to recursively delete directories and all the files in them would be bad, because it would violate the principle of least astonishment in a way that would likely lead to data loss.

rmdir doesn't even remove directories that have any (non-directory) files in them. rm has an -r option, which makes sense since rm is expected to remove files (that is its purpose, thus the inherent danger is intuitive and users typically know to be careful when running rm commands).


Package 'mercurial' has no installation candidate, how do I fix it?

As andol suggests, this is likely a result of the Universe repository component being disabled. Searching the Ubuntu package database for mercurial reveals it's in Universe.

One way to enable the Universe repository is to press Ctrl+Alt+F2 and run software-properties-gtk. In the Ubuntu Software tab, under Downloadable from the Internet, make sure the checkbox for Community-maintained Open Source software (universe) is checked. For more information on enabling Universe, see:

How do I enable the "Universe" repository?

Then, to install Mercurial, run:

sudo apt-get update && sudo apt-get install mercurial

mercurial  can also be installed from the Software Center.


Nmcli communicates with Network Manager which is running in the initial network namespace.

You may need another instance of Network Manager and dbus, with some additional mount to keep them separate from the instances running in the initial network namespace. ip ns exec creates a new mount namespace for you.


Can't make intel hd 4000 drivers to work

Do you have the following packages installed?

$ dpkg -l | grep intel | awk '{print $2}'
intel-gpu-tools
libdrm-intel1:amd64
libdrm-intel1:i386
xserver-xorg-video-intel

It's working fine for me, and with some of the compiz effects.

I'm using 13.04 but it worked fine in the 12.10 as well. And I actually had some little issue during the migration but not big deal.


Lubuntu 14.04 shutdown - Firefox not exiting properly at logout/shutdown

Perhaps a workaround:

script for logout:

#!/bin/bash
wmctrl -c firefox && kill -SIGTERM $_LXSESSION_PID

script for shutdown:

#!/bin/bash
wmctrl -c firefox && dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

For more options look at this answer: shutdown/reboot/suspend/hibernate without password


[Taken from Thread: I can't empty the trash as a user]

(Solution posted works in Ubuntu 13.10.)

  The Trash folder is a hidden folder(the folders name begins with a
  period) in your home directory. You can press Ctrl+H in nautilus or
  select Show Hidden Folder from the View menu to list the hidden
  folders.

  You can open nautilus in the .Trash folder:

  gksu nautilus ~/.Trash

  in Hardy Heron the Trash is in ~/.local/share/Trash/files/

  gksu nautilus ~/.local/share/Trash/files/

Select the items you want to delete in the folder.

OR

  You can delete the content of the folder from the terminal:

  sudo rm -fr ~/.Trash/*

  Hardy Heron:

  sudo rm -fr ~/.local/share/Trash/files/*


My web cam does not work on Ubuntu 14.04 LTS

It will work if you do use Cheese webcam application. sometimes the default webcam app doesn't works !
Otherwise your webcam might have any problems for sure ! Ubuntu never had such a trouble with handycam for me !
try using lot of other webcam applications from ubuntu software center !


UPDATE::A Couple things to try :

Let me just make sure, you are Using the Great Britan (GB) Key-map on purpose, as opposed to the US english keyboard layout? What is your preferred language?

In any event, I suspect your language settings are the cause.

You could do $loadkeys en_us to load the usa English keymap,
or $loadkeys gb if you want Great Britain instead.
you should also have a looks at your language settings, to see if they are consistent with your key map settings. Goto settings>language and set your language to your locality.

if that doesnt work, do this:

open up xcfe4 terminal and do $set -vx

then: $who
youll get something like:

~$ who
j0h     :0           2015-03-27 09:25 (:0)
j0h     pts/4        2015-03-27 09:43 (:0.0)

note the terminal you are in pts/4 or something like that.
then, open up and other terminal. you might try xfce-terminal, or something else.
Give your current terminal to this command in the other terminal window

$cat < /dev/pts/4

this window is now listening to the first terminal.
go to the first terminal and hit enter then type the backtick
what does the second terminal show? is it an IO error?

//Original Questions below

This would be a comment, but I want to give an example, and ask some questions.

1.What kind of keyboard is it? Is the keyboard programmable,
  like macros and such?
2.Press ctrl+alt+F2 and login. what happens in an actual shell
  vs the terminal emulator?
3. type the command:$xev and press back tick. what happens?

heres what i get:

$xev
KeyRelease event, serial 36, synthetic NO, window 0x3a00001,
    root 0x28d, subw 0x0, time 156854516, (885,629), root:(888,682),
    state 0x0, keycode 49 (keysym 0x60, grave), same_screen YES,
    XLookupString gives 1 bytes: (60) "`"
    XFilterEvent returns: False

what does your XLookupString say?

4.if you paste in back-ticks, does the command execute? or exit?
what happens whe you run: echo $(`echo date`) ?

5. what is the output of bind -p | grep \`


VLC Ati Radeon 6870 Ubuntu 12.04 image skewed flicker

Same problem with 8 core AMD with a 6970 running at 1375hertz

You can go into AMD config- usually under the settings menu and enable "Tear Free" under the "Display Options" -- you don't need to run the administrator version- ignore the notice.

You can create a launch for amd config by typing gksu amdcccle in the command box rather than using the goofy amd admin launch in the menu.

Even with tear free enabled you loose the tearing but have other problems. Anyway worth a try. Then you can turn off tearing and go down under 3D and make everything "performance"  Still nothing works as well as it should. Very annoying.


Now I have got some easier solution to my own problem. I just used command: hp-check

After that I used the command : hp-doctor

I had to answer some question during the process. And it downloaded all the necessary drivers / plug-ins. That's all.


Is there a wireless controller that can wake Ubuntu, or at least keep it from sleeping?

I would try Caffeine. Go to a terminal by pressing Ctrl+Alt+T and copy-paste:

sudo add-apt-repository ppa:caffeine-developers/ppa
sudo apt-get update
sudo apt-get install caffeine

and then add caffeine-indicator to your startup applications.


GNOME extension dash-to-panel shows error message

Later in Ask Ubuntu, I saw where someone had the same problem.
I pressed ALT+F2, entered r, and then pressed enter & my issue is now fixed.


Automatically connect to a hidden wireless network

For me like @heynnema said using the BSSID worked for me.
I used the following click path to change the BSSID:

on the right top corner, the down right arrow
Then onto WiFi
Wireless network settings
Connect to hidden radio networks
entered / selected the hidden radio network
then on the gear in the row of the hidden network
onto identity
and there is a dropdown for BSSID

If you have an access point that has multiple GHz channels, you can also have multiple BSSIDs here. Depending on what you select, the corresponding channel is used.


Gparted: creating a new logical partition

The answer to your question is, not surprisingly, you can't. This is not a Linux issue, it is the PC architecture.

What you can do, however, is to migrate temporarily the data from one of your partitions either to another one or a second hard drive, delete this partition, create an extended partition in its place and divide it into logical partitions.

  The total data storage space of a PC hard disk can be divided into at most four primary partitions, or alternatively three primary partitions and an extended partition. These partitions are described by 16-byte entries that constitute the Partition Table, located in the master boot record.

Source: Wikipedia


Is it possible to remove systemd completely in Ubuntu 17.10 replacing with sysvinit or upstart or OpenRC

Artix begins to be usable. it was previously called Manjaro/Openrc and it offers both OpenRC & Runit. Beware, you need to be expert. Arch based

Antix & Devuan in Debian derivatives.
There also exists LMDE, but it is poorly supported by Mint.

Last viable alternative: Calculate Linux, but it is Gentoo based, as it will be a  whole new world for you.

A list of non-systemd distributions (revisited) | systemd-free linux community
https://sysdfree.wordpress.com/2018/04/02/135/


Can linux-lowlatency be used with UEFI secure boot?

Secure boot will let the Microsoft signed shim.efi boot, which then runs the Canonical signed grubx64.efi.  Now this Canonical signed grub can run either signed or unsigned (by Canonical) Linux kernels -- some features will not be available on the unsigned kernels at boot, but you probably won't notice.  Last time I tried this was with the 12.10 kernels, so things may have changed.


14.04: No Auto login at User Account settings - I am administrator

Go to System Settings > User Accounts. Make sure to press Lock / Unlock in the upper right corner of the window. Then you can use the switch to enable Automatic-Login.

If you are using home folder encryption auto-login is not reasonable. But you can disable encryption if you follow the steps of the answer to the second linked question.


How about changing Unity decoration shadow for active window. This just example for Ambiance theme (same for Radiance).

Change directory for easy tests

cd /usr/share/themes/Ambiance/

Change decoration (example: blue color)

sudo nano gtk-3.0/apps/unity.css

Original black active shadow

UnityDecoration {
...
    -UnityDecoration-active-shadow-color: rgba (0, 0, 0, 0.75);
    -UnityDecoration-active-shadow-radius: 30px;
    -UnityDecoration-inactive-shadow-color: rgba (0, 0, 0, 0.3);
    -UnityDecoration-inactive-shadow-radius: 25px;
...
}

Now blue active shadow

UnityDecoration {
...
    -UnityDecoration-active-shadow-color: rgba (0, 0, 255, 0.75);
    -UnityDecoration-active-shadow-radius: 30px;
    -UnityDecoration-inactive-shadow-color: rgba (0, 0, 0, 0.3);
    -UnityDecoration-inactive-shadow-radius: 25px;
...
}

You may change size(radius) and transparency too.
Logout login.

As Serg commented below, the above method could be fine for limited number of themes as it needs manual change for each theme. Here is a better way using Compiz.

Install Compiz manager

sudo apt-get install compizconfig-settings-manager

Run it ccsm, go Ubuntu Unity Plugin → Decorations tab
Check Override theme settings then change Active window shadow as you like.


Custom key for Home/End on Ubuntu Gnome 15.10

I solved this with xbindkeys.

Install it:

sudo apt-get install xbindkeys xdotool

then create a default config:

xbindkeys --defaults > ~/.xbindkeysrc

Add this to .xbindkeysrc:

"xdotool key --clearmodifiers Home"
    Release + Alt + Prior

"xdotool key --clearmodifiers End"
    Release + Alt + Next

restart xbindkeys

An alternative is using AutoKey:


Consult `kill -SIGUSR2` within the manual

It is a user-defined signal, so these are not part of a command but can be used by commands as they will be transformed into a value.  As such you will not find them in the manual for kill. Just like you wont find a variable like $USER but you could use it in the kill -u $USER (WARNING: this will kill any process that has your username connected).

You will find SIGUSR1 and SIGUSR2 in signal.h.

  The  header shall define the following macros that are used to refer to the signals that occur in the system. Signals defined here begin with the letters SIG followed by an uppercase letter. The macros shall expand to positive integer constant expressions with type int and distinct values. So the signal names should be macros.


cc1: error: unrecognized command line option '-std=c11'

With the help of David Foerster I found out that the above mentioned error was due to the fact that the Android NDK includes its own C compiler so my NDK was using GCC 4.6 which doesn't support C11. So I updated my NDK to r16 and resulted in the below error.

root@ap-vbox:~/eSpeak/espeak-master# make V=1 apk-release
cd android && ndk-build
/home/apertium/android-ndk-r-16/android-ndk-r16/prebuilt/linux-x86_64/bin/python: 10: /home/apertium/android-ndk-r-16/android-ndk-r16/prebuilt/linux-x86_64/bin/python: Syntax error: word unexpected (expecting ")")
/home/apertium/android-ndk-r-16/android-ndk-r16/prebuilt/linux-x86_64/bin/python: 10: /home/apertium/android-ndk-r-16/android-ndk-r16/prebuilt/linux-x86_64/bin/python: Syntax error: word unexpected (expecting ")")
Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersion 1 in ./AndroidManifest.xml. NDK binaries will *not* be comptible with devices older than android-14. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.
/home/apertium/android-ndk-r-16/android-ndk-r16/prebuilt/linux-x86_64/bin/python: 10: /home/apertium/android-ndk-r-16/android-ndk-r16/prebuilt/linux-x86_64/bin/python: Syntax error: word unexpected (expecting ")")
make[1]: Entering directory `/home/apertium/eSpeak/espeak-master/android'
rm -f ./libs/arm64-v8a/* ./libs/armeabi/* ./libs/armeabi-v7a/* ./libs/mips/* ./libs/mips64/* ./libs/x86/* ./libs/x86_64/*
rm -f ./libs/arm64-v8a/gdbserver ./libs/armeabi/gdbserver ./libs/armeabi-v7a/gdbserver ./libs/mips/gdbserver ./libs/mips64/gdbserver ./libs/x86/gdbserver ./libs/x86_64/gdbserver
rm -f ./libs/arm64-v8a/gdb.setup ./libs/armeabi/gdb.setup ./libs/armeabi-v7a/gdb.setup ./libs/mips/gdb.setup ./libs/mips64/gdb.setup ./libs/x86/gdb.setup ./libs/x86_64/gdb.setup
[mips] Compile        : ttsespeak <= case.c
/home/apertium/android-ndk-r-16/android-ndk-r16/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -MMD -MP -MF ./obj/local/mips/objs/ttsespeak/__/__/src/ucd-tools/src/case.o.d -gcc-toolchain /home/apertium/android-ndk-r-16/android-ndk-r16/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64 -target mipsel-none-linux-android -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -fmessage-length=0 -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes  -g -mips32 -O2 -DNDEBUG  -Ijni/include -Ijni/../../src/ucd-tools/src/include -Ijni/../../src/include -Ijni   -DANDROID -std=c11 -DINCLUDE_KLATT -DINCLUDE_SONIC -D__ANDROID_API__=14 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /home/apertium/android-ndk-r-16/android-ndk-r16/sysroot -isystem /home/apertium/android-ndk-r-16/android-ndk-r16/sysroot/usr/include/mipsel-linux-android -c  jni/../../src/ucd-tools/src/case.c -o ./obj/local/mips/objs/ttsespeak/__/__/src/ucd-tools/src/case.o
/home/apertium/android-ndk-r-16/android-ndk-r16/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: 1: /home/apertium/android-ndk-r-16/android-ndk-r16/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: Syntax error: ")" unexpected
make[1]: *** [obj/local/mips/objs/ttsespeak/__/__/src/ucd-tools/src/case.o] Error 2
make[1]: Leaving directory `/home/apertium/eSpeak/espeak-master/android'
make: *** [jni] Error 2

I was using a virtual box for this. But when I tried to compile the same on an ubuntu installed system there were no issues. Everything went smooth and compiled. So I guess the issue was with my virtual box.


A few things to note:

It seems you are tryimg to install a driver last updated in 2008, which would be written for Linux kernel version 2.6 on a Linux 3.0 system. This will very likely not work.
Practically all source tarballs you download have a configure script you should run befire running make, was there one and did you?
Some googling tells me that the card is supported in ALSA, so compiling and installing manually should not be needed.
If you have working, but bad sound, some people seem to be happier after switching to OSS4 and doing away with PulseAudio.


How do I use a static IP in Ubuntu 17.10 and newer?

Networking is handled by netplan by default in Ubuntu Server 17.10. I suggest that you edit the /etc/netplan/01-netcfg.yaml file to read:

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    ens33:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.0.17/24]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [8.8.8.8,192.168.0.1]

Exit and save your changes by running the command:

sudo netplan apply

Please note and follow the spacing and indentation.

Comment out all the ens33 stanzas in /etc/network/interfaces. Reboot.

Any improvement?


Simple as it is:

You have to create an account at https://minecraft.net/demo (You can use any fantasy email as it doesn't have to be valid for the demo to run once.)
Log in in your game-screen and press the DEMO Button

The game will download the rest it needs to run.


How can I change the cache mode of an USB drive?

You can try remounting the partition with different options, example

sudo mount -o remount,rw,relatime,data=writeback /dev/sda1 /

Another option is to pass the argument via Grub.


Does id_rsa.pub changes if i will install a older version of ubuntu on my machine

To clarify, you are referring to the keys inside the .ssh directory in your home directory.

Installing a system won't touch those keys.  Provided you keep the contents of your entire home directory, your SSH public and private keys in ~/.ssh aren't likely to be replaced by the server.  That said, you should make sure that you keep a backup of these anyways.

Backing up this directory (or its contents) and then putting them back on after a fresh reinstallation will also work - it will use that key and not generate a new one.  (This is why you keep backups of critical data like your SSH keys in a secure place; note that you need both id_rsa and id_rsa.pub, one being the private key and the other being the public key, for key authentication to work with these keys).


Can you look at grub logs and see if there are any errors, also how are you configuring burg on install? I use burg and have never had any trouble. I suspect that it is either a hardware issue with your machine or you are making a mistake with your setup. This is the tutorial i followed that worked for me: http://develop.alpdesigns.ch/pages/ubuntu/brug-and-theme-configuration.html


How to selectively copy details from a file and paste them into a new file?

There are several ways to do this. If your file has some known structure, you can use grep. The grep command searches a file for a specific phrase and returns lines that match that phrase. So if your file looks like

  Name: Sally

  Date of Birth: 7.31.76

  Address: 1234 Main St.

  SSN: 123-45-6789

you can run grep Name info.txt and it will return Name: Sally. You can then redirect the output to another file. So calling

grep Name info.txt > info2.txt

will output the line to the new file info2.txt. If you want to append new lines, you can do

grep Address info.txt >> info2.txt

otherwise the file will be overwritten.

You could also learn to use a command line text editor like vim.


How can I install bleachbit in Ubuntu 12.04 LTS?

You can try installing bleachbit from the command-line,if installing from the Ubuntu software center not working properly.

Open a Terminal window (press Ctrl+Alt+F2; or press Alt+F2, type gnome-terminal, and press Enter). Then run these two commands (type or paste them in and press Enter):

sudo apt-get update
sudo apt-get install bleachbit


How to share the wireless network through terminal?

iwconfig - configure a wireless network interface

see man iwconfig for its usage.


Icons are uncentered in taskbar buttons in Lxpanel

I managed it with Fbpanel. The taskbar configuration contain IconsOnly = true:
Plugin {
    type = taskbar
    config {
        ShowMapped = true
        IconsOnly = true
    }
}


That really doesn't make any sense. An OS update shouldn't completely "kill" hardware. This sounds more like a hardware issue. If I am mislead and someone knows the answer, I would be interested in hearing it.


Linux Container (LXC) image without vmlinux

LXC are a bit different than "traditional" virtual machines.

Rather than emulating hardware they all use the same kernel (i.e. the kernel from your host).

From the lxc introduction page:

  LXC is a userspace interface for the Linux kernel containment features. Through a powerful API and simple tools, it lets Linux users easily create and manage system or application containers.

and more specifically (emphasis mine):

  LXC containers are often considered as something in the middle between a chroot and a full fledged virtual machine. The goal of LXC is to create an environment as close as possible to a standard Linux installation but without the need for a separate kernel.


How do I make Ubuntu go past the splash screen?

If I understand it right then the Desktop Manager tries to start before your NVidia card is setup properly. It is an Ubuntu 10.04 Bug with MacBooks - but could be same problem with your hardware.At least I would give it a try ...

According to the answers here you should try the following:

a) adding some more time for your NVidia card to load

OR

b) editing editing /etc/init/gdm.conf and /etc/init/kdm.conf

More details and what to change exactly and how you will find here:

KDM Bug in Ubuntu with NVidia


Can I install server edition alongside/after a desktop installation?

What's the difference between desktop and server?

1) The first difference is in the CD contents. The "Server" CD avoids including what Ubuntu considers desktop packages (packages like X, Gnome or KDE), but does include server related packages (Apache2, Bind9 and so on).

2) The Ubuntu Server Edition installation process is slightly different from the Desktop Edition. Since by default Ubuntu Server doesn't have a GUI, the process is menu driven, very similar to the Alternate CD installation process.

3) Ubuntu server installs a server-optimized kernel by default.

4) Ubuntu Desktop will receive 3 years of support, while Ubuntu Server will be supported for 5 years.

If I install ubuntu, can I install the server afterwards?

Yes, you can do this by donwloading and burning the server cd and installing it in another partition.

Otherwise, you can just use apt-get to install the packages you need like Apache and Bind9 for example.

Reference: 1.


Certain websites will not work on any browser

Try unplugging your modem or router for 30 seconds so it does a clean restart when you plug it back in. This needs to be done occasionally anyway. Just updating the packages as @RingGamesCompany kindly suggests will not bring the packages up to date. sudo apt update will only tell you if your packages are up to date or what packages need updating. You also need to use sudo apt upgrade to upgrade the packages so the system can bring them up to date. You can do both of these commands with this single command: sudo apt update && sudo apt upgrade -y. Some packages (like browsers) require a [Restart] before the upgrade will take full effect. Plus, a new installation of Ubuntu does not necessarily install all the latest upgrades. So, I suggest you do these commands (they only take seconds) and plan on doing a [Restart] after running them. Your entire system will probably run faster afterwards. Should doing the update, upgrade and [Restart] fail to solve the problem, your modem or router may need more time to warm up after startup. The Ubuntu operating system loads much faster than others and so your modem or router may not have warmed up enough after you system is up and running to connect to all websites. I too use Ubuntu 18.04.5 and occasionally my modem fools me in this way. It looks like the modem is working because the computer loads links I use all the time from the cache. Mine usually takes a few minutes after the system is up and running to warm up enough to load new links. Also, clicking reload/refresh on the page that failed may solve the problem as there may be a failed copy of it in your cache. If so, your computer keeps loading the failed page. Reload/refresh goes to the website and reloads it from scratch and updates the cache. Finally, the trouble may be with the links you are using to go to these websites. Have you checked if the websites you are having trouble with are working for others? If not, copy and paste a link or two here so someone can check them for you. Re-installing a package or Operating System should only be done after all else fails. The side effects may be worse than the problem. Installing a new version of an Operating System should only be done if you want or have to. I hope this solves your problem.


How do I use my second X server instance?

Display :1 is running on "TTY8".

It's not actually a TTY, but Control+Alt+F8 will get you there.


keyboard and mouse no longer works beyond grub after recent update

Reboot your PC, enter on the BIOS Setup, search for "USB legacy support" (ASUS Motherboards you can find on "advanced settings") and set as "enabled". Check your motherboard manual or the vendor website.

I hope it can help you.


Ubuntu installed on MAC has ethernet and WIFI problem

The command that should make wifi work is sudo apt-get install bcmwl-kernel-source and edit question to include results from lspci -nnk | grep -iA2 net and I will see what I can find


Creating a new partition in Ubuntu 14.04

To do it you can use the default GUI application found in your system. from your dash search for disks.

Another great application is to use Gparted. you can install it using

sudo apt-get install gparted

If you want to do it GLI

sudo fdisk /dev/sdX

press m then enter. this will print the help message.

Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Now to create a new partition press n

Partition type:
   p   primary (1 primary, 0 extended, 3 free)
   e   extended

press p for primary or e for extended...

complete the  procedure then when you finish press w to save and exit.


Keyboard shortcuts in Firefox don't work as expected

As originally posted

  The Firefox extension "FoxTab 1.4.5" was responsible for breaking these shortcuts. Disabling it restores the desired functionality.


Web fonts became ugly after installing KDE

You need to edit /home/yourusername/.fonts.conf.

Chances are Hinting has been changed, and you need to change it back to hintslight.

Here's how mine looks:

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>none</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>


Slow SSD + dm-crypt with Luks encryption in Ubuntu 12.10

Your Samsung 840 Pro supports hardware AES encryption. If your laptop BIOS supports the ATA security feature mode set master and user passwords, you're in luck.

By setting the ATA master password in the BIOS, and then doing a secure erase of the drive, the drive firmware should generate new random AES keys. After the secure erase make sure that you've set good ATA master and user passwords. As far as I have been able to establish (see my post here http://vxlabs.com/2012/12/22/ssds-with-usable-built-in-hardware-based-full-disk-encryption/ ) the Samsung also encrypts its AES keys with your ATA password.

This will give you full speed AES encryption, no software required.


What background image do you use on your terminal?


Change first day of the week does not work

To find out, which locale file is Ubuntu using right now:

locale

The output in my case:

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

That means, that my locale is en_US, settings for this locale are saved in file en_us in /usr/share/i18n/locales/ directory.

Make a backup of the file:
sudo cp /usr/share/i18n/locales/en_US /usr/share/i18n/locales/en_US.bak
Edit the en_US file and change first_weekday from 1 (Sunday) to 2
(Monday):
sudo nano /usr/share/i18n/locales/en_US
Then generate locale files:
sudo locale-gen
Login and logout to apply changes:
gnome-session-quit

Credits: Change first day of week to Monday on Ubuntu GNOME calendar


how to make focused buttons/items (by TABbing/arrows) actually visible in xfce4 (Xubuntu) using Adwaita-dark theme?

Considering Adwaita-dark is GTK2 and full of awful hacks (as authors commented themselves in the template), it's best not to use this theme these days until fixed/updated by its developers.

Proposed solution:

Install blackbird theme, it looks almost the same and works flawlessly. Installation is easy, too:

sudo apt install blackbird-gtk-theme

For those who would really really need to use Adwaita-dark, I created an issue on its github: https://github.com/axxapy/Adwaita-dark-gtk2/issues/7

(decision based on reading and following @dk-bose 's comment)


Live boot or installed Linux USB to clean windows

I have used this method to clean Windows machines in the past and I haven't had any issues.

You could try using a tool like ClamAV to check for malware and remove it.
You can download the software here https://www.clamav.net/downloads/production/clamav-0.101.2.tar.gz

Just be sure not to automatically blow away everything that is decected by clamAV because it could be detecting "false positives"


Just remove the line completely. Simply placing a script in /etc/cron.daily will already make it run once a day. You will have to rename it to not contain the .sh suffix to be suitable for the cron.daily directory.

If you do not want to run it at the default time for cron.daily you should store the script elsewhere, e. g. /usr/local/bin/cammedia.sh.

If you plan to do this you should be aware that only root can run cron jobs as another user, for normal users it is not valid.

Do not forget to make the script executable by running chmod +x cammedia.sh in any case.

The output of the script will be e-mailed to you. If that is not possible (and according to the logs in your question it is not), the output will be discarded. There are other ways to get the output. E. g. you could add the following statement to the cammedia script:

logger "cammedia script run"

and you should see something in syslog.

A good read on the subject is https://help.ubuntu.com/community/CronHowto, it will help you get your problem solved.


The instruction on that page is for existing Ubuntu users. You can't do the same from Windows.

If you want to try Ubuntu for the first time, (No Ubuntu installed) you need to use a Windows tool to make your USB disk bootable with Ubuntu. See this section of the help page. It is for Windows users. If you are a MAC user, you should visit this page

  1) What format do I choose for the USB stick?

Assuming you are referring the  filesystem type, I suggest using Fat or Fat32 filesystem. The Windows tool automatically uses this format.

  2) What is Dash? (Will I know when I run the installer?)

Dash is a modern and visually appealing replacement of traditional menu system. It is included in Unity. You can see this in action, if you "Try Ubuntu" before installation using the Live CD/USB.

  3) Can I do this from a Mac or Windows computer? Or only from Ubuntu?

Assuming you are referring to make a bootable USB, You can do this from Mac or Windows. You don't need to have Ubuntu for trying Ubuntu. This doesn't make good sense.

Hope this answer will help.

See this links:

https://help.ubuntu.com/community/GraphicalInstall
Unity
Unity user interface - Wikipedia Article


How to suspend from command line such that screen is locked?

You can do that by using the following:

gnome-screensaver-command --lock && dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend

In a keyboard shortcut you need to put sh -c "<command>" replacing <command> with the command above, like:

sh -c "gnome-screensaver-command --lock && dbus-send --system --print-reply --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend"

If the above command does not work, you can also try using a shell script file (for example suspend_lockscreen.sh). First create the file call the following commands in a console:

cd ~
echo "gnome-screensaver-command --lock" >> suspend_lockscreen.sh
echo "dbus-send --system --print-reply --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend" >> suspend_lockscreen.sh
chmod +x suspend_lockscreen.sh

That will create a file named suspend_lockscreen.sh in the user home folder. Then, in the shortcut just call: ./suspend_lockscreen.sh.

Note: gnome-screensaver-command can be replaced by xscreensaver-command, as pointed out in one comment.


Activation of network connection failed (VLAN)

sudo ip link add link eth0 name enp0s25 type vlan egress 0:7 id 100
sudo ip addr add dev ctlvlan 172.16.32.20/24

Is the problem. The commands are not internally consistent.

First, find adapter name:

 ip link

This will show you the interfaces. Note down the correct name of the interface. Then create vlan

 sudo ip link add link interfacename name vlan100 type vlan id 100

This will create a new interface named vlan100 on interfacename with vlan 100.

Next, set an IP:

sudo ip addr add dev vlan100 172.16.32.20/24

You used different device names for the same thing, with no internal consistency.


How is the default TERM shell variable value set?

To elaborate on what Gilles says, suppose you are remote connecting to your ubuntu from Windows using Putty.

In the putty config options, under Connection->Data there is a setting called terminal-type string. You can set your TERM there and putty instructs SSH to set that environment variable. At some point after that your shell is going to be executed, probably /bin/bash and it gets its environment from its parent process, probably the sshd process.

The same holds true if you ssh from a remote linux box, its just that the local TERM environment variable is passed through via ssh to the remote connection.

In the case of a terminal emulator it is the job of the terminal emulator to set the TERM environment variable. e.g. getty sets TERM to "linux" and forks a shell process (/bin/bash). or gnome-terminal sets TERM to "xterm" and forks a shell process.


How can I install an IP scanner for Ubuntu 16.04 LTS?

Here are two that work reasonably well with Ubuntu 16.04 LTS.

The first one, arp-scan, accomplished the primary goal of ennumerating devices.  The second one, nmap, is much more versatile and gives a quick picture of the services available from each device.

1)  arp-scan

Installation is easy:

sudo apt-get update
sudo apt-get install arp-scan

It has a ton of options, which can be seen here:

sudo arp-scan --help

For basic enumeration, to scan my "local" net, is:

sudo arp-scan -l | sort

Which results in a very basic display which shows each device including IP address, MAC address and manufacturer of the interface.  It also showed "dup" responses for some of the addresses.

2) nmap

sudo apt-get update
sudo apt-get install nmap

To run a Fast scan, which lists devices and shows open ports

nmap -F 192.168.8.1-254

The result is a fairly complete list of devices and open ports.

Here is a handy NMAP Cheat Sheet to see some of the ways to use nmap.

I am surprised neither is installed by default in Ubuntu 16.04, but it is quick and easy to make both of them work.


Question regarding installing after building from source (pros and cons)

Why should one install or not install the built software, what are the pros and cons of it?

Answer: Basically we built the software because of two conditions.
 1. The software is not available from repository.
 2. The need to use specific software version that is not also available from repository.

These two points can be the pro. The cons is that package management or software management will be harder. i.e Uninstall will take lot more time just to make sure all files are deleted.

After installing I realize that not desktop file is made for the software. Is this normal? Must I create a new desktop file every time?

Answer: Custom build software did not put anything on the desktop unless the install spec had instruction to do so. However, the desktop file should be build if its in the build package inside the build directory.


Installation error when trying to install 14.10, 14.04 and 12.04 on my Dell XPS 15Z

just edit the kernel parameter when booting by pressing e in the grub menu.

then edit the line to the following from "quiet splash" to "noapic quiet splash"

then you should add it to your grub file after installation.


How to change themes in qupzilla appimage?

In order to install a new theme in Qupzilla (including for an appimage) you have to put it in ~/.config/qupzilla/themes/.

It seems the theme you mentioned is not available at the same link anymore and there are not many others available. I have found this one and tested for the purpose of this answer, although it is almost identical to the default Linux theme.

Some notes on Qupzilla an its looks:

Properly installed (that is: not just as an appimage) it has great integration with the desktop theme. I was able to see that with the Ubuntu repo version 1.8.9 in Plasma 5.
I am not able to find a way to install later versions, only appimages seem available and they do not have that great theming integration, hence the need for themes. Here they are: https://github.com/QupZilla/qupzilla/wiki/Themes.
2.2.5 is the latest version. After that it will change name to Falkon.


Put sudo in front of apt-key, since that's the command that needs root. You also need - as the filename for apt-key add:

curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -


Intel hd3000 with HDMI output causes USB mouse and keyboard conflicts?

There's some weirdness with Sandybridge graphics right now. I have a Mini-ITX AsRock Z68 board + a 2500k, and I use the iGPU with all three displays connected (VGA monitor + DVI  monitor + HDMI projector), with any one of them disabled at any given time since it can't drive all three at once. I too have some occasional stability issues that are hard to reproduce and aren't documented anywhere (though my wireless KB + mouse are fine).

12.04 was fine, but since going to 12.10 things have been tricky, and I eventually switched to 13.04 sources about a month ago because I wasn't having any luck. I've had the best luck with kernel 3.8.06; hopefully this will get straightened out in the relase version of Raring.


how to dual boot the ubuntu and windows 7 again?(after install ubuntu)

If you have not deleted or somehow damaged your Windows partition, you should be able to see Windows 7 again on your Grub menu if you install and run the famous Boot-Repair utility:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair


Is it possible to check if my wireless network works 100%

mtr

sudo apt-get install mtr
mtr --curses 8.8.8.8

Leave mtr open for a while and you will get good statistics on packet loss.  You should only be interested in packets dropped within your network (before leaving your router/gateway).
Read up on some things that cause interference, such as electronic devices, magnets and big tanks of water.  Water is really a horrible thing to try to pass WiFi through.


Set XDG user directories as symlinks to removable media

Sorry for the extremely late reply, but there are 2 solutions to your problem:

Do system-wide mounting rather than per-user mounting.
Prevent xdg-user-dirs-update from running (and resetting your configuration at each session start up) by adding enabled=False to your user-dirs.conf file as mentioned here.


Is there a way to install Utopia Documents on Ubuntu 16.04 (Xenial Xerus)?

There is a new version of Utopia Documents (3.0) being released that will support Ubuntu Xenial. Once it's accepted by Debian it should appear in the repositories and at https://launchpad.net/ubuntu/xenial/+source/utopia-documents


Try:

sudo apt-get install linux-headers-generic

It will install the correct version of kernel headers.


What is the significance of '*' (star, asterisk) in the file listing results?

If you are just using ls with no arguments, it appears that you are using an alias for ls. To get the same output, I need to use ls -lF. From the ls manpage:

-F, --classify
          append indicator (one of */=>@|) to entries

-l     use a long listing format

The symbols mean the following:

/: directories
@: symbolic links
|: FIFOs
=: sockets
*: executable files

To test if you are using an alias, use alias ls. Mine (which is the Ubuntu default) says:

$ alias ls
alias ls='ls --color=auto'

More information on using aliases can be found here.


tilde and double quote keys don't work on the command line

Check your keyboard layout settings, make sure it's English (US) not English (US, international with dead keys) (assuming you're using US keyboard).

To change it from the command line, enter the following:

$ setxkbmap -layout us

It worked for me.


EFI Stub Loader for Ubuntu 12.10/Windows 8 using rEFInd on Surface Pro

First, I assume that by ".efi stubs" you mean files with .efi extensions on the EFI System Partition (ESP). Those are EFI program files -- most commonly boot loaders, but also sometimes programs and utilities.

If you want to boot Windows and Ubuntu via rEFInd without using GRUB, then the only EFI programs you need to have on the ESP are the Windows boot loader (installed by Windows), rEFInd (refind_x64.efi), and an EFI filesystem driver for whatever filesystem you used with Ubuntu (probably ext4_x64.efi, in the drivers or drivers_x64 subdirectory of the directory that holds refind_x64.efi). The ext4fs driver will enable the EFI, and therefore rEFInd, to read the Linux kernel on the main Linux partition. Linux kernels since version 3.3.0 have included an EFI stub loader, which is a way to turn the Linux kernel into its own boot loader. Thus, with rEFInd and an ext4fs driver on the ESP, rEFInd can launch the Linux kernel directly from a Linux partition. There is one other thing you'll need, though: a /boot/refind_linux.conf file to hold options for Linux. A minimal example looks like this:

"Boot with normal options"   "ro root=/dev/sda8"
"Boot into single-user mode" "ro root=/dev/sda8 single"

This example boots the installation on /dev/sda8. You can add more options to have it present a graphical startup display or for other reasons, but the above (with a modified root= value, in all probability) will work with most systems.

A variant on this approach is to copy your kernel(s) to the ESP (probably in the ESP's EFI/ubuntu directory) and not install a Linux filesystem driver. This has some advantages on some systems, but it requires copying the kernel every time the packaging system updates it. If you do it this way, you'd put refind_linux.conf in the directory on the ESP where you store your kernels.


Do I need lvm password and passeord for my user-account

Yes, with the exception that someone without the key can still see the number and size of files in your home directory.


I advise you a 32bit version, to run on most of the machines, and Lubuntu for the same reason.


wireless network won't connect automatically

Try this, Right click on the network icon -> edit connection -> click wireless tab -> click on your wireless name -> click on edit on the right side, make sure to check connect automatically checkbox


Ubuntu Server 12.04 + Webmin, add hard drives to raid 6

Webmin has nothing for managing RAIDs of any type - only volumes and volume groups through LVM or partitions through parted. Your best bet is to consult the documentation of your RAID setup (hardware or software) for what may be entailed by trying to grow your RAID volume set. Given the distributed parity configuration of RAID 6, it may take a while to add 5 new drives to the set.


Finally I managed to work get the PID of actively focused window with xdotool

xprop -id `xdotool getwindowfocus` | grep '_NET_WM_PID' | grep -oE '[[:digit:]]*$'


Audacity, VLC package dependencies cannot be resolved? 14.04

I trusted or accepted updates from all my extant PPA's, and what do you know, turns out i had blocked some of the ones necessary.


Juju Single still has a single master even HA is enabled

Though, I haven't used HA on 1.2X, Juju 2.0 has a lot of improvements. Juju 2.0 HA and backup features seems pretty solid.

Reference:
- https://jujucharms.com/docs/2.0/controllers-ha
- https://jujucharms.com/docs/2.0/controllers-backup


Ubuntu 20.04 - gnome-terminal not finding custom installed font

As egmont posted, this is a bug in either pango or the nerd fonts. I was able to work around it by installing dconf-editor and setting the property /org/gnome/terminal/legacy/profiles:/:<the_profile_id>/font to the value Inconsolata Nerd Font Regular 16.


Connecting my ubuntu pc to tv and getting netflix to run full screen on the tv?

I think you can fix this by having Netflix closed, switching the main display in "Displays" to the tv, and then opening netflix. It should default to the tv as main display and use it's dimensions/resolution.


In a nutshell,

UEFI is a new technology that replaces BIOS on really new machines. Often these come built-in with Windows 8. I'm assuming you installed Windows 8 yourself and you mentioned legacy BIOS, therefore you need not worry about UEFI. You should be able to install Ubuntu without any hassle.
No, other drives will not be touched unless you tell the installer to do so. But, please keep in mind... Ubuntu (any linux distro for that matter) requires a special drive known as the SWAP, this will be different from what you choose to be your root drive. Think of it as extra memory of sorts. And whatever partition you reserved for ubuntu needs to be reformatted to ext3 or ext4 in order to install.
No, not unless you need to. In order to install ubuntu you may need to change the boot sequence but that will be all that needs to change.
Unless you have separate harddisks, what you are calling 'drives' like E: are actually partitions. these are nothing but chunks of your hard drive given a label. I suggest you read more on partitioning before you choose to manipulate them in any way. As to new drives, when you install Ubuntu on your current E drive by formatting it to ext4 for example, windows will no more recognize it as a drive. so, nothing new added but one will certainly vanish.
simply put, GRUB is a bootloader, meaning it lets you boot into operating systems. When you install Ubuntu, your current bootloader will be replaced with GRUB and everytime you start your machine you will see GRUB show you the choice between Windows and Ubuntu (unless configured otherwise)

Please read the official docs before asking simple questions like those. they are easily answered by a simple web search.


The core problem is a mismatch in the libraries being expected.  An ELFCLASS64 file is designed for 64-bit libraries, not 32-bit.

As you stated in comments, you have 32-bit Ubuntu; this means you have 32bit libraries and cannot execute 64-bit programs.  You will need to install and run 64-bit Ubuntu if your architecture supports it, so that you can have the proper version of the libraries necessary to run Packet Tracer Bridge.

If your system does not support a 64-bit OS then you will either need to see if Packet Tracer Bridge has a 32-bit version, or you will have to replace your computer with one that supports 64-bit operating systems, or you will have to just not use Packet Tracer Bridge.


Unable to upgrade through sudo apt-get upgrade or through Software Center

Try to reinstall libc6-dbg:amd64 by running the below command,

sudo apt-get install --reinstall libc6-dbg:amd64

Then run upgrade command,

sudo apt-get upgrade


Upgraded to Ubuntu 16.04 and now I see dead black screen

During out chat the issue turned out to be a set of spurious Python modules in /usr/local/lib/python2.7 that overshadowed the ones in /usr/lib/python2.7 and prevented the successful installation of the new Python packages and every other package that depends on them. The solution was to

delete the “local” Python modules,

sudo rm -r /usr/local/lib/python2.7

remove some low-priority packages that blocked the upgrade process,

sudo apt-get remove texlive\*

resume the package upgrade process.

sudo apt-get dist-upgrade -f

For good measure we also removed the leftover packages of Ubuntu Trusty's hardware enablement stack:

sudo apt-get autoremove \*-lts-xenial linux-\*-3.\*


Problem installing Lubuntu in UEFI alongside Windows 7

Use a live Ubuntu and an external drive to boot the machine, mount windows partition, backup all windwows data to the external drive, mount Linux data patition, backup all Linux data to external drive. Umount everything and shutdown. Reboot with a Windows media and reinstall windows erasing every partition (this might or might not void Samsung warranty if you have a restore partition). Update the machine to the last windows update build. Turn off machine. Use a Ubuntu media to install Ubuntu and see if you can finish. If you get a successfull dual booting machine restore the backupped data.


xrandr: how to shift output that is lower resolution than the display native resolution within the display area

Work Around

you can achieve this with xrandr with the help of --fb --panning which you missed in your workout..

below are the working commands when I did it my system which are self explanatory..

my Original Screen Resolution is 1366x768 (eDP-1) and I tried to use 1000x768 leaving the blank space on Right

cvt 1000 766
xrandr --newmode BROKEN 62.00  1000 1056 1152 1304  766 769 779 796 -hsync +vsync
xrandr --addmode eDP-1 BROKEN
xrandr --output eDP-1 --fb 1000x766 --panning 1000x766 --mode BROKEN
xrandr --fb 1000x766 --output eDP-1 --mode 1366x768


How to install Flash standalone player on trusty 64-bit

1) You could install Google Chrome which has flash plugin built in
or

2) Use this command to install flash-plugin sudo apt-get install flashplugin-installer
or

3) If you wish to use Chromium or Firefox follow this guide Install Flash

Enable canonical partners in software sources
Run sudo apt-get install adobe-flashplugin


How much space does a default installation of Ubuntu Touch take on mako?

On the 8GB Nexus 4 (mako) I use for development that I've recently reflashed:

phablet@ubuntu-phablet:~$ df -h
Filesystem       Size  Used Avail Use% Mounted on
/dev/mmcblk0p23  5.7G  3.3G  2.5G  58% /
udev             935M  4.0K  935M   1% /dev
tmpfs            188M  660K  187M   1% /run
none             4.0K     0  4.0K   0% /sys/fs/cgroup
none             5.0M     0  5.0M   0% /run/lock
none             936M   72K  936M   1% /run/shm
none             100M   24K  100M   1% /run/user
/dev/mmcblk0p23  5.7G  3.3G  2.5G  58% /data
/dev/mmcblk0p21  828M   95M  734M  12% /system

phablet@ubuntu-phablet:~$ du -hs ~
1.7G    /home/phablet

So if you subtract the 1.7GB of data I have in my home directory, I have about 4.1GB free space after the system image.  So for the 16GB model, you'd probably have around 12GB free to play with.

Those numbers may change a bit as the OS is developed.


Samsung S4 Android is not connecting using Ubuntu 14.04

Just in case it helps someone else, it was the USB cable. Annoyingly the cables I have from Samsung (one for my tablet, one for my phone) seem to be device specific and getting them mixed up will produce the above error and the device will not connect.

Would be nice if the error were a bit more user friendly but at least for now this answer is here to help anyone else that sees this problem.


I successfully disabled IPv6 once putting the following lines in /etc/sysctl.conf:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

also run this command to load changes

sudo sysctl -p


Regular upgrade gives unmet dependency error

Run

sudo dpkg --remove --force-all python3

then

sudo apt-get update
sudo apt-get install python3


No "install Ubuntu" option when booting from USB

I finally got it to work. Here's what I did:

When in BIOS settings I enabled CSM.
Then I restart my laptop and open BIOS settings again.
Now there are several new boot options:

[UEFI] USB drive name
...
USB drive name <------- I chose this, and ubuntu finally loaded

I hope my experience is any help for some people. Thanks.


Startup Disk Creator in Lubuntu 16.04 making USB read-only, no persistent storage option

Questions and answers

Question 1: Is the case that I have described here, same in all 16.04 distros of Ubuntu and derivative flavors? Or is it just Lubuntu that is having this issue? Or is it just my system that's doing this?

Answer 1: Yes, it is the same in standard Ubuntu and all Ubuntu community flavours, introduced with Ubuntu 16.04 LTS.

The old Ubuntu Startup Disk Creator was extracting the content of the iso file and trying to create a boot structure. It was notoriously buggy for years, because it was affected by modifications of the boot system between different versions of Ubuntu.

At the same time all the current Ubuntu iso files are hybrid iso files. It means that they can be used to burn DVD boot disks as well as to clone USB boot drives and memory cards. Cloning is a very simple and reliable process, where every single byte is copied as is from the source to the target.

So a new version of the Startup Disk Creator was developed and introduced with Ubuntu 16.04 LTS. This version is a cloning tool. The resulting USB boot drive will have an iso9660 file partition table and file system, which is read-only. Therefore it is not possible to make a persistent live drive with this method in Ubuntu 18.04 LTS and previous versions.

With Ubuntu 19.10 it is possible to clone a [slightly modified} iso file and add a partition for persistence behind it, because of a new feature alias squashed bug.

See How is it easier to make a persistent live drive with Ubuntu 19.10?.

Question 2: How do I fix this and get the older Startup Disk Creator back?

Answer 2: Don't try to get the old and buggy Startup Disk Creator back.

2.1. Standard case: Live-only

I would recommend that you use the current cloning Ubuntu Startup Disk Creator, when you want a live [live-only] Ubuntu USB drive or simply an installer (to install Ubuntu into another drive). This would be the standard case.

2.2. Persistent live drive

When you want a persistent live drive, you can use another tool, an extracting tool, that creates a partition table and file system(s), that can be mounted with read and write permissions. Or you can do it yourself rather manually, if you want to be independent of tools.

mkusb is a cloning tool in the standard mode, but you can use it to create a persistent live drive. This works with all current Ubuntu and Ubuntu community flavour desktop iso files. The persistent data are stored in a casper-rw partition, limited only by the size of the drive size (available drive space).

If you run standard Ubuntu, you need an extra instruction to get the repository Universe. (Kubuntu, Lubuntu ... Xubuntu have the repository Universe activated automatically.)

sudo add-apt-repository universe  # only for standard Ubuntu

sudo add-apt-repository ppa:mkusb/ppa  # and press Enter
sudo apt-get update
sudo apt-get install mkusb mkusb-nox usb-pack-efi

See the following links

help.ubuntu.com/community/mkusb

help.ubuntu.com/community/mkusb/persistent
Lili can also create a persistent live drive, but with a casper-rw file, maximum size 4 GB (limited by the FAT32 file system).

See this link,

www.linuxliveusb.com/
There are several other tools, that can be used in a similar way as Lili, for example Unetbootin,

unetbootin.github.io/
'Do it yourself'

If you have a 64-bit (alias amd64) version of Ubuntu, you can use a simple extraction method manually. It is possible to add a casper-rw file, maximum size 4 GB (limited by the FAT32 file system).

See these links,

help.ubuntu.com/community/Installation/iso2usb#Do_it_yourself

help.ubuntu.com/community/Installation/iso2usb/diy

Comments in response to 'Edit, 8.Oct.17'

I have checked in my working environment, 16.04 LTS and a testing environment, Artful Aardvark, to become 17.10 during this month (October 2017).

The main partition of a cloned USB drive of Lubuntu 17.10 amd64 will be automounted in both systems.

But nothing will be automounted, when I plug in a corresponding cloned USB drive of Lubuntu 17.10 i386.

$ sudo lsblk -o name,fstype,size,label,mountpoint
NAME   FSTYPE   SIZE LABEL               MOUNTPOINT
sda            55,9G
├─sda1 vfat     480M                     /boot/efi
└─sda2 ext4    55,4G                     /
sdb    iso9660  3,8G Lubuntu 17.10 amd64
├─sdb1 iso9660  918M Lubuntu 17.10 amd64 /media/tester/Lubuntu 17.10 amd64
└─sdb2 vfat     2,3M Lubuntu 17.10 amd64
sdc    iso9660  3,7G Lubuntu 17.10 i386
└─sdc1 iso9660  927M Lubuntu 17.10 i386
sr0            1024M

I don't know why there is a difference between these two cases, but I know that Ubuntu's developers are focusing on the amd64 architecture. They will stop releasing i386 desktop iso files. But Lubuntu and other community flavours intend to continue to maintain and release i386 (32-bit) versions and release i386 iso files.

See this link: What will happen to i386 software since Ubuntu will drop support to i386 ISOs?
There are people (I am one of them), who have tried to make the developers add features or at least information text similar to what you suggest, but we have failed. (I have tried to make them add the feature to restore a USB drive to a standard storage device after using it as a USB boot/install drive, but without luck. Instead I provide it via mkusb and I try hard to make people aware of it.)

I think the developer in charge of the Ubuntu Startup Disk Creator alias usb-creator-gtk wants it as simple as possible to avoid confusion by extra details.

The standard way to communicate with the Ubuntu developers is via bug reports at Launchpad, where you should have (create) a user account,

https://launchpad.net/

You can create a bug report in a running system, that is affected by the bug (or feature request) with the following command

ubuntu-bug <buggy-program-package>

in this case

ubuntu-bug usb-creator-gtk

Please edit your question to add a link, when you have written your bug report. Good luck :-)
Finally, you don't think the removal of previous buggy nature has led to a solution. You'd call this a taking a step back until the matter is resolved. I don't agree with you. Most linux distros provide hybrid iso files and recommend cloning as a standard method to create USB boot drives. So this is a standard method and well established.

It is difficult to maintain extracting tools, that work between all possible combinations of old and new versions of Ubuntu, and I think it is better to make people aware of the cloning method and how to manage a cloned USB pendrive during and after its usage as a USB boot drive.


Thanks for replying. I'd lost track of the question's full location.

I finally got audio working, but, in part, I don't understand why.

The fix was to move the speaker/PC cable to the card's line out jack. When I did that, the Sound tool said I had an analog out port. At that point, everything worked.

But I don't understand why the sound card wasn't marked as having analog out when the jack was a speaker jack (vs. in the line out jack).

I'm happy I got things going, but IMHO tying the board's output options to what's plugged is... not unlike the intake end of a vacuum cleaner switched on.


Yes that is what happens when you run out of memory/swap. On the other hand I would have expected that Ubuntu starts killing random processes, desperately trying not to crash. It is a configuration somewhere in the system, but once out of memory there it is unsafe for your filesystem to keep running. So the most sane thing is to halt the system, trying not to corrupt any (more) data.

You have to figure out why you run out of memory, which application causes this to happen. top or htop can help you with that. htop probably needs to be installed with sudo apt-get install htop. The advantage of htop is that you can easily point and click on the column header you want to sort by.

If you can't eleminate the program, your best bet is to add extra RAM, but that costs money. Your second best bet is increasing swap space, but that costs performance.

As a temporary work around (until next reboot) you can test if this works:

Find a filesystem with a lot of free space. On most default installs /tmp will do df -h /tmp. At least several GB's should be free.
Create a large file (eg. 1M × 2000 = 2GB) dd if=/dev/zero of=/tmp/extra.swap bs=1M count=2000
Initialise the file as swap space mkswap /tmp/extra.swap
Start using the file as swap space sudo swapon /tmp/extra.swap

If this is working for you, you'll have to look into making a more definitive solution out of this.


How can I have latest Dolphin file manager on Ubuntu

Newer Dolphin may be obtained from KDE FlatPak repository:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists kdeapps --from https://distribute.kde.org/kdeapps.flatpakrepo
flatpak install kdeapps org.kde.dolphin

The command above will download org.kde.Platform/x86_64/5.11 (about 332 Mb), org.kde.dolphin/x86_64/master and org.kde.dolphin.Locale/x86_64/master. Logout from your account and login back. Then search in dash for Dolphin and launch it:

(you got Dolphin 18.11.70 running on Ubuntu 18.04 LTS).

Theoretically speaking you can get all KDE applications as FlatPak with help of KDE Plasma Discover or with flatpak install kdeapps org.kde. TabTaby.


Since 16.04, I don't have 'when the lid is closed' options in power settings

I have no idea why great Ubuntu team did not implemented "power off when lid is closed" option. I have laptop with cooler powered trough the USB and my USB port is always ON when laptop is in suspend state, so suspend is not good option for me. Anyway finally I found solution and is working for me (Ubuntu 16.04 with two internal HDD's and external monitor). Maybe it can help a bit others Ubuntu users.

Do as follow:

sudo nano /etc/systemd/logind.conf

and remove # from lines:
HandleLidSwitch=poweroff
HandleLidSwitchDocked=poweroff

Next: Second internal HD must be mounted:

Install disks utility software from software center
Choose iternal disk from GUI (left side)
Select gear icon below "Volumes" and "Edit Mount Options"
Switch "Automatic Mount Options" to OFF
Check "Mount at startup" and "Show in user interface"
Put the name in "Display Name" field (important!!!)
Hit OK and restart the computer


How to solve Bumblebee/Nvidia Optimus issues with kernel 3.4 (works perfectly under 3.2)

The mainline kernels are problematic because those are built with an incompatible toolchain. If you want to have the newer 3.4 kernel in an easy way, grab the .deb files from Ubuntu+1 (Quantal):

http://packages.ubuntu.com/quantal/linux-image-generic
http://packages.ubuntu.com/quantal/linux-headers-generic

You need the linux-image-<version>-generic and linux-headers-<version>-generic packages linked from the above pages. Also, linux-image-extra-<version>-generic seems also to be necessary. Install the headers before the image to allow the bbswitch and nvidia driver to be built correctly.


VirtualBox will not expose the host GPU directly to a guest unless you use PCI passthrough. You could try that, but it is still experimental and might not work.

It would be much easier to use the Linux host directly instead of trying to do this in a VM. If you really need a container for some reason, then try LXC (see the answer to Using GPU from a docker container).