Unable to drag & drop files to Lubuntu 16.10 guest in VMware

It was actually about installing the VMware Tools properly. So I've reinstall Lubuntu 16.10 today and my problem was fixed now.

  I'm leaving this answer in case someone has a similar issue.

The following steps fixed the problem for me (this is also useful for some beginners):

To install VMware Tools, click; VM > Install VMware Tools from the VMware menu bar while the virtual machine is running
Open Terminal and enter as super user to acquire root privilege; sudo su (requires the account's password)
Change directory to the mounted media; cd "/media/username/VMware Tools" (replace username with your account's username)
Copy the VMware Tools package from the media to the temp directory; cp VMwareTools-version.tar.gz /tmp (the version will be the version of the tools). In any case, you can copy the package to wherever directory you prefer (E.g Desktop)
Change directory to the temp directory; cd /tmp (or to the directory you choose to copy the package)
Using the gunzip command to uncompress the package; gunzip VMwareTools-version.tar.gz
Extract the package contents verbosely; tar -xvf VMwareTools-version.tar.gz
Change directory to the install files directory; cd vmware-tools-distrib
Run the install script; ./vmware-install.pl and follow the instructions (the media will automatically unmounted when successfully installed)
Finally, reboot the OS to apply the changes

  Notice: If you're encountering errors when trying to drag and drop files from host to guest, then you can copy the file and paste it to the virtual machine directly (or JUST simply copy-paste the file(s))


Unity plugin is swalling SUPER+P keybindings

Which version of Ubuntu you are using?  This is probably a duplicate questions, which is answered here

How to disable global <Super>-p shortcut?

You can also find info on how to take control of Super+p here: --> A hack to rescue Super+P from gnome-settings-daemon  One of the answers in the above link uses this solution.


If you receive this message:

    Stack Overflow requires external JavaScript from another domain which is blocked or
    failed to load.

  The Stack Exchange sites fetch jQuery JavaScript libraries from a
  Google domain. When these fail to load, the "external JavaScript"
  warning is shown (but only when the SE JavaScript from another domain,
  sstatic.net does load successfully).

  So: be sure that ajax.googleapis.com is not blocked by, for example:

  a firewall
  add-ons such as Privoxy or SafeScript
  a malicious virus with a DNS-changer

Source: "Stack Overflow requires external JavaScript from another domain" message


Error: File not found without any grub menu

You can try this application named Boot-repair
Boot-Repair - how to use

1 Boot Ubuntu from a Live USB

2 Connect to the internet

3 Open a terminal, and add the Boot Repair PPA

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

4 Install Boot Repair

   sudo apt-get install -y boot-repair && boot-repair


I can't change any user settings with my login, why?

PolicyKit-based tools don't work over remote connections, as evidenced by the two following bugs:
https://bugs.launchpad.net/ubuntu/+source/policykit/+bug/230656

https://bugs.launchpad.net/ubuntu/+source/policykit/+bug/614291

I'd suggest clicking the "this bug affects me too" link on the second one (since it is more generic than simply xdmcp, which is no longer supported by default) to get it higher on developers' radars.


1.Run a command, it means run a command and a program name is not a command most of the time.

2.I would guess this may be a gnome or gtk issue/feature. I can use shorcuts while using context menu in Firefox and LibreOffice.

3.You can select the column view to show files details and in Nautilus preferences you can set which details to show. It is true Nautilus has been striped of many of it's features but you can also try Nemo, a Nautilus fork that keeps many of it's features.

4.Sounds like you have automatic login enabled, just disable automatic login and you should have no issues.


How to change default boot with two Ubuntus?

You probably have the grub bootloader installed in two different locations, with different defaults for each. From your 11.10 install (i.e. the one you want to be default), run

sudo grub-install /dev/sda

then

sudo update-grub.

This should ensure that 11.10's version of grub is booted first when you turn on your PC.


after 18.04 beside Win10 UEFI, machine only boots windows-no OS menu

After reading and trying many things, I found an answer in forum question #485261.

This is what worked for me.

I recommend trying the following command in a Windows Administrator Command Prompt window:

bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

(If you've disabled Secure Boot, you can replace shimx64.efi with grubx64.efi, although either should work with Secure Boot disabled.)

Since I have secure boot disabled, I did:
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi


Is it a good idea to share partitions between distros

Although it is possible, I would recommend against using the same home folder across different distros. The reason for this is that different distros will have different applications and application versions. This can cause defaults to not be right, or change them for other distros. Especially when trying out several different distros, it may leave your settings in your "distro of choice" all muddled, and impair your view of how different distros are meant to look out of the box. You may end up with more headache than it is worth. If you just care about your documents in your home folder, I would suggest just mounting it somewhere accessible in your other distros, but not as your home folder.


After researching this myself recently I settled on batti.

Batti is:

a very lightweight gtk app written in Python
easily installable from source
shows detailed battery information including time remaining when you hover over the indicator
Allows you to suspend/power off by selecting from the menu after a left click.

It's available from here.

Once downloaded and unpacked, simply call

sudo python setup.py install

Add batti to your autostart menu to have it load when you login - in your case just add it to your .fluxbox/startup file.

Some screenshots of batti in action (it's the battery icon, not the lightning symbol - that's jupiter power management applet):


Network manager doesn't find my wired conection

Read these common guides on Ubuntu Documentation (10.04):

Wired (LAN)
Wired troubleshooting
Wireless troubleshooting


Ubuntu 16.04: Unattended-upgrades runs at random times

After debugging this I found the solution.

The root cause of this issue resides in the fact that under Ubuntu 16.04 and newer, unattended-upgrades uses systemd - not cron - to schedule the updates with a huge randomized delay:

/lib/systemd/system/apt-daily.timer is configured with

OnCalendar=*-*-* 6,18:00
RandomizedDelaySec=12h

This means that it will run twice a day, at 6:00 and 18:00, with a random delay of up to 12 hours. As this is not always acceptable for production environments, I had to override these settings.

In order to keep the package config files untouched, I defined my override in /etc/systemd/system/apt-daily.timer.d/override.conf (Update: please read the edit at the bottom of this answer for further information on filename and location, as it seems to be slightly subject to change).

There I set

[Timer]
OnCalendar=
OnCalendar=06:00
RandomizedDelaySec=1h

to have unattended-upgrades run at 6:00 plus a random delay of up to an hour.

Then I simply restarted the timer with systemctl restart apt-daily.timer (eventually need to reload the daemon).

Unattended-updates now runs at predictable times again!

Edit:
It would seem as if for Ubuntu 18.04 things changed a bit. The override should now be stored in /etc/systemd/system/apt-daily-upgrade.timer.d/override.conf and look like this:

[Timer]
OnCalendar=*-*-* 6:00
RandomizedDelaySec=1h

@PerlDuck has mentioned a way of creating an override file with the right name and location in a comment below. Instead of manually creating a file, please consider running sudo systemctl edit apt-daily.timer


Just installed ubuntu 14.04 but after restart it wont boot neither windows

This one

  Reboot and select a proper boot device or insert boot media in
  selected boot device and press any key.

sounds for me like a message from the BIOS not finding any boot device.

Did you install grub? The pasted snippet says "no grub" for all partitions (~lines 266). You may try the grub repair instructions mentioned in this answer: How can I repair grub? (How to get Ubuntu back after installing Windows?)


I have no idea what's going on with the screen

With: CTRL + ALT + F2

You can shut down the GUI. Login with your username.

Installation without X / from the console
From Ubuntu 14.04 and up

The jockey-text command was removed with the release of Ubuntu 14.04. You can now use ubuntu-drivers to get the list of packages for each driver, and then install the packages using apt-get. For example:

$ sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
vendor   : NVIDIA Corporation
modalias : pci:v000010DEd00000DDAsv000017AAsd000021D1bc03sc00i00
model    : GF106GLM [Quadro 2000M]
driver   : xserver-xorg-video-nouveau - distro free builtin
driver   : nvidia-304-updates - distro non-free
driver   : nvidia-304 - distro non-free
driver   : nvidia-331 - distro non-free recommended
driver   : nvidia-331-updates - distro non-free
$ sudo apt-get install nvidia-331

After the installation:

reboot


How to scan my flash drives for Windows viruses while on Linux? (Not ClamAV)

Suggest installing BitDefender for Linux which offers a free personal use license.


mysql doesn't ask for root password when installing

You can recover or set root password without knowing the current one by starting mysql without loading the grant-tables.

Please note the $ in the commands.  This is specifying the terminal prompt you see when typing in the command.  It's showing it's a line of text, but and actual typed terminal command.  The "mysql>" prefix is also a prompt.  That is the prompt you get when running mysql interactivately.

This is the cli (command line) to do this:
(Be sure to stop the current server before performing the steps.  Only one server can run at a time.)

$ sudo mkdir /var/run/mysqld; sudo chown mysql /var/run/mysqld
$ sudo mysqld_safe --skip-grant-tables&

Now you can log in as root without a password and perform all commands, as in this case, set the root password as root.

$ sudo mysql --user=root mysql

This is the set root password that you will perform inside mysql if you have MySQL 5.6 or below:

mysql> update user set Password=PASSWORD('new-password') where user='root';
flush privileges;

In MySQL 5.7 or above

mysql> update user set authentication_string=PASSWORD('new-password') where user='root';
flush privileges;

From there, quit (kill the running msqld) mysql and start it as normal.

Notes on starting and stopping the mysql service:

Stop mysql:

$ sudo service mysql stop

Start mysql (normal):

$ sudo service mysql start

Kill the temporary mysql safe mode session:

$ sudo mysqladmin shutdown


switched to ubuntu from windows but the network is still a windows network

Just right click on any folder and select sharing options. You should be able to see the shared folder from the other computer.

BTW you can still change your router configurations from the Ubuntu machine. Open firefox/Chrome, type the router IP address (likely 192.168.1.1 or 10.0.0.1), type user/password (if prompted for it) and change the config as you please.


You will have to decide it it is easier to get that wireless card up and working or purchase an alternate card. You can get a wireless card (usb or internal) that works with Linux for 10-20. With the price dropping, I usually purchase a new wireless.

At any rate, I have no experience with your card, but to get it working you will likely need to download the firmware and build a custom kernel.

These pages have the background information you will need:

http://labs.igep.es/index.php/How_to_setup_Marvell_88w8686_SDIO_wifi

http://wiki.laptop.org/go/Libertas

https://help.ubuntu.com/community/Kernel/Compile

The fact that these cards work with OLPC is very encouraging, not sure if the firmware alone will be sufficient or if you will need to read the third link and compile a kernel.

Wish I could give a better answer,but without experience with this card that was the best I could do for you.

Perhaps someone with experience with that card will post a detailed walk thorough.


How can I set different permissions for files and folders separately?

Use find:

find ./ -type f -maxdepth 1 -exec chmod 644 {} \;
find ./ -type d -maxdepth 1 -exec chmod 755 {} \;

-type f: Files
-type d: Directories
-maxdepth 1: first level (to avoid default recursive behavior)
-exec: execute command on with argument from result
{} will be replaced with a line from results. try:

find ./ -type d -maxdepth 1 -exec echo hi{}low \;

This useful for commands which have different arguments order like ln:

ln -s {} ./otherfolder/{}

or cp

cp {} ./otherfolder/

\; to to tell -exec is the end of command because you can add other find options after -exec (so they will not mix up). try:

find ./ -type d -maxdepth 1 -exec echo

Reference: man find


You will need to update geany-plugin-workbench.

1.36 is scheduled for Ubuntu Focal = 20.04 so not available for Ubuntu users from a normal install (ie. apt).

Source installation from git:

  Download directly from version control

  You can pull the sources for Geany-Plugins directly from version control as well. To do this, just clone the Git repository like this:
      git clone git://github.com/geany/geany-plugins.git geany-plugins

  Build and install all plugins:

./autogen.sh # Note this already runs ./configure

make && make install


Make sure you'v started mysql.

mysql -h 127.0.0.1 -u root

if you'v not set mysql password you should not include  -p, notice you have to specify the host


Display output of command executed in bash as it is executing

xtrace

You could set the xtrace option (commonly used for debugging shell scripts) before running the command (no need to use command substitution). Also, don’t forget to unset the option afterwards.

set -x
some_command
set +x

Example:

$ set -x; sleep 2 && echo fin; set +x
+ sleep 2
+ echo fin
fin
+ set +x

echo

If you find the xtrace output to be too cluttered, you could simply echo the name of the command beforehand:

echo some_command
some_command


How do I boot Ubuntu from my usb flash drive?

do not use the reccomended program ubuntu said to use to make the bootable flash drive as it doesn't work properly.

Istall unetbootin, it is free. Select the ubuntu to install and choose what flash drive to use and it will do everything for you. around 1 hour later everything should be ready. after that you can reboot and choose the usb flash drive to the top of the boot up order menu in the bios. after that the computer should boot into ubuntu. then install ubuntu and go through the steps, in one of the stages it lets you choose if you would like to replace windows 8 with ubuntu or dual boot windows 8 and ubuntu. then it will let make a new partition.

After it finishes install reboot and remove the flash drive and there should be a menu showing you which system you woruld like to boot into every time you switch on your laptop/pc/netbook/mac.


How to change the number of rows and columns in GNOME app grid (<=3.36)?

I believe it's only for Gnome 3.38+; in previous Gnome versions you can increase the number of columns through this extension
Also, see here for more info and tweaking


Why can't I synchronize Pictures folder with Ubuntu One?

You might want to choose the option and let it go for a while. I know you have a fast connection but it could be that it works by transaction, synching the whole folder before you see a status change.

Also, try refreshing the page or leave and come back to see if the status has changed?

If after refresh and waiting time nothing happens, go for ubuntu one support:
https://one.ubuntu.com/help/contact/

I bought a song recently which never got into my cloud... So these things happens it seems.


You can manually edit your gnome terminal settings by navigating to ~/.gconf/apps/gnome-terminal/. Just edit the xml file with gedit and remove the offending line.

I'm unsure whether you need to edit the file directly in ~/.gconf/apps/gnome-terminal/ or the one in ~/.gconf/apps/gnome-terminal/Profile/Default, you may need to try both.


WARNING: This may cause problems on a dual-boot system where Windows relies on Secure Boot! Only follow these steps if you do not have any UEFI operating systems installed.

Because I had specifically opted to turn off Secure Boot during the install, Ubuntu was installed to boot via BIOS instead of UEFI. However, the computer was still configured to boot via UEFI.

To fix this, go into your BIOS settings and change a couple of things:

Turn off Secure Boot
Switch from UEFI to CSM (on Toshiba Satellite, it was under System Configuration)...

Immediately after saving the settings and restarting, Ubuntu 16.04 came up for me.


I recieve "Firmware is not ready to run!" & "PKCS#7 signature not signed with a trusted key" when trying to boot

I uninstalled Nvidia drivers with apt-get remove --purge nvidia-* and then apt autoremove and it boots as expected now.


Getting rid of the "Windows boot manager" when dual booting

Can someone please help me to get rid of this windows boot manager boot entry without breaking the ability to boot into windows ?

Windows Boot Manager is required to boot Windows.
There is no way around this.


There is a package qbittorrent

To install it run following commands:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install qbittorrent

Now to run through Terminal just type : qbittorrent and it will start working.


You've messed up your PATH, so that is why you cannot start emacs by just running that command. You will need to use the full path to start emacs. You need to be in your home directory to run this command.

Try this

/usr/bin/emacs .bashrc


Prompt sudo password until correct one is given and store it in bash script variable

It is certainly possible to remove the need to type sudo password for specific commands or even whole scripts.

Your suggested path of storing the password in a local variable in the script is rather unwise. Anyone with read rights to /proc/<pid>/environ can read the local variables. Anyone who gains read access to a script, with hard coded credentials, could use those credentials to escalate privileges to root and own your system. On a single user system this is still unwise as there are increasing remote attacks targeting Linux users.

Without the specifics of your script I can only advise you to read Ubuntu Community Wiki - Sudoers. Then modify your sudoers file by running sudo visudo to add the specific commands to the file.

Likely you should add two lines one to add a command alias, and the second to authorize  users to run those commands.

An example of allowing specific user ie, bob, to run selected shutdown commands without a password.

Cmnd_Alias SHUTDOWN_CMDS = /sbin/poweroff, /sbin/halt, /sbin/reboot
bob ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS

The following script is an example of how to include in a script the ability to install, uninstall, or edit the example lines in /etc/sudoers.

#!/bin/bash

#Set Script Name variable
SCRIPT=`basename ${BASH_SOURCE[0]}`

#Initialize variables to default values.
OPT_i=i
OPT_u=u
OPT_e=e
OPT_m=m

#Set fonts for Help.
NORM=`tput sgr0`
BOLD=`tput bold`
REV=`tput smso`

#Help function
function HELP {
  echo -e \\n"Help documentation for ${BOLD}${SCRIPT}.${NORM}"\\n
  echo -e "${REV}Basic usage:${NORM} ${BOLD}$SCRIPT file.ext${NORM}"\\n
  echo "Command line switches are optional. The following switches are recognized."
  echo "${REV}-1${NORM}  --Installs lines in /etc/sudoers to allow script to be run without entering password multiple times."
  echo "${REV}-u${NORM}  --Unistalls lines in /etc/sudoers."
  echo "${REV}-e${NORM}  --Launces visudo to edit /etc/sudoers."
  echo "${REV}-m${NORM}  --Launces main."
  echo -e "${REV}-h${NORM}  --Displays this help message. No further functions are performed."\\n
  exit 1
}

#Install function
function INSTALL {
echo "launching Install"
echo -e '#script_append'\\n'Cmnd_Alias SHUTDOWN_CMDS = /sbin/poweroff, /sbin/halt, /sbin/reboot'\\n'bob ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS' | sudo EDITOR='tee -a' visudo
}

#Unnstall function
function UNINSTALL {
echo "launching uninstall"
bash -c 'printf ",g/^#script_append$/d\nw\nq\n" | sudo EDITOR='ed' visudo'
bash -c 'printf ",g/^Cmnd_Alias.*reboot$/d\nw\nq\n" | sudo EDITOR='ed' visudo'
bash -c 'printf ",g/^bob ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS$/d\nw\nq\n" | sudo EDITOR='ed' visudo'
}

#Main function
function MAIN {
echo "launching editor via main"
sudo visudo
}

#Check the number of arguments. If none are passed, print help and exit.
NUMARGS=$#
echo -e \\n"Number of arguments: $NUMARGS"
if [ $NUMARGS -eq 0 ]; then
  HELP
fi

### Start getopts code ###

#Parse command line flags
#If an option should be followed by an argument, it should be followed by a ":".
#Notice there is no ":" after "h". The leading ":" suppresses error messages from
#getopts. This is required to get my unrecognized option code to work.

while getopts ":iuemh" FLAG; do
  case "${FLAG}" in
    i)  #set option "i"
     OPT_i=${OPTARG}
      echo "-i used: $OPTARG"
      if sudo grep -q '#script_append' /etc/sudoers
                then
                    echo "Sudoers apperes to have already been installed"
                    exit
                else
                    INSTALL
            fi
      ;;
    u)  #set option "u"
      OPT_u=$OPTARG
      echo "-u used: $OPTARG"
      UNINSTALL
      ;;
    e)  #set option "e"
      OPT_e=$OPTARG
      echo "-e used: $OPTARG"
      sudo visudo
      ;;
    m)  #set option "m"
      OPT_m=$OPTARG
      echo "-m used: $OPTARG"
      MAIN
      ;;
    h)  #show help
      HELP
      ;;
    \?) #unrecognized option - show help
      echo -e \\n"Option -${BOLD}$OPTARG${NORM} not allowed."
      HELP
      #If you just want to display a simple error message instead of the full
      #help, remove the 2 lines above and uncomment the 2 lines below.
      #echo -e "Use ${BOLD}$SCRIPT -h${NORM} to see the help documentation."\\n
      #exit 2
      ;;
  esac
done

shift $((OPTIND-1))  #This tells getopts to move on to the next argument.

### End getopts code ###


How does the ssh server select the right public key?

From the source code, it just loops over all keys until a matching key is found:

process_principals(FILE *f, const char *file, struct passwd *pw,
    const struct sshkey_cert *cert)
{
//...

    while (read_keyfile_line(f, file, line, sizeof(line), &linenum) != -1) {
        /* Always consume entire input */
        if (found_principal)
            continue;
//...
        for (i = 0; i < cert->nprincipals; i++) {
            if (strcmp(cp, cert->principals[i]) == 0) {
                debug3("%s:%lu: matched principal \"%.100s\"",
                    file, linenum, cert->principals[i]);
                if (auth_parse_options(pw, line_opts,
                    file, linenum) != 1)
                    continue;
                found_principal = 1;
                continue;
            }
        }
    }
    return found_principal;
}


Replacement of all features of Outlook 2010

Have you tried Evolution? http://projects.gnome.org/evolution/index.shtml

I have never used it but it is supposed to support connecting to Exchange.


external monitor can't display max resolution

So I'm not exactly sure why this worked, but I managed to fix the problem. The external monitor is hooked up to my Lenovo Thinkpad X220 laptop, and on it there is an option for changing which screen is showing what. (Fn + F7) I pressed this by accident, and it switched to both of the screens showing the same thing. When I pressed it again, the resolution on the external monitor seems to have gone back to normal.

Not sure why this worked, but it did!


"Newer releases of Ubuntu have newer releases of glibc."

The NEWEST (at time of posting) release of Ubuntu is 18.04 Bionic Beaver which contains glibc version 2.27 (which is a much HIGHER version number than 2.5).  So upgrading to the very newest version of Ubuntu is not going to solve the problem.  In fact the version of glibc on 16.04 Xenial Xeris 2.23 is a much HIGHER version number than 2.5 which should really have been numbered 2.05.
Visiting the page
https://sourceware.org/glibc/wiki/Glibc%20Timeline
reveals

glibc 2.5 was released  2006-09-29
glibc 2.23 was released 2016-02-19
glibc 2.27 was released 2018-02-01

The last one above (2.27) is the latest release and is present in 18.04 Bionic Beaver.
As Knud Larsen has pointed out, glibc-2.5 is a very old version, and thus installing it as a default on a 16.04 would result in a completely broken system.

"a piece of backup software says it needs "On Linux, glibc 2.5 or higher is required."

I suspect that you are trying to run a binary executable (rather than actually building from source) and that the backup software was designed and released for Red Hat (and RPM based) systems.  This backup software would not happen to be BRU [home edition] perchance?
So the first lesson is, do not try to mix software built for RPM and different libc on Debian/Ubuntu/Mint and other derivative systems.
If you really, really, want to try something and this will only work if you run the wrong libc program NOT as root, you could try building from the libc source from the archive on the GNU source repository, install into /opt/something and then use LD_LIBRARY_PATH to point there before trying to launch the backup software.  Of course if it has a GUI which may well be GTK (version 1 as opposed to GTK-2) it is never going to work because trying to build GTK (version 1) library if you can find the source is near impossible on modern systems.
The solution most probabe to get the ancient backup software to work is going to be get a copy of Red Hat Linux desktop or Centos or Mandriva or whatever for 2005/2006, see for example
https://old-linux.com/
install into a virtual machine, and then run your ancient backup software in an OS of vintage for which it was designed.
A better working alternative would be to look at a GPL open source up to date backup software server (amanda or cinder perhaps), or if you have money to spend, I see Tolis Group (the current owners of BRU) now charges USD 400 for a Linux workstation edition.  Of course other commercial alternatives are available, but the best option is, of course, something which is GPL open source and requires zero cash payment.
Additional thoughts --
You are 100% certain it says "glibc 2.5 or higher is required." and not "glib 2.50 or higher is required" ?  Ubuntu 16.04 has glib 2.48 whereas Ubuntu 18.04 has 2.56.
If it is really saying glibc, then your program is broken anyways because it does not accept that glibc 2.27 is a HIGHER version than glibc 2.5 and thus meets the test of "2.5 or higher".


Getting "HTTP Error 500 (Internal Server Error)" while installing Codeigniter

Try to change your permission to 755

$ sudo chmod -R 755 /var/www/CodeIgniterInstallFolder/

If nothing happens, try to look on your server log.

$ sudo gedit /var/log/apache2/error.log


Stellaris game via steam runs super slow (3 fps in menu)

I just installed the latest nVidia drivers (Software & Updates > Additional Drivers > nVidia) or sudo apt install nvidia-current

But then when I rebooted everything went black, because I'm on an Optimus card (hybrid nvidia/intel GPU for laptop powersaving) so I installed prime:
sudo apt install nvidia-prime and set the correct GPU via nvidia-settings (it was on Intel)
and rebooted again and everything worked great! Game ran great!


How do you change the default document viewer to Okular?

According to here, Right click the file of the format you want, select properties:

Go to the open with tab, select the program you want to be the default for that type of file, then press the button Set as Default:


Cannot boot laptop after copying partitions to new HDD

You need to update the /etc/fstab file on the SSD.  It still has the old hard disk partitions, and even a swap partition which you no longer have.  Nothing else looks bad to me, the UUIDs are all correct.


Well as far as i know Adobe flash player for 64 bit is still testing in Ubuntu so it may be buggy or unstable. Hope it answers your question


Boot ubuntu 16.04 in text mode without 'X'

If you are using the default display manager, sudo systemctl mask lightdm.service should do it.

You can also edit the procline to include init=/bin/bash, but that will seriously mess up your boot (i.e. pretty much nothing will start except for the core components of your linux kernel)

If you are having problems booting, you can always stick it into another computer, and then cd $DODGY_DISK; sudo chroot ., and see what you can do from there.


Try this:
sudo apt-get install language-pack-gnome-xx?

Where xx stands for You're language... (us/en/de/nl)

Gedit=Gnome Editor. Try using Kate: (KDE-ditor)

Somewhere it is going wrong.I think You've installed (K)Ubuntu without
network-services. English/USA is standard, nothing changes:

But if You have a foreign language You have to be alert on that:
Date/time and other symbol issues...

On fail, Linux always startup in English/USA mode. Remark that...
I don't like that at all.

That's why here Gedit AND Kedit is in the Dutch language...

Greetings,


How to run an application at startup as a certain user?

A startup system agnostic method. You can use this in /etc/rc.local, a /etc/init.d/... script, an Upstart configuration file and probably a systemd configuration too.

sudo -u oli /full/path/to/application

This command will run as the root user and sudo will drop down to the "oli" user. Obviously change the user and the command for your purposes.

I should add that there are at least a dozen ways of doing just this... But in my experience they're all largely identical in effect. Here's an upstart example using its setuid stanza:

start on (filesystem and stopped udevtrigger)
stop on runlevel [06]

setuid oli
respawn

exec /full/path/to/application


Can I execute an application built with Quickly (python - pygtk) on MS Windows?

First of all, like I said Quickly on Ubuntu 12.04 uses PyGObject (GTK3) instead of PyGTK (GTK2). There is a MS Windows version of PyGObject too, but I think that QUICKLY uses Linux commands to create the final structure of Python files. This structure is built when the developer wants to test the program ("quckly run program-name"), or when he wants to create a DEB package.

On the other hand, in some parts of some Python files, paths are specified using Linux directories ("opt", for example). So, Quickly files can't be used on MS Windows, at least not directly.

Ariel


Kubuntu installer will not offer uefi option but did once

The choice of BIOS-mode or EFI-mode installation is made by the way the installation medium is booted -- Ubuntu will install in BIOS mode if you boot the installer in BIOS mode and in EFI mode if you boot the installer in EFI mode. You can launch the installer by opening a terminal and typing ubiquity -b to install without a boot loader, but otherwise you really have no choice in the matter.

Thus, to control the installation mode, you must control the boot mode by using your firmware's tools. If you want to force an EFI-mode install, the best way is to disable the Compatibility Support Module (CSM; aka "legacy boot support" or a similar term) in your firmware setup utility. How this is done varies greatly from one computer to another, so I can't provide details. In some cases, you can force, or at least encourage, an EFI-mode boot even with the CSM enabled by using the computer's built-in boot manager. This tool will often provide two options for booting an external medium, one with the string "UEFI" and one without it. Selecting the "UEFI" option boots in EFI mode and the other option boots in BIOS mode. This isn't always 100% reliable, though.

Also, be sure your boot medium is prepared correctly. There must be at least half a dozen tools you can use to prepare a bootable USB drive from a .iso file, and some of them omit the EFI boot loader or otherwise prepare the USB drive in a way that will cause problems for at least some EFIs. Thus, if you can't seem to get a particular USB drive to boot in EFI mode, you may need to try another tool, or at least try other options within the tool you're using.


Installing the Tomcat7 examples webapp on Ubuntu 12.04

Use cp -r to copy over directories.  Also make sure target directories exist


Try the gnome tweak tool, open up your terminal and type.

sudo apt-get install gnome-tweak-tool

When it has finished just type .

gnome-tweak-tool

From the menu select fonts and try some combinations until you are happy with the look. The original setup would have been.

Default font -> Ubuntu

Monospace font -> Ubuntu Mono


Nvidia 96 drivers are not released for maverick (xorg 1.9) yet.
But work is in progress. It will be available soon.
http://www.nvnews.net/vbulletin/showpost.php?p=2326233&postcount=5

For now, you can downgrade xorg to 1.7 or even downgrade to Lucid.

EDIT:
Now you can use 96 drivers!!!
http://www.nvnews.net/vbulletin/showthread.php?p=2341157

sudo add-apt-repository ppa:dajhorn/nvidia-96
sudo apt-get update
sudo apt-get install nvidia-96
sudo nvidia-xconfig
sudo nano /etc/X11/xorg.conf

Add to Section "Device"

Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"

reboot and profit!


apt upgrade stuck on kbd and console-setup

Here is how I solved the problem. Somehow uninstalling perl cleared the logjam:

sudo apt remove perl keyboard-configuration console-setup-linux console-setup kbd
sudo apt autoremove
sudo apt autoclean
sudo apt install perl
sudo apt install -f
sudo apt upgrade
sudo apt upgrade -f
sudo apt autoremove
sudo apt autoclean


Why so many dependencies for package expect?

In general Ubuntu is designed to be "user friendly" and in general any given package in Ubuntu tends to have more dependencies then other distros. This is great for most users as they install a package and all the bells and whistles are installed.

For finer grain control,do not install the extra packages

sudo apt-get install --no-install-recommends package_list

If you want to set this as default behavior, see How to not install recommended and suggested packages?

The only potential downside of this behavior is that you may later have to identify additional packages you want to install later. Perfectly acceptable for advanced users such as yourself.

If this still installs more then you want you can install using apt-get with the --nodeps flag or download .deb and install with dpkg using the --ignore-depends flag. Doing so sort of defeats the purpose of apt / apt-get and at this point you may wish to look as Slackware, arch linux, or gentoo. gentoo takes a lot of time but gives you very fine grain control over what is or is not installed. arch is similar without all the compiling. Slackware is easy and IMO "just works"


You need to start the apache server:

sudo systemctl start apache2


Install Ruby Ubuntu With update-alternatives Command

Don't know. Do Ruby support alternatives?
It depends on what you want to do.

If you want to develop applications, the RVM might be a good solution,depending on what you want to have. Then latest features might be ok and you can manage API changes in libraries.

If you want to administrate a web site, you do want to use software packed by Ubuntu/Debian, as they are stable and will not change the API "under your feets".

This was a large controversy between Debian packer and Ruby developers. Ruby developers didn't understood the problem for system administrators with fast development and changing API:s.


I started mysql by enabling innodb_force_recovery = 6 in my.conf. Since mysql service was launched, I created a dump file that I ran locally and managed to recovered lost data successfully.


i cant see youtube videos in ubuntu 12.04

type in terminal sudo apt-get install ubuntu-restricted-extras


It seems like a problem with MySQL workbench 6.3 version. When I removed it, and installed the newer version MySQL workbench 8, the problem disappeared.


Testing phpmyadmin install for Drupal in Ubuntu14.04: localhost test page not loading

sudo apt-get purge apache2
sudo apt-get install apache2

This will recover Apache.

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-mysql

PHP installed.

http://www.phpmyadmin.net/home_page/index.php

Download phpMyAdmin from here, unzip, copy all files to /var/www/html/phpmyadmin/

http://localhost/phpmyadmin/

Enter your mysql credentials.


No unity-2d folder in gconf-editor > desktop

Make sure you have Unity 2D installed. You can check by running:

dpkg -l | grep "ii" | sed -e 's/^ii\ \ //g' -e 's/\ .*$//g'

If you have Unity 3D installed, it will return unity only. If you have Unity 2D installed, it will return unity-2d. If you have both installed, it will return both.

If unity-2d is installed and it still doesn't show up in gconf-editor, try running:

gconftool-2 --shutdown

and then log out and log back in.


How to safely remove a USB external drive?

To safely remove i.e. disconnect an external USB drive you need to manually unmount all of its partitions (represented by 'drive icons'):

either in Unity Launcher

or in Nautilus

In the example above:
to remove my Hitachi external USB drive I have to unmount all of the partitions on the said drive. To make things easier when formatting my drive I named (labelled) all of its partitions so that the names (labels) begin with 'HIT'.

For further reading please refer to the bug report (the lack of either "Safely remove" or "Eject" is a bug in Ubuntu 12.10):

https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1067876

Don't forget to mark 'This bug affects me' in the upper portion of the page.


How to show only the active desktop's applications in the taskbar? (Ubuntu 19.04)

You can do that by install dconf

sudo apt install dconf

After installing it search for isolate-workspaces and turn that setting on.

There is also an extension called Launch new instance download link which will launch a new instance each time, I personally don't prefer this and don't use it but just in case you want that.

Hope it helps.


Clean install of Xubuntu over Ubuntu: will GRUB continue to work?

Yes, you will likely have to run boot repair again to be able to boot into windows.

Installing the xbutnutu-destop package is a better option if you want to avoid this.

Once you are satisfied that you don't ever want to run gnome or unity again you can remove them per this answer, but be careful not to remove X.


how can I get a hex dump from part of a hard drive?

You can use dd tool

dd bs=1MB count=512 if=/dev/sdc | hexdump


How to update kernel to the latest mainline version without any Distro-upgrade?

The simplest set of instructions I always used for kernel upgrade / downgrade are by ubuntuforums.org user by the name of lykwydchykyn (url modified by me for this post):

Go here: http://kernel.ubuntu.com/~kernel-ppa/mainline/
Download 3 (maybe 4) debs to a folder somewhere:

linux-headers-VERSION-NUMBER_all.deb
linux-headers-VERSION-NUMBER_amd64.deb
linux-image-VERSION-NUMBER_amd64.deb
linux-image-extra-VERSION-NUMBER_amd64.deb   # if available

Install the debs with whatever package manager front-end you use (is gdebi still around?), or use these commands:

cd /path/to/folder/where/you/put/the/debs
sudo dpkg -i *.deb

Sources:

https://wiki.ubuntu.com/Kernel/MainlineBuilds
http://ubuntuforums.org/showthread.php?p=11391743#post11391743


Ubuntu upgrade failing from 16.04 to 16.10: 'Failed to lock /var/cache/apt/archives/lock'

I had the same issue where I got Failed to lock /var/cache/apt/archives/lock every single time I tried the upgrade.

I did everything as described here, except to start update-manager with sudo.

So:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo update-manager -d

... and finally, on the 27th try, it worked out.


I solved the problem -- I remembered that I also found that for pulseaudio-equalizer to work you need to add the following lines to /etc/pulse/default.pa:

load-module module-equalizer-sink
load-module module-dbus-protocol

After commenting them, my problem disappeared, so the problem must have been in the equalizer. Unfortunately, I didn't discover a way to fix it. If you did, please share your way.


Why does Ubuntu crash when I suspend or close my lid?

It turned out to be VirtualBox. I uninstalled VirtualBox & it started suspending correctly again. Anyway, thanks!


Note: This should be a comment, but I don't have enough points yet.

That PPA is not up to date. What version if Ubuntu are you running?

If indeed you are still running saucy, then no, it will not work because saucy is EOL (End of life). However, you could still manually download the .deb files and install them manually from here


Problem on installing Ubuntu 13.04 using VM VirtualBox Manager after clicking RESTART/Windows 8 Intel i7

I see the same issue with Ubuntu 10.04 on Windows 7. It seems like VirtualBox is not handling the way Ubuntu requests a reset (Windows VMs work fine). I've had to do a hard reset.

This ticket may be related (tracker for Linux VMs crashing on the first reboot after install).


Temporarily change language for terminal messages/warnings/errors

There are several environment variables available for changing language settings. You can view your current locale settings by executing the locale command. To change all locale settings to English, use LANG=C. This C locale is always available without installing additional language packs. (In order to temporarily change to non-English locales, see @mklement0's post.)

Examples:

Executing a command with the default language settings and print the current locale settings:

$ /nonexistent
bash: /nonexistent: Bestand of map bestaat niet
$ locale
LANG=nl_NL.UTF-8
LANGUAGE=
LC_CTYPE="nl_NL.UTF-8"
LC_NUMERIC="nl_NL.UTF-8"
LC_TIME="nl_NL.UTF-8"
LC_COLLATE="nl_NL.UTF-8"
LC_MONETARY="nl_NL.UTF-8"
LC_MESSAGES="nl_NL.UTF-8"
LC_PAPER="nl_NL.UTF-8"
LC_NAME="nl_NL.UTF-8"
LC_ADDRESS="nl_NL.UTF-8"
LC_TELEPHONE="nl_NL.UTF-8"
LC_MEASUREMENT="nl_NL.UTF-8"
LC_IDENTIFICATION="nl_NL.UTF-8"
LC_ALL=

Temporarily override the language for one program and show that it is really temporary:

$ LANG=C ls /nonexistent
ls: cannot access /nonexistent: No such file or directory
$ ls /nonexistent
ls: kan geen toegang krijgen tot /nonexistent: Bestand of map bestaat niet

Change the locale for all commands executed in the current shell and include proofs again:

$ LANG=C
$ ls /nonexistent
ls: cannot access /nonexistent: No such file or directory
$ locale
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=


File in use is wiped when there's a power faliure

Do you use some flavour of Linux on the server?

Using a journaling filesystem on the server should mitigate the issue
of lost files (Windows has NTFS, Linux has ext3, ext4 and others).
Using a UPS would be even better in this case as computers tend to break when frequently losing power. There are inexpensive UPS available worldwide.
Taking full backups isn't a good idea, a good backup solution would implement for example a daily full backup and hourly increments. Solutions that do deduplication don't have this issue. You could also use LVM on the server and take snapshots.


Devhelp problem in Ubuntu - MISSING XINCLUDE CONTENT

These steps solve my same problem.

Download latest tar.gz archive file that have documentation of GTK+, from GTK+ 3 Reference Manual download link
Now the latest is: gtk3-html-3.24.13.tar.gz
Then extract it.

tar xzvf gtk3-html-3.24.13.tar.gz
Remove current version of GTK+ 3 Reference Manual.

rm -rf /usr/share/doc/libgtk-3-doc/gtk3/*
Copy latest downloaded directory to correct location.

sudo cp -a gtk3-html-3.24.13/* /usr/share/doc/libgtk-3-doc/gtk3/

Now devhelp show codes.

This is source of my answer.


For high quality streaming the codec used needs to be set to A2DP. This can be done in pulseaudio audio settings by choosing the appropriate (A2DP) profile in the Hardware tab.

If your sound quality is still poor then unfortunately the SBC codec (that is included as a fallback for low bandwith in the A2DP profile) may be used. You may want to test if in your individual settings this is improved when running the most recent Bluez package (however you would need to compile this from source). Some debugging of the A2DP codec has been done there recently.


How to enhance the transparency of the Unity 3D launcher?

Not for the faint of heart.  You will have to compile unity from source. There is a script that does this automatically. You have to download this file.

Then open the terminal and cd to the directory you downloaded it to.

Now type ./build-unity.sh prerequisites
When finished type ./build-unity.sh clone

Now after it is done cloning, the fun can start. Browse to the directory you downloaded the build-unity.sh file and open the  unity folder.
Then open the src folder and open file launcher.cpp.

Search for this string

gPainter.Paint2DQuadColor (GfxContext, bkg_box, nux::Color(0xAA000000)

You can change the argb hex decimal to any color you want, A = alpha R = red G = green B = blue:

0xAA000000

example 0x88008800 would about equal a green plus alpha

To color the dash, open PlacesView.cpp and search for

nux::Color (0.0f, 0.0f, 0.0f, 0.9f)

example nux::Color (0.0f, 0.5f, 0.0f, 0.7f) which again equals  green plus alpha

now you can type ./build-unity.sh configure
and when finished type `./build-unity.sh run

Here's the results


apt-get update hangs on a repo addr that should be responsive

Have you tried this:

sudo -i
sudo apt-get update --fix-missing

and then enter update manager, and fix broken package, and it might work fine this way.


Change permission from -rwxrwxr-x to drwxrwxr-x

The script must be allowed to write in the directory in which it tries to create the files. So for example, if the script tries to write a file into the directory /var/srv/www/script_output/, do

chown www-data:www-data /var/srv/www/script_output/
chmod 771 /var/srv/www/script_output

Make sure that you do not give permissions for writing in the directory that the script resides in (otherwise, an attacker hijacking the script would be able to overwrite the script itself). Also, files in that directory should not be permitted to be run (as PHP or whatever).

By the way, the d in drwxrwxr-x only means that the given node is a directory.


Remove all text before last space in text file from CLI


How to install the latest version of WINE as the system version?

Install latest WINE version for Ubuntu

sudo add-apt-repository ppa:wine/wine-builds
sudo apt-get update && sudo apt-get install winehq-devel

Run 32-bit WINE for default (rm old ~/.wine folder first)

WINEARCH=win32 WINEPREFIX=~/.wine winecfg

You can change different WINEPREFIX folder for 32-bit and 64-bit WINE environment

WINEARCH=win32 WINEPREFIX=~/win32 winecfg

Or

WINEARCH=win64 WINEPREFIX=~/win64 winecfg


OK, here's the script I ended up writing. Hope this helps someone else.

First you must unmount the drive to insure it is not open, the format, then copy the files.

Thanks!

#/bin/bash
DVD=/dev/scd0
outfile=/var/log/burn-backup.log
echo > $outfile
echo unmounting $DVD...|tee -a $outfile
umount $DVD
echo Formatting $DVD...|tee -a $outfile
wodim -vv dev=$DVD blank=all|tee -a $outfile
echo Mounting...|tee -a $outfile
mount /mnt/backup
echo Writing $DVD...|tee -a $outfile
growisofs -dvd-compat -input-charset=ISO-8859-1 -Z $DVD -R -J -pad -graft-points "/spenser=/mnt/backup"
eject


Error: Invalid options specification: options.staging.type

The charm you're looking at isn't the recommended one for juju gui. It's used for development, and you're welcome to investigate it, but it's usually not going to be the one you want to try.

You can read about the recommended charm for the gui at jujucharms.com/precise/juju-gui. To deploy it, you can just do

juju deploy juju-gui

As a side note, you can easily see when a charm is the recommended one or not by looking for the orange marks in the upper right hand corner of search results and detail views. You can see an example of what I mean here:

Not all charms have a recommended version, but you should usually look for recommended ones first unless you have a particular reason to look for another version.


How do I fix wifi connection in xubuntu with RTL8723BE

It really does not matter what are you using: Xubuntu or Lubuntu.

Wireless drivers are same and problems are same, since these distros use same kernels.

To fix problems with your wireless adapter you can install a better driver from Realtek. I packaged it as DKMS and added to ppa.

You need to be connected to internet some alternative way. If this is a problem, I will add an offline manual too.

You can install it this way. Run in terminal

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware

and reboot.

Wireless should work well.


Battery longevity is less in Ubuntu 20.04 than in Windows

Install tcl by the following command that can improve your battery performance.
sudo apt-get install -y tcl-dev

It will automatically start when you turn your PC on.


How to run same query on multiple servers via the jump server

for i in sdeuu1 sdeuu2 sdeuu3 sdeuu4 sdeuu5      \
         sdeuu6 sdeuu7 sdeuu8 sdeuu9 sdeuu10     \
         sdeuu11 sdeuu12 sdeuu13 sdeuu14 sdeuu15 \
         sdeuu16 sdeuu17 sdeuu18; do
  ssh $i grep -i 'SponsoredLinksIFrame.jsp' /home/nextag/httpd_logs/access_log.1360* \| \
    grep -ic 'nextag.co.uk'
  echo $i
done

Note that I added ssh $i to the start of the command inside the loop.

I also added a backslash (\) to the pipe symbol (|), so that the second grep happens on each individual server for efficiency. And then I also needed a backslash at the end of that line to indicate a continuation line, since the escaped pipe symbol no longer does it. When you type this in, make sure you don't put any spaces after that last backslash.

If that's confusing, you can also do it with everything on one line:

for i in sdeuu1 sdeuu2 sdeuu3 sdeuu4 sdeuu5      \
         sdeuu6 sdeuu7 sdeuu8 sdeuu9 sdeuu10     \
         sdeuu11 sdeuu12 sdeuu13 sdeuu14 sdeuu15 \
         sdeuu16 sdeuu17 sdeuu18; do
  ssh $i grep -i 'SponsoredLinksIFrame.jsp' /home/nextag/httpd_logs/access_log.1360* \| grep -ic 'nextag.co.uk'
  echo $i
done

If you haven't already, you can set up passwordless ssh login so that you don't have to type a password in for each server.


Using ubuntu to recover a folder that I locked myself out of in windows?

I have a similar setup to yours, so I tried replicating your problem and this is what I've learned. First, when I locked myself out of folders, I was always able to regain access through the Security tab, regardless of what I set. This is until I denied access to the drive, at which point I successfully locked myself out entirely. Since you can still access some files I realize something must be different, but this is as close as I could get. Let's move forward with what we have.

Linux and Windows use different permissions systems, so even when I completely locked myself out on Windows, Linux had full access. Unfortunately, it seems very complicated to modify Windows permissions, if it's even possible at all. But at least we can save your files. We can copy them all to a new location, format the drive or partition that you locked, then copy them back. Not the most elegant solution, an I understand that if it's a Steam drive that it might be quite a lot of data. Hopefully you have the room, a spare external drive, or can get one.

You said you're not Linux savvy, so I'll try to use baby steps here. Don't be offended if I explain something you think is obvious. So step one is boot into your Linux OS. Next we'll mount the Drive. Hit your super key, or just click the dash in the upper left, type Disks into the search area, and launch it. On the left you'll see all your drives listed. Select the one you locked. Now if it's partitioned, you'll see that represented in the center of the window. Click the partition you need, or just the block if it's a single partition,then the play button to mount it. It will say mounted at /media/{your username}/{drive name} or maybe /mnt/{bunch of letters and numbers in a hash}. Take note of that, it might be useful in a sec.

Now you should be able to open your file explorer (it's called nautilus, but will show up as just Files) and on the left hand side you should see + Other Locations. Click that, then your drive you just mounted. Copy your files to anywhere you have the room. Now I had full control when I tested this, but on the off chance your permission is denied, try this. Unfortunately, you'll need the Terminal for this step, but only if you don't already have permission (you should).

Load Terminal with Ctrl + Alt + T, or using the dash and typing in Terminal. First we'll make ourselves the owner with

sudo chown -R $USER:$USER /path/to/device

and remember that path/to/device is whatever I had you mark down earlier. Feel free to copy and paste to get the formatting correct, then just correct the path. Next we'll make sure we have the right permissions.

sudo chmod -R 777 /path/to/device

This sets permission to anyone can do anything. Normally this is terrible advice, but since you don't really use linux for much, and you just want your data back, this should be fine. And hopefully, your experience is like mine and you just had full access without modifying anything.

Now hopefully you've gotten everything, or at least everything important saved somewhere else, like on your linux partition or an external drive. Open Disks again, and lets format that drive. Select the device and partition (assuming it's partitioned) just like last time. Now click the little gears, and Format Partition. Make sure you set the file system to NTFS (windows can't read ext4 without special software) and name it if need be. Once it's formated you can move your data back. I would boot back into windows and do a double check that it's all there and usable before deleting it from wherever you stored it, but that should get you sorted out quite nicely. And someone else may be able to solve your problem a bit more cleanly, but this should have you back on Steam and happy quickly and easily. Hope I helped.


The maximum resolution of the Intel HD Graphics 4000 of the i3-3217 CPU is 1920x1200 over HDMI, due to single link HDMI.

In this post there is a method that may work to increase to resolution.
Another option would be to use DisplayPort if possible, as DisplayPort should support a higher resolution out of the box.


In UEFI systems which you probably have GRUB is stored in the EFI System Partition and NVram. You can "remove" Grub in the sense that your UEFI won't know its there by mounting your ESP and deleting EFI/ubuntu/grubx64.efi

Your motherboard may also keep this entry around even after you delete the file (but it won't try to boot it) in which case you have to go into your UEFI menu and delete it from there as well.

This obviously doesn't touch the installation of grub on ubuntu so you can reinstall it if you wanted later.


Installing multiple Linux distribution on USB flash drive

If you don't want to use any software to manage it, I'm not sure. I would advise you to run live DVDs and install them one by one sharing the same swap partition (to save space). I would recomend you to unplug your HDD to avoid any accidental mess. I never did anything like that on a USB flashdrive tough.


How to turn the display off via commandline on Ubuntu 18.04+?

The issue is caused by the screensaver.

In cases where the screensaver is not needed (but only the screen locking functionality), inhibiting it will solve the problem, for example:

cat > ~/.config/autostart/inhibit_screen_saver.desktop << EOF
[Desktop Entry]
Type=Application
Name=Inhibit screensaver
Exec=bash -c 'while ! pgrep mate-screensave; do sleep 1; done; mate-screensaver-command -i'
X-GNOME-Autostart-enabled=true
EOF

A wait cycle is needed to make sure that mate-screensaver executes. It's not clear to me however, why pgrep finds mate-screensave, but not mate-screensaver.


How can I get the command log of a particular user on Ubuntu Server?

If you use something like bash as a command interpreter, you could check the history.

more /home/user/.bash_history


How can I copy currently played song to clipboard in ncmpcpp?

Thanks to @K7AAY I have found an answer:

#!/bin/bash

SONG=`ncmpcpp --current-song -q`
echo "NAME: ${SONG}"
echo -n $SONG | xclip -selection c

Running above script will print song name and copy it to the clipboard.

$ ./get-current-song.sh
NAME: (-:--) Daniel Gomez - Two Ways [New York] 055 (18 December 2019) Hour 1


File transfer between Ubuntu and Windows system

Answering my own question:
In theory, any IP address should work, but in practice, it is not so.
After tried various numbers, I find the following tutorial-ish number worked for me.
IP 192.168.1.1 mask 255.255.255.0 gateway 192.168.1.2 Dns servers 208.67.222.222,208.67.220.220 for machine A
IP 192.168.1.2 mask 255.255.255.0 gateway 192.168.1.1 Dns servers 208.67.222.222,208.67.220.220 for machine B

Each machine assigned to the same address in both OSes.
Now file transfer in both directions is possible, irrespective of which machine run on which OS.
Even media streaming is so smooth. Thanks for helping hands.
MY PROBLEM IS SOLVED.


This smells rather like a bug to me. Do you mind opening it against the snapd package? https://bugs.launchpad.net/ubuntu/+source/snapd


"The Ubuntu Edge is an open device, not locked to any particular network. It works in all countries that provide GSM/3G/LTE-based network services", I quote from the project site. From that it is clear you can use it in Japan with any network that provides GSM/LTE services.

For further information, you can visit this LINK .

I hope that is what you are asking for.

Thank you.


Not able to start Display Manager after cloned disk (clonezilla)

It wasn't just the display manager that stopped working, but also some other weird glitches. It seems like the system is corrupted. Not just the one disk, but both.

The answer to my question is to reinstall the system and/or pull files out by booting to another system and mounting the disk.

The most correct way to use clonezilla is:

Only have necessary disks plugged in while cloning
Choose the correct options (Device to Device)
When the cloning is done, shut down the system
Don't boot while both disks are plugged in. Remove one of the disks.
Boot

I'm not quite sure what caused all this. I can only guess it has to do with the identification on the disks. When both disks are plugged in after cloning, the system might be confused to where which one to write the data to.


Can't open Chrome's new window from launcher

Right click on the chrome launcher -  select 'New Window' from the list.

Edit: ( inspired from Ken's comment ) - There is also a shortcut for this action-

Ctrl+N.


How to setup my systemd service ExecStart correctly?

Make these corrections, change this:

ExecStart=/home/buraksumer13/.nvm/versions/node/v14.2.0/bin node home/buraksumer13/Documents/vinematikIns/index.js

to

ExecStart=/home/buraksumer13/.nvm/versions/node/v14.2.0/bin/node /home/buraksumer13/Documents/vinematikIns/index.js


When I create a folder in ~/ starting with a period, where is is located?

Press ctrl+H inside your Home folder.

It will displays all the hidden files and folders present inside your Home directory.

~/.foldername

~ - It represents your Home folder.(/home/$USER)

.foldername - If a folder name is preceeded by dot ., it would hide automatically. You have to press ctrl+H to view all the hidden files and folders.


Dual monitor setup can cause boot problem?

The OP answered the question in the question

  Update: The problem solved by reinstalling the operatin system, without automatically installing updates during install, with only one monitor attached. After completing installation, and clean reboot, i've installed closed nVidia drivers


How do I import existing project into SVN repository?

Try to launch svnserve like this:

svnserve -d -r /svn/repository/jguids30ma

From svn book:

  Once we successfully start svnserve as explained previously, it makes every repository on your system available to the network. A client needs to specify an absolute path in the repository URL. For example, if a repository is located at /var/svn/project1, a client would reach it via svn://host.example.com/var/svn/project1

So you should try to use svn protocol instead of file like this:

svn import /svn/repository/jguids30ma/ svn://[IP of your server]/home/plattens/workspace/jguids30ma -m "Initial check in"


How to see Successful and Unsuccessful login events in Ubuntu 14.04.5?

The application you are using is fine for checking those. aureport comes in the auditd package and is not installed by default.

The columns in the report as as follows:

date time acct host term exe success event

Showing on my system if I run it without the --success or --failed it will show all:

terrance@terrance-ubuntu:~$ sudo aureport -au -i
[sudo] password for terrance:

Authentication Report
============================================
# date time acct host term exe success event
============================================
1. 11/02/2017 16:37:45 terrance ? /dev/pts/2 /usr/bin/sudo yes 90
2. 11/02/2017 16:39:14 terrance ? /dev/pts/2 /usr/bin/sudo yes 243

The success column is what shows if my login was successful or not.  As we can see on this one, both attempts at logging in were successful (yes).  The number on the last part of each line is just the event number at which it happened.  These numbers can be ignored.  It is all the information before it that is important.


Installing Ubuntu 12.04 alongside Ubuntu 10.04

Yeah, You can install a fresh install of ubuntu 12.04 along side with ubuntu 10.04(current).You just need to mention a separate parition for root of 12.04 and a common swap with your current operating system. And yeah, grub will recognise both ubuntu as separate versions and will open each of them as separate operating system. Only problem I could encouter was the login problems. If you do have that problems, then post it later.


Had the same problem. The solution is

sudo apt-get purge bcmwl-kernel-source

if it is installed and instead

sudo apt-get install firmware-b43-installer

Also need to put in the module b43 in the /etc/modules files to autoload it at bootup.


how to dual boot ubuntu 15.04 with windows 8

I don't know your knowledge of linux so, I'm writing the steps in a little detail. In any case you feel uncomfortable Please write back to me, I will be glad to assist.

1. Back up Windows

There are two steps to backing up Windows:

Create a recovery drive for backing up Windows 8.1
Create a file history for backing up personal files
For the recovery drive you will need a USB flash drive with at least 16gb of space. Insert the USB drive into your computer. You should make sure that you have no data that you need to keep on the drive as it will be wiped during this process. If you don't have a USB drive you can create recovery DVDs.

For the file history backup I would recommend using an external hard drive but it depends on how much data you have. If you don't have much then a USB drive will do. If you have nothing else to hand you can backup to DVDs.

2. Create a bootable Ubuntu USB drive

I assume you are well aware of how to create a bootable drive.

3. Shrink your Windows partition

Windows takes up the whole of the drive when it is first installed. In order to install Ubuntu you will need to make space for it.

Press the "super key" (Windows key) on your keyboard and click the magnifying glass in the top right corner. In the search box start typing "Partitions".

Click on the option called "Create and format partitions". This will bring up the "Disk Management" screen.

A screen will appear showing how much you can shrink the drive by. You can of course choose to shrink the drive by less than offered but never go for any more than offered as you will break your Windows 8.1 operating system if you do.

Click "Shrink" to continue.

When you are finished you will see that there is a lot of unpartitioned space. This is where Ubuntu will be installed.
4. Turn off fast boot

To be able to boot to your Ubuntu USB drive you will need to turn off the fast boot option.

Press the "super" key (Windows key) and then click the magnifying glass in the top right corner.

Enter "Control Panel". Click on the "Control Panel" option that appears.

When the "Control Panel" appears click on the "System and Security" heading.

Now click on "Power Options".

On the following screen click on "Choose what the power button does".

5. Turn off secure boot

In theory you don't need to do this any more. In practise it is almost certain that you will.

Turning off secure boot depends on the make and model of your computer as each one has slightly different methods for turning it off.

Basically though click on the "super" key (Windows key) and then click on the power icon next to your user name.

Hold down the shift key on your keyboard and select restart computer. Keep the shift key held down until your computer reboots.

You will now have an option to go into your UEFI boot settings.

Within the UEFI settings look for the option to turn off secure boot. You don't have to switch to legacy mode and you shouldn't switch to legacy mode as this will not help your cause.

Save and exit the UEFI settings

6. Install Ubuntu

When you have turned off secure boot, save and reboot. You will probably end up back in Windows.

Now at this point to boot into Ubuntu on the USB drive I had to again hold down the shift key whilst rebooting the computer.

One of the options that appeared let me boot from the USB drive into Ubuntu 14.04 live and you should have a similar option available to you.

When you first boot into the live version of Ubuntu you will be presented with a screen similar to the one above. The only difference is that I have closed the window that shows all the keyboard shortcuts to make it easier to highlight the "Install Ubuntu 14.04 LTS" icon.

To begin the installation double click on the "Install Ubuntu 14.04 LTS" icon.

The first thing you need to do is decide which language you would like to use.

Unless you feel like the challenge isn't great enough I would choose the language that you would normally use.

Click "Next" to continue.

The next screen lets you choose which internet connection to use whilst installing Ubuntu.

I always opt for not wanting to connect and there is a good reason for that.

I live in the countryside and my internet connection is poor. I don't want the installer failing half way through because the connection dropped.

I prefer to install the operating system and run updates as a separate task later on.

If you have a good broadband connection you may wish to connect to it now so that you download updates as you go. This will slow down the initial install but will save time later on as you won't have to install lots of updates.

When you click "Next" you will be shown a tick list highlighting how prepared you are for installing Ubuntu.

As you can see I have 2 ticks because I have enough disk space and I am plugged into a power source. I chose not to connect to a network as this stage (hence the cross).

Click "Continue".

The next screen may look rather intimidating but it is just showing your current disk layout.

*> Be very careful with the next few steps.

  If you haven't taken that Windows backup, quit the installation,
  reboot and follow step 1 of this tutorial again.*

Look at the image above. You will see a large portion of free space (710155 MB). This is where I put Ubuntu.

The free space is going to be split into 3.

The first partition is for Ubuntu and will be 50 Gigabytes in size.

The second partition is for your home partition and stores configuration files and your personal files such as music, pictures etc.

The third partition is for swap space and is used for intensive operations and suspending the computer.
When you have found the partition with free space, click on it and press the plus symbol (+) under the disk layout.

MAKE THE PARTITION ACCORDING TO YOUR REQUIREMENTS

Press "Install Now" to continue.

The installation has now begun but whilst it is taking place you are asked a few configuration type questions.

First of all choose your location by clicking on the map.

Press "Continue".
The next screen asks you to choose your keyboard layout.

Simply choose the correct one for you and press "Continue"
You will now be required to create a default user.

Enter your name, a name to identify your computer, a username and a password.

You can also choose whether to log in automatically or require a password each time.
A progress bar will now show you how far through the installation you are.

You can also view a selection of messages telling you all about Ubuntu.

At this point you can take another comfort break and depending on your computer's speed you will either have time to boil an egg or wash your car.

At the end of the process you will be asked whether you want to reboot to start using Ubuntu or to continue using the live version.

When I rebooted it went straight back into Windows and I had to reboot back into the live session anyway. So at this point you can either take my word for it and stay in the live session or you can reboot and see if the installation has worked without any further steps required.

7. Boot Repair

I am going to assume that you chose to restart now and your computer booted straight into Windows without giving the option for Ubuntu.

Log into Windows and click the power icon next to your username in the top right corner.

Hold down the shift key and select to restart your computer. Keep the shift key held down until your computer reboots.

At the point of the UEFI settings appearing choose to boot from USB again.

You will now be booted back into the live session of Ubuntu.

Click on the network icon in the top right corner and choose your network connection. You will probably need to enter the security key. (If not then when you have finished with this process consider checking your router settings because your internet connection is wide open).

Now open up a terminal by pressing the "super" key (Windows key) and typing "term".

Within the terminal window enter the following commands one by one.

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sh -c "sed -i 's/trusty/saucy/g' /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list"
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

Eventually the boot repair screen will appear.

Click on the "Recommended repair".

When I did this I received a message stating "EFI is detected". This is just an informational message as far as I am concerned because it is perfectly fine to install Ubuntu with EFI turned on.

After clicking "OK" to the EFI detected message the utility performed a few tasks and then asked me to select some text and run it in a terminal window.

If you are asked to do this open a new terminal window (press the "super" key, enter "term" into the Dash and click on the icon that appears).

Copy the text from the boot repair window by selecting it with the mouse. Press CTRL and C and then right click in the terminal window and select paste.

Make sure all the commands have run correctly. You may need to press return to get the last command to run.

Now click on the "Forward" button within the boot repair application. You may be asked to copy and paste more text.

Repeat the process of selecting all the text, press CTRL and C and then right click in the terminal window and select paste.

Make sure the commands run.

Keep following through on the process until the boot repair finishes.

If you are like me then at the very end of the process you will see a message stating that boot repair completed with errors. (not good). It is worth copying the link and posting to pastebin as suggested but I think you can just continue onto the next step.

8. Fix the boot loader

Almost there now.

Reboot your computer.

Unless you are lucky it will still boot straight into Windows and actually this is ok because we are going to use Windows to fix the boot loader.

Log into Windows and make sure you are viewing the desktop and not the tiles screen.

Hover the mouse in the bottom left corner and right click. You should see an option for the administrator's command prompt. Click on this option.

Within the administrator's command prompt type the following command:

bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi

Exit the command prompt.

Reboot into Ubuntu

Reboot your computer.

This time when the computer boots you should see 4 options.

1. Ubuntu
2. Ubuntu (advanced)
3. Windows (might say something similar like Windows boot options).
4. Setup

Choose option 1.

Ubuntu 14.04 should now appear. Get yourself a beer, you have earned it.

10. Reboot into Windows

Reboot your computer (click the symbol in the top right corner, click shutdown and restart).

This time when the boot menu appears click on the Windows option.

Your computer should boot back into Windows 8.

Troubleshooting

The steps I have written here are the steps I went through to get Ubuntu 15.04 to dual boot with Windows 8.1 on my i5 PC.

The process will hopefully work on other computers as well and as with my last guide I will do my best to help people and clarify the points within the article.

I can't guarantee success in every case as this doesn't appear to be an exact science.

Make sure you take a backup before attempting to dual boot Windows 8.1 and Ubuntu 14.04.

ref: > http://goo.gl/nRYGbl


The easiest why to tunnel all traffic through SSH similar to a VPN is to use the sshuttle package.

First, install the package:

sudo apt-get install sshuttle

Then connect to the SSH tunnel and redirect your default route to go through it:

sshuttle  -vv --dns -r username@sshserver[:port] 0.0.0.0/0

This will forward all TCP traffic through your SSH connection, including DNS requests. If you still want DNS handled locally, you can remove the --dns flag.


Before you begin, go to the Google meet or the teams website using Google Chrome and click on the padlock next to the URL. Then, click on site settings and set the Microphone to "Allow".
PulseAudio is your default audio manager so you can change the settings through your system settings in the audio or sound settings section. Your problem can be solved using Jack but I don't think it's necessary.
First, open your Sound Settings or navigate to Sound under your System Settings.
The "input" and "applications" sections are relevant here and you might need to edit these sections while teams or google meet is running.
Sometimes the devices and/or applications are set to mute by default. You can also select input devices and adjust the volume.

If you are not able to get the microphone working through the default settings section, you can install the PulseAudio Volume Control application.
First, install the application by running the following commands:
sudo apt update
sudo apt install pavucontrol

Next, search for "pulseaudio volume" or "pavucontrol" in your installed applications.
Here, the relevant sections are "Recording", "Input Devices", and "Configuration".
The Recording section will only show applications that are currently in use to it's best to check this section when teams or google meet is running.
Under the Configuration tab, you can set your audio adapters to "Duplex", which is both input and output, or you can set to "Input" or "Output" and there may be a few other stereo, digital, analog, and mono options and combinations available.
Under the Input Devices section, you can select different devices for different adapters.
Of course, you can adjust the volume in all of these sections as well.

Your third option is to install alsa-utils. PuseAudio acts as a middleman between you and ALSA. However, you can adjust ALSA settings directly.
Install the alsa-utils package:
sudo apt update
sudo apt install alsa-utils

and then you can run the following command to use the alsamixer:
alsamixer

First, use the left or right arrow key to navigate to "Auto-Mute Mode" and then use the up or down arrow key to Disable this option.
Next, press F5 to show all items. Now, you should see options for internal microphone, mic-boost, and others.
Use the up or down arrow keys to adjust the volume and press the M key to mute or unmute an item.
Also if you have more than one audio adapter or sound card, you can press   F6 to adjust the settings for a different card.


Why android studio is not working from dock and my applications?

Remove existing launcher and try methods described here: How to add Android Studio to the launcher?

Hope it will help


Sound not working after ending HDMI connection

PulseAudio Volume Control lets you set the output device of each app that's currently playing sound.  It seems like the default sound settings dialog should have this functionality, but currently it doesn't.


lost sound ubuntu 14.04, tried everything

Reinstall the common soundcard drivers packages:

sudo apt-get --purge autoremove build-essential linux-headers-`uname -r` && sudo apt-get install build-essential linux-headers-`uname -r`


According to the Launchpad publishing history of Owncloud, it was removed from the repositories because of bug report #1384355 by request of its upstream authors because of a severe security vulnerability. Thereafter a version with backported fixes has been published for Trusty 12h ago, but not (yet) for Utopic for some reason.

I recommend that you download and install the packages for Trusty manually until the issue has been resolved. Consider filing a bug report, if the package doesn't reappear in the Utopic repositories soon.

You can try apt-mark manual PACKAGE... (see man page) to flag some of Owncloud's dependencies as manually installed to remove them from the set of packages that apt-get autoremove would remove.


Virtualbox VMs initramfs repeatedly fails on Xenial Xerus and Artful Aardvark

Process of elimination
We'll work through your possibilities one by one.
Does update-initramfs work ok?
After your failed distribution upgrade you can still reboot and Grub will have the original kernel available on the Advance Options sub-menu. Select it to boot.
After start up open the terminal and type:
sudo update-initramfs -u

This will generate the initramfs for the current kernel. If it works ok then that removes it as a problem.
Was Ubuntu trying to install a broken kernel?
Find out the current kernel version using uname -r:
$ uname -r
4.14.15-041415-generic

Your kernel version will likely be 4.4.0..., 4.8.0..., 4.10.0... or 4.13.0....
List installed kernels using:
$ dpkg -l | grep linux-image
ii  linux-image-3.16.53-031653-generic         3.16.53-031653.201801090931                  amd64        Linux kernel image for version 3.16.53 on 64 bit x86 SMP
ii  linux-image-4.10.0-28-generic              4.10.0-28.32~16.04.2                         amd64        Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-4.10.0-37-generic              4.10.0-37.41~16.04.1                         amd64        Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-4.10.0-38-generic              4.10.0-38.42~16.04.1                         amd64        Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-4.10.0-40-generic              4.10.0-40.44~16.04.1                         amd64        Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-4.10.0-42-generic              4.10.0-42.46~16.04.1                         amd64        Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-4.13.9-041309-generic          4.13.9-041309.201710211231                   amd64        Linux kernel image for version 4.13.9 on 64 bit x86 SMP
ii  linux-image-4.14.10-041410-generic         4.14.10-041410.201712291810                  amd64        Linux kernel image for version 4.14.10 on 64 bit x86 SMP
ii  linux-image-4.14.11-041411-generic         4.14.11-041411.201801022143                  amd64        Linux kernel image for version 4.14.11 on 64 bit x86 SMP
ii  linux-image-4.14.12-041412-generic         4.14.12-041412.201801051649                  amd64        Linux kernel image for version 4.14.12 on 64 bit x86 SMP
ii  linux-image-4.14.13-041413-generic         4.14.13-041413.201801101001                  amd64        Linux kernel image for version 4.14.13 on 64 bit x86 SMP
ii  linux-image-4.14.14-041414-generic         4.14.14-041414.201801201219                  amd64        Linux kernel image for version 4.14.14 on 64 bit x86 SMP
ii  linux-image-4.14.15-041415-generic         4.14.15-041415.201801231530                  amd64        Linux kernel image for version 4.14.15 on 64 bit x86 SMP
ii  linux-image-4.14.2-041402-generic          4.14.2-041402.201711240330                   amd64        Linux kernel image for version 4.14.2 on 64 bit x86 SMP
ii  linux-image-4.14.4-041404-generic          4.14.4-041404.201712050630                   amd64        Linux kernel image for version 4.14.4 on 64 bit x86 SMP
ii  linux-image-4.4.0-101-generic              4.4.0-101.124                                amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-103-generic              4.4.0-103.126                                amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-104-generic              4.4.0-104.127                                amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-98-generic               4.4.0-98.121                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.9.76-040976-generic          4.9.76-040976.201801100432                   amd64        Linux kernel image for version 4.9.76 on 64 bit x86 SMP
ii  linux-image-4.9.77-040977-generic          4.9.77-040977.201801170430                   amd64        Linux kernel image for version 4.9.77 on 64 bit x86 SMP
ii  linux-image-extra-4.10.0-28-generic        4.10.0-28.32~16.04.2                         amd64        Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-extra-4.10.0-37-generic        4.10.0-37.41~16.04.1                         amd64        Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-extra-4.10.0-38-generic        4.10.0-38.42~16.04.1                         amd64        Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-extra-4.10.0-40-generic        4.10.0-40.44~16.04.1                         amd64        Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-extra-4.10.0-42-generic        4.10.0-42.46~16.04.1                         amd64        Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-101-generic        4.4.0-101.124                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-103-generic        4.4.0-103.126                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-104-generic        4.4.0-104.127                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-98-generic         4.4.0-98.121                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-generic                        4.4.0.104.109                                amd64        Generic Linux kernel image
ii  linux-image-generic-hwe-16.04              4.10.0.42.44                                 amd64        Generic Linux kernel image

On a fresh install you'll only have one kernel version. Whatever the version we will mark it held so the next update doesn't download a newer kernel and try to generate a new initramfs on it. Do this using:
sudo apt-mark hold linux-image-4.14.15-041415-generic

Remember to change 4.14.15-041415-generic with the uname -r results earlier
Notice how we took the results of uname -r to look up the full kernel name in apt.
Now run:
sudo apt update
sudo apt upgrade

Did anything break this time?
Does your Virtual Box install ok?
This part I'll leave to you. If it works ok you will know it was upgrading the kernel that broke on your other attempts. If it doesn't work ok then you know it's a problem with Virtual Box and that is where to focus. For example some VMs need newer versions to work with the 4.13 kernel.
To get back onto regular kernel updates you have to unpin the package you held using:
sudo apt-mark unhold linux-image-4.14.15-041415-generic

Remember to change 4.14.15-041415-generic with the uname -r results earlier
Virtual Box broken for Kernel 4.13.0-26
Much too late I found this Q&A: virtualbox crash on kernel 4.13.0-26
You need to Download it from VirtualBox page or add the source to your /etc/apt/sources.list:
deb http://download.virtualbox.org/virtualbox/debian xenial contrib

If you use a different version of Ubuntu than 16.04, use the appropriate name instead of xenial.
Add Oracle public key:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

Update repositories and install virtualbox-5.2:
sudo apt-get update
sudo apt-get install virtualbox-5.2

On one of my laptops, VM didn't want to start before I removed virutalbox-dkms:
sudo apt-get remove virtualbox-dkms


PC doesn't recognise my startup (USB Flash) drives

Startup Disk Creator and Unetbootin are known to not configure the  media properly.

Open the Disks tool and click ☰ (on the right top corner) - select Restore Disk Image.

Select the Ubuntu installation ISO image and the USB disk - start the restore process.

Reboot the computer and select the USB drive entry from BIOS menu to boot from.

This method is proven to work and to create the Ubuntu installation media properly.

Update addressing your comments that you cannot boot into a working system:

Create the media using the diskpart tool in Windows.

Open command prompt as administrator and execute :

diskpart
list disk
select disk *
clean
create partition primary
active
format fs=fat32 quick
assign letter=**

Note: * = number of USB drive | ** = select a free drive letter

Mount the ISO image and copy the content to the USB drive.

Change the boot order in BIOS to boot from the USB drive.


A Linux container can use an authorized_keys file outside my home directory, but ephemeral containers based on it can't. Why?

This is an old question but it still comes up in google...

Authentication refused: bad ownership or modes for directory /

is caused by the sshd service having strict permissions requirements for the directory in which authorized_keys is found, not sure how you managed to make that the root directory (/) presumably something to do with the way your configuring containers.

If you cant change the permissions of / , which seems likely in this case, you can set

StrictModes no

in sshd_config.
Provided you don't have multiple users accessing the server, doing this has little impact to security.


Ubuntu 17.10 Screen lock not working and grey

Lock screen needs to be enabled:

gsettings get org.gnome.desktop.lockdown disable-lock-screen
false

If result is true then use:

gsettings set org.gnome.desktop.lockdown disable-lock-screen false


How to transfer my Opera speed dial / bookmark from windows 8.1 to Ubuntu 18.04

I just exported from Opera Windows in HTML format and imported into my Ubuntu, it seems kept all the groupings. I'm not using Opera in Ubuntu due to freeze problem when some sites trying to open additional ad browsers in Opera.


Printing next working day in bash given list of holidays

In general, one does something like:

date_is_ok=0
while [[ $date_is_ok = 0 ]] ; do
    new_date=generate_the_date
    grep -q "$new_date" holiday_list.txt
    date_is_ok=$?
done

Taking advantage of grep's

−q        Quiet.  Nothing  shall be written to the standard output, regardless of matching
          lines. Exit with zero status if an input line is selected.


How can I install the minimap plugin for vi or vim?

First, make sure that the line: Plugin 'severin-lemaignan/vim-minimap' is not repeated in your ~/.vimrc file.

However, other users have reported this issue with no repeated lines. I think I found a fix for this. You need to edit your ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim file. Run the following command to make the change:

sed -i '95i\    \\ && s:bundle_names[a:bundle.name]!=a:bundle.name_spec' ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim


Why can't I import "pygtk" with Python 3.2 from PyDev?

PyGTK has been deprecated in favor of PyGI+GTK. Because of that, a version of PyGTK for Python 3 was never written.

To use PyGI+GTK in Python 3, you need to install the python3-gobject package and do

from gi.repository import Gtk

For a quick introduction on porting PyGTK code to PyGI+GTK, see here:

https://live.gnome.org/PyGObject/IntrospectionPorting

For a full tutorial, see here:

http://readthedocs.org/docs/python-gtk-3-tutorial/en/latest/index.html


Can't exit emergency mode (I do know my root password however)

Your installation of a dkms driver whilst running kernel 4.15.0-45-generic failed, and caused the computer to no longer boot up. This can be seen by using the dkms status command. This may be because you git cloned the -b extended branch of the code.

Kernel 4.15.0-39-generic still boots, and shows that the wi-fi card IS found, and is using the iwlwifi driver.

So, whilst booted to -39, lets remove the dkms driver from -45...

In terminal...

sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic # remove the dkms driver

dkms status # should show nothing, for any kernel

ls /usr/src # should not show any rtlwifi* directory

At this point, reboot to kernel -45. If it doesn't boot, we'll have to rebuild the /boot/initrd.img-4.15.0-45-generic. I'll wait with this command for now... didn't need to worry about this.
To install the iwlwifi_new driver, do it this way...

In terminal... in the -45 kernel...

remove the original git cloned folder

git clone https://github.com/lwfinger/rtlwifi_new.git

sudo dkms add ./rtlwifi_new
sudo dkms build rtlwifi-new/0.6
sudo dkms install rtlwifi-new/0.6

dkms status # should show installed for kernel -45

reboot

check wi-fi...

Update #1:

delete the git cloned folder

sudo dkms remove rtlwifi-new/0.6 -k 4.15.0-45-generic

sudo rm -r /usr/src/rtlwifi-new-0.6

Start a new question with title something like "Wi-Fi card not seen on my HP Pavilion laptop". Articulate that you've tried the iwlwifi_new dkms driver and that it didn't work.


how to install video driver for Ubuntu 14.04

Open Dash by pressing the super key (or Windows key). Type in "software" in the prompt and click on the "Software & Updates" icon. Click on the "Additional drivers" tab and wait for it to load the available drivers. Select whichever driver sounds right for your computer and then click "apply changes".


Couldn't create temporary file to work with /var/lib/apt/lists/...bionic_InRelease

This same error happened with my Ubuntu 18.04.
Then I reboot twice until it didn't start more.
Instead, the boot initramfs started.
Then, I run the 3 commands:
(initramfs) exit
...
(initramfs) fsck /dev/mapper/ubuntu–vg-root -y
...
(initramfs) reboot
...

PS.: I guess that had occurred any disk error after the last upgrade kernel. This already occurred in recent past two or three times.


Is it possible to use auto-login in Lightdm even with encrypted home?

The auto login doesn't indeed work if you've encrypted your home folder. An alternative is to use an encrypted private folder instead of encrypted home folder if you want to use auto login.

You can setup the encrypted private folder by running ecryptfs-setup-private from the terminal but you'll first need to disable the encryption of your home folder by following these steps:

Backup your files from your home folder (don't ignore, you need to restore the back upped files later)
Log in using an admin account (create a new one if your account is the only one in your system) and
a) delete ecryptfs-utils package using synaptic or apt
b) restart
c) delete completely your old home folder including your folder inside the hidden ecryptfs folder in /home
d) create yourself a new account
Restore your back upped files (I warned you if you didn't backup your files)

DISCLAIMER: I wrote that mini tutorial as a response to a question in LP. Furthermore, it was written for Karmic but should work in later Ubuntu releases. It is provided as-is. I take no responsibility for any data loss.


Which recognized flavors of Ubuntu have been granted the LTS status for 14.04?

The decision to grant LTS status to recognized flavors is taken by The Ubuntu Technical Board.

All the recognized flavors have been granted the LTS status for 14.04. Their support duration are:

Supported for 5 years

Edubuntu
Kubuntu
UbuntuKylin

Supported for 3 years

Ubuntu GNOME
Lubuntu
Mythbuntu
Ubuntu Studio
Xubuntu

Meeting summary of The Technical Board.


Ensure you have 32bit libs installed:

sudo apt-get install libc6-i386 ia32-libs lib32z1


Battery on Macbook Air shows fully charged but computer dies when unplugged

I've seen this on laptop batteries.  It's caused by a bad cell in the battery, which could cause a fire or even explode if left on charge.  If you can remove the battery from your computer, do so; otherwise, get it replaced by a qualified servicer as soon as possible and don't charge the computer until you can do so.

I can't emphasize enough the safety aspect of this: charging this computer could burn down your home.


15.04 Server fails to update with failed to fetch temporary failure resolving errors

I changed default DNS server to the Google DNS servers 8.8.8.8 and 8.8.4.4

Now I can install everything again.


I have faced the same problem, and I think I finally found the answer!

Problem: You might be running Windows on a dynamic disk. Windows does this thing where it converts the disk in its proprietory dynamic format, which linux cannot read.

You can find out if your disk is dynamic or not, by right clicking on "My Computer" -> Manage -> Storage -> Disk Management. See if your disk is "Basic" or "Dynamic".

It should look something like this.:

Solution:

Download the EaseUS partition tool and install it.
Backup all your data!
Find your disk on it, right click, and then "Convert to Basic".

After this, move Wubi to the same directory as your downloaded ISO file and run it (or if you have not downloaded the iso file, then just run it!)

WARNING: I did not face any problem with data losses during the dynamic to basic conversion process, but I imagine there is a significant risk of you losing all or some data. Please BACKUP before you attempt to convert it!


Why am I getting a "font error" after installing WPS-Office via flatpak?

The fonts you need are available in a zip file that can be downloaded from:

ArchLinux: ttf-wps-fonts

Alternatively, you can try installing the WPS deb package from linux.wps.com. It did not generate any font errors when I tried it.


update-rc.d command is a perl script:

$ file `which update-rc.d`
/usr/sbin/update-rc.d: a /usr/bin/perl script, ASCII text executable

I'm not good at perl, but from what I understand and its variable name:

my $archive = "/var/lib/update-rc.d";

sub save_last_action {
    my ($script, @arguments) = @_;

    return if $notreally;

    open(FILE, ">", "$archive/${script}.new") || die "unable to write to $archive/${script}.new";
    print FILE join(" ","update-rc.d",@arguments), "\n";
    close(FILE);
    rename "$archive/${script}.new", "$archive/${script}";
}

sub remove_last_action {
    my ($script) = @_;
    unlink "$archive/$script";
}

it just record the last action(command) of update-rc.d. and delete with no influence


Type:

xfce4-session-settings

Then open the tab "Application Autostart" and click on 'Add'.
Alternately you can create a .desktop file and put it in ~/.config/autostart.

A simple .desktop file could be:

[Desktop Entry]
Version=1.0
Type=Application
Name=test
Comment=test
Exec=path_to_script_or_command
Icon=
Terminal=true
StartupNotify=false
Hidden=false
OnlyShowIn=XFCE;


Aquaris no more mobile or wifi connectivity

It seems that a problem in the user config files can cause the network to disappear. The same symptoms on an aquaris E4.5 were solved by

deleting /home/phablet/.config/connectivity-service/
reboot

After reboot, the directory was restored by the system and the network was OK again. Before deleting, there were two files in the directory: config.ini and config.ini.lock. After reboot, only config.ini was restored.

What I tried before:

backup /home/phablet to the SD card using tar -cvz
factory reset from settings

Result: network was OK

Copy original /home/phablet back from the tar archive

Result: network still OK, but contacts and app icons not shown. Therefore:

reboot

Result: The original state was back, everything looked like before the factory reset including the problem that the phone didn't seem to have a network. So I looked into /home/phablet/.config for possible candidates.

What broke the configuration? No idea...


Problem with "tracker-miner-fs" (Ubuntu 20.10)

It is normal that tracker-miner-fs takes up CPU power while it is performing the indexing. However, it should stop whenever the indexing is finished, and subsequently kick in when there are new or changed files. If is also quite normal that it takes up CPU power for a few minutes after logging in.
So you need to be patient: the CPU load will decrease.
You cannot what CPU it uses. This is determined by how the application is programmed. That it uses only a single CPU may be rather favorably. If you have multiple cores (most modern systems do), these are left available and as a result, the system continues to feel responsive while tracker-miner-fs is doing its work.
Disabling tracker will improve performance rather than decrease it, but will disable full text file search