Combine two commands into a single command

You indicated that you want to be able to run

text2file name-of-scanned-document
to have the effect of the two commands:
convert Tess.jpg tess.tif
tesseract tess.tif tess

In that case, you're looking to write a simple script, or to define a shell function. You mentioned that you thought what you wrote might contain %1. That's how a Windows (and before that, DOS) batch file would use the first command-line argument passed to it, but in Bash the positional parameters are instead ${1}, ${2}, and so forth1 (with the { } braces optional below ${10}). So you would write $1, not %1.

To make a shell script, create a file with the name you want for the command (text2file), with these contents:
#!/bin/bash
convert "$1.jpg" "$1.tiff"
tesseract "$1.tiff" "$1"

$1 expands to the first command-line argument passed to the script. This may contain spaces, just make sure to enclose it in quotes when you run the script. The double quotes around $1 in the script itself are to prevent undesired word splitting and globbing (which are further expansions that otherwise would be performed on the result of parameter expansion).
If you want the tesseract command to run only if convert succeeds, then you can place a && after the convert command:
#!/bin/bash
convert "$1.jpg" "$1.tiff" &&
tesseract "$1.tiff" "$1"

&& must not be preceded by a newline, but it may be followed by one if you like, or you can remove the newline just after it as shown in Giiba's answer. That is, the technique shown there is entirely correct (though it's not presented in the context of writing a script).
(&& one of the two most popular ways to achieve that. The other is set -e, which in this case would work fine but which can be remarkably non-intuitive in some of its effects.)
Then mark your script executable by running:
chmod +x text2file

You can then run the script using a path to it that contains at least one /. So from the same directory in which the script resides:
./text2file name-of-scanned-document
To be able to run it as text2file, and from anywhere, put the file in a directory listed in your $PATH environment variable. I recommend ~/bin (i.e., the bin directory located directly inside your home directory). If this directory doesn't exist, you can create it. On all subsequent logins, it will be added to $PATH automatically, since ~/.profile contains code that checks if ~/bin exists and prepends it to $PATH if it does.
Then you would run:
text2file name-of-scanned-document
For the example you gave, that's just:
text2file tess

$1 expands to tess when it is run that way, so you should not (and in fact must not) write a file-type suffix after tess when you run it. Here's an example of how you'd run it when the name, two words, contains whitespace:
text2file 'two words'

If instead you'd prefer to implement text2file as a shell function, you can put this definition at the bottom of ~/.bashrc:
text2file() {
    convert "$1.jpg" "$1.tiff"
    tesseract "$1.tiff" "$1"
}

Or:
text2file() {
    convert "$1.jpg" "$1.tiff" &&
    tesseract "$1.tiff" "$1"
}

Then in all your subsequently started interactive Bash shells, it will be available. If you want to use it in a shell that's already started, you could source ~/.bashrc (. ~/.bashrc), or you could directly run that function definition (i.e., the code shown above) in the shell.
When using an interactive Bash shell, you would run it exactly the same way as if you wrote it as a script and put it in a directory in your $PATH.

1 Technically the positional parameters are themselves 1 (not $1 or ${1}), 2 (not $2 or ${2}), and so forth. Likewise, you technically have no $PATH environment variable, as the environment variable is called PATH. Unlike in some languages (e.g., Perl, PowerShell), the leading $ (and subsequent enclosing { }, if present) is not really part of a parameter or variable name, but is instead the syntax used to trigger parameter expansion.


changing ownership of usr, resulting on graphics and sudo not working anymore

In recovery mode the root partition has been mounted read-only.

Either remedy this (from recovery mode, after booting), by using

mount -o rw,remount /

Or alternatively the easiest way to fix this may be to boot from a live cd/usb and mount the drives.

Either way once you've succeeded in mounting / in rw-mode, you can change the ownership as you already attempted.

Also don't forget to change the group too:

chown -hR root:root /usr


Printing from inside a Windows 7 VM via Virtualbox 4.3 with 12.04 LTS

Use the older version of Virtual box VirtualBox-4.2.16-86992-Win.exe as the newer version fails when trying to install 12.04 LTS.  I learned the hard way NOT to get the upgrade to 4.3 (which does not work at all).  I guess I could upload this version somewhere on Ubuntu or send a copy to you via email 10megs, not big. good luck finding an older version of virtual box, pre 4.3  C.C.


zsh/fish filename autocompletion in bash

bind 'set show-all-if-ambiguous on'
bind 'TAB:menu-complete'

will get you close.  The only difference is it automatically appends the first result to your command, which is pretty annoying if the directory is fairly full (and there aren't any pretty colors).

source: Bash autocomplete like zsh


Why do I have two drivers for my display?

You have a hybrid GPU (nvidia and intel) you can use bumbblebee to tak advantage of this, by default it uses the intel but the usage section will show you how to use the Nvidia

Important first step

Remove the driver you installed like this, a diffrent one will be installed later

sudo apt-get purge nvidia-current

This should cover any Bumblebee / optiumus questions you have, but for more information you can see the wiki https://wiki.ubuntu.com/Bumblebee

Install on 12.04

You need to open your terminal and enter the commands below.

If on 12.04.3, replace linux-headers-generic with linux-headers-generic-lts-raring

Enable the Universe and Multiverse repositories - you need to do this to allow the bumblebee and nvidia packages respectively to be installed.

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update

Install Bumblebee using the default proprietary nvidia driver for 12.04 - 13.04 :

sudo apt-get install bumblebee bumblebee-nvidia virtualgl linux-headers-generic

Reboot

Basic Setup for 13.10 and later

You need to open your terminal and enter the commands below.

sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic

Reboot

Advanced Setups

For advanced users, if you do not want to use the proprietary nvidia driver or 32-bit libraries (for example, if you are only interested in power savings), you can do your custom installation.

Minimal setup :

sudo apt-get install --no-install-recommends bumblebee

Depending on your needs, add to this line:

bumblebee-nvidia: proprietary nvidia driver support (if installed, become default over nouveau)

virtualgl: VirtualGL as backend

virtualgl-libs-ia32: 32bit support for VirtualGL on 64bit system, necessary to run 32bit app through optirun

primus: primus/primusrun as backend (virtualgl Stays default, you need to run optirun -b primus )

primus-libs-ia32: 32bit support for primus/primurun on 64bit system, necessary to run 32bit app through optirun

Usage

To run your application with the discrete NVIDIA card run in the terminal:

optirun [options] <application> [application-parameters]

Example:

optirun firefox

For a list of options for optirun run:

optirun --help

Normally you do not use optirun for your window manager, installations or other non graphic heavy demanding programs. The optirun command is mainly used for graphic demanding programs or for games.

Power Management

A primary goal of this project is to not only enable use of the discrete GPU for rendering, but also to enable smart power management of the dGPU when it's not in use. We're using either bbswitch (a module) or vga_switcheroo (kernel module, experimental) to do this in Bumblebee.

Since Bumblebee 3.0, this feature is enabled by default, using bbswitch. This allow automatic power management, without any configuration needs.

If Power Management doesn't work on your laptop, please go to this Power Management (PM) page and help to improve Bumblebee.


Such programs are sometimes called "Launchers" or "Program launchers" or "Application launchers". Some more launchers are Kupfer, Albert, Ulauncher. Rofi is a launcher that initially expanded on dmenu, but that, besides being able to substitute for the latter, has a lot possibilities on its own.

You will probably have more hits and inspiration looking on the internet for "Linux application launchers", where you will find a lot of "top 5" blogs. You can then search by name in Ubuntu Software or a package manager (e.g. Synaptic) to see whether the application is available there. Some are not available in the software repositories of Ubuntu, and can only be installed in alternative (less secure) ways.


tmp dir 100% full only 56k out of 1MB being used

Um, considering that the size of the partition that you have given yourself for /tmp is only 1MB, I think you're lucky your system runs at all.

You should probably consider enlargin the /tmp partition, or allowing the OS to use space in the root partition for /tmp.  This last you can accomplish be commenting out whatever you have in /etc/fstab that is mounting your /tmp partition.


How to disable Java in the browser for all users?

You can run the ControlPanel as an Administrator by:

sudo /home/marvin/jdk1.8.0_66/bin/ControlPanel

But the right way to disable java in a browser is to disable java plugin in a browser itself.

See THIS LINK


How can I connect to wireless network using a wireless dongle in Ubuntu 11.10?

I suggest you to try booting on a ubuntu 12.04 cd and test your dongle, there many fixes and improvement concerning hardware recognition, if it works you will just have to update your system to 12.04.

regards


Since the problem occurs with two different versions of Ubuntu and also with Windows XP, I suspect the router setup. How is the wireless configured? WPA2 and what encryption? TKIP or AES? AES is preferred. If possible, do not use mixed-mode WPA and WPA2. Is it capable of N speeds? Have you tried resetting the wireless to B and G only? Is it capable of both 2.4 Ghz and 5 Ghz bands? Have you tried disabling the 5 Ghz band?


Why some packages in xenial have a higher version number than yakkety

Since .deb files are version specific, it is probably because the developer hasn't compiled their code for your version of Ubuntu. It will probably be updated soon if it's a popular repository.
Good Luck!
- The Exp3rt


Apparmor initialization failed in ubuntu 17.10

I got the exact same error on my three Ubuntu 17.10 systems. What seems to happen is that the apparmor startup script returns an error because of an error in policy files from the two packages "webbrowser-app" and "mediascanner2.0". Policy files from these two packages tries to include files from non existing directories. This is an error in the packaging of these two packages. As can be seen from the output of "sudo aa-status" the error only affects the policies provided by these two packages.
A workaround is to install the package "apparmor-easyprof-ubuntu" which provides the missing directories. After installing this package the error disappeared on my systems.
sudo apt install apparmor-easyprof # Ubuntu >= 18.04)

or:
sudo apt install apparmor-easyprof-ubuntu # Ubuntu < 18.04

Reference:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1554803


Intel® Centrino® Wireless-N 1000 - Wifi connection is very slow - how do I configure or fix it?

Sorry, guys! My mistake.

By executing: $ nmcli dev wifi list

1. I've realized it was a router configuration.

It was only 802.11b (limited to 11mbps).

I've changed to 802.11n (up to 130mbps).

2. I've also realized that

There is a bug on Intel Support for Linux Page. The Intel® Centrino® Wireless-N 1000 firmware versions are switched between Kernel versions 3.2+ and 2.6.30+.

Then I've followed this steps:

$ tar -xvzf iwlwifi-1000-ucode-39.31.5.1.tgz
$ cd iwlwifi-1000-ucode-39.31.5.1/
$ sudo cp iwlwifi-1000-5.ucode /lib/firmware/


This is the answer by EugeneSmoliy on github.

  Run this on your key to convert it to RSA private key. Helped me.
  ssh-keygen -p -m PEM -f ~/.ssh/id_rsa

Taken directly from here: https://github.com/dbeaver/dbeaver/issues/5845#issuecomment-503481448


delete process started by mistake and stopped. What happened to the files?

Delete doesn't corrupt file content. It just removes the meta info so this is a all or none process. If you know the count of files check if anything is missing.

There is a chance (since target was a huge folder) that nothing is lost because the process needs a recursive search and identifying which files should be removed and with a huge folder that process takes some time.


can i avoid arrow keys and use any other shortcut that might be easy to access from home keys

I use 3rd layer symbols and assign arrows to letters hjkl
Install gnome-tweaks tool
Inside gnome-tweaks go to Additional Layout Options and choose Caps Look as a key to choose the 3rd level.
Then open your terminal and go to /usr/share/X11/xkb/symbols/
There are all keyboard layouts store on your computer
Make a backup of your layout
cp us us_old
Modify file as root
sudo nano us
Third values in arrays are your keys:
key <AC01> {[a,A,Home]};
key <AC02> {[s,S,BackSpace]};
key <AC03> {[d,D,Delete]};
key <AC04> {[f,F,End]};
key <AC05> {[g,G]};
key <AC06> {[h,H,Left]};
key <AC07> {[j,J,Down]};
key <AC08> {[k,K,Up]};
key <AC09> {[l,L,Right]};


Eclipse: tooltip quickfix suggestions are not displaying correctly in Ubuntu

This is a bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=393602

There is a workaround:
I changed the font in Eclipse

Go to preferences-->general-->appearance-->Colors and Fonts

Change:
'Dialog Font' and 'Javadoc display font'

To monospace 10 (Default is Ubuntu 11)

That fixed this for me.

Example image:


Why does the current directory not change after executing script?

because you only tell python3 to run the .py script from a directory and you would have to cd there first
(e.g. in the script :) cd $(dirname ~/myfolder/myscript.py) ;python3 myscript.py

you can get the location of your python script in python with:
print('abspath:     ', os.path.abspath(__file__))
print('abs dirname: ', os.path.dirname(os.path.abspath(__file__)))

https://www.tutorialspoint.com/python3/os_getcwd.htm


Installing GTK dev environment with aptitude

There are two versions of GTK+, gtk+2 and gtk+3. You should choose or at least prefer gtk+3, as the transition has began some time ago.

There are some examples for gtk3 here: http://developer.gnome.org/gtk3/3.2/gtk-getting-started.html

#include <gtk/gtk.h>

int
main (int   argc,
char *argv[])
{
  GtkWidget *window;

  gtk_init (&argc, &argv);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

  g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);

  gtk_widget_show (window);

  gtk_main ();

  return 0;
}

To find which package provides a file, head to http://packages.ubuntu.com and scroll down to "Search the contents of packages". Enter the file name as keyword and search for the file.

gtk.h is provided by two packages:

  /usr/include/gtk-2.0/gtk/gtk.h    libgtk2.0-dev

  /usr/include/gtk-3.0/gtk/gtk.h    libgtk-3-dev

Install libgtk-3-dev for gtk+3.

Finally, mind the command you execute (see the examples from the link I mentioned above):

gcc `pkg-config --cflags gtk+-3.0` -o window-default window-default.c `pkg-config --libs gtk+-3.0`

Keep the order of the arguments the same. You may want to add -Wall to show any errors that need to be fixed:

gcc `pkg-config --cflags gtk+-3.0` -o window-default window-default.c -Wall `pkg-config --libs gtk+-3.0`

If you're still facing problems, show/attach the command you use and the output provided to your question above.


Take it easy, Ubuntu has no way to mess up your laptop, if you install it with a little bit of attention. This page: https://help.ubuntu.com/community/UEFI have everything that you need to installing Ubuntu in UEFI mode.


Comments helped figure it out. Upstart was enabled instead of systemd, followed steps mentioned here to revert it back.

apt-get install systemd-sysv ubuntu-standard


There's an APT command build-dep which will install all dependencies needed for building standard Ubuntu php packages, e.g.:

apt-get build-dep php5

If that doesn't work you need to enable sources (deb-src) in your APT sources either via a graphical interface or by editing /etc/apt/sources.list.

If you need to build all modules you will also need to cherry-pick individual modules from universe (f.e. php5-imap).


Python 3 is crashing in Ubuntu 17.10 when using Firefox v57

That actually suggests it was Apport that crashed. Apport is Ubuntu's crash-handler and bug reporter... So that's awkward. It would have been running to report another bug. File a bug the next time this pops up (or keep #1733581 if that's yours) but this is likely just one of those things that happens. I doubt we can help much if this was a one-off. It's not a bad report, just an odd one.

If this keeps happening, perhaps there's an incomplete report that's stuck in the system because Apport can't parse it. You could run the following:

/usr/bin/python3 -c 'import apport; print(apport.fileutils.get_new_system_reports())'

And that would likely give you the location of the pending reports. You could probably safely delete those reports but just double-check by leaving a comment with what the above finds first.

If you can't tell, there's a lot of "if" and "maybe" and "probably" in this post. It's hard to debug remotely. But this has nothing to do with Python itself, or Firefox.


Ubuntu one instruction for syncing of large ammount of data

Just found out that server has folder with same subfolders
But i still do not understand how they were created on the server in the first place.


Strange terminal navigation when logged in as new user

That is because you used useradd instead off adduser to make the new user. On Ubuntu by default useradd sets the user's default shell to /bin/sh (dash), while adduser sets it to /bin/bash. And /bin/sh doesn't have readline support, hence the unexpected behaviour with the up arrow.

You just have to switch to bash by typing in bash.

To change the new user's default shell to bash use:

chsh -s /bin/bash

while logged in as the new user (admin).


problem with sources list, apt-get not working properly

Remove the useless files

sudo rm /etc/apt/*.save
sudo rm /etc/apt/sources.list.d/*.save

Create a new sources.list

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

Refresh and upgrade

sudo apt-get update
sudo apt-get dist-upgrade


How to pass arguments to functions while executing a python script from terminal?

You can also use the sys module. Here is an example :

import sys

first_arg = sys.argv[1]
second_arg = sys.argv[2]

def greetings(word1=first_arg, word2=second_arg):
    print("{} {}".format(word1, word2))

if __name__ == "__main__":
    greetings()
    greetings("Bonjour", "monde")

It has the behavior your are looking for :

$ python parse_args.py Hello world
Hello world
Bonjour monde


How can I find the command history if a user used a space before the command?

There is no way to find out now. You probably have a setting in ~/.bashrc that intentionally hides all commands prepending with a space from history. To change this behaviour in the future, you can edit ~/.bashrc. Look for this line

HISTCONTROL=ignoredups:ignorespace

and change it to

HISTCONTROL=ignoredups


How do I access a console TTY on a MacBook?


Ubuntu 18.04 freezing when network use high

Ok so while writing the above question I had a thought that I had added the new SSD into my build without taking anything out (I have a few backup HDD's still in there). Unplugging these HDD's fixed the problem so I suspect it was a PSU issue.


telnet to godaddy email server on ubuntu desktop

port 993 is IMAP over SSL, apparently godaddy does not accept this via telnet. The solution is to use the default IMAP port 143, and that works:

telnet imap.secureserver.net 143
Trying 173.201.193.71...
Connected to imap.where.secureserver.net.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UNSELECT STARTTLS ID CHILDREN NAMESPACE IDLE] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc.  See COPYING for distribution information.

And then you can log in:

a01 login myemail mypassword
a01 OK LOGIN Full IMAP support is enabled


asus bios utility: the system cannot find any bootable devices

I finally solved the problem and wanted to share here:

Launch CSM support (under boot menu): must be enabled.
SATA configuration (under advanced menu): muest be in AHCI mode.


As mondjunge said, first backup your data, either using, a live CD or if you are using windows, you can use, "Diskinternals linux reader" free application to navigate linux partitions.

For the issue relating to booting of ubunut, you could fix with "Boot-Repair" follow the link below:

Auto Boot repair

Hope it helps.


Add user after skipping first time setup

After login as root you should use the command adduser <username>, that will create a new user, home directory for it, etc. Alternatively when the user is already created you can create its home directory manually:

mkdir /home/<username>               # Make the user's home directory
cp /etc/skel/* /home/<username>/     # Copy the content of the skeletal dirirectory
chown -R <username>:<username> /home/<username> # Change the ownership

Finally you must add this user to the sudo group, thus it will have administrator's (root's) privileges - you can use either: usermod -a -G sudo <username> or adduser <username> sudo.


Laptop shuts down upon waking up from suspend

Here is what I've found on bugs.launchpad.net. Seems like bugs 3 and bugs 4 are already reported here:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel


Have you activated proprietary drivers for your graphics card ?

Settings - additional drivers - are the driver for your card activated if not, then most likely you won't have 3d support so go turn it on  ;)

Edit:
file:///home/lucas/Desktop/Screenshot.png - this is a local link - people in here won't be able to see that. If you want to show pictures, then upload it on the web, and link to it here ;)


Indian languages not suppoted in Ubuntu 16.04?

Use the Language Support in System Settings:

Click on the 'Install/Remove Languages' button:

Click the checkbox next to the language of your choice and click 'Apply'.


How were you able to install an old version of samba? I am having a similar issue but need to revert to an old version since this new version also broke my shares.

Found an answer:

  apt-get install samba=2:4.1.6+dfsg-1ubuntu2
  samba-common=2:4.1.6+dfsg-1ubuntu2 samba-libs=2:4.1.6+dfsg-1ubuntu2
  samba-common-bin=2:4.1.6+dfsg-1ubuntu2
  samba-dsdb-modules=2:4.1.6+dfsg-1ubuntu2
  python-samba=2:4.1.6+dfsg-1ubuntu2 libldb1=1:1.1.16-1
  python-ldb=1:1.1.16-1


Ubuntu 21.04 remove trash, user and drive icon from desktop?

Thanks to @Levente's comment I found out the solution.
There is an application called "Extensions" which lets you manage the Gnome Extensions. You can just disable the pre-installed extension called "Desktop Icons NG (DING)" and the icons will disappear:


ZTE AC2738 reliance netconnect is not able to connect

I could connect.... No issues.

Just follow the complete guideline on http://practicalubuntu.blogspot.com/2013/11/relience-netconnect-usb-modem-on-ubuntu.html


How i can fix network adapter issue on ubuntu 20.04?

I recommend to use Kernel 5.7.4 or higher for using the Intel AX200, older kernel versions don't seem to work well but with that version this network card works decently well, at least on Ubuntu 20.04.
sudo su
cd /tmp/

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8.3/amd64/linux-headers-5.8.3-050803-generic_5.8.3-050803.202008211236_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8.3/amd64/linux-headers-5.8.3-050803_5.8.3-050803.202008211236_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8.3/amd64/linux-image-unsigned-5.8.3-050803-generic_5.8.3-050803.202008211236_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8.3/amd64/linux-modules-5.8.3-050803-generic_5.8.3-050803.202008211236_amd64.deb
dpkg -i *.deb
Uninstall Linux Kernel 5.8:
Restart your machine and select boot with the previous kernel in boot menu ‘Grub2 -> Advanced Option for Ubuntu’. Then run command to remove Linux Kernel 5.8:
sudo dpkg --purge linux-image-unsigned-5.8.3-050803-generic_5.8.3-050803.202008211236_amd64.deb
or
sudo apt purge linux-image-unsigned-5.8.3-050803-generic_5.8.3-050803.202008211236_amd64.deb


Thunderbird keeps asking for password even if the password is correct

Even if you delete thunderbird, I do believe that the user profiles still remain in your home directory
#/home/username/.thunderbird

Inside of this directory is going to be a directory structure like this.

total 16
-rw-r--r--  1 user user  335 2011-09-06 10:24 appreg
drwx------  3 user user 4096 2012-02-21 09:22 Crash Reports
drwx------ 10 user user 4096 2012-03-14 18:52 ekfsczpd.default
-rw-r--r--  1 user user   94 2011-09-06 10:24 profiles.ini

The directory listed above in BOLD is your user profile. (Assuming you only have 1 email account configured in thunderbird.)
If you do only have one user account, move the profile out of the way.
Be very careful with this command.
#mv ekfsczpd.default ekfsczpd.bak

This will now force your thunderbird account to essentially recreate itself during the next launch. You will have to re-enter your email address / username /password / SMTP or IMAP account info.
If that fixes the problem then great. Next step is to recover your mailboxes, address list , filters etc...
Close out thunderbird, navigate back to your /home/user/.thunderbird directory.
You should now see a new .default directory, copy all of your mailbox folders from your old profile to your new profile.
#cp -R /home/user/.thunderbird/ekfsczpd.bak/*Mail* /home/user/.thunderbird/newdirectoryname.default

This should now copy over your Mail and IMAP mail into your new profile, essentially importing all your mail and message rules.
This should be what you need to situate yourself. You can copy additional config files over for example, the prefs.js file, but I wouldn't recommend it.


Why is the IP "92.242.140.21" connecting to one of my ports? Is it Malware?

A small search will reveal that this IP belongs to Barefruit Ltd.

From Wikipedia:

  Barefruit works with Internet Service Providers (ISPs) and major
  portals to use a range of software solutions which modify the ISPs DNS
  service such as the BIND software and also a specialist proxy solution
  known as a "Frootbox" to capture the errors and redirect its clients
  to navigation pages that may contain sponsored listings and
  algorithmic results. If a user clicks on a sponsored link, Barefruit
  and the ISP share the revenue.

So you can chillax - these guys work with your Internet Service Provider.

If you still don't feel happy about these guys, set up a firewall and use iptables to block one ip or a group

Best of luck !


Try this: http://markitdown.medusis.com/. This should give you the expected results.


How to prevent a cronjob from executing if another instance is already running?

You can use flock for this.
flock is a little command line tool to manage locks. It works by wrapping a lock around the execution of a command and stores the state of the lock in a lock file.

You probably want to create a cron job based on a command like the following:

flock -n /tmp/ytdlcron.lock <your youtube dl command>

flock by default creates an exclusive lock (meaning only one command referencing a specific lockfile will run) and the -n flag causes subsequent jobs to fail until finished (rather the default which is to wait, would could leave you with lots of jobs backed up waiting to run)


node:/usr/lib64/libstdc++.so.6:version GLIBCXX_3.4.14, GLIBCXX_3.4.18, CXXABI_1.3.5, GLIBCXX_3.4.15, GLIBC_2.17, GLIBC_2.16 and GLIBC_2.14 not found

My error now fixed, I have installed nvm from here and then when i run

nvm -v

Issue remains same as i said in my question
After that doing this from stack post it got fixed
But same error came when i gave exit and run same command...
So i followed some steps from here and i run below commands
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

Even though i got same error on some points while run version change commands.
So after taught version may be problem.
Then i ran to set default version to
nvm -ls # to list versions we installed(here also mention default and LTS versions)

nvm alias default 10.5.0

If no version 10.5.0, we should install.
nvm install 10.5.0

And then excute above export command... Then its working fine


I'd get a flashdrive, seeing there's no other options, than those two (As far as I know).

A flashdrive of the right size, is only a few bucks. And taking into consideration that Ubuntu is free. I'd get one, and install Ubuntu 12.10.


OK, I figured it out.

First try creating an xorg config using the following command:

sudo nvidia-xconfig

this will create a new xorg config at /etc/X11/xorg.conf.

then change the device section to look something like below:

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:2:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device1"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

IMPORTANT: make sure your monitor is connected to the second GPU. reboot and voila!


how to prevent kleopatra (or other openpgp tools) from storing your key passphrases

Okay, after quite a bit of digging, I have discovered that the gnome-keyring is the culprit for caching the passwords. The solution is found here

https://confluence.clazzes.org/display/KH/Preventing+Gnome-Keyring+from+caching+GPG+keys+forever


Overheating laptop Packardbell LS44HR on Linux

I had the same problem with my Lenovo IdeaPad Y560p, also with AMD graphic card.

I solved this by using GNOME2. But now that GNOME2 is gone, I'm using a fork of it called MATE. I've been using Linux Mint with MATE for the last 3 weeks, and I'm VERY happy. Linux Mint is based on Ubuntu, that is why I choose it. I bad experiences with Unity and GNOME3.

You can try installing MATE in the operating system you have. No need no install Linux Mint. More Info of MATE and how to install.


How to draw on mouse click in Gtk.DrawingArea using pygi

What you should do is set variables that are drawn  in the draw callback. If you want it to redraw itself you can use this to force it to:

drawing_area.queue_draw()

Edit: Here is an example of code you may use:

clicks = [];

def on_drawing_area_button_press(self, widget, event):
    print "Mouse clicked... at ", event.x, ", ", event.y
    clicks.append([event.x, event.y])
    drawing_area.queue_draw()

    return True

def on_drawing_area_draw(self, drawing_area, cairo_context):
    cairo_context.move_to(50, 50)
    for point in clicks
        cairo_context.line_to(point[0], point[1])

    cairo_context.stroke()

    return False


How do I upgrade python-scipy to something newer than 0.7.0?

sudo apt-get install libatlas-base-dev gfortran python-pip

then

sudo pip install scipy

or, if you already have another version of scipy installed

sudo pip install --upgrade scipy


Do I have a broken Ubuntu 13.04 installation?

I don't know that I have a "fix", but here are some things to try or consider:

1.) Did you check the md5 sum of the 64-bit .iso you downloaded? (http://releases.ubuntu.com/raring/MD5SUMS) A corrupted download or a compromised HDD can result in broken installation media. (Speaking of which, using the Disk Utility, is your office PC's HDD SMART Data good?)

BTW, you can check the md5 of a file by opening a terminal (Ctrl+alt+T), change directory to the folder of the file (type: cd path/of/file/), then type md5sum filename.iso. (Insert the correct folder path and filename as needed, of course.) You can copy, paste, and compare the result in a text file with the md5 provided by Ubuntu/Canonical. I keep all of my .iso files alongside such a .txt file.

2.)Assuming the .iso that you're using for your install medium (CD-R/DVD/USB) checks out, can you find updates using the live environment (i.e., running from the installation medium)? If not, you may have a faulty USB, disc burner, CD-R, etc. There used to be a "check disc integrity" feature after booting an install disc, but I don't know if it's still available, or if it's automatic now.

3.) If it does access updates in the live environment, you may be best off reinstalling your office system. I've not reinstalled a new Ubuntu system, but I presume the old behavior is still true: installing over the same partition without formatting will clear and replace system files, but not /home personal files. Please VERIFY this and BACKUP your files [to another location] if you have anything that you cannot lose.

I hope this is helpful.


In order to find out why it is hanging you could remove the "quiet splash" flags from grub2. This should allow you to see where it jams.

Run

sudo nano -w /etc/default/grub

then change the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT=""

Then save, and

sudo update-grub

Now when you boot/shutdown the splash screen will be gone and you'll get lots of info as to whats going on.


How to test a newly created /etc/init/XX.conf file?

start XX

stop XX

Take a look at upstart manual.


What version of Ubuntu are you installing? Is this a brand new computer?

When installing Ubuntu on the newest computer hardware, unless you install the latest Linux kernerl available for Ubuntu, it is possible that the existing kernel is not fully optimized for your new hardware, and will not always work well with the new hardware. The kernel installed with Ubuntu 12.04 LTS (version 3.2), although supported and updated, is not as recent or updated as the kerner installed natively with Ubuntu 14.04 LTS (version 3.5).

Fortunately you can easily upgrade just to the new kernel and see how it works. If the problem is sovled, all is fine. If not, or if you would like to go back to use the previous kernel, you can always restart, bring the GRUB menu (hold the shift key down during system boot) and select the previous kernel.

The simple and easy way to install the latest kernel (the one from Ubuntu 14.04) even on Ubuntu 12.04 is by:

sudo apt-get install linux-generic-lts-quantal

Then, restart and see how it works.
Hope that helps!


Single administrator computer for systems with only regular account on network

To manage multiple machines from a central computer, you could try learning a system management platform such as Puppet. It allows you to manage multiple machines (puppets) from one main machine (puppetmaster). Depending on your scenario it might be a bit overkill, but it is an excellent tool to manage many machines from a central point of control. It also makes it very easy to set up new machines (or re-install the old ones), as you can pull all configuration, package lists etc from the server.

Here is a link to a ubuntu how-to guide to install & test puppetmaster.


installing andorid apps in BQ Aquaris E5 HD

Ubuntu touch is neither android nor iOS. Therefore, you cannot install android and iOS apps. Apps for Ubuntu touch can be installed through the ubuntu store.

Regarding firefox:
There is no firefox app for Ubuntu touch. You have to use the default browser or install liri, an alternative web browser.

For developing apps, take a look at the Ubuntu developer page.


How do I resolve a "Cannot open shared object file libudev.so.0" error?

To fix, I linked libudev.so.1 to libudev.so.0:

sudo ln -sf /lib/$(arch)-linux-gnu/libudev.so.1 /lib/$(arch)-linux-gnu/libudev.so.0


I emailed mullvad support and they suggested that I just use openvpn, i.e. same response as Coffee_Mug in:
Mullvad vpn won't connect on ubuntu 18.04

On one computer, I used the old mulvad client via "env MULLVAD_USE_GTK3=yes mullvad", but on the other I got the same error as amicose in
Mullvad VPN Client won't start on 18.04

For that second computer, I gave up trying to figure out why it wouldn't work and just set up openvpn to connect to one server.


Open google-chrome located in /usr/bin with 'gedit', 'kate' or your favorite text editor:

sudo gedit /usr/bin/google-chrome

Add --user-data-dir (without the quotes) at the very end of the file. Mine looks like this:

exec -a "$0" "$HERE/chrome" "$@" --user-data-dir

Save, close and voilà, you're done. You can open chrome as root now.


How can I synchronize my user settings between my desktop and my live USB?

Apps settings are saved on hidden files in user home. Usually in ".config".

Use "la" command to see hidden files.

I will test copy ".config" and ".local" to your USB:

cp -Rf ~/.config ~/.local /path-to-USB/home/user

Maybe you will need more files.

When you finish your script, you can use udev to copy files when USB is connected:

Add a new file called: /etc/udev/rules.d/96-backupPendrives.rules and write in it:

KERNEL=="sd*", ATTRS{vendor}=="You pendrive vendor", ATTRS{model}=="your pendrive model", ATTRS{serial}=="123465789", RUN+="/pathto/script"

Use "udevadm info -a -n sdb" to find your USB data. If "udevadm" doesn't work, change sdb by sdc or sdd,...

You can run scripts at session logout in lightdm:

Where do I place a logout script for LightDM?


This is more a programming than ubuntu question so it should probably be in stack overflow.

However your problem is probably errors not being caught because you are asking for STDOUT and errors are being output to STDERR.

There are two possible solutions.

The first is to use a php function to capture STDERR. I don't know enough php to answer that.

The second is to direct STDERR into STDOUT. Run

nginx -t 2>&1

This tells the shell to move everything written to STDERR to STDOUT instead.

For more info on file streams and stderr in particular: http://en.wikipedia.org/wiki/Standard_streams#Standard_error_.28stderr.29


Is 15.10 good for Asus Zenbook UX32VD and Nvidia GPU?

Everything should be fine. I don't see anything special, so there should be no problem. Like others have said, your SSD is a little small, but Ubuntu can actually be configured to boot Ubuntu off of the SSD and have all your data on the 500GB drive.

Since you do have NVIDIA, I recommend installing Ubuntu 15.10. NVIDIA can be troublesome on Ubuntu, so it's usually best to have the newest version of Ubuntu. You will pretty much have to update to the next version of Ubuntu every six months, but that's an easy process. If you really don't want to upgrade every six months, and would like that frequency to be decreased to every two years, go with 14.04.

If you want to install Ubuntu on the SSD and make sure all your data is on the HDD, here's the process.

Download Rufus if you're on Windows and use it to burn the Ubuntu ISO you downloaded (Get 14.04 or 15.10 from here) to a USB stick.
Reboot your computer and boot from the USB stick.
Choose the Try Before Installing option when prompted.
Search for and open GParted.
Use GParted to format your SSD as ext4 (this will wipe any data on the drive so make sure your stuff is backed up).
Go to the dropdown in the top right and select your 500GB drive.
If you have any partitions on it, use the Move/Resize tool to make it smaller. If you can, free up at least 150GB for Ubuntu.
Make a new partition in that free space, formatted as ext4.
Click the Apply button and let the changes be made.
Now, open the Install Ubuntu app on the desktop (you can close GParted).
Click through until you are either prompted with options on how to install Ubuntu, or are met with a partition selection screen.

If you get the options, choose Something Else...
If you get the partition screen, continue on.

On the partition selection screen, right click the SSD and click Properties.
As the mountpoint, choose /. Also select the Format option and select ext4 and the filesystem type. Click Done.
Go into Properties of the partition you created on the 500GB drive and make the mountpoint /home. You do not need to format this partition again.
Click Continue in the setup and Ubuntu should install.

NOTE: You may have a problem getting into setup, as you have NVIDIA. You might be greeted with a screen of scrolling text with the word Nouveau among other stuff. If this happens, follow the steps below.

Reboot and boot back into the USB stick.
On the selection screen, highlight the Try Before Install option, but don't hit Enter. Instead, press e.
Use your arrow keys to bring the cursor to the end of the line beginning with linux.
Press SPACE and type nouveau.modeset=0.
Press F10 to boot into setup and follow the steps above.

Once you have Ubuntu installed and running, you may notice that the NVIDIA card isn't being used (low performance in games/HD videos). To fix this, open the Additional Drivers app and select a proprietary NVIDIA driver. I recommend against using the -updates option(s), as these versions are experimental and not fully tested, but you're welcome to try. Instead, choose the latest non -updates version. Click the Apply button and enter your password. Reboot and you will have NVIDIA be the default card for everything.

EDIT: Another note.

If your computer came with Windows 8 or later, you may need to turn Secure Boot off. It's not probable, but possible that it will get in the way. If you want turn it off, the setting will be in your BIOS settings.

That should be it. Your computer should run Ubuntu without issue. If you do have a problem, come back and ask here on Ask Ubuntu (do a little research first, as your question may already have an answer).

Any questions about my answer: just comment and I'll do my best to help :-).


Finding all .ODTs, zipping them and bringing them to the desktop

I'd like to know if it's possible to put all files in a directory (instead of zipping them) and then bring the directory to the desktop.

You sure can. Use any method you wish to copy them to a destination directory, then move the directory to ~/Desktop , either with a GUI File Manager, or with the shell command

mv  -v ~/DIRECTORYWHEREVERTHEFILESARE/* ~/Desktop/

Since ODT files are already zip-compressed, this might save some processing time, and the size difference between a folder containing ODT files and a zip file of ODT files is small.

Now, to create a folder under ~Desktop named destination, then search for each file under /home and move each, a possible solution would be

cd ~/Desktop && mkdir destination && find ~/ -type f -iname  "*.odt" -exec mv {} ~/Desktop/destination \;


Low volume in mono sound output in Ubuntu

Try to check the field "Allow louder than 100%". Look at the image that you posted above, there is an option in the settings for sound, in GUI.


"Failed to apply network settings" right after boot

It seems like I, by mistake - naturally (*blushing*), did interrupt my update process. The reason why I think so is that I tried to sudo apt-get on some other packages when I got the following error message in the terminal:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

Following the very instructions given in the message (i.e. issuing the sudo dpkg --configure -a command) solved my problem. The error messages, "Failed to apply..." and "E: dpkg was interrupted..." are gone and my system is back to a happy state, as am I.


Lenovo t540p fan pulses from time to time (Ubuntu 14.04)

My problem was solved by editing the BIOS Power Management settings.
On the menu item: Power > Adaptive Thermal Management, I've changed these settings to the values shown below:

Scheme for AC: Balanced
Scheme for Battery: Balanced

I chose balanced instead of Maximum performance for both AC adapter and Battery.

After this, I re-started the system and the problem was solved.

To enter the BIOS, pressed Enter during startup.

Now the Fan stays around 2000 with normal usage and is not noisy. When the CPU is idle or lightly used the fan speed can drop to 0 rpm.
When you activate any program the Fan goes up to 2000 rpm or more (depending on the CPU usage of the application) and then stays at this level.

One tip is to install lm-sensor and psensor to monitor your fan speed and CPU temperature.


You can download it from Mozilla site, extract the tar.bz2 file somewhere in your home and execute the firefox file inside it. See my tutorial for step-by-step instructions.

I would recommend using a separate profile for the 3.6 account. You can use the Mozilla's Profile Manager to create profiles and start different versions of Firefox.


Low Graphics Mode when installing on old COMPAQ computer

For the low graphics mode, the only solution is to install a video driver for your graphic card.

You can lower system resource usage by installing all XFCE4 packages including XFCE4-settings, and also Xubuntu-desktop and Xubuntu-settings packages.

This way you'll be able to choose the XFCE session (or Xubuntu session) at login prompt, and use fewer resources than you are using now when you can access only the Gnome session in Ubuntu. If you install XFCE4 packages dont forget to also install the xfce4-goodies package.

You can also choose to install all LXDE packages, LXDE package included, and also Lubuntu-desktop and lubuntu-settings packages. This way you'll be able to also choose the LXDE session (Lubuntu session) at login prompt. Lxde session uses even fewer resources than the Xfce session.

You can install all these packages using Synaptic Package Manager, and type in the Search field either xfce4 or lxde to find and install all required packages for each session. If you don't have Synaptic present on your systen, you can install it using this code:

sudo apt-get install synaptic

To make your system a little bit faster, I suggest you also install preload package:

sudo apt-get install preload

And also you can install bum package which will allow you to stop some daemons and services that you know you never use, like printers, scanners and so on:

sudo apt-get install bum


Yes, but a lot of KDE related packages will be installed together (dependencies) during the installation, as Dolphin is designed for KDE.


You don't need to read file line-by-line using bash. Awk does that already. For instance, you can print broken entries using this code

awk '$2!="OK"{print $0}'  check.log

You can also just print the table name and use that command to create an array, then act upon those:

array=( $(awk '$2!="OK"{printf "%s ",$1 }'  check.log) )

Note the space next to %s, that's important.

You mentioned also, that error can be multiline, just like for table8. We probably want to avoid messing with that. So we may add a check also for field 1 to contain a word table.

$> array=( $(awk '$1~/table/ && $2!="OK"{printf "%s ",$1 }'  check.log) )
$> echo ${array[@]}
table2 table5 table7 table8
$> echo ${array[0]}
table2


How do I enable more debugging for MAAS installs?

When using MAAS and the curtin installer (which is the default since release 1.7) a node install happens in the following set of steps:

The node PXE boots into an ephemeral environment using the version of Ubuntu you selected to install.
cloud-init downloads user data from MAAS, including ssh keys and curtin.
cloud-init sets up the ssh keys and starts curtin installing the node.
curtin finishes installing and reboots the node.

It looks like step 1 is working for you. To debug steps 2 and beyond you need to capture the console output from the node while it boots. If you are actually deploying a VM (as opposed to bare metal), that's easy -- just access the output from the host. For the bare metal cases, you will need to use remote KVM or serial over LAN functionality to capture the console output. The console output will contain cloud-init log messages that indicate how it's progressing. It can fail in various ways so you'll need to dig further into whatever you see there.

If you don't have a way to grab the console remotely, one way to dig further into failures as this stage is to backdoor the ephemeral install image with a user/password that will allow you to login via the console or via ssh. Here's how that's done:

First, disable image syncing on the settings page of your MAAS server. This prevents MAAS from overwriting the backdoored images.
Then, this script can be used to setup the backdoors on all of the images in the server.

sudo apt-get install --assume-yes bzr
bzr branch lp:~maas-maintainers/maas/backdoor-image backdoor-image

imgs=$(echo /var/lib/maas/boot-resources/*/*/*/*/*/*/root-image)
for img in $imgs; do
    [ -f "$img.dist" ] || sudo cp -a --sparse=always $img $img.dist
done

cd backdoor-image
for img in $imgs; do
    sudo ./backdoor-image -v --user=backdoor --password-auth --password=ubuntu $img
done

Now, retry the installation of the node. Once the node starts ssh you should be able to login with user 'backdoor' and password 'ubuntu'. If SSH never starts, you can login on the console with the same user and password. Once logged in you can use 'sudo' to debug.
Once you have figured out the problem and addressed it, be sure to re-enable image synchronization, and replace the backdoored images with stock ones:

imgs=$(echo /var/lib/maas/boot-resources/*/*/*/*/*/*/root-image)
for img in $imgs; do
    [ -f "$img.dist" ] && sudo mv -f $img.dist $img
done

Even without the backdoor there is a window of time during which you can ssh in, as during installation cloud-init sets up ssh keys and starts sshd. Once  ssh keys are in place, curtin starts installing; at this point you can ssh  into the system using the 'ubuntu' user and the ssh key for your MAAS user.  You must do this quickly, before curtin finishes and reboots the system. To prevent curtin from powering off the node, run

touch /tmp/block-poweroff

as soon as you are logged in. You can do this in a while loop to avoid needing to get the timing exactly right; this should to be run as soon as you trigger the installation:

while true; do ssh node-foo.maas touch /tmp/block-poweroff && break; done

At that point you should be able to ssh in normally without worrying about curtin powering the node off.

Whichever way you logged into the system, remember you can use sudo as the ubuntu user; this lets you, for instance, access all the logs on the system.


How to avoid reinstalling Ubuntu every time a GPU driver fails?

You want to switch the tty in older Ubuntus you can do Ctrl+Alt+F1 up to F6 to get to the first tty1 and your GUI would normally be on tty7 which you could call with Ctrl+Alt+F7.

Since 17.10 however this has changed and you have your login screen on tty1 (Ctrl+Alt+F1), your GUI on tty2 (Ctrl+Alt+F2) and the rest up to tty7 are unused and created on the fly if you should call them. So use here Ctrl+Alt+F3 to get a tty.

All you need to do there is logging in by supplying your username and password, there you go and can change even if the GUI output fails.

Another way is to hold down Left Shift while the machine is booting up, this would lead you into the grub menu, where you can choose Advanced Options → Kernel x.xx.x-xx-generic (recovery) which will lead you to the recovery menu.

There you simply choose enable network, which in return starts up network capability and remounts your drive in read/write mode, and then drop to a root shell, where you can apply your fix.


Create a symlink in /dev using /etc/udev/rules

Few points

Used 75-, the rules run in order. There is a chance that your rule may overridden by next rules from /lib/udev/rules.d/, prefer to use 99- ~ 90-
SUBSYSTEM=="usb", SYMLINK+="myusb"  too generic

It match all event actions add, remove & change. Beside all USB devices. May be you should make it more strict.

Check using lsusb

Bus 003 Device 003: ID 0461:4d81 Primax Electronics, Ltd Dell N889 Optical Mouse

and add them:

ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0461", ATTRS{idProduct}=="4d81", SYMLINK+="myusb"

Not all devices create a node in /dev. (Could you mention what type of devices you have used)
Bonus :), even so the rule still broad concerning tree device nodes. When you plug camera there is not only one node created but many from tree root to the leaf (leaf is in most cases the wanted one). Check:

udevadm info -a /dev/video0

The previous modified rule may match two last nodes (not the leaf).


what the OS version?

I found on 17.10 :

sudo apt install rtl8812au-dkms


How do I configure WiFi to log in to WPA at boot time, regardless of user being logged in?

When you are logged in and connected to the network, right-click the Network Manager icon.  (It should be in the upper right of the screen.)

Click "Edit Connections..."

Find the connection you want to make available without login.  Click it and click the "Edit" button.

Make sure the "Connect automatically" and "Available to all users" boxes are checked.

Now the connection will start up before anyone logs in and will be available to everyone on the system.


Bind folders in .img to folders outside of it?

I don't see why not. The Linux is just a series of files. Devices are files and your img is just a file on a device. Mount the device, then the image on the device and then bind-mount the locations inside the mounted img. Simples.

UUID=your_device_UUID    /media/disk    ext4    errors=remount-ro    0    1
/media/disk/image.img    /mnt/img       auto    defaults             0    0
/mnt/img/deep-location   /mnt/deep      none    bind

The targets (second column) need to exist so you will have to do some sudo mkdir (drop the sudo if you're mounting inside your home). The locations are completely up to you. Use /mnt/ for mounting things you don't want to show up as devices in naultilus and use /media/ for things that you do want to show up.

Oh and on the second mount, you might have to switch auto for the actual filesystem of the image.


How can I strip unneeded drivers from Ubuntu kernel build?

Use menuconfig to browse and search for kernel options. Install ncurses-dev first to use the menu in the terminal.
Download the source from kernel.org, untar it, and type

make menuconfig

in the source directory.
I found this guide particularly helpful for customizing the kernel:
http://www.cyberciti.biz/faq/debian-ubuntu-building-installing-a-custom-linux-kernel/


Windows 8, disabled UEFI but there is more trouble

A crash suggests a bug in libparted that's interacting with some sort of problem with the partition table. Try downloading and running the Boot Info Script and then post a link to the RESULTS.txt file that it produces. That will provide more information. You could also try running gdisk on the disk. (This will require installing the gdisk package -- but it's not readily installable from the Ubuntu live CD, so you might need to install manually or run a live CD like Parted Magic, which includes gdisk.) Type v at the gdisk main menu; this performs a verification operation that may return clues if there's something obvious wrong with the partition table.


I'd say the answer is no, not without so much work that it would outweigh the minor inconvenience of using Kupfer directly for the things it does well.

As your examples do a great job of highlighting, it's a very useful app.

Unity Dash is also useful, but its UI seems entirely oriented toward search, one-field search. (Modulo configurable filtering.) It's hard to imagine how you would bring into Dash the kind of subject-verb command composition that's part of what makes Kupfer so handy -- without essentially cloning Kupfer. And since you already have Kupfer, you don't need a clone.

I don't mean to dismiss your question, but nonetheless I can't see a way to answer "yes" to it. If you're still determined, and have one specific favorite feature of Kupfer you'd most like Dash to emulate, you might try asking about that.


Broadcom BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01) is not working on Ubuntu 18.04

The driver you should be using for that card is b43 firmware.
Do this in a terminal sudo apt purge wl  Then this sudo apt install firmware-b43-installer Reboot wifi should be working.


Noise/Echo Cancelling Software for ubuntu 18.04 LTS

This is what I use. Works pretty good. Install Pulse Audio Volume Control to better make adjustments.

Realtime noise-removal with PulseAudio?


As I understood, you are trying to run a Proxy for other computers on your Ubuntu machine.
I recommend squid.
This is quite simple:
Look here https://help.ubuntu.com/community/Squid and follow the steps described there.


How can I install elementary OS on Ubuntu?

For 12.04 (stable) only:

Use the following PPA:

ppa:elementary-os/stable

For 12.04, 13.04, and 13.10 (unstable, daily updates):

Use the following PPA:

ppa:elementary-os/daily

Then update and install the elementary-desktop package.

    sudo apt-get update
    sudo apt-get install elementary-desktop

To login to your new eOS desktop, logout, and choose Pantheon as your session.

Optional extras:

Apps such as Birdie and Agenda can be found in another PPA:

ppa:versable/elementary-update


Ubuntu Hide Desktop Icon Problem Ubuntu 13.10

Run the following command in a Terminal (Ctrl-Alt-T):

gsettings set org.nemo.desktop show-desktop-icons false

This will disable the desktop-items when starting nemo.


Xfce4-places-plugin doesn't show mounted partitions due to altered fstab options

Well, I managed to fix this myself. It turned out that the 'users' option brought 'noexec' with itself and it was necessary to manually add the 'exec' option to the fstab partition entries.

This is an example of a line from /etc/fstab containing mounting a ntfs partition in order to allow executing:

/dev/sdaX /media/sdaX ntfs-3g uid=username,umask=077,users,exec 0 0

Where X is the number of the partition and username is your username.

The exec option MUST be after users, otherwise it won't work and will mount the partition with a noexec option.


Use of relative path to a local file for bookmarks in Firefox

Here is a workaround: Instead of saving the file as a bookmark, open it in a Firefox tab from the command line using the following bash script:

absp=$(readlink -f $1)
xdg-open file://${absp}


If you absolutely need 1.6.13 now, then I suspect you would either have to:

Compile it from source - ask for it if you want more details.
Download and execute a script from WANDisco.

Both of these ways will probably be harder to maintain than necessary though.

What I would suggest would be to use the subversion ppa; its objective is to hold a (relatively) recent release of subversion. As of today, the version of subversion in that ppa does not fix the bug (CVE-2010-3315) that you are referring to (it is fixed by either 1.6.12dfsg-2 or 1.6.13). If you are interested about what is happening to the subversion package, you can take a look at that mailing list thread.


set fallback font for default serif and sans-serif

It will be easier to install the Ubuntu package for your needed characters if available: http://packages.ubuntu.com/precise/fonts/

Otherwise, to answer your question, the first font with a matching character/glyph in the preferred list is the font used. If you don't want FONTNAME used as the default everywhere, then you need to add it to the list after the primary. This should work:

<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <alias>
        <family>sans-serif</family>
        <prefer>
                <family>ORIGINAL_SANS_FONT</family>
                <family>YOUR_FONT</family>
        </prefer>
    </alias>
</fontconfig>

I suggest using: sans-serif instead of sans, because it is the actual name in the fontconfig. sans is an alias.


How to install ubuntu alongside installed windows 8.1?

This is link have a people quesion problems same you. this

You can find answer for you


Based on the error message, you should put the license file into the following folder

  License path: /home/x/.matlab/R2012b_licenses:/home/x/MATLAB1/licenses/license.dat:/home/x/MATLAB1/licenses/network.lic


How to prevent wireless network asking password when briefly out of range

1) Yes. Or at least, it's always done the same for me!

2) Not directly. You can edit the connection to prevent it connecting automatically, which is one workaround.

Alternatively, when it asks for the password just click Cancel, then select the network again from the Network Manager icon; it will reconnect as normal (using the stored password).


Seems to be about the rudimentary emergency shell (not bash) in GRUB.

You have to read the information given, what the actual problem is. There is the option to start from grub with 'noquiet nosplash' by editing the bootline (e) to see the startup prozess and get an impression, where it fails (at least whether early or late, when the messages rush too fast).

I guess with quit or exit, you exit the grub shell, bringing you back into the grub boot menu.

You might read logfiles in /var/log from the grub shell, for instance, to find messages from failed bootups. For beginners, unfamiliar with every shell, the grub shell is normally of not so much help, except they get detailled advice, probably from a friend at phone or linux user group.


How to set the timezone during an Automated Install of 20.04?

This should be supported in the user-data timezone module

user-data:
  timezone: Pacific/Auckland

From Discourse - Please Test Autoinstalls Post #85


Why does Lubuntu not respect my keyboard preferences?

Right click on the Keyboard Layout Handler icon in your LXPanel.  Choose Keyboard Layout Handler settings.  Untick Keep system layouts and then click add.  Choose Irish which I believe will show up as ie.  You can then move it to the top to have it be the default or keep it where it is and just toggle when you need it.  Check Keep system layouts.  I believe that it will not take effect until the next boot.


Where gnome-system-monitor save its setttings?

You can use corresponding scheme from dconf/gsettings.

Discover exact names with gsettings list-recursively | grep system-monitor and then you can save the output to file and add gsettings set to start of each line.

For example:

org.gnome.system-monitor.something param 0

will change to

gsettings set org.gnome.system-monitor.something param 0

Or use dconf dump /org/gnome/system-monitor > file to save
and dconf load /org/gnome/system-monitor < file to restore.


FileZilla 3.38.1 file associations on Ubuntu 18.04.1 LTS

you've this probleme because you have install a snap Filezila(UNOFFICIAL) from ubuntu app store.
This work for me.
purge the current filezilla and do reinstall like this in terminal command

  sudo apt-get install filezilla


How should I interpret this fdisk output?

/dev/sda2 is an extended partition.
/dev/sda5 and /dev/sda6 are inside /dev/sda2.
If you start gparted, you'll see it in graphics.


How to add a prefix ou suffix to files dowloaded via uGet on Ubuntu 14.04

You shouldn't need to specify a prefix or suffix.  If you download a .txt, it should come in as a .txt.  If you specify blahblah.img in the filename, it will either come out blahblah.img, or blahblah.img.txt.

If you need to change it, you could run this in Terminal:

mv blahblah.txt blahblah.img

Or simply edit the filename in the GUI file browser.


How do I fix the package problem I have received after a failed attempt at installing QtOctave?

Be careful, this can damage your installation!

Find the package which is not properly installed and copy or remember the name of the package:

sudo dpkg --list | grep octave

Try to remove it (maybe some errors):

sudo dpkg --remove <package>

Try to purge

sudo dpkg --purge <package>

Try to do sudo apt-get -f install again.


Can't discover Wifi Network on my MACbook Air upon first reboot after installation

Go into "System Settings", click on "Software Sources" and click on the "Additional Drivers" tab. There should be a Broadcom proprietary driver. Disable it and reboot.


Right-click on your desktop, click on Desktop Settings. There you should have 3 tabs: Background, Menus, and Icons. CLick on Icons and you should see Icon size. Adjust Icon size accordingly.


How can I safely revert libglapi-mesa version?

The simple solution could be

  Downgrade the package libglapi-mesa via

    sudo apt-get install libglapi-mesa=10.5.2-0ubuntu1

  You have installed version
  10.6.0~git20150423.125574d1-0ubuntu0ricotz~utopic from a PAA, that's
  not longer exist in your system or manually via dpkg -i or an other
  tool.

But your system is pretty broken.

Work in progress...

In this case, there is no stubborn sequence of steps. You have to decide and act on their own. I can give you advice only.

Currently we have only Synaptic Package Manager, therefore use it:

Disable unnecessary PPAs and other repositories. You can re-add them later.

Use Reload

All packages in the category Installed (local or obsolete) should be removed or downgraded

First try a downgrade. If that's not possible, remove the package. Do this step by step, not all at once. After each removal, check the category Installed (auto removable) and remove the packages also. Be in mind, packages can be re-installed but you should not remove the kernel ;)

From time to time it's necessary to restart Synaptic. But this assertion comes from my experience and does not have to be true.

Remove packages that can be re-installed

Here are some points from the chat

Before you restart your system check

Is your desktop is still installed?

apt-cache policy unity

Is your network manager is installed?

apt-cache policy network-manager

Is your graphic installed

nvidia-settings --version

Be in mind and helpful links

Unity doesn't load, no Launcher, no Dash appears
What's a good back-up strategy for 1 desktop PC?
How do I find the reverse dependency of a package?


How can I update the firmware on a DWM-156 HSUPA 3.75G USB adapter?

You can download the software from this site. It's available in the Support+Downloads tab.


How to install Ubuntu 13.10 on an old SONY computer?

Your system is not compatible with some current releases (no 64-bit version will work) of Ubuntu, and is not fast enough for the recommended requirements.  Therefore, I recommend using the 32-bit (or 'x86') versions of Xubuntu or Lubuntu instead.


Create Application from Executable (and the folder it's in)

Ivan Temchanko told me that I needed to create a *.desktop file, with the tutorial found here.

I will need to create the .desktop file with this in the text:

[Desktop Entry]
Version=version.number
Name=Application Name
Comment=Application Description
Exec=/absolute/path/to/executable-file
Icon=/absolute/path/to/program-icon
Terminal=false
Type=Application
Categories=Games;Application;

I was able to run it as is that way, but I wanted more than that. So, I did a little more digging around.

I can use the desktop-file-validate file command talked about here to see if I did it right. For some reason, I could not validate the versions "0.42.06", "42.06", "42.6" or even "42". I decided to skip this part of the desktop file.

I then used the command desktop-file-install file to install the game to /usr/share/applications/. I could then find it in my menu, put it on a panel or move it to the desktop. This was how I wanted it, and I like it as it is this way.


To fix the dependencies: log off from the GUI and switch to a console (Ctrl+Alt+F2). Then logon and remove the packages with unmet dependencies:

sudo apt-get --purge remove gnome-control-center unity-control-center

Then check /etc/apt/sources.list and /etc/apt/sources.list.d/*. Remove any repository other than the official ones for your ubuntu version.

Then do sudo apt-get update && apt-get dist-upgrade. If this fails keep removing offending packages (but keep notes which packages you removed) until this command succeeds.

Finally reinstall the packages you removed:

sudo apt-get install gnome-control-center unity-control-center

The last command will pick the correct packages from the correct repos and may install additional dependency.


Nagios-Plugin "check_radius" missing in Ubuntu 14.04?

just for completion:
i answered the same question on SF a week after you posted this one here.

https://serverfault.com/questions/594965/nagios-plugin-check-radius-missing-in-ubuntu-14-04

Download it from here:
nagios exchange

You can get a lot of other plugins from there aswell.

Depending on your nagios setup you might need to make the file executable for the nagios daemon user.

As you found out this seems be a bug:

Launchpad Bugreport


Oh boy this is a fun one, I went through this more times than I Care to admit :)

Disclaimer: I don't have RAID on the Windows Drives, so not sure if it will have any effect

Install Windows (you already have it so skip)
Boot to Ubuntu USB/CD and go to install
When you get to the screen that asks you to automatically or manually partition, select manual
Find your drive and create a new partition table
Create Root mount point for the size of the drive minus swap
Create Swap pasrtition
VERY IMPORTANT (this is where RAID may screw up, so make sure you have a backup) for the bootloader location choose you Windows Drive, this will install GRUB to replace Windows Bootloader. Every other way I've tried didn't work
(Optional) I'd recommend also installing rEFInd, it's extremely helpful for managing multi boot environments


getting this error while installing cinnamon in 11.10

Your command opens an encrypted connection to the host. The protocol used is TLS (also known as SSL). The program GnuTLS expected a packet with special properties. Those expectations were not met and so it spelled out this error message.

Usually this is caused by some network error. When you start the program again, the error message disappears. If not, you should check your network. Maybe some device interrupts TLS packets.


Gedit will see any saved bookmarks you make in Nautilus. So in Nautilus you can File>Connect to Server   and then Bookmark that location once it opens.

Gedit will see those bookmarks and can open right to your files. You can also install some additional plugins and options for Gedit to show line numbers, snippets and find/replace.

Works great.


The only "GUI" for diction, I'm aware of is GNU Emacs. However Emacs is a fully-fledged editor which can do quite lots of things. You'll need a file called diction.el. Copy this to the subdirectory .emacs.d of your home directory. Now open a document in Emacs and type Alt+x diction-buffer and press Enter. This will run the software on your currently opened file and provides a graphical user interface.


GPU Support on Ubuntu VServer ? (for running OBS)

Try this command it works for me:

LIBGL_ALWAYS_SOFTWARE=1 obs-studio


Can't install anything after trying and then deleting DeepinDDE

I had the same problem and I resolved it by creating the user deepin-anything-server typing in the terminal
sudo useradd deepin-anything-server

and then uninstalling deepin desktop.


Auto Passing a "q" before a Y on a command line

The q keypress serves as a quit signal for the pager less, which is explicitly used by the script:

read FOO
echo "$licensetxt" | less
while true
do
  MS_Printf "Please type y to accept, n otherwise: "
  read yn
  if test x"$yn" = xn; then
    keep=n
eval $finish; exit 1
    break;
  elif test x"$yn" = xy; then
    break;
  fi
done

And man less says:

  Options are also taken from the environment variable "LESS".

Set this environment variable as follows:

printf '\ny\n' | LESS='+q' ./TeamSpeak3-Client-linux_amd64-3.0.19.4.run

Solution taken from @steeldriver's comment and added according to the law of @JamesTheAwesomeDude.


How can I preserve the desktop's icon positions after reboot, on a dual monitor setup (Unity)?

The cause

Most likely, the issue is the result of a bug (related to the video driver). I assume the second screen is not remembered somehow, and "virtually" re- connected in a rather late stage in the start up (log in) process.

Work around

As often, even if it is a bug, it doesn't mean we cannot find a work around. If we:

can make some kind of a snapshot of the current icon positions on log out
restore the icon positions after the second screen appears correctly after restart (log in)

effectively the bug is worked around.

How to read the icon position on the desktop

You can get the position on the desktop of an icon by the command:

gvfs-info -a 'metadata::nautilus-icon-position' '<file>'

This will a.o. output the coordinates of the icon on your desktop, which we can save into a file. If we make a snapshot this way of your desktop before shutting down the computer, we can subsequently restore the icon's position afterwards, with the command:

gvfs-set-attribute -t string '<file>' 'metadata::nautilus-icon-position' '500,500'

(for example)

A script to take such a snapshot, and restore the icon layout (depending on the argument) would be:

#!/usr/bin/env python3
import subprocess
import os
import sys

# --- set your localized desktop name below:
dt_name = "Bureaublad"
# ---

# used strings & definitions
val = " 'metadata::nautilus-icon-position' "
search = "gvfs-info -a"+val
set_val = "gvfs-set-attribute -t string "
home = os.environ["HOME"]
dt_dir = home+"/"+dt_name
datafile = home+"/.desktop_items.txt"

arg = sys.argv[1]

get = lambda cmd: subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8")

def snapshot():
    try:
        os.remove(datafile)
    except FileNotFoundError:
        pass
    dt_items = os.listdir(dt_dir)
    dt_data = []
    for f in [f for f in dt_items if all([not f.startswith("."), not f.endswith("~")])]:
        f = '"'+f+'"' if f.count(" ") > 0 else f
        file = dt_dir+"/"+f
        cmd = search+file
        try:
            loc = [int(n) for n in get(cmd).split()[-1].split(",")]
            # loc[0] = loc[0] - screen_pos[0]; loc[1] = loc[1] - screen_pos[1]
            loc = (",").join([str(n) for n in loc])
            open(datafile, "a+").write(file+"|||"+loc+"\n")
        except:
            pass
    subprocess.Popen(["/bin/bash", "-c", "notify-send 'A snapshot was taken'"])

def restore():
    items = [l.strip().split("|||") for l in open(datafile).readlines()]
    for item in items:
        try:
            xy = [int(n) for n in item[1].split(",")]
            move_to = (",").join(str(n) for n in [xy[0], xy[1]])
            command = set_val+item[0]+val+move_to
            subprocess.Popen(["/bin/bash", "-c", command])
        except:
            pass
    subprocess.Popen(["/bin/bash", "-c", "notify-send 'Click on the desktop and press F5'"])

if arg == "snapshot":
    snapshot()
elif arg == "restore":
    restore()

To use it:

Copy the script into an empty file, save it as restore_desktop.py
In the head section of the script, in the line:

# --- set your localized desktop name below:
dt_name = "Desktop"
# ---

set the localized name of your desktop folder ("Bureaublad" in Dutch)
To take a snapshot of the current icon layout, run the command:

python3 /path/to/restore_desktop.py snapshot

To restore a previously taken snapshot:

python3 /path/to/restore_desktop.py restore

then click on the desktop and press F5 to refresh the desktop.

To use the script in our situation would however take a few additions

The desktop still needs to be refreshed from the command line to actually apply the restore of the icons. This can be done by either restarting nautilus, or press F5 with the desktop in front. Since we use it on startup, the first option might be the most elegant one.
We need to take a snapshot on log out as the current user to make sure the last icon layout is recorded into a snapshot. So far, I could not find a way to do that.
However, as always, there is a workaround. If we include the command

gnome-session-quit --poweroff

in our script, we can simply call the script (with the right arguments) to include the shutdown procedure and take the snapshot.
Then to make sure the restored snapshot is applied we can include the restart of nautilus in the script.

The solution

The final script then becomes:

#!/usr/bin/env python3
import subprocess
import os
import sys
import time

# --- set your localized desktop name below:
dt_name = "Desktop"
# ---

# used strings & definitions
val = " 'metadata::nautilus-icon-position' "
search = "gvfs-info -a"+val
set_val = "gvfs-set-attribute -t string "
home = os.environ["HOME"]
dt_dir = home+"/"+dt_name
datafile = home+"/.desktop_items.txt"

arg = sys.argv[1]

get = lambda cmd: subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8")

def snapshot():
    # remove the previous snapshot
    try:
        os.remove(datafile)
    except FileNotFoundError:
        pass
    # list the items on the desktop, look up their positions
    dt_items = os.listdir(dt_dir)
    dt_data = []
    for f in [f for f in dt_items if all([not f.startswith("."), not f.endswith("~")])]:
        f = '"'+f+'"' if f.count(" ") > 0 else f
        file = dt_dir+"/"+f
        cmd = search+file
        try:
            loc = [int(n) for n in get(cmd).split()[-1].split(",")]
            loc = (",").join([str(n) for n in loc])
            open(datafile, "a+").write(file+"|||"+loc+"\n")
        except:
            pass
    # notify that a snapshot was taken
    subprocess.call(["/bin/bash", "-c", "notify-send 'A snapshot was taken'"])
    # send the command to shutdown
    subprocess.Popen(["gnome-session-quit", "--power-off"])

def restore():
    # wait for 20 seconds for the desktop to be fully loaded and the screen to be found
    time.sleep(20)
    # read the snapshot file
    items = [l.strip().split("|||") for l in open(datafile).readlines()]
    for item in items:
        try:
            # place the icon(s) acoording to the remembered position(s)
            xy = [int(n) for n in item[1].split(",")]
            move_to = (",").join(str(n) for n in [xy[0], xy[1]])
            command = set_val+item[0]+val+move_to
            subprocess.Popen(["/bin/bash", "-c", command])
        except:
            pass
    # restart nautilus
    subprocess.call(["killall", "nautilus"])
    subprocess.Popen(["nautilus"])
    # send notification
    subprocess.Popen(["/bin/bash", "-c", "notify-send 'Icon positions were restored'"])

if arg == "snapshot":
    snapshot()
elif arg == "restore":
    restore()

How to use

Copy the script into an empty file, save it as restore_icons.py
In the head section of the script, set the appropriate (localized) name of the Desktop folder:

# --- set your localized desktop name below:
dt_name = "Desktop"
# ---

Test- run the script by running the command:

python3 /path/to/restore_icons.py snapshot

A snapshot of the current layout will be take. De shut down menu appears on your desktop, but cancel it by clicking outside the menu on your desktop.

Then deliberately mess around with your icons (positions) on your desktop.
Finaly, run the script again with another argument:

 python3 /path/to/restore_icons.py restore

Wait for 20 seconds (see Note at the bottom why that is included in the script) and your desktop icons will be restored to how it was before you took the snapshot.
If all works fine, add a shortut key: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

python3 /path/to/restore_icons.py snapshot

This will be the shortcut you need to use, to shut down your computer.
Add the restore command to Startup Applications: Dash > Startup Applications > Add. Add the command:

python3 /path/to/restore_icons.py restore

Now 20 seconds after startup (log in), your icons will be exactly like you left them on shut down.

Note

The 20 seconds break is to make sure the second monitor is found and reconnected before the restore command runs.


This works for me with the Cinnamon desktop environment. (Linux Mint 18 - Which is essentially Ubuntu 16.04)

In my conky config:

own_window_class Conky
own_window yes
own_window_type dock

If that doesn't work in Unity (what comes with Ubuntu, try this)

own_window yes
own_window_type normal

or

own_window no
own_window_type desktop

Source: How to fix: conky disappears after click on desktop or other window?


Upgrade 64-bit machine running 32-bit ubuntu

Recommendations change over time.
The pool of Ubuntu contributors who run 32-bit desktops has shrunk. There are now too few 32-bit Desktop contributors to test, troubleshoot bugs, and provide support.
Feel free to recruit more 32-bit Desktop contributors. There's no rule or policy that 32-bit Desktops are being abandoned forever.
The only decision so far is that Canonical won't replace those missing community contributors with it's paid engineers. The result of that decision is that nobody is making 32-bit Desktop releases anymore. That result can be changed with more community involvement.
Ubuntu 18.04 32-bit is still fully supported until 2023, so you have some time to start organizing and contributing toward the (hypothetical) 22.04 release.


Grub Boot loader will not install to Raid Drive

We must make sure that the GRUB2 bootloader is installed on both hard drives, /dev/sda and /dev/sdb:

grub-install /dev/sda
grub-install /dev/sdb
update-grub
update-initramfs -u


Boot in recovery mode, by holding down the Shift key, and then selecting Advanced options (if shown, if it's still 10.04 Grub it won't be there), and then selection the second entry Recovery mode.

This should boot to the recovery menu from which you can try:

dpkg Repair broken packages


You update the installed packages in Ubuntu by running sudo apt update&&sudo apt upgrade.  This will upgrade to the latest in the repository, which currently 3.16.3, what you already have.
When you need something more recent than what is provided in the repository you would have to go to a different source, in this case you can go directly to HP.
The latest HP provided drivers are located at: https://developers.hp.com/hp-linux-imaging-and-printing
That is a permanent link where they provide their latest drivers, which currently is version 3.17.11.
After you have run the install program, followup with the apt command to fix the missing dependencies.
$ sudo apt install -f

If you still run into problems with the dependencies make sure you have an updated repository cache and your libraries are also updated.  You can perform this with these commands:
$ sudo apt update
$ sudo apt upgrade

Run the HP Device Manager (HP Toolbox) from the Ubuntu Launcher.  If it doesn't automatically see your printer, you may have to apply Manual Discovery by supplying the IP address.
Manually adding the printer
From the Hp Device Manager click:
(You may have to run hp-setup from the commandline for the proper GUI interface.)

1) (the plus sign) `+` -> **Show Advance Options** ->
2) (check mark) **Manual Discovery** -> (typein the IP address of the printer) ->
3) (click) **Next** -> (Select the desired printer) ->
4) (click) **Next**
5) Follow the GUI as you normal

Final results:
From the status of the chat messages, the OP didn't have any of the repository update entries in his apt configuration.  The HP screen mentions that as a prerequisite.
The missing entries were:
deb us.archive.ubuntu.com/ubuntu xenial-updates main restricted
deb us.archive.ubuntu.com/ubuntu xenial-updates universe
deb us.archive.ubuntu.com/ubuntu xenial-updates multiverse


How to fix "E: Unable to locate package rar" on current LTS release?

Try the following.

Re-enable multiverse repository

sudo add-apt-repository multiverse

Update package lists

sudo apt-get update

Install rar for creating RAR-archives and unrar for extracting them:

sudo apt-get install rar unrar


thanks for the linked answer. It shows a probable solution, but I have found the root cause in the mean time (which is why I created this entry as an answer). It is a hard bug. Please upvote it to raise the "heat counter": https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1508146

A probable solution is:

sudo dumpkeys | grep -v -E '^(\W+)alt(\W+)keycode.*Cons' | sudo loadkeys

I added those commands (without the sudo part) to a new rc5.d file so it does persist after a reboot.

I saw other people grepping only for left and right arrow, but in my case more keys are affected. See the bug report for more information.

HTH, and please don't forget to upvote!


After trying to get ubuntu 13.10 to recognize windows 8 install windows 8 won't boot

Can you please run GParted in Ubuntu and post a screenshot of the partitions (through a link to dropbox or something)?


How do I find a list of packages with Priority: Required?

With aptitude you can do that type of search.

aptitude search '?priority(required)'

Note that aptitude is no longer installed by default on newer Ubuntu releases, and its man-page is incomplete; you'll find the full documentation as /usr/share/doc/aptitude/README


I luckily only run once device like this.
My advice would be to put them untder maintenance and make it canonical's problem.
I've used (at first, then I learned) and seen so many Ubuntu subprojects and they always dropped them...


GeForce GT 730M stopped working on Ubuntu 16.04 after attempted drived update

After going through all the solutions to similar problems I could find, nothing helped.

So instead, I went and re-installed Ubuntu, keeping my /home directory. I then installed the Nvidia driver "versio 375.66 (proprietary, tested)" under "Additional Drivers" and now everything is working again.


Ignoring the fact that you are downloading from an internet cafe, your best bet would be to download the packages using apt-get first, and then install them.

Before you start, you may like to get the list of packages to upgrade into a text file (optional):

sudo apt list --upgradable > upgrade.txt

And view it with your favorite text editor.

If you run:

sudo apt-get upgrade -d # or dist-upgrade if you want

You can interrupt this command at any time without any problems using CTRL + C.

Once the command completes fully (without CTRL + C), then do the proper upgrade:

sudo apt-get upgrade # or dist-upgrade if that is what you did


Several ACPI event keys have the same ID

Actually they are very distinguishable, your script will receive the whole line as argument. Example:

button/volumeup VOLUP 00000080 00000000 K

You got 5 arguments and you are free how to process them.

Maybe the easiest way:

event=button/*
action=/etc/acpi/yourscript.sh %e

Then in your script used the 3rd argument $3 that will either VOLUP, VOLDN or MUTE, plus some other buttons (power,...) .

See:

What code is executed when headphones are disconnected?
How to pause VLC playback when the headphones are disconnected?


You can use pasuspender. Try prefixing your wine command with it.

pasuspender -- wine path/to/file.exe


Ubuntu 17.04 Chromium Browser quietly provides full access to Google account

It seems you have downloaded and installed Chromium browser from the Ubuntu repos. The worst case is that it is possible that Ubuntu may have provided you with a malicious code at that point which would provide Ubuntu full access to your Google account. It is best if you can download Chromium from the Chromium project itself and then install the same on your PC.

This may also be a mistake by the Chromium team. They may have renamed their software as Ubuntu. But I do not understand why such a mistake would be done.

Either Case, if I were you, I would be very worried about what happened provided your screenshots are true.


LIRC (remote control daemon) doesn't work

I had an issue with a Harmony Remote not working correctly.  After walking round the internet for a few days, I came across this article on using ir-keytable.

After uninstalling LIRC, installing and configuring ir-keytable, I had the remote working as expected when running a trace using ir-keytable -t; however XMBC did not see the remote.  After resinstalling the LIRC packages, XBMC worked correctly with no further configuration.

I don't know if it will work for you, but could be worth a try...

http://ubuntuforums.org/showthread.php?t=1754719


How can I disable the Universal Access Settings icon?

Edit the file /usr/share/gnome-shell/js/ui/panel.js

Comment out this line like so:

//'a11y': imports.ui.status.accessibility.ATIndicator,

Full article here.


SDL app code arm linaro cannot find -lSDL

You are missing the setup of the link path, like: -L/path/to/libswithsdl then -lSDL

example:

arm-none-linux-gnueabi-gcc -I./thirdparty/sdl/include -L./thirdparty/sdl/lib ./src/main.c -o ./out/main

the lib folder must contain the .so files so you are just adding to the search path, this will be fine for linking.

You need to make sure to have the lib on the target, either push it with the executable, use rpath or set LD_LIBRARY_PATH to include that search path


Unable to boot into windows after installing ubuntu 12.04

I've gone through your log file posted there, and It seems unfortunately the Other OS searcher script isn't working or missing executable bit.

Boot to Ubuntu and open a terminal with Ctrl-Alt-T shortcut.
Execute this command:

 sudo chmod +x /etc/grub.d/30_os-prober

Then run this command:

 sudo update-grub

OP says, this doesn't work.

If it doesn't work, I think grub is failing to detect Windows boot files. The most possible cause of this failing is losing Windows.  (It was indeed the case as OP confirmed in a comment).

I suggest to use Window 7 disk to repair Windows boot issue and then use the Live CD to fix grub

Hope this will fix the problem.


Followed the advise of olfred:

See the comments above.


I can only connect to HTTPS pages, not plain HTTP

Double check that you have no proxy installed.

  Dash Home > Search for "Network" > Go to Network proxy > set to "None" > click "Apply system wide"

If you are still having problems, check if UncomplicatedFirewall is active.

sudo ufw status

If so, allow port 80.

sudo ufw allow 80


Giving myself permission to edit files with a text editor on var/www/drupal

You can change the File/Fodder Permissions

Change File/fodder Permissions by
Opening up a Terminal by pressing Ctrl+Alt +TType in

sudo chmod ugo+wrx /var/www/drupal/ -Rf

More on File Permissions Here


USB drive will show up with lsusb and dmesg, but won't mount

Check whether the USB shows in "Disks". If it shows there, check whether you have any partitions created on your USB, or it shows free space. It will look similar to this:

If it shows free space only, then you need a Data Recovery Software to recover your data as the partitions on your USB are deleted.Some free data recovery software for Linux.
To create a new partition on your USB, click on the plus sign in Disks to create a new partition and format it as ntfs.


co-founder of Exodus here...

It's not currently possible to restore by just clicking on the link in Ubuntu. However, restoring via the link is still really easy from the developer menu: http://support.exodus.io/knowledge_base/topics/how-do-i-open-the-developer-menu

The menu to look for is:

Exodus > Developer > Restore > Restore from recovery link...

Then paste the link in.


Thinkpad X1 Carbon (5th Gen, 2017) - Touchpad behaviour changed / degraded a few days ago

I believe I've been encountering the same problem on my Thinkpad X1 Carbon 5th Gen Ubuntu 18.04 LTS. For me, when I shut the lid of my laptop and then reopen it, the trackpad still works, but two-finger scrolling does not work and click-and-drag does not work.

I noticed it start about a week ago after a few updates including a Thinkpad firmware update through Software Update. I'm not sure if that is the culprit, because I got other updates around that time. I have not figured out a way to roll back the firmware update to test if that is the problem.

My current workaround comes from this question. I find that resetting my mouse with modprobe psmouse resolves the issue until I shut the lid again.

Create a script with the following command and save it in your home directory with a name that ends in .sh such as touchpad_reset.sh:

#!/bin/bash
sudo modprobe -r psmouse
sudo modprobe psmouse

Then, make it executable with:

chmod +x touchpad_reset.sh

Then assign a shortcut to that script. First, go to Settings > Devices > Keyboard and scroll to the bottom. Click the + sign and enter a Name (e.g. 'Touchpad Reset'). Then enter the following Command:

gnome-terminal -x ./touchpad_reset.sh

Then assign a shortcut. I use Ctrl + Super + R.

Now, whenever your trackpad stops working enter that shortcut and a terminal window will open up asking for a password. Enter the password and your trackpad should start working again.

I don't find that workaround to be a suitable permanent answer, but hopefully somebody else has a better solution.


Found the fix for the USB modem. Every time after booting, have to remove the USB Modem and reinsert it. Ubuntu then finds the wireless network!


Remove dual boot safely for bootloader (GRUB2)

I'll use /dev/sda as an example, make sure it's your actual hard drive.

Boot into Xubuntu, open a terminal and run:

sudo grub-install /dev/sda

This will reinstall GRUB2 in your disk's boot sector and put its essential files in the Xubuntu partition.

Then you can safely wipe Antergos' partition and run sudo update-grub afterwards so its GRUB entry will be removed.


“” ... looks like copy pasted commands from a silly website that replaced "" with pretty quotes. Use "" instead.


Windows Error Code 0xc0000225 After Dual Booting Ubuntu

First off, you need your Windows Install DVD/USB.

Pop that into your laptop and follow the prompts until you get an option to Repair your Computer. Click that, and follow the prompts again until you get to Startup Repair. Run that and the system will automagically try to fix any problems Windows may have.

Note that this might break GRUB2, thus not letting you into Ubuntu. To fix this, use an Ubuntu Live CD and run this command in an elevated terminal:

sudo grub-install /dev/sda

Replace /dev/sda with whatever your Drive Identifier is. You can find this by using lsblk and looking for the drive with the most partitions on it.

Note: You may need to change your BIOS boot order to boot from the USB drive first.

This method does not cause data loss unless your system is seriously borked.


This is a design decision of the thunar authors, hard-coded and not yet configurable. If you don't like it, tell them. You can always fork the code or patch it for your own pleasure, provided you can code in c or persuade or blackmail someone else to do the work for you.


Problem when trying to run shell script : No such file or directory

you can run a bash script by using the following command

bash <location of the script file>

in your case

bash /home/abcdef/Desktop/jikesrvm/dist/production_x86_64-linux/rvm

it will work

what basically the . means is your current directory location.

if you are under your <user> folder then try doing this

./Desktop/jikesrvm/dist/production_x86_64-linux/rvm

it will work but first you should make the file executable using the following command

chmod +x ~/Desktop/jikesrvm/dist/production_x86_64-linux/rvm


User .fonts.conf file not well-formed (invalid token)

You use typographic double quotes “ instead of straight quotation marks ". (You probably copied and pasted an example from a web page that favoured style over syntax.)

Change each “ to " and try again.

I didn't notice the wrong quotes until I pasted your conf file into https://jsonformatter.org/xml-parser. If you try it, you'll see yellow warning triangles appear next to the quotes.


Could not open "" Archive type not supported

It has to be executed. Right click on the file, select "Properties". Switch to the "Permissions" tab and check, at the bottom of the window, the option "Allow executing file as program".

It would also work great from the Terminal.

1) Open Terminal

2) cd <directory where the file is>

3) chmod +x ts3client_runscript.sh

4) ./ts3client_runscript.sh


Can't import ExpressVPN profiles in the network manager in Ubuntu 17.10

I import my settings with IPVanish. To have this working I have to install:
network-manager-openvpn, network-manager-openvpn-gnome to allow me to import the settings.

Hope that helps.


I found this discussion.
http://ubuntuforums.org/archive/index.php/t-2148211.html

They say:

You can try

gksudo -k -u root /opt/google/earth/free/google-earth %f

or

Edit sudoers file:

gksudo gedit /etc/sudoers

-add this line:

yourusername ALL= NOPASSWD: /path/to/the/command

remplace
/path/to/the/command
with
/opt/google/earth/free/google-earth

Run your app in launcher or terminal with:

sudo google-earth


No xorg.conf and cannot detect ati Radeon 9600 Pro video card 12.04

By default, it seems that having a xorg.conf has been removed from 12.04. The xorg.conf.d directory can be found in /usr/share/X11/. If you put an xorg.conf file in /etc/X11 then the system will pick it up though (and may also pick it up if put in /usr/share/X11 - I haven't tried this). If you have your old one you could try putting it there and seeing if that solves your problem. I have had some problems with this when setting up twinview, but it might be OK for a single monitor.


Run service with previledges of another user?

To do this, press Ctrl+Alt+T to go to a terminal and type:

runuser -l  userNameHere -c 'command'

This will ...  ;-)


How to recover partially removed components of ubuntu-desktop?

I will give it a shot.

First, boot into the recovery console, then from there see if you can run metacity (at least): metacity &
If this works, you can run synaptic (if it is still installed) from the command line: sudo synaptic
From within synaptic, search for the Ubuntu Desktop package, and try to reinstall this (it will pull in dependencies automatically.
If synaptic is not installed, you can run: sudo apt-get install synaptic and then follow the third step.
After reinstalling the missing pieces, you should be able to log in again to your regular desktop (your settings will have been preserved of course).


Is there a way to make almost all video files work on Ubuntu using a media player, or a codec installation pack?

You can install ubuntu-restricted-extras from the Software center.  This installs all the non-free codecs for almost everything.