Recommended installation for Asus EEE 1015PEM Netbook

You should install the 32 bit* version of the Ubuntu 10.10 netbook edition. It's fantastic. :-)

If anything doesn't work properly, you can always change your mind later. Or come here and ask a question about it.

If you install Ubuntu, you get the Desktop edition as well - and you can choose to start it instead of Unity when you log in, should it turn out not to work brilliantly for some reason.

There will be a lot of changes in Unity in April 2011, and you will get all of them once you upgrade, but for now, try it out and see if you like it. A lot of people do.

*: There's really no good reason to use 64 bit on this machine. 32 bits will work great.


How can I install the "MBR" on a clean Hard Disk?

The screenshot that you provided shows that two partitions have a boot,esp flag, so something went wrong during the installation. If you had followed the linked Q&A - How to prepare a disk ..., it should have worked properly. Anyway, you are close to get it done and to make it more easy for you, I will provide you with individual instructions containing every important and necessary step.

Boot from the Ubuntu USB installation media (entry with UEFI in front) - select Try Ubuntu
On the Live desktop open GParted, right-click the swap partition (sda3) - click on Swapoff
Click Device in the top menu -> Click Create Partition Table -> Select gpt -> Click on Apply
Click Partition -> Create new Partition -> New size : 1024 MB | File system: fat32
Click Partition -> Create new Partition -> New size: 16384 MB | File system: linux-swap
Click Partition -> Create new Partition -> New size: remaining space | File system: ext4
Click on Apply button (green check mark) in the menu to apply the pending operations
Right-click the first partition (sda1) -> select Manage flags, then mark boot and esp
Close GParted - start the Ubuntu installation process - choose option "Something else"
Select the third partition (sda3) for Ubuntu - set / as mount point | ext4 as file system
Select /dev/sda as Device for boot loader installation ... start the installation process
Once finished shutdown the computer and remove the Ubuntu USB installation media.

Now Ubuntu should boot properly ... if not boot into BIOS and select Ubuntu as the default boot system. Here is a presentation I made which is showing the whole process -> Ubuntu installation
Additional information : What you wiped was not the "MBR" - it was the EFI partition of the disk. The EFI partition size of 1024 MB I suggested allows to add additional boot loaders ... if needed.


Time language not changing in kubuntu 15.10

I'd guess that there are a few LC_* lines in /etc/default/locale which set respective locale category to something else but en_US.UTF-8. One way, if you want your system completely in English, is to edit that file, and remove those lines.


You can have multiple wine prefix on your machine, each running as a separate wine. So you can make a 32 bits prefix and install dotnet2 in it:

This will create a new wineprefix (.wine32 in your home) and configure it as 32 bits:

WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg

You can use it this way combined with winetricks to configure WINEARCH, create the prefix and install dotnet 2.0 in one command:

env WINEARCH=win32 WINEPREFIX=~/.wine32 winetricks dotnet20

or only:

env WINEPREFIX=~/.wine32 winetricks dotnet20

if you already set the WINEARCH and created the WINEPREFIX with the 1st command above.


How to add new hard drive with NTFS partition?

If you're not worried about the files on the new hard drive, why don't you reformat the drive and put a new NTFS partition on it.

Just take out the line from /etc/fstab and restart the computer into Ubuntu. Open something like GParted and delete existing partitions from the hard drive. Then create a new one of type NTFS. And finally, reinsert that line into /etc/fstab (the first one, but with a 0 in the last column instead of a 2:

UUID=48DCF742DCF728B8 /media/windows ntfs defaults 0 0


How to install "System Load Indicator" in ubuntu 16.10

The System Load Indicator can be installed in Ubuntu 16.10 by adding the System Load Indicator stable daily builds PPA:

sudo add-apt-repository ppa:indicator-multiload/stable-daily

sudo apt update

Now you will be able to install it with any GUI package manager / software center or:

sudo apt install indicator-multiload

Please note it should also be available in the official Universe repository and can be installed with the command above without adding the daily PPA.

The reason why it doesn't show up in your software center is still unknown but it's likely to be solved by refreshing the software sources and installing the regular updates.


You can use LVM (see also this guide) or RAID for this. If you want all the space in both drives to correspond to a single partition, LVM is the way to go. You can make an LVM volume group containing both drives, and create a single partition on that.

Since you would want to install Ubuntu on an LVM rather than add an LVM to an already-installed Ubuntu system, you can use the Ubuntu installer to create the LVM, then install Ubuntu on it. The GRUB2 boot loader is fully capable of booting directly into an LVM, so you don't even need a separate /boot partition (as was the old way).

The regular Ubuntu desktop CD (i.e., the live CD) does not have the ability to install Ubuntu on an LVM. Instead, you must use the alternate CD for this. See the "Text-based installation" section on this page. Or, for your convenience:

This is the 32-bit alternate install CD for Ubuntu 12.04 LTS.
This is the 64-bit alternate install CD for Ubuntu 12.04 LTS.

Write this .iso image to a USB flash drive, or burn it to a CD/DVD, the same way you would with the live CD.

The official Ubuntu 12.04 LTS installation guide for the alternate CD may help you during the installation process. (Or skip to the 32-bit installation guide or 64-bit installation guide.)

That guide is not very specific about LVM so I'll try to edit this post again to provide detailed instructions, based on your specific needs (an Ubuntu system installed in a single / partition on an LVM consisting of two drives of unequal storage capacity).


How to make a custom xkb layout with combine unicode symbols?

XKB does not allow you to combine two code points into one single symbol.
You can include U0336 by itself somewhere, and then type b followed by [whatever key you chose].


Differences between ping and ping -c 3 option

ping -c option will specify the number of packets sent and will stop after counting them , here in you example count is 3 .

ping www.google.com

will send infinite packets until you stop it by closing or ctrl+c

For more information about ping options

Ping Options

Or use man ping in terminal .

Try it.


"There is Any way to run 14.04 without upgrading?"

Yes. You will never be forced to upgrade. You can still run Ubuntu 10.04 if you want... (But don't do that)


One trick is to replace each "start of line"
with "start of line, timestamp ":

ps -o user -o pid  -o pmem -o pcpu -u dxd9163 | sed "s#^#$(date +%Y/%m/%d/%H:%M) #"

Usually sed's substitute operator uses a slash as separator (s/…/…/) but since
the timestamp already contains slashes, this won't work. I thus used a different
separator (s#…#…#).


Well, it seems there is a streaming XML option that's a bit different from XSLT (xslt requires the whole document to fit into memory, the streaming xml transformation languages don't).

Instead of re-writing the XSLT, which I had just spent a day preparing, I just spun up an AWS spot instance with 64 GB of ram, gave it some swap, and my 13GB XML consumed just about 65GB of ram under xsltproc.

On this system it ran, but I can now tell you that you won't get much more than a 13GB file out of even Amazon's largest high-memory instance. You'll need to go with another solution such as streaming XML transformations.

As a benchmark for anyone thinking of pushing the envelope. This transformation failed on an instance with 32 GB of RAM and 120G swap partition. It seems like you can swap a few gigs, but not too much before you hit some problem that will crash it.


How do I restore the default Xubuntu boot screen?

Current plymouth theme is configured by a simple symlink in /usr/share/plymouth/themes.

Change the symlink /usr/share/plymouth/themes to point towards /etc/alternatives/default.plymouth

sudo rm /usr/share/plymouth/themes/default.plymouth
sudo ln -s /etc/alternatives/default.plymouth /usr/share/plymouth/themes/default.plymouth

Or run

sudo dpkg-reconfigure plymouth-theme-ubuntu-logo

Assuming you still have that package installed. If not, just reinstall it with

sudo apt install plymouth-theme-ubuntu-logo

This is an answer for ubuntu. I don't know about xubuntu. It should be the same ?


They should be in the launcher, which you can reveal by moving your mouse to the top-left corner or by pressing and holding the Super (Windows) key:

Note, that you can scroll down by moving the cursor to the bottom edge or use the mouse wheel.

If you don't like that behavior, you can install the CompizConfig Settings Manager (package compizconfig-settings-manager) and change the hide mode of the launcher (see this question: How can I configure Unity's launcher auto-hide behavior?).

The focused application will show an arrow on the right side of its icon, while the left side arrows show how many windows are opened: one arrow for one window, two arrows for two windows, and three arrows for more than two windows.


The bookmark icons that appear in the places menu can not be changed
see: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/423890
But, as you can see the user folders like Videos and Pictures do have a different icon, this is because the places menu only looks at the standard::icon: attribute while customizing a icon only changes the metadata::custom-icon: attribute. There is no way that i have found to change the standard::icon: attribute. This attribute, at a "normal" folder, will always be the same.
A workaround that i have used is changing the directory of a user folder (which i don't use) to the directory of the folder of which the icon must be changed, and after that, replacing the icon files of that user folder.
step 1)
Changing the directory of a user folder can be done by editing the file ~/.config/user-dirs.dirs. You can open it by typing the following line in a terminal window:
gedit .config/user-dirs.dirs

Or by navigation to your home folder press Ctrl+H, search for the folder .config and opening the user-dirs.dirs file from there.
The output of that file will be something like this:
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_MUSIC_DIR="$HOME/Music"
XDG_VIDEOS_DIR="$HOME/Videos"
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PICTURES_DIR="$HOME/Pictures"

Note: before you start editing this file make a backup by saving it with a name like user-dirs.dirs.bak
In this file you can change the directory of your user folders. For example, if you want to change the directory for your Public folder to the directory of your Dropbox folder change the line:
XDG_PUBLICSHARE_DIR="$HOME/Public"

to:
XDG_PUBLICSHARE_DIR="$HOME/Dropbox"

(assuming that your Dropbox folder is located in your home directory)
After you have done this you will notice that your Dropbox folder (if you are using the Ambiance theme) will look like this:

And after you bookmarked it by dragging it to your sidebar in nautilus it will appear in your places menu like this:

If this is not the case try refreshing your window by pressing Ctrl+R or F5, if its still not working at that point check the users-dirs.dirs file for any mistakes you could have made.
step 2)
Although this is a very nice icon it's not the one you wanted to use. You have to replace the icons of the user folder with your own. The icons for the user folder public are named "folder-publicshare.svg" and can be found in:
/usr/share/icons/Humanity/places/16/
/usr/share/icons/Humanity/places/22/
/usr/share/icons/Humanity/places/24/
/usr/share/icons/Humanity/places/32/
/usr/share/icons/Humanity/places/48/
/usr/share/icons/Humanity/places/64/

Because i was bored i made a bash script to make this easy for you
#!/bin/bash
i=0
for d in `ls -d $2*/`
do cp $1 $d$3
echo copying $1 to $d$3
let i++
done
echo "The file $3 was copied to a total of $i locations"

You can copy this in a text editor like gedit and save it in your home folder with the name copy.sh or some other name which you like better. Once you have saved it you have to open a terminal window and type:
sudo chmod +x ./copy.sh

This will make the file you just created executable, to replace the icons type:
sudo ./copy.sh /dir/to/icon.png /usr/share/icons/Humanity/places/ folder-publicshare.svg
Replace the first parameter /dir/to/icon.png with the location of your icon, the second parameter is the parent directory of the folders where the icons are stored, the third parameter is the name of the icons that need to be replaced (this parameter is optional if the script is used for a different purpose).
Using this script will also make a copy to the 128 folder where it isn't needed, it will do no harm there but if you want to delete it you can do this by typing the following line in a terminal window:
sudo rm /usr/share/icons/Humanity/places/128/folder-publicshare.svg

After you logged out and and logged in again this will be the result (in Dutch):

As you can see there is another custom icon in my menu named School (it has my School logo on it), this one replaced the user folder Templates (guess no one really uses that folder). The icons for the user folder Templates are named folder-templates.svg and can be found at the same locations as the icons for the user folder public. While replacing these icons i didn't use the bash script that i posted above but i copied them manually because i made six different icons with different resolutions.
The downside on this approach is that you can only customize a total of seven icons and you have to hand in a standard user folder.
Note: Do not change the directory of your Desktop unless you know what you are doing.
I hope this has answered your question, it may look like a lot of work but its done in a minute.


“Require Installation Of Untrusted Packages” while upgrading with the update manager

OK seems I solved it reasonably easily :)

ran

sudo apt-key update

And most of the ubuntu.com errors went so I just then had to do a couple of others manually.

HTH


Ubuntu 12.04 Slow Installs After SSD Upgrade

It seems to be an issue with the drive itself or the firmware. Searching for the drive on the web brings up results with unhappy customers. The only advice I can give is to return the drive and look for a state of the art drive with good customer ratings. Intel is known as the leader when it comes to quality of SSDs and they don't seem to be extremely expensive anymore.


"monitor brightness down" key resets brightness before lowering it

After you installed in terminal with

  sudo apt-get install xrand*

Goto dash-symbol at top of unity-bar (left side)

a) - then type "sys" into the input-line for text -

b) - there you can see the symbol for keyboard click on it -

c) - then you can define the appropriate what-to-do-for-you by hitting
the certain key on your desktop

d) - you can add some code into the desription of your certain
key-to-define-your-wish-to-perform-your-command

e) - by this you can add too the command for to dim xrand the proper values suiting to your screen or to your graphics-card (due to your voltage of your electricity cable at home)

Here is a description about the xrand-command and you only would need to pick out of this the correct display-size of your graphics-card.

http://www.ubuntugeek.com/how-change-display-resolution-settings-using-xrandr.html

Cheers.


My command only works when I run it from terminal. It does not work when I use a launcher. What should I do to fix that?

The launcher is likely treating the entire string as a single command. In your case, everything following adb (... ; ... ; ...) are treated as arguments, not executed as separate commands. To work around the issue, use bash -c.
bash -c "adb kill-server ; adb connect 0.0.0.0:5555 ; scrcpy --prefer-text --serial 0.0.0.0"


Should a 14.04 server iso operate as a live CD?

There is no 'Try Ubuntu' option In server editions, the LiveCD use the GUI since it boots in GUI mode to use the apps and other software inside.
So you have to use the Desktop iso as LiveCd and don't be frighten you can use the desktop iso to do administration tasks, since mostly there is no major difference between desktop and server versions unless the GUI related apps.
What's the difference between desktop and server?
Quoted from Ubuntu docs:

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). Using a Desktop CD with a minimal installation and
installing, for example, apache2 from the network, one can obtain the
exact same result that can be obtained by inserting the Server CD and
installing apache2 from the CD-ROM.
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.
Before 12.04, Ubuntu server installs a server-optimized kernel by default. Since 12.04, there is no difference in kernel between Ubuntu
Desktop and Ubuntu Server since linux-image-server is merged into
linux-image-generic.
For Ubuntu LTS releases before 12.04, the Ubuntu Desktop Edition only receives 3 years of support. This was increased to 5 years in
Ubuntu LTS 12.04 In contrast, all Ubuntu LTS Server Edition releases
are supported for 5 years.


use

chmod +rx favicon.ico

in your var/www/html folder


Try running sudo apt-get install -f. The -f flag tells apt-get to attempt to fix broken dependencies, which often solves this sort of problem.

Source: man apt-get


A hard drive can only contain 4 primary partitions. When I first tried to install 11.10 in a new Dell with Win7 I wanted to have an independent partition for my data --been doing that for many years and has saved me from unimaginable grief! Then I found that the machine came with 3 factory set partitions, one for the MBR, another for the recovery image and the third for the W7 OS. After I had created the data partition I was left with no options.

My solution was to create rescue DVD's from the rescue partition and then delete that (using GParted from my Ubuntu LiveCD (a bootable USB memory actually). Once that was done, I moved Win7 to close the gap as I didn't fancy having some 12GB of unused space between the boot partition and Windows. This took several hours; I went to sleep and left the machine working, next morning that was done.

With that obstacle behind, I could install Ubuntu by creating an empty Ext4 primary partition.

Seeing that you have already 4 partitions, I believe that might be your case.

Please let me know if this helped.


Different print reports between fdisk and parted

From the comments...

Parted shows the partition table is "loop" which is incorrect. It should indicate "msdos".

Backup your data. Lay down a fresh partition table (GPT recommended), create two new partitions (EXT4 recommended), and restore your data.


Nomodeset issue and dual-boot with Win8/14.04 in Zenbook?

Always take a full system back-up before starting. Read this article why.

Yes
Depending on the set-up of your machine's BIOS/UEFI and the setup of Windows 8: maybe


What ended up working was:

sudo apt-get install python=2.7.15~rc1-1

Then, after running apt-cache policy python,

python:
  Installed: 2.7.15~rc1-1
  Candidate: 2.7.15~rc1-1
  Version table:
 *** 2.7.15~rc1-1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

and I could install my package. This had the effect of removing my python3.4 I believe.


How to get bluetooth working on Macbook Pro 6.2

You can get bluetooth support by install the btusb-dkms module from the Mactel PPA:

To add the PPA:

sudo add-apt-repository ppa:mactel-support && sudo apt-get update

Install:

sudo apt-get install btusb-dkms

Bug report
Instructions for how to use PPAs: What are PPAs and how do I use them?


I want to map keypresses onto shortcuts in Lubuntu, but xev's output confuses me

You can accomplish this with the xbindkeys app.  Open a terminal window and type the following:

sudo apt-get install xbindkeys

Once installed you want to create two files in your home directory called:

.xbindkeysrc

This file will hold your configurations for your keybindings

.xbindkeys.noauto

This will just be a blank file but when it exists it keeps the Xserver from starting xbindkeys at boot.  Although we want it to start at boot, we want to start it ourself through Startup Applications.  The reason for this is the Xserver starts it to early in the boot process which sometimes causes our configs that we put in our .xbindkeysrc file not to work.

Now add the following lines to your .xbindkeysrc file

"xscreensaver-command -lock"
c:160

Save the file

Now create a little script to start xbindkeys that we'll put into our Startup Applications:

Open your favorite text editor and either copy and paste or type the following lines to it:

#!/bin/bash

sleep 10
/usr/bin/xbindkeys &

Save it in your home directory as xbstart.sh or whatever you want

Make it executable

chmod 755 xbstart.sh

Now just add that script to your Startup Applications and Reboot.

What happens is when you log in, xbindkeys gets invoked and reads your .xbindkeysrc file and runs in the background.  It constantly monitors your keystrokes and when keycode 160 is pressed it will trap it before the Xserver has a chance to causing it to run xscreensaver-command -lock instead of opening your menu.


ubuntu install expert mode which kernel choose

The following applies to MAAS
https://docs.maas.io/2.1/en/installconfig-nodes-ubuntu-kernels

which lists

general
hardware enablement kernels (where an 18.04 LTS will upgrade and use the 18.10 kernel in time, then 19.04, then 19.10, then finally 20.04 which can be useful for very modern hardware) low
low latency kernels (see following)

More kernel options can be seen via https://help.ubuntu.com/community/UbuntuStudio/RealTimeKernel

  Kernel Types

  -generic kernel - this is the stock kernel that is provided by default in Ubuntu.

  -preempt kernel - this kernel is based on the -generic kernel source tree but is built with different configurations (settings) to reduce
  latency. Also known as a soft real-time kernel.

  -rt kernel - is based on the Ubuntu kernel source tree with Ingo Molnar maintained PREEMPT_RT patch applied to it. Also known as a hard
  real-time kernel.

  -lowlatency kernel - very similar to the -preempt kernel and based on the -generic kernel source tree, but uses a more aggressive
  configuration to further reduce latency. Also known as a soft
  real-time kernel.

  -realtime kernel - is based on the vanilla kernel source tree with Ingo Molnar maintained PREEMPT_RT patch applied to it. Also known as a
  hard real-time kernel.

  Kernel Confusion

  Some confusion persists about the purposes of -lowlatency and
  -realtime kernels.

  The goal of -realtime and -rt (hard real-time) kernels is to achieve
  the lowest possible latency at every cost. In technical slang "hard
  realtime systems should always meet their deadlines". Thus developers
  should use the most advanced programming techniques (sleeping
  spinlocks, PI Mutex, Full preemption, IRQ Threads and others) and
  sacrifice things like reliability, power-saving and throughput. Almost
  all parts of kernel should be analysed to guarantee that right
  behaviour always occurs.

  The goal of -preempt and -lowlatency (soft real-time) kernels is to
  achieve good realtime characteristics, meanwhile offering welcomed
  features like rock-solid reliability, good power-saving features and
  also good throughput. But in this way it can't guarantee lowest
  latency under all conditions.

I listed MAAS as I'm sure will be 3 of the 5 you were offered, I don't recall what the 5 options you mentioned were, but the other reference covers low latency

--

I'll provide links for HWE or Hardware Enablement Stack.  Using HWE gets you the latest kernel (with more features &  kernel modules [drivers]) useful for the latest hardware but not without the [tiny?] loss of stability (primarily they are tested less , esp. in  production)

https://wiki.ubuntu.com/Kernel/LTSEnablementStack
https://wiki.ubuntu.com/Kernel/RollingLTSEnablementStack

In the end it's your choice (you know your hardware, end-use, etc best); but for I'd guess 90+% of us it's the generic kernel.


reconfigure LXD subnet for canonical-kubernetes on Ubuntu 16.04 with LXD

I successfully set the network using the lxc command like this: sudo lxc network set ipv4.address 10.10.10.1/24

Command reference: https://github.com/lxc/lxd/blob/master/doc/networks.md

Relevant Ubuntu blogpost: https://blog.ubuntu.com/2017/02/14/network-management-with-lxd-2-3


vgaswitcheroo not available on cold boot, only after restart

I am not sure whether this is your problem but you definitely need to mount the debugfs:

sudo mount -t debugfs none /sys/kernel/debug/

After that the needed files should hopefully appear.

To make the debugfs visible permanently you have to add an entry to your /etc/fstab that always mounts the debugfs at boot time. Sorry, but I am a  bit lazy to look up the exact line that you would need to put in your /etc/fstab but I hope this helps anyway.


Audio CD's, Data CD's, and DVD's not recognized

Same/similar problem here. Opening the case and replugging the SCSI / power cables has worked to get CDROM working - for the moment - it will invariably stop working in a few hours/days; now I at times lose a HD once the CDROM is back in operation.

My guess is that this may be a POWER problem - i.e., power supply may be too weak to run 3 HDs, CDROM (former configuration which worked) and the new graphics card (CDROM stopped working shortly thereafter but never paid much attention as I hardly use of late).


(this follows on from comments. @DK Bose provided

env | grep XDG_CURRENT_DESKTOP

which confirmed 'Unity' as the DEsktop)

Unity is a Canonical DEsktop that is a drop-in-replacement for gnome with advantages & of course disadvantages; it isn't gnome but uses the same version of GTK+ /Glib so can use gnome apps without disadvantage (no wasted memory etc)

As to tweaking: instead of trying to use 'gnome-tweak-tools' I suggested adding the Unity Tweak Tool

sudo apt install unity-tweak-tool

as it provides far more options for Unity than gnome-tweak-tool.


After upgrade to 14.10 touchpad freezes after a while

I finally found the guilty package.

My laptop is a Dell Latitude E6330 which has a 12.04 ubuntu preinstalled that I kept updgrading periodically until 14.10 (until the touchpad started freezing).

The xinput --list relevant output was

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer            id=4    [slave  pointer  (2)]
⎜   ↳ GlidePoint Virtual Touchpad           id=13   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]

I just solved the problem thanks to the answer to this post How to configure glidepoint driver for touchpad?. I just uninstalled the glidepoint package which, I assume, comes from dell specific repositories http://dell.archive.canonical.com/ which only provides support for LTS versions.

sudo apt-get autoremove glidepoint

After that the touchpad didn't freeze again.

To make sure this kind of problems will not appear again I made a clean install to avoid using packages that might not been updated when upgrading.


users setting will not unlock with password ubuntu 17.10

I understand there is no problem with other programs using administrator privileges? You may try to use other user managment software like KUser (you may install it by any package manager ex. sinaptic) or try to change your user password from terminal and try again:

ROOT:
sudo passwd

Actual user:
passwd


'Me' is actually you the owner of the file. Its not a separate account.

Coming to 'su' you should type

  sudo su

in terminal(ctrl+Alt+T) not just 'su'


Installing ubuntu fails with "??? ???" message

Found workaround:
At first, create ext3 instead of ext4 partitions by GParted. Than format ext3 as ext4. Do not use formatting at all during installation. Works!


Installation from Live USB doesn't find my partitions

Let's take the hard drive out of the equation as the problem.  Do you have another hard drive to try an install with?  If it installs then we'll know it's an issue with the SSD.  Possibly an encrypted hard drive?


To install Gnome 3.10 on Ubuntu 13.04, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

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

I went a ahead and installed Gnome 3.10, just to see if there is any issues with it.  I have installed it on 13.04, and had no problems.  See images bellow.

Source:LinuxG


I think the best thing you can do is search for repair option in ubuntu live-cd/usb. Otherwise go for ubuntu installation.


The following packages have been kept back : google-chrome-stable

Ubuntu 12.04 does not receive updates for Google Chrome, more information you can find here :
The support for Google Chrome on 32-bit Linux systems and Ubuntu 12.04 ended in March 2016.
You should uninstall Google Chrome mainly, because you do not get security updates anymore !

To remove Google Chrome open a terminal and execute :

sudo apt-get purge google-chrome-stable

To remove the Google Chrome repository execute :

sudo rm /etc/apt/sources.list.d/google-chrome.list

To remove all the configuration files delete this folder : /home/user/.config/google-chrome

Check whether there is another Google .list file in the sources.list.d folder and in case there is - remove it as well. Alternatively you can install the chromium-browser, on which the Google Chrome web browser is built or you wait a few days and install the new Ubuntu 16.04.


Move tmp folder from '/' partition to mounted partition (/mnt)

You can bind the /tmp mount point to /mnt/tmp:

sudo mount -B /tmp /mnt/tmp


Error on mounting BTRFS volume on Precise

BTRFS: couldn't mount because of unsupported optional features

This means that this btrfs filesystem was created with new, non-backwards-compatible features that the old Precise kernel did not have when it was released. These "features" are not visible to the user, they are improvements to the on-disk structure of the filesystem.

These features are optional: Trusty can create a btrfs that is readable from Precise (without those features), depending on the parameters that are passed to the mkfs.btrfs program. It seems that the Trusty installer enabled those features, which I think should be reported as a bug against Trusty, since it prevents interoperability.

The numeric code of the features is 60, that means: extended inode references and big metadata. As far as I can say, there is no way to disable extended inode references, thus you cannot make this filesystem readable by older kernels anymore.

To read the files,

open the partition from a Trusty Live DVD (or Saucy? Saucy supports extended inode references, but I don't know about the other feature)
In theory, another option is to update your kernel in Precise with the Saucy one from the Enablement Stack, but that is equivalent to trying Saucy.

To reinstall Trusty so that its partition will be readable by Precise,

either reformat from within Precise (will delete all the contents). Then, when you are at the Trusty installer, choose that partition for / but tell it not to format.
or choose the ext4 filesystem instead of btrfs, in the installer.


How do I find a package that contains a given module?

There's (at least) two options.

Package content search

You can use the package contents search on packages.ubuntu.com, e.g. to search for all packages that contain a file named 'lmnsd_gtls.so'. This is usually is the fastest way, but only works for the official Ubuntu repositories.

apt-file

You can also use apt-file, which allows for the searching of repository file lists.

Install it

sudo apt-get install apt-file
Update the file cache by downloading the repository indexes of all configured repositories.

sudo apt-file update
Search for files, e.g. lmnsd_gtls.so. Note: You can also use full or partial paths in the file name.

apt-file search lmnsd_gtls.so

The last command lists all packages containing lmnds_gtls.so.

rsyslog-gnutls: /usr/lib/rsyslog/lmnsd_gtls.so


Ubuntu 16.04 stuck in login from Parallels desktop access

Have you tried dropping into shell by using ctrl+alt+f3 and then logging in. You can always go back by using ctrl+alt+f1

After you login you might want to check if there is a config issue with your particular user by adding a new one and testing login:

sudo adduser testuser
sudo systemctl reboot


How to enable Ubuntu to read/play Arabic subtitles?

I advise you first to use VLC. To install vlc:

sudo apt-get install vlc

When you open VLC go to Tools → Preferences → Subtitles and OSD and then choose Arabic (windows-1256) in the default encoding.

Now you have just to put the .srt translation file in the same directory of the video  you want to watch


Unable to install ClamAV on 14.04 Ubuntu

Make sure that all repositories are enabled.

sudo add-apt-repository main
sudo add-apt-repository universe
sudo add-apt-repository multiverse
sudo add-apt-repository restricted

Update the sources and install the packages.

sudo apt-get update
sudo apt-get install clamav clamtk


Why am I seeing multiple partitions (EFI Fat 32 & Ext2) in Ubuntu GNOME Disk?

First, there are several documents on EFI-mode booting you may want to read for background information on that subject:

Adam Williamson's blog entry on how EFI works -- This page describes the theory behind EFI-mode booting.
A question and answers on the differences between BIOS and EFI booting on Superuser.com -- This provides the basics of the preceding, but is more concise.
My page on installing Linux on EFI systems -- This page is a more practical introduction to EFI-mode booting than Adam Williamson's blog.

You don't need to read all of those, but at least skimming one or two should help you understand the boot process a lot better.

As to LVM, it does not technically help you when you resize partitions. If anything, it makes resizing partitions harder. What LVM does, though, is that it enables easier management of logical volumes, which take the place of (most) Linux partitions. That is, in a non-LVM setup you might have:

An EFI System Partition (ESP)
An Ubuntu root (/) partition
An Ubuntu /home partition
An Ubuntu /var partition
A Windows C: partition

If you need to resize either of the Ubuntu partitions, or add a disk and use it to increase the size of /home, or do any of many other advanced partition management tasks, you'd need to use risky and time-consuming partition management tools. In particular, you might need to move partitions that you don't want to resize, or move the start point of a partition, which is risky. For instance, if you wanted to shrink /var and increase the size of root (/), you'd need to move the start point of /var (which is slow and dangerous), move /home (which is slow and dangerous), and increase the size of root (/) (which is relatively quick and less risky). Some tasks can't be done at all with this type of setup. With LVM, you would instead have:

An EFI System Partition (ESP)
An Ubuntu /boot partition
An LVM partition (aka "physical volume"), which contains:

An Ubuntu root (/) logical volume
An Ubuntu /home logical volume
An Ubuntu /var partition

A Windows C: partition

The partitions in this case are just as difficult to manipulate as the partitions in the preceding case; but the logical volumes can be easier to manipulate. Shrinking a logical volume is as difficult as shrinking a partition; but if there's space within the LVM partition, you can grow a logical volume very easily, without having to move any other logical volume. For instance, to take space from /var and give it to root (/), you could shrink /var from its end (which is faster and safer than shrinking it from its start) and increase root (/) (which is quick and relatively safe), with no need to touch /home at all. This is much faster and safer than doing the equivalent without LVM, as outlined earlier. The downside is that root (/) will likely then be fragmented, much like a file whose size has increased since its creation. This can degrade performance on conventional spinning-disk hard disks, but is unimportant on SSDs.

You can also add another physical disk and expand a logical volume so that it exists in two (or more!) physical volumes. This makes expanding an existing system with new disk space a snap, and if you have multiple disks when you install the OS, you can create a filesystem, like /home, that should be one big space, so that it's larger than any one disk. (You can do something similar with RAID, but LVM is more flexible in how space can be allocated. RAID has other advantages.)

Thus, LVM does not help you in your current task, since what you want to do is to take space from your LVM partition and give it to a new Windows partition. LVM actually makes that task harder, since you must shrink both one or more logical volumes and the physical volume (LVM partition). LVM might be helpful in the future, though, if/when you add another disk to your setup or if/when you need to adjust the sizes of logical volumes or add new logical volumes.

For more on LVM, see:

The Ubuntu wiki on LVM -- This is a fairly basic introduction to the subject.
This AskUbuntu question and its answers -- This provides several people's comments on the subject.
The Arch Linux wiki page on LVM -- Although it's about Arch, not Ubuntu, this page provides more depth than the preceding pages. Arch and Ubuntu use the same LVM management tools, so the Arch documentation is still at least mostly valid for Ubuntu. (It may differ in some details, though.)
This AskUbuntu question and its answers -- This question sounds like it's similar to what you want to do, so it may be the most direct answer to your question.


Thanks to ubfan1, question is almost a duplicate.
headless metapackage installed perfectly, although it decreased the terminal resolution btw.


Ubuntu Trusty not displaying launcher properly

I suspect the problem could be a quirk in your video card.

I have a older Dell (approximately 9 years old) that I bought used, and on which I have run Ubuntu exclusively for quite a few years. Starting with Ubuntu 12.04 I found the Unity Dash was unusable. (When I clicked the Dash button, the screen would flicker but none of the Dash overlay would appear on the screen, so there was no way to select any icon in the Dash at all.) Back in 12.04 you could login using Unity 2D, which avoided the bug in the video card's firmware. By the time 14.04 was released, Unity 2D was gone, so I knew I wouldn't be able to upgrade my machine if I wanted to use "stock" Ubuntu.

SO I copied Ubuntu 14.04 to a USB stick and carried the machine to a local computer repair shop and asked them for a cheap generic video card (using a different chipset, just to be sure). The folks at the shop installed their video card and I booted from the USB stick to test it. I rejected a bad one, but ultimately got a working card that works fine, and the replacement cost me very little.

Another even cheaper option (if your Dell system works this way) might be to try the Intel video built into the motherboard. On my system, I have to remove a plastic cap blocking the video port and also activate the onboard video in the BIOS.

Nowadays the limited RAM in my old machine (4 GB maximum) has begun to become more of an issue with modern RAM-hungry applications, and there's not as easy a workaround... except that your local computer shop might sell you a four- or five-year-old machine with a more modern upgradeable motherboard and processor.


I have the same issue but only when I select languages: Spanish, Italian, Russian.
On English and French it works perfectly (which are in 1st and 4th position).
As a workaround I put the two languages I use the most in 1st and 4th position, and for the rest I use ALT + F1 , that works in the same way...
Hope the information helps.


Lubuntu equivalent for gnome-system-monitor

You can install the gnome-system-monitor on Lubuntu:

sudo apt-get install gnome-system-monitor

If you are looking for a lightweight alternative  you can use Conky:

sudo add-apt-repository ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install conky-manager

More possibilities you can find here http://www.upubuntu.com/2012/06/list-of-best-system-monitoring.html


How to get rid of orange or yellow page, after installing 16.04?

This just happened to me today and seems to happen about once a month.

In my ~/.bashrc I've created a function called xreset which I can blindly type after opening a terminal with Ctrl+Alt+T:

xreset () {

    # Reset xrandr to normal, first use: xrandr | grep " connected "
    # HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1107mm x 623mm
    # eDP-1-1 connected primary 1920x1080+3840+2160 (normal left inverted right x axis y axis) 382mm x 215mm
    # DP-1-1 connected 3840x2160+1920+0 (normal left inverted right x axis y axis) 1600mm x 900mm
    xrandr --output HDMI-0  --mode 1920x1080 --pos 0x0       --rotate normal \
           --output eDP-1-1 --mode 1920x1080 --pos 3840x2160 --rotate normal \
           --output DP-1-1  --mode 3840x2160 --pos 1920x0    --rotate normal

} # xreset

This script is also handy the odd time when monitor positions get mixed up in Ubuntu.

For your own version first type xrandr | grep " connected" to get your setup:

$ xrandr | grep " connected"
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1107mm x 623mm
eDP-1-1 connected primary 1920x1080+3840+2160 (normal left inverted right x axis y axis) 382mm x 215mm
DP-1-1 connected 3840x2160+1920+0 (normal left inverted right x axis y axis) 1600mm x 900mm

For simplicity sake lets assume you only have one 1920x1080 monitor positioned at x=0 and y=0 called HDMI-0 above. Edit your ~/.bashrc and insert these lines:

xreset () {
    xrandr --output HDMI-0  --mode 1920x1080 --pos 0x0       --rotate normal
}

Now the command (technically called a function) is available the next time you open a terminal. To make it available in the currently opened terminal type . ~/.bashrc. If you are already in the ~ directory (your home) you can simply type . .bashrc (note the space after first ".").


If you meant to ask this, try:

sudo dpkg-reconfigure -phigh xserver-xorg


How do I print a batch of word files in a directory?

Create file in ~/.gnome2/nautilus-scripts and name it 'Print selected' or however you want. Copy paste this into it:

#!/bin/bash
for i in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
do
  lpr $i
done

Make it executable, restart Nautilus. Now you'll be able to print selected file(s) with right clicking the selection and choosing 'Print selected' from Scripts menu.


Blank screen when accessing tty. Processes are dead on Ubuntu 19.10

Hit Enter to wake up the agetty instance.


LUKS LVM device mapped by UUID instead of e.g. sda5_crypt

It seems like the root of this problem is using the 16.04 as a rescue CD to unlock/mount/chroot/fix packages/update-initramfs.

If you unlock the LUKS device in the boot CD's unity, it happens to call cryptsetup with the UUID.  /usr/share/initramfs-tools/hooks/cryptopen then fails to understand the slightly different naming in /etc/crypttab and decides you don't have a root device w/ LUKS.

The fix is to once again boot into the rescue CD, don't double-click the device in the unity launcher. Run cryptsetup -v lukeOpen /dev/sda5 sda5_crypt and proceed with the same mount/chroot/update-initramfs dance.


Installed Iso for amd instead of Intel iso

You can download image files here.

The ones with amd64 in the name are the 64 bit versions. It does not mean they are only for AMD chipsets.

The ones with i386 in the name are the 32 bit versions.

There are no versions specifically for AMD and/or Intel chipsets.  Just 32 and 64 bit.  Also divided into desktop and server versions (you want desktop).

The naming is a bit confusing when you first encounter it.


host not found in upstream "freenas.domain.de" seems pretty specific.

can you ping freenas.domain.de?  I cannot from a browser.

If freenas.domain.de does exist you need to find the IP and put it in /etc/hosts


You could skip most of this, and simply use password aging to set up a passwordless login that requires a change of password at first login. See man chage, and this explanation of password aging. /usr/bin/chage is in the passwd package on my Ubuntu 11.10. This is another good explanation.


Step by step instruction for installing Illustrator in Ubuntu 14.04

you can use playonlinux software for run Adobe software or other soft on Linux [EX : ubuntu]

softwer link : playonlinux

tutorial : youtube


which linux configuration is used my my system?

Using the System Monitor is the closest I can think of to see what your system is running.
For example, Gnome, KDE, ect.. all show up in the apps list. If you want details about your hardware, click the menu button (Gear, top right), then "about this computer".


Adding the following codes to /etc/grub.d/40_custom file worked fine for me:

menuentry "OS X" {
    insmod hfsplus
    search --set=root --file /System/Library/CoreServices/boot.efi
    chainloader /System/Library/CoreServices/boot.efi
}

and then running

sudo grub-mkconfig -o /boot/grub/grub.cfg

Tested on iMac 17,1 (Macbook retina late 2015), Ubuntu 16.04 LTS, Mac OS El Captain


Does changing the theme improve system performance?

It is certainly possible, some GTK engines/themes render faster than others.

You can test this yourself using the benchmarking software GtkPerf.

Install the package gtkperf

sudo apt-get install gtkperf

Open it Applications ➜ System Tools ➜ GtkPerf:

Click Start and sit back while it does its tests:

The results will be listed in the first tab.
Switch to a different theme and then run it again. Compare the results with the first theme. Personally, I ran this test on Elementary and Ambiance, and the former ran the test about 2 seconds faster, your results may vary.


CTRL-a and CTRL-e map incorrectly in tmux

After making the following changes to my dot files, I was able to use emacs style key bindings also inside a tmux session.

# .zshrc
bindkey -e

# .tmux.conf
set -g mode-keys emacs
set -g status-keys emacs

This answer on StackOverflow helped me solve my issue.


That looks very much like a known bug.

In Post #77 they mention a workaround.


Huawei e303c data-card not working for Ubuntu 11.04?

I encountered the same problem. Earlier the datacard was working fine with Ubuntu 12.04, without installing any software. But as soon as I installed the linux drivers which were bundled with the device, it stopped working.

After a lot of searching, and digging into the install script, I found a simple solution. Run the following commands in the terminal, to get Huawei E303c working again:

sudo apt-get remove usb-modeswitch usb-modeswitch-data
sudo apt-get install usb-modeswitch

These commands will reinstall usb-modeswitch. Actually, the whole problem arises because Huawei drivers modify the usb-modeswitch data files, reinstalling them will solve the issue.


I want to change the browser used for opening links

See this answer by Severo Raz to this question:

How to set Google Chrome as the default browser?

  You should have in ~/.local/share/applications/mimeapps.list
  file the following lines:

text/html=google-chrome.desktop
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/about=google-chrome.desktop
x-scheme-handler/unknown=google-chrome.desktop

  Make sure these lines are under either the [Default Applications] or
  [Added Associations] section.

  And of course, you need google-chrome installed such that
  google-chrome.desktop is either located at /usr/share/applications/,
  /usr/local/share/applications/ or ~/.local/share/applications/.


Will there be an option in the GUI to change the week-starting day in Unity?

You are looking for a locale override for the start of week feature of your locale.
As you mention, Evolution provides such an override.

The gtk+ library no longer provides a way to override the locale information for the start of the week, http://library.gnome.org/devel/gtk/2.21/GtkCalendar.html#GtkCalendarDisplayOptions

GTK_CALENDAR_WEEK_START_MONDAY
    Since GTK+ 2.4, this option is deprecated and ignored by GTK+.
    The information on which day the calendar week starts is derived
    from the locale.

Adapting your current locale is not a difficult task, and you may have to go through this venue to solve the problem. That is, either change your locale to, let's say, en_US (start of week is Sunday) or modify your existing locale.

To modify your locale

gksudo gedit /usr/share/i18n/locales/en_GB

and change the values for first_weekday and first_workday. Sunday is 1, Monday is 2, etc.
Then, regenerate the locales with

sudo locale-gen

and finally logout and then login again for the changes to take effect.

Note that if there are any updates of the locales package and you install them, you have to apply the above changes again.


Sounds like you're looking for a private cloud type offering... something like ownCloud or Kolab would do the trick.


How do I enable hardware accelerated video in VLC with Intel HD 4000 GPU?

VA-API (Hardware Acceleration For Intel )

Is there a power saving application similar to Jupiter? check my answer for full detail
for Intel GPUs (for Intel HD Graphics as well as G45 and later):
 sudo apt-get install i965-va-driver libva-intel-vaapi-driver vainfo

Configuration

VLC
Its in Tools > Preferences > Input & Codecs > Enable Use GPU Accelerated decoding

How to correctly enable/test VA-API on Intel Sandy Bridge?
 vlc --ffmpeg-hw -v

Check the line
 [0x7fd018c02d38] avcodec decoder: Using VA API version 0.32 for hardware decoding.


Your viewer use Active X. You need a bowser that supports that, typicaly IE.

Try this http://www.tatanka.com.br/ies4linux/page/Main_Page

Or a VM that runs IE, (a bit of a pain)


from sklearn.matrics import confusion_matrix ImportError: No module named matrics

The correct command (metrics not matrics) to import confusion_matrix is:

from sklearn.metrics import confusion_matrix


Unable to boot 12.04 after install on 3TB drive

I think that it is installing correctly, but many BIOS do not support hard drives above the size of 2TB. I would check the website for the motherboard manufacture, and see if it is compatible with large Hard Drives. Then update the BIOS if an update is available. If not, you might have to call customer support for your motherboard manufacturer. They MIGHT be able to help. It is worth a try.

Good Luck,
Brooks Rady


Ubuntu 20.04 freeze on different videoconferencing tools

From the logs you've presented, you are using the "nouveau" graphics driver, which will be setup by default if you are using Nvidia graphics cards.
I am using the proprietary NVIDIA drivers, they work better than the nouveau drivers, especially when it comes to performance.
So go into "Activities" and search for "Software & Updates"

More infos here
A Thread on reddit confirms, that your card should work the nvidia drivers.
Also make sure that you are using the "Ubuntu" Session and not the "Ubuntu Wayland" Session. You can set that up before logging in:


How do I allow read access to the guest user for a NTFS secondary drive?

Open /etc/apparmor.d/abstractions/lightdm for editing and find these lines:

  owner /{,run/}media/ r,
  owner /{,run/}media/** rmwlixk,  # we want access to USB sticks and the like

I think that dropping the owner part from those lines will make a difference (after next reboot). Note, though, that it means that you give the guest users access to all mounted devices, so you need to decide if that matters in your case.

Edit:

Also take a look here. It looks like the gid of the guests group needs to be included in the mount options.


apt-get download package throws error 404 Not found

Run

sudo apt-get update

(with sudo) to make sure the package list is up to date.

Then use just

apt-get download ros-kinetic-desktop

(without sudo)

If you use sudo then apt-get will download the file not as root but user _apt for security reasons. As _apt doesn't have write permission in home/sam/ you get this error.


error while loading shared libraries: libpng12.so.0: cannot open
  shared object file: No such file or directory

Solution : Download the old Ubuntu 16* package libpng12-0 http://de.archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb

.... and install the package

sudo gdebi Downloads/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb


simply blocked in the end RFC 1918 in iptables. Worked like a charm


Apt-get remove python ~150Mb / apt-get install python 687kb

The command

sudo apt-get remove python

removed the package python and any package that depends on it. That's a lot of packages, and it most likely broke parts of your system.

The command

sudo apt-get install python

just installs the package python but not all the other packages that got removed.

You can see the list of all removed packages in the file /var/log/apt/history.log.

With the command

sudo apt-get install --reinstall ubuntu-desktop

you can install all packages belonging to the default installation. Replace ubuntu-desktop with kubuntu-desktop, xubuntu-desktop or whatever flavour you are using.


Space characters are used as delimiter characters between separate words in bash. You got the error wine: cannot find L"C:\\windows\\system32\\Counter.exe" because each space character in file name needs to be escaped by a preceding backslash character \ or else the file name that contains blank spaces must be enclosed in quote characters in order for it to be parsed as a single file name.

Change directories using the cd command to the directory that contains the Counter Strike Source.exe file so that Counter Strike Source.exe can be run by wine without needing to type the full path to it. Enclose the string Counter Strike Source.exe in a pair of quote characters so that it will be evaluated as a single word instead of three separate words like this:

wine 'Counter Strike Source.exe'


You can change your reps from /etc/apt/sources.list. change http://ir.archi... to something else like http://de.archi.... Then sudo apt-get update :)

You can use use apt-get with proxyfier

PS: CloneZilla might be a better option.
PPS: Remastersys is no longer supported, actually-. There is a new project, Relinux, that aims to be better than Remastersys ever was, while allowing you to do the same thing (remaster your system). See this blog for full details: https://relinuxkit.wordpress.com/


Do you start /usr/bin/google-chrome-stable & or without ampersand? Chrome is too smart to not end when its window is closed; it still keeps 8-10 processes for some reason. Maybe performance, maybe spying on us for NSA :)

Use & at the end, it will create background process. Also ignore its output, that's just verbose and not expected anyone to actually pay ATTENTION.


Troubleshooting an Ubuntu kernel crash from an unknown disk issue

The ^@ characters that you see in /var/log/syslog are a byproduct of the kernel panic.

The sdb1 errors may come from a flash drive, phone, or external HDD/SSD, that's connected to a USB port, or from an incorrect entry in /etc/fstab.

For the swap space problem, edit your question and show me free -h and cat /etc/fstab and sudo blkid and sudo fdisk -l.


Trying to understand code in group project

base64 /dev/urandom | head -n 700 > NewFile.txt

This command will write the output of your command into 'NewFile.txt'.
Explaination:
The ">" is used to route the output of an command to a file.
Eg.
echo "Hello There" > myFile.txt

Creates/Overwrites 'myFile.txt' in current working directory.

Similarly double ">",
echo "Hello There" >> myFile.txt

Creates/Appends 'myFile.txt' in current working directory.


xrdp+xfce to install virtual machines in KVM - keyboard does not work

I ran into same issue myself, open virtual machine manager, go to edit > preferences > New VM.  For graphics type change from systems default (spice) to VNC.  After doing this you should be able to type in your VM.


Unity tweak tool: how to disable window switching shortcuts?

Normally if you press the  Backspace key it will accept that as a null input and disable the shortcut.


Make sure you have the Apache module installed:

sudo apt install libapache2-mod-php7.0

I had the same problem for a while, but just fixed installing that one.


Shell tweak to show current path in addition

the '~' at the end IS your current path. :)


There is no xserver-xorg-hwe-20.04. Graphical stack is upgraded as other packages.
To get the 5.8 kernel, you need only
sudo apt install linux-generic-hwe-20.04


OpenVPN server: how to tell if server is listening/working?

I got OpenVPN working.  To answer my question:

There should be a server running like this:

$ ps auxww | grep openvpn
root       536  0.0  0.5  35672  5108 ?        Ss   00:47   0:00 /usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/server.conf --writepid /run/openvpn/server.pid

In my case there wasn't due to a misconfiguration.  It's fairly obvious, but for the record: to find openvpn problems in the syslog:

sudo service openvpn stop
sudo service openvpn start
sudo tail /var/log/syslog


Make sure your /etc/apt/sources.list file looks like this:

deb http://ua.archive.ubuntu.com/ubuntu eoan main restricted
deb http://ua.archive.ubuntu.com/ubuntu eoan-updates main restricted
deb http://ua.archive.ubuntu.com/ubuntu eoan universe
deb http://ua.archive.ubuntu.com/ubuntu eoan-updates universe
deb http://ua.archive.ubuntu.com/ubuntu eoan multiverse
deb http://ua.archive.ubuntu.com/ubuntu eoan-updates multiverse
deb http://ua.archive.ubuntu.com/ubuntu eoan-backports main restricted universe multiverse
deb http://ua.archive.ubuntu.com/ubuntu eoan-security main restricted
deb http://ua.archive.ubuntu.com/ubuntu eoan-security universe
deb http://ua.archive.ubuntu.com/ubuntu eoan-security multiverse

I do not have issues with sudo apt install texlive-extra-utils command on 19.10.

source.list


Mobile broadband connects to 3G after selecting 2G in Ubuntu 14.04

To fully control your modem, best is to install minicom by using the following command:

sudo apt-get install minicom

then look which device your modem is using by:

ls /dev/ttyUSB*

and configuring minicom by:

sudo minicom -s

and selecting serial port setupEnter and entering the ttyUSBx you found earlier where x is your modem.  Then save the set-up and exit.

Now you're ready to communicate directly to your modem...  to do this start minicom by executing:

minicom

and type ATEnter.  If the modem is ready and working, it should respond with OK.  If that does not work, go back to configuring minicom and change the BAUD rate until it works. (look up the maximum BAUD rate of your modem in its manual)

The full Huawei AT command set can be found in this document.


1) Open VLC media player.

2) Click on Tools and select Preferences… .

3) mark "All" under "Show settings" in the bottom left corner

4) Expand Video and click on Output modules. Note that DON’T expand Output modules, just click on it.

5) Set Video output module to “OpenGL” or another setting you may want

Note: These steps are for V1.0.6 (Goldeneye) but I'm sure they'll be similar for other versions as well.


in this case, simply mv filename path/to/somewhere, but in general, you probably need an intro to basic shell stuff. This looks reasonable:

http://linuxcommand.org/learning_the_shell.php

And mv and friends particular:

http://linuxcommand.org/lts0050.php


Did you check for pending updates?
Also after checking for updates post installation restart and check for additional drivers.

You can do that in "Software & Updates" -> "Additional Drivers".
I prefer latest proprietary,tested.

Disconnect all external monitors and TV's.
After install reboot to be sure that the driver and driver version works on your system.
Then you can connect the external display. Sometimes you can have problems on boot, but with monitor to work when you disconnect and connect the display cable.


Install Eclipse Mars PHP and C++ on Ubuntu 15.10

a) Does C++ and PHP can be installed in the same folder?

It is possible but you should use different sub-folders for the C++ and PHP distribution.

  b) Is the /opt the correct place to install it - considering every user shall use eclipse?

Yes - this is the right place. But read point a)

  c) What are the correct steps to install both packages of Eclipse?

The Eclipse installer is a good choice. Read this for installation steps and this for doing it manually with two different Eclipse distributions.

  d) What is wrong with the installation?

If you did not upgrade the installer before installing and did not choose the expert mode of the installer and started the installer with sudo privileges the installer uses /root (if you do not change this explicit).

  e) Is there an apt-get install command to install Eclipse Mars 4.5 on Ubuntu 15.10 ?

No - the Mars release has no PPA and does not exist in a Ubuntu repository.

  f) How can I fix my installation to get Eclipse running ?

Move the plugin folder from the root folder to the correct place in /opt/eclipse and correct the permissions. The folder and its content should be readable by all users. But before you do that, read the last part of the answer...

Remove the symbolic link in /usr/bin, use different desktop files, see the linked answers below.
Remove the Eclipse installation in /opt.
Remove the /root/.p2 folder. Nothing of any Eclipse distribution should be found there.
Read this and this to become a feeling for the installation
Use the expert mode in the Eclipse installer.
Use different workspaces for PHP, C++, ... after the first start of the different Eclipse distribution.
If it does not work perfectly remove everything and restart. It is important that the installation works perfectly to avoid problems when using Eclipse later.


No wireless drivers installed? how do i install them?

Try navigating to:

  System Settings > Software & Updates

Then click on the aditional drivers tab to see if any proprietary drivers are displayed. If they are you can enable them which should hopefully solve your wireless issues. You may need to be connected to your router via an ethernet cable though, in order to download the driver.


Safety of software installation from source code

Go to the package's page on packages.ubuntu.com and click on the "homepage" link. This will take you to the package's homepage, which should direct you to its official source.


Can't get unity to work on virtualbox ubuntu 11.10/12.04b guest

I have installed both Ubuntu 11.10 and 12.04 it doesn't need any additional settings as far as I recollect. So now the question is that have you tried the same ISO installer some where else. I doubt if the installer itself is not able to install required packages. Or try to update the system if you have not done it yet.


The -R option will run that command on each and every file/folder it finds below your current folder.
run chmod go-w -R from wherever you ran that command for safety; and stop other users/groups re-writting any files that don't belong to them.
In most cases this is OK but you may have to edit specific files if you have problems, I just hope you didn't run it from /

-R is dangerous. see man chmod for options or here


Why does DEFAULT INCOMING DENY not stop Firefox from working?

Actually, incoming connections are only classified as connections that originate from without your network. Firefox starts a connection from within your network, so it doesn't count as an "incoming connection".

If you want to disable internet just take the interface you are using down:

sudo ifconfig <interface> down

You can find <interface> from a plain ifconfig:

ifconfig

If you're using ethernet it will be something similar to eth followed by a number. If you're using wireless it is usually either wlan followed by a number.


How to remove Grub Loader Screen (pop ups durin each boot!)

This is no Linux issue, but results from UEFI. The UEFI boot record on your disk remembers the old boot information. Go to your BIOS and check the settings – there must be a section where you can disable all the old entries.


GRUB2 problem "/boot/grub/grubenv not found"

A detailed file-by-file investigation could probably fix this problem with precision. That requires a great deal of expertise, though. Running the Boot Info Script, posting the RESULTS.txt file to a pastebin site, and posting the URL to your document here can get you started down this path; however, this will be a tedious process and there's no guarantee you'll find a solution.

Three other relatively easy options come to mind:

Re-install Ubuntu and hope that whatever created the problem doesn't recur. This is a reasonable course of action if this is a fresh install; however, if you'd previously been booting and it's suddenly failed, you presumably have personal data files that you don't want to risk in this way. (It's possible to re-install without damaging your personal files, but there are too many ways in which this can go wrong for me to blithely suggest that you attempt it.)
Run the Boot Repair tool on your computer. This tool analyzes your installation and attempts to repair Ubuntu boot problems automatically. It often succeeds, but its success rate is not 100%. If you can't boot at all right now, it's unlikely you'll make matters worse; but if you can boot another OS in some way, there's a slim chance that Boot Repair will interfere with that boot.
You've included the UEFI tag. If you're booting via EFI, or even if you've got an EFI firmware but are booting in BIOS/CSM/legacy mode, you can download and prepare the CD-R or USB flash drive version of my rEFInd boot manager. If Secure Boot is disabled, you should then be able to boot rEFInd, and it should enable you to start Ubuntu. You can then either attempt to repair your GRUB installation (by re-installing the GRUB package, doing a sudo update-grub, or otherwise analyzing and fixing the problem) or install the rEFInd PPA or Debian package to bypass GRUB and its current problem and use rEFInd instead. This approach is unlikely to create new problems, since it involves making no changes to your hard disk until you've already successfully booted Ubuntu; but it applies only to EFI-based computers, and even then there are a number of situations in which it won't work.

None of these approaches is guaranteed to work, but there's a good chance that one of them will help you out.


My computer may have been compromised, what should I do?

As for the possible hard disk hack:

Re-flash your BIOS
Buy a new, minimal USB stick. Boot from that.
Use full-disk encryption for /.
The usual "change all logins" routine.

That should cover any possible hard disk exploit scenario.

What really worries me though, are the Anti-theft and Management features added to several recent motherboards. Some hardware vendors have the option of allowing the user to permanently disable these features while some... do not.

I recommend you check whether your motherboard has these remote management features and (if possible) if they have been activated. Imagine if the remote attacker got his hands on hardware based remote management capability...


How can I know if my pc has the right drivers?

Generally speaking Intel drivers Just Work out of the box. Here are some things you can do to help diagnose the problem. In System -> Administration -> System Testing you can run the hardware tester:

From this menu you can run just the test you need for video (or you can run them all and submit them, which would submit your hardware information)

The Ubuntu X team has a whole set of pages on how to debug your problem, it sounds like the page for Intel Performance Problems might be a good place to start.


How to wipe a hard disk completely so that no data recovery tools can retrieve anything?

I use shred when selling old hard drives, use man shred for more information:

shred -vzn 0 /dev/xxx

You can specify n number of times to overwrite and z to overwrite it all with zeros at the end.


Consider set -e.

If this is in a script, then you'll probably want to remove the if...then entirely and just put set -e at the top of the script. This causes the script to stop immediately if any command fails. When any of those rsync commands fail, they'll display error messages explaining the failure, so you probably don't need to write your own message at all.

If you want to show the commands that are run before running them, use set -x. You can combine the two by writing set -ex.

With &&, you don't need \.

If you do decide to write something along the lines of what you've shown, then as Ronny Blomme says you can separate the commands with &&. Note that you don't need to run the commands in subshells, i.e., you don't need to enclose them in parentheses.

If you write an && operator at the end of a line, then you don't need to write \ to specify line continuation. A command can't end in && (logical AND) or || (logical OR) so the shell will continue parsing onto the next line.

if
    rsync "$folder/coopshop/prod" "$folder2/coopshop" &&
    rsync "$folder/coopweb/prod" "$folder2/coopweb" &&
    rsync "$folder/unihobbyshop/shop" "$folder2/unihobbyshop" &&
    rsync "$folder/unnihobbyweb/web" "$folder2/unihobbyweb"
then
    echo 'OK! rsync commands completed successfully!'
else
    echo 'Error! some rsync command failed!'
fi

You don't have to put && at the end of a line. You can write multiple commands on the same line separated by && if you like.

Note that the final command being tested doesn't end with && because && separates the commands. If any command fails, the others will not run.

Running all the commands even if some of them fail

You may instead want to run all the rsync commands even if some of them fail, then test if any of them failed and operate accordingly. For this, you can trap ERR. This is not an actual signal, but the ERR signal_spec in bash catches commands that fail for any reason, including a crash (and including SIGINT). See pLumo's answer (but omit set -e to keep going) and this post by William Pursell; for more general information, see the output of help trap.

The way I like to do it (with commands like yours plugged in) is:

failed=
trap 'failed=yes' ERR

rsync "$folder/coopshop/prod" "$folder2/coopshop"
rsync "$folder/coopweb/prod" "$folder2/coopweb"
rsync "$folder/unihobbyshop/shop" "$folder2/unihobbyshop"
rsync "$folder/unnihobbyweb/web" "$folder2/unihobbyweb"

if [ -z "$failed" ]; then
    echo 'OK! rsync commands completed successfully!'
else
    echo 'Error! some rsync command failed!'
fi

About the other changes I've made... and what if command really tests.

Your arguments to rsync use parameter expansion so I've taken the liberty of double-quoting them. Otherwise, word splitting and globbing will be performed. From context it appears you don't want those additional expansions. (Usually you don't.)

Note that, contrary to the message your script prints, you are not actually testing if any rsync command crashed. You are instead testing if any rsync command failed. Crashing is abnormal program termination, where a process is terminated by a signal, typically due to a bug or a condition that cannot be reasonably handled. This is far rarer than normal program termination, which may itself occur with an exit status indicating success (zero) or failure (some other number). If rsync does crash, the code above will catch that too. But most of what it's catching, in practice, is normal program termination with an exit status indicating failure.


Ubuntu, persistence and casper loop file

I have found the right process : So i answer my question !

As i am beginner in Linux Persistence with Casper File, I will explain it in details. I think a lot of people who want for the first time make a big partition for persistence
will ask the same questions.

Here are my mistakes :

1 - When you use a Pen drive/Usb key,
    you have to keep FAT32 partition and create a second one Ext2 which while receive all files of casper-rw
    you can't boot without partition Fat32

2 - I have notice Gparted can break boot when partitions are modified (if fat32 resized or a new one created)

3 - When you copy files be careful of attributes files (use cp -a)

Here is the process :

1 - So First if you have already work with your usb pen drive, you need to save file casper-rw on an other disk

2 - Use an other instance of Linux to modify your Pen drive : Use Gparted to resize Fat32 partition, create the new one ext2.
    The Ext2 partition must be labeled casper-rw
    I have read Ext2 is better than Ext3 or Ext4 because Ext2 is not journalised, it's better for flash drive

3 - You should Have a flash drive with 2 partitions, one Fat32 of 1Go and an other Ext2 of 31Go for an USB key of 32 Go

4 - Use again Lili Usb Creator or other tool
    to reinstall your Iso but with a little file persistence : 200Mo for example

5 - boot one time on your pen drive to verify all works properly

6 - Use an other instance of Linux to modify your pen drive : The second partition ext2 will receive all the data stored in casper-rw but not the casper-rw file

  mount your save disk which contain the casper-rw file

  mount the casper-rw file

  mount the Ext2 partition labeled "casper-rw"

  copy with a "cp -a" all the files of the casper-rw container in the Ext2 partition

  -a option is important to preserve all the attribut of the files

  umount all your drive

  mount The fat32 partition and delete the casper-rw file

  umount the fat32 partition

7 - You can now use your pen drive


I messed up permissions in home folder I can not login

Your home directory as well as the .Xauthority file both belong to your user kenn, however you've modified your user to belong only to www-data wheel.

My example (user is xieerqi ):

$ ls -ld /home/xieerqi
drwxr-xr-x 90 xieerqi xieerqi 16384 Dec 10 11:15 /home/xieerqi/

xieerqi:
$ ls -l .Xauthority
-rw------- 1 xieerqi xieerqi 450 Dec 10 06:44 .Xauthority

What you need to do is to go into recovery mode (since you no longer belong to sudo group), enter root shell, remount filesystem with read write permissions (via mount -o rw,remount /), and run

usermod -a -G kenn,sudo,adm,dip,plugdev,lpadmin kenn

Additional info:

How do I boot into a root shell?


You can launch a deja-dup backup with the command deja-dup --backup.

With a cron job, you can automatically execute that command every so much time. This Askubuntu question provides stepwise instructions on how you can set up a cronjob.

For cron, you need the full path name to the application you want to run. You can find out the full path of deja-dup with the command:

$ which deja-dup
/usr/bin/deja-dup

To launch deja-dup as a cron job, we will thus use /usr/bin/deja-dup in this example.

To edit the crontab file for adding or editing a job, one uses the command crontab -e. This opens the crontab file in an editor, typically nano. You need to add one line for a job. In this case, to have your cornjob run every 30 minutes, your line may read

*/30 * * * * /usr/bin/deja-dup --backup


insert USB that contains installation Ubuntu file

restart PC

choose Ubuntu

push Esc button

chose graphic safe option

reinstall Ubuntu
notice : it's delete your Ubuntu volumes data
I hope that this will be useful .


pm-powersave runs when going into and out of sleep mode. See my answer Why is wireless down/strange after switching to battery or closing/opening the lid?


python stack traces on login and after apt-get update

I'm no expert but I was running into the same undefined symbol trying to start sickbeard so I ran the following command as root:

scanelf -l -s sqlite3_transfer_bindings /lib/* /usr/* /opt/* | grep sqlite3_transfer_bindings

Which gave me this output:

ET_DYN sqlite3_transfer_bindings /usr/lib/i386-linux-gnu/libsqlite3.so.0.8.6
ET_DYN sqlite3_transfer_bindings /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6

So I set $LD_LIBRARY_PATH for my sickbeard user to equal /usr/lib/x86_64-linux-gnu

And I was able to run sickbeard.

So presumably you can run the same command and then adjust your LD_LIBRARY_PATH value accordingly.


How to Dual boot/Multi boot Ubuntu Touch/Ubuntu Phone on Nexus 4.

Yes, it is very much hardware specific because all the different phones on the market use very different System-On-Chip(SOC)'s in them.  The Nexus 4 is definitely the best one for running Ubuntu Phone/Ubuntu Touch on at present because it has the most RAM: 2GB and it has the most cores(QUAD-CORE) and most importantly because the Nexus 4 is one of only four devices officially supported by Canonical.

I have done my best to summarize everything necessary to dual-boot android 4.2.2 and the latest functional/stable(saucy 100) ubuntu phone on the Google Nexus 4:

http://adequatech.ca/#ubuntuphonerunsonwindrogersnexus4

It takes about 30 minutes to an hour to finish the entire recipe and get up and dual-booting.

The real question here:  "Is all this worth the effort?".  Yes. You will have a phone with a different GUI, a conversation piece, that works for daily tasks.  It is easier to develop applications for and most importantly it is because it's a real GNU/Linux running on the phone just like your desktop which is most important for your digital freedom and digital privacy.  The Google Nexus 4 is definitely worth buying.  Google should continue selling this phone.

The reason Android 4.2.2 is specified is because some of the radio firmware changed in later versions of Android jellybean and Android kitkat resulting in losing call/sms/wifi capability from within Ubuntu Touch/Phone. Don't upgrade the Android version on the Nexus 4 after the above recipe.  In your Android 4.2.2, disable automatic upgrades as much as you can in play store settings and security settings.


Thanks to George Udosen, I found this article.

I edited /etc/default/grub - added init=/bin/systemd to GRUB_CMDLINE_LINUX_DEFAULT, than restarted the server sudo shutdown -r now


Cannot enter hibernation through hibernate, pm-hibernate or gnome button. Computer hangs

I had the same issue, pm-hibernate started working for me after installing

sudo apt install uswsusp

As explained here

then using pm-hibernate


Cannot ping : "Network unreachable" after switching to NAT mode on VM

not sure if thats a copy paste of your interfaces file, but your interfaces file has some typos and is missing some config.

you have

auto eh0
 adress

need static line and fix typos of eth0 and address.
https://wiki.debian.org/NetworkConfiguration#Configuring_the_interface_manually

auto eth0
iface eth0 inet static
 address

check the interface config that it has the IP etc assigned.

ifconfig eth0

Once making changes to the interface file you can ifdown/up to apply the new config.

ifdown eth0; ifup eth0


In Mozilla, goto Tools>Import... and select Mail (or whatever else you require).

This is a feature of POP3. If you wish to co-ordinate emails from the past and maintain a common list, you need to select the imap sever for your chosen email account.


How can i make the last OS used the first to boot in dual windows and ubuntu OS bootloader

This will make GRUB remember the last OS that you booted, and will boot to that same OS until you change it at the GRUB menu.

Edit /etc/default/grub

Add/change the following lines near the top...

GRUB_DEFAULT=saved # change existing line

GRUB_SAVEDEFAULT=true # add this line

Then, in terminal...

sudo update-grub

reboot


I have faced same problem and then did this.

Go to VLC player Tools -> Preferences -> Audio -> Select "Keep Audio levels between Sessions". Then change Output Module from "Default" to "Pulse Audio Output" or  "ALSA Audio output" whichever works for you.

It worked for me on Ubuntu 11.04 and VLC 1.1.9.

Also check the option configure ... Video -> Output "X11"


Kubuntu 20.04 (kernel 5.0.4) doesn't recognize Kobo Aura anymore

I had this problem.
I plugged into a different machine (a Raspberry Pi4, 5.4.83) and it worked fine.
My guess is that the USB hardware or drivers on the Kobo are a bit problematic.


How to connect to wired connection from the terminal

From ubuntugeek.com:

Place the following into /etc/network/interfaces with an editor.

It will cause the network manager to bring up your Ethernet automatically and configure it with DHCP.

auto eth0
iface eth0 inet dhcp

As Morgan correctly suggested you can find out if you should use something other than eth0 to refer to your wired connection by using the command ip link.

After adding this restart the network manager with:

sudo /etc/init.d/networking restart

(You should get an error message).

If this doesn't work you can try:

sudo ifdown eth0
sudo ifup eth0

And if that doesn't work you can reboot.

If all this doesn't work for you please mention in your question what you tried and what messages you got. You might find more information at the bottom of /var/log/syslog if you look right after you try it. tail -n 50 /var/log/syslog


Can't boot Ubuntu 12.04.2 from iso to install

Either your BIOS does not recognize that CD, or the burn did not work right. I'd try again with another CD to make sure that the burn worked okay. If you have another computer, you could try to boot from that CD on that other computer. Also, if you have a 32bit computer, did you make sure you had the 32bit Ubuntu (opposed to 64bit)? Because your BIOS could not boot a 64bit version without the adapted hardware, obviously.


Renaming a word in the filename of all *.jpg files

With rename

rename 's/Hoddesden/Hoddesdan/' *.jpg

Example

% ls -laog *.jpg
-rw-rw-r-- 1 0 Sep  1 13:30 R59-GBR_Hoddesden_2015-08-21_15-48-00-190_UNKNOWN.jpg
-rw-rw-r-- 1 0 Sep  1 13:30 YR59FRP-GBR_Hoddesden_2015-08-21_15-47-59-222_APPROACH.jpg

% rename 's/Hoddesden/Hoddesdan/' *.jpg

% ls -laog *.jpg
-rw-rw-r-- 1 0 Sep  1 13:30 R59-GBR_Hoddesdan_2015-08-21_15-48-00-190_UNKNOWN.jpg
-rw-rw-r-- 1 0 Sep  1 13:30 YR59FRP-GBR_Hoddesdan_2015-08-21_15-47-59-222_APPROACH.jpg


How to change wallpaper and make transparent caps in compiz cube?

Currently in the latest version of Compiz its not possible (I've been looking for it myself).

You can downgrade Compiz. However, this could have issues with Unity (Which i turned off anyway).

Maybe in a later version they will bring this back.


Does Canonical provide paid support for individuals?

Yes, Canonical does offer paid support to individuals. It is known as Ubuntu Advantage Desktop. You can also buy support for server installations and cloud installations.

Edit: It looks like Ubuntu Advantage Desktop requires a minimum order of 50 desktops now.


How do I stop this from appearing when I boot up my laptop? (screenshot)

First ensure that you have an active internet connection and  open a terminal with Ctrl+Alt+t and type:

sudo apt-get purge flashplugin-installer
sudo apt-get update
sudo apt-get install flashplugin-installer

Then try to reboot to see if flash is properly installed this time.


Can someone give me content of a fresh bash_profile text?

There isn't a default .bash_profile but you can get a new copy of .bashrc from /etc/skel/.bashrc:

cp /etc/skel/.bashrc /home/$USER/

If you meant .profile, that's also sitting in /etc/skel:

cp /etc/skel/.bash_profile /home/$USER/


How do I boot to a windows recovery partition from GRUB on a Toshiba computer?

Recovery partitions usually work differently for each computer manufacturer. For Toshiba it looks like you must start your windows installation, and press F8 before windows starts loading, then select Repair you computer. If your windows partition is too damaged you might be unable to do this. Here is a quick how-to

If it works you are not going to get the normal windows installer, but some kind of custom installation, probably based on images. The outcome I'd expect is that it'll wipe all of your hard disk.  Judging by the screenshots on the Toshiba page, I'd bet that it will delete your Ubuntu install.

Your best bet is to get a normal windows installation disk. As long as it's the same version and edition (e.g., XP Professional) as the one shipped with your computer it should work. Remember to put the serial number that is on a sticker on your computer, not the one from the disk. And even this is going to hose your Ubuntu install, as it will overwrite grub. You will need to boot from a live-CD/live-USB and restore it.

And remember to make a copy of your data before trying anything like this.

The windows serial number sticker is something like this:


XAMPP SUGGESTIONS

This might be a permissions issue. Try this,

(64 bit)

sudo chown -hR your_user_name_here /opt/lampp/
chmod +x /opt/lampp/manager-linux-x64.run
sudo /opt/lampp/manager-linux-x64.run

(32 bit)

sudo chown -hR your_user_name_here /opt/lampp/
chmod +x /opt/lampp/manager-linux.run
sudo /opt/lampp/manager-linux.run

BLENDER SUGGESTIONS

As for Blender, try sudo apt-get install blender instead of using the installer from the website.


Breaking links with apache2 after SSL installation

According to the examples, provided within the Apache's documentation, you should add a slash to the end of the target URL in the Redirect directive.

<VirtualHost *:80>

    ServerName example.com

    # Redirect Requests to HTTPS
    Redirect permanent "/" "https://example.com/"

    # Other configuration directives for this VH ...

</VirtualHost>

Don't forget to restart Apache and flush the browser's cache to take effect.

I know that, because I led you to this situation with my my previous answer, that is already corrected :)


NO you can't. Ubuntu and windows uses same hardware. So they can't be used simultaneously.

Why not create a ntfs partiton which is accessible in both  OS. And skype is available for ubuntu too.


Dell Inspiron N4010 with a BCM4313 wireless card not scanning/detecting access points

You should use Network Manager to connect to wireless network. It periodically scans air for the wireless networks.
Check if your notebook has some hardware buttons to switch Wi-Fi on/off.

Or you can connect to Internet with LAN cable and install WiCd.


Don't use pipelight.  Use the method explained in the answer to this question: Now that I have Firefox 49, how do I watch Netflix?


Tablet drawing horizontal, vertical and diagonal lines on its own / pressure sensitivity issues

Your problem could be what is described in this bug report: Wacom Bamboo One tablet random coordinate malfunctions.

You can solve it by installing the Personal Package Archive ppa:aapo-rantalainen/gimp26-noghostline:

sudo add-apt-repository ppa:aapo-rantalainen/gimp26-noghostline
sudo apt-get update
sudo apt-get --reinstall install gimp

Alternatively you could install the deb-files directly after downloading from the mentioned PPA. You need to download and install

gimp-2.6.11-2ubuntu4-1+oneiric
gimp-data-2.6.11-2ubuntu4-1+oneiric
libgimp2.0-2.6.11-2ubuntu4-1+oneiric

This worked for me.


Ubuntu 18.04: Bluetooth device disconnects right after connect on Lenovo P50

I had the same issue and solved it with the following steps:

sudo apt-get install pulseaudio-module-bluetooth

killall pulseaudio

Try to connect again.

Solution source


Why does asciidoc have texlive as a dependency?

Try:

sudo apt-get --no-install-recommends install asciidoc

Package can recommend another packages, if the maintainer think many people that use it will need the second one, or it has some features that needs it.


Cannot start ubuntu 17.04 - Can't request region for resource

Sometimes the installation just fails.
Best guess is to format the partition (maybe even remove and recreate) and try again, since it was a clean install.
Has another version of linux ever run on this pc ?


Disable Kernel Auto-Updates in Ubuntu 18.04 (cli only)

You can also add the packages to the 50unattended-upgrades config file:

nano /etc/apt/apt.conf.d/50unattended-upgrades

Locate the blacklist section, and edit to include the packages - even a regex is supported:

// List of packages to not update (regexp are supported)
Unattended-Upgrade::Package-Blacklist {
        "linux-generic";
        "linux-image-generic";
        "linux-headers-generic";
//      "vim";
//      "libc6";
//      "libc6-dev";
//      "libc6-i686";
};


How to interpret this screenshot error for gnome-screenshot?

This bug has been reported in the GNOME Bugzilla bug tracking system.

  D-Bus allows programs to register with it in order to offer services.
  It also allows client programs to check for the availability of
  services.

The service is either not known for the DBus backend or it cannot be run for security reasons.

You can try to run the tool as root and see if it works.

Source:

Wikipedia
Launchpad Bug #400200


Remember ssh passphrase until user logs off

We can use sshpass in combination with ssh in order to login to a server.

You can install sshpass via sudo apt-get install sshpass if your haven't already.

The trick is the usage of both sshpass and ssh in a single line like this:

sshpass -p "YOURPASSWORD" ssh user@server.com -p 2222

But that's something you already knew. And in order to avoid writing your password everytime you wish to log in to your server you can create a custom script which will execute that command for you when you write its name, something like:

#!/bin/bash
sshpass -p "YOURPASSWORD" ssh user@server.com -p 2222

Change the proper data, save the code in a file and name it whatever you wish, easy to remember and easy to type. Please note that I am using -p 2222 because that's the port number I use instead of 22, your server may use a different port number so check for that information if something seems not to be working as expected.

I am going to name it ssh1 and give it the proper execution permissions with:

sudo chmod +x ssh1

Then move the script to your /usr/bin folder with sudo mv ssh1 /usr/bin, provide your user password and that's it.

After this you can enter any terminal, write your script's name (ssh1 in this case) and hit ENTER and the script will do the trick for you.

A screenshot of my custom script in action is here:

NOTE: You must manually log in to your ssh server at least once in your life in order to the script be able to automatically do its magic.

Good luck!


E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5200 (apt)

Open your terminal and type:
ps -aux | grep -iE "apt"

It will show the id of the process running apt.  Kill it with:
sudo kill -9 <process_id>

You could also kill all processes using apt with:
sudo killall apt apt-get

If these commands don't work, you can also remove the files using rm:
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*

NOTE:  Be careful with those commands.  You could possibly end up with a broken system if you are careless.
Reconfigure the packages, and update:
sudo dpkg --configure -a
sudo apt-get update -y

Best of luck!


open your terminal and install gstreamer0.10-plugins-bad and/or gstreamer0.10-plugins-bad-multiverse.

you can do that by

sudo apt-get install gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse

you can also use synaptic or software centre to install.

hope that helps.


Alternative to HTTP to avoid corruption when downloading

Since you didn't mention any, I expect you don't have any restrictions regarding ports or programs on both sites.

I would download it via http with a client that can resume (e.g. wget -c). Then check the md5sum. If there is anything wrong with it, which I don't expect, I would then use rsync over ssh, which should transfer (only) the rest. Alternatively you could replace the first http transfer with the rsync, but IMO http is simpler.


command to find files by searching only part of their names?

Finding Files with bat Anywhere
To find all files anywhere inside /path/to/folder whose names contain bat, you can use:
find /path/to/folder -name '*bat*'

I have quoted the search pattern *bat* because, if the quotes were omitted and files match *bat* in the current directory, the shell will expand *bat* into a list of them and pass that to find. Then find wouldn't work right. (\*bat\* and "*bat*" also work.)
To search in the folder you're currently in (e.g., that you've cded to), use ., as usual:
find . -name '*bat*'

To search your whole computer, use /. To search your home directory, use ~, or the full name of your home directory. (The shell expands ~ to your home directory's fully qualified path.)
Broadening or Narrowing Your Search, Based on Name
If you want to search case-insensitively, so files containing BAT, bAt, and so forth are matched, use the -iname test instead of the -name test:
find /path/to/folder -iname '*bat*'

I've noticed all your files end in .c. If you only want to find files like that, use:
find /path/to/folder -name '*bat*.c'

I noticed all your filenames have bat either at the very beginning or the very end of the part preceding the .c suffix. If you want to avoid matching files like embattled.c, you could use:
find /path/to/folder -name '*bat.c' -o -name 'bat*.c'

-o is the or operator.
Matching Only Files
To find only regular files--and not folders, symbolic links, and special device nodes--you can use -type f. This is frequently recommended and sometimes quite appropriate... but often not what you really want, especially if you're running find for the purpose of examining the output yourself. If you had a symbolic link that matched your search, wouldn't you want to know about it?
If you want to find both regular files and symbolic links, you can use:
find /path/to/folder -name '*bat*' \( -type f -o -type l \)

That uses the -o operator and also parentheses for grouping (which must be quoted so the shell does not treat them specially; otherwise you'll get a syntax error).
But suppose you only want to see symbolic links that ultimately point to a regular file (and not symbolic links to directories, device nodes, etc.). That's actually even simpler: use -xtype instead of -type. Provided you're not running find with -L flag, -xtype on a symbolic link tests the type of the file the link points to.
find /path/to/folder -name '*bat*' -xtype f

If you have a symlink to another symlink to a file, -xtype f will match it even though its direct target is another symlink rather than a regular file. This is almost always what you want.
Often people think they want -type f, but really they want -xtype f.
Getting Detailed Output
find's default action if you don't specify one is -print. All the commands given above are equivalent to themselves with -print tacked on at the end.
find is often used to run commands based on the files found--often, commands that make changes. But there are also other actions whose purpose is to display results, besides -print. Of particular interest is -ls:
find /path/to/folder -name '*bat*' -ls

This gives detailed information on each file, in a multi-column format, similar to (though not quite the same as) what you would see by running ls file.
Further Reading
For more information on find and other ways to find files, see:

The find manual page, accessible online or by running man find in a terminal.
The GNU findutils reference manual, providing extensive documentation on the find, locate, and xargs utilities.
FindingFiles in the Ubuntu help wiki, which shows how to use find as well as several other methods.


Running headless doesn't start correctly unless a display is attached

I use NoMachine with a headless server without a monitor on Ubuntu 16.04.6 LTS 64 bit an it runs fine. I have also tested NoMachine on Ubuntu 18.04.2 LTS 64 bit, but it was not a headless machine. I am not familiar with AnyDesk, but NoMachine should work fine with a headless Ubuntu 18.04 machine. VNC also works great for a headless environment but NoMachine is easier to use. For NoMachine to work, it needs to be installed on the server and the client. It is cross-platform and also provides a mobile app. Here is a link to download NoMahine: https://www.nomachine.com/

Edit: As of now, NoMachine does not work on headless machines anymore, but I found a solution when I installed a video dummy driver that emulates a fake monitor and works great. Here is the link to the solution: Add Fake Display when No Monitor is Plugged In.


How to install libdvdcss.so.2 (Library) to Ubuntu 18.04

This worked for me
Try (this may not be needed for Ubuntu 20.04)
    sudo apt install libdvdread4

Do
    sudo apt install libdvdnav4 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg
    sudo dpkg-reconfigure libdvd-pkg
    sudo apt install ubuntu-restricted-extras

After that I was able to copy the DVD with brasero.


To completely remove and reinstall Ubuntu

Boot from Ubuntu installation media.
Select Try Ubuntu without installing.

When the desktop appears - open GParted.

Format the Ubuntu partition with ext4.
Close GParted, click on Install Ubuntu.
When asked - choose Something else.
Select the partition formatted before.
Then select / (root) as the mount point.
Start installing Ubuntu to this partition.


What do you want to achieve? A shared library is usually a file that other libraries or executable files need. If FTB Launcher stands for a Minecraft mod and you try to install it, use the method described in the documentation of the mod.


Is it a good idea to upgrade Ubuntu 20.04 WSL2?

WSL2 is using Hyper-V so the Linux will behave like in Virtual Machine.
I tried upgrading Ubuntu on WSL1 and WSL2 both with no issues.
As the question if it is good idea, it depends on what you need from 20.10.


MultiPointTouchArea working on Ubuntu 15.04?

Meanwhile I figured out, that you have to set

mouseEnabled: true