No wireless and wired on ubuntu 12.04 in Acer Aspire E1-570

Your ethernet device works with the driver tg3; its device ID isn't included until later kernel versions than that included in Ubuntu 12.04. The same is true for your wireless device which, in later Ubuntu versions, is claimed by ath9k.

It will be extremely difficult to download and install a driver for the ethernet without wireless and vice-versa. I suggest you download the live DVD or USB for Ubuntu 13.10. I am quite confident that both devices will work as expected. If so, install 13.10.


Pandas is in the default repositories for all currently supported versions of Ubuntu. To install it open the terminal and type:
sudo apt install python-pandas  # for Python 2.x in Ubuntu 18.04 and earlier

or
sudo apt install python3-pandas # for Python 3.x

pandas is a Python package providing fast, flexible, and expressive data structures designed to make working with "relational" or "labeled" data both easy and intuitive. It aims to be the fundamental high-level building block for doing practical, real world data analysis in Python.


No Vboxautostart-service scripts in virtualbox?

The question of whether these scripts were excluded on purpose or not is very vague, and may not have a firm answer in fact.  There's no mention of it anywhere and I believe the VBox packages are community maintained anyway.

I haven't been able to find a true answer, but I know that there is a bug in Debian on this that's been untouched since May 2014 on this issue.  That's where you would track/poke it.


Assigning an interface button or shortcut to sleep.sh in xmonad

To put the computer to sleep without a password, you can use the "visudo" program (which you need to run with root privileges), and add an entry like:

  your_username ALL = NOPASSWD: /etc/acpi/sleep.sh

where you should replace "your_username" with what you have in your system.

Then, you can bind a keyboard-shortcut in XMonad to run this command by extending the "myKeyBindings" in the config you are referring to, for example:

myKeyBindings =   [
    ...
    , ((0, 0x1008FF13), spawn "amixer -q set Master 10%+")
    -- SLEEP with Mod+Shift+s
    , ((myModMask .|. shiftMask, xK_s), spawn "sudo /etc/acpi/sleep.sh") ]

Also, don't forget to run "xmonad --recompile" to validate the config, and restart XMonad.


Copying the Postgres directory via Samba?

The solution I came up with is the following bash script:

#!/bin/bash

# Copy/replace myDatabase from Ralph07 to Ralph12

dropdb -e -h 192.168.29.205 --no-password --if-exists -U postgres myDatabase
# createdb -e -h 192.168.29.205 --no-password -U postgres myDatabase # The database will automagically be created
pg_dump -C -h localhost --no-password -U postgres myDatabase | psql -h 192.168.29.205 --no-password -U postgres

192.168.29.205 is the (static) ip address of the target computer. Your ip will likely be different.

In order to get the --no-password option to work, you'll have to edit ~/.pgpass. Mine (edited!) looks like the following:

localhost:5432:*:postgres:MyPassword
192.168.29.205:5432:*:postgres:MyPassword

See, for instance, https://www.postgresql.org/docs/9.6/static/libpq-pgpass.html for an explanation of .pgpass

You'll probably also need to edit /etc/postgresql/9.6/main/postgresql.conf (if you're using 9.6 of Postgres).  See https://blog.bigbinary.com/2016/01/23/configure-postgresql-to-allow-remote-connection.html

This solution seems to be robust.  I've had no trouble with it in the short time I've been using it (less than a day).  If I run into problems, I'll report it here.

Other solutions I've seen online to drop the database (i.e. going into psql) did not work for me.

What did _not_ work for me

For reference, the following did NOT work for me to drop the database.

UPDATE pg_database SET datallowconn = 'false' WHERE datname = 'myDatabase';
SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'myDatabase' AND pid <> pg_backend_pid();
DROP DATABASE "myDatabase";

I get the error "ERROR:  cannot drop the currently open database"

Further question:

What's the difference between dropdb and the code immediately above?


sed can do:

sed -i.bak '/oldword/s//newword/g' very_big_file

This edits the file directly leaving a backup named very_big_file.bak. It scans your file for lines containing oldword and replaces every occurence with newword, which should be much faster than running s/oldword/newword/g over every line (see Replace text quickly in very large file). Quoting sed1line:

  OPTIMIZING FOR SPEED: If execution speed needs to be increased (due to
  large input files or slow processors or hard disks), substitution will
  be executed more quickly if the "find" expression is specified before
  giving the "s/.../.../" instruction. Thus:

sed 's/foo/bar/g' filename         # standard replace command
sed '/foo/ s/foo/bar/g' filename   # executes more quickly
sed '/foo/ s//bar/g' filename      # shorthand sed syntax

If oldword and/or newword contain slashes you can either escape them with backslash (e.g. http:\/\/www) or use a different delimiter, e.g. underscore:

sed -i.bak '/oldword/s__newword_g' very_big_file
sed -i.bak '\_oldword_s//newword/g' very_big_file
sed -i.bak '\_oldword_s__newword_g' very_big_file

In your exact case I would do:

sed -i.bak '\_http://www.old-domain.com/subfolderA_s__http://www.new-domain.com/subfolderB_g' very_big_file


Ubuntu 20.04 Internet Gateway not working after upgrade from 18.04

You probably could have used iptables to fix this, although I don't know the specific command I do know there is a way to do it via iptables and there is also a way to make it persist across reboots. I know because I had setup a vpn quite a while back using a Raspberry Pi and had to set it up like you are talking about, but it has been a long time. I only say "probably" because I don't know the specifics about your setup, so while that worked on a Pi it may not work the same way on your ubuntu server.
Also, I remember it wasn't too difficult but there were a couple of steps and a couple of commands to run to accomplish it.  Just in case you wanted to revert back to your netplan format and try it, you will have some general idea of where to start looking for the answer.


enable matrix workspace on Ubuntu 20.04 without relying on 'untrusted' code or extensions

The gnome extensions are supposed to be reviewed and as trusted as anything else, in which case the solution becomes similar to what is provided in:

How do I get grid workspaces in ubuntu 20.04?

The way I personally installed it was to go with my browser (firefox, but should be similar with other browsers) to:

https://extensions.gnome.org/local/

There allow extension plugin management installation, and then browse for Workspace Matrix extension as recommended on the other issue.


Go to

System Settings > Software & Updates > Additional Drivers

Choose your preferred drivers.

With Bumblebee if you want to run an application using dedicated graphics use:

    optirun <AppName>


Typing guillemets (angle quotes, «») in Russian and English keyboards

Below is list of methods to enable special typographic symbols.
For Russian en English layouts they are defined in /usr/share/X11/xkb/symbols/typo file (mainly based on the layout proposed by Ilya Birman).

As the result you will get the following symbols:

First keyboard row:

~              NoSymbol ,  Shift+~              approxeq  ≈;
1           onesuperior  ¹, Shift+1            exclamdown  ¡;
2           twosuperior  ², Shift+2               onehalf  ½;
3         threesuperior  ³, Shift+3              onethird  ⅓;
4                dollar*  $, Shift+4            onequarter  ¼;
5                 U2030 (PER MILLE SIGN)  ‰, Shift+5              NoSymbol;
6               uparrow  ↑, Shift+6              NoSymbol;
7             ampersand  &, Shift+7          questiondown  ¿;
8              infinity  ∞, Shift+8             oneeighth  ⅛;
9             leftarrow  ←, Shift+9              NoSymbol;
0            rightarrow  →, Shift+0              NoSymbol;
-                emdash  —, Shift+-                endash –;
=              notequal  ≠, Shift+=             plusminus ±;

Second keyboard row:

e              EuroSign  €, Shift+e              NoSymbol;
r            registered  ®, Shift+r              NoSymbol;
t             trademark  ™, Shift+t              NoSymbol;
y                   yen  ¥, Shift+y              NoSymbol;
p                 acute  ´, Shift+p           doubleacute  ˝;
[           bracketleft  [, Shift+[             braceleft  {;
]          bracketright  ], Shift+]            braceright  }.

Third keyboard row:

a                 U0301 (COMBINING ACUTE ACCENT) ́, Shift+a              NoSymbol;
s               section  §,  Shift+s              NoSymbol;
d                degree  °,  Shift+d              division  ÷;
f              sterling  £,  Shift+f              NoSymbol;
j    doublelowquotemark  „,  Shift+j    singlelowquotemark  ‚;
k   leftdoublequotemark  “,  Shift+k   leftsinglequotemark  ‘;
l  rightdoublequotemark  ”,  Shift+l  rightsinglequotemark  ’;
;   leftsinglequotemark  ‘,  Shift+;               minutes  ′;
'  rightsinglequotemark  ’,  Shift+'               seconds  ″.

Fourth keyboard row:

x              multiply  ×, Shift+x                 U22C5 (DOT OPERATOR) ⋅;
c             copyright  ©, Shift+c                  cent ¢;
v             downarrow  ↓, Shift+v                 U25CA (LOZENGE) ◊;
m                 U2212 (MINUS SIGN)  −, Shift+m    enfilledcircbullet  •;
,         guillemotleft  «, Shift+,                  less  <;
.        guillemotright  », Shift+.               greater  >;
/              ellipsis  …, Shift+/              NoSymbol;

Space:

Space          nobreakspace  , Shift+ Space          nobreakspace  .

For other languages layouts may vary.
Settings for common desktop environments are presented below.

Ubuntu with Unity and GNOME desktop environments

Ubuntu 14.04 LTS and Ubuntu 16.04 LTS

Launch GNOME Tweaks (installable with sudo apt-get install gnome-tweak-tool, run by gnome-tweak-tool)

Go to Typing
In Miscellaneous compatibility options check Enable extra typographic characters
Close GNOME Tweaks.

Open Keyboard preferences (or unity-control-center keyboard)

Click on Text Entry, then on Keyboard Settings...
Select key in Alternative Characters Key (for example, Right Alt) (note: it is 3rd level)
Back to Text Entry section, select Russian keyboard layout and click small keyboard icon  to ensure that we have guillemets («елочки»):

Close Keyboard windows.

Use guillemets («елочки») in any application by pressing RightAlt with corresponding keys (Б and Ю;  , and .).

Ubuntu 18.04 LTS

Launch GNOME Tweaks (installable with sudo apt-get install gnome-tweaks, run by gnome-tweaks)

Go to Keyboard & Mouse
Click on Additional Layout Options
Expand Miscellaneous compatibility options check Enable extra typographic characters
Close GNOME Tweaks.

Use guillemets («елочки») in any application by pressing RightAlt with corresponding keys (Б and Ю;  , and .).

Ubuntu with MATE Desktop Environment (any version)

GUI way

Open System -> Preferences -> Hardware -> Keyboard (or mate-keyboard-properties).
Go to Layouts tab

Click Options
In Key to choose 3rd level choose needed key (for example Right Alt)
In Miscellaneous compatibility options check Enable extra typographic characters
Click Close

Select Russian keyboard layout and click Show to ensure that we have guillemets («елочки»):

Use guillemets («елочки») in any application by pressing RightAlt with corresponding keys (Б and Ю;  , and .).

Terminal way

Use GSettings to set two layouts (us and ru) using Alt+Shift as layout switcher, typographic symbols are enabled RightAlt as 3rd level switch::

gsettings set org.mate.peripherals-keyboard-xkb.kbd layouts "['us', 'ru']"
gsettings set org.mate.peripherals-keyboard-xkb.kbd model "''"
gsettings set org.mate.peripherals-keyboard-xkb.kbd options \
"['grp\tgrp:alt_shift_toggle', 'lv3\tlv3:ralt_switch', 'compat\tmisc:typo']"

Other GUI sessions and terminal

Edit /etc/default/keyboard and add here two parameters as described in man xkeyboard-config:

misc:typo to enable extra typographic characters and
lv3:ralt_switch to choose typographic symbols with Right Alt:

XKBOPTIONS="grp:alt_shift_toggle,lv3:ralt_switch"

After editing you should update initramfs images to include the new version of configuration file

sudo update-initramfs -k all -u


Your steps are correct so far.  The only thing that you should be aware of is that the xrdp solution is not working with the Unity Desktop Interface nor with the Gnome Desktop.

You can still perform a remote session to your ubuntu through xrdp but you will need to install an alternate desktop environment.  The one that seems to be the most used (probably because working) is the xfce desktop.

You can find a step by step process on how to use xrdp with ubuntu 14.04 at this location
http://c-nergy.be/blog/?p=5305

To summarize the steps,
you install xrdp
you install alternate desktop
you configure your profile so xrdp know that it has to use the alternate desktop
Test your configuration
and possibly tweak the config as required

This should help you

By the way, you could also fill a bug report for that given that the xrdp solution is working fine on fedora (yes, you can use xrdp and Gnome interface) but it's seems that something is broken in Ubuntu and/or xrdp package


peazip: error while loading shared libraries: libX11.so.6

To be able to install i32lib first open a Terminal and type the following;

dpkg --add-architecture i386
apt-get update
apt-get install libc6:i386

and then type:

apt-get install ia32-libs


Is there a script we can use to directly view files without going to the respective path?

You seem to be confusing "going to directory" and using the full path of file, as I see from comment.  You also seem to be confusing script with just one command. What M. Becerra shows in his answer is a script. Joseph Manley's answer just uses single command.

Here's the thing: you have to specify full path to a file when passing it as argument if these are random files which you want to access at will.

If you have just one file that you know will remain in same location,  there's couple other approaches:

Make a symlink to file in your current directory. For example, ln -s /opt/myfile.txt  symlink2file.txt
Set path to file as variable and use the variable to pass it as argument to a command. myvar="/opt/somefile.txt ; less "$myvar"


How to modify the Firefox homepage in LiveCD for every new user?

I've newer tried to use uck,
but I would try the following:

The skeleton-directory for the ubuntu user is

/etc/skel

so create the folder:

/etc/skel/.mozilla/firefox/

in this folder create a file "profiles.ini" with content:

[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=1
Path=a.default

Now add a folder

/etc/skel/.mozilla/firefox/a.default/

In this folder create a file named user.js with content:

//
// user.js: Personal prefs which mozilla shouldn't overwrite.
//

user_pref("browser.startup.homepage", "http://www.omgubuntu.co.uk");

greez Waschtl


Have a look, please, at a possible answer for your question listed on this page. It is not a piece of software that you actually need but full access to all relevant log files for your operating system.

If it is an application that you want rather than manually check log files you can install Activity Log Manager, a graphical user interface which lets you control what gets logged by Zeitgeist. Read the following article to see in detail how to install and use this (Gnome) Activity Log Manager.


Cannot install wine because of broken dependency

By installing the missing ia32-libs the problem can be reoslved as it's a missing dependency, the OP had encountered that ia32-libsdepends on lib32v4l-0 but the package is only available for Oneiric.

Installing the .deb for lib32v4l-0 solves the dependencies for ia32-libs which in turn solves the dependency for wine.


ShareX image uploading gives 403 forbidden on new Apache Server

Have you tried creating a group and adding www-data to it, then grant write privileges for the folder to the group (775 or something similar)?


Why are there no tested NVIDIA drivers in software & updates?

did you try from Nvidia ?
https://www.nvidia.com/Download/index.aspx?lang=en-us
or
https://www.nvidia.com/fr-fr/geforce/drivers/
a new driver has just been added for your GPU (laptop+desktop):
https://www.nvidia.com/Download/driverResults.aspx/172836/en-us

Linux x64 (AMD64/EM64T)
Display Driver   Version:     465.24.02 Release
Date:     2021.4.14
Operating System:     Linux 64-bit

...

GeForce RTX 30 Series (Notebooks):
GeForce RTX 3080 Laptop GPU, GeForce RTX 3070 Laptop GPU, GeForce RTX 3060 Laptop GPU
GeForce RTX 30 Series:
GeForce RTX 3090, GeForce RTX 3080, GeForce RTX 3070, GeForce RTX 3060

Regards
PS :
thanks to ChanganAuto for his comment about the  reliability of the different kinds of repositories. PPAs are not the most advisable (PPA stands for Personal Package Archives).
Here  is the doc :
https://help.ubuntu.com/community/Repositories/Ubuntu
I quote :

Packages in PPAs do not undergo the same process of validation as
packages in the main repositories. PPAs are a low-security alternative
to the main repositories, so the user will be installing software at
their own risk.


Installing Node.js 6 parallel to existing Node.js 7 on Ubuntu 14.04

You can use nvm to easily manage your installed Node versions. It's extremely easy to install new versions and switch between them (nvm install v6 and nvm use v6), and you can set a default version with nvm alias devault v6.

I would recommend removing your current system Node install first, to reduce the chance of confusion in the future.


This error message indicates that you have somehow replaced the /lib/plymouth/themes/default.plymouth symlink, which is managed by the plymouth theme packages, with a real file.  Since you want to select a different theme, you can accomplish this by running:

sudo rm -f /lib/plymouth/themes/default.plymouth
sudo update-alternatives --config default.plymouth

If the contents of /lib/plymouth/themes/default.plymouth are something you care about preserving, you can move the file aside instead of removing it.


Apache2 server not accesible from outside of localhost

I suggest using "bridged adapter" setting in virtualbox, this will give the VM a real address on your LAN, and you can then forward port 80 to it in your router, allowing access from the outside world.


why sed is not replacing special character <

In sed, \< matches "beginning of a word", while plain < matches literally.

For a more readable substitution, change the delimiters:

sed -i 's=</etc/dovecot/private/dovecot\.pem=/etc/dovecot/private/dovecot.pem=g'

There's no need to backslash dots in the replacement part.

You can further shorten the instruction by using a capture:

sed -i 's=<\(/etc/dovecot/private/dovecot\.pem\)=\1=g'


i did a new fresh minimal install it the problem got resolved


I asked this on another forum and was given a great answer that worked perfectly.

sudo kill -9 <PID>


i installed Ubuntu 11.10 along with win7 and win8.., but it shows me 3 Ubuntu os's in the boot(in startup)

If you mean the top 3 as shown in this random image:

Then this is normal (Besides the Windows one since this will only show when you have Windows installed too).

recovery mode is for when you can not boot into Ubuntu.
memtest86+ is to test your memory

If you do not want these shown you can use the program in this answer to have them not shown during boot (they are still there in case you do need them someday):

How do I hide an entry from grub?


Windows switching workspace on screen lock

I have this exact same problem and looks like an ongoing issue:

https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1295267

Some people are reporting success by disabling screen turn off and changing display connectors (if possible) - e.g. changing from DP/DVI/VGA etc.

Seems to have been an issue on and off for some time, so I'm not holding my breath for a fix :(


Spectre Mitigation/lfence not serializing on VM Startup

I am having the same problem with this version on Ubuntu in VirtualBox. I'm running on a new computer and I have SVM enabled in the bios.

Edit: Ubuntu 18.04 lts freezes while in boot, in wndows Virtual box. Solution?

This answer led me to try turning on an additional core in Settings -> System -> Processor which then would show the "Spectre v2..." text but still boot.


When I try and boot after installation my system will get to the splash screen and then show a flickering purple screen

I actually got it to work. I had to check the box next to "Install third party software for graphics and Wi-Fi hardware and additional media formats". Thank you for your suggestions and help.


I also have no idea why there is 4 Mib of unallocated space at the end
  of my drive
  That is OEM partition and you just can't do anything. Stop worrying about that.

Please read the installation guide and how to make partitions before going any further.

Based on the current disk partitions you have - you can only install Ubuntu Linux on /dev/sda2(ext4-around 117GB). Let Ubuntu installer create a root (mounted a /), swap and /boot(if needed by grub2) on it's own when you are installing Linux.


How do I resolve "wasn't able to locate a file for the libpango1.0-0 package"?

It may be a dependent package. If software update failed. Then you can try it with terminal. Open a terminal by pressing Ctrl+alt+t.
Type or copy/paste with mouse or keyboard. You can paste into terminal by pressing Ctrl+shift+v.

sudo apt-get clean to clean previous software cache. Remember you have to provide your password when promoted. Password field will stay blank when you enter password....don't worry about it. Just enter password and press enter

sudo apt-get -f install to solve any dependency problem.

sudo apt-get update && sudo apt-get upgrade to update your softwarelist and upgrade all software component that have a new version available.

By this upgrade command your kernel will not upgrade. So you have to type sudo apt-get dist-upgrade.


Compile a LaTeX file from Vim and not from terminal

Try something like:

command C !xelatex %

in your ~/.vimrc.

Then you can do:

:C

in vim to compile the file.

You can do more complex operations using functions:

function WriteCompileTex()
  write
  :! xelatex %
endfunction
command WC :call WriteCompileTex()

Note that user-defined commands and functions must begin with a capital letter.

You can also do:

au BufWritePost *.tex ! xelatex %

This will run this command whenever a .tex file is written to, so that you can simply do :w, and your Tex file will be compiled after saving.


Failed to generate a configuration file for xfce4-xkb-plugin from source

You can safely ignore the "Please add..." message.  It is benign.

The important bit is the last message.  Confirm that /usr/share/aclocal/intltool.m4 exists and that the m4 local directory exists.

As an aside, it's unusual to run autogen.sh with sudo, though that shouldn't create a problem.  You will just have to also run make under sudo.


Ubuntu 20.04 Reading package lists... Error

When installing local DEB packages, you should use dpkg instead of apt, since apt is designed for installing packages from the remote repositories. To install your package with dpkg, use the following command:

sudo dpkg -i /path/to/my/package.deb

Replace /path/to/my/package.deb with the actual path of your own package.

In some cases, this command may fail with missing dependency errors. If this is the case, issue the following command:

sudo apt --fix-broken install

This will install the dependencies. After that, re-run the first dpkg command to install your package.

Alternatively, the program gdebi can be used instead of dpkg, since it has better resolution of dependencies without needing to apt --fix-broken install. To install gdebi, run this command:

sudo apt install gdebi-core

Now you can install your program directly using:

sudo gdebi /path/to/my/package.deb


18.04 Install constantly fails at various levels – Gigabyte 970A-DS3P

Well I screwed something up: wanted to post individual replies but wouldn't let me plus a limited number of characters.  Guess this will have to work:

To User535733:
Going back to basics is always a good starting point when jumping into the middle to troubleshoot isn’t working!  I had done the ‘check the disk for being right’ (on the initial ‘try/install/memtest’ page) and that passed.  Assumed (uh-huh!!) that tested disc integrity but apparently not.  Installed GtkHash.  Command line (only because I was at Terminal to install and just delete part of the commandline):

MD5:        129292a182136a35e1f89c586dbac2e2    (matches online)
SHA1:       f373c0aec6162cdba76ee9084e695866a15e441a    (matches online)
SHA256: a55353d837cbf7bc006cf49eeff05ae5044e757498e30643a9199b9a25bc9a34    (matches online)

OK, apparently the ISO is fine and also the DVD.

The thumbrive was an ‘alternative attempt’ and had ‘mini.iso’ on it, not the full Ubuntu_18.04.ISO.  My thinking was maybe the DVD didn’t have something included and so try a different method.

To Guiverc:
But we want it now!     That and other shortcuts like not verifying file integrity are probably the worst thing being done; at least I did do the Check Disk step.  I had also checked   in UEFI Configuration all of the memory was being seen and CPU cores were running normally.  At least I performed a few verifications.

To OldFred:
Ah! This looks like a ‘chunky beef stew of information’!  Thanks!  Will look into those later and get back to you.

In the interim have done two or three installation attempts which failed.  One thing that seems odd to me is all of the attempts have failed at different levels: some fail almost immediately, some somewhat close to completion, most somewhere in the middle.  I don’t understand most of the errors scrolling to the screen though Googling there seems to be a consistency with a potential problem with Secure Boot Mode.  No option mentioned in the manual; on-line there is something for Windows 8 install.  Not so sure I want to go on that pathway.

Did regress a bit and retried the 16.04 DVD – it installed!!    Right now USB 3 isn’t working – I can deal with that for now: at least don’t have a semi-expensive box mocking me.  No idea what the difference between 18.04 and 16.04 is.    Have seen instructions on how upgrade to 18.04 so may try that; will look at your information first.

Thanks again!
Barry

Updated information:

Hi OldFred!

Finally getting to experiment and reply: busy-ish weekend.  Appears the first two links are essentially the same and seem to have resolved the USB and NIC issues here.  (Thanks!)  I did backtrack: 18.04 simply refused to install here: can do anything from barely start the installation and stall/hang/whatever to almost making it to the end and hangs/an error pops up.  The system, gateway, hubs, etc., are on UPSs: it gets noisy when the power goes out!

Did go back to 16.04. did the IOMMU steps in your suggestion, and that now allows both the USB 2.0 and 3.0 mice and keyboards to work.

I did see this in one of the forums:

  I don't think I'd recommend this MB series to a novice doing his/her own Ubuntu installation. Given that the fix requires googling the right terms to find this thread or a similar one, modifying the BIOS settings, editing a text configuration file and mucking around a little on the command line, it might sort of spoil the "it just works" experience of installing and using Ubuntu.

I’ll just say “I agree!”.  I was more or less shocked when the installation failed; but-but-but they’ve always worked since I started with 10.10.  Good news is it looks like quite a few have this motherboard so we can help each other and people like you and others are willing to also assist.

As for the AMD Ryzen link – that one went over my head but I don’t think I have one.  From the 16.04 Settings > Details:
    Processor   AMD FX-8320 Eight-core Processor x8

At this point I’m not sure what to do.  LIS I backed up a little and have 16.04 installed (along with its updates).  Firefox crashes but that’s a separate issue (have submitted a few reports to them).  Haven’t had too much time to play.  Half-thinking to install VirtualBox (Oracle’s version) to install XP on it (like I do on the machine I’m using currently) and probably and experimental VM (virtual machine) Ubuntu 16.04 as well as see what a VM18.04 does.

Barry


G751JY after 14.04 LTS installation stuck at booting (purple screen)

Here's something to try:
ctrl+alt+f2 login with username and pass.
now type
 sudo service lightdm restart
let me know if this helps otherwise we can try to remove lightdm and install gdm


How about this?

#!/bin/bash
while IFS='' read -r p || [ -n "$p" ]; do
  ssh "$p" bash -c '\
    hostname &&
    [[ -z "$(/usr/lib/update-notifier/apt-check -p)" ]] &&
    echo "No updates available." ||
    ( echo ; apt-get upgrade --dry-run )
    '
  echo
done < ~/iplist1

apt-get --dry-run doesn't need root permissions to run, this eliminates a major problem.


I have lost data but it's not deleted or overwritten

Your question is very ambiguous, how do you know it isn't deleted if you can't find it?

If you are trying to work out where your hard drive space has been taken up you can use a tool called baobab. It can be installed using sudo apt-get install baobab (if it is not already installed).

There is also a chance if you think you installed it on a partition with data, that it may have been completely wiped if you cannot find the data anywhere.


How do I "alt-tab" between windows using Gnome 3?

In GNOME Shell, you should be able to switch between multiple windows of the same app by running Alt + the key above tab on your keyboard. For US users, that shortcut is Alt + ` but other keyboard layouts are different.

This is different than Unity in Ubuntu 11.10 which uses Alt + ` for all layouts. (I expect that behavior would improve in Ubuntu 12.04).


I am not sure about btrfs, but ZFS and ECC RAM are like toast and butter... but ZFS without ECC is also like toast with butter.

TL;DR- Using ECC RAM with ZFS is good (because using ECC RAM is in general good), but it is not going to hurt you to not use ECC RAM with ZFS because ZFS is just that good. I would not say that ECC RAM is obsolete though, because there is more going on than just filesystem storage. Errors anywhere are bad. ZFS just helps limit errors in the filesystem. Below is how / why...

Please see http://jrs-s.net/2015/02/03/will-zfs-and-non-ecc-ram-kill-your-data/ and read closely. Thank you to Jim Salters for what is below.

I will post the relevant bits in case there is a loss of that site:

First: ECC RAM

  What’s ECC RAM? Is it a good idea?

  The ECC stands for Error Correcting Checksum. In a nutshell, ECC RAM
  is a special kind of server-grade memory that can detect and repair
  some of the most common kinds of in-memory corruption. For more detail
  on how ECC RAM does this, and which types of errors it can and cannot
  correct, the rabbit hole’s over here.

  Now that we know what ECC RAM is, is it a good idea? Absolutely.
  In-memory errors, whether due to faults in the hardware or to the
  impact of cosmic radiation (yes, really) are a thing. They do happen.
  And if it happens in a particularly strategic place, you will lose
  data to it. Period. There’s no arguing this.

Second: ZFS

  What’s ZFS? Is it a good idea?

  ZFS is, among other things, a checksumming filesystem. This means that
  for every block committed to storage, a strong hash (somewhat
  misleadingly AKA checksum) for the contents of that block is also
  written. (The validation hash is written in the pointer to the block
  itself, which is also checksummed in the pointer leading to itself,
  and so on and so forth. It’s turtles all the way down. Rabbit hole
  begins over here for this one.)

  Is this a good idea? Absolutely. Combine ZFS checksumming with
  redundancy or parity, and now you have a self-healing array. If a
  block is corrupt on disk, the next time it’s read, ZFS will see that
  it doesn’t match its checksum and will load a redundant copy (in the
  case of mirror vdevs or multiple copy storage) or rebuild a parity
  copy (in the case of RAIDZ vdevs), and assuming that copy of the block
  matches its checksum, will silently feed you the correct copy instead,
  and log a checksum error against the first block that didn’t pass.

  ZFS also supports scrubs, which will become important in the next
  section. When you tell ZFS to scrub storage, it reads every block that
  it knows about – including redundant copies – and checks them versus
  their checksums. Any failing blocks are automatically overwritten with
  good blocks, assuming that a good (passing) copy exists, either
  redundant or as reconstructed from parity. Regular scrubs are a
  significant part of maintaining a ZFS storage pool against long term
  corruption.

Situation / Concern

  Is ZFS and non-ECC worse than not-ZFS and non-ECC? What about the
  Scrub of Death?

  OK, it’s pretty easy to demonstrate that a flipped bit in RAM means
  data corruption: if you write that flipped bit back out to disk,
  congrats, you just wrote bad data. There’s no arguing that. The real
  issue here isn’t whether ECC is good to have, it’s whether non-ECC is
  particularly problematic with ZFS. The scenario usually thrown out is
  the the much-dreaded Scrub Of Death.

  TL;DR version of the scenario: ZFS is on a system with non-ECC RAM
  that has a stuck bit, its user initiates a scrub, and as a result of
  in-memory corruption good blocks fail checksum tests and are
  overwritten with corrupt data, thus instantly murdering an entire
  pool. As far as I can tell, this idea originates with a very prolific
  user on the FreeNAS forums named Cyberjock, and he lays it out in this
  thread here. It’s a scary idea – what if the very thing that’s
  supposed to keep your system safe kills it? A scrub gone mad!
  Nooooooo!

  The problem is, the scenario as written doesn’t actually make sense.
  For one thing, even if you have a particular address in RAM with a
  stuck bit, you aren’t going to have your entire filesystem run through
  that address. That’s not how memory management works, and if it were
  how memory management works, you wouldn’t even have managed to boot
  the system: it would have crashed and burned horribly when it failed
  to load the operating system in the first place. So no, you might
  corrupt a block here and there, but you’re not going to wring the
  entire filesystem through a shredder block by precious block.

  But we’re being cheap here. Say you only corrupt one block in 5,000
  this way. That would still be hellacious. So let’s examine the more
  reasonable idea of corrupting some data due to bad RAM during a scrub.
  And let’s assume that we have RAM that not only isn’t working 100%
  properly, but is actively goddamn evil and trying its naive but
  enthusiastic best to specifically kill your data during a scrub:

  First, you read a block. This block is good. It is perfectly good data
  written to a perfectly good disk with a perfectly matching checksum.
  But that block is read into evil RAM, and the evil RAM flips some
  bits. Perhaps those bits are in the data itself, or perhaps those bits
  are in the checksum. Either way, your perfectly good block now does
  not appear to match its checksum, and since we’re scrubbing, ZFS will
  attempt to actually repair the “bad” block on disk. Uh-oh! What now?

  Next, you read a copy of the same block – this copy might be a
  redundant copy, or it might be reconstructed from parity, depending on
  your topology. The redundant copy is easy to visualize – you literally
  stored another copy of the block on another disk. Now, if your evil
  RAM leaves this block alone, ZFS will see that the second copy matches
  its checksum, and so it will overwrite the first block with the same
  data it had originally – no data was lost here, just a few wasted disk
  cycles. OK. But what if your evil RAM flips a bit in the second copy?
  Since it doesn’t match the checksum either, ZFS doesn’t overwrite
  anything. It logs an unrecoverable data error for that block, and
  leaves both copies untouched on disk. No data has been corrupted. A
  later scrub will attempt to read all copies of that block and validate
  them just as though the error had never happened, and if this time
  either copy passes, the error will be cleared and the block will be
  marked valid again (with any copies that don’t pass validation being
  overwritten from the one that did).

  Well, huh. That doesn’t sound so bad. So what does your evil RAM need
  to do in order to actually overwrite your good data with corrupt data
  during a scrub? Well, first it needs to flip some bits during the
  initial read of every block that it wants to corrupt. Then, on the
  second read of a copy of the block from parity or redundancy, it needs
  to not only flip bits, it needs to flip them in such a way that you
  get a hash collision. In other words, random bit-flipping won’t do –
  you need some bit flipping in the data (with or without some more
  bit-flipping in the checksum) that adds up to the corrupt data
  correctly hashing to the value in the checksum. By default, ZFS uses
  256-bit SHA validation hashes, which means that a single bit-flip has
  a 1 in 2^256 chance of giving you a corrupt block which now matches
  its checksum. To be fair, we’re using evil RAM here, so it’s probably
  going to do lots of experimenting, and it will try flipping bits in
  both the data and the checksum itself, and it will do so multiple
  times for any single block. However, that’s multiple 1 in 2^256 (aka
  roughly 1 in 10^77) chances, which still makes it vanishingly unlikely
  to actually happen… and if your RAM is that damn evil, it’s going to
  kill your data whether you’re using ZFS or not.

Re: Scrubbing

Here enters a valid concern about data loss. Take heed!

  But what if I’m not scrubbing?

  Well, if you aren’t scrubbing, then your evil RAM will have to wait
  for you to actually write to the blocks in question before it can
  corrupt them. Fortunately for it, though, you write to storage pretty
  much all day long… including to the metadata that organizes the whole
  kit and kaboodle. First time you update the directory that your files
  are contained in, BAM! It’s gotcha! If you stop and think about it, in
  this evil RAM scenario ZFS is incredibly helpful, because your RAM now
  needs to not only be evil but be bright enough to consistently pull
  off collision attacks. So if you’re running non-ECC RAM that turns out
  to be appallingly, Lovecraftianishly evil, ZFS will mitigate the
  damage, not amplify it.

  If you are using ZFS and you aren’t scrubbing, by the way, you’re
  setting yourself up for long term failure. If you have on-disk
  corruption, a scrub can fix it only as long as you really do have a
  redundant or parity copy of the corrupted block which is good. Once
  you corrupt all copies of a given block, it’s too late to repair it –
  it’s gone. Don’t be afraid of scrubbing. (Well, maybe be a little wary
  of the performance impact of scrubbing during high demand times. But
  don’t be worried about scrubbing killing your data.)

Once again, thanks to Jim Salters for publishing this.


apt-get is broken (error processing package)

Please be more verbose - which command did you try?

You can try:

sudo apt-get -f install

and

sudo dpkg --configure -a

I would use comments if I was allowed to


Try nmap netstat and ufw to check if required ports are open and not blocked by any firewall. If you're sure there's no problem with ports and firewall, then try below:-

cd /home/user/mail/domain.com/email_account/

Then, check if a tmp folder is present using:-

ls -ld tmp/

If, not then create a tmp folder:-

mkdir tmp

Check r/w permissions and ownership of the temp and the .inbox folder.

NOTE:- Follow the same above steps if you're unable to access other mailbox (draft etc.).


1) ssh ubuntu@node-name or ip

2) install juju and bootstrap it then run

  juju ssh machine-id

or

  juju ssh ubuntu@node-name or ip


Running games from any other directory then DESKTOP? (my target is CD and SD card)

OK if you want to burn the CD you should do this:

In Ubuntu, put the 'fps6' folder on your desktop
Go into terminal and do:

cd ~/Desktop/fps6

sudo chmod +x runner
Open "Brasero" and click "New Data Project" then click the "+" in the top left. Select the 'runner' and 'assets' from inside 'fps6' folder on your desktop that you just chmod'd
Select the CD you want to burn to.
Click the "Burn" button in bottom right.

UPDATE: you could try doing this

sudo mount -o remount,exec /media/Linuxgame


see freedb "submit new entries" howto:
http://www.freedb.org/en/download__miscellaneous.11.html

Basically you can use email and HTTP POST submission but for details see the doc.

Also email method with example described here:
http://ubuntuforums.org/showthread.php?t=1669680&p=10883530#post10883530

basically best is to use some program to do it for you. But I couldn't spot any searching now half an hour.

UPDATE:
Option 1: I managed to update freedb. Use grip to generate the file in ~/.cddb/diskid, you can grep in the dir for it. I couldn't upload with grip perhaps because local mail is not setup. If you have local mail program working, you could as well use the cddb-tool to send email to server.

Then I went to gmail, create new message to freedb-submit@freedb.org with subject cddb folk 0510db11 where you change folk to your CD genre and use the proper disk-id. Copy paste the cddb file into the message body. Switch to plain-text format. Last thing is very important. And it worked!

Option 2: use musicbrainz.org. Install picard. Open it and lookup CD. Then click manually lookup CD. There is a link to simple upload. Click it and enter CD information. Then create an account and click on the stub page you just created import as MusicBrainz release. Then enter a lot more information and you are done. Both things work for me. I wouldn't call that very easy...

If I knew everything, maybe option 1 is little easier as long as you are comfortable using command line and properly send the email. Option 2 is easier for GUI lovers.

Finally tested with k3b and it can download CD from both sources. I wish somebody created a freedb submit form..

P.S. FYI the test freedb email did not work for me. I've got no reply.


update-alternatives: "alternative path doesn't exist" issue while updating JDK7

It's my epic fault! :)

I mixed up the arguments of update-alternatives. The right command line must be:

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk/bin/java 1


How can I make a .click file from an installed app?

If you like the version of an app you can create a .click file before updating it.
The installed apps are inside directories in /opt/click.ubuntu.com.
You go there with File Manager and copy the dir of the app you are interested on.
In the directory ~ you have the script reb_click.sh
Write to the Terminal:
./reb_click.sh  "PASTE_FROM_FILE_MANAGER"
You paste the address with File Manager.
It has a complete direction but the script cleans it.
After that you get a directory of the app in ~
Inside it is the .click file you where looking for.
The script reb_click.sh is:

#!/usr/bin/bash
paquete=`echo ${1##*/}`
cp -r /opt/click.ubuntu.com/$paquete ~
cd ~/$paquete/current
cp .click/info/$paquete.manifest manifest.json
cd ..
click build current

To install the app put the .click file in ~ and write to the terminal:
pkcon install-local name_of_the_app.click --allow-untrusted
It just won't be signed with the official appstore key like the one that can be downloaded from the store.
See the Niklas Wenzel page:
http://nikwen.github.io/ubuntu/2016/02/05/rebuilding-a-click-file-for-an-installed-application.html


Let's check your file system...

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier

sudo fsck -f /dev/sda9

repeat the fsck command if there were errors
type reboot


GUI login failure after deleting ecryptfs

You might be able to recover (or at least get access to) your files again, try ecryptfs-recover-private it should search for encrypted private folders and try to let you read them.

Haven't heard of the .ecryptfs folder getting that big, I think it's usually just small config files, but maybe it could've got set as the ".private" folder and contained your actual files? That wouldn't be very good.


Encrypted LVM not accepting my passphrase anymore

The Intel AES-NI instructions are not present in all CPUs. That warning shows up on my LVM every time I boot and is not the reason, why your LVM cannot be unlocked.

Do you have a custom keyboard layout defined? Not sure, whether this also applies to LVM, but TrueCrypt always uses US keyboard layout on startup. Maybe your keyboard layout was switch during update due to some overwritten config file?

If nothing helps, try booting from a Ubuntu USB stick oder a Ubuntu CD and try mounting your LVM volume in the live system. But don't use the 11.04 image: I think I remember trying to change my LVM using that one and LVM didn't install on that live image.


How to disable password after login to 14.04?

See "users accounts" (dash, start typing 'user):

You need to unlock to make changes (top right).


How can I make my command history start counting from 0

From bash man page:

  On startup, the history is initialized
  from the file named by the variable
  HISTFILE (default ~/.bash_history)...

  When an interactive shell exits, the
  last $HISTSIZE lines are copied from
  the history list to $HISTFILE.  If the
  histappend shell option is enabled
  (see  the  description  of  shopt
  under SHELL BUILTIN COMMANDS below),
  the lines are appended to the history
  file, otherwise the history file is
  overwritten...

So, only on exit the file ~/.bash_history is updated, and if histappend is set, the default, that file is not overwritten.

My suggestion, remove ~/.bash_history, then perform history -c.


Unable to uncheck repository in Software and Updates GUI

issue this from a terminal

sudo  journalctl -xe

are you seeing error messages similar to this

Dec 07 20:23:12 zanzbar dbus-daemon[940]: [system] Activating service name='com.ubuntu.SoftwareProperties' requested by ':1.736' (uid=1000 pid=17233 comm="/usr/bin/python3 /usr/bin/software-properties-gtk " label="unconfined") (using servicehelper)
Dec 07 20:23:12 zanzbar dbus-daemon[940]: [system] Successfully activated service 'com.ubuntu.SoftwareProperties'
Dec 07 20:23:21 zanzbar gnome-shell[5892]: pushModal: invocation of begin_modal failed
Dec 07 20:23:21 zanzbar gnome-shell[5892]: polkitAuthenticationAgent: Failed to show modal dialog. Dismissing authentication request for action-id com.ubuntu.softwareproperties.applychanges cookie 2-0f1ecbe09af0c05c92604b792d59300e-2-0c393c45f71b4752192f83f9929be0db
Dec 07 20:23:21 zanzbar software-properties-gtk.desktop[5892]: ERROR:root:Authentication canceled, changes have not been saved
Dec 07 20:23:21 zanzbar polkitd(authority=local)[1333]: Operator of unix-session:2 FAILED to authenticate to gain authorization for action com.ubuntu.softwareproperties.applychanges for system-bus-name::1.736 [/usr/bin/python3 /usr/bin/software-properties-gtk] (owned by unix-user:axo)
Dec 07 20:23:28 zanzbar gnome-shell[5892]: pushModal: invocation of begin_modal failed
Dec 07 20:23:28 zanzbar gnome-shell[5892]: polkitAuthenticationAgent: Failed to show modal dialog. Dismissing authentication request for action-id com.ubuntu.softwareproperties.applychanges cookie 2-0f1ecbe09af0c05c92604b792d59300e-3-3e590c86bc67800a00339ef27868695c
Dec 07 20:23:28 zanzbar polkitd(authority=local)[1333]: Operator of unix-session:2 FAILED to authenticate to gain authorization for action com.ubuntu.softwareproperties.applychanges for system-bus-name::1.736 [/usr/bin/python3 /usr/bin/software-properties-gtk] (owned by unix-user:axo)
Dec 07 20:23:28 zanzbar software-properties-gtk.desktop[5892]: ERROR:root:Authentication canceled, changes have not been saved

if so then just make your changes from terminal

cd /etc/apt
grep -r rabbitmq

then on matching file

sudo vi sssssssssssss

and comment out offending lines


Ubuntu One: can this be used for backups?

Ubuntu One is not a backup service, and I wouldn't recommend you using it for this.

Having said that, some people—some Ubuntu One hackers, in fact—do use it for this, but you have to know the limitations of the service in this regard (and I'm not going to explain them here).

Furthermore, you should be aware that dejà dup is going to be implementing “back up to Ubuntu One”, using our service as the basis for a backup system and not as a backup system per se. This I fully support.


Ubuntu 11.10 server monitor goes "out of range" (not grub related)

Not sure you have the exact same problem I had or the solution will work for you as my cards were NVidia but maybe using the same method you can solve your problem. I had my monitors going out of range in the past with 10.04 or 9.11 on many machines with old video cards. The solution was to boot in recovery mode and select low graphics from the menu to boot in graphic mode or use a console. Once booted, I had to change the parameter that was making the monitor go out of range using the NVidia Config tool. In my case it was the vertical refresh freq that I had to set @ 60Hz.


Is r8168 installer in ubuntu software center secure and working?

Personal speaking, I've made the experience that r8168 works better on various RTL81XX chips than r8169

Packages installed using APT automatically satisfy all dependencies. So everything required is installed when the package is being installed.

You need, however, prevent r8169 from being loaded after r8168 is installed. The DKMS installation script of r8168 unloads r8169, but it may be reloaded after a reboot.   Thus, open the file /etc/modprobe.d/blacklist.conf (or create, if it doesn't exist) as root and append the line

blacklist r8169

to prevent the module to be loaded again. Ensure that there's a new line at the end of the file, then save and quit.

You can check whether the driver was loaded correctly using lsmod | grep r8168. If it doesn't return anything, the driver isn't loaded. In this case you can load it with sudo modprobe r8168 after you installed it. If it lists the driver module, it's loaded. If you encounter problems with r8168, you can temporarily switch back to the other module by manually loading it: sudo modprobe -r r8168 && sudo modprobe r8169.

IMPORTANT: Note that the driver source on Realtek's website is more current than the one in Ubuntu's repositories. So you may want to download and compile it manually. You can obtain it here.


Can I move the delete the swap partition in an existing installation?

I'm answering my question as I was able to resolve it in a manner that I think I'm satisfied. Please feel free to correct me if wrong. I want other's to get this same question answered the easiest and clearest way possible.

As mentioned, I had Ubuntu 18.10 already running fine. I had this setup.

Partition 1 - efi
Partition 2 - ubuntu /
Partition 3 - swap
Partition 4 - ubuntu /home
Partition 5 - kali /home
Partition 6 - kali /
free space

I went to Kali and used GParted. I was able to delete Partition 3. I added Partition 7 for swap at the end of free space. I tried booting on Ubuntu and it proceeded.

Partition 1 - efi
Partition 2 - ubuntu /
Partition 3 - free space
Partition 4 - ubuntu /home
Partition 5 - kali /home
Partition 6 - kali /
free space
Partition 7 - swap

What I noticed is that in Ubuntu, no swap is being used. So I just used the built-in Disks app, then enabled swap.

Then to check, I did

sudo swapon --show

and got this:

NAME      TYPE      SIZE USED PRIO
/dev/sdc7 partition 7.5G   0B   -2

Something to note, since I'm working on a third disk, the naming scheme is
sdc1, sdc2 then sdc4. The deleted swap file entailed sdc3 'label/tag' to be missing.

Does this mean sdc3 wont be used anymore as a label/tag?

sdc             119.2G
├─sdc1 vfat        94M /boot/efi
├─sdc2 ext4      13.5G /
freespace
├─sdc4 ext4       3.6G /home
├─sdc5 ext4       3.7G
├─sdc6 ext4      14.9G
freespace
└─sdc7 swap       7.5G [SWAP]

Also, if I add another partition on the second freespace, will the numeric partition naming scheme stay the same? i.e. sdc7 will stick at the end of the disk or will there be a rearrangement of name?

What's the implication of losing sdc3?


Bionic, according to wikipedia:

  The Bionic libc is a derivation of the BSD standard C library code that was originally developed by Google for the Android embedded operating system

If you are wondering what the C standard library is, it's a library that all applications written in C use. It contains input and output functions (e.g. printing to a terminal, writing/reading a file, etc...), memory functions (allocating/freeing), etc... Note that the C standard library is actually just a specification for a library (same as OpenGL, and some others), it's not actually a library that you can download and use. This is why there are implementations such as the BSD's (I'll call it the BSD libc, for convenience), GNU's (which, by the way, is included by default in ubuntu, under the name of libc), or, in this case, Bionic. But as wikipedia said, Bionic is based off of the BSD libc, so it's not an original implementation. Now about the actual implementation, I'm not sure what's the difference between Bionic and the BSD libc, but I would think it has something to do with compatability of their devices, or something along the likes of that (since one of the reasons why the C standard library is just a specification is that how the functions work differ from OS to OS).

libhybris is an extension, if you want, to bionic that acts like libdl (source: http://www.phoronix.com/scan.php?page=news_item&px=MTE5Mjk). If you're wondering what libdl is, it's a library that allows applications to dynamically load other libraries into their applications. This is extremely useful (if not impossible to do without) for plugins and such.

Hope this clarifies!


Ubuntu core - login problem-how to force reboot?

To reboot:
Hold down alt and sys-req keys simultaneously. Continue to hold them down while you press the following sequence, waiting several seconds between each key press:
r
e
i
s
u
b

The mnemonic usually used is "Raising elephants is so utterly boring."

If that fails, try the soft switch. If it still doesn't work, maybe pull the plug and wait for the batteries to run down, and hope the power management software will shut it down gracefully.


How to remotely access a ubuntu server on a virtual machine?

I struggled with this until recently, where I found a long-term solution where I could pernamently save my connection settings in PuTTY and WinTCP for convenience.

Personally, I have configured my VirtualBox machine to use two networks:

NAT for access to the internet
Host-Only Adapter to communicate with the VM via PuTTY and WinSCP

In the VirtualBox Manager, I've made just one change to the "VirtualBox Host-Only Ethernet Adaptor" - disabling the DHCP server. By default this should leave you with a configuration like this, assuming the IP address defaults haven't been changed.

Within the virtual machine itself, you need to do two things:

Set your IPv4 address for this host-only network manually to 192.168.56.10, subnet of 192.168.56.0/24, and no setting for other components where applicable (i.e. gateway).
Ensure that openssh-server is installed and running. Use sudo service ssh status to check if its installed and running.
Check that your firewall is either disabled or (preferably) enabled and configured to allow for ssh connections. If you are using ufw you can allow ssh connections via sudo ufw allow ssh.

From here, running PuTTY on your host Windows 10 system should only require you to access the IP address 192.168.56.10 via ssh on port 22, like so. Hope this helps!


How can I install the latest jdk 9 using terminal command on ubuntu 16.04 LTS ?

Install

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java9-installer

Update your environment variable after that

sudo nano /etc/environment

Add / Edit this line

JAVA_HOME="/usr/lib/jvm/java-9-oracle"

Save and run

source /etc/environment

Test if environment variable was set

echo $JAVA_HOME

(Optional) For Linux Mint Users:

sudo apt install gsfonts-x11 oracle-java9-set-default

Update: Oracle Java 9 has reached end of life. Users of Java SE 9 should switch to Java SE 10. Source

To install Java 10, follow this.

sudo add-apt-repository ppa:linuxuprising/java
sudo apt update
sudo apt install oracle-java10-installer

Source


Go to "user account" again, select the newly created user and and under login options, next to password, click on "account disabled" to setup a password.


Where do webapps install after accepting them

There are many ways to find this information.

1) You can find it by opening the .deb that installs them.

As an example, I pick the .deb of youtube's one from here: https://launchpad.net/ubuntu/quantal/i386/unity-webapps-youtube/2.4.10
Open it with archive manager, then look for the file DEBIAN/md5sums and open it with a text editor.
It is

d5bbca2bb83fe5cc16a92e35bf75b26f  usr/share/doc/unity-webapps-youtube/changelog.gz
a4b9f911211d21db51342de237b5dc5c  usr/share/doc/unity-webapps-youtube/copyright
c571c6d100d418b65bcacbb4f78d46d6  usr/share/icons/hicolor/48x48/apps/unity-webapps-youtube.png
0d55340014577968398aab8fcee7409c  usr/share/icons/unity-webapps-applications/128/apps/unity-webapps-youtube.png
c571c6d100d418b65bcacbb4f78d46d6  usr/share/icons/unity-webapps-applications/48/apps/unity-webapps-youtube.png
0e95c345e7aa4a96ac76a94df2c0071a  usr/share/icons/unity-webapps-applications/52/apps/unity-webapps-youtube.png
a7d678d599978f9ac7bffe36d776558c  usr/share/icons/unity-webapps-applications/64/apps/unity-webapps-youtube.png
58beafe67c7b136d0f157c963445c514  usr/share/unity-webapps/userscripts/unity-webapps-youtube/YouTube.user.js
5f8d5ce54c5a7c7c4cca88d5691beedd  usr/share/unity-webapps/userscripts/unity-webapps-youtube/manifest.json

This are the files installed with the webapp.

2) As an alternative you can use apt-file

By using simply

$ apt-file show unity-webapps-youtube
unity-webapps-youtube: /usr/share/doc/unity-webapps-youtube/changelog.gz
unity-webapps-youtube: /usr/share/doc/unity-webapps-youtube/copyright
unity-webapps-youtube: /usr/share/icons/hicolor/48x48/apps/unity-webapps-youtube.png
unity-webapps-youtube: /usr/share/icons/unity-webapps-applications/128/apps/unity-webapps-youtube.png
unity-webapps-youtube: /usr/share/icons/unity-webapps-applications/48/apps/unity-webapps-youtube.png
unity-webapps-youtube: /usr/share/icons/unity-webapps-applications/52/apps/unity-webapps-youtube.png
unity-webapps-youtube: /usr/share/icons/unity-webapps-applications/64/apps/unity-webapps-youtube.png
unity-webapps-youtube: /usr/share/unity-webapps/userscripts/unity-webapps-youtube/YouTube.user.js
unity-webapps-youtube: /usr/share/unity-webapps/userscripts/unity-webapps-youtube/manifest.json

3) You can achieve the same by using dpkg -L

Note that this will work only if the package is already installed.

Anyhow, I don't really know how you can use this informations to kill them ;)


Yes, you can make the directory "sticky" for this, so that when files are created in it, they inherit the directory's permissions:

chmod +t dirname

See the file permissions documentation for more details.

However, when a file is copied into the directory (rather than being created anew there), it will still typically have its original permissions, since copying files generally retains their permissions.


It's been a while since I installed ubuntu except for upgrades, but if I remember correctly the initial installation asks you to set a username and password for the administrator. That would be the person doing the install. You can use whatever username and password you like. I think the last time it didn't like the 7 digit password I had used before and it required an Upper case or special character. But at least it did give me a message telling me when my chosen password was unacceptable.


connect two computers to send and receive data in real time

Right off my head, the easiest way is to use sockets, I am assuming you want the data transfer to be wireless. Sockets is a pretty easy option and you can essentially run the robot(laptop) as the server and the other laptop as a client.
Here is something that might help you get started with sockets: https://www.bogotobogo.com/python/python_network_programming_server_client_file_transfer.php


Is it possible to accept wired phone call (RJ11)?

Since you mentioned RJ11 this likely means you have a standard modem in your computer, this usually means that you need a softphone sometimes called a telephony application that uses the modem to accept and initiate calls using PSTN.

If you can find any such application for Ubuntu that you can install and run properly, what you ask may work, I do not know of any such application I could point you to, and if you are lucky to find anything it will likely be very old.

What is happening nowadays is that VOIP based softphones such as Skype and Ekiga has taken the focus, these phones use packet based methods to communicate meaning that they use your Internet connection to send and receive packets as opposed to a switched network.

When you say all works fine I suppose you mean the modem as well, in short If you do not have a telephony application that uses PSTN running or you modem does not work with Ubuntu then no.


Cannot download Ubuntu using the Windows installer

You can download the Ubuntu .iso, put it in the same directory (folder) as wubi.exe

See also https://wiki.ubuntu.com/WubiGuide#How_can_I_use_a_manually_downloaded_ISO.3F


Several PHP packages in Ubuntu, how to only use the latest version?

The short answer is:

apt-get purge php5-common


How to check if my nvidia discrete graphic card is working now or not?

Try nvidia-smi -q | less in the shell/Terminal/bash

More info: nvidia-smi -h and man nvidia-smi


How can I restart Unity/GDM when I get a blank screen after suspend?

GDM is replaced by lightdm. If you haven't changed it manually.

STOP

sudo stop lightdm

START

sudo start lightdm

As far as I can remember, it has restart also. Try with following

RESTART

sudo restart lightdm


I want to take Backup from ubuntu to other Drive from Terminal

A common technique is to use a Live CD - a standard Ubuntu Desktop (i.e. not Server) installation disc should do well enough, or perhaps a bootable USB key with installation data (made using e.g. unetbootin). It works with other operating systems too, at least when there is a filesystem-type support in Ubuntu (or another Live CD distro for that matter), so you may for example copy data from crashed Windows too.

Just boot the Live CD, mount the disks, plug in a USB key or an external USB hard drive, and copy the data.

This being the preferred way for many people, you may do just the same thing without GUI, so that you don't have to use a Live CD, just the OS you have installed - USB keys or drives usually pop up at /media/ and you may use Midnight Commander (sudo apt-get install mc) or just cp the data to the external drive.


Finally figured out how:

(eval-after-load "speedbar" '(speedbar-add-supported-extension ".php"))

Damn, I know emacs is powerful but why these easy tasks are so difficult to solve.


You need to enable USB 3.0 legacy support in the BIOS if it offers such an option.

Some boards do implement BIOS level "legacy" support which allows keyboards and mice to work on USB 3.0 ports. I've seen it, but it doesn't always work.

Until native core-logic-chipset-based USB 3.0 support arrives, the only option is to have keyboard and mouse plugged in to USB 2.0 ports.  Current chipsets from both Intel and AMD lack native USB 3.0 support.


How to make Ubuntu forget the install state of a package?

There are a number of ways.

If you compile software yourself, then you can uninstall the package. But this is not always good, becuase it may break dependencies. You can just hold a package.

To stop package updates you can run

sudo apt-mark hold <package>


This is normal.

30 seconds is an ordinary time taken for startup - not just for Ubuntu but also for other Linux based operating
systems, Mac OS X and Windows.

There are some things you can do to improve boot speed. See: How to make Ubuntu boot fast?.

The black screen and blinking cursor is most likely due to having proprietary graphics drivers installed. You can fix this by disabling the drivers but you will lose functionality, like 3D effects. There is a work around for enabling a graphical boot with proprietary drivers: Boot screen in low graphics/text mode.


Seems like you are sitting behind a proxy and didn't configure it right. You can see that a connection is build to proxy.iisc.ernet.in and then you get some information on what is downloaded:

Length: 5307 (5.2K) [text/html]

A package file would mostly be larger than 5.2K and it's type is not text or html. This most likely means that your proxy produces some kind of error page that is downloaded instead of the package file, thus the checksum is wrong.

You have to get your proxy settings right. You can find them at System settings...->Network->Network proxy.


Icons for custom mime-type does not show up with Ubuntu-mono-dark theme

I fixed it. I installed them under gnome, Humanity, Humanity-Dark, ubuntu-mono-dark... and finally got it work. I really don't care to know how does this work...
It seems to me that the Inherits= line in index.theme does never fall back to hicolor.


Create and activate a new keyboard layout, but place files outside of /usr/share/X11

I don't think it's possible to do what you want. There are a few possible approaches which are described in answers to other questions.

As regards a .deb file, one way is to write a patch with your customizations and build your own xkb-data package from a custom xkeyboard-config source.

In this PPA you find an example of patching xkeyboard-config including the exact debdiff compared to the source in the Ubuntu archive.


I accidentally deleted Python 2.7 what do I do?

Press Control + ALT + F1 and login, and then type:

sudo apt-get install --reinstall python-minimal


If I understand correctly, you don't have a black screen, but rather are having trouble setting up the correct resolutions? If that's the case, then you should be able to follow this guide.


So Droidcam is working now.
First, I uninstalled Droidcam.
Second, Using the answer by Earl Sablo I tried the following:
sudo update-secureboot-policy --enroll-key

It asked to create a password for the secure boot menu, which I created.
Then I restarted my PC and the secure boot menu asked threw a number of options. Choose "Enter MOK key", and use the password created earlier.
Finally, reboot and reinstall Droidcam. It works fine now.


One way to start the firewall on the startup is to run it using cron using the
@reboot
attribute:

open up a terminal and type :

sudo crontab -e

at the end of the file enter the command:

@reboot systemctl start firewalld

save the file and exit.

The above command will run the command once everytime computer boots up.

UPDATE

Method 2

If you have access to the GUI of ubuntu then open the dash by hitting the start button (windows key).

Type in startup Applications and click on the startup applications icon.

You will get as screen like so:

Click on the Add button and Add the command like so:

And click Add.

You are good to go.


Cannot setup synchronising Tomboy with Ubuntu One

This is a known bug:

  Launchpad Bug #845321

  When setting up Tomboy to sync with Ubuntu One I'm unable to click Save in the Synchronization tab in Tomboy Preferences.

  After getting the "Tomboy Web Authorization Successful - Please return to the Tomboy Preferences window and press Save to start synchronizing." screen in my browser I'm unable to actually click Save.

  The Tomboy Preferences is stuck at "Authorizing in browser (Press to reset connection)" and the Save dialog is grayed out.

In the meantime before it is fixed, you could try the workaround described in comment #16:

  The save button was always greyed out for me. Today I tried again and found out, that editing the server field enabled the save button for me.

  Edit server field. (Add a character and remove again)
  Connect to server
  Save


As your laptop model is “DELL Inspiron 17R-5720” it should have “Intel HD Graphics 4000” graphics adapter. This hardware should be more than enough to play 1080p videos and therefore problem is most likely with the driver (piece of software that makes it possible to use certain hardware).

From the output for sudo lshw -c video we can see that the driver installed for graphics is the open source driver (i915) that was installed automatically with Ubuntu. As you are experiencing problems with this driver you should try alternative one that you can get directly from Intel:
https://01.org/linuxgraphics/downloads

“Under Linux Graphics Installer” choose either 32 or 64 bit Ubuntu version according to what version of Ubuntu you using. I know it says it is for 13.04 but let's hope it works also on your 12.10. Install the package and it should install the correct driver for your hardware. Hopefully it will fix your problem.

It is also worth to remind you that when installing drivers from other locations than official Ubuntu repositories it can introduce new problems to your system. But let's hope that this time everything will work out just fine.


I Develop a project on "monodevelop" but stuck in debugging it from .exe file. What should I do?

MonoDevelop is an IDE for making .NET applications that can run on anything with a .NET runtime. Your EXE can run on any Linux machine with Mono installed. The same file will also run on Windows (assuming you are using basic cross-platform practices). Applications like this are in the Portable Executable format, so they have the EXE extension that specifies this (Windows won't execute it otherwise).

"Mono" is the name of an implementation of the .NET runtime for Linux systems. Since you are already using MonoDevelop, I bet your system already has Mono installed and working. You can run it with mono by using a command that is something like this:

mono application.exe

P.S. - I've noticed that explicitly specifying mono isn't necessary on my most updated systems. I don't know the details, but I can now execute such apps even more simply. Like any other linux application:

./application.exe


How do I get kate to restore last used session?

Open ~/.kde/share/config/katerc and verify if these are in there:

[General]
Last Session=mysession.katesession
Restore Window Configuration=true
Session Exit=save

There has been a long outstanding bug where sometimes some of the settings are not properly saved.


"Can't find disk drive" during Ubuntu Karmic server install

Karmic has reached end of life and is no longer supported.  Use a supported release.


How to recover files from external hard drive after being selected in Unetbootin

The file system which used to be there is totally screwed up. However, this doesn't mean that all data is lost. Testdisk includes the program photorec (which you can launch with this command from the terminal) which uses a different approach and probably will be able to recover what's left of your data.

Note that the file names won't make any sense and that recovered data doesn't necessarily have integrity.


HP 2.4GHz Wireless Mouse not responsive after upgrade to ubuntu 17.10

You may try switching back to Unity, as I did. That solved a lag I observed in my mouse's movement. It seems like Gnome doesn't like my hardware.

Here's a how to:
https://itsfoss.com/use-unity-ubuntu-17-10/


Are Apache, PHP and MySQL installed by default?

No they don't come with the desktop version of Ubuntu 13.10 by default. You have to install those three by yourself. For "how to install" please go through this link .


Ubuntu by default gives warning messages when the battery is running low. That it doesn't strongly suggest that your battery is starting to fail. A degraded battery looses capacity, and may suddenly loose power, rather than gradually.
You may be helped temporarily by setting the warning levels higher. See this answer to learn how this could be configured.
Adapting the thresholds may trigger warnings earlier, and allow you to be warned in time. Still, in practice, these warnings may, if they appear, appear very soon if your battery is already in a very bad shape. The only fundamental solution then will be to install a new battery pack. You will be good then for at least another three years.


apt-get errors after TeX Live 2012 update with tlmgr

Finally, I uninstalled all TexLive-related packages which let the error messages disappear.
Here is what I did ...

sudo apt-get remove tex-common texlive-base texlive-binaries texlive-common \
  texlive-doc-base texlive-latex-base texlive-local texlive-latex-base-doc
sudo apt-get autoremove
sudo apt-get autoclean

I will probably use the advertised texlive-backports PPA to reinstall TexLive.

I also found out that the MANPATH problem originated from a custom configuration I made somewhen. This was indirectly loaded from my .zshrc file.

# TexLive 2012
export MANPATH=/usr/local/texlive/2012/texmf/doc/man


How do I deal with too many levels of symbolic links?

I suggest you use rsync rather than cp to backup data as you want to do it. Rsync has a few options to deal with symlinks. A sym(bolic) link is simply a link to another file. It is a bit like a 'shortcut' in windows language.

    -l, --links                 copy symlinks as symlinks
    -L, --copy-links            transform symlink into referent file/dir
        --copy-unsafe-links     only "unsafe" symlinks are transformed
        --safe-links            ignore symlinks that point outside the tree
    -k, --copy-dirlinks         transform symlink to dir into referent dir
    -K, --keep-dirlinks         treat symlinked dir on receiver as dir
    -H, --hard-links            preserve hard links

Here is an easy example:

sudo rsync --verbose --recursive --links --perms --executability --owner --group --times /media/some-user-name/the-c-drive-you-want /media/some-user-name/the-external-drive

Use the option --dry-run for a hypothetical run that does not write anything to your external drive.

Read the man rsync for more information on the different options.


libtool installed but not on path after installation

fixed it

sudo apt-get install libtool-bin


I just had to fix this on Ubuntu 16.04 myself.  I did the following:

Navigate to https://launchpad.net/ubuntu/xenial/amd64/libmotif4/2.3.4-8ubuntu1 and download the .deb file.

Run the following from the directory where the file was downloaded to:

sudo dpkg -i libmotif4_2.3.4-8ubuntu1_amd64.deb

During this process it will complain abot not having libmrm4, libuil4, and libxm4 in that order.

Now simply run the following command to fix the unmet dependencies:

sudo apt-get -f install

You should be up and running.  As of June 1, 2017, the link above was good.  Hopefully it can last awhile longer.


Using gparted you can do two primary partitions, one in ext3, the other one in fat32.

I didn't think that you can use an ext3 partition in this purpoise...

bye


uninstalled Ubuntu One but still seeing `com.ubuntu.one.fsevents`

Go to your HD in your Mac and choose the Library folder and go to the subfolder LaunchDaemons. There you can delete the offending file.


How can global menu / HUD be fixed for Audacity in 16.04?

I've finally found a solution to this, although by accident. Launching audacity via pasuspender actually fixes the HUD menu issue for some reason. And it does it consistently, every time. So by launching Audacity with the command:

pasuspender audacity

the globalmenu/HUD is reinstated. Also, Audacity is very stable as a result.


I upgraded to 11.10 but my home partition is missing, how can I recover it?

Aha, I found the answer here: /home partition not recognized

Cut & paste for convenience:

To restore your /home do this:

Note This will mount over your current /home if it exists. To fix this enter a terminal and sudo umount /home this will display the root partition /home directory contents which you can then move to a temporary location. Reboot or remount your home partition and move the data into /home again

Execute in a terminal:

sudo blkid

And note down the UUID and TYPE of the partition containing your old /home (you can get more info executing sudo fdisk -l)
Execute:

gksudo gedit /etc/fstab

and add a new line at the end with the following syntax:

UUID={UUID} /home {TYPE} defaults 0 2

Replacing {UUID} and {TYPE} with the respective data.

**Be sure that there is no other line with the mount point /home, or they will conflict (if there is, comment it out using #)*
Reboot


How can I format my drive to have multiple partitions?

Create the new partition and write the changes to disk. Note the device that is associated with the partition: it will be something like /dev/sda5.

Fire up a terminal, then execute:

ls -l /dev/disk/by-uuid/

Locate the device that you created. The output will look like this:

lrwxrwxrwx 1 root root 10 2010-10-10 12:00 35746711-2b3a-44bd-b75e-e9782243dbce -> ../../sda5

You need the device's UUID - in my case, that is 35746711-2b3a-44bd-b75e-e9782243dbce. Take note of this value.

Then, mount the root partition (using normal Gnome/KDE/similar interface) and edit the file named /etc/fstab inside that partition. The command is:

sudo gedit /media/YOUR_PARTITION/etc/fstab

To edit that file and copy your old files, follow the instructions here. You will need to change the UUID and the filesystem type, of course, from what is in that post.


I just cloned my HDD to my SSD with Clonezilla and my boot time is much slower than on my HDD, can anyone help?

My recommendation would be to format the SSD and do a BACKUP of the HDD to some external drive. Then reinstall the OS completely onto your SSD without cloning. Then go to your system settings and do a backup restore from the external drive. Hope this helps!


How to restore Windows XP menu entry in GRUB?

This site should give you everything you need.

Btw, if you are on Ubuntu 10.04 or 10.10 you won't see a /boot/grub/menu.lst, because that's not what grub uses anymore.


You can try with wine but since PlaxOnLinux is just tweaked wine then I think you won't make it work. You can access paltalk with this: http://express.paltalk.com/


Was ubuntu installed on a different drive? Error: no such device: ... Entering grub rescue

Yes, Ubuntu was stored on a different dive, the 2TB HDD. So the best thing to do was to reinstall Ubuntu 16.04.2 on the new SSD along with Windows 10. As user: oldfred mention in the comments of the question. I had to install both OS in UEFI for them to work properly with this MSI 970A-G43 PLUS mobo. Because otherwise it would boot into Windows 10 and not Grub for OS selection.


How to fix/resume a stopped do-release-upgrade

For me, what it fixed it was a simple

apt update
apt install python3-aptdaemon

Then with apt upgrade all seemed fine.


Updating Ubuntu from inside the corporate network

Go to System Settings | Network | Network Proxy and Apply System-Wide, that will configure Ubuntu to use the corporate proxy for Internet access across all applications.

If you would like to set the proxy explicitly for your console session, ie. the terminal window you are currently using you can use the export command:

export http_proxy="address:port"

Hope this helps.


Well, you could try to reload XFCE.

XFCE stores it's configuration for the running session in xfconfd. Feel free to back up the files you're going to delete first.

Shut down the panel first, xfce4-panel --quit
Kill the xfce4 configuration daemon, pkill xfconfd
First delete settings for the panel, rm -rf ~/.config/xfce4/panel
Clear out the settings for xfconfd, rm -rf ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
Restart the panel, run xfce4-panel. This will respawn xfconfd automatically. Note if you need or want to restart xfconfd manually know that on my installation it was in /usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd which was outside of $PATH.

This clears the running session, regenerates the files, and then it sets it default for future sessions.

Hope this helps!

(Based from here: https://askubuntu.com/questions/224006/resetting-xfce...)


Short answer:
You may want to try using TestDisk and PhotoRec from http://www.cgsecurity.org/ to recover your data. Depending on how corrupted the data is, it might be possible to recover most of your data including the partition table. Worst case, you may be able to at least recover your files partially.
Long answer:
It appears you may have selected an option to reformat your partition table / partitions as LVM instead of the usual MBR/UEFI format if the former, or instead of a FAT32/NTFS system if the latter. This means that the part of the hard drive which Windows 8.1 used for keeping track of where each part of which file is (let's call it a file index) might have been corrupted to a varying degree.

This means that the files may be still there (or partially there, if the LVM format process overwrote the part of the hard drive where a file or a file fragment was stored), just not in a format which your operating system can recognise immediately as the OS depends on the index to work. PhotoRec tries hard to find files without using an index, which means that:

The folder structure and file names might not be preserved. This means that the items may unordered, all placed in the same folder upon recovery and with auto-generated names (or partially-recovered names in some instances), even if the files themselves are recovered in their entirety.
Some files may not be contiguous (i.e. occupying a single continuous chunk of hard drive space), which is not normally a problem as the index stores the information on which chunks of the file are located where. Parts of the index may be missing, so some files may be recovered as cut-up in several pieces.
Before you begin recovery, you must select which file types you want PhotoRec to look for. File detection is done using pattern matching, so it may produce false positives/negatives. Pick carefully.
Try TestDisk first. It doesn't do such a deep scan as PhotoRec, but it may be able to recover some partition table/file system structures and you might not need to do a PhotoRec scan.


Everything get [Permission Denied] Ubuntu Core

Have you installed or did you boot the demo?

If you have installed, delete ubuntu and and any partitions on your HDD. Run the demo and make new partitions like so:https://www.linuxliteos.com/forums/installing-linux-lite/partition-alignment-prompt-at-install/

Install ubuntu and make sure you have it set to NO PASSWORD


RTL8821CE wifi driver - can't connect after suspend or change network on Ubuntu 18.04 (Kernel 4.15)

EDIT2: rtl8821ce driver will be included in kernel 5.9 probably, meanwhile you can try https://github.com/lwfinger/rtw88. I've been using it for a while now and it doesn't seem to have these issues. The driver is still new so expect bugs.

EDIT: Fresh install of ubuntu 18.10 (uefi) solves the problem permanently, you don't need to follow the below steps, just install ubuntu 18.10 and build the wifi module. It then should work flawlessly. There are, maybe, some bugs in ubuntu 18.04 LTS version which had been fixed in version 18.10

The main issue is that the wifi driver installed by dkms does not reload itself after suspend for some unknown reason.
I HAVE RTL8821CE AS MY WIFI CHIP SO MY KERNEL MODULE IS NAMED AS 8821ce
Open terminal login as root by issuing command sudo -s then issue the following commands (you may also use sudo instead of logging in as root)
modprobe -r 8821ce and
modprobe -i 8821ce
these commands will reload the wifi modules and your wifi will work again after suspend.
I found a temporary workaround so as to avoid issuing those commands every time you resume from suspend.
NOTE:

THIS WORKAROUND SOMETIMES WORKS AND SOMETIMES DOES NOT WORK

THIS MIGHT BREAK YOUR SUSPEND/RESUME BUT YOU CAN SIMPLY REVERT TO PREVIOUS STATE BY DISABLING THE SERVICE AND DELETING FILES.

The steps are;

Create a script that issues the above commands at resume (not at suspend) by

sudo nano /etc/pm/sleep.d 20_anyname.sh (replace anyname with anything of your choice)
and enter the following lines in the script
#!/bin/sh

# This script Restarts rtl8821ce kernel modules
# Use this if your wifi not working after suspend/resume

case "${1}" in
        resume|thaw)
               sudo modprobe -r 8821ce
               sudo modprobe -i 8821ce
;;
esac

then press CTRL+X and save changes by entering yes
Make sure that proper permissions are granted by
sudo chown root:root /etc/pm/sleep.d/20_anyname.sh
sudo chmod 755 /etc/pm/sleep.d/20_anyname.sh

Create a systemd service by

sudo nano /etc/systemd/system/somename.service
Enter the following text
[Unit]
Description=Wifi Resume Service
After=sleep.target
After=hibernate.target
After=hybrid-sleep.target

[Service]
Type=oneshot
ExecStart=/path/to/your/script

[Install]
WantedBy=sleep.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target

and save by CTRL+X then type yes then enter.
Then make sure proper permissions are granted by
sudo chown root:root /etc/systemd/system/somename.service
sudo chmod 755 /etc/systemd/system/somename.service

Enable your script using
sudo systemctl enable somename

Reboot and enjoy

AS I SAID BEFORE IT SOMETIMES WORK AND SOMETIMES NOT. I really don't know why is that so. To get a fully working wifi you need to wait for developers to put the bug free module in upcoming kernels as rtl8821ce is still a new chip.
First enable your local wifi network then suspend your laptop. Now to tell whether the script succeeded or not see the top right corner just after resume if you don't see any kind of wifi sign then you are good to go and if you see a wifi sign at first sight then script failed.
To see errors journctl -u somename.service


robotframework not able to work for a while, and then goes back to normal later. [ ERROR ] Execution stopped by user

Simply found a sys.exit(1) in a exception handling code block.
This won't give you any description, if you want to have more exception detail, please use robot buildin to raise excepions.


Fresh install could be the only fix. It's hard to know what it could have been writing, at the time the power was lost.

You should boot into it with a live disk first, and see if you can access anything in terms of media, or important files you'd want to back up externally.


I presume you are trying to install that package using sudo dpkg -i package, well, that normally leads to package dependency problems so normally I suggest the use of gdebi. If you have any problematic package remove it. You can check using sudo apt-get check. Now down to business:

sudo apt-get install gdebi-core

With that we have ready gdebi. Now if you use a 64-bit system you may like to install the 64-bit package, likewise with 32-bits.

Now here comes the funny stuff...

sudo gdebi graphviz_2.37.20140208.0545-1\~saucy_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Building data structures... Done
This package is uninstallable
Dependency is not satisfiable: libgd2-noxpm (>= 2.0.36~rc1~dfsg)|libgd2-xpm (>= 2.0.36~rc1~dfsg)

And here is where you stop. The reason is that the stable package depends on package that were dropped of Debian, ergo Ubuntu 13.10:

libgd2 (2.0.36~rc1~dfsg-6.1) unstable; urgency=low

  * Non-maintainer upload.
  * Support multi-arch: (closes: #652496)
    - Mark libgd2-xpm, libgd2-noxpm, libgd2-xpm-dev and libgd2-noxpm-dev
      as same.
    - Adjust d-shlibs and dh-buildinfo build-dependency.
  * Drop .la files.

 -- Bastian Blank   Sun, 13 May 2012 09:16:37 +0000

Those are dependencies of graphviz so they should change them to libgd2-xpm-dev and libgd2-noxpm-dev respectively. If that's the case, you should download the latest build instead 2.38 or later, which includes the correct dependencies.


How can I use Cisco WebEx in 64-bit Ubuntu?

If you can join the meeting, Java (OpenJDK 7) is working correctly. You just need to install the following 32-bit packages:

sudo apt install libpangoxft-1.0-0:i386 libxv1:i386 libpangox-1.0-0:i386

Source: http://ubuntuforums.org/showthread.php?t=2220667&page=2&p=13053998#post13053998

(See that thread for details on identifying required packages. You may need to do this again once 14.10 and future versions come out. The relevant links are http://linuxsagas.digitaleagle.net/2014/02/07/webex-on-64-bit-ubuntu-13-10/ and How to I make Cisco WebEx work with 13.10 64bit? )


Laptop loses power while updating then Failed to start AppArmor initialization?

If you are sure your root partition contains no errors, try to remount it:

mount -o remount,rw /

and run dpkg again:

dpkg --configure -a

If you aren't sure your root partition has some errors caused by power interruption, force a check of all filesystems:

fsck -Af -M

The last fsck command will check all of the filesystems except mounted. To force check of root filesystem look at list of partitions first:

fdisk -l

find your root / partition, for example, /dev/sda1 or something like this and run fsck for the root filesystem:

fsck -f -y /dev/sda1

Finally reboot computer

reboot

and try to fix error again using dpkg and mount as stated above.


Creating a repo with git( or any version control)

GitHub Micro-Server Method

To do this, you will need a public key. Info on generating one can be found all over the internet. Do that now. You'll need it in a sec. You will also need the openssh-server package installed.

First off, you need to prepare the environment for Git. To do this, you need to make a user.

sudo adduser git
su git
cd
mkdir .ssh

This user will do all of the Git functions. You're gonna need your public key here. Simply run:

cat /path/to/your/public/key.pub >> ~/.ssh/authorized_keys
chmod -R go= ~/.ssh

Now, you have SSH and the Git user completely set up. Now, we need to make a Git project. To do this, run these commands (still as Git user):

cd ~
mkdir git
cd git
mkdir project.git
cd project.git
git --bare init

You must shell in and do the above commands everytime you want to make a new repo. More details later. I promise!

Now you have a working Git server you can connect to! You can do all the fun stuff you like doing with Git now!

cd myproject
git init
git add .
git commit -m 'initial commit'
git remote add origin git@localhost:/home/git/git/project.git
git push origin master

You can of course invite other people on your local network to use this Git server, as long as they connect with your local IP instead of localhost.

Now, one project is most likely not enough for you. Fortunately there's a simple way to add/remove repos. Run the following commands:

su git
cd ~/git
mkdir project_name.git
cd project_name.git
git --bare init

Then, just connect to the other Git repo when you need to. It's all just changing variables!

You can also (if you want) have a web interface to Git. Info is available from the GitHub official source.

Source for this guide: git-scm.com -- It is a great place for learning how to start a Git server. Start from 4.4 (linked) and move onwards.

file:/// URI Method

Feh. As @muru pointed out in a comment, Git supports the file:/// URI. Here is a way to do it with no users, but no more micro-server in case your friends come over to play.

As you:

cd ~
mkdir .git-projects
cd .git-projects
mkdir project.git
cd project.git
git --bare init

To connect:

cd myproject
git init
git add .
git commit -m 'initial commit'
git remote add origin file:///home/user/.git-project/project.git
git push origin master

I personally like the microserver better. You can move it easier, esp. if you get a VPS.

Final Comments

The SSH server method does not allow you to save to an external hard drive (easily), but the file:/// method does. Just change the paths!

You could, theoretically, make the "git" user's home on the external hard drive, but that might cause more troubles than good.


Slow transfer to external USB3 hard drive

Had to move extras to secondary usb card slot. Drive is faster when it is not sharing connections with kbd mouse bluetooth etc.


"But is referred to by another package." - Finding that package

Sometimes this happens because APT just doesn't know anything about what you're talking about, but that can be solved by running:

sudo apt-get update

After running this, typically the error goes away because apt and apt-get know how to do what I ask now.


Is there a way to edit the Nautilus "Other Application" menu

Right click on an image file and select : 'Open With Other Application'
Then right click on the application that you do not want to be on that menu.
Click on 'Forget assocation'


Just format drive in FAT32 fs and extract contents of Windows.iso to it.
Replace /dev/sdX with appropriate device:

mkfs.fat -F 32 /dev/sdX1 -n WINSETUP
mkdir -p /mnt/WINSETUP /mnt/WINSOURCE
mount /dev/sdX1 /mnt/WINSETUP
mount ~/Downloads/Windows.iso /mnt/WINSOURCE
cp -rv /mnt/WINSOURCE/* /mnt/WINSETUP


how to transform panel ubuntu in panel style apple finder (watch the picture)

Use this link to make your ubuntu look alike mac. It gives option to change font, icons add docky, Spotlight etc.

It will look something like this mac desktop when done.

I have tried this and steps are easy to follow. I hope it helps.


What does .tar-1 in a filename obtained by gunzip a tar.gz mean?

You would see this behavior if your gunzip is aliased to gunzip -N and the original file name was filename-1. To illustrate:

$ ls
filename-1
$ gzip filename-1

$ mv filename-1.gz filename.gz

$ gunzip -Nv filename.gz
filename.gz:     -0.5% -- replaced with filename-1

From man gunzip:

   -N --name
          When  compressing,  always  save the original file name and time
          stamp; this is the  default.  When  decompressing,  restore  the
          original  file  name  and  time stamp if present. This option is
          useful on systems which have a limit on file name length or when
          the time stamp has been lost after a file transfer.


How to add unallocated space to partition in this particular case?

The problem is that the partition is locked - you can see the little key icon next to the partition name.

The partition is locked because it is mounted. The easiest way around this is to boot from a live USB or CD (a live Ubuntu CD for example). Then you can unmount /dev/sd2 if it happens to be mounted, then you can make the partition size change.


got it working following this post with one fix: remove "www" from remote server name, wherever it in conf files.


Any program that use Java needs to be run under sudo?

If you can only access javac (the java compiler) with sudo access you might have permissions issues. The following command should do it for you:

sudo chmod +x  `which javac`


Cannot use Python apps after Ubuntu 18.04

After trying the manual install of pyopenssl 18 again I noticed the path it was installing to: /usr/local/lib/python2.7/dist-packages

So I went digging in that directory and saw a folder called:

OpenSSL

which was referenced in the error. I renamed this folder and re-installed pyopenssl and the error is cleared. I don't have any issues accessing HTTPS sites so it is possible this is a deprecated module replaced by pyOpenSSL?


This will list you all broken links:
    find . -type l -exec sh -c "file -b {} | grep -q ^broken" \; -print


moc (Console audio Player) produces no sound (but no errors either)

I eventually found the alsa device i should have been using. I explicitly need to set the alsa server to: sysdefault instead of default.


Photoshop alternative with same keyboard shorcuts

You may want to try GIMPshop,

(http://www.gimpshop.com/ fake website, Thanks @Glutanimate)

  GIMPshop is essentially Gimp with some cosmetic changes. The Gimp’s menu structure and naming conventions are a constant source of frustration for users accustomed to Photoshop.

Source: https://en.wikipedia.org/wiki/GIMPshop

  An upstream source site housing the original files for this mirror is no longer available.

  GIMPshop is a modification of the free/open source GNU Image Manipulation Program (GIMP), intended to replicate the feel of Adobe Photoshop. Its primary purpose is to make users of Photoshop feel comfortable using GIMP. It shares all GIMP's advantages, including the long feature list and customisability, while addressing some common criticisms regarding the program's interface: GIMPshop modifies the menu structure to closely match Photoshop's, adjusts the program's terminology to match Adobe's, and, in the Windows version, uses a plugin called 'Deweirdifier' to combine the application's numerous windows in a similar manner to the MDI system used by most Windows graphics packages. While GIMPshop does not support Photoshop plugins, all GIMP's own plugins, filters, brushes, etc. remain available

Source: https://sourceforge.net/projects/gimpshop.mirror/


Upgrade 13.10 to 14.04 broke grub - now boots straight to Windows 8

Try to run a Grub Customizer from your Ubuntu installation, if you are lucky you will be able to revert and re-order your boot entries from there.


Eclipse using high CPU after upgrade to Ubuntu 16.04

This is a bug related to GTK3. To correct it, it is necessary to force eclipse to use GTK2. I noticed a decrease in CPU consumption, yet consumption remains significant.

Add these 2 lines before the line --launcher.appendVmargs in eclipse.ini:

--launcher.GTK_version
2

More information at:

https://bbs.archlinux.org/viewtopic.php?id=200053
https://bugs.archlinux.org/task/46885


is there a way to turn off the drag to maximize thing?

The answer should be the same since it's a compiz plugin that is responsible for that.