Try running:

sudo apt-get update && sudo apt-get install openjdk-7-jre openjdk-7-jdk

Launchpad lists openjdk as being available for ARM so it should install.


Dell Latitude SupportAssist detected high system temperature

I just had the same problem on my Dell Inspiron Mini. After researching it on "Ask Ubuntu," I ran the 'top' command on the command line and found that a program named "BOINC" was causing my CPUs to run at 100% all the time. I disabled that program and now my laptop runs very cool. Hope that helps.


Full Install on flash drive with the hardware detection of a LiveCD

I've run similar installations on a very wide variety of hardware without difficulty. Unlike Windows, the vast majority of hardware you'll encounter is already has "baked in" support in the kernel. While I don't usually get maximum resolution out of video cards/displays (as this often requires proprietary drivers), I've always ended up with a usable system regardless of the hardware I've thrown at it. I use installations such as this for troubleshooting, testing, cloning drives and making images, data recovery and etc. For my purposes this approach has worked fine. Your use case may require a different approach, but I doubt it. You may find this helpful once you've decided to take the plunge. Supported hardware is a moving target as new hardware support is added regularly, this is old, but still interesting: https://www.linux.com/news/hardware/drivers/8203-is-my-hardware-linux-compatible-find-out-here


Try to reconfigure lightdm, it may fix your issue

Open terminal(CTRL+ALT+T) and execute following command:

sudo dpkg-reconfigure lightdm

Then chose lightdm from the list.
Restart your system:

sudo reboot now

It may fix your issue. If doesn't fix then follow 2nd Method.

Method 2:

Installing a new display manager can fix your problem. Steps to install GDM(a display manager much like lightdm):

Open terminal(CTRL+ALT+T) and execute following commands:

sudo apt-get install gdm
sudo dpkg-reconfigure lightdm

then chose gdm from the list. And restart your system:

sudo reboot now

Hope these methods solve your issue. Reply if something goes wrong..


Application launch bar and menu not showing apps

sudo apt-get install gnome-panel  solves my problem.


Left button -> Send to...(no option to send the file as an attachment using evolution)

Please note Javier's comment:
  "There is now (July 6th, 2011) an update in propossed that solves this issue"
  (~ stefano)

Ubuntuforum reports that this helps:

sudo ln -s /usr/lib/libebook-1.2.so.10 /usr/lib/libebook-1.2.so.9
sudo ln -s /usr/lib/libedataserver-1.2.so.14 /usr/lib/libedataserver-1.2.so.13


How can I start a shutdown with cron,only if no download is in progress?

I don't know what all your echo stuff is about but if you just want to check if a particular process is running, you can use pgrep on your schedule. This will return 0 if if finds a process that matches.

I'm assuming you're downloading with wget but you can just change that to whatever process you'd expect to see alive (use htop to inspect the system while downloading if you aren't sure.)

30 0 * * *    pgrep wget >/dev/null || shutdown -h now

If (as above) you're only running this once a day, and it doesn't trigger due to a download, it won't shutdown until the next day. You could alter this to run it hourly between 00:30 and 07:30:

30 0-7 * * *    pgrep wget >/dev/null || shutdown -h now


Empathy Internet Messaging Error [No reason specified]

Open your network, and if your proxy is on manual or automatic, set it to none.

That's what worked for me.


Pixelated lock and home screens after wake up on Ubuntu 19.04

It sounds like this could be the same issue as described on gnome-shell#1809407. A fix seems to be in progress in upstream mutter.


Ubuntu Terminal, what is its executable name?

The GNOME terminal binary is located at /usr/bin/gnome-terminal.

Don't mix that up with /bin/bash. GNOME terminal starts bash, but there's no sense in starting a bash session on its own in a GUI.


Problem with ppa:barracuda72/ralink repository

That PPA doesn't exist for 'Trusty', just for 'Raring'.

Try to replace 'trusty' with 'raring' for distribution. Just select PPA in 'Software & Updates' (your image) than click 'Edit...' and write 'raring' (without quotes) under 'Distribution'. Do this for 'Source Code' PPA also.

After that

sudo apt-get update

and install what you need. Probably will work everything you install but without guarantee.


There's a file in my trash that can't be deleted

Try to delete the whole Trash folder. Is it under ~/.local/share/Trash? Then do:

rm -rf ~/.local/share/Trash


The folder /etc/postfix is part of the package postfix

sudo apt-get install --reinstall postfix

To reconfigure postfix

sudo dpkg-reconfigure postfix

$ apt-file search --regex "^/etc/postfix/"
postfix: /etc/postfix/post-install
postfix: /etc/postfix/postfix-files
postfix: /etc/postfix/postfix-script


screen freezing while moving large files to external disk

It's been a while and I forgot about my topic here. I luckily found that after removing usbmount, file transfer speed increased and no freezing anymore.


Try using this shell script:

#!/bin/bash
play run /home/david/Projects/ZS
echo "Press Enter to exit"
read

and using this command in the menu:

konsole -e "bash path/to/shell/script"


Checking update reason after actual update

I don't think you can do it directly (as Ubuntu does not package the changelog info directly anymore, so this: https://superuser.com/questions/137818/easily-view-a-list-of-changes-of-upgraded-packages won't work anymore), but you can piece the information together yourself.

You can look at the log:

How do I show apt-get package management history via command line?

This is the sample output from my machine:

  Start-Date: 2013-10-29  20:29:59 Commandline: aptdaemon
  role='role-commit-packages' sender=':1.89' Upgrade: upower:amd64
  (0.9.22-1ubuntu1, 0.9.22-1ubuntu2), firefox-locale-en:amd64
  (24.0+build1-0ubuntu1, 25.0+build3-0ubuntu0.13.10.1), firefox:amd64
  (24.0+build1-0ubuntu1, 25.0+build3-0ubuntu0.13.10.1), polly:amd64
  (0.93.10-0~421~ubuntu13.10.1, 0.93.11-0~424~ubuntu13.10.1),
  libupower-glib1:amd64 (0.9.22-1ubuntu1, 0.9.22-1ubuntu2) End-Date:
  2013-10-29  20:30:24

From there you can then look up the packages.
I searched on launchpad.net for "upower 0.9.22-1ubuntu1" and got the following page https://launchpad.net/ubuntu/+source/upower/0.9.22-1ubuntu1

Which then has the following info:

  Cherry-pick two fixes from upstream:
      - up-client: Really don't overwrite retval with prop values. Properties
        and property notification via libupower-glib got broken in 0.9.22.
        Incorrect values were being returned, meaning anything relying on these
        might do the wrong thing, such as in LP: #1238663
      - lib: Fix crasher calling _about_to_sleep_sync(). Crash fix.  -- Iain Lane    Mon, 14 Oct 2013 11:41:36 +0100

You can do that for any of the packages that interest you.


First try to purge/uninstall wine. From this answer you can do this with:

Delete configuration and other wine related files:

rm -r "$HOME/.wine"
rm  $HOME/.config/menus/applications-merged/wine*
rm -r "$HOME/.local/share/applications/wine"
rm $HOME/.local/share/desktop-directories/wine*
rm $HOME/.local/share/icons/????_*.xpm

Delete packages and clean your system:

sudo apt-get purge wine winehq-devel wine-devel
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove

After that you can reconfigure (see here for info) your packages to fix them if something is broken:

sudo dpkg --configure -a
sudo dpkg-reconfigure -phigh -a

Then you should be able to install wine properly. Keep in mind that staging and development versions may have bugs (that could theoretically even prevent proper installation). On the other hand I understand that you may need the latest version to play a game after last update.


Is it possible to "detach" child popup windows in Ubuntu 18.04?

Oh! I actually found it. It's in the Gnome Tweaks under Windows and the very first option is called Attach Modal Dialogs. As we can see here, by default it's turned ON. Click on that button so it says OFF. Now you do not get a grayed out window and when you move the modal dialog, it doesn't move the parent along. Much better!


Insert the DVD, and click 'Install Now.' Ubuntu will detect that you have no OS on it, so you won't have to dual-boot. Then follow the steps and enjoy Linux!

Hope this helps!


Making shortcuts on the launcher with .desktop

You may choose whatever you want for Name.

For Command you are to find what the executable of your software is. To do so: start a software, then run a terminal end execute ps axww there. In the tail of output you are to find the exact name of your executable (it will look like /usr/bin/MyGreateSw or /opt/MyGreateSw/bin/mygreatesw.)
The latter is the string to put as command.


The one in ~/.local/share/applications takes precedence over the one in /usr/share/applications.


Is there any app for voice recording on Ubuntu Touch phone?

There are no core-apps for this yet. And I havent seen any user developed apps for voice recording yet. I don't know if there are libraries to support this at the present.

Are you restricted to using Ubuntu Touch? It's still a fairly young system with a small but dedicated community. Perhaps Android with its much larger community can provide you with what you're after.


You could check it with Wireshark by listening to your network card, just follow these steps:

sudo apt-get install wireshark (paste it into a terminal)
start it from a terminal with sudo wireshark (you need to be sudo to be able to listen to your network card.)
then start listening and filter out everything but your own ip.

Now just check if the dns protocols are encrypted.

use the filter to only show dns
Stop the scan.
click on a list item that says dns and comes from your ip.
Now click on the transmission protocol to see if it's encrypted.


18.04 - does it force netplan or can I still use resolved.conf?

You first have to make a decision to use NetworkManager or systemd-networkd. If you connect wi-fi to various wireless networks, then NetworkManager is probably the better choice. systemd-networkd is best used in servers, where the configuration doesn't change much. See https://netplan.io/examples.

/etc/netplan .yaml example to enable NetworkManager...

network:
  version: 2
  renderer: NetworkManager

In terminal...

sudo netplan --debug generate # generate config files

sudo netplan apply # apply the new config

reboot # reboot to confirm network operation


Broken Package, Unable to install anything.!

E: Cannot get debconf version. Is debconf installed?
 debconf: apt-extracttemplates failed: No such file or directory

IMO, dpkg won't able to get the debconf version.Is that, debconf package installed on your system? Reinstalling the debconf package will correct this problem.

sudo apt-get install --reinstall debconf


Xenial 16.04: D-Link DWA-182 [aka "Wireless AC1200 Dual Band USB Adapter"] issues

Please try to use the proprietary driver that you can find in
"Software & Updates -> Additional Drivers".
It is the dkms version of rtl8812au.
It works for me on Ubuntu 15.10.


Try selecting nomodeset and/or acpi=off in the CD boot menu. See this guide: My computer boots to a black screen, what options do I have to fix it?

UPDATE: There are a couple of more options you can try: xmodule=savage xmodule=vesa xmodule=svga norandr nodrm nocomposite no3d noddc

Add them to the kernel command line manually in various combinations, plain vga should work if the card isn't faulty.


How do I enable submission of performance data in Firefox 7?

Enter the Preferences of Firefox.
Go to Advanced.
Check "Submit performance data" under General - System Defaults.


What is a tty, and how do I access a tty?

tty is one of those funky Unix commands that prints the name of the terminal connected to standard input.

TTY's are text-only terminals commonly used as a way to get access to the computer to fix things, without actually logging into a possibly b0rked desktop.

Related: What is tty7 in the commandline?

By default Ubuntu has 7 tty's.

Up until Ubuntu 17.10, 1-6 are command line only and 7 runs your X session (your normal desktop).
On Ubuntu 17.10 and newer, it's GUI login screen on 1, GUI desktop on 2 and command lines on 3-7.

To access them, use this keyboard shortcut:

Ctrl + Alt + F1 (or F3 on 17.10 and newer)

(changing F1 to F1-F6 to access the terminal that you want)

To get back to your GUI session (the normal desktop):

Ctrl + Alt + F7 (or F2 on 17.10 and newer)


(comics library) Convert multiple rar files to multiple cbr files

Using calibre, you can convert your .rar files to .cbr files. There is a bulk convert feature that allows multiple conversion of files.


Add the option --nohostname to getty. Edit the files /etc/init/tty[1-9].conf to change the exec line from something like

exec /sbin/getty -8 38400 tty1

to

exec /sbin/getty --nohostname -8 38400 tty1

It may also be necessary to edit /etc/issue to remove the \n escape code, which displays the hostname before the login prompt. Change it so it looks like:

Ubuntu XX.YY \l

Default text mode login screen:

Text mode login screen after adding --nohostname too /etc/init/tty*.conf and playing with /etc/issue:

More information:

getty manpage
issue manpage


Yes, you can use syncevolution.  This is how I imported my Google contacts:

adb shell sudo -u phablet -i syncevolution --configure --sync-property "username=email@gmail.com" --sync-property "password=XXXXXXX" Google_Contacts
adb shell sudo -u phablet -i syncevolution --sync one-way-from-server Google_Contacts addressbook

That second line will import 50 contacts at a time.  Repeat to get more.


'Update Information Is Outdated' related to failed installation of apt-fast

The PPA doesn't have the Trusty version uploaded yet, and because there are (or were) no Trusty packages, you're getting a 404 error.

As a short-term solution, you can either open up Software Updates and, for this entry, change trusty to saucy, or you can use my PPA.

If you want to delete that PPA, run sudo add-apt-repository -r ppa:apt-fast/stable.


Can't you just do -

sudo apt-get remove compizconfig-settings-manager


Cannot install openjdk-8-jre successfully On 18.04

The file is corrupted. Remove it using:

sudo rm /var/lib/dpkg/info/astyle.list

Then reinstall the package using:

sudo apt install --reinstall openjdk-8-jre


Missing readline library or readline.h (Already tried other solutions)

The solution is to install corresponding packages with

sudo apt-get install git build-essential libreadline-dev

Then clone repository and make:

git clone https://github.com/jamiejennings/rosie-pattern-language.git
cd rosie-pattern-language/
make

And run software with

./bin/rosie


Macbook Pro Retina 2015 (12,1) Ubuntu 15.04 install from live CD to SD Card

If I remember correctly, rEFInd is the successor of refit, since this stopped their development  long time ago.

Now as the rEFInd web page indicates, the new 0.8.4 version works as it should work but, if the automatic installer fails you can always follow the manual installation, indicated in the same web page.

Now I'm not aware if refind can search in the SD cards, I believe that is a hardware thing, but don't listen to me in this, I'm not fully aware of this.

Check the web page, is really complete and really clever on the instructions.

As an extra comment, Yosemite is a really unstable system, if you want to use both (ubuntu and OS X) I personally recommend to downgrade to Maveriks, since this is more friendly with the boot.

Good luck with this. :D


Employing Ubuntu webapps integration on wordpress site

See this page: http://developer.ubuntu.com/api/ubuntu-13.04/javascript/unity-webapps/
It tells you about the API which powers unity web apps. BTW most of the existing supported apps exist because of the Ubuntu team putting them in, not because of developers of the website using the API.


There could be an issue with secure boot. Try disabling it in the UEFI-BIOS. If you don't find the option, try searching for "<mainboard/laptop> disable secure boot". If it doesn't work, enable it afterwards.


I am not sure if this solution is applicable to your case but, it solved everything for me, and I was experiencing the same thing as you did.

Ubuntu 13.10 & ATI Radeon HD 5450

A. Edit your GRUB file /etc/default/grub

old:

    GRUB_CMDLINE_LINUX=""

fix:

    GRUB_CMDLINE_LINUX="quiet splash nomodeset"

and save & exit.

    $ sudo update-grub
    $ sudo reboot

B. Update your flgrx installation

    $ sudo apt-get install -y fglrx-updates

Configure your graphic configuration with AMD Catalyst

    $ gksu amdcccle

This line will open the AMD Catalyst as Administrator (you will be prompted for superuser password to use it and this is the only way to get this to work)
Do your configuration as per your preference and save the setting.

Configure your X11/XOrg settings

Open your display setting [ Launcher --> System settings --> Displays ] and configure to your preference.  This will reconfigure your system so it'd merge with the new configuration set by AMD Catalyst. AMD Catalyst is graphic adapter controller meanwhile System display configuration controls the X11/Xorg.  With these steps above establishes the connection of configurations between adapter and X11, which will enable the updated flgrx to run.

"Ok, what was really the problem?"

The newer version of kernel have "standardized" the video mode setting but into inside of kernel.  With that, it means kernel registers your graphic adapter first which in turn, prevented X11/Xorg being able to gain the control of this graphic.  So, in order for your system to get the full control is to "inform" kernel to not register your graphic adapter, with this command: 'nomodeset'.

There were some reports that kernel version 3.7.10 and 3.8.3 doesn't do much but were solved by using 'modeset=0' (without single quotes when editing your grub).

Hope this helps.

Edit added:

As fallback solution - at the start up of your GRUB, enter 'e' to edit the file.  Look for "quiet splash" line in the file you are about to edit and add "nomodeset" to "quiet splash" (important) so it'd look like "quiet splash nomodeset".

Sources:

How to set NOMODESET and other kernel boot options in grub2

My computer boots to a black screen, what options do I have to fix it?

nomodeset may no longer work >> use modeset=0 for graphical install on legacy hardware


I can run ubuntu from my USB thumbdrive but I'm not sure it's INSTALLED on my thumbdrive

If you don't need to save files on your thumb drive, you don't need to do anything. Do not run the installer from the thumb drive system.

If you do need to save files on your thumb drive, see this question. You'll want to create a persistent area on your thumb drive. The installation might be similar to the way you created the Ubuntu thumb drive in the first place, though I am unsure if the methods there will work on OS X. If you need further help with that youcan expand your question here or post a new one. This will not involve running the installer inside the thumb drive system, either, and when using a system with a persistent area, you should still not run that.

In any case, you are right to think that clicking Install Ubuntu inside the thumbdrive system can overwrite data on your hard disk. You can install Ubuntu to your hard disk without overwriting data, by clicking that and then being very careful to tell Ubuntu to install alongside your existing system. But if you don't want Ubuntu on another disk, don't use "Install Ubuntu" on the thumbdrive system.

If you want to install Ubuntu on a second thumbdrive, then one of your options is to use "Install Ubuntu," though I suspect the system produced in that way, when installed on a drive attached to a Mac via USB, will not boot.


Yes. To make commands available in PATH, you can either

a) Add the directory to your PATH variable by putting something like the following line in /etc/profile (systemwide) or ~/.profile (your user)

PATH=/opt/ActiveTcl-8.4/bin:$PATH

b) Add symbolic links to the commands in a directory already in PATH (echo "$PATH")

sudo ln -s /opt/ActiveTcl-8.4/bin/* /usr/local/bin

Note that with method (a), the changes will not take effect until next log in.


Can I recover a deleted partition table faster if I remember some of the layout?

No - not recommended, can cause irretrievable data loss
Unless you have all the information fdisk -l provides, you shouldn't attempt this. Just knowing the filesystems isn't going to help much (yet); the start and end are what matter most.
Let testdisk run and take its own time -- it usually does a very good job.


Does powering off the PC without shutting down harm the system?

Ctrl+Alt+F1
Login
sudo init 0

Is it possible to damage something that way?  Yes.  Does it happen a lot?  Not a whole lot in my experience.  If you are trying to get Compiz to restart Ctrl+Alt+T usually pops open a terminal window and compiz &  usually gets it restarted.


Snap not allowing me to remove or refresh anything

This was the top search item for the topic as I was trying to remove a snap whilst it was "auto-refreshing".  The better answer in that it allows you to stop the refresh and take action is covered in Ask Ubuntu.
In effect:
# Check for snap changes
sudo snap changes

# This will list something like
ID   Status   Spawn   Ready   Summary
---

# Note the ID for the refresh and abort it
sudo snap abort <number>

# You must check changes until it has been actioned
sudo snap changes

# The take remedial action, in my case remove
sudo snap remove <snap_program>

Tested with microk8s on Ubuntu 18.04.


Setting static IPv4 address says "has host bits set."

I got the problem. Enter there

69.30.212.168/29

Hosts bits should be unset.

Your hosts bits are the last 3 bits. If you set them to 0, that will get 168.


Lost Partition After Installing Ubuntu 16.04

Use Gparted, you can install it by typing

sudo apt-get install gparted

It has got a GUI so it is pretty easy to use, it is a package to display all your mounted drives with their partitions and sizes included.

https://gparted.org/

Here is the official website with help, for your information it would be enough to install it and check the differences, if you would like to manage your partitions however, you will have to mount it live and do it from your live medium (flash disk e.g.).


can't read superblock on /dev/mapper/veracrypt1

I have fixed the issue that I was having with this after the superblock became damaged/corrupted from a system freeze and subsequent improper power off while the volume was mounted.

Basically, you aren't able to mount the volume however using Veracrypt you can click the options button in the gui to map the volume but not mount it. (the terminology may be incorrect, I am a novice.) On the filesystem options at the bottom, tick the box marked "Do not mount".

After doing so, you will see your volume on the veracrypt GUI as usual, however the mount directory section will be empty. The result should be that the partition is accessible via /dev/mapper/veracrypt#

Now we must discover which superblock backups are available within the partition.

Open a terminal and type

sudo mke2fs -n <device>

now using the information it displays,

sudo e2fsck -b  <one of the displayed options> <device>

After this you should have a working volume if your problem was the same as mine, however from here our experiences will likely diverge.

My e2fsck terminal went crazy flooding it with a mess of numbers, I don't know precisely what happened. At the end it asked if I would like to fix it, however it then said the filesystem had been changed and it was canceling its operations, however regardless the volume now mounts properly and I am able to use it without consequence.

Even though it failed this is how I discovered it was working, in a terminal I typed

sudo mount -t ext4 /dev/mapper/veracrypt# /media/veracrypt1

To my delight, it worked. I then unmounted and remounted via the Veracrypt GUI with a working result.

Best of luck. Once you understand how to access the volume without mounting it you will be able to try other options that you would typically try on a damaged partition and so will have more possible solutions to try. (Personally I had no idea I could use /dev/mapper/veracrypt# to treat it as a typical partition until a lot of troubleshooting)

*my source for the procedure I used and other possible solutions were found here https://www.quora.com/What-are-all-the-things-one-can-try-to-recover-an-ext3-filesystem-with-a-bad-superblock *


Switching java to Oracle JDK is just a workaround in my opinion, as the OP wanted to know why it doesn't work anymore with OpenJDK. Anyway, I fixed it myself using this answer on Ask Fedora.

Basically you first have to create a file javajar.desktop with following contents in /usr/share/applications/.

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=java -jar %f
Name=OpenJDK
Comment=Launching Jar files

After that, execute this command terminal to add your .desktop file to mimetypes list:

echo "application/x-java-archive=javajar.desktop" >> ~/.local/share/applications/mimeapps.list

Of course this all has to be done with root rights.
Voilà, jars now immediately open as GUI.


Uninstalled vim, now can't install it again

vim is available on main repository of Ubuntu.

  The main component contains applications that are free software, can be freely redistributed and are fully supported by the Ubuntu team. & The universe component is a snapshot of the free, open-source, and Linux world.

So, First enable Main & Universe repositories:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe"

Then installed packages by following command:

sudo apt-get update
sudo apt-get install vim

Following is helpful for more(visit for unmet-dependencies and unable-to-locate-package):

How do I resolve unmet dependencies after adding a PPA?
Unable to locate package


"System bootOrder not found. Initializing default. Reset system."

I couldn't find a really solution for this problem. So I decided to reinstall Ubuntu and even this failed with the error that grub couldn't be installed.

So all I could do was to format my disk and start all over again. But since a lot of people seem to have problems with dualboot I decided this time to reinstall only ubuntu and leave windows out. In case I want to have windows too I will install it on it's own disk.


Try the following command in a terminal

sudo apt-get install vlc

This will also upgrade a single, already installed package.


How to recreate cache for "APTonCD" after cleaning cache through apt-get clean?

The following command will download all your currently installed packages:

dpkg --get-selections | cut -f1 | xargs -n1 sudo apt-get install --reinstall --download-only


"ImportError: No module named glib" when running ScreenFetch

You need to install the python gtk libraries to get access to python's "glib" module.  In 15.10:

sudo apt-get install python-gtk2


Changing system settings requires superuser permissions. From a terminal, do

sudo <editor> <filename>

where  could be vim or nano or any other editor command, and  is the one you need to edit.

You could also usegksudo gedit <filename>.

In either case you will be prompted for password of a user with superuser permissions - in a normal Ubuntu installation this would be the first user created during installation.


You are most of the way there. You'll need to do this:

SSH into your server

Type: sudo crontab -e

Add the following line:
*/5 * * * * /usr/bin/wget -q "https://myurl.com/wp-admin/admin-ajax.php?action=place_tags" -O /dev/null

Save and exit: Esc : W X

Be sure to use sudo, otherwise the cron job will only run when you're signed in with SSH.


Switching between console and GUI in ubuntu

To go in tty1 and stop the GUI, run from terminal:

sudo xdotool key Ctrl+Alt+F1 && sudo service lightdm stop

You can test now in the tty1 the fact that the GUI is stopped using:

sudo service lightdm status

Note: xdotool is not installed by default in Ubuntu, so you must to install it first using sudo apt-get install xdotool command.

To start the GUI again from tty1, you can run (as you said):

sudo service lightdm start

If you want also to close (exit) tty1 session, you can use:

sudo service lightdm start && logout


All of this turned out to be a red herring: all that was needed was to install qmake, for example:

sudo apt install qt5-qmake


How to stop executing bash script when there are errors? (if problem)

First of all you must save the content of $? as soon as possible, because each command run overwrite its content. In your case the $? in the if statement is the exit status of the previous echo, not of mvn.

Next, for arithmetic comparison in bash (and sh) you have to use -ne for not equal.

So I suggest:

mvn compile
status="$?"
echo "$status"
  if [ $status -ne 0 ]; then
    echo "is not 0"
  else
    echo "is 0"
  fi

But it could be done more elegantly with

if ! mvn compile; then
    echo "is not 0"
else
    echo "is 0"
fi


Intel PRO/Wireless 5100 AGN card - no GUI wireless configuration available

Ubuntu 12.04 comes with Network Manager installed by default. It is designed to take over all the difficult work of network configuration. It assumes that if you have populated /etc/network/interfaces that you will do the hard work and it will not manage your connections. That is exactly what you see: "...In the menu bar icon, under Wireless Network, it says 'device not managed'."

If you wish NM to manage your network connections, remove all the wlan0 entries from /etc/network/interfaces leaving only:

auto lo
iface lo inet loopback

Reboot and NM will take over management. Frankly, if it works for you, there is nothing really wrong the way it is now. It just appears a bit unusual because it's telling you that the wireless device is not managed by NM.


Can't access Internet although I have configured my IP address correctly

For Internet access you should have 3 things correctly:

IP Address
Default Gateway
DNS Server

For permanent usage you should edit file /etc/network/interfaces. For temporary and testing use these commands (Replace addresses with the correct one in your network):

For IP address:

ifconfig eth0 192.168.9.89/24

For Default gateway:

route add default gw 192.168.9.1

For DNS server:

echo "nameserver 192.168.9.1" > /etc/resolve.conf


Problems with booting without USB support from BIOS

I also tried plop and plopkexec to boot Ubuntu 12.04 installed on ext4 filesystem on USB3 disk
Ubuntu boots from disk on USB2 port but the disk is not listed when connected to USB3 port.
The disk has also ntfs partitions.
This is why I tried plop
Not sure why plop doesn't boot from USB3 disk
When using plpopkexec "View Log" indicates USB3 disk is found and partitions are listed
but plopkexec log indicates the mount fails on all partitions.
I guess it is because FS supported by plopkexec (version 0.3) are only ext2, ext3 and vfat (according to source). There is no such partiton on my disk

Hope this can help


This option is saved in ~/.config/Foxit\ Software/Foxit\ Reader.conf, size of UI font is defined by Linux%20Font= , there you can set this value manually, but only in range 13-15. When you set it higher Foxit assumes it is 14 (at least in my case).


How to set up U1 account after not receiving verification code?

You can solve this as described in the help section:

I never received my verification code. Now what?
To work around this use the "Forgot password" process:
https://login.ubuntu.com/+forgot_password
Once you complete that process, you can open the Ubuntu One Control
Panel and click on the "I already have an account" link.

Reference: https://one.ubuntu.com/help/faq/i-never-received-my-verification-code-now-what/
If you have more problems, you can find a lot of information in the FAQ section on Ubuntu One's website: https://one.ubuntu.com/help/faq


The field you want is "X-Image-Url" rather than "From". Not all email client support viewing it, though. To insert this header, you'll need to check your Mail User Agent (i.e. Thunderbird, Evolution, mutt, etc) documentation. Then once you have an image available online somewhere, you can refer to it like this when you add the X-Image-Url to your MUA:

X-Image-Url: http://host/of/your/image.png


Network button missing gone from Nautilus?

On my 16.04 Network is between Trash and Computer in the left. It has Windows Network inside.

If it really missed - you can reinstall gvfs-backends with

sudo apt-get install --reinstall gvfs-backends


17.04 Login loop after installing Nvidia drivers

I had the same problem on UBUNTU SERVER 16.04.3 on DELL POWER EDGE R830
My graphic card is GeForce 210 which required the 340.104 driver.

What I did was:

Identify your video card version:

lspci | grep VGA

Find the driver at http://www.nvidia.com/Download/index.aspx
Download the .run file
Run

sudo chmod u+x <.run file>

Run

./<.run file>

The installation may give you the "pre-install" failed warning, just click on continue.
Reboot.
On BIOS setting of your system, DISABLE the embedded graphic card.

This should eliminate the infinite login loop problem. To verify that your driver is properly communicating with the video card(s) run:

nvidia-smi

It should show you the table of your video cards, CPU usage etc.


ubuntu cant detect my video card(nvidia gtx 560)

First, you need to reboot after installing the nvidia driver.

What happens when you run

gksu nvidia-settings

Should look someting like this


Available graphics drivers  won't be appear on the additional drivers tab if you fail to add the below to your System.

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update

Now go to Software and Updates and select additional drivers tab. You will see the available options.


Microsoft Office programs (wine) can't save to cifs mount

I'm afraid this is only a partial answer, but I have found mounting the same shares over gvfs works. Using gigolo to automount makes this manageable.

I have experiment with just about every cifs setting, but can't find anything to help. I'd love to have a full answer to the same question.


There's another plug-in if you open the compiz configuration manager (ccsm) called "Enhanced zoom Desktop". There you can define the key binding for the zoom, and keys to zoom only an area or a window.

In case you don't have that option, or even the ccsm, you will have to install the packages that includes the extra plug ins. I do it trough synaptic in every new Ubuntu installation. Just search "compiz" and install all the available packages (except the KDE related ones).

Wish it helps, good luck!


gstreamer bad plugin of file .dep are not allowing me to install any software

This problem  solved by using synaptic package manager . In synaptic package manager one of the option was broken  packages . In that these gstreamer broken dependencies  were  present  , by right click  on them we can remove those dependences . After that everything is working fine with me .


Getting yuvmotionfps working on 64-bit Ubuntu

I got it running by commenting out the echo command for the "Your..." message in the cpuinfo.sh file. The message disturbed the expected output (mcpu march) of cpuinfo.sh which becomes part of the gcc options in the compilation process. Without this "Your..." message, mpu and march are set to empty strings, so that gcc uses the native settings.


Ubuntu 12.04 desktop with no launcher and no shortkeys working

Try changing to the text console by hitting Ctrl+Alt+F1. Log in with your username and password. Then type:

sudo apt-get install python python-minimal

Enter your password again. Confirm the installation with "Y". After the installation is complete, type:

sudo reboot

The problem should be fixed.


Please,please backup your data if you choose to do this, i don't hold any liability for your data damage.

You will need.

-A Live USB/CD-drive to boot up with.

Lets begin!

Use Ubuntu on Try Ubuntu without Installing option.
Gparted should be present, if not use sudo apt-get install gparted
Hunt down your partition. Yeah I'm not a ubuntu expert, so it might be dev/sda1.
RClick on your drive and choose resize/move
insert elevator music here drag how much you need,
click ok (or resize/move)

Now since the changes won't take immediently to use, you need to hit the tick  button to confirm the changes.

Now you can have a great day knowing your computer has been extended.. :D


I think with ubiquity early_command and late_command are simply not working.
So now I am using something like

ubiquity  ubiquity/success_command string \
  cp /cdrom/script /target/root/; \
  chmod 0700 /target/root/script; \
  in-target /root/script; \

These commands work fine and I setup my wifi and do other fixes to my installation before reboot.


Why do I get rsync error 20 when trying to customize Ubuntu?

The error is simply caused by your pressing Ctrl+C to interrupt rsync.

The command should work; since it's not, please try running this and let us know what the output is:

sudo rsync --exclude=/casper/filesystem.squashfs -a -nPh mnt/ extract-cd

The only difference is the additional -nPh option:
- -n indicates a dry run, or a simulation; rsync will simulate what happens, including any errors, without actually copying any data.
- -Ph shows the progress file-by-file in "human" readable (i.e. kilobytes, megabytes, etc.) form.

Please note: The Ubuntu customization wiki is terribly outdated. I highly recommend usin a more modern, user-friendly customization solution that takes care of extracting, mounting, chrooting, etc. for you.

Ubuntu Builder is my tool of choice. Please see this answer of mine for a more-hands-on tutorial of using Ubuntu Builder to customize 12.04.


How do i create my own php 5.3.3 package/ppa?

Regarding creating your own packages, you might want to take a look at the PackagingGuide. A good start is probably the Hands-On session. See also the Launchpad PPA documentation Building a source package and Uploading a package to a PPA.

In your case, the easiest/best thing to do is to base your package of the current Ubuntu PHP source package.

A complete walk through might be none trivial. How about if you start experimenting some, and then ask more specific questions?

If you are interested in MOTO work you might also want to consider joining the mailing list ubuntu-motu as well as the IRC channel #ubuntu-motu (freenode).


How do I replace gedit 3.06 with gedit 2.30.4?

As it has been pointed out, gedit 2.x uses GTK2 and gedit 3.x (supposedly) uses GTK3 so I wouldn't expect it to be easy to downgrade gedit and make it work without uninstalling Gnome 3 and installing Gnome 2 libraries.

Technically, you may be able to download Gnome 2 source code and either compile it with a custom prefix so all Gnome 2 libs go into say /opt/gnome2 and don't mix with the Gnome3 libs or even statically link gedit executable so it's a standalone blob which doesn't use any external libraries. But I think it goes way beyond the amount of effort I'd be willing to spend on this :)

Which brings us to the question: what are your reasons to use gedit 2.x? It's not a particularly stellar or unique editor. Are there any other editors which can be used instead? As a personal suggestion: kate is very good.


Can Ubuntu really run all Windows programs?

He said: "all Windows apps as a thin client". Since "thin clients" usually involve program execution elsewhere, presumably this means via remote desktop or something similar. And the Ubuntu for Android page mentions Citrix thin clients.


Ubuntu 18.04.3 LTS on old computer, stuck on first startup at logo screen

Your Asus eee PC 1005P does not meet the minimum system requirements for Ubuntu, as its Atom CPU has a maximam memory capacity of 2 GB. However, there are flavours of Ubuntu which are less demanding, yet will run Ubuntu apps, freely downloadable. In particular, Lubuntu is the least demanding flavour with its LXQt desktop.

I would suggest you make a new LiveUSB installer with Lubuntu, and install Lubuntu on your PC, erasing the old Ubuntu install.


Ubuntu Tweak natural scrolling not persistent

I have found out that the scrolling issue was caused by the crouton installer which is now updated with a fix for the bug thus anyone with this issue should update the crouton file with the Instructions located here.

If you can not get to those instructions here is a copy of them(All rights go to the crouton creators):

Check for updates, download the latest version, and see what's new by running croutonversion -u -d -c from the chroot (run croutonversion -h to see what those parameters actually do).
Exit the chroot and run sudo sh ~/Downloads/crouton -u -n chrootname. It will update all installed targets.
You can use this with -e to encrypt a non-encrypted chroot, but make sure you don't interrupt the operation.


Update Thunderbird only under Ubuntu 14.04

sudo apt-get install --only-upgrade thunderbird should do the trick


Will I lose my data if I turned the pc off, while using Ubuntu on Live USB?

Yes, the LiveCD runs in a ramdisk which means that when shutting the computer off that all data will be lost. However, you can save this data to an external device (i.e. flash drive or if you wanted maybe Dropbox). The same will happen when installing Ubuntu.


How to get a list of packages I installed?

I found this:

  dpkg --get-selections | grep -v deinstall

Source:
How to list all installed packages


I use Ubuntu 20.04 with the same problem.
The following iptables command can enable it，but I don't know if it has side effects.
iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT


Blank screen with flashing underscore "_" or "GRUB _" with SHIFT - Dell Inspiron dual boot

I've solved using Ubuntu Boot-Repair-Disk. I have used it on live USB.

https://sourceforge.net/projects/boot-repair-cd/

Thanks!


Wifi is Not Working on Ubuntu 18.04 LTS with RTL8723BU

For built in Realtek RTL8723BU USB adaptors with a "0bda:b720" ID:

$ lsusb
...
Bus 002 Device 002: ID 0bda:b720 Realtek Semiconductor Corp.
...

For the record, this is what worked for me:

sudo apt install build-essential dkms
sudo apt install git
git clone https://github.com/lwfinger/rtl8723bu.git
sudo apt install libelf-dev

cd rtl8723bu

Comment out the EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE line in Makefile. Then make, and install:

make
sudo make install
sudo modprobe -v 8723bu

Blacklist the rtl8xxxu module:

vi /etc/modprobe.d/blacklist.conf, append

blacklist rtl8xxxu

Then add to dkms:

source dkms.conf
sudo mkdir /usr/src/$PACKAGE_NAME-$PACKAGE_VERSION
sudo cp -r core hal include os_dep platform dkms.conf Makefile rtl8723b_fw.bin /usr/src/$PACKAGE_NAME-$PACKAGE_VERSION
sudo dkms add $PACKAGE_NAME/$PACKAGE_VERSION
sudo dkms autoinstall $PACKAGE_NAME/$PACKAGE_VERSION

Check dkms with:

dkms status

Pretty much exactly as in the https://github.com/lwfinger/rtl8723bu page, with the addition of installing libelf-dev and including rtl8xxxu in the blacklist.


Torn screen in fresh new Lubuntu installation

Same issue was occurred in Ubuntu but with less occurrence when I was using Ubuntu 20.04.1 (Link). I think there was some issue in core OS. After installing newer version Ubuntu 20.04.2 the issue is gone.


How to enable user's systemd timers and services for Grive2?

your question was giving me the right hint to look at the accompanying systemd user timer/service of grive2.

Only recently the answer to your question was added to the README.md on grive2 github repository. Have a look at README section on systemd-based syncs. Essentially you call:

# 'google-drive' is the name of your Google Drive folder in your $HOME directory
systemctl --user enable grive-timer@$(systemd-escape google-drive).timer
systemctl --user start grive-timer@$(systemd-escape google-drive).timer
systemctl --user enable grive-changes@$(systemd-escape google-drive).service
systemctl --user start grive-changes@$(systemd-escape google-drive).service

Regards

RA


How to exclude text between two patterns in the same line

sed 's/\([^_]*\).*=\([A-Z][a-z ]*\).*/\1_\2/' test

does what you want for file test and writes the output to the terminal:

> sed 's/\([^_]*\).*=\([A-Z][a-z ]*\).*/\1_\2/' test
sp|O34439|YFLP_Bacillus subtilis
MKKSIILLNILLIFMQGDIRQAAAPRLPDGPIEIVVPAEPSGGWDVTAQAIQSVLRQKQIVKDDVHIVYKSGGGGEK
sp|Q44018|YGB7_Cupriavidus necator
MQRRHFIARAGIAAATAALGLAAMPAQAQADKFPQRPIRLVIGYTAGGSTDIPFRVLADNASKILGQPVIVENK

Add > filename to the end of the command to save the output in file filename instead.

Explanation

\(.*_\) take everything until the first underscore, save it as group 1
.*= take everything until the first equal sign

replace by .*OS= to take everything until OS=

\([A-Z][a-z ]*\) take one upper case letter and all the following lower case letters and spaces, save it as group 2

replace  with \([^ ]*[ ][^ ]*\) to search for a string with exactly one space in it

.* (preceding space not displayed here!) take a space and the rest of the line
\1\2 group 1 followed by group 2


run

sudo /etc/init.d/vboxdrv setup

The either reboot or run

sudo modprobe vboxdrv


I have followed this instructions, and it worked great for me (Ubuntu 20.04).
In command line, type this
sudo gedit /etc/gai.conf

Then, edit this line by removing the #
precedence ::ffff:0:0/96  100


supertuxkart 1.0-3 are tracks lock or unlock?

The last question in the FAQ tells you to find the track completion data, open the folder "config-0.10" then open the file "players.xml"; if a track shows as none you have not played it in Story mode; ignore the false value.

That folder will be found in either

$XDG_CONFIG_HOME/supertuxkart/config-0.10 (first choice),
~/.config/supertuxkart/config-0.10 (second choice), or in
~/.supertuxkart/config-0.10 (third choice).

If you don't see a folder named "config-0.10" look for a folder which starts with "config-" but ends with a different number, as the FAQ looks like it was written for version 0.10 but you are running a newer version.

Sometimes FAQs are not updated as the app grows and changes, a problem common to all open source and freeware. I suspect this is the case, as the FAQ refers to version 0.10 whereas the current release is version 1.1 .


As first, your command for moving something to your current working directory should have been:

mv ~/file.txt "$(pwd)"

or

mv ~/file.txt "$PWD"

You can search for your file by using the find command (sudo is necessary for searching the whole computer):

sudo find / -name "file.txt"

Advice if you're not sure if your command is working like it should try a cp first and not a mv.


How to change time-zone settings from the command line

Use timedatectl

sudo timedatectl set-timezone <timeszone>

Examples:

Timezone as EST

sudo timedatectl set-timezone EST

Timezone as UTC

sudo timedatectl set-timezone UTC

Listing all valid Timezones

timedatectl list-timezones

This command is perfect for automation scripts since it doesn't require any user interaction while compared to the other given answer based on dpkg-reconfigure tzdata.


You can toggle 'single CPU' mode inside top by hitting the 1 key. From man top:

       Summary-Area-defaults
          l - Load Avg/Uptime  On  (thus program name)
          t - Task/Cpu states  On  (1+1 lines, see `1')
          m - Mem/Swap usage   On  (2 lines worth)
          1 - Single Cpu       Off (thus multiple cpus)

For example, with single CPU 'on' (the default, apparently):

top - 22:42:17 up 1 day,  1:11,  1 user,  load average: 0.04, 0.05, 0.20
Tasks: 225 total,   1 running, 224 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.8 us,  0.7 sy,  0.0 ni, 98.3 id,  0.2 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  3936368 total,   293968 free,  2812496 used,   829904 buff/cache
KiB Swap:  1512244 total,  1247116 free,   265128 used.   419072 avail Mem

after pressing 1:

top - 22:45:40 up 1 day,  1:14,  1 user,  load average: 0.16, 0.11, 0.18
Tasks: 225 total,   2 running, 223 sleeping,   0 stopped,   0 zombie
%Cpu0  :  1.6 us,  1.6 sy,  0.0 ni, 95.9 id,  0.8 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu1  :  0.8 us,  0.8 sy,  0.0 ni, 98.4 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  3936368 total,   283964 free,  2813716 used,   838688 buff/cache
KiB Swap:  1512244 total,  1247176 free,   265068 used.   414712 avail Mem

You can create/update your ~/.toprc file to make this the default by hitting W.


How to decrease mouse sensitivity beyond settings limit

THIS DOESN'T WORK ON 18.04. Read update below.

In the end I figured this out on my own. So this is what you have to do if you encounter the same problem. Any suggestions to further refine this process is welcome.

1 - Create a config file

sudo nano /usr/share/X11/xorg.conf.d/90-mouse.conf

2 - Paste this inside:

Section "InputClass"
    Identifier "mouse"
    MatchIsPointer "on"
    Option "AccelerationProfile" "-1"
    Option "ConstantDeceleration" "2"
EndSection

Save with Ctrl+O and exit with Ctrl+X.

AccelerationProfile Disables acceleration, so if you like having acceleration on change that to "0".

ConstantDeceleration is the factor by which you wish to decrease the sensitivity. In my case I had a 1000dpi mouse and I wanted to have 500dpi sensitivity so I decelerated it by a factor of 2.

UPDATE FOR 18.04

On newer releases we use libinput props, and the way to increase or decrease pointer speed is by using the transformation matrix, with a command that looks like this:

xinput set-prop 10 144 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000

The "10" in the command stands for the pointer device ID, which you get by using xinput list, and the 144 is the matrix prop ID, which you get by using xinput list-props 10 (changing 10 by the device ID you want to change)

To decrease speed, you must change the first and second "1.000000" values in the matrix, corresponding to x and y axis speed respectively. They work as multiplies, so i.e setting those values to 2.000000 will cause your pointer to move twice as fast by means of point skipping. Changing it to 0.000000 will cause your pointer to not move at all.


Change size of rename file field in Nautilus

You cannot change the size of the rename field without changing the source code of nautilus and recompiling.
Alternatively, you could consider enlarging your overall system font somewhat. This immediately will have a significant impact on overall readability of the user interface.
Install "Gnome Tweaks" if you do not already have it. On the "Fonts" tab, you can enlarge the scaling factor from 1 to for example 1.1 or 1.2, whatever suits you best. Fonts everywhere, including in the rename dialog, will be enlarged by this.


Racing MMO - 2D or 3D - Massively Multiplayer Online Racing Games

The only native MMO close to racing is Darkwind: War on Wheels.

  Darkwind: War on Wheels is an independently developed 3D turn based racing and vehicle combat massively multiplayer online game (MMOG) for Windows, Mac OS X and Linux. It is inspired by the tabletop game Car Wars and the Mad Max movies, but set in its own original universe.

Also you can try other racing MMOGs in wine.  (p.s. nfs world doesn't work)


How to install Canon MP459 on Ubuntu 16.04 (libtiff4 dependency but libtiff5 already installed)

Prelude:

The author found the solution to his own problem. The other questions/answers he found online did not solve it for him, so he wants to post it here so that he can bookmark it for easy access when he reinstalls a system elsewhere (The author didn't had the rep for a answer, thus he had to put it as comments).

Solution:

use the libtiff dependencies from HERE and reinstall the canon printer manually:
extract the downloaded tar archive and cd cnijfilter-mp495series-*-deb/packages
dpkg -i cnijfilter-common_*_amd64.deb
go to "printers" & read the printer.

If this does not work (e.g. the printer is not correctly installed or is  ignoring tasks) then

dpkg-deb -x cnijfilter-mp495series_*_amd64.deb tmp
dpkg-deb --control cnijfilter-mp495series_*_amd64.deb tmp/DEBIAN
nano tmp/DEBIAN/control and replace libtiff4 with libtiff5
dpkg -b tmp/ fixed.deb
dpkg -i fixed.deb
re-plugin the printer. Done

You should now have the network and local printer installed!


What can I do to make ibus-unikey work on Ubuntu 16.04

I just got it working. Note that I DIDN'T have to go into Language and Region to make any changes on Mint MATE 18 but not sure about Ubuntu.

After doing ibus-unikey install and ibus-setup as you did, I went into im-config and selected 'OK' to the screen asking,

  Do you explicitly select the user configuration?

I clicked 'yes' and then chose ibus. After a reboot it worked.

chúc may mắn


How to get a 'non-Screenlet' calculator in Compiz widget layer?

Just figured it out. But well worth it as it CAN BE APPLIED TO MAKE ANY PROGRAM WINDOW A WIDGET!!

1) Finding Calculator Window Class: a) Load the calculator program. b) Then load a terminal window. c) To get the class of the calculator window, in terminal run
xprop WM_CLASS | cut -d\" -f4

Your mouse will now look like a cross-hair. d) Now click on the open calculator program you want to use in the widgets layer. The output class is displayed in terminal. e) Note it down. In my case its 'galculator'.

2) Setting up Calculator in Compiz Widget Layer: Go to Menu\Settings\Compiz Config Manager\Desktop\Widget Layer\ a) Enable the 'Widget Layer' Plugin. b) Within the Widget Layer Plugin section, go to Behaviour\Widget Windows\ and enter
(class=Galculator)
If you require multiple widgets, then enter
(class=Galculator) | (class=Screenlet)

| is 'or' and in my case I'm allowing both Galculator + Screenlets on the widget layer.  NOTE: Brackets are essential, even for single class entries. Does not work if they are missing.

You're basically done! But if your looking for the complete deal...continue...
3) Remove Calculator Window Decorations: Go to Menu\Settings\Compiz Config Manager\Window Management\Window Rules a) Enable the 'Window Rules' Plugin. You will be prompted to enable Regex Matching (if not already enabled) and enable that also. b) Then within the Windows Rules section, go to Matches and enter/copy+paste (class=Galculator) under EACH of the following headings:

Skip Taskbar
Skip Pager
Above
Sticky
Non-resizable windows
Non-minimizable windows
Non-maximizable windows
Non-closable windows
No focus

Now it looks like a true widget.

5) Autostart Calculator to load in Compiz Widget Layer: In Menu\Settings\Settings Manager\System\Session & Startup\Application Autostart\ a) Click the 'add' button with the green cross. b) Enter name, description, and command for the calculator launcher and click 'Ok'. In my case its, Name: Galculator Description: Start Galculator Widget Command: galculator. c) Make sure its ticked in the 'Application Autostart' list.

6) Logout & Login Voila!


I'd suggest creating a new user from the recovery mode. The command to use is adduser desired_username sudo.

You'll be asked for a password, and when done, run sudo reboot.


How to open a file with LibreOffice Writer from Terminal?

You can do it by

libreoffice --writer file.odt

If it is an odt file, you can open it just by

libreoffice file.odt

Some file formats can be opened by different LO applications, then you need to specify which one to use.


Given that the Oxygen HD chipset works with 10.04, 10.10, 11.04 and 11.10, it's pretty clear that the Oxygen HD drivers are mature and work.
However, as I waded through the morass of opinion and less than useful "solutions", I uncovered a BUG REPORT that indicates someone in the land of the devs Dropped The Ball with 12.04 and also 12.10 Oxygen HD support:
[AV200 - Oxygen HD Audio - Asus Xonar D1] analog output device is not listed in audio settings


SMART data dialog appears on each return from TTY to GUI

Having remembered that all authentication requests go into /var/log/auth.log, I've reproduced the dialog by switching to TTY1 and returned to GUI. After the dialog appeared and I canceled the password prompt, i found the following entry:

  Oct  3 12:33:43 eagle polkitd(authority=local): Operator of
  unix-session:c2 FAILED to authenticate to gain authorization for
  action org.freedesktop.udisks2.ata-smart-update for
  system-bus-name::1.83 [psensor] (owned by unix-user:xieerqi)

psensor is an appindicator for monitoring temperature ( and memory and CPU usage ). Having checked it's settings, it became apparent that it has option for updating Udisks information. Unchecking and rebooting ( although restarting psensor itself would have been sufficient ) has solved the issue - I don't get the annoying SMART data prompts anymore


Not enough space left in the hard drive. How to proceed?

I think, you have downloaded too much software in your Ubuntu. I suggest you to copy all of those packages in other partition of the disk or in a USB drive or DVD. Then  use this command

 sudo apt-get clean

to clear the package cache. It will quickly give you some more space

As you are using Wubi to install Ubuntu, You may try these solution posted here:

How to increase the partition size of Ubuntu installed under Windows?
Increase size of  Wubi partition
Resize and duplicate Wubi partition (recommended)

Or you may try to move the Wubi installation to a larger partition with regular installation

Migrate Wubi to a regular installation


It is neither an error nor a warning - it is the verbose output, including the pre-processor search path. From man cpp:

   -v  Verbose mode.  Print out GNU CPP's version number at the beginning
       of execution, and report the final form of the include path.

If you want only the version information, you can use cpp --version:

   -version
   --version
       Print out GNU CPP's version number.  With one dash, proceed to
       preprocess as normal.  With two dashes, exit immediately.


Minitube not playing nor downloading: is it an Ubuntu-specific issue?

A fix for youtube as been released a few days ago

MiniTube update story at OMGUbuntu
Minitube 1.5 to the Rescue

To update to the latest version you will need to add Ferramosca Roberto's PPA

ppa:ferramroberto/minitube

You can find a description of how to add this here

What are PPAs and how to I use them

Hope this helps

Ps. Flavio has a feed for his blog if you want to know of any updates Before OMGUbuntu :)

Flavio's Blog Feed


What could be causing this USB drive to auto-mount?

OK, I think I've finally solved my problem. This RaspberryPi Stack Exchange post mentions a file called /etc/usbmount/usbmount.conf. If you edit that file, there's a line that reads ENABLED=1. Changing the "1" to "0" seems to have solved my problem.


Can Battlefield 3 run on the current version of Ubuntu?

The short answer is no. Ubuntu cannot run windows games that use 3D extensively unless there is a specific version for Linux. Wine doesn't cut it as most games will not work if they use 3D extensivley. Some 3D games work, but they tend to be 5-10 year old games,

I forked out for the extra money for Windows and use it for Games only. A linux only gaming rig will limit the games you play. The only game I play on Linux is Minecraft but that is a cross platform game. All my first person shooters are on Windows.


MAAS interface eth0 (External) and eth1 (internal)

A1. No, since they are on different VLANs 20 and 30. Both MAAS server as well as the nodes to be managed by MAAS should be in the same network or VLAN or whatever.

A2. Yes, that's right!

A3. Since, MAAS is managing DHCP and DNS on eth1 (of MAAS server), it will not manage the network it is connected to through eth0.
If you want MAAS server to manage nodes on eth0, it should be allowed to run its DHCP and DNS services on that interface too.

Please correct me if I am wrong.
Hope it helps!!
But, then if there is already a DHCP or DNS server running on that network then it will get messed up.


I have found this Grub Editor. Give it a go...

To install Grub-Customizer open Terminal (Press Ctrl+Alt+T) and copy or type the following commands in the Terminal:

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

Then to run it

grub-customizer

Just remember, after saving your grub menu, click on File>Install to MBR to make it stick


How to uninstall Second Life installer.sh

If what you mean is that you downloaded the archive from the Secondlife web site, extracted the archive and ran the install.sh script, it depends on where you installed the client when you run the install.sh script.

If you ran the script without sudo and elected to continue as such accepting all defaults
then the client will be installed in your home directory in a folder called .secondlife-install
just delete this folder with the following command;

rm -rf ~/.secondlife-install

In System > Preferences > Main Menu, on the left select the Internet group, on the right select the secondlife icon and press the delete button.

If you ran the script as sudo and accepted all defaults then the application will be installed in a folder called secondlife-install under the /opt directory, just remove this directory with the following command;

sudo rm -rf /opt/secondlife-install

As usual just be careful with the commands.

you can remove the .secondlife folder in your home directory if you do not need it for another client or for retaining Secondlife settings if you intend to try the same or another viewer.

It may interest you to note that you do not have to run the install.sh script if you just want to try the viewer and then get rid of it, you can just run the secondlife script in the folder you extracted the archive to. just remember that a .secondlife config and cache directory is created in your home folder this can be deleted safely if you do not have another client that uses that same config and cache directory.


How to resize a window when the bottom right is not visible?

Hold down Alt and drag with mouse wheel(mouse middle button)

EDIT

need to edit $HOME/.kde/share/config/kilerc file

[Tool/ViewPDF/Okular]
class=View
command=FoxitReader
from=pdf
menu=View
options='%target'
state=Viewer
to=pdf
type=Process

And change needed settings


How to add m4v files to iPod classic using Banshee

I cannot speak for your situation, but for me this is related only to LOSSLESS m4a files. Nevertheless, I have the same problem, both with banshee and with gtkpod. This is a confirmed bug in 11.10. A poor answer, but for now I suggest subscribing to the bug:
https://bugs.launchpad.net/ubuntu/+source/gtkpod/+bug/883962

It appears to be the result of missing libmp4v2, which was dropped from 11.10. There are some workarounds suggested at the bug site, but a workaround isn't an 'answer' in the strict sense.


How can I prevent apt-get/aptitude from showing dialogs during installation?

Try using debconf-set-selections to set the value before installing the package:

echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections

Or, via ansible

- name: prevent the iptables-peristent install dialog
  debconf: name=iptables-persistent question={{ item }} vtype=boolean value=true
  with_items:
  - iptables-persistent/autosave_v4
  - iptables-persistent/autosave_v6
- name: install iptables-persistent
  apt: name=iptables-persistent


Start / stop init.d script without root access

You can customize which commands the user can run via sudo in /etc/sudoers (using visudo):

username: ALL = /etc/init.d/virtuoso


Here’s an awk oneliner to solve the problem:

awk '{printf "%.2f %s\n", $1/3600, $2}'

For every line, this simply divides the first field by 3600 ($1/3600) and prints it as a float with two decimals (%.2f) followed by space, the second field ($2) as a string (%s) and finally newline. If you want to round to e.g. six decimal places instead, just change %.2f to %.6f.

Example run

$ cat <data
569158.650000 8.859e-02
579175.970000 8.659e-02
599177.990000 8.659e-02
$ awk '{printf "%.2f %s\n", $1/3600, $2}' <data >new_data
$ cat <new_data
158.10 8.859e-02
160.88 8.659e-02
166.44 8.659e-02
$ awk '{printf "%.6f %s\n", $1/3600, $2}' <data
158.099625 8.859e-02
160.882214 8.659e-02
166.438331 8.659e-02


Installing Ubuntu on unallocated space between many partitions

You do not need to format the unallocated space. You can do this during the installation of Ubuntu.

From what you mention, you have two partitions already (Win, Recovery), and you need two more partitions, the Linux partition and the swap partition. For the swap partition, make it to be twice your RAM (it's a rule of thumb) and the rest goes to the Linux partition. Therefore, create the swap partition first, then allocate what is left to the Linux partition.

Also read at https://help.ubuntu.com/community/Installation for generic help of the process.


Make Nvidia X server settings persistent across reboots

The setting(s) can be applied across reboots by first using "force full composition pipeline" in the X server settings and saving the configuration in the Xconfig file with the nvidia X server settings.


What determines NIC device name in Ubuntu

Explanation how the name is created can be found in src/udev/udev-builtin-net_id.c:

 * Two character prefixes based on the type of interface:
 *   en -- ethernet
 *   sl -- serial line IP (slip)
 *   wl -- wlan
 *   ww -- wwan
 *
 * Type of names:
 *   b<number>                             -- BCMA bus core number
 *   ccw<name>                             -- CCW bus group name
 *   o<index>[d<dev_port>]                 -- on-board device index number
 *   s<slot>[f<function>][d<dev_port>]     -- hotplug slot index number
 *   x<MAC>                                -- MAC address
 *   [P<domain>]p<bus>s<slot>[f<function>][d<dev_port>]
 *                                         -- PCI geographical location
 *   [P<domain>]p<bus>s<slot>[f<function>][u<port>][..][c<config>][i<interface>]
 *                                         -- USB port number chain

enp0s4 means ethernet, bus 0, slot 4.
enp1s0 means ethernet, bus 1, slot 0.
(if there is an f that refers to "function". A 3rd subset of the device)

So the name changes when the bus or the slot changes. It refers to the PCI device. See ...

$ for i in `seq 2 5`; do lspci -s 0${i}:; done
03:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
04:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)

for a list of PCI devices. In my case that would be for my ethernet: port 4, slot 0, function 1. And for my wireless: port 3, slot 0. See ...

$ networkctl

IDX LINK             TYPE               OPERATIONAL SETUP
  1 lo               loopback           n/a         unmanaged
  2 enp4s0f1         ether              n/a         unmanaged
  3 wlp3s0           wlan               n/a         unmanaged

  how would I go about configuring my Ubuntu VMs such that this would no longer be an issue?

There are 4 methods; 2 of them are to use your own names (see /etc/udev/rules.d/70-my-net-names.rules) or use the MAC address (cp /usr/lib/udev/rules.d/80-net-setup-link.rules /etc/udev/rules.d/80-net-setup-link.rules and edit the file as needed for you situation). Both have you set up an interface name that generally would not change (well you could change the MAC address on some NICs ;) )


Ubuntu-Java Installation-Topcoder-“Java not found”

You should download the last version of java"7" and fellow this steps:

First of all extract the file : tar -xvf ~/Folder
Create jvm directory on /usr/lib :  sudo mkdir -p /usr/lib/jvm/jdk1.7.0
Copy the file into home folder to jvm/jdk.. : sudo mv jdk1.7.0_09/* /usr/lib/jvm/jdk1.7.0/
Create repository for the java : sudo add-apt-repository ppa:nilarimogard/webupd8
Update all packages on your ubuntu : sudo apt-get update
Get the java update : sudo apt-get install update-java
Update java : sudo update-java
Check the version : java -version

If it's checked and it show you the version your java is well installed!


How do I find out whether my system has USB 3.0 ports?

lsusb does show you whether the kernel sees usb 3.0 support.

Contrast this non-USB3 system:

$ lsusb
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 1210:2604 DigiTech
Bus 002 Device 003: ID 0a5c:219c Broadcom Corp.

with this one, which does support USB3:

$ lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 08ff:168b AuthenTec, Inc.
Bus 001 Device 004: ID 04f2:b1d6 Chicony Electronics Co., Ltd
Bus 002 Device 015: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth

a "3.0 root hub" is present for USB3.

That said, I concur that the best way to determine if your hardware is USB3 is by looking at the ports themselves; USB3 is usually color-coded and is blue, and has some extra conductors (which are however a bit difficult to see). If a USB 3.0 port is not blue, you will most likely see the phrase "SS" for super speed next to it, like this:


After updating to 16.04, bluetooth audio A2DP mode stopped working

What works for me is to connect the bluetooth device, switch to HSP/HFP mode, disconnect, reconnect and then switch to A2DP mode.


You are not located in ~  (your $HOME directory, ie. /home/$USER/)

Your commands are trying to enter the directory /home/Downloads/ or /home/downloads/ instead

use cd alone to change to your $HOME directory, then your entered commands will work, OR use cd ~/Downloads


What does 2>&1 means in crontab commands?

It's redirecting standard error to standard output using file descriptors.

This isn't a cron construct but a shell construct and is available in pretty much any shell you may come across.  2 is the file descriptor for STDERR and 1 is the file descriptor for STDOUT.  The > sign is the redirection operator.

More information about file descriptors and shell redirection can be found here.


Allocate space back to Ubuntu partition?

It's going to be a little bit of work...

Step 0:  Back up your data

Step 1:  First, you will need to shrink the Windows partition (ref. B) - this should be done from inside Windows, while Windows is running.  You can use Windows disk management tools to do this.

Step 2: Secondly, you will need a liveUSB of Ubuntu to change the Ubuntu partitions, as these partitions cannot be modified while they are being accessed by Ubuntu.  Because of the way your disk is arranged, this will be a two step process, at least.

Step 2a)  Incorporate the free space into the extended partition /dev/sda4:  Booting from the LiveUSB, run the program gparted and use this program to add the extra space into /dev/sda4.  You may need to move partition /dev/sda3, depending upon how Windows handles shrinking that partition.

Step 2b)  Using gparted, add the unused space now in /dev/sda4 to your Ubuntu partition, /dev/sda5.  Again you may need to move partitions on the disk to have the unused space contiguous to /dev/sda5


Ubuntu 14.04 keeps on booting into terminal login screen

As @Zanna suggested, what worked was to boot into the bios and turning off "secure boot". After that it booted into the gui login screen but would go into a login loop after entering my password. I then had to follow the advice on this page and used sudo chown username:username ~/.Xauthority. Now it boots both into the gui login screen as well as logs me into the gui desktop.


Find directories within directories ending in 'l0' that do not contain '*18*' in their names

if you want to print the leaves with find you can use -links:

$ find -type d -path '*l0*' ! -path '*18*' -links 2

Directories with no subdirectories contains two hardlinks one to itself and one to its parent . ..


Is it possible to switch shells without getting dumped into the old shell by exit?

You can use the exec command to replace one interactive shell with another. From man bash for example (where exec is provided as a shell builtin command)

   exec [-cl] [-a name] [command [arguments]]
          If command is specified, it replaces the shell.  No new  process
          is  created.

What happens after that depends: if the original shell was a login shell, then the session will terminate. If the shell is an interactive shell running in a terminal emulator for example, then the terminal emulator application decides what to do: for gnome-terminal you have a choice under the Edit -> Preferences menu between closing the terminal, not closing the terminal (leaving it rather useless - without a shell) or relaunching the default shell.


Try navigating to bin folder in your Matlab installation directory:

cd /usr/local/MATLAB/R2012a/bin

Then execute Matlab from there:

./matlab

Source: How do I launch MATLAB on Linux?

If that worked for you, you can create alias:

cd /usr/local/bin/
sudo ln -s /usr/local/MATLAB/R2012a/bin/matlab matlab

This trick will allow you to launch matlab from any directory, as you were trying to do. Note that you should use sudo for the last command, since it creates alias globally, for all users.

If you are not in sudoers list (i.e. you cannot use sudo command), you can create alias locally. To do that, open .bashrc file, which is in your home directory:

gedit ~/.bashrc

Add the following line to the end of that file:

alias matlab="/usr/local/MATLAB/R2012a/bin/matlab"

Finally, reopen your terminal, or type source ~/.bashrc and execute this command.

Source: How do I create shortcuts, aliases, or links to MATLAB?


How to uninstall older version of the same software?

You have to run two commands:

dpkg -l | grep zoom
snap list | grep zoom

and then decide which version is older.
Then remove old version with one of the commands below:

sudo apt-get purge zoom
snap remove zoom-client


mysql-server:Depends: mysql-server-5.5 but it is not going to be installed

I got the same Problem with mysql-server-5.6. To solve it I had to remove all the mysql Packages with sudo apt-get remove mysql-client mysql-server and then reinstall mysql with sudo apt-get install mysql-server-<version>


How do I resize the desktop icons in Ubuntu 15.04

Right-clic on the icon, then choose "Resize the icon...".

You can also run dconf-editor and search for schemas like :

org.gnome.desktop.interface

and

org.gnome.nautilus.icon-view ?


What causes "RTNETLINK answers: No such process" when using ifdown command?

This message generally indicates that you try to remove a route from a routing table, but such a route does not exist in the table.
When bringing the interface down, ifdown is trying to remove any routes that are associated with a given interface. This message appears when ifdown "thinks" it has to remove a route (because it appears somewhere in the configuration) but the route does not actually exist in the routing table (for example it has been already removed manually). This can happen if you changed the network configuration files for these interfaces while the interfaces were up and eg. added a route to the configuration that wasn't there at the moment the interface was brought up (may be also eg. a change of the netmask, so the netmask when the interface was brought up is different from the current one).
After ifup, the route - if any is configured - is added while the interface is brought up, and after subsequent ifdown it is removed. So if there were no configuration changes between ifup and ifdown, no message appears.


I was missing a vital step.. you have to format the new crypted device.

mkfs.ext4 /dev/mapper/mycrypt
mount /dev/mapper/mycrypt /mount/mycrypt/


You'll want to map the missing keys using xkeyboard-config. I recently created a keyboard map for the Microsoft Surface keyboard and it was pretty straight forward. Most modern keyboard configurations are derivatives of the evdev standardized keyboard layout and simply override incorrectly assigned keycodes and/or provide missing assignments. I found this guide to be quite helpful in creating my own mapping.

Have you tried manipulating the brightness controls by manipulating /sys/class/backlight/acpi_video0 (or similar) or via DBus? See this related post for how to use those two methods. If you're able to change the values with either of those methods then you should be able to map your brightness control keys to the appropriate XF86MonBrightnessUp/XF86MonBrightnessDown commands. You can also try using xbindkeys to send the appropriate commands.


If I remember correctly, the user configuration files for openbox are located at

~/.config/openbox/

so removing that directory would restore default configuration.

This should work if you have not manually changed system configuration of openbox in /etc.


Increase height of onboard in lock screen

Dunno if you still need help, but I have something for you.

Run the following:

gsettings set org.onboard.window.landscape dock-height 405

It works fine while logged in, so presumably making a script that does this automatically upon lock will work for you.


How to Increase Home Folder Size in Ubuntu 14.04 LTS?

Here are some simple steps for you to perform right where you were in the video (assuming you really were booting from live cd/usb and that /dev/sda6 really is the partition you have mounted on /home ).

Move /dev/sda3 to the "right" far enough to leave unallocated space between it and /dev/sda2 equal or greater to the amount of space you wish to add to /dev/sda6.
Increase the size of /dev/sda6 to use up as much of the unallocated space directly to the "right" of it as you wish to add to that partition.

Note 1: It is possible that you have to separately increase the size of /dev/sda2 prior to step 2. This depends on whether or not gparted implicitly extend /dev/sda2 as you attempt to extend a partition within it.

Note 2: Moving the beginning sector of a partition to the "right" can potentially take a very long time due to the fact that all of the data on that partition will need to be moved, so be patient.

Note 3: If /dev/sda3 is your root partition, you will need to use chroot to re-install grub prior to rebooting, because grub points to a specific sector on your HDD/SDD, at least if it's not using EFI.

Instructions on how to do this can be found in my answer to this question:
Problems restoring grub


Is gksudo still in use, if not what is the replacment?

what does the gk part stand for:

gksu: Gtk+ Frontend to su and sudo gksu is a Gtk+ frontend to /bin/su. It supports login shells and preserving environment when acting as a su frontend. It is useful to menu items or other graphical programs that need to ask a user's password to run another program as another user. gksu can also act as a frontend to sudo. It installs a link /usr/bin/ gksudo, which you can call to use this feature. When using sudo, gksudo respects /etc/sudoers definitions.Linux Dictionary V 0.16


How to adjust brightness without adjusting the hardware brightness

Fortunately, I found an app known as desktop dimmer. It works wonder for me where I can set the hardware brightness to maximum and dim the screen without changing the hardware brightness, the flicker issue is gone after that. Here is the link to download desktop dimmer: Desktop Dimmer Download Link


How to hide all desktop icons in 12.04 and later?

It's in gsettings (& dconf-editor), to do from cli use

gsettings set org.gnome.desktop.background show-desktop-icons false

From gui open dconf-editor (install dconf-tools) as in screen


Yes, you can remove apport but unless you actually agree(d) on apport sending information it will never send any data.

Even better: The automatic crash interception component of apport is disabled by default in stable releases for a number of reasons:

Apport collects potentially sensitive data, such as core dumps, stack traces, and log files. They can contain passwords, credit card numbers, serial numbers, and other private material.
This is mitigated by the fact that it presents you what will be sent to the bug tracker, and that all crash report bugs are private by default, limited to the Ubuntu bug triaging team. We can reasonably expect developers and technically savvy users, who run the development release, to be aware of this and judge whether it is appropriate to file a crash report. But we shouldn't assume that every Ubuntu user of stable releases is able to do so.
During the development release we already collect thousands of crash reports, much more than we can ever fix. Continuing to collect those for stable releases is not really useful, since

The most important crashes have already been discovered in the development release.
The less important ones are not suitable for getting fixed in stable releases (see https://wiki.ubuntu.com/StableReleaseUpdates
Asking users to send crash reports to us is insincere, since we can't possibly answer and deal with all of them.

Data collection from apport takes a nontrivial amount of CPU and I/O resources, which slow down the computer and don't allow you to restart the crashed program for several seconds.

If apport is currently active you can disable it by editing...

sudo nano /etc/default/apport

and follow the comments:

# set this to 0 to disable apport, or to 1 to enable it
# you can temporarily override this with
# sudo service apport start force_start=1
enabled=1

Set it to 0.


Chromium and Firefox both load very slow on 14.04

I cant guarantee this would work for sure. But still try deleting all the caches, cookies and unwanted bookmarks. Firefox and Chromium generates a huge data cache. So initial start up would take up some time. Other probable causes of feeling slow in the browser could be due to :

Extensions/themes which take huge resources to work or were poorly written
Try changing your homepage. Problems with a website can cause the browser to take a long time to start

I also experienced the same thing. Doing above workarounds, worked great for me. The above wouldn't completely remove the delay in start up time, but i can assure you that it would certainly reduce it.


I see you are new to Linux at all... First basic truth you have to know: you should never do primary login as root and never use root as home user account! It is the fastest way to kill system, especially for new users. But in home user folder you can do ANYTHING.

Set password to your root account and use it with caution. Ubuntu has a lot of scripts to do system tasks, use them instead of manual hacking. Now simpliest solution is to reinstall Ubuntu completely without formatting hard drive. This will keep all your data and restore system files. Though if you placed your data in wrong location like /etc, /usr, you have to move it in /home/user directory before you proceed.

Or you can try to restore files you have deleted using this instruction. But before you have to choose recovery mode and drop to root shell prompt. I also recommend you to modify the script to make it operate faster:

apt-get -y --force-yes install --reinstall `dpkg --get-selections | awk '{print $1}' | egrep -v '(dpkg|apt|mysql|mythtv)'`


How do I install and build Generic Mapping Tools version 6.0.0 or above?

I used these steps to install it:

Install the required tools

sudo apt install cdftools cmake
sudo apt install build-essential libcurl4-gnutls-dev libnetcdf-dev

Download the source with:

wget https://github.com/GenericMappingTools/gmt/releases/download/6.0.0/gmt-6.0.0-src.tar.xz

Untar the source file:

tar -xvf gmt-6.0.0-src.tar.xz

Install the GSHHG and DCW-GMT:

sudo apt install gmt-gshhg-full
sudo apt install gmt-dcw

Locate these files using the command:

dpkg -L gmt-gshhg-full
dpkg -L gmt-dcw

Configuring:

GMT can be built on any platform supported by CMake. CMake is a cross-platform, open-source system for managing the build process. The building process is controlled by two configuration files in the cmake directory:

ConfigDefault.cmake is version controlled and used to add new default variables and set defaults for everyone. You should NOT edit this file.
ConfigUser.cmake is not version controlled and used to override defaults on a per-user basis. There is a template file, ConfigUserTemplate.cmake, that you should copy to ConfigUser.cmake and make your changes therein.
In the source tree, copy the template configuration file cmake/ConfigUserTemplate.cmake to cmake/ConfigUser.cmake, and edit the file according to your demands. This is an example:

set (CMAKE_INSTALL_PREFIX /usr/local)
set (GSHHG_ROOT /usr/share/gmt-gshhg)
set (DCW_ROOT /usr/share/gmt-dcw)
set (COPY_GSHHG true)
set (COPY_DCW true)

Change into the untared folder and run the following commands:

cd gmt-6.0.0
mkdir build
cd build
cmake ..
cmake --build .
cmake --build . --target install

Find the location of the installed tool if you didn't set it yourself:

which gmt

You also need to download support data:

[GSHHG][1]: A Global Self-consistent, Hierarchical, High-resolution
Geography Database (>=2.2.0)
[DCW-GMT][1]: The Digital Chart of the World (optional, >=1.0.5)

Optional libraries as needed:

Install optional dependencies

 sudo apt-get install gdal-bin libgdal-dev libfftw3-dev libpcre3-dev liblapack-dev libblas-dev libglib2.0-dev ghostscript

to enable movie-making

 sudo apt install graphicsmagick ffmpeg

to enable document viewing via gmt docs

 sudo apt install xdg-utils

to enable testing

 sudo apt-get install graphicsmagick

to build the documentation

 sudo apt install python-sphin

Update:

Setting path

Make sure you set the PATH to include the directory containing the GMT executables if this is not a standard directory like /usr/local/bin.

For Linux/macOS users, open your SHELL configuration file (usually ~/.bashrc) and add the line below to it.

export PATH=${PATH}:/path/to/gmt/bin
Then, you should now be able to run GMT programs.

Note: More information for fine tuning your install can be found here


How do I kill a screen session if it has no running processes?

seems scriptable to me. You could try doing something simply like this

#!/bin/bash

#Stop the minecraft server
screen -S mcserver -p 0 -X stuff "stop^M"

while true
do
  echo "checking for java..."
  sleep 2
  ps aux |grep 'server.jar' |grep -v grep
  [ $? -eq 1 ] && break
done

screen -XS mcserver quit

This basically loops until server.jar is not found in the process list, then it breaks out of the loop. Since the loop is broken, it should be safe to shutdown the screen session


In the preseed file uncomment the line

d-i pkgsel/upgrade select none


How do I generate a 'Hash-Code' for a document or photograph?

At first choose the hashing algorithm you want to use. For example, md5, sha256, sha384, sha512 etc.

A point to note that, unless you are looking at cryptographic usage or where security is more important than complexity, md5 should be enough for regular file hashing that you want to crosscheck afterwards.

Now, GNU coreutils comes with most of the hash generating binaries for common algorithms:

% dpkg -L coreutils | grep '[0-9]sum$'
/usr/bin/sha224sum
/usr/bin/sha512sum
/usr/bin/md5sum
/usr/bin/sha1sum
/usr/bin/sha256sum
/usr/bin/sha384sum

Now pick the one of your choice, and do the sum e.g. for md5sum:

md5sum foobar.jpg

Replace foobar.jpg with the file of your choice to get the hash for that.

Also check the relevant man pages e.g. man md5sum.


How to switch from Debian to Ubuntu because of Graphics and Microphone issues in Debian Jessie

I'm thinking of doing the same thing and switching to Ubuntu 16.04 for pretty much the same reasons. I haven't done so yet, so I cannot comment on the first part of your question.

With regard to your lack of an external backup, it should not be a problem. I'm assuming you know your way around /etc/fstab, given what you've set up. Ubunt, as with most modern Linux variants, allows flexible use of existing partitions. All you really need to do is make sure the partition containing /home is not touched during the install. You'll be asked how you wish to partition your hard drive. You should choose "custom". Then simply ensure that the new install doesn't touch the partition with your data. Afterward you can mount your old partition, though I would avoid mounting it as /home, since the new /home will have a number of invisible files required by your new O/S. You might try mounting it as a subdirectory of your new /home.


Is it possible to specify Japanese Kana/Kanji font substitutions?

To make use of the MotoyaLMaru font, try to add a config file along these lines:

$ cat ~/.config/fontconfig/conf.d/10-japanese-preferred.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <alias>
        <family>sans-serif</family>
        <prefer>
            <family>MotoyaLMaru</family>
        </prefer>
    </alias>
</fontconfig>


Navigate to /home/yourusername/.tuxtype in your file browser or use Ctrl+h to view hidden files. You will find a file called settings.txt in this directory.
Open this file and find the line:

fullscreen=1

and change the 1 to  0 to disable fullscreen mode. Save the file and close. Boot up the game and you will be running tuxtype in windowed mode!


How to merge all mp4 files into 1 mp4 file present in current directory and its subdirectories from terminal

You can first make a list of your mp4 files (mp4_list.txt) that are in your current directory and its subdirectories:
find "$(pwd)" -type f -name '*.mp4' -printf "file '%p'\n" | tee mp4_list.txt

Then use ffmpeg's concat demuxer to join all mp4 files in mp4_list.txt to an output.mp4 file:
ffmpeg -f concat -i mp4_list.txt -c copy output.mp4

I found the above ffmpeg command in SuperUser: Join mp4 files in linux
If you get an error saying Unsafe file name, add -safe 0 before -i in the above command. See this Stack Overflow answer: ffmpeg concat: “Unsafe file name”


Livepatch on 20.04 LTS - Failed to retreive Livepatch status

I ended up uninstalling the Livepatch snap, rebooting and reinstalling the Livepatch snap.  Once I logged on to Livepatch with my Ubuntu account my problem was resolved.


Inkscape Suddenly Lost Color Shading on 3D Boxes

Close Inkscape completely.
Open Terminal.
Do the following command:

mv ~/.config/inkscape ~/.config/inkscape.LAST
Reopen Inkscape. The problem should have resolved itself by resetting options.


Does BleachBit's override files to hide contents work on Ubuntu's filesystem type?

By default I think ext3 and ext4 use journaling mode, and overwriting individual files may not work well because the overwriting happens in a different physical part of the drive than the original file. The file cannot be undeleted in a standard way using the file system metadata, but the contents could maybe be found using a search of the disk's free space.

Some options:

Disable journaling with ext3/ext4
Overwrite the free space with BleachBit
Use file encryption or whole drive encryption


Does Ubuntu One Re-load a file after renaming it?

It doesn't re-upload the entire contents if the contents are the same. It handles file moves correctly, whether it is a rename, or moving it into a sub-folder.


Windows 7 / Ubuntu dual-boot with shared data partition

For your second question, yes. You can install from a USB stick. It is well documented.

So, I don't have the exact solution to what you are looking for but this info may be helpful. Windows uses the NTFS filesystem which recent Ubuntu distros are able to read out of the box. If not, you can install a package to do so. Ubuntu uses the ext4(or 3 or 2 depending on how old) filesystem which is unreadable by Windows without extra software.

Ideally, you would want it to read both ways, but that is not supported natively by Windows so what you could do, is install Ubuntu on a smaller partition of your drive. You only need about 8GB for the OS so making you partition 20GB would be plenty. Once installed, you should be able to access your Windows partition like a external drive. If you really want to, you can have it mount on boot but it is easy enough to access as is.


cannot open /dev/ttyS0: Permission denied, but in dialout group

I suggest you should just double-check if you are a member of the dialout group, let us suppose your username is joeuser, do the following:

groups joeuser

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

sudo gpasswd --add joeuser dialout

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


You shouldn't use os.system() at all. it is deprecated, really, really old-fashioned and discouraged to use any more.
Instead use either subprocess.Popen() or subprocess.call():
import sys
import subprocess

subprocess.Popen(["gnome-open", '/home/ash/caffe/examples/imagenet/train_rest/'+sys.argv[1]])
# or:
subprocess.call(['gnome-open', '/home/ash/caffe/examples/imagenet/train_rest/'+sys.argv[1]])

Also:
No need to use str(sys.argv[1], just sys.argv[1].
Note
Probably no need to say, but if your argument (-directory) includes names with spaces, use quotes, e.g.
python <script> '/path/with/name with spaces'


Check the GRUB configuration file once. It may be located in /boot/grub/ [or] etc/default/grub/ by default. "grub.cfg" file can be opened by any text editor. See if there is any Windows 8 entry in this file normally at the end of all entrys.


Ubuntu installation in VirtualBox - not using base memory in RAM

Virtualbox uses two separate applications, the actual virtual machine, and the Virtual Box Manager. We can not test this here, but it seems likely that the RAM usage you observed is from the Virtual Box Manager, the GUI to manage all your virtual machines, and not from the VM itself.

To speed up Ubuntu we need to make sure the following is met:

enable VT-x or AMD-V in BIOS, and in the VM settings
assign enough RAM (1024 is fine but leave at least 512 MB better more for the host)
give enough Video RAM (choose 128 MB)
enable 3D acceleration in the VM settings
install Guest Additions for (limited) hardware 3D acceleration
from Ubuntu 12.10 performance is better from 2 CPU cores onward (note that if you have only a dual-core system that this may affect the host operability)


How to force quit out of an infinite loop in a bash script gracefully

If you get a blinking cursor you are probably not actually in a loop. You are probably expecting input. Try Ctrl+D. If that doesn't work then open a new terminal and ps aux | grep command where command is the name of the script you wrote and then kill the pid that is returned.


What does installing Ubuntu "alongside" Windows entail?

This is called WUBI. Wubi creates a virtual Ubuntu inside Windows. Imagine it as a virtual machine you need to reboot into. You can still boot to both from the Windows Boot Manager, but there is no second partition. About the corruption, run CHKDSK from Windows, then, go into your Programs and Features > Add Remove Programs and uninstall Ubuntu. Run another CHKDSK. Finally, reinstall Ubuntu through WUBI

Wubi does not work (is unsupported) on systems later than Ubuntu 14.04.

If Ubuntu is not on your install list, there is a HUGE problem. Disregard all above instructions and:

(From Windows) Open a command line as Administrator
(From Windows) Run command bcdedit. Locate the Ubuntu entry. Find the identifier and take note of it.
(From Windows) Run command bcdedit /delete <id from step 2>
Download Ubuntu 12.04. Burn the ISO. Pop it in, click WUBI, go through everything.


I recommend trying thermald, this will actively monitor hot thermal zones and will try various methods to try and cool a machine.

Install with:

sudo apt-get install thermald

For more details, consult the kernel team [thermald][1] reference guide.


The final version will not be available till 2014


Unable to recognize and create partitions for Ubuntu Installation on Dell Inspiron 15R 5520

You have two issues.
Windows only boots in BIOS mode from MBR(msdos) partitioned drives. It looks like drive was originally gpt. And when you install Windows in BIOS boot mode it does not correctly convert to MBR, but leaves a backup gpt partition table.
Windows only boots from gpt drives with UEFI, so if you want to convert to gpt partitioning, you have to reinstall Windows in UEFI boot mode, if your hardware is also UEFI capable.

You can remove backup gpt partition table with fixparts. The Linux will  see it as MBR without issue.
FixParts is the easiest way to remove the stray GPT data. GPT fdisk (gdisk or sgdisk) can do it, but the procedure's a bit more involved.

http://www.rodsbooks.com/fixparts/

But it also looks like you have used all 4 primary partitions. You have to convert one primary to an extended partition, so you can create as many logical partitions as you want inside the extended. Do not create partitions with Windows as it will convert to dynamic partitions which does not work with Linux at all.

My laptop already has 4 primary partitions: how can I install Ubuntu?

My disk already has 4 primary partitions, how can I install Ubuntu?


link error with cpp-7 version 7.5.0 asan

I solved my problem by uninstalling cpp-7, then re-installing it.
First I ran apt-get --purge remove cpp-7; then I followed instructions for installing gcc.