You can do this with the tool

pwmconfig

This tool is normally used to save a configuration file for fancontrol. But you don't have to do so. You can just start the tool, than it will put all fans on full speed, sowing there current speed like this:

Giving the fans some time to reach full speed...
Found the following fan sensors:
  hwmon0/device/fan1_input     current speed: 2129 RPM
  hwmon0/device/fan2_input     current speed: 1679 RPM
  hwmon0/device/fan3_input     current speed: 0 ... skipping!
  hwmon0/device/fan4_input     current speed: 0 ... skipping!

After that you just skip (Ctr+C) the tool without saving anything.

To install the tool, you can use the following command:

sudo apt-get install fancontrol


CloneZilla: HDD Cloning - Dual Boot (Windows + Linux)

You made an image of a whole drive (not a partition or a set of partitions). Clonezilla will create a working system of it in the target drive. I have done it and it worked. You need not do any pre-formatting.

Notice that the target drive must be of the same size or bigger (not one single byte smaller) compared to the original drive. If the target drive is smaller, things can get complicated.

Are you aware of the OEM install method of Ubuntu? It helps making the cloned copies into individual systems, that differ enough to work well in a local network.

Edit: Clonezilla can work locally as well as via the network (ssh/sftp).


Is there a way to pass arguments to be parsed when dpkg --configure  requests user input?

Yes:

yes N | dpkg --configure virtualbox-guest-x11

or:

echo N | dpkg --configure virtualbox-guest-x11

or:

dpkg --configure virtualbox-guest-x11 <<< "N"

or, because N is the default option in this case:

dpkg --configure --force-confdef virtualbox-guest-x11


Wine systray not working on Unity Ubuntu 14.04

Wine (Windows) System Tray does not work in Ubuntu. There are two options:

1. Emulate a virtual desktop

Use POL -> Configure -> [select app] -> Wine -> Configure Wine -> Graphics -> Emulate a virtual desktop to run the application from the virtual desktop. When you run the application this way, it runs in a small windows screen with a System Tray. Once the application is minimised to the System Tray, you can left-click it. I couldn't get right-click to work.

2. Indicator Systemtray Unity App

The Indicator Systemtray Unity app by GGleb adds the Wine (Windows) System Tray into the Unity Application Indicator.

sudo apt-add-repository ppa:fixnix/indicator-systemtray-unity
sudo apt-get update
sudo apt-get install indicator-systemtray-unity

You may need to reboot to get the System Tray to show up. As before, left-click worked for me but right-click did not.


Grub: can't use arrow keys to navigate (works in Bios)

I have found a solution to this problem on a site called superuser with an answer from Lekensteyn as follows:

On modern Linux distributions using systemd, you can go straight to
the Firmware setup menu using:
systemctl reboot --firmware-setup

Documentation:
https://www.freedesktop.org/software/systemd/man/systemctl.html#--firmware-setup

I entered the command
systemctl reboot --firmware-setup

in terminal and the system immediately rebooted to UEFI where I was able to disable ultra fast boot and everything is now as it should be (apart from not having fast boot).
This has worked for me I hope it works for you.
I still don't realise why my keyboard doesn't work with ultra fast boot enabled but at least I now know it doesn't.


You may check my answer here to a similar question.
Among all other problems there can be an invalid entry in /etc/fstab.


How to install Python Matplotlib 1.5.1 on Ubuntu?

You could be just 4 terminal commands away from an easy installation, depending on the state of your system.

First, there is always risk breaking from the herd.  My 15.10 system only has python-matplotlib 1.4.1something or other.

You could download the source

Once you have satisfied the requirements detailed in the INSTALL file (mainly python, numpy, libpng and freetype), you can build matplotlib.

sudo apt-get build-dep python-matplotlib to install all
dependecies required to build matplotlib
cd ~/Downloads/matplotlib because that is where you unpacked
the archive
python3 setup.py build
sudo python3 setup.py install

The instructions use default interpreter, I used python3 and mine built/installed without a hitch, your success will depend on the state of your system.  Read the error logs.  They will tell you what went wrong.  Generally involving sudo apt-get install <lib[some]-dev>, or pre-emptively,


Ubuntu 12.04; Internet connection established, but no access

I think you need to go to the IP address of your modem/router. Look on the back of the thing that your phone line goes into for an IP adress, username and password. Usually something like:

192.168.0.1
admin
password

Open Firefox, type the IP address into the URL bar and then look for a place to enter your ISP username and password. This isn't really an Ubuntu related question, I don't think, but I may have misread it. Screenshots might help :)


You need to install some essential files requires for compiling software and downloading the dependencies. You can install it like this:

sudo apt-get install build-essential git

If this doesn't work, please specify the output you get when running the make line.


how do I fix the menu items displayed when using OpenOffice?

First thing you need to do is to remove you current openoffice installation.

To do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get purge openoffice
sudo apt-get autoclean

Also you may want to remove the PPA you added.  To do that just: (Thanks to amc)

sudo apt-add-repository --remove ppa:upubuntu-com/office
sudo apt-get update

Then download openoffice 3.4.1 from their website, and choose you right architecture (Linux Intel DEB or Linux x86-64 DEB).  Once downloaded, from terminal navigate to the download location (probably the Downloads folder), and run the commands below:

tar -vxzf Apache_OpenOffice_incubating_3.4.1_Linux_x86_install-deb_en-US.tar.gz
cd en-US/DEBS
sudo dpkg -i *.deb
cd desktop-integration
sudo dpkg -i *.deb

wait for the fist command to finish before running the last two commands.

On a personal note, I would go with Libreoffice as Wolter Hellmund recommended.


The problem is that as you've used double quotes, the variable references ($reserved_block_count, $block_count) are being expanded in the current (invoking) shell environment; you need to quote the whole thing with single quotes around:

echo 'perl -e "printf(\"%.1lf%%\n\", ($reserved_block_count * 100.0 ) / $block_count);"' >>Show_Percent_Reserved_Blocks.sh


It was default ubuntu. And it was the extension listed below. No idea how I got it. But removing it works.

https://extensions.gnome.org/extension/602/window-list/


As a follow-up, for anyone that runs into this problem on the Acer C7 Chromebook:

Installing Ubuntu 13.04 fixed ALL of my wi-fi issues.

I wiped the partition and reinstalled Chrubuntu but with 13.04 and wi-fi works great now.

I'll also add that XFCE4 has made this little Chromebook screaming fast (given that it was $130). Everything works great--including bluetooth!


Is there a command line option to bring up Ubuntu's launcher?

I know this isn't the answer you asked for but it will resolve the problem. Go to Settings, Appearance, Behaviour and turn off auto-hide the launcher as shown below. Problem solved.

If you need more real estate for your desktop turn on Enable workspaces as well (as you see checked below) you can switch between them with Ctrl and the arrow keys. On my system this resulted in increasing my workspace by a factor of 12 without the need to purchase additional screens.

You can also launch applications by bringing up the application lens via SuperA (the Super key is between the left Ctrl and left Alt keys on my keyboard. It may be the same on yours.

If you want to simulate keypresses you could try xdotool which you can install via sudo apt-get install xdotool

Sources: Experience

http://xmodulo.com/simulate-key-press-mouse-movement-linux.html


How can I update Gwibber to work with Twitter API v1.1?

Here's the fix in the comments https://bugs.launchpad.net/ubuntu/+source/gwibber/+bug/1190575


Computer slow and Ubuntu not using Exchange Ram

First, the CPU graph of the System Monitor is itself pretty exhausting for old machines. Depending on your CPU and graphics, only displaying this chart with a high enough refresh rate may probably cause the high CPU usage.

As a replacement, open a terminal and run top. It also monitors resource usage and processes, but is far more lightweight. It's not very nicely designed though...

Example for top:

Tasks: 168 total,   1 running, 167 sleeping,   0 stopped,   0 zombie
%Cpu(s): 33,6 us,  9,6 sy,  0,1 ni, 54,8 id,  1,9 wa,  0,0 hi,  0,0 si,  0,0 st
KiB Mem:   2062940 total,  1888640 used,   174300 free,    83472 buffers
KiB Swap:  2725884 total,    18656 used,  2707228 free.   630612 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 2345 root      20   0  183180  73228  31776 S  23,7  3,5  13:32.73 Xorg
 4065 ipc-adm+  20   0 1455540 546436  74368 S  17,8 26,5  41:47.86 firefox
   32 root      20   0       0      0      0 S   5,9  0,0   0:12.71 kworker/1:1
 3598 ipc-adm+   9 -11  298260  11392   9572 S   5,9  0,6   4:26.09 pulseaudio
 7751 root      20   0       0      0      0 S   5,9  0,0   0:01.08 kworker/u4:0
10384 ipc-adm+  20   0  112304  30712  25976 S   5,9  1,5   0:00.91 gnome-terminal-
10458 ipc-adm+  20   0    6896   2700   2332 R   5,9  0,1   0:00.01 top

A nicer interface has htop, but it is not installed by default. Run sudo apt-get install htop to get it.

Example for htop:

Please close the System Monitor and check the CPU usage again with one of those tools. Probably you will get very different results.

Also you can directly see which processes are using how many percents of your CPU time and memory consumption. This allows you to narrow the problem down to probably a single application - if it still is a problem at all.

Why do you expect a high RAM usage? It states 2.0 GB available, so that's fine. It's exactly what we would expect. You're just currently not needing more than 732MB, so why should Ubuntu decide to eat up more?

And no swap usage is also optimal, because Ubuntu usually tries to avoid swapping unless it almost runs out of memory or surely knows that some memory pages won't be used. Be happy that your swap is not in use, because the HDD is so much slower than RAM, you would quickly notice decrease of the overall system performance as soon as swapping starts.


Ubuntu 13.10 failed NVIDIA drivers install (no bumblebee)

The official drivers are generally considered to have better compatibility for your hardware. You should really stick to the ones found in the ubuntu repositories as these have been tested with your distribution. Nvidia 331 is the latest but you can expect to run into bugs. I think 319-updates is the most up to date supported driver for 13.10.


The intel-microcode package version 3.20151106.1 and later have the latest revision of the microcode for the Surface 1 (Intel Ivybridge-U, CPUID 0x306A9). If you installed that package and rebooted, your problem should not be the microcode.  Ensure /proc/cpuinfo reports a microcode of 0x1c or higher.

For optimal thermal management on that box, you also need the embedded GPU to run with very aggressive thermal management (i.e. not at performance mode).

Please try to install "powerd" (https://wiki.ubuntu.com/powerd), it might help.  Also, look for ways to configure the GPU to run at a lower power point, e.g. by downclocking it.


Not able to install marble and kpatience

Try running sudo apt-get update first and then do the installation.


how can i partition the HDD in ubuntu 12.10 64bit ? - only have ubuntu as OS on notebook

You need a live CD/DVD or USB to do that.

For example, you can use Ubuntu Startup Disk Creator to create an Ubuntu live USB.

Then boot your computer from this USB (by changing BIOS settings, boot priority or by entering boot menu command -- which vary between computers: Delete, Esc, F2, F9, F10 or F2).

When you are in Ubuntu Live session, you can start GParted Partition Editor and re-partition your hard disk.


There are examples in the manpage:

http://manpages.ubuntu.com/manpages/utopic/man1/systemd-nspawn.1.html

The example is for debian, but something like the following works for a minimal container using vivid.

debootstrap --arch=amd64 vivid ~/vivid-tree/
systemd-nspawn -D ~/vivid-tree/


Trouble installing parallels tools on ubuntu

You should be able to install Parallels Tools from the 'Virtual Machine" menu of Parallels when the VM is running. However, some Linux distros do not play well with the installer and may require that you install them from the command line in the virtual machine. You may find this article helpful for installing from the command line.


How to manually set color of Unity Panel?

The only way I know of to do this is the use CompizConfig Settings Manger.  First you'll need to install it:

sudo apt-get install compizconfig-settings-manager

CCSM will now show up in the Dash or can be run from the command line with

ccsm

In the "Desktop" category, you should see an "Ubuntu Unity Plugin" button.  Click this and go to the "Experimental" tab.  The first option there should be called "Background Color".  You can click on the color and pick any color you'd like.  The Unity panel should now remain that color regardless of your desktop background.

If you'd ever like to go back to the automatic color selection, click the reset button for the "Background Color" option.


It's just a convention. The kernel btrfs wiki's section on subvolumes doesn't mention @ at all. This discussion on the debian-boot mailing list is informative:

  The convention proposed in the upstream btrfs sysadmin guide is
  identical to the way Fedora names its subvolumes, and I believe it was
  written by a Fedora developer.  I think the primary rational to
  diverge from it is to signify that what seem to be directories are not
  actually directories, but subvolumes.  As I mentioned before the
  flexibility this FS supports is astounding, and I fear could be a
  nightmare to support without near self-evident default conventions.  I
  guess I'll just pick something, and it someone doesn't like it then it
  can be changed?  I was hoping any strong opinions would come out in
  this discussion! :-)

This is a convention that OpenSUSE and Debian apparently picked up from Ubuntu, and the idea of using all those subvolumes is attributed by Colin Watson to Roger Leigh. That was in 2010, and in 2011, we already have subvolumes named with @, but I can't find online discussions about this during that period. I suppose only Colin can answer this now.


Fist type

pidof vlc

after

kill -9  pid

or

pkill pid


cairo-dock icons degrade to question marks over time

Right click on Cairo Dock>Configure, then click on the "Appearance" tab, then try selecting a different theme for icons. If the question marks go away, then it must be a problem with the theme you were using. If that doesn't solve the problem, then you could try choose the correct icon manually for each icon that isn't working. However, to me, it seems strange that you say they fade, or something.... Anyway, hopefully it'll work.


Replace Windows 7 with Ubuntu install option

It's not too difficult. Your first hurdle is to grab a copy of Windows 7. Do you know anyone else with a disk? If not there are sites like mydigitallife that regularly update links to download. See the site for details about how this is possible, and to answer the question of the legality of this. As laws vary by country, you should ask a lawyer if you aren't sure about what to do.

You need a Windows product key to use with the laptop. Sometimes the key is on a sticker on the bottom of the laptop. If it's not you might need to buy a key from Microsoft.

After you have a copy of Windows 7, and a key, back up whatever you have in the Ubuntu install. Install Windows first (This will wipe everything on the drive, including Ubuntu), then reinstall Ubuntu. Make sure you do it in that order. Windows first, then Ubuntu.

If you sort this out without too much difficulty, post an update with how it went. More people are likely to try Ubuntu if they can see how to switch back to Windows later.


Reccomended options for mounting /dev/bcache0 as /home

discard is a special case: bcache will (I think) make use of it to discard sectors, but won't pass it down the stack unless you have explicitly asked it to (echo 1 |sudo tee -a /sys/block/*/bcache/discard, which will be remembered across reboots). The best case for performance is that your filesystem sends discards (which means you need to put the flag in /etc/fstab) and bcache passes them down if and only if your SSD is SATA 3.1 (queued TRIM support).

Your filesystem is able to detect bcache as something like an SSD (rotational=0 in sysfs), which it may use to tune itself a bit differently.  Aside from discard and noatime, I don't think there's a real need to stray from ext4 defaults.


User stopped being sudoer after release upgrade

You are in for some troubles. Unless you have a root user password set or access to another user still having sudo capabilities, you are out of luck and will have to get the machine into recovery mode somehow.

This may require physical access, but if you are using a hosted server, your hosting provider usually offers a web interface that may get your machine into that mode. Back up everything NOW if you haven't done so already.

If you can manage to get your machine into recovery mode, follow this post to regain sudo capabilities:

Lost my root access and unable to install any software or any other priviliged operations


There is no need for a workaround. Simply click the close button on the right hand side in the search bar.

If you need an auto hide, install Findbar autohide


How do you write a macro for a special character in LibreOffice?

A macro would be overkill in this scenario. There's a much easier option: Autocorrect.

In LibreOffice Writer go to Tools --> Autocorrect:

Define a string and its replacement:

As you can see I used this method for a set of arrows and it works fine. It might not be the minimum-keystroke option you were searching for, but it sure is far less complicated than a macro.


Install app with no install instructions

You probably can safely copy the program to /usr/local/bin/ (just to be safe). Only do that if you are sure that the program runs on your architecture.


Well do the following. Do not logout from anywhere.

Press Ctrl+Alt+F1.

Log on to tty.

Install remote desktop to your computer.
$ sudo apt-get install xrdp

Log on to Ubuntu with another computer. Use $ ifconfig to list your IP.

Save all you incognito tabs (right-click on a tab and select "Bookmark all tabs" or hit Ctrl+Shift+D).

On your tty shell, execute
$ sudo service lightdm restart

You should be logged out of Unity and the login screen would be unfrozen.

Why the workaround? Chromium developers went to a lot of trouble to ensure that Chromium does not save any state information in incognito mode. It's probably possible to write a script to get all open tabs, even incognito, but that'll only get you the URLs. Not worth the effort in my opinion. I would sill like to see if somebody can show how to do it that way.


Unity file dialog & window resizing in general

Hopefully this problem with file dialogues will be fixed in 11.10, but for now, you can drag the window by holding alt and dragging with the mouse.


Software compatibility across various linux distros

All distributions of Linux do not use the same packaging systems and formats. They also do not all use the same build and compilation options for the software they do include. In the case of Skype, the only probably difference between the download links for Fedora, OpenSUSE, Ubuntu, or some other Linux, would be in how the files are packaged and installed on the system. There would be no advantage to trying to run a version built for another distribution of Linux, on Ubuntu, nor the reverse.

The Steam for Linux statement of support is so that Valve can limit the amount of problems they have to deal with. It's possible to run Steam under a different configuration for sure, but it will not necessarily be supported by them. Claiming to only support specific versions of Ubuntu with a specific environment being used, means that there is a known stable reference configuration to deal with. Supporting any version of Linux with any configuration means that it would have to be tested on all of those configurations, and versions.


Installing lubuntu 14.04 alternate with wubi

You can try to download it to your machine, and run from windows as D:\wubi.exe
EDIT:
You can't install Wubi from an alternate ISO. For 12.04.2, if you want to install from a 32bit desktop ISO, you can save it in the same folder as wubi.exe before running (both available from http://releases.ubuntu.com/12.04
This wubi.exe can also install standalone (no ISO).

To install from the 64bit desktop ISO (not alternate), there is a bug which has been patched, but not released so you'll need to use the wubi.exe from here: http://people.canonical.com/~evand/w...273-signed.exe  Save that in the same folder as the desktop-amd64 ISO before running. link


Removed lock after "could not get lock", now I get "post installation script was interrupted"

You already removed the package manager log but the package configuration was still interrupted. You need to reinstall the docker package from scratch with dpkg -i /path/to/package.deb.

This won't resolve the original issue of the Docker installation. Please open a new question for that and include the output of the installation command. Thanks.


How to back up and restore chrome in ubuntu?

One possible way to do this would be to set up Google Sign in with Chrome, this will then sync your settings inbetween your windows and ubuntu computers.


Switch DNS by command-line? (Like Google DNS/OpenDNS  whatever the system default is)

Here's a little script to achieve that, replace the IPs with your DNS servers and add this script to your path

#!/bin/bash
if [ $1 == "1" ]; then
echo "nameserver 10.1.0.1" > /etc/resolv.conf
fi
if [ $1 == "2" ]; then
echo "nameserver 10.1.0.2" > /etc/resolv.conf
fi


First thing I noted in your gif is that your account is root. Its a doubt.why you need "sudo" .

Second thing there is no ppa:ondrej/php repository for Ubuntu 12.04. Hence, you are unable to add the ppa:ondrej/php. Please consider to update your ubuntu.


This is how I resolved the issue.

from a terminal box type sudo smbpasswd -a <user name>
you'll be asked for a password, use your normal one

then you'll be asked for a new "SMB" password... sync it with the usual one by typing in you password again then confirming it...

Shares were instantly accessible from Win7 using Ubuntu user name and password


Please note that:

Some BIOS will refuse to load devices without a boot option on a contained partition.
Some USB devices come with a totally screwed partition table, and the BIOS could be not able to see the partitions properly, and report that not valid USB device is found, even then the MBR actually has a valid boot program.

My advice is to totally wipe the USB disk partition table (that will delete all the USB disk contents), create a new partition table with a new partition, put the boot option on it, and then create the USB Ubuntu again.

Boot up a Ubuntu Live CD.
Insert the USB device.
Launch gparted from the Unity dash.
Choose the USB device on the upper right corner. You'll see then the USB partitions. Please make sure this is the USB device by checking the size.
Select Device » Create new partition table. If you receive a warning about active partitions, look for partitions with a icon of a key on them, right click, Umount, and then try again.
Press the Apply button
Right click on the unallocated space, New.
Choose the filesystem fat32, assuming this is a standard size USB pendrive (<=4GB), or NTFS in other case. Click add.
Right clicc on your new partition, choose Manage flags, ensure boot is on and click Close.
Select Edit » Apply all operations.

Then, wait for Gparted to do its job, close it and make the USB disk again.


How much minimum space Ubuntu 12.04 installation requires

You should be fine. The Ubuntu Official Documentation recommends at least 5GB of hard drive space when installing with a desktop, which I assume you're doing.

You can read more here: https://help.ubuntu.com/12.04/installation-guide/powerpc/minimum-hardware-reqts.html


Back up your files.

Boot your machine up with the Ubuntu installation LiveDVD or usb stick and select install Ubuntu by doing "something else." This will bring up a list of the available disk partitions. Select the partition where your old Ubuntu installation resides. Click "Change." Make sure that the "Use as" and "mount point" fields are correct. These will likely be "ext-4 journaling" and "/" Click "OK." Click on the "format" checkbox. Click on "Install Now."

The installer should guide you through the rest of the installation process.


Is it possible to install nvidia 310 drivers version on ubuntu 10.04?

I'm assuming you meant 12.04 but either way, you should be able to install the drivers using apt as follows:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current


How to enter BIOS menu again after uninstalling rEFINd?

It seems this is a common problem with that motherboard so here is a forum with information and a few steps in the hope if fixing it:

http://rog.asus.com/forum/showthread.php?27544-G75VX-Changed-boot-order-can-t-access-BIOS


The problem is you are in a LTS version and 10.10 is a normal version.

Here are the steps:

Be sure that you apply all updates to your current version of Ubuntu before you upgrade:

sudo apt-get dist-upgrade

Now perform this procedure:

  Network upgrade for Ubuntu servers (Recommended)

  Install update-manager-core if it is not already installed:

  sudo apt-get install update-manager-core
  Edit /etc/update-manager/release-upgrades and set Prompt=normal.
  Launch the upgrade tool:

  sudo do-release-upgrade
  Follow the on-screen instructions.


Boot into your 17.04 installation that you want to keep.
Run lsblk to figure out where everything is, and make mental / physical note of this for later
Run fdisk /dev/sdX where X is the appropriate letter associated with your drive, as you found in 2 (often /dev/sda)
Press d for delete.
When asked something along the lines of Partition number 1,2, 5-7, default 7 it's asking what partition you would like to delete. You should have seen it when you ran lsblk. It will be something like /dev/sdxN, where x is the disk (often /dev/sda) and N is the number associated with the partition (something like /dev/sda2). Input the partition number, and press enter. The partition will be deleted.
Type wand press enter to write changes and quit.
Reinstall grub. This is done with grub-install. Run sudo grub-install /dev/sdxN where sdxN is the identifier for the partition you're keeping. This will install grub to that partition. Alternatively, you can do sudo grub-install /dev/sdx where x is replaced with the disk (often /dev/sda), that way your grub installation will be partition independent and you can avoid this in the future.
Hold your breath and reboot. You should be presented with grub again and be able to boot into your new system.

Before you do all of this, I suggest you make a live usb just in case something goes wrong and you can't boot, so you'll have a way to chroot back in and fix things. Also back up your important data, etc (just in case). Last, after all of this is done, you will need to be able to boot into a live environment anyway, and expand your new main partition to fill the rest of the new empty space, if so desired. This is easily accomplished with something like gparted.


How to prevent Thunderbird to download all emails after fresh install?

Never used it but try this settings:

Open thunderbird
Click on the email account you wish to limit synchronization
Select View Settings for this account under Account section
InSynchronization & Storage look at Disk Space and select Synchronize the most recent. Choose a number of days.


How to set home directory when opening new tab in Terminal?

You could get a similar behavior to this by adding cd $HOME to the end of your ~/.bashrc file.  Technically, this will cause any new shell to cd $HOME, which might might not be a great idea.

You can run cd by itself and it will return you to your home directory.

You haven't mentioned which terminal you're using, so assuming that you're using gnome-terminal, there should be a way to define custom shortcuts/commands. Others are using this with --working-directory= pointing to their home directories:

gnome-terminal --working-directory=$HOME


Message of the day at /etc/motd.tail not working

You are using the wrong file. The correct file is /etc/motd.

From man motd :

  The  contents  of  /etc/motd  are  displayed  by pam_motd(8) after a
  successful login but just before it executes the login
         shell.

  The abbreviation "motd" stands for "message of the day", and this file has been traditionally used  for  exactly  that  (it
         requires much less disk space than mail to all users).

  On  Debian  GNU/Linux,  the  content of /run/motd.dynamic is also displayed.  This file is generated by /etc/init.d/motd at
         boot.


What is the difference accessing root folders as /$ and as /#?

In this case not so much. ls in itself is pretty harmless.

There are a couple of things:

doing something with a $ as a prompt will log events as your user.
doing something with a # as a prompt after doing sudo -i will log events as your user.
doing something with a # as a prompt after doing sudo -u will log events as "root".

The last one should be avoided on multi user systems so you trace an action back to a user. On a single user system it is good practice to copy this behaviour: you can then trace an action back to you or to a "root" driven event (like services log as root so you can see it was not you that did something).

The problem when using sudo -i and sudo -u are related to other commands. Like rm and dd and a couple more where the system will execute these commands without informing you something bad is about to happen. bad as in something you did not expect. A normal user would get a warning about permissions and the command will fail.

Action done with a root user are also executed as root. So if you copy a file over to another location and forget to set the correct permissions your user account will not get access. And we have a couple of files on our systems that need specific permissions for the system to function. Mess with those and you lock yourself out. Those problems can be solved with a grub rescue or a live session so it merely annoying and not permanent.


Ubuntu won't shutdown (stuck on "Stopping VirtualBox kernel modules")

I think I found out what's causing this. It must be Apache or something, because if I stop xampp before shutdown, it all goes well. Unbelievable.


Start a new process without blocking the terminal

Just add & at the end of the command. This makes the new process to run in background and you can continue using your terminal. For example: gedit new_file.txt &


Can't ping Arch Linux machine from Ubuntu Server

The problem was that I had not set a hostname in the DHCP configuration on the Arch machine.

Editing /etc/dhcpcd.conf and adding "hostname myhostname" did the trick.

Really this was an Arch problem, not an Ubuntu one.


You can compile and use the latest scid version (as of today 4.6) yourself :

Download :

wget http://downloads.sourceforge.net/project/scid/Scid/Scid%204.6/scid-4.6.2.zip
unzip scid-4.6.2.zip

Compile :

sudo apt-get install tk8.6 tcl8.6-dev
cd scid-src
./configure
make

Launch :

./scid

Alternatively you can install it using checkinstall:

    sudo apt-get install checkinstall
    sudo checkinstall

Why checkinstall ?

  CheckInstall keeps track of all files installed by "make install" or
  equivalent.   It creates a .deb package and adds it to the installed
  packages database.   This allows easy package removal later. —  Ubuntu Wiki

Successfully tested on my Ubuntu 15.04.


I had the same problem when i upgraded from Ubuntu 18.04. During the upgrade process, my php package 7.2 was removed. However, the upgrade process did not remove php7.2 configurations. Thus, I had to disable the php7.2 mod and install the latest version of php, which is 7.4.

In your case, you will have to disable php7.3 and install php7.4.

I used the following commands:

sudo a2dismod php7.3
sudo a2enmod php7.4

To undo use the following command:

sudo a2dismod php7.4
sudo a2enmod php7.3

To list apache2 mods use the following:

sudo a2query -m

After you make any changes, you will need to restart apache2.

sudo service apache2 restart


I have seen similar with my desktop icons disappearing.  Try running

nautilus -q

This seemed to help bring mine back.


Check if the os-prober package is installed in Ubuntu with dpkg -l os-prober.

If it isn't installed, then:

sudo apt-get install os-prober
sudo update-grub

BTW, Ubuntu 12.04 does some horrible things to the grub menu with /etc/default/grub.  You might want to edit it to comment out these lines:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true

and add these in their place:

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_TIMEOUT=5

This will stop the grub menu from being hidden at boot and will make whatever you choose from the menu be the next default.  It also allows grub-set-default and grub-reboot to work (they don't when GRUB_DEFAULT is hard-coded to 0).

Don't forget to run sudo update-grub after editing it, and then sudo grub-set-default 0 to make sure it has a sane default.

Also, if you don't like the submenu that it hides old kernels with, then patch /etc/grub.d/10_linux like this:

--- 10_linux.orig       2012-05-17 07:07:17.000000000 +0000
+++ 10_linux    2012-08-27 03:46:54.803088897 +0000
@@ -254,12 +254,12 @@

   list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`

-  if [ "$list" ] && ! $in_submenu; then
-    echo "submenu \"Previous Linux versions\" {"
-    in_submenu=:
-  fi
 done

-if $in_submenu; then
-  echo "}"
-fi

and, again, run sudo update-grub.


Why does Audio fade-in instead of starting at set volume level?

I think this is due to pulseaudio suspending the respective audio interface, presumably for power saving reasons.

Try editing your pulse audio config (for me /etc/pulse/default.pa) and comment out this line to disable this feature:

load-module module-suspend-on-idle

Then restart Pulseaudio:

pulseaudio -k


Putting Chromium back into Gnome Shell notifications

Try this:

Go to chrome://chrome/settings/ in chromium
Scroll down to the bottom where it says Background apps.
Check the box underneath
Log out and log back in to your computer.

Hope this helps,

Leinardo


Blank screen that does not accept any input, while trying to intall Ubuntu

I suspect it may not be the problem about grub, and I have met similar problem before. In fact,according to your description, it may be the graphic driver problem, especially when you have Nvidia driver. So just try reinstall the graphic driver.

If you are sure it is the grub problem, try to reconfigure it.

Reboot and hold SHIFT Key, and the grub boot menu should appear.
Select Advanced Options for Ubuntu and enter recovery mode
open a shell and mount the root disk, update grub:

sudo update-grub

More details about ubuntu grub from here.


Did you mean to add items in the 'right-click-menu' that appears, or like adding items in the top bar of gnome?

For adding items in the menu you can install https://extensions.gnome.org/extension/353/window-options/ extension

For adding items in the bar, like list of minimized windows you can use something like https://extensions.gnome.org/extension/368/taskbar-with-desktop-button-to-minimizeunminimize-/ extension


broadwell-rt286 no audio after upgrade to 19.10 - haswell-pcm-audio error

At this particular point, the bug is reported (thanks @DavidWard) and known as bug 1846539.

The only workaround at this point appears to be to use a kernel before version 5.2.0rc2, which, unfortunately doesn't ship with Ubuntu 19.10, so a manual install of an earlier kernel may be required.


Download it. I assume it downloaded to ~/Downloads folder.

ls ~/Downloads/ | grep Team
TeamSpeak3-Client-linux_amd64-3.5.1.run

chmod +x ~/Downloads/TeamSpeak3-Client-linux_amd64-3.5.1.run
Run it (no need to put sh before it): ~/Downloads/TeamSpeak3-Client-linux_amd64-3.5.1.run
Hit Enter, then hit q, then input y and hit Enter
TeamSpeak3-Client-linux-amd64 folder appears in Downloads folder.
mkdir ~/.local/share/teamspeak
mv ~/Downloads/TeamSpeak3-Client-linux_amd64 ~/.local/share/teamspeak/
Check if it could be launched:

~/.local/share/teamspeak/TeamSpeak3-Client-linux_amd64/ts3client_runscript.sh

Create shortcut to run it from launcher:

Create the file: gedit ~/.local/share/applications/teamspeak.desktop with the next content:

[Desktop Entry]
Name=TeamSpeak3
Comment=TeamSpeak3 Client
Exec=/home/user/.local/share/teamspeak/TeamSpeak3-Client-linux_amd64/ts3client_runscript.sh
Icon=/home/user/.local/share/teamspeak/TeamSpeak3-Client-linux_amd64/styles/default/logo-128x128.png
Terminal=false
Type=Application
Categories=Network;InstantMessaging;P2P;

chmod +x ~/.local/share/applications/teamspeak.desktop


run these commands:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
sudo apt-get update && sudo apt-get upgrade

The first command downloads key 40976EAF437D05B5 from keyserver.ubuntu.com, and the next one updates your package list, then applies the needed updates.


Colors missing when calling grep through script

When you run grep in a terminal it shows colours because of this default alias in your ~/.bashrc

alias grep='grep --color=auto'

~/.bashrc is only sourced by interactive shells. When you run a script, it runs in a non-interactive shell, so the alias is not available.

To preserve the colouring, add the --color=auto flag to the grep command inside the script:

grep $1 . -R --exclude-dir=.git --line-number --color=auto


How do I solve "System is running in low graphics issue" in Ubuntu INSTALLER ?

This problem might be occurring because of the graphic driver. So you must first get into your liveUSB session(i.e "Try Ubuntu without installing") with nomodeset enabled.

Step 1 - Enable nomodeset :-

Start the liveUSB session.
Then open GRUB(by pressing Shift key before the violet splash screen).
Then select a kernel and press e to edit it. Now in it find the line that ends with quiet splash and add the words nomodesetbefore it so that it is nomodeset quiet splash

Now reboot. You must be able to enter into LiveUSB session without the 'low graphics' error.

Step 2 - Setting up persistence:-

Now you must consider using proprietary graphic drivers(i.e graphic driver provided by AMD) instead of the default open source driver. I am telling this because you are trying to install Ubuntu alongside windows 8 here and so when you run boot-repair, after installing Ubuntu so that it gets detected by GRUB, you may face the "System running in legacy mode" error(since you have enabled nomodeset) if you don't install the proprietary driver.(I am just guessing here. that is, I am not so sure if the *legacy mode* error is associated withnomodeset. I need some comments on this below.) But since you are in the liveUSB mode if you install the driver and reboot(so that the driver might work) you won't get the driver working, as you haven't set up any persistence. So the next thing you must do is to set up persistence. I will explain how to do this below:

First, partition your USB device into two partitions from your Windows OS. Keep at least a 1 GB or so partition for the Ubuntu installation files(make this a FAT32 partition). Make another ext4(or ext2 or ext3) partition of the remaining space and remember to name it casper-rw(It is highly essential to name it so.). Use a GParted Live CD for this purpose(or any other partitioning software you like. I am recommending this because it worked for me). I am providing a few screen shots below(but these are not of the Gparted Live CD, I used):-

(Creating the FAT32 partition mentioned below)

(Creating the casper-rw(ext4) partition)

(How it looks after partitioning)

Now put the installation files into the FAT32 partition. For this you must use  UNetbootin. See the screen shot below of UNetbootin :-

Carefully note what all I have selected and select exactly the same in your UNetbootin too(except for selecting Ubuntu 14.04 64-bit image! You have to select your 12.04 image). Also compare this image with the image before it. I have selected /dev/sdb1 since that is my FAT32 partition. You should select the FAT32 partition, accordingly in your PC.

Now, after the UNetbootin process is over, get into the FAT32 partition and delete the file(not the folder) named casper-rw so that Ubuntu will use the casper-rw partition instead of that file to store your data. It will be around 10MB (as we selected in UNetbootin).
Now get into liveUSB mode. Make some file in the desktop and then reboot. You must see the file that you created before(If not then persistence is not working).
Now you have successfully created a live USB with persistence! Just boot in with the USB device and select 'Try ubuntu without installing'.

Now that we have created a liveUSB session with persistence we can install AMD driver.

Step 3 - Installing AMD driver :-

Now get into the liveUSB sessiom. Connect to the internet. Now press Ctrl+Alt+t to open a terminal. There type:-

sudo apt-get update && sudo apt-get upgrade

After the updating process is over(which is achieved by the immediately above command) type:

sudo apt-get install fglrx fglrx-amdcccle

to install your graphic driver.

Now restart with:

sudo reboot

Now get into the liveUSB session again. Type in the terminal:-

fglrx

This must clearly show the details of your graphic card(If it doesn't you haven't installed the driver properly).

Install Ubuntu(see the last entry in the PS section below) and enjoy now!!

PS :-

Credits for Step 1 go to this answer. Refer it for some extra info on step 1 .
Credits for step 2 go to this answer. Refer it for more info on step 2.
You can refer to the answer here for more info on step 3. Also if you want a "GUI" way to install your driver you can look at the answer mentioned for 14.04 in the same link.(IMO it must work for 12.04 too).
To install Ubuntu alongside windows 8, you should follow the answer here. It must work. (Note that installing Ubuntu alongside Windows 8 is quite a difficult task as Windows 8 made it so. Therefore follow all the steps in that answer carefully)


How to execute a Bash script from Github?

Load the file (make sure you use the raw file, otherwise you load the HTML page!) with wget using its exact URL and then pipe the output to bash:

Here's an example with clarifications:

wget -O - https://raw.githubusercontent.com/<username>/<project>/<branch>/<path>/<file> | bash

From the manpage for the wget command:

   -O file
   --output-document=file
       The documents will not be written to the appropriate files, but all
       will be concatenated together and written to file.  If - is used as
       file, documents will be printed to standard output, disabling link
       conversion.  (Use ./- to print to a file literally named -.)

       Use of -O is not intended to mean simply "use the name file instead
       of the one in the URL;" rather, it is analogous to shell
       redirection: wget -O file http://foo is intended to work like wget
       -O - http://foo > file; file will be truncated immediately, and all
       downloaded content will be written there.

So outputting to - will actually write the files content to STDOUT and then you simply pipe it to bash or whatever shell you prefer. If you script needs sudo rights you need to do sudo bash at the end so the line becomes:

wget -O - https://raw.githubusercontent.com/<username>/<project>/<branch>/<path>/<file> | sudo bash


Problem Lenovo G780 Windows 7 + Ubuntu does not work

Delete the partition you created manually in Windows Disk Manager and when you have only Windows 7 installed on the drive with no other free partitions available it will ask you :)

You can install it inside Windows with Wubi (although it is an old method of installing) if you are having problems, also when you install ubuntu it is during the instalation where it asks you to erase the full disk or to share space with your Windows partition, good luck.


How to Zip and Unzip a directory and its files in Linux

You say you are a newbie. Maybe you got Windows-experiences. If you do not have the packages installed yet, you need to

sudo apt-get install zip gzip tar

first (or by a graphical pkg-manager).

Then, for an entry it would be the easiest way to use zip/unzip:

zip -r my_arch.zip my_folder

where -r means "recursive".

To unzip you simply use

unzip my_arch.zip

Zip stores relative path names by default. There are several parameter-options available for zip. For that read: the manual (man zip). For a starting this will do.

Most often you will see .tar.gz endings in linux-world. That's the product of two tools: TAR (the tape archiver) and GZIP (the GNU-Zip).
Tar has got the call option to automatically gzip/gunzip files after "taring".

tar -cvzf may_arch.tar.gz my_folder

where

-c means "create"
-v means "verbose" (sometimes bothersome and slowing down...)
-z means "use (GNU)zip"
-f XYZ declares the name of the output file. (You should chose a helping name like XYZ.tar.gz)

There may also be .tar.bz2 endings. This is the product of the -j parameter instead of the -z parameter: you will choose compression with BZIP2 (-> man bzip2).

To extract you simply use -x (eXtract) instead of -c (Create):

tar -xvzf may_arch.tar.gz

Happy "zipping"!


It looks like 4 (3.7) Gb is not enough.  Using the System Monitor, I could see that my RAM and Swap were both maxed out.  My Swap is only 1 Gb, so I will increase that to 4.


xubuntu 17.10.1 won't boot after upgrade

Had the same problem.

If you are able to boot with an older kernel version (via grub) you can solve it with:

Set "older" kernel as default grub entry


You may have a problem with an older computer, with an older GPU. Try this...

boot to recovery mode
choose root access

type:

sudo mount -o remount,rw /      # to remount the disk r/w

sudo pico /etc/gdm3/custom.conf # edit this file

change:

#WaylandEnable=false

to:

WaylandEnable=false

Then reboot.


How to delete kernel entries in the Grub 2 menu whose kernels are removed?

The best tool that I've found for Grub2 (and Burg) management is Grub Customizer.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

As shown in the image below, you can specify the order of kernels, the default kernel to run, and even manually add grub parameters. (I happen to be using burg, but burg is just a graphical wrapper for grub, so the config is the same).

For more information, see this review of Grub Customizer on webupd8.org.


Help! I can't see the files and folders that are on the desktop

Ubuntu 20.04 uses gnome as default DE. Current versions of Gnome / gnome-shell don't show desktop icons per default.
Install the Gnome Extension "Desktop Icons" from https://extensions.gnome.org to get desktop icons back to the desktop.


How to install dbvisualiser on Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-57-generic x86_64) server

Download it from the official DbVisualizer website and install it :

wget https://www.dbvis.com/product_download/dbvis-9.2.13/media/dbvis_linux_9_2_13.deb
sudo dpkg -i dbvis_linux_9_2_13.deb

The current version is 9.2.13.


UDF Partition reported full when it is not

This is a kernel bug (53021) which has a patch, but the patch has only been committed (as far as I can tell) to current, not any stable or longterm branch. It applies cleanly to 3.2 and later kernels at a minimum; there is an Ubuntu bug (583949) which currently requests that the patch be backported to quantal (3.5.x) and raring (3.8.x).


Is there a text editor for the command line that uses the same keys as Notepad on Windows?

Try Minimum Profit (mped). It's listed in Synaptic

I just checked, and latest Synaptic version does not seem to accept command line option -tx - which is switch for text mode, and it's launched as GTK by default.
In text terminals (Ctrl+Alt+F[1-6]) it's launched in text mode, but in Gnome terminal there doesn't seem to be switch for text mode

If this is true than you can download older version (hardy) or build latest version with ncursesw


CMake uses several variables to set the default compiler.  You are mostly interested in setting CC variable to override default C compiler.  In your case that would be:

CC=gcc-4.9 cmake ../ -

You might need to apt-get install g++-4.9 if the TrinityCore is written in C++, and that would be:

CXX=g++-4.9 cmake ../ -


How to switch desktop manager from LXDE?

You need to click on the small bird icon to the left of "en_US" in the top panel.
This should give a drop down list of available desktops.


Desktop content no longer visible after upgrade to 12.10

First make sure that the Desktop directory in your home directory contains some files.
If it does, then install gnome-tweak-tool.
Run gnome-tweak-tool.
Make sure that Have file manager handle the desktop is turned ON.


urbackup installation problem in ubuntu12.04

Urbackup can be installed upto 13.10 from the Launchpad repository ppa:uroni/urbackup.

sudo add-apt-repository ppa:uroni/urbackup

sudo apt-get update

sudo apt-get install urbackup-server


Are you sure it's not a memory issue? What does:

free -m

say when things are sluggish?


Hyper-V doesn't support USB devices and also the Linux support given by Microsoft for Hyper-V doesn't include the Ubuntu distribution. Hence, I feel there is no way under Hyper-V. I used VirtualBox for the same purpose.

Also, I would suggest VMware if possible as it is more stable (especially in Windows 8 in which VBox is pretty unusable for me).


Are there alternative repositories to ports.ubuntu.com for ARM?

Yes, there are. Though not many.

I wrote the following script which will parse all the mirrors from the Launchpad mirror list, and check whether they contain the path /dists/$DIST/$REPO/binary-$ARCH/ where

$DIST is your Ubuntu distribution, e.g., precise, saucy, trusty, ...
$REPO is the repository you're looking for, i.e., main, restricted, universe or multiverse.
$ARCH is the architecture you're looking for, e.g., armhf.

For the sake of example let me assume you have Ubuntu 13.10 (Saucy). Then you may want to search the mirrors for the path /dists/saucy/main/binary-armhf/ so as to discover mirrors that offer the main repository for the armhf architecture. If a mirror contains this path, it means that it should have the binary packages for the armhf architecture for the main repository for Saucy Salamander, and the script will output FOUND: along with the mirror's URL.

Please note: the presence of this path on a mirror is not actually a guarantee, but only an indication that it contains the required packages; however if a mirror does contain that path but not the packages, at least we can say that there is something fishy with that mirror.

Also note that the script requires curl. Install it if you do not have it (sudo apt-get install curl).

Thus, using this script, you can quickly find out which mirrors from the Launchpad mirror list offer what you need. Note that the script may run for quite some time since it contacts each and every server on that list. These servers are distributed around the globe and some of them may be slow or unreachable (such that curl may stall until the connection attempt times out). It may easily be improved to scan only certain mirrors (e.g., only in your country), but it's a good starting point.

#!/bin/bash

# URL of the Launchpad mirror list
MIRROR_LIST=https://launchpad.net/ubuntu/+archivemirrors

# Set to the architecture you're looking for (e.g., amd64, i386, arm64, armhf, armel, powerpc, ...).
# See https://wiki.ubuntu.com/UbuntuDevelopment/PackageArchive#Architectures
ARCH=$1
# Set to the Ubuntu distribution you need (e.g., precise, saucy, trusty, ...)
# See https://wiki.ubuntu.com/DevelopmentCodeNames
DIST=$2
# Set to the repository you're looking for (main, restricted, universe, multiverse)
# See https://help.ubuntu.com/community/Repositories/Ubuntu
REPO=$3

# First, we retrieve the Launchpad mirror list, and massage it to obtain a newline-separated list of HTTP mirrors
for url in $(curl -s $MIRROR_LIST | grep -Po 'http://.*(?=">http</a>)'); do
  # If you like some output while the script is running (feel free to comment out the following line)
  echo "Processing $url..."
  # retrieve the header for the URL $url/dists/$DIST/$REPO/binary-$ARCH/; check if status code is of the form 2.. or 3..
  curl -s --head $url/dists/$DIST/$REPO/binary-$ARCH/ | head -n 1 | grep -q "HTTP/1.[01] [23].."
  # if successful, output the URL
  [ $? -eq "0" ] && echo "FOUND: $url"
done

I saved the script as find_mirrors, made it executable (chmod 755 find_mirrors), and executed it as follows:

$ ./find_mirrors armhf saucy main | grep FOUND
FOUND: http://ftp.tu-chemnitz.de/pub/linux/ubuntu-ports/

It took around 10-15 minutes for me. I was surprised to find only one mirror for the armhf architecture for Saucy in the Launchpad mirror list, namely the one at TU Chemnitz (this is based in Germany; it may still be faster for you than ports.ubuntu.com which seems to be based in Great Britain.) So it would seem the answer to your question is more like "Yes, there is one alternative mirror for you..." ;-)

The good news is that I did manually check this mirror and it is indeed a complete mirror of ports.ubuntu.com, with all the packages for all alive Ubuntu releases. So, do try it!

Note also that you may have more luck with another release than Saucy.

Alternative (not recommended)

I mention this for the purpose of completeness, but I do not advise this. Instead of looking on the Launchpad mirror list, you can of course also simply google for mirrors.

One way to do this would be to simply google for the string */dists/saucy/main/binary-armhf/* (suit distribution, repository and architecture to your needs as before). This will find many alternative mirrors, but most are not officially registered on Launchpad. Hence there are no quality checks by the Ubuntu mirror team; they may be slow, not regularly updated, or contain only a subset of the packages required by a full Ubuntu system, or even some modified packages. When you think about it, if someone wanted to make their mirror publicly available, they would probably have registered it on Launchpad, and then the above script would have found it. So google for mirrors at your own risk. If you ask me, don't do it.


Firefox context menu doesn't disappear and stays there

It annoyed me, too, so I've had to find out it's caused by ui.popup.disable_autohide=true. You can reset it in about:config.


"sample.lxc" has an unknown provider type "local" error when bootstrapping

The local provider has not yet landed in 1.11.x (it's in progress) . In order to use LXC as a provider you will need to use Juju .7. The way we're currently doing this is you can install juju along with juju-core and use alternatives to switch back and forth:

According to the get started page.

  You can switch between the default (0.7) version and 1.10 versions by
  using the following:

sudo update-alternatives --set juju /usr/lib/juju-0.7/bin/juju

  or to the new 1.10.0 release using:

sudo update-alternatives --set juju /usr/lib/juju-1.10.0/bin/juju

But to do this you need to install Juju .7 as well, which is packaged as juju. So you'll need to install that.

The team knows that this is a terrible user experience, but once the local provider lands in newer versions of Juju we will revise the documentation to be more sleek. The local provider should be finished in the next month or two.


LibreOffice 4.03 compatibility with MS Office 2010 docs

It has gotten/is getting a lot better, but unfortunately no. Simple documents are ok, but especially if you complex documents and/or you have to collaborate with other students, it can be hell! You're probably better of using Google Docs.

It is however possible to keep Ubuntu as your only operating system! Although you can not run Office natively on Ubuntu, you can run it via Crossover (see here). Crossover is the commercial version of wine (if you know wine, otherwise look it up, brilliant piece of software).
My girlfriend uses it for a couple of months now and it works really well. You can get a free trial for Crossover to test it out (and if you don't do anything after the trial they will almost always email you with a discount offer :P).

Of course you can also try to do it yourself using wine, but that is a bit more complicated (you can read here how to do it).

Another solution is running windows in virtualbox, not as neat, but still very handy.


Will Samsung driver for notebooks get into the upstream kernel?

I would get in contact directly with the developers through launchpad and advice them that you would like to provide testing feedback for Natty.

The more feedback they can get the better the drivers will function when Natty comes out for real at the end of April.

Its one of the reasons Open source works so well is because of the amount of communication between users and developers. Unlike the push button hope for something better reporting of other OS's.

Get in contact with Voria here

Hope this helps.


How to delete a folder from hard drive via xubuntu on usb?

If you can mount your drive successfully without errors

Boot from Xubuntu LiveUSB and open a terminal. Then give this command

sudo fdisk -l

you will see a list with all the partitions - drives of your PC.

Focus on the partition you want to mount.. We assume is /dev/sda2

and then give this command

sudo mount /dev/sda2 /mnt

Now you have access to this partition and you can delete anything.

Then open nautilus file manager as root and point to this /mnt folder where the partition is mounted

gksudo nautilus /mnt

search - find - delete.


Ubuntu on a SSD and everything else on a HDD

I have a SSD with with Sheerly Ubuntu and a 1TD HDD set up as a network share on my desko. I haven't had any issues with this setup so far.

The Equivalent to the Program files in Ubuntu is the /etc folder so you would need to format a disk with a mount point of /etc and the system would put that folder there to r/w from.

for you I would recommend putting your /home and /etc on an the separate drive. Also I don't think it's really called anything, You just DO that with your hard drives windows or linux. both user groups do it


Phonon Test of speakers "Front Left" , "Front Right" is not working

I had, and fixed, the same problem with my installation. I guess you are using pulseaudio. The solution is to install the libcanberra-pulse package and the tests should work like a charm.


How do I turn on sticky keys from the CLI?

This script works:
$ cat $HOME/bin/sticky_keys
xkbset exp -bell -sticky -twokey -latchlock -accessx -feedback -stickybeep -led 9999
xkbset bell sticky -twokey -latchlock feedback led stickybeep

(If you would prefer pressing Shift twice to mean "hold down shift" then change '-latchlock' above to 'latchlock')
For more and related information, you probably will like this wiki page:
https://wiki.ubuntu.com/Accessibility/doc/Guide/Mobility

Because of the missing tool 'xorgcfg' or 'xf86cfg' https://launchpad.net/distros/ubuntu/+ticket/506 in the ubuntu repository, you have to use the commandline tool 'xkbset'. Which isn't very user-friendly. You have to call 'xkbset' twice. By the first call, you set the expiry of the accessx settings. This is necessary, because there is a default timeout. By the second call, you can adjust the accessx settings themself. I don't know why, but in my settings, this was the required order!
With xkbset -h you will get a help message.
An example for setting the expiry of the accessx settings: xkbset exp -bell -sticky -twokey -latchlock -accessx -feedback -stickybeep -led
You have to disable the expiry of all accessx settings you need. Because, if you set an explicit timeout with '0', you will cause a xorg runtime error.
An example for adjust the accessx settings:      xkbset bell sticky -twokey latchlock feedback led stickybeep
For further information refer to: http://www.xfree86.org/current/xset.1.html
In the Configuration example below you see a setup for daily usage.


Can I install two xampp in my Ubuntu 12.04

XAMPP doesn't need any installation. You can only run one version at a time (using /opt/lampp/lampp start or /opt/xampp/xampp start).

You can place both of them in /opt/lamppp and /opt/lampp2 so that you can run each other alternatively.


initramfs prompt "mount: can't read etc/fstab" after grub rescue

On dev/sdb2 (your ubuntu partition) you need to edit and update /etc/fstab

You can do this by mounting the partition under Ubuntu and using gedit.

Update the root partition to point to the new partition.

You will then need to update grub.


How to make bootable pendrive without any additional software

try opening Ubuntu 21.04, Disks, then select on the left, the USB PEN, then select the first partition, then Shift+F10, choose Edit Partition, click Bootable, and then OK/change... Reboot to choose PEN in old BIOS.


PLINK execution of: echo -e "%UNIXPW%\n" ^| sudo -S nginx -t -c, works OK on one, fails on another

The password in %UNIXPW% had some special characters that caused this to fail.

Changing the password to alphanumeric made it work on all ubuntu machines!


Solved it by updating to 1.2.0. I was using 1.1.0 before.

One has to pay attention, though, since after adding the repo (https://launchpad.net/~stebbins/+archive/ubuntu/handbrake-releases) you have to install handbrake-gtk and not handbrake

Edit:

These are the commands to run to go from v1.1.0 in the regular repo to 1.2.x in the PPA:

sudo add-apt-repository ppa:stebbins/handbrake-releases
sudo apt update
sudo apt install handbrake-gtk


How to install FlightGear - Flight Simulator

Open terminal and run the following commands:

sudo add-apt-repository ppa:saiarcot895/flightgear
sudo apt-get update
sudo apt-get install flightgear

The first command adds a PPA, the second command updates your packages list and the third command installs the application in an easy way.


Using last part of command for next command

The variable $_ is used to substitute the most recent parameter.

So, in the example you mentioned, you'd do something like:

cp -r folder ~/folder
cd $_

cd $_ will change directory to the most recent parameter i.e. ~/folder.

For more such variables, have a look at https://stackoverflow.com/a/5163260/1626345.


Try to run the command plasmashell and see if that works.

If only Plasma crashed, try plasma5-desktop --replace.

This will kill all remaining instances of Plasma and start a new one.


I recently had this problem and found this solution. After plugging the USB modem go to Disks. Then select your device. In my case it's HUAWEI Mass STorage. Then click on Additional partition options. Then go to Edit Mount Options. Turn off Automatic mount options. Set identify as to Broad band. This should work.


Accents problem on GTK application on Kubuntu 15.04

I had a similar issue with a latin-american spanish keyboard. In order to solve it, I created a file named ".xprofile" in my home directory. Then, I wrote the following line in it:

export GTK_IM_MODULE=fcitx

I suppose fcitx is the default input method of KDE in Kubuntu 15.04.


Arduino IDE is installable with Ubuntu Make:

Install Ubuntu Make

for Ubuntu 16.04 LTS from official PPA ppa:lyzardking/ubuntu-make:

sudo add-apt-repository ppa:lyzardking/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make

PPA is needed because of two fact: package for 16.04 LTS does not support installation of Arduino.

  Note: umake from 18.04 Universe repo may fail installing arduino ide.
  If so, you will need to purge ubuntu-make and install from the PPA.
  If this is the case you will also need to delete ~/.local/share/umake
  with rm -rf ~/.local/share/umake. See this QA for more info.

for Ubuntu 18.04 LTS and newer systems from universe repository:

sudo apt-get update
sudo apt-get install ubuntu-make

Install Arduino IDE with Ubuntu Make

umake electronics arduino

or for 18.04 (without PPA, may fail)

umake ide arduino

This will download Arduino IDE from official site and install it to ~/.local/share/umake/ide/arduino and set corresponding shortcuts and file associations for it.

You can repeat this command again to get newer version.

Note: do not forget to add your user to dialout group with sudo usermod -a -G dialout $USER .


ssl.SSLError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1108)

I experienced this error after upgrading from 18.04 LTS to 20.04 LTS, whilst trying to connect to an Exchange server. The cause is because the default upstream Debian OpenSSL settings have become more secure. In OpenSSL, CipherString is now set to DEFAULT@SECLEVEL=2
The background/rationale for this change is detailed here: https://weakdh.org/
Ideally, the server's security should be improved rather than implementing this work-around on the client. However, in many cases, this will not be possible.
I was able to workaround it by adjusting the ciphers used for the connection by creating an SSLContext. Here is an example of the code (for SMTPS connection - sending an e-mail):
connection = smtplib.SMTP(
    config['Email']['host'] + ':' + config['Email']['port'])
context=ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
# Either of the following context settings worked for me - choose one
# context.set_ciphers('HIGH:!DH:!aNULL')
context.set_ciphers('DEFAULT@SECLEVEL=1')
connection.starttls(context=context)
connection.login(config['Email']['user'], config['Email']['pw'])
connection.sendmail(config['Email']['sender'], recipients, msg.as_string())
connection.close()

The important lines are these - chose one of these CipherString adjustments:
context.set_ciphers('HIGH:!DH:!aNULL')
context.set_ciphers('DEFAULT@SECLEVEL=1')

BUT prefer a server fix, if at all possible!
To adapt the above for urllib3, see this answer:
How to select specific the cipher while sending request via python request module


Installed Kodi on ubuntu 14.04. Kodi will not open

Downloaded from Kodi.tv (linux guide icon)
Put this into the terminal as told on the web page,

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install kodi

The kodi icon appears in Applications, and also in ubuntu software centre. When I click the kodi icon to open kodi, the monitor screen goes black and returns to the desktop without opening kodi.


What packages are different in Ubuntu Desktop and Ubuntu Server?

You can find an overview here. The kernels are similar. Package differences largely depend on the packages you selected for installation.

You could, e.g., run dpkg -l >list.txt on both machines and then compare the lists using, e.g., diff: diff list_a.txt list_b.txt. Output of the comparison might be more useful if you first sort both lists with sort.


Mobile broadband via USB modem not connecting any more

Your question doesn't have enough information to go by or provide any help.

What's the make, model and type of your modem?
What type of software you have used?
What's your distribution? `lsb-release -a`
What is the kernel version?

And many more such things. Also check lsusb recognises your device. Perhaps replace cables and see if it works.


Why are emblems disabled in the unity launcher?

According to the logs of this Unity Q+A session, emblems/badges were removed (likely a design decision), while counters and progress bars are still present.


Just right click on the one you can see and choose Notes->show all and all your notes will be displayed on the screen.

See screenshot below:

The result:


Disabling assistive technologies during login

From: gdm - On screen keyboard malfunctioning on login screen - Ask Ubuntu

Disable screen magnifier in GDM:

sudo -u gdm gconftool-2 /desktop/gnome/applications/at/screen_magnifier_enabled --type bool --set false

Disable on-screen keyboard in GDM:

sudo -u gdm gconftool-2 /desktop/gnome/applications/at/screen_keyboard_enabled --type bool --set false


I’m stuck in “try ubuntu without installing” and can’t access windows anymore

Select Try Ubuntu 18.04 and you will have the power off option in the corner. Just select it and remove the USB then restart.
If you are trying to update ubuntu from 14.04 to 18.04 this may be helpful:
https://ubuntu.com/tutorials/tutorial-upgrading-ubuntu-desktop#1-before-you-startenter link description here


Unfortunately fancontrol doesn't restore the fan state after suspension. You can write a pm-action(8) resume hook that restarts the fancontrol service:

Create a file /etc/pm/sleep.d/10_fancontrol (e. g. with gksudo gedit):

#!/bin/sh
case "$1" in
resume)
    exec service fancontrol restart;;
esac

Mark it executable:

sudo chmod +x /etc/pm/sleep.d/10_fancontrol


If you followed the PPA instructions you installed oomidi-2012 linuxsampler.

To uninstall with a terminal

sudo apt-get remove oomidi-2012 linuxsampler

To make apt-get remove any configuration files as well - use purge in place of remove.

sudo apt-get purge oomidi-2012 linuxsampler

If the install command installed other packages you might be left with those, autoremove will remove those.

sudo apt-get autoremove

https://help.ubuntu.com/community/InstallingSoftware

https://help.ubuntu.com/community/AptGet/Howto


on Ubuntu, grub default menu can be verified and set it as default in three steps.

open /boot/grub/grub.cfg and find your menu entry title

e.g. menuentry 'Ubuntu, with Linux 3.19.0-25-generic'
then edit /etc/default/grub, set menuentry to GRUB_DEFAULT

Change:

GRUB_DEFAULT=*

To:

GRUB_DEFAULT='Ubuntu, with Linux 3.19.0-25-generic'

rebuild grub.cfg

grub-mkconfig > /boot/grub/grub.cfg

Maybe this will help.


How to install 32-bit version of libstdc++.so.6 on a 64 bit machine

You could've used apt-get install lib32stdc++6.


Question about GtkScrollbar class in custom themes

I actually managed to solve my question myself. I will explain here how for those who are interested:

In the folder /usr/share/themes/Zukitwo-Dark/gtk-3.0 edit as root the file gtk-widgets.css. Under /default/ include both lines

-GtkScrollbar-has-forward-stepper: 1;

-GtkScrollbar-has-backward-stepper: 1;

Make sure that the "stepper-size" is set to 13 (not 0)

-GtkRange-stepper-size: 13;

Include the same two lines in the part where is says

.scrollbar {

and also check the stepper-size. Then in the folder /usr/share/themes/Zukitwo-Dark/gtk-2.0 adjust the file "gtkrc": In the Scrollbar part, add

GtkScrollbar    ::has-backward-stepper      = 1

GtkScrollbar    ::has-forward-stepper       = 1

and again check the range:

GtkRange    ::stepper-size          = 13

This should take care of it all and the steppers (arrows) should be back after a logout/login.


Lenovo y510p with HDMI monitor (RESOLVED)

Resolved.

Edit grub config:

sudo su
nano /etc/default/grub

Change to:

GRUB_CMDLINE_LINUX_DEFAULT="quite splash i965.modeset=1"

Update grub:

update-grub

Reboot, and it works fine.


As far as I know, there is no option to factory reset Ubuntu.

You can simply reinstall Ubuntu 14.04 over top of the current installation, if you aren't terribly worried about data security. The data will be overwritten, so unless your friend really really wants your data, they won't be able to access it.

Just get the laptop, boot up the LiveDVD/LiveUSB you used to previously install Ubuntu and reinstall - setting up their choice of username and password! It won't take terribly long (depending on whether you use a LiveUSB or LiveDVD and the internet connection speed) and is probably the easiest choice for resetting to factory defaults.


He has more files in some other directory, or your quota file has become out of sync.  If you can't find files he owns elsewhere, then rebuild the quota file with quotacheck.


How to use fingerprint reader with Ubuntu 20.04 and sssd (active directory)

Grabbing the source for the control panel I found panels/user-accounts/cc-fingerprint-manager.c I found the following short-circuit:
  if (act_user_get_uid (priv->user) != getuid () ||
      !act_user_is_local_account (priv->user))
    {
      set_state (self, CC_FINGERPRINT_STATE_NONE);
      return;
    }

So the section doesn't appear because the user account is not of the "local type".  Its not a policy setting from Active Directory, its a policy setting built into the fingerprint UI itself.  I've not been able to find any reason in particular for this limitation, perhaps it just an incomplete implementation.
However I did manage to get fingerprint login and lockscreen working.  The limitation is only in that one place in the control panel.  So just use the command-line to enroll some fingers:
$ fprintd-enroll -f right-index-finger
$ fprintd-enroll -f left-index-finger
$ fprintd-enroll -f right-middle-finger

Logging in/out may be required (haven't validated this), but now on the login and lock screens, after choosing a user (or hitting a key to bring up the password entry) it shows (or swipe finger) just pop your finger on the reader and in you go (can take around a second's delay).
Its possible future changes to Ubuntu and/or Gnome might make an official policy selection that could require Active Directory (or other remote account type policy) to enable fingerprints, but for now it works.


Command to open new terminal window from the current terminal?

Just this command will do:

gnome-terminal

Normally if you want a command to open from the terminal and separate (so it returns to the prompt without having to close the opened program),  you have to use something like this:

gnome-terminal & disown

However the parent terminal seems to detect that the same command is being used so you don't need to do that and gnome-terminal will suffice. This also seems to happen when running xfce4-terminal from Xfce's terminal, konsole from KDE's as well (doesn't seem to work when running xterm from xterm (see also xterm xterm) - Running konsole from Gnome/Unity & Xfce's terminal works as well, but for Xfce's terminal in gnome terminal you need xfce4-terminal & disown).

For more visit gnome-terminal's manual page:

 gnome-terminal  [-e,  --command=STRING]   [-x, --execute ]  [--window-with-profile=PROFILENAME]  [--tab-with-profile=PRO‐
       FILENAME]    [--window-with-profile-internal-id=PROFILEID]    [--tab-with-profile-internal-id=PROFILEID]    [--role=ROLE]
       [--show-menubar]   [--hide-menubar]   [--geometry=GEOMETRY]   [--disable-factory]  [-t, --title=TITLE]  [--working-direc‐
       tory=DIRNAME]  [--usage]  [-?, --help]


The method below will make use of the precise package for your saucy version. Beware that this can be potentially buggy since it has not been developed for versions other than oneiric and precise.

First remove the ppa you have already added using:

sudo add-apt-repository -r ppa:rockclimb/gephi-daily

and then open you /etc/apt/sources.list as follows:

sudo gedit /etc/apt/sources.list

and add the following line to end of it

deb http://ppa.launchpad.net/rockclimb/gephi-daily/ubuntu precise main

and then do

sudo apt-get update

to update the package-list and add gephi to is and then

sudo apt-get install gephi

to install gephi.


Ubuntu will not boot normally after nvidia driver install

OP's answer removed from the question (and edited to fix possible issues):

  So, I fixed the problem.

  First press Ctrl+Alt+F1 and log in with your username and password.

  Then you will need to remove the old driver:

sudo apt-get purge ^nvidia-

  After that you will need to add the graphics-driver PPA

sudo add-apt-repository ppa:graphics-drivers

  and then

sudo apt-get update

  Search for the latest Nvidia drivers for your hardware here on the
   Nvidia site.

  In my case I used

sudo apt-get install nvidia-384

  And done, just reboot and you should be ready to go.


Application to transfer music, photos, data to android phone?

Airdroid is a universal, OS-agnostic solution.

Beyond that, there's a procedure for SSH access and a nice article which explains how to use Dropsync.


Can I upload a deb package with an MIT License to PPA?

According to the Launchpad PPA Terms of Use, OSI or FSF approved licences are allowed and the MIT licence has both approvals.

You can tell dh_make which licence to use:

dh_make -c mit

dh_make has a few licences inbuilt, for others you will have to manually edit the files later.


Installing 19.10 from usb but not appearing on grub

Boot Live USB using grub from Internal Drive

I created a Live Ubuntu 19.10 USB using balenaEtcher.

I booted that Live USB by adding the following menuentry to my internal drive's grub menu:

menuentry "Ubuntu - flash drive" {
 search --set=root --fs-uuid xxxx-xx-xx-xx-xx-xx-xx
    set gfxpayload=keep
    linux   ($root)/casper/vmlinuz$casper_flavour  file=/cdrom/preseed/ubuntu.seed quiet splash  ---
    initrd  ($root)/casper/initrd$casper_flavour
}

Where xxxx-xx-xx-xx-xx-xx-xx is the UUID of the Live USB.


One command to get a running py script ID then kill it

Yes, pkill. If your script is named myPythonScript.py, you can run:

pkill -f myPythonScript.py

Note that that command will kill all running instances of myPythonScript.py. It will also kill any other process whose full commandline includes the string myPythonScript.py so, for example, it would kill your editor if you had launched it with something like emacs myPythonScript.py.

To be sure you kill only the running script, you can try matching the command more specifically:

pkill -f "/python.*myPythonScript.py"

That will only kill processes matching /python, 0 or more characters and the name of the script. Since the script will look like this in the list of processes:

terdon 20559  0.0  0.0  22768  7404 pts/4    S+   18:18   0:00 /bin/python /home/chapplec/scripts/myPythonScript.py

That should kill only running instances of the script.


After the Windows installation has finished, you won't be able to access the Ubuntu partition. You will need to rerun grub from a live disk to create a new grub menu. The windows install will (probably) overwrite the existing grub. I can't remember the exact procedure, but search for 'repair grub config' on the web and you should find a how-to (probably on Ask Ubuntu site! )


They shouldn't totally disappear*. When you press Super+D, you're minimizing all windows including the ones created by XPad. Just hover over the items in your panel to identify the XPad ones.

* In case, you don't see XPad notes in the taskbar, right-click on an XPad note and look at the Preference settings. In particular, check if "Hide all notes from the taskbar ..." and the entry below are ticked. They aren't ticked by default.


Just to complete the previous reply, here is how you install grub-customizer:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer


I think it is a problem of missing dependencies, try updating your ubuntu first. Or the program needs the latest version of ubuntu. Which version do you use?


Command to exit and then relaunch gnome-terminal that can be executed from gnome-terminal?

trap the pseudo-signal EXIT:

trap 'gnome-terminal' EXIT

Now everytime you run exit a new instance of gnome-terminal will be opened by shell and the existing session of shell will be terminated.

As @Byte Commander has pointed out, if you do exit (as you were doing) or press Ctrl + D to exit the shell, the above would create a gnome-terminal window with the same PID as the earlier one (although the shell would get a different PID), this behavior is by design. So to kill the current gnome-terminal process and start a new one, you can do:

trap 'kill $(ps -o ppid= $$) && gnome-terminal' EXIT


Canon ImageClass MF8380CDW Won't Work After Upgrade to 17.10

I downloaded v350 from the Canon web and ran the install.sh file and now my printer is working again.  It prints PDF with out being total black and it prints word documents just fine.  Just thought someone might like to new that there is a new driver that is working now.  I have 17.10 installed but have also added some beta from 18.04 on my unit.


To access the registry type "wine regedit" without the quotes in terminal

Use Winetricks to install .Net if you have not already


Internet Timeouts with TP-Link TL-WN821N v2 wireless usb stick

Please try a driver parameter:

sudo modprobe -r carl9170
sudo modprobe carl9170 noht=1

If it helps, write one new file:

gksudo gedit /etc/modprobe.d/carl9170.conf

Add a single line:

options carl9170 noht=1

Proofread carefully, save and close gedit.


what is the difference between ubuntu openstack and openstack kilo to build a private cloud?

I'm guessing that you're a little confused.  Ubuntu's website simply describes how you can install OpenStack on it.  (You could install OpenStack on some other flavor of Linux if you wanted to.)

OpenStack Kilo is like saying Windows 7.  The "7" part tells you which version of Windows we're talking about.  Kilo is a version of OpenStack.

Versions of OpenStack

I'm currently running OpenStack Icehouse since that's what you get if you're on Ubuntu 14.0.2LTS and you don't specifically change the default PPA when installing Juju and related charms.


Does the sudo ifconfig eth0 down after connecting ppp solve your issue?

Edit: In order to be able to detect eth0 connection you will need to bring it up again and disconnect the ppp. I can imagine when having both interfaces up, it can be solved with route command to change the default gateway with

sudo ip route del default

sudo ip route add default via 192.168.1.1

where 192.168.1.1 is your new gateway - replace this ip address with your own one.


Aircrack-ng, using airmon-ng to change to monitor mode

you don't need to use airmon-ng at all. you can simply:

sudo ifconfig wlan0 down

than go on with

sudo iwconfig wlan0 mode monitor

and finally

sudo ifconfig wlan0 up

thats basically what airmon-ng does.


Cron job starts the python script, but no output is received

If you have edited yr user's crontab, then suppress/erase the user name cyberbemon that precedes the long path leading to yr script. You do not need the user's name in there.
If I am not mistaken you specify the user's environment with #! at the beginning, no just !. It may just be a typo in post or you forgot to escape the pound sign inside the code block, when writing your post (like so \#! ).
So it should read:

#!/usr/bin/env python
It may just be me, but I am not familiar with paths that contain /./ somewhere in the middle, as in:

  /home/cyberbemon/Development/python/usb-dumper-1.0/build/lib.linux-x86_64-2.7/usb-dumper/  .  /usb-dumper.py

... without the added spaces. Normally in most type shells . is:

synonym for cmd source when used alone before a file name.
denotes a hidden file, when prefixing a file name.
is used in regex to match one single character
indicates the present working directory when used in paths, as for example in

$ cd $HOME/Desktop; pwd

/home/cyberbemon/Desktop

$ cp $HOME/.bashrc .

I would recommend you go to the directory where your Python script is stored and in the terminal run the command pwd. You will get the full path to yr script.


Google-Chrome-stable immediately closes on startup

Annoying isn't it?

Read through the following 5 steps and decide for yourself whether you give it a go.

Uninstall Chromium using the ubuntu software centre. My guess is that chromium and chrome might interfere with each other.
When done, open the update-manager (system>>Administration>>Update Manager, then click Settings, key in your password when prompted, then click the tab named "Other software")
Check that Google Chrome is in your apt repository is registered as http://dl.google.com/linux/chrome/deb/    stable main (notice the space between "deb/" and "stable main")
if it is NOT correct, click remove, and either (4.A) go to http://www.google.com/chrome?platform=linux using the browser that works, or alternatively (4.B) click on add, and type exactly:
deb http://dl.google.com/linux/chrome/deb/ stable main
then press "close" and let the repository update itself. Once done open a terminal and type: sudo apt-get install google-chrome-stable and press enter.
When done at either 4.A or 5 try google-chrome again from your menu :-) Should work now....

Note: When using your webbrowser as noted in 5.a. Google Chrome will add the Google repository, so your system will keep Google Chrome up to date automatically. If you don't want Google's repository, do "sudo touch /etc/default/google-chrome" before installing the package.


Where to find Bugs fixed in Point Releases or Addressed to be fixed in Ubuntu 12.04.1 LTS?

Found the Ubuntu-12.04.1 Launchpad page for Upcoming Point release 12.04.1 here

https://launchpad.net/ubuntu/+milestone/ubuntu-12.04.1

It mentions all the Bugs that are being addressed and are in Progress to get fix.


After update non-english characters not working on Ubuntu 18.04

Ok, finally fixed it.

I haven't done any changes in keyboard settings before and after update - but still for some reason I had "alt" set as shortcut to maximize window... Changing it in keyboard settings enabled non-english characters for me.


My machine's CPU sensor is currently running at 61 °C with 10 % CPU usage.

It goes up to 72 °C at 50 % and 78 °C at 100 %  CPU usage.

If both GPU and CPU are running at 100 % the internal sensor even goes up to to 91 °C

As long as your CPU Sensor doesn't get to the critical stage for your processor you're fine …  :-)


I created a desktop file in /usr/share/applications, but it doesn't show up in Dash

What is the critical issue in your .desktop file

I tried your .desktop file replacing the Exec= command with another (simple and working) one and the file appears to be functional, and is not refused by Dash.

It is a common misunderstanding that you can use the Exec= line of a .desktop file as if it were a terminal window. That is not the case; expanding like ~/ or $HOME doesn't work for example. It is good (meaning: easy) practice to place more complicated commands in a separate script file, to be executed from the launcher file (your .desktop file)

Running complicated commands from a .desktop file

If you specifically want to keep your command inside your .desktop file, you should make it as follows:

Exec=sh -c "your_complicated_command_here && the_rest_of_it"
(command inside quotes)

Running a script from the .desktop file to do the job

Assuming that your command

cd /opt/sqldeveloper/sqldeveloper/bin && bash sqldeveloper $*

works from a terminal window, I would however simply create a small script:

#!/bin/bash
cd /opt/sqldeveloper/sqldeveloper/bin && bash sqldeveloper $*

Save it as scriptname.sh, and change the Exec= line of your .desktop file into:

Exec=sh /path/to/scriptname.sh

Then your .desktop file will show up in Dash

Note

That there are more issues with your .desktop file, as mentioned by @Braiam and @MrVaykadji. A few examples:

You should not use just use made up values in the Categories= line, as you can read here
The version field is not required, but if you use it, use 1.0

More can be found here. Good tools you can find here (also thanks to @Braiam and @MrVaykadji).

The critical one that makes your .desktop file not appear in Dash however is the Exec= line.


Ubuntu 14.04 System Freezes - Firefox eats a lot of memory with nvidia-prime enabled

You can try telling Firefox not to use hardware acceleration:

Disable the Nvidia card.
Start Firefox.
Open Firefox's preferences, go to Advanced (or use the URL about:preferences#advanced), and choose the General tab.
Uncheck Use hardware acceleration when available.
Quit Firefox.
Enable the Nvidia card.
Start Firefox.


It would be more predictable if you install other meta-package:

sudo apt-get install ubuntu-gnome-desktop

Then logout and login back to GNOME or GNOME on Xorg session.


Ubuntu 15.10 not detecting external blu-ray drive

No, it does not have to be mounted to be detected by the system.


Need help dual-booting ubuntu 13.04 with Windows 8

Windows 8 comes with a technology called "Secure Boot", which runs on top of UEFI and prevents a user from manually booting to another device. To get around it, you must:

When inside Windows 8, go to the charms menu by pressing [Windows key] and [C].
Select power symbol at the bottom of the menu.
While holding the [Shift] key, click "Restart".
When your computer reboots, choose the "Use a device" option, and your live CD should be available as an option there.

Helpful links:

https://help.ubuntu.com/community/UEFI
https://wiki.ubuntu.com/SecurityTeam/SecureBoot


Its simple to reset a webcam to it defaults settings using luvcview

Install luvcview:

sudo apt-get install luvcview

Start application:

luvcview

Click the reset button in the GUI:

If this doesn't work, there are other solutions at the
Ubuntus webcam troubleshooting page (section 6)


How to address results of `systemd-analyze security`?

systemd-analyze security looks at the sandbox features built into systemd. It does not check the service itself. So it is safe to ignore these but if you do want to address these see freedesktop systemd on how for sandbox options:

  Sandboxing

  The following sandboxing options are an effective way to limit the exposure of the system towards the unit's processes. It is recommended to turn on as many of these options for each unit as is possible without negatively affecting the process' ability to operate. Note that many of these sandboxing features are gracefully turned off on systems where the underlying security mechanism is not available. For example, ProtectSystem= has no effect if the kernel is built without file system namespacing or if the service manager runs in a container manager that makes file system namespacing unavailable to its payload. Similar, RestrictRealtime= has no effect on systems that lack support for SECCOMP system call filtering, or in containers where support for this is turned off.

  Also note that some sandboxing functionality is generally not available in user services (i.e. services run by the per-user service manager). Specifically, the various settings requiring file system namespacing support (such as ProtectSystem=) are not available, as the underlying kernel functionality is only accessible to privileged processes.

There is a long list of options you can set to enforce the unit to adhere to a more strict policy each with a lengthy explanation on what it does.

A few:

  ProtectSystem=

  Takes a boolean argument or the special values "full" or "strict". If true, mounts the /usr and /boot directories read-only for processes invoked by this unit. If set to "full", the /etc directory is mounted read-only, too. If set to "strict" the entire file system hierarchy is mounted read-only, except for the API file system subtrees /dev, /proc and /sys (protect these directories using PrivateDevices=, ProtectKernelTunables=, ProtectControlGroups=). This setting ensures that any modification of the vendor-supplied operating system (and optionally its configuration, and local mounts) is prohibited for the service. It is recommended to enable this setting for all long-running services, unless they are involved with system updates or need to modify the operating system in other ways. If this option is used, ReadWritePaths= may be used to exclude specific directories from being made read-only. This setting is implied if DynamicUser= is set. This setting cannot ensure protection in all cases. In general it has the same limitations as ReadOnlyPaths=, see below. Defaults to off.

  ProtectHome=

  Takes a boolean argument or the special values "read-only" or "tmpfs". If true, the directories /home, /root, and /run/user are made inaccessible and empty for processes invoked by this unit. If set to "read-only", the three directories are made read-only instead. If set to "tmpfs", temporary file systems are mounted on the three directories in read-only mode. The value "tmpfs" is useful to hide home directories not relevant to the processes invoked by the unit, while still allowing necessary directories to be made visible when listed in BindPaths= or BindReadOnlyPaths=.

  Setting this to "yes" is mostly equivalent to set the three directories in InaccessiblePaths=. Similarly, "read-only" is mostly equivalent to ReadOnlyPaths=, and "tmpfs" is mostly equivalent to TemporaryFileSystem= with ":ro".

  It is recommended to enable this setting for all long-running services (in particular network-facing ones), to ensure they cannot get access to private user data, unless the services actually require access to the user's private data. This setting is implied if DynamicUser= is set. This setting cannot ensure protection in all cases. In general it has the same limitations as ReadOnlyPaths=, see below.

  This option is only available for system services and is not supported for services running in per-user instances of the service manager.

  RuntimeDirectory=, StateDirectory=, CacheDirectory=, LogsDirectory=, ConfigurationDirectory=

  These options take a whitespace-separated list of directory names. The specified directory names must be relative, and may not include "..". If set, one or more directories by the specified names will be created (including their parents) below the locations defined in the following table, when the unit is started. Also, the corresponding environment variable is defined with the full path of directories. If multiple directories are set, then in the environment variable the paths are concatenated with colon (":").


If anyone came across same problem, the solution is to reset BIOS settings to default.


How to disable or change automatic session locking in ubuntu 14.04?

in Dash type Brightness and Lock :

You will see Lock screen after --> adjust as you want , you can disable lock screen .

Uncheck Require my password when waking from suspend .


I just upgraded to 13.04 and Samba isn't working. It is installed but will not open. Any help?

I had the same problem.  Here is the solution that worked for me.

NOTE: If you have tried the installation and it doesn't work go to the Software Center and uninstall Samba first.

Open Terminal
Install gksu:

sudo apt-get install gksu

In the terminal, run

gksu-properties

In the dialogue that follows set authentication mode to "sudo" and grab mode to "enable".
Install Samba:

sudo apt-get install samba samba-common

Install Samba Config:

sudo apt-get install samba system-config-samba cifs-utils

The Samba icon showed up on the launch bar and everything worked fine.

I take no credit for this solution it is a compilation of my frustration and others hard work. ;)


To make volume levels universal for all devices you will have to edit a /etc/pulse/default.pa file. So, to do it in gedit with root permissions run:

sudo gedit /etc/pulse/default.pa

This is an excerpt of the file:

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

Comment the 2nd line so it is not in use any more:

### Automatically restore the volume of streams and devices
#load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

Save the file and restart the service for effect:

pulseaudio -k

or if necessary  restart computer.


Connecton failed -> Activation of network connection failed

+1 for same issue. I work around this by going in to nm connection editor and telling it not to auto connect to the wire/wifi that is also set to auto connect to the vpn. I find this preferable to not auto-connecting to a vpn at all upon startup since I don't like the idea of applications running over a naked connection.


Reinstall indicator-datetime.

sudo apt-get install indicator-datetime

sudo dpkg-reconfigure --frontend noninteractive tzdata

Reboot .


Removing ubuntu 12.04 from triple boot of windows 7 , 8 and ubuntu

Take windows 8 dvd. Boot with it. Then run a repair.

After reboot you should be prompted with windows 8 bootloader.

Now goto disk manager and delete the partition that is marked as "unknown file system". It should be side by side of windows 8 partition. You can merge the free space after deleting to adjacent driver or create a new one.


SSH ubuntu desktop 16.04 installation on a remote live CD

Easier than expected. On the live CD:

dpkg -l | grep install

Found out that the GUI ubuntu installer was called ubiquity. First I connected to the remote PC via SSH using X Forwarding:

ssh user@host -X

Then I simply ran:

sudo ubiquity


I ended up re-installing ubuntu and mysql in order to fix the issue.  I will update the post if I come across the same issue and can come up with a better solution.


You need to write a .desktop file for that.

Open 'gedit' and copy and paste the following layout

[Desktop Entry]
Name=Steam
Comment=Access Steam via Wine
Exec=wine /actual/path/to/Steam.exe -no-dwrite
Icon=/path/to/your/steam/icon.png
Terminal=false
Type=Application
Categories=Games;
StartupNotify=true

You find the actual path to your 'Steam.exe somewhere in the .wine folder in your home directory
(it's a hidden folder so to make it visible you have to press 'ctrl + h' inside your home directory).
Then you have to put that path where I put '/actual/path/to/steam.exe'.

For the icon just insert the path of the steam icon where I put '/path/to/your/steam/icon'.

Now save the file as  Steam.desktop and close gedit.
Right-click on your newly created Steam.desktop select properties
 and in the Permissions tab tick the 'mark as executable' field.
Now it should be just called Steam and the selected icon should be visible.


How can I run multiple commands which have & in one command line?

Use ().

If you want to run them sequentially:

(myCommand1; myCommand2) &

or

(myCommand1 &) && (myCommand2 &)

If you want them to run parallel:

myCommand1 & myCommand2 &

In bash you can also use this (space behind the { and the ; are mandatory):

{ myCommand1 && myCommand2; } &