Your implementation of three.py is incorrect.

By writing

temp = sys.stdin.readlines()

You tell Python to read all lines from standard input and store it as list in your temp variable. It's obvious that this call blocks until the input is exhausted, which happens only when one.py is finished and exits, closing the pipeline. Only after that you start processing the input.

What you can do instead is to read from standard input line by line in a loop, like this:

#!/usr/bin/env python3
import sys
for line in sys.stdin:
    print(line)


Edit the /etc/mysql/my.cnf file to configure the basic settings such as TCP/IP port, IP address binding, and other options. In Ubuntu 16.10, which you are using (see Problems with the modification of Apache2), the MySQL database server configuration file is located at /etc/mysql/mysql.conf.d/mysqld.cnf. To edit it open the terminal and type:

sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf

The instructions for using nano editor are always found at the bottom of every page. The only two nano keyboard shortcuts that you need to know are for WriteOut and Exit. Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited. Press the keyboard combination Ctrl+X to exit nano.

Then restart the MySQL server:

sudo systemctl restart mysql.service


Touchpad Scrolling doesn't work on a Sony Vaio VGN-NW220F

Search for "Mouse and Touchpad" in the menu, there you will find touchpad settings there, and you can set horizontal as well as vertical scrolling.


All my desktop looks different today. How can I back to the old configuration?

I found the solution. I used the line command:

sudo grep " install " /var/log/dpkg.log

  to see which software had been installed in the last few days. I found some breeze and plasma
  theme and some KDE colors related software. Well, I uninstalled all
  those packages. Now I have the looks I had before.
  (from a comment by OP)


What is the diffrence between apt-daily.timer and apt-daily-upgrade.timer

You have to compare their filecontents locally or online:

https://salsa.debian.org/apt-team/apt/-/blob/main/debian/apt-daily.timer :
Description=Daily apt download activities

https://salsa.debian.org/apt-team/apt/-/blob/main/debian/apt-daily-upgrade.timer :
Description=Daily apt upgrade and clean activities

Both trigger the apt.systemd.daily script - the first runs update, the second runs install (using unattended-upgrade script).


Ipod Classic 80GB will not synch in Rythmbox or Banshee etc in Ubuntu 13.04

I'm afraid that it's this beauty :(

https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/1132215


Unable to install dual boot ubuntu on windows 10; caps lock key keeps blinking

With kudos going to @Noki, I fixed this issue by downloading and re-creating the ISO on the same USB drive.  There doesn't seem to have been a problem with the stick itself, just a glitch, even though I'd used that same ISO several times.  With the fresh version, I encountered no problems.


how will an in place upgrade from 16.04 to 18.04 affect any installed programs

You have multiple questions here but let me answer your wacom driver question.

I do not know specifically which tablet you are using (lsusb | grep Wacom) so I do not know if a manually installed driver is necessary in your case. If you are relying on a manually installed input-wacom driver, you will need to manually install input-wacom each time you change kernels. (Your kernel will change as part of the upgrade from 16.04 to 18.04.)

Explanation: When you manually install input-wacom, you run "./configure" or "./autogen.sh" so that the Makefile will know where to place the driver that you build. The "wacom.ko" file (the driver) is subsequently installed in the "extra" directory associated with the kernel you were running when you ran "./configure" or "./autogen.sh" for example:

/lib/modules/4.13.0-37-generic/extra/wacom.ko

When you upgrade from 16.04 to 18.04 your system will start running a new kernel and you will need to re-install the driver, if a manually installed driver is necessary. You will also need to re-install anytime your kernel changes, for example your kernel may change as part of the normal "sudo apt upgrade" process.


Ubuntu 12.04 Gitosis no longer available

gitosis is no longer actively maintained. You should migrate to gitolite. There's a pretty detailed migration guide available.


Why is My Ubuntu 19 Installation Not Detecting My Integrated Webcam? Cheese & Chrome Seem to Not Be Able to Access It

Apparently, I was able to debug most of the issues with dmesg logs, etc. It seems like using the following commands (as well as constantly refreshing dmesg on another terminal window) helped me out quite a bit (I can't say for sure that they'll work in any situation, but it's definitely worth a shot)

sudo rmmod uvcvideo

sudo modprobe uvcvideo

Note: I'm not exactly 100% sure of the importance of using sudo here. It might not even be necessary - it might just be verbose.


I need to run fsck on a remotely hosted Ubuntu 18.04 VM

Parameters and other data cannot be passed through a reboot.
You will need the assistance of those Windows admins to reach GRUB, then a recovery console where you can run fsck.


Depending on your version of Apache, your configuration files may reside in a different location, however the syntax is the same once you find the correct file.

To change the user and group that Apache runs as, edit these directives on the global scope:

User www-data
Group www-data

To make a system account for www-data that has no login-privileges, run the following:

sudo adduser --system --group --no-create-home www-data --quiet

Making this user account safe (e.g., by removing permissions to everything it doesn't need) is beyond the scope of this answer. Try a question like "How do I restrict user's access to filesystems and commands".

Giving www-data permissions to edit your virtual machine will likely either require adding www-data to another group which has permissions, or will require you to modify the groups of files on your system.

According to the FAQ for libvirt-php, all virtual machines run with the permissions of local users, so adding www-data to the group users might be all that is needed.

adduser www-data users


Don't believe the "drive-letters", they could change easily.
Mounting in fstab using UUID is the correct way and you did that already.
You also could mount using partition-labels but you must make sure that every
partition has a unique label.
The fstab-entries would look like this:

/dev/disk/by-label/DATA  /media/mediaserver/DATA  ext4  defaults  0  0
/dev/disk/by-label/MUSIC  /media/mediaserver/MUSIC  ext4  defaults  0  0

This way would be less confusing with your large number of drives.
Open your file-manager and browse to /dev/disk/by-label and you will find all your partitions listed by their label. Partitions which are not labeled are not listed in this directory.


I did get pass the boot problems and Ubuntu and Windows 8 are work fine and happy. However, I have a surprise for window very very soon! LOL!


This is your drive structure. Notice the sda4–6 mismatch


Are you using the default partitioning of the installer?

If so, is your motherboard supports UEFI or BIOS and which one did you boot and installed as?

Try booting up with LiveCD.

open up terminal, learn how to chroot from internet. and configure your bootloader again with grub-install command, if gives any error, try commanding it in specific compts that you can find in google; like " grub-install --root-directory=/"

I'm  surprised that nothing boots up. Don't partition it yourself and try not to use LVM if you did in the last try.


Why my ubuntu server doesnt want to upgrade today?

Because the error on this package:

  https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/pool/trusty/main/g/gitlab-ce/gitlab-ce_8.2.2-ce.0_amd64.deb

I edited the apt line about gitlab-ce:

me@host:~$ sudo nano /etc/apt/sources.list.d/gitlab_gitlab-ce.list
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/gitlab/gitlab-ce

#deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty main
#deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty main

ANd then tried again:

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

And it worked fine.
I fact, there is a problem with the hash of this package, and it seems that it is the first one that apt-get wanna to upgrade, thus 0 bytes where downloaded for all packages.

Now I uncommented the apt line for gitlab-ce and I pray for quick fix by Gitlab


Custom keyboard shortcut to generate a certain character

If you want to remap more than a couple keys, it sounds like you want to create a custom keyboard layout, a question which has been asked here before:

How to set up a custom keyboard layout?
Is there a tool to quickly create custom keyboard layouts for international keyboard, greek and unicode math?

On the other hand, it isn't too hard to remap a few keys. Let's do the ones you asked for.

The xmodmap command can be used to remap the keyboard. For example, for the mappings you mention, create a .Xmodmap file in your home directory (note that I'm using >> rather than >, so it appends to rather then replaces the file):

$ echo keysym Alt_R = Mode_switch >> ~/.Xmodmap
$ echo keysym C = c C ccedilla Ccedilla >> ~/.Xmodmap
$ echo keysym U = u U udiaeresis Udiaeresis >> ~/.Xmodmap

... where 'ccedilla' is ç and udiaeresis is ü (both of which I just entered using this method, though I personally prefer the compose key method). I'll explain this in more detail below.

If you want these settings to be used every time you start the Ubuntu GUI (i.e. X server), you should then create (or edit) a file called .xinitrc in your home directory, and add this line (if it's not already there, which it probably isn't): xmodmap ~/.Xmodmap

You can also type xmodmap ~/.Xmodmap from your terminal to test your settings.

Note that there is no simple way to tell xmodmap to "undo" mistakes other than restarting the X server (if you've made them load automatically via .xinitrc, you'll need to fix .Xmodmap first)! However, you may be able to reset things to defaults by using setxkbmap -layout us (changing 'us' to whatever is appropriate for your normal layout).

Tips: To experiment with xmodmap mappings, you can run the commands one at a time, from the command line, e.g.:

$ xmodmap -e 'keysym U = u U udiaeresis Udiaeresis >> ~/.Xmodmap'

And you can use xmodmap -pke to show the current keymappings, or just xmodmap -p to show the modifier (Alt, Ctrl, etc.) mappings.

For a list of keysyms that you can remap, see this (which is where I found 'ccedilla' etc.)
http://www.in-ulm.de/~mascheck/X11/keysyms.txt

As promised, here is a brief explanation of the 3 lines I suggested putting in your .Xmodmap:

The first line will ensure that your right Alt key is treated as AltGr, as it already is on certain international keyboards. Unless you are in the USA you probably don't need that line.

The 2nd and 3rd lines remap the C and U keys, respectively.

You'll note that there are 4, space-separated entries after the '=' sign on each line. Here's what they mean:

The 1st is what you want the key to produce when you press it alone (i.e. a the 'c' key enters a lowercase 'c').
The 2nd is what to produce with the shift key (Shift 'c' enters
uppercase 'C').
The 3rd is what will be produced when you press the key with your newly-remapped right Alt key
The 4th defines what to produce when you press the right Alt key, a Shift key, and the letter key.

Other resources/references:

How do I set Xmodmap on login?
How do I clear xmodmap settings?

And don't forget to look at the man pages:

$ man xmodmap
$ man xev


How to get $db_host as domain from Juju?

First, a few things to understand about relations:

Juju doesn't have much to do with deciding particular relation settings (eg. a choice between IP address or domain name). It is up to charms implementing a particular relation type to decide what relation data to set.
As an exception, Juju does set the private-address relation setting by default for convenience, but charms can delete or change it.
Juju provides private-address in the relation setting as well as the output of unit-get private-address as an address, not a name.

So, that you're ending up with an IP address and not a hostname is a function of both the charm that you're relating to and Juju's defaults, depending on the case.

Looking at the mysql charm, I see that it sets host (in hooks/db-relation-joined) based on the output of unit-get private-address.

So, one option is to modify each charm where it sets the address, and change it to supply the name you need instead. Or where charms just use the default private-address setting, to override it in the *-relation-joined hooks. In your environment using something like a call to hostname and appending .local would do. But this is clearly not a great solution, since you have to modify every charm affected.

Unfortunately, most charms are designed for environments that work the other way round - where IPs generally don't change (or an administrator has control to make sure that they don't), but mDNS (as needed for Zeroconf) generally doesn't work, and there's no central DNS server available. So although Juju doesn't particularly mandate charms to support addresses only, this is generally what the charms in the charm store all do.


How can I stop Shotwell creating duplicate files?

I see the same question has been asked, and there is indeed a known bug - so it's not just me!


How to give folder permission with separe folder and files?

Brace expansion allows for very compact commands.

echo /var/www/html/{bootstrap,storage,public}

Outputs

/var/www/html/bootstrap /var/www/html/storage /var/www/html/public

Your commands could be expressed as.

sudo chgrp -R www-data /var/www/html/{bootstrap,storage,public}
sudo chmod -R ug+rwx /var/www/html/{bootstrap,storage,public}


If your files are named a.txt, b.txt and so on, then the default collation order should allow you to do a simple filename glob expansion, rather than needing to explicitly version-sort the files. So I'd suggest doing something more like

i=1

cd "$dir"
for old in *."$ext"; do
  printf -v new '%s%02d.%s' "$newbase" $((i++)) "$ext"
  echo mv "$old" "$new"
done

after assigning newbase="$1", ext="$2", dir="$3" (with suitable existence checks of course). Play with it and remove the echo once the printed output looks correct.


How to delete duplicate music files where at least one version is .flac

Before I answer your question, I have some assumptions:
Say you have a directory like this

$ ls -1 myMusics
music1
music1.flac
music1.mp3
music2.mp3
music2b.mp3
music3.flac
music4.flac
music4.wav
music5b.flac
music6
music6.mp3
music6.wav

In the directory above, only music1.flac and music4.flac duplicates will be removed, because music2.mp3, music2b.mp3, music3.flac and music5b.flac have no duplicates to be removed, and although music6 has duplicates, non of them have .flac extension. I've also assumed that there is no file such as music1.backup.flac in your directory. If such files exist, they will be treated as music1.flac duplicates ( if any ).

Based on the assumptions, you can do so:

$ shopt -s extglob
$ for i in `ls | egrep .flac$ | sed 's/\.flac$//'`; do rm "$i".!(flac);done 2>/dev/null
$ shopt -u extglob

Now let's see what the above commands do:

Second one lists all the files that have .flac extension at the end (ls | egrep .flac$),
then removes the .flac from the end of the name (| sed 's/\.flac$//),
then for each of the names that are result of two    previous steps, removes all of the files that has that name plus an extension,
except    for the ones which has .flac extension. rm "$i".!(flac) removes    every file that starts with "$i" and excludes the ones    that have    .flac extension. If you don't run shopt -s extglob (    that is, if    you don't enable extglob ), patterns like    "$i"!(.flac) will not    have any special meaning and bash searches    for the file name "$i"!(.flac) exactly. ( the name "$i" followed by ! and then a ( and so on. )
At the end, you can disable extglob using shopt -u extglob.

You can see the following about extglob in man bash:

  If  the  extglob  shell option is enabled using the shopt builtin, several extended
  pattern matching operators are recognized.  In the following  description,  a  pattern-list  is  a list of one or more patterns separated by a |.  Composite patterns
  may be formed using one or more of the following sub-patterns:

  ?(pattern-list)
  Matches zero or one occurrence of the given patterns
  *(pattern-list)
  Matches zero or more occurrences of the given patterns
  +(pattern-list)
  Matches one or more occurrences of the given patterns
  @(pattern-list)
  Matches one of the given patterns
  !(pattern-list)
  Matches anything except one of the given patterns

Also, take a look at this SO question:
How can I use inverse or negative wildcards when pattern matching in a unix/linux shell?


Turned out I had a typo in my .bashrc.

It had

EDITOR=iv

in it (instead of EDITOR=vi), so fc tried to edit my last command via the iv command. Hence the error message.


error in disk partitioning during ubuntu server 12 installing

Make sure Ubuntu can see your hard-drive('s), are your Hard-drive('s) connected to a raid? if so find out if your raid controller is compatible.

If not try and boot from a live disc and format the hard-drive('s) from within ubuntu.

If that fails try using partition magic (or any other hard-drive checking software) to test your drive as it may just be a dead hard-drive


As per the comments:
Ubuntu One's cloud storage was discontinued in 2014

In what operating systems can I actually install Ubuntu One?
Ubuntu One is available in

Ubuntu
Windows (Windows XP, Vista and Windows 7)
Mac (Mac OSX 10.6 and higher)
Android (Android 2.1 and higher)
Iphone (iPhone & iPad iOS 3.1 and higher)

Indeed, you can install Ubuntu One as a program on non-Ubuntu computers. Once you have an Ubuntu One account, you can actually access your data, manage folders and upload files on the web interface (which does not require any install): https://one.ubuntu.com.
What are the requirements for it?
The requirements are essentially fairly basic. You need to have a supported operating system. You also need to install it with administrator right (on windows, for instance). No extra software is needed to run Ubuntu.
How to install and configure it?
For setup instructions, read the (nice-and-easy) manuals for

Windows
Ubuntu 12.04, Ubuntu 11.10, Ubuntu 10.04
Mac
Kubuntu

Configuring Ubuntu One often comprises of two steps.
Signing in with your account (or creating one if you have none).

Selecting the folder you actually want to synchronize. Note that the Ubuntu One folder (which is added to your home directory or your My Documents folder, for instance) is always synced.

Then you can just enjoy. More information can be found in the FAQ.

Note : Ubuntu One is a tool to synchronize information. It is a cloud service to synchronize information between 'computers.' Synchronizing is not the same as making a backup. Look here for backup tools. Your information in Ubuntu One still needs to be backed up.


Have you tried to reinstall pulse audio and alsa.

Run these commands:

sudo apt-get remove pulseaudio
sudo apt-get remove alsa-base

then run:

sudo apt-get install alsa-base
sudo apt-get install pulseaudio

After doing that if that just to make sure everything restarts run this command:

sudo pulseaudio -k && sudo alsa force-reload


No internet with Firefox: g_dbus_proxy_new: assertion G_IS_DBUS_CONNECTION failed

fcitx-module-dbus is a requirement of fcitx-frontend-qt5 (https://packages.ubuntu.com/focal/fcitx-frontend-qt5) which is itself a requirement of lubuntu-desktop (https://packages.ubuntu.com/focal/lubuntu-desktop)
Thus I would expect the consequence is the removal of your Lubuntu desktop (on focal or 20.04) and you're left without a GUI.
The consequence may not occur straight away, it may occur when the next clean up occurs (sudo apt autoremove).
I've not tested it, but that's what I'd expect would happen, so I'd look for another solution.


How can I connect to all drives automatically when I log in?

Well , What type of ur partition? NTFS, FAT or Ext3?

You can mount your partition drive automatic so you when you start ubuntu you dont have to connect manually.This is the step. Open  disk utility.

Find out where the location of your drive you want to mount (Dont mount The system (ubuntu system partition) because it's already mount by ubuntu) .Like my drive is on /dev/sda2 and the type is NTFS

Open terminal and type:

sudo mkdir /mnt/windows [enter]  You can rename windows whatever you want.it's just example

sudo chmod 755 /mnt/windows [enter]

sudo gedit /etc/fstab    [enter]

and insert new line, like this

Save and restart ur pc. Now you can easy access ur files under /mnt/windows directory.
You can doing this to all your drive but remember to using diferent name folder and diferent /dev/sda* . if your drive type is ext4/ext3 just change ntfs to ext4 on your /etc/fstab. Like this:

/dev/sda2 /mnt/windows ext4 defaults 0    0    [save and reboot].Good Luck


Not able to run sudo apt-get update in 12.10

Try this.  Make sure that Synaptic, and update manager are not running.

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

sudo rm /var/lib/dpkg/lock


How to configure Openvpn server in Ubuntu 11.10 and Openvpn client in Windows 7

Take a look at the following URL:

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

There's some great info on this page to get you started!

Regarding OpenVPN on windows, refer to the following link:

  http://openvpn.net/index.php/download.html

Documentation for OpenVPN:

  https://community.openvpn.net/openvpn


How to install 32-bit Matlab in Ubuntu 64-bit?

The way I got it to work was to follow the instructions here. After running the command:

sudo /media/MATHWORKS_R2012A/install -glnx86 -v

if there are unmet dependencies it will complain about some library not found. Next, search for this library in Ubuntu's packages for your release (in this case saucy). Make sure to search the contents of the packages. After you find the package name, install it: (make sure to include the trailing :i386)

sudo apt-get install <package-name>:i386

For example:

I am using the Student version of 2011a and the required packages for me on Ubuntu 13.10 are:

sudo apt-get install libxtst6:i386 libXext6:i386 libxi6:i386 libncurses5:i386 libxt6:i386 libxpm4:i386 libxmu6:i386 libxp6:i386

Edit:

For installing the Student version of 2011a on Xubuntu 14.04 I had to also install the lib32stdc++6 package:

sudo apt-get install lib32stdc++6


The part

git clone https://github.com/apache/httpd.git
cd httpd
svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr && cd srclib/apr && ./buildconf && ./build libtool && make && make install
./buildconf && ./configure --prefix=/usr/local && make && make install
echo "ServerName localhost" >> /usr/local/conf/httpd.conf

is pretty confusing. But because of the error message:

Install the missing libraries via

sudo apt-get install libnghttp2-dev
sudo apt-get install libxml2-dev

And you have to use

sudo make install

instead of

make install

at the end of your command queue. Otherwise you will probably get immediately the next error.


No sound after startup, have to alsa force-reload

The most complete answer I've found around is this one

http://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/

I've a motherboard ASUS P8H77-M PRO and the third hint worked for me.


Why can I use my RSA keys with the Git Bash app but not with Ubuntu WSL on my Windows machine?

It is hard to say with so limited information, but I suppose it is permissions issue. The ssh keys are private data. In Ubuntu/Linux they must have restrictive permissions, so only the user could read them. You can set the proper permission by the following commands:

sudo chown -R "$USER:$USER" ~/.ssh # make sure the files are owned by the user
find ~/.ssh -type d -exec chmod 700 {} \; # set drwx------ permissions for the dirs
find ~/.ssh -type f -exec chmod 600 {} \; # set -rw------- permissions for the files

note, ~/ represents the user's $HOME directory, i.e. /home/<user>/.

Another possible trouble maker is the way you've created the files. In Windows, lines end with both the line feed and carriage return ASCII characters, but Unix uses only a line feed. In such case you can process the ssh key files by dos2unix or you can use some of the other approaches, shown here.

See also:

How do I setup SSH key based authentication for GitHub by using ~/.ssh/config file?


12.04 upgrade stops at 'mysql restarting'

I had the same problem. I typed: ps -aux in terminal, then I found PID of processes restarting mysql and killed one of them (the first one, there were three of them), the installation went on and then the same problem occured one more time. I did exactly the same thing - killed the process; since then everything's going well - I hope it will be fine after the installation.


Any other software for installing .exe files in ubuntu except wine

There's Crossover, which is basically a paid, stable version of Wine with officially supported programs and customer support. It has a wider range of software support, but like Wine, it can't support everything. I can also suggest running Windows in a virtual machine.


Docker: other users run their containers as my user by default

Docker is running as system wide, not on a specific user. That means any docker run will be run as root with the docker service.

If you see your ID inside a docker, this is probably because you have the ID 1000 which is the first user ID. Many Docker run their own service with a specific account, this account may most of the time use this same ID.


I faced this problem & wrote my own version of nm-applet

http://geek.rohitkalhans.com/2013/10/nm-applet-crash-in-ubuntu-1304-raring.html


How to turn numlock on from command line

setleds -D +num to turn on numlock or setleds -D -num to turn it off.


Cropping a video can be done multiple ways in Kdenlive.

One way is to set the project to the desired size then set the video to original size so that only the cropped part is visible in the project.

How to do it:

Start a new project with the desired crop size.
If no profile available with required size you should create a new project profile by clicking on Manage project profiles button.

Then click on create new profile.

Change the profile settings as required in your case make it 900x690.

Import your clip to project bin and add it to timeline.
Add Position and Zoom effect to your clip.
Click on adjust to original size in the effect settings.

Change the X and Y to adjust the position of the cropped region as desired.


Yes.

Could use whole-disk encryption like LUKS/dm-crypt/cryptsetup, or file/folder (like home folder) encryption with eCryptfs or EncFS. See their man pages for more info.

Here's an excellent overview/guide from Arch, I'm 98% sure the tools are available in Ubuntu/Debian too: https://wiki.archlinux.org/index.php/Disk_encryption

Here's some other Questions that are related. It seems that enabling whole-disk dm-crypt style encryption after installing is at least very difficult, apparently it's easier to do a fresh install with full disk encryption

Enable disk encryption after installation
Is there a way to do full disk encryption after the install? (spoiler: No)


Installed dual boot Win10 and Ubuntu 19.10 - grub problem

Sounds like you have Windows in one boot mode, UEFI? and then Ubuntu in other boot mode BIOS?

Both systems must be in same boot mode, preferably UEFI.

And both install based on how you boot install media, so boot installer in UEFI boot mode.

Shows installer with screen shots. Both BIOS purple accessibility screen & UEFI black grub menu screen

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

Also shows Windows 10 screens or similar to Windows 8

How do I install Ubuntu alongside a pre-installed Windows with UEFI?

Also found that for those using Rufus that this screen shows a BIOS/MBR configuration. The Ubuntu install ISO is for both UEFI and BIOS, but Rufus seems to only make one or the other. For UEFI select gpt & UEFI.

https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-windows#2


Unable to open a xls file in Openoffice 3.2

Probably these two systems have different locale settings for date, time and number format.

For example: one thousand is written as 1,000.00 (in the US) but in other countries
(Europe) you would write 1.000,00.

In US the convention is mm/dd/yy but in Europe dd/mm/yy.

Check with System Settings - Language Support - Regional Formats

Also in OpenOffice, check Options - Language Settings - Languages


Partitions mounted as read-only, problem with the fstab file

For remounting the root file-system with read/write access use:

  sudo mount -o remount,rw /


Is there any performance impact if I auto-start the Apache 2 web server at the time of boot and I keep it running?

If it's idling it's probably irrelevant, even tough as any process Apache will consume some resources in order to keep running; an idling Apache should never be a big deal, however you can check this for yourself by running top -p $(pgrep -o apache).

Here's the output of the command on a Debian Jessie machine running Apache (it showcases the average load of the last 30 seconds):

Tasks:   1 total,   0 running,   1 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.2 us,  0.2 sy,  0.0 ni, 99.5 id,  0.1 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   3942096 total,  3515488 used,   426608 free,   271400 buffers
KiB Swap:        0 total,        0 used,        0 free.  2018532 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 3228 root      20   0   73488   4416   3216 S   0.0  0.1   0:00.01 apache2

In this case the CPU usage is almost null, and the memory usage is about the 0.1% of the total memory, hence ~4MB.

However as pointed out by prakharsingh95, leaving a server running with no purpose, aside from the intrinsic unusefulness, is a potential security flaw and (if that's a concern) also owns the port on which the server is listening.


want to use ubuntu desktop os on a server providing ubuntu use just by login?

Have you used the ubuntu tour?  It's provided straight from Canonical.  It might not be exactly what you're looking for, but check it out.

http://www.ubuntu.com/tour/en/#


How to access hard drive after after ubuntu14.04 install

Most likely secure boot prevents you from booting. open the bios and look for secure boot, then disable it.

http://www.howtogeek.com/175641/how-to-boot-and-install-linux-on-a-uefi-pc-with-secure-boot/


"Depends: ia32-libs-multiarch but it is not installable" - Solution

I found the solution here comment #27,

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install ia32-libs

Then the 32 bit libraries install fine (for me anyway!). Hope this helps somebody !


How to dual boot Ubuntu with Windows 10?

What you have tried to do will not work.
Windows 10 is installed in UEFI (GPT) mode.
You have to install Ubuntu in EFI mode as well.
It is not possible to do this with Ubuntu in 32 bit.
Install the recommended 64 bit edition of Ubuntu.


When I log in there is nothing except the default wallpaper, is there anything I can do?

Press Ctrl + Alt + F2 to open tty. Here, run sudo apt-get install --reinstall unity ubuntu-desktop. After that finishes, run sudo dpkg --configure -a before rebooting.


As of 18.04 —when Ubuntu moved to Gnome— you'll want the Lock Keys extension.

The 1 A light up if numlock and capslock are on. Click the indicator to turn them on.

There's a PPA for indicator-keylock that does this.

sudo add-apt-repository ppa:tsbarnes/indicator-keylock
sudo apt-get update
sudo apt-get install indicator-keylock

For KDE users, there's KeyLeds, Xfce has kbdleds and gnome3 has Lock Keys


How to run a command that requires sudo at login

Custom scripts that get executed on startup as root can be started via rc.local

You have to include your script  in /etc/rc.local as it will be run whenever the user's run level changes, put the script before the last line in /etc/rc.local that contains: exit 0


Upgrade to 12.04 failed. Boot into command line window and cant boot with live usb.

Try Boot-repair  to repair you grub , fo doing so you have to bett ubuntu live usb or dvd and after booting click on try-ubuntu.

When desktop screen appears press Ctrl+Alt+t  for opening terminal and run the follwing commands into the terminal -

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

After that the boot-repair window will appear ,in that select Recommended repair option . After completion restart your pc .it will be fixed.

hope it will work.


You can create a .desktop file for xmessage and specify in the MimeType field that it handles the x-scheme-handler/http and x-scheme-handler/https MIME types, with the argument of %U passed to xmessage. Something like this:

[Desktop Entry]
Name=HTTP/HTTPS Link Notifier
Exec=xmessage %U
Terminal=false
Type=Application
Categories=Network;WebBrowser;
MimeType=x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=false
NoDisplay=true

You need to place this file in $XDG_DATA_HOME/applications and run the following command:

update-desktop-database $XDG_DATA_HOME/applications

This will pop up a simple dialog with a text field with the URL inside, which you can copy and paste into your browser, and then close the dialog. You should then be able to choose this entry as your default browser in System Settings under Default Applications in the Details module.


Ubuntu grub menu after installing CentOS?

You'll need to reinstall/update grub. I had the same issue after installing CentOS 6.4 on top of my Ubuntu 14.04. Following this post fix my problem:

http://muthusaravananmca.wordpress.com/2010/09/29/ubuntu-grub-recover-after-installing-centos-or-windows/

(Just to clarify that in Step 4: use "--root-directory ...")
Hope it helps.


After sync, music still cannot be located on iOS 5 device, fix?

Music/Video Synchronization doesn't currently work for devices with DBVersion > 4 (run "ideviceinfo -q com.apple.mobile.iTunes -k DBVersion" to check your DBVersion run).
It may be moving the files but it isn't updating the DB correctly.

You can keep yourself updated here: http://www.libimobiledevice.org/

or here as well: http://gtkpod.org/wiki/Libgpod


How to restore the screen sharing control panel in Zoom?

I got the same issue but managed to resolve it with un-/installing the application. I use the zoom-client Snap, though. First, I uninstalled the Snap in the Software Center. Then, I completely removed the ~/snap/zoom-client directory. Finally, I installed the Snap again. This reset the configuration, including the visibility of the screen sharing controls.
I also had a look at the configuration files in ~/snap/zoom-client but I couldn't find any that seemed relevant to this issue.


The problem
German umlauts ä,ö,ü and UTF-8 encoding are the problem here. Most likely you copied the files from a windows system (using ISO-8859-1 encoding) to a Linux system (using UTF-8). A computer can only store bits. The mapping of a combination of bits to a real character a human can read is called the encoding. E.g. using UTF-8 the letter a is encoded as 01100001. For umlauts those bit sequences differ in the two encodings, so a UTF-8 system displays another character or doesn't know the bit sequence altogether. That's the whole problem.
The solution
With the shell program convmv  / sudo apt-get install convmv you can rename files with broken umlauts to their correct UTF-8 charset. Usage:
convmv --notest -r -f ISO8859-1 -t UTF-8 <Verzeichnisname

Run that on your files after installing convmv by clicking on the Software Center icon above or using the shell command provided next to it. Then try syncing again.
Good luck on sharing German history! :D


Ubuntu 10.10 stop working at login screen after power loss during upgrade

This happened to me once before.

You are going to want to use your Live Disc and boot into it. From here, chroot into your partition with the broken install. (If you don't know how to chroot, go ahead and ask me in a comment: I'll be more than happy to help.)

Then, you want to run the following commands in terminal:

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade

If that doesn't help, let me know.

And, for reference: Were you upgrading the version or just a general software update?


Constant noise in speakers and headphones

The most probable cause of constant noise coming in from the speakers is usually mic boost. In order to disable this:

Open a terminal.
Type alsamixer and press Enter.
Reduce the Mic Boost and Internal Mic Boost to zero. Refer to screenshot.


Once you launch Android Studio, you should have a screen like this:

Click on Configure and this will bring you here:

Start the SDK Manager and then edit the Android SDK Location.


Mouse wheel won't scroll 100% of the time in file system

Just click on Settings --> Window Manager Tweaks --> Accessibility --> raise windows when any mouse button is pressed, I Unchecked that, and it works PERFECTLY.  See image below.


Tp-Link WN821N (2357:0107) not working with Ubuntu 16.04

The dongle is detected. It is

Bus 002 Device 002: ID 2357:0107

You installed a wrong driver for it. You can install it by

sudo apt-get purge rtlwifi-new-dkms
sudo apt-get install rtl8192eu-dkms

from the same PPA.

I patched the official driver provided by Tp-link to be used with the 4.4 kernel.

In your case you already installed the PPA, but for other people who use this device, they need to run

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192eu-dkms

to install the driver.

To install the driver you need to be connected to internet by other means and Secure Boot in UEFI settings should be disabled.


How to change default signature font in thunderbird 13.0.1 used in ubuntu

You can follow the instructions here:

http://www.ehow.com/how_8530736_change-default-signature-fonts-thunderbird.html

  Launch Mozilla Thunderbird and click "Write" to open a new message. You won't be emailing anyone, but you can use the message writer to format your signature.
  Type the text for the signature you wish to use. You can type anything you like, but remember it will automatically be appended to every email you send.
  Press "Ctrl" and "A" to highlight all the signature text you just typed. Click "Format" from the toolbar at the top of the window. Use the various options to format your text. Click "Font" to select the font style to use, select "Size" to pick the font size and select "Style" to make your text bold or italicized.
  Click "Insert" and click "HTML" when you have finished formatting your signature text. A window will open that contains your text with all of the alterations you made to it, written in HTML. Press "Ctrl" and "A" to select the HTML code and press "Ctrl" and "C" to copy it to the Windows clipboard. Click "Cancel" to close the HTML window and click the "X" on the "Write" window to close your message.
  Select your email account from the list of "All Folders" on the left side of the Thunderbird window. Click "View settings for this account." Select your email address from the "Account Settings" window. Select "Use HTML" next to "Signature Text" and click the text box. Press "Ctrl" and "V" to paste the HTML code into the box. Click "OK" to finalize the change.


I encountered the same problem with my relatively new TUXEDO N24_25JU

Graphics: Intel® Skylake ULT GT2

It seems to be related to the graphics controller. My system:

lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 07)
    Subsystem: CLEVO/KAPOK Computer Device 2425
    Kernel driver in use: i915

I found a workaround this entry: askubuntu - 729177

There it says:

... go to VLC Tools, Preferences, Video, and select at Output "OpenGL GLX video output (XCB)" then the problem disappears and everything is normal.

That worked for me.


Adobe has announced its future plans for Flash and AIR and Linux isn't part of them. Flash will still, however, be available to Linux desktop users who use Google's Chrome Web browser.

And I think that has also something to do with Acrobat Reader, since its no longer available for download from their site.  If you still want Acrobat Reader version 9.5.5, you can get it on Adobe's FTP server.


Here is my answer from here: Compaq Presario R3000 randomly fails to boot on 11.10, 12.04, 12.10

I had exactly the same problem. The laptop would freeze on boot up most but not every time.

I found this page: https://bugzilla.kernel.org/show_bug.cgi?id=42715

The bug still seems to exist but there is a workaround by adding the boot option in Grub:

pcmcia_rsrc.probe_io=0

It turns off pcmcia io probing in the pcmcia_rsrc kernel module. It fixed the problem for me.


Internet connection problems after upgrade to 18.04

SOLVED: I deleted profile of my ethernet connection and new connection worked


*/2 * * * * /home/ubuntu/video/makewmv.sh

Put this in your cron file, and then cd to the correct directory in your bash script, which should be as follows:
#!/bin/sh
cd /home/ubuntu/video
ffmpeg -f image2 -r 25 -pattern_type glob -i '*.jpg' -qscale 3 -s 1920x1080 -c:v wmv1 video.wmv > makewmv.log 2>&1


Ahh I knew I saw that somewhere:
PHP 5.4 interactive mode on Ubuntu 12.04

For the record, the solution is:

sudo apt-get install php5-readline


Create bash script to auto put files in folder of the same name?

With inotify-tools:
inotifywait -m . -e create |
  while read path action file;
  do
    d="${file##* }"
    d="${d%%.*}"
    mkdir -p "$d"
    mv "$file" "$d/" 2>/dev/null
  done

Run the above from within the directory containing your files.

In bash:
while true
do
  for f in *
  do
    d="${f##* }"
    d="${d%%.*}"
    mkdir -p "$d"
    echo mv "$f" "$d/" 2>/dev/null
  done
  sleep 5
done

Save the above code in a file one level above your files directory and make it executable then run it from within the directory containing your files like so bash ../ScriptFileName. Remove echo when satisfied with results to do the actual file moving.
You can change the number of seconds after sleep from sleep 5 to for example sleep 60 to make the script run every minute instead of every 5 seconds.
See this answer for extra information.


In 15.04, Vivid, you need to place your scripts in:

/lib/systemd/system-sleep/

An example script based on one from the Arch wiki  (systemd sleep Hooks):

#!/bin/sh
case $1/$2 in
  pre/*)
    echo "Going to $2..."
    # Place your pre suspend commands here, or `exit 0` if no pre suspend action required
    ;;
  post/*)
    echo "Waking up from $2..."
    # Place your post suspend (resume) commands here, or `exit 0` if no post suspend action required
    ;;
esac

Dont forget to make your script executable!

sudo chmod a+x /lib/systemd/system-sleep/your-script

See man systemd-sleep for more details.

There is no need for sudo as your script will be run as root.

note: the Arch wiki link on the subject (systemd sleep hooks) states (incorrectly for 15.04) that you should place your scripts in /usr/lib/systemd/system-sleep/, but this is will not work in Ubuntu 15.04. Place your scripts in /lib/systemd/system-sleep/ if you're running 15.04.


How can I install the OpenGL libraries in Ubuntu 11.04?

You should have OpenGL runtime support already. You can check that using glxinfo in a terminal.

If you are looking for the development headers, you would need to install libgl1-mesa-dev. Extra packages might be necessary depending on your programming language.


Try holding the super/windows key and press S this should do what you want.

Also holding the super/windows key will display a list of keyboard shortcuts.


what does the period (.) do when using rsync

One  usage of . in rsync is to limit the amount of path information that is sent as implied directories for each path you specify.

rsync -avR /src/path/to/dir/./file /target/

creates file in /target while:

rsync -avR /src/path/to/dir/file /target/

would creates /src/path/to/dir/file in /target.

The other usage is when you are using rsync with -d option:

rsync -d /boot /target

will copy the boot into /target while: rsync -d /boot/ /target or: rsync -d /boot/. /target would copy the contents of /boot into /target.

As I can see, it your situation it doesn't make any differences.

rsync documentation


How to I resolve this error after trying to install mysql on Ubuntu Desktop 12.04?

In your datadir usually /var/lib/mysql there should be a file .err where you can find more details. Please have a look into that file. First you will see a lot of start messages and information about MySQL configuring its datadir. The problem starts when you come across an error or fatal message line. If you are unclear about the meaning please post the rest of the file.


Since your first rule doesn't trigger until the third time it has been traversed and your second rule deletes the table entry entirely, the first rule will only ever observe what it thinks is the first packet from that IP address.

Do not use the "remove" rule, and the "ping" table will be managed just fine.

EDIT: Here is one way to use iptables and the recent module to have a different ban time than the time to become banned. I have used 5 pings in 10 seconds as the ban criteria and only 120 seconds ban time (just to make it easier to check).

#!/bin/sh
FWVER=0.01
#
# ping_then_block Smythies 2018.02.05 Ver:0.01
#       An iptables recent module example of how to make the
#       ban time differ from the time to become banned.
#
#       See here:
#       https://askubuntu.com/questions/1002958/iptables-rule-matching
#
#       run as sudo
#

echo "Loading ping_then_block $FWVER..\n"

# The location of the iptables program
#
IPTABLES=/sbin/iptables

#Setting the EXTERNAL and INTERNAL interfaces and addresses for the network
#
# Smythies (for testing)
EXTIF="enp9s0"
EXTIP="192.168.111.104"
NETWORK="192.168.111.0/24"

UNIVERSE="0.0.0.0/0"

#Clearing any previous configuration
#
echo "  Clearing any existing rules and setting default policies.."
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -F FORWARD
# Otherwise, I can not seem to delete it later on
$IPTABLES -F ping-check
$IPTABLES -F ping-ban
# Delete user defined chains
$IPTABLES -X
# Reset all IPTABLES counters
$IPTABLES -Z

#######################################################################
# USER DEFINED CHAIN SUBROUTINES:
#
# ping-ban
#
# An ICMP echo request packet source IP address needs to added to
# the bad guy list
#
# Custom tables must exist before being referenced, hence the order
# of these sub-routines.
#
$IPTABLES -N ping-ban

$IPTABLES -A ping-ban -m recent --update --hitcount 1 --seconds 120 --name PING_BAN -j DROP
$IPTABLES -A ping-ban -m recent --set --name PING_BAN
$IPTABLES -A ping-ban -j DROP

#######################################################################
# USER DEFINED CHAIN SUBROUTINES:
#
# ping-check
#
# An ICMP echo request packet has arrived and the source IP
# address is either not on the bad guy list, or is but the penalty
# period criteria has been met.
#
# Check if the IP needs to be added to the bad guy list, and
# drop it if it does.
#
# Custom tables must exist before being referenced, hence the order
# of these sub-routines.
#
$IPTABLES -N ping-check

$IPTABLES -A ping-check -m recent --update --hitcount 5 --seconds 10 --name PING_TABLE -j ping-ban
$IPTABLES -A ping-check -m recent --set --name PING_TABLE
$IPTABLES -A ping-check -j ACCEPT

#
# If you are on the bad guy list, then you are banned.
#
$IPTABLES -A INPUT -i $EXTIF -m recent --update --seconds 120 --name PING_BAN -j LOG --log-prefix "BANPING:" --log-level info
$IPTABLES -A INPUT -i $EXTIF -m recent --update --seconds 120 --name PING_BAN -j DROP

#
# All ICMP? Or just ECHO requests?
#
$IPTABLES -A INPUT -i $EXTIF -p ICMP --icmp-type echo-request -s $UNIVERSE -d $EXTIP -j ping-check

$IPTABLES -A INPUT -i $EXTIF -s $UNIVERSE -m state --state ESTABLISHED,RELATED -j ACCEPT

echo ping_then_block rule set version $FWVER done.


you just need to type

 sudo apt-get dist-upgrade

Ignore the messages.

Answer found by : @guiverc : STUCK Ubuntu 18.04 upgrade from Ubuntu 17.10 (guiverc you can make an answer)


How to replace nginx with apache Ubuntu 14.04

Ok, so I followed the instructions in a forum (sorry, lost the url) for running apache2 WITH Nginx.

I changed the apache listening ports from 80 to 81 in

/etc/apache2/ports.conf

and

/etc/apache2/sites-enabled/000-default.conf

Apache2 is now working, tested by typing localhost:81 into the browser! Woohoo!


Setting default ubuntu desktop backgrounds

I want to  make my own  default wallpapers, which means not selecting the file and setting it as wallpaper but defining user desired images as default wallpaper.
Step 1:In the terminal type the following
 sudo gedit /usr/share/gnome-background-properties/precise-wallpapers.xml
/*This opens the a file where the location of the images is coded. */
 then in the page edit the following
Illustration with example:

    Morning Dew
    /usr/share/backgrounds/Morning_Dew_by_Lars_Clausen.jpg
    zoom
    #000000
    #000000
    solid

rename the following thing

1) morning dew  :- example
2) /usr/share/backgrounds/Morning_Dew_by_Lars_Clausen.jpg :- /usr/share/backgrounds/example.jpg

Then the file looks something like this

    example
    /usr/share/backgrounds/example.jpg
    zoom
    #000000
    #000000
    solid

End of step 1

Step 2: in the terminal
 sudo ls /usr/share/backgrounds/
    /then a list of images is displayed/
and copy a image named example.jpg  paste in this folder /do it any way you know/
 End of step 2

Now it is almost done check your background i.e right click + personalize
 then there appears your example.jpg as a default ubuntu wallpaper.
Select your own wallpaper which is now a default wallpaper.


Listed are the steps to install xfreerdp as a server in a linux machine. Using this, you can remotely connect to your linux machine.
NOTE: freerdp server is still in experimental stage and has several bugs once you get connected. It is no where near production.

Download the latest git master. Stable 1.1 has bugs related to freerdp-server.

git clone https://github.com/FreeRDP/FreeRDP.git
Install suggested dependencies:
sudo apt-get install build-essential git-core cmake libssl-dev libx11-dev libxext-dev libxinerama-dev \
libxcursor-dev libxdamage-dev libxv-dev libxkbfile-dev libasound2-dev libcups2-dev libxml2 libxml2-dev \
libxrandr-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libxi-dev
cd FreeRDP
cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON -DWITH_SERVER=ON
(see https://github.com/FreeRDP/FreeRDP/wiki/Build-Options for additional  build options)
make
sudo make install
Go to linux home directory
cd etc/ld.conf.d
create a file called freerdp.conf and insert in it:
usr/local/lib/freerdp
depending on OS dist may also have to add:
/usr/local/lib
sudo ldconfig
cd ~/Desktop/FreeRDP
sudo /sbin/ldconfig
check installation using which xfreerdp
NOTE: A file of known hosts is located at ~/.config/freerdp
ABOVE STEPS ALSO APPLY FOR INSTALLING freerdp client
copy server/X11/server.crt and server.key to ~/.config/freerdp/server/
Now you need to generate a hash of the User account of your computer in which the freerdp-server will run.  freerdp contains a hash tool to do this.
cd  ~/Desktop/FreeRDP/winpr/tools/hash
if your account username is USER and password is PASSWD and domain is DOMAIN (omit
domain if N/A), then run the  hash script as:
./winpr-hash -d DOMAIN -u USER -p PASSWD
The script will output a hash value
cd /etc/winpr (if dir does not exist then mkdir /etc/winpr)
NOTE: you will need to have admin rights to access /etc
In /etc/winpr create a file named SAM and copy the generated hash value in  it
run freerdp server with command xfreerdp-server

NOTE: If you get an error and freerdp stops, saying bind: address already in use it means another
TCP/IP process is using the same port address that freerdp-server is trying to access. Check running processes with command  netstat-tulpn.
NOTE: Connect to server using a client which has RemoteFX enabled, otherwise connection fails


terminal - Save chmod executable (./) as terminal command

I am assuming that the application you would like to start is located at /some/path and you are trying to start a program called executable, please change accordingly

add /some/path to your $PATH variable.

You can do this temporarily by typing export PATH=$PATH:/some/path
To do this permanently, but only for the current user add the above command to the end of ~/.profile
To achieve this globally open the /etc/environment file and make the end of the PATH=" line read :/some/path"

link your executable to a path that is already on the PATH variable (echo $PATH) e.g. ln -s /some/path/executable ~/bin


I want to see the electric sheep "screensaver" on my ubuntu boxes

According to the electric sheep Linux Client Instructions, the ichthyo/zeug PPA can be used (on Ubuntu 14.04, 15.04, 15.10, and 16.04):

Open a terminal by pressing Ctrl+Alt+T
Run the following:

sudo apt-add-repository ppa:ichthyo/zeug
sudo apt-get update
sudo apt-get install electricsheep


From your question you are using the HPLIP version downloaded and installed directly from HP themselves and not from the repository version in 12.04.

The repository version is v3.12.2.

This is likely to be a bug with the HP version -you should perhaps report this as a bug-report to HP directly themselves to get it fixed.

My suggestion would be to uninstall the HP version of HPLIP and then install the repository version.

uninstall

To uninstall the HP version of HPLIP:

Change to the directory you extracted the tar-ball with, for example

cd ~/Downloads/hplip-3.14
sudo make uninstall

Now do final cleanups:

sudo rm -rf /usr/share/hplip
sudo rm -rf /etc/hp
sudo rm -rf ~/.hplip
sudo rm -rf /var/lib/hp

Install HPLIP from the repository

You can use the Software Center to do this (search for HPLIP) or from the command line:

sudo apt-get install hplip


AppArmor was blocking the read. I went to /etc/apparmor.d/usr.sbin.named and added the line:

/var/lib/samba/private/named.conf r,

which allowed named to read the file.


How can I automatically mount an NTFS partition in Lubuntu on startup?

Two links to help you:

A GUI Tool: http://maketecheasier.com/easily-automount-windows-ntfs-partition-in-ubuntu/2012/04/06
Guide to modify fstab: http://www.computerandyou.net/2011/05/how-to-mount-a-windows-partition-on-linux-automatically-on-each-start-up/


How do I connect my bluetooth Jaybird Bluebuds X to my Sony VAIO?

Well I feel really stupid now. To put the Bluebuds into proper pairing mode, you have to have them off, then hold the power button until it turns on, AND starts pairing. Then it connects no problem. You might also have to go into the system sound settings and change the mode from Telephony Duplex to High Fidelity Playback. The volume controls on the Bluebuds work too and the microphone is detected (I haven't tried it).


The evince-gtk package installs its executable as /usr/bin/evince, so assuming the AppArmor profile is written conventionally, I think the answer you're looking for is yes.

Just to be clear, though, AppArmor isn't protecting evince. It's protecting you and your system from evince.


SSH from client VM to a server VM - Permission denied

Since the client is unable to even attempt to connect to the server try netstat -tln on the server. It sounds like it doesn't have port 22 open for some reason.

If :22 isn't listed then try restarting the ssh service.

Also when attempting to connect to a server via ssh the user portion (before the '@' needs to be a user that is on the server. It sounds like you are trying to use the user from the sshClient to login to the sshServer, when in reality this doesn't make sense.

For example:
Let us say that The sshServer has a user ExtraUser and the sshClient has a user Karen. If Karen wants to ssh into the server she will need to type ssh ExtraUser@sshServer. This will have her login to the sshServer as ExtraUser, not as Karen. This is important because Karen's user account/permissions is located on the sshClient not the sshServer.


Green flashes when playing video with VLC and Compiz enabled [Ubuntu 15.10 and Ubuntu MATE 15.10]

I has the same issue. Had found something similar out there.

open compizconfig
go general -> composite
uncheck "unredirect fullscreen windows" flag
or better fix line "unredirect match" changing "=Vlc" to "=vlc".


Using "users" command gets my name 2 times?

This is normal expected behaviour.

You see your user name twice because you are logged in twice.

[simmel]@[mars]$ users
simmel simmel

The second command

who

shows which user is online right now and it looks like you were online at that time with Graphical Display :0 and pts/0 (a terminal window).

[simmel]@[mars]$ who
simmel   tty8         2015-03-30 11:15 (:0)
simmel   pts/3        2015-04-09 14:16 (:0)

After opening some more terminals it looks like this:

[simmel]@[mars]$ who
simmel   tty8         2015-03-30 11:15 (:0)
simmel   pts/3        2015-04-09 14:16 (:0)
simmel   pts/4        2015-04-09 14:54 (:0)
simmel   pts/8        2015-04-09 14:54 (:0)

After opening more windows the count goes up in users:

[simmel]@[mars]$ users
simmel simmel simmel simmel


Why are my two ubuntu installs on separate partitions sharing the same apt-get data?

I suppose that you can solve your problem moving the following directories

~/.config/software-center
~/.cache/software-center

somewhere out of your home.

You have two alternatives:

continue on both installations with the present content of such dirs;
start with an empty content.

In my opinion the second alternative is recommended, as it will have the same effect of starting Software Center for the first time.

Now close Software Center, if it is running, and do a preventive backup of such directories, in case something will go wrong.

First Alternative

So, to begin with the first alternative, do the following.

Login on the first installation and do:

# Create a local copy of 'software-center' dirs
sudo mkdir -p /usr/local/software-center/{.config,.cache}
sudo chown -R $USER:$USER /usr/local/software-center
cp -a ~/.config/software-center /usr/local/software-center/.config/
cp -a ~/.cache/software-center /usr/local/software-center/.cache/

Login on the second installation and do:

# Same as before
# Create a local copy of 'software-center' dirs
sudo mkdir -p /usr/local/software-center/{.config,.cache}
sudo chown -R $USER:$USER /usr/local/software-center
cp -a ~/.config/software-center /usr/local/software-center/.config/
cp -a ~/.cache/software-center /usr/local/software-center/.cache/

The following commands, operating on the HOME, should be executed only on one of the two installations, and they will have effects on both installations.

# Remove the original common copy
rm -r ~/.config/software-center
rm -r ~/.cache/software-center

# Link local copy to where 'software-center' expect to find dirs
ln -s /usr/local/software-center/.config/software-center ~/.config/software-center
ln -s /usr/local/software-center/.cache/software-center ~/.cache/software-center

Now the two installations points to different versions of the dirs.

Second Alternative

Regarding the second alternative, you can substitute the four cp commands with two mkdir, one for each installation:

mkdir /usr/local/software-center/{.config,.cache}/software-center

all other commands could rest the same.

I choosed /usr/local/software-center as the base dir for the local copies, but you can choose every dir you want, as long as it do not belongs to home.


If you downloaded the default version from the ubuntu website, it's probably 64-bit. You need to download the 32-bit version for your old CPU.

Here's the link for the latest 13.10:

http://www.ubuntu.com/download/desktop/thank-you?release=latest&bits=32&distro=desktop&status=zeroc

If you prefer the old 12.04 LTS (Long Term Support):

http://www.ubuntu.com/start-download?distro=desktop&bits=32&release=lts


How do I restore sddm after corrupted update?

Finally got it over the weekend.  Lots of medium-sized issues, and (if you read that far) a theory as to the cause.

Tried update from 15.04 install disk.  It died in the same way.
Did fresh install (over formatted disk) from 15.04.  It died the same
way.
Did fresh install from 15.10 disk.  It hung up in the middle.
Brought in a linux admin friend.  He found the 3-year old "you MUST" click the format button on / or the installer hangs" information.  After that it installed fine, including SDDM start, running X, etc.

Currently the system is up and restoring from backup.  It shows that its using nouveau drivers, not nvidia drivers.  I'm not touching it.  It's adequate for now.  The issue was most likely some combination of corruption and crazy version mismatch between nvidia and mesa.


What is the expected behaviour for ecryptfs?

I think your testing results for Xubuntu are the expected/desired behaviour; while a user is logged in (mounting/decrypting their home folder) then root can also see their files. Otherwise, when a user's logged out their files are supposed to remain encrypted/unmounted.

Why that's not happening... I doubt it's a disk cache keeping the files visible after they've been unmounted. Or maybe eCryptFS isn't configured to properly unmount when logging out.

Does sound like a Ubuntu/Lubuntu 15 bug. Finding a quick/easy way to repeat it on a fresh install on a VM should be very helpful to the bugfixers. There may already be an existing bug report about it, I didn't search, but here's the Ubuntu help page on "good & detailed bug reports"

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


Problem with internet access on virtualbox

It's disabled because you accessing the settings of your VM while guest OS is running. You should shut it down first, and then try to use NAT instead of Bridged mode.


You have confused the Package Management System. You should reinstall tomcat7, with:

sudo apt-get install --reinstall tomcat7

Then, when the filesystem contents and the Package Management System agree,

sudo apt-get remove tomcat7


In your browser open CUPS

cups -->administration-->deafault options-->adjustment

Change the values as follows:

Black ink density adjustment.:  2
Top Margin: 10
Bottom Margin:  150
Left Margin:    10
Right Margin:   10
Shift Output Horizontally:160
Shift Output Vertically: 50

I have had similar problem and this worked for HEWLETT-PACKARD-DESKJET-720C on Ubuntu 12.04.


How to use CuraEngine From command Line in ubuntu?

supporse you are running the curaengine on ubuntu14.04LTS.
according to the curaengine manual
git clone
    https://github.com/Ultimaker/CuraEngine.git
    https://github.com/google/protobuf.git
    https://github.com/Ultimaker/libArcus.git

compile the protobuf
arrording to https://github.com/Ultimaker/CuraEngine#installing-protobuf, you can success this step.
compile the libArcus
according to https://github.com/Ultimaker/libArcus#installing-protobuf
but when you run the make .., you will come to an error.
~/libArcus/build$ cmake ..
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (Required is at least
  version "3.4")
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindPythonLibs.cmake:208 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:11 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/lufei/libArcus/CMakeFiles/CMakeOutput.log".

then sudo apt-get install python3-dev
the key step is install the pip
wget https://sourceforge.net/projects/pyqt/files/sip/sip-4.18.1/sip-4.18.1.tar.gz
tar xzvf sip-4.18.1.tar.gz
cd sip-4.18.1
python3 ./configure.py
make
sudo make install

comment the 28th line ../cmake/FindSIP.cmake to ignore the pythonn-dev check, as you have install the python3-dev. then you can sussecc compile the libarcus.
compile the curaengine
to compile curaengine you need g++ 4.8, while g++4.8 install in ubuntu14.04lts.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo apt-get install g++-4.9
sudo ln -s /usr/bin/g++-4.9 /usr/bin/g++ -f
sudo ln -s /usr/bin/gcc-4.9 /usr/bin/gcc -f

when you compile the curaengine it will output ERROR ...., just ignore it.
then everything done.
just run ./CuraEngine slice -j ~/prusa_i3.def.json -o output.gcode -l ~/source.stl
the prusa_i3.def.json and the fdmprinter.def.json you need download from the cura repo.


Can I see more details of an aptitude dist-upgrade?

If you install the apt-listchanges package, you get more options. You can get apt-get and aptitude to show the changelogs of updated packages (either the full changelog or just what's new in the upgrade), and to prompt for confirmation after you've seen the changelogs. By default, after you install apt-listchanges, only important news are shown; to see changelogs, run dpkg-reconfigure apt-listchanges.

In Debian, the related package apt-listbugs fetches bug reports from bugs.debian.org. I'm not sure if it's been ported to look at launchpad.net for Ubuntu.


Does opencv3 support measurementMatrix attribute for kalman filter?

According to this:https://medium.com/@debugvn/installing-opencv-3-3-0-on-ubuntu-16-04-lts-7db376f93961
I've installed a version of opencv3 (3.4.3) with: pip install --user opencv-contrib-python and it worked. It looks like the previous version of opencv I had installed didn't support these attributes of kalman filter.


bash upgraded but its version doesn't change

You should also check the package version:

$  bash --version
GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ apt-cache policy bash | head -n3
bash:
  Installed: 4.4-5ubuntu1~16.04.york0
  Candidate: 4.4-5ubuntu1~16.04.york0

As can be seen, the package and bash version strings have differences, as they're set by different people. In your case it might well be the case that nothing changed upstream, and changes were entirely by the package maintainer, so bash --version remains unchanged, but the package version changed.


Windows 8 OS not detected, 12.04 install (new computer build, UEFI/Secure Boot enabled)

Installing Ubuntu

If your system does not detect Windows 8 OS but want to check where it is, you could just mount all /dev/sdaN (N is number, you can type ls /dev/sda* to view all partitions) and check which partition is for windows.

If you want to allocate another partition for Ubuntu (Recommended), minimize a partiton, and mount the free space as ext4 file system and set it as root on the installation window.

Then GRUB would not detect Windows 8, so..

Try 'Boot-repair'.

sudo apt-get install boot-repair
boot-repair

It would fix almost all GRUB/bootloader problems. I solved my problems too with it.

Another solution (Easy):

Check your System settings (BIOS settings). If there is Windows 8 bootloader, try exiting GRUB when booting. Then the Windows 8 bootloader screen would appear.


How to add the LibreOffice StartCenter to the dash

Try:
sudo gedit /usr/share/applications/libreoffice-startcenter.desktop

Look for the line:
NotShowIn=GNOME;

And comment it out by placing # in front, so it becomes:
#NotShowIn=GNOME;


How to transfer files to Windows Server through rdp?

If you've not already tried it, there's freerdp-x11 client.

Installation:

sudo apt-get install freerdp-x11

Documented Description:

RDP client for Windows Terminal Services

  FreeRDP is a client for Windows Terminal Services implementing the
    Remote Desktop Protocol (RDP).

  Currently, the following Windows Versions are supported:

  Windows NT Server
  Windows 2000 Terminal Server
  Windows XP
  Windows 2003 Server
  Windows Vista
  Windows 2008 Server
  Windows 7

  This package contains the X11 based client.

Homepage: http://www.freerdp.com


Ubuntu 12.04 Virtual Box not reading disk?

The answer was to find the UUID of the drive using blkid and inserting a line in fstab...

UUID=<id of drive> /media/ntfs ntfs 0 1


Boost.Numpy installed from source but is not working

Since you're including the header as

<boost/python/numpy.hpp>

it expects to find numpy.hpp in a subdirectory python of a directory boost somewhere on either the default include file search path, or a path supplied to the compiler via the -I option

However, the file is actually at

/usr/local/include/boost/numpy.hpp

with no python subdirectory - so you should include it in your C++ file as just

#include <boost/numpy.hpp>

and then telling g++ to add /usr/local to the include file search path

g++ -I/usr/local/include test.cpp


Complete Instructions for a new installing without uninstalling from the old box.
https://www.virtualbox.org/wiki/Linux_Downloads
note: After clean uninstall you should reboot the system to load the kernel-module on a new, and while uninstall all drivers and services from vm should stopped.
The number self mismatched because the said problem - non equivalence - maybe with the newer versions your bug is gone, or maybe not all old services was unload while installation!


making "gnome-system-monitor" a custom shortcut "ctrl+alt+del" like windows "Task Manager" isn't working

In fact, you cannot use Ctrl+Alt+Del as your shortcut, because it is taken by a logout message, as I just checked:

In order to enable it, you have to go to the keyboard shortcuts you went before, and disable that shortcut or give it another key binding:

Then, you will be able to add your custom shortcut.
In order for this to work for sure, you have to completely disable the other shortcut:

In order to do this, select the shortcut and press the Backspace button.

Now, you have to go to the Custom Shortcuts section and add a new shortcut, containing the following:

Name: Whatever relevant

Command: gnome-system-monitor

I did this and it works fine in Ubuntu 12.04!


Wifi 5GHz does not work, my band tu is all disabled. I doesn't see my 5ghz router

As you can see from scanning, the router is on channel 36. The image you posted, the result of iw list, shows channel 36 as an available channel.

Your iw reg get shows that your country code is unset. As the permissible channels often varies from one country to another, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, restart Network Manager:

sudo service network-manager restart

Now do you see your router?

nmcli dev wifi list

Can you connect?


Ubuntu script that runs commands after su - user

When my regular user desktop needs to run a script requiring sudo I create an entry like this:

Then I write a wrapper script within the path to elevate to sudo level:

$ cat /usr/local/bin/eyesome-cfg-desktop-wrapper.sh

#!/bin/bash

# NAME: eyesome-cfg-desktop-wrapper.sh
# PATH: /usr/local/bin
# DESC: Wrapper script to call `eyesome-cfg.sh`
# DATE: Sep 24, 2018. Modified June 6, 2019

# NOTE: Designed to be called from ~/Desktop/eyesome-cfg.desktop

# UPDT: 2019-06-06 Name change to reflect wrapper script.

PROGNAME="eyesome-cfg.sh"

tty -s;
if [[ "0" == "$?" ]]; then
    echo "$PROGNAME cannot be called from background process."
    exit 1
fi

if [[ $EUID != 0 ]]; then

    # Get sudo password
    Password=$(zenity --password --title="Password for $PROGNAME")
    encryptPassword=$(echo -n "$Password" | md5sum)

    # After viewing encrypted password once, comment out line below.
    # echo "md5sum: $encryptPassword"

    # Set value in quotes below to encryped password revealed above.
    if [[ "$encryptPassword" != "005e160c7bcfacf3d818d66e5856d75a  -" ]]; then
        echo "Invalid password!"
        exit 1
    fi

fi # non-terminals can't enter password.

# Call eyesome-cfg.sh with any parameters passed to this wrapper sript
if [[ $EUID == 0 ]]; then
    sudo "$PROGNAME" "$@" # Already running as sudo.
else
    echo $Password | sudo -S "$PROGNAME" "$@"
fi

exit 0

Note the first time you run the script remove the comment (#) on this line:

    # echo "md5sum: $encryptPassword"

Then the script will display your encrypted password. Take that encrypted password and enter it a couple lines below:

    if [[ "$encryptPassword" != "005e160c7bcfacf3d818d66e5856d75a  -" ]]; then

Of course this is all optional and you can skip encryption and have your password coded into the script in regular text for anyone to read. But I wouldn't do that...


Unable to access qBittorrent Web UI when starting the service as another user

Yay, Got it working!
Seems like the problem was within the iptables.sh file.

I changed the:

  export LOCALIP="192.168.1.60"

to

  export LOCALIP="192.168.1.0/24"

Which makes any devices within 192.168.1.0 subnet, able to reach the Web UI.


How can I boot with an older kernel version?

The simplest way to display your Grub is to press and hold the SHIFT button while booting.

As an alternative, you can always display Grub without it booting any particular kernel:

gksudo gedit /etc/default/grub

change GRUB_TIMEOUT to -1 and comment out GRUB_HIDDEN_TIMEOUT

finish off by running

sudo update-grub


couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

This is a known bug:

https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/1543280

They suggest running the following command:

sudo chown _apt /var/lib/update-notifier/package-data-downloads/partial/

Give it a try and see if it fixes the issue.


xset startup command not running on startup

I found a solution from this post:

https://bbs.archlinux.org/viewtopic.php?id=104338

The problem seems to be caused by "timing", and the solution is:

(sleep 15s && xset [your settings...]) &

The solution is very inelegant, but it works for now.  I hope someone can find out the exact cause and a better solution.


You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run nvidia-xconfig as root), and restart the X server

It seems you didn't actually install the driver. Have you tried:

apt-get install nvidia-current

before running nvidia-xconfig?


I have installed Brave, but cannot find the app


14.04 - Unable to connect Windows PPTP VPN

Try to make vpn connection with this script, not with NM.

Maybe on this way all will work.

Create file with some name and put in

nano name_of_script

script

#!/bin/bash
function routeadd {
    route add -host xxx.xxx.xxx.xxx dev ppp0
    route add -net xxx.xxx.xxx.xxx/xx dev ppp0
}
function makepptp {
   echo pty \"pptp xxx.xxx.xxx.xxx --nolaunchpppd\" >> /etc/ppp/peers/vpn;
   echo remotename PPTP >> /etc/ppp/peers/vpn;
   echo require-mppe-128 >> /etc/ppp/peers/vpn;
   echo file /etc/ppp/options.pptp >> /etc/ppp/peers/vpn;
   echo ipparam vpn >> /etc/ppp/peers/vpn;
pppd call vpn &
}
if [ -a /etc/ppp/chap-secrets ];
        then
        rm /etc/ppp/chap-secrets
    echo $1 PPTP $2 '*' >> /etc/ppp/chap-secrets;
else
    echo $1 PPTP $2 '*' >> /etc/ppp/chap-secrets;
fi

if [ -e /etc/ppp/peers/vpn ];
    then
    rm /etc/ppp/peers/vpn;
    echo name $1 >> /etc/ppp/peers/vpn;
    makepptp;
    sleep 8;
    routeadd;
else
    echo name $1 >> /etc/ppp/peers/vpn;
    makepptp;
    sleep 8;
    routeadd;
fi

In script change you host ip and add network or/and host witch you wish to connect via vpn

Usage:

sudo /path_to_script/name_of_script username password

note: set execute permision to script


In a nutshell: nano is simple, vim is powerful.

If you only want to simply edit some textfiles, nano will be enough. In my opinion, vim is pretty advanced and complicated to use. You should expect some time to get into it before you're able to properly use it.

Funny (but not too unrealistic) quote about vim: (source)

  I've been using vim for about 2 years now, mostly because I can't figure out how to exit it.


Using postfix and lp command

First Solution: CronJob

I successfully print incoming mail using this method. I configured postfix for using Maildir by adding this line to main.cf:

home_mailbox = Maildir/

I wrote a short script called printmails:

maildir="$HOME/Maildir/new/"
for entry in `ls $maildir`; do
    cat $HOME/Maildir/new/$entry | lp -d PRINTER_NAME
    mv $HOME/Maildir/new/$entry  $HOME/Maildir/cur/
done

Then I run script for cron.

Second Solution: Intermediate quick print

you can add alias for user in /etc/aliases:

user: "| lp -d PRINTER_NAME"

and run

newaliases


In Ubuntu 17.10 key combinations like Ctrl + Shift + Alt + ... don't work

There's an simple workaround here:

  In case you don't need to switch between keyboard layouts, you can get
  some shortcuts working again if you use the "Tweaks" tool for Gnome.

sudo apt install gnome-tweak-tool

  Then

  Open "Tweaks"
  Select the tab "Keyboard & Mouse"
  Click "Additional Layout Options"
  Disable entries in the "Switching to another layout" dialog

  In my case this gave me back the "ALT + SHIFT" combinations which are
  essential in the Eclipse IDE for refactoring.

It works beautifully!


Problem with GTK+ themes on Ubuntu GNOME

It's simply an issue of incompatibility. Both Matcha and Sierra require GTK+ 3.20 or later, whereas in your system you have GTK+ 3.18 (3.18.9-1ubuntu3.3 to be precise as per the info you provided). Hence those themes don't work properly in your system.

So either you'll have to install and use a GTK+ theme which supports version 3.18 or you may request the developers of these themes to provide support for GTK+ 3.18 and hope that they'll grant your request.

You may also consider updating to a newer release. Both Ubuntu 17.10 and Ubuntu 18.04 LTS (to be officially released in a week or so) have GTK+ 3.22.

I couldn't find any info about the "Ultimate Blue" theme you mentioned, but I presume something similar happens with it.


T460s Ultra Dock not detecting three displays

I'm stupid guys, I didn't see that "Mirror Displays" was checked.


How do I rotate my display when not using an X Server?

You can rotate your virtual framebuffers using fbcon.  0 through 3 to represent the various rotations:

0 - Normal rotation
1 - Rotate clockwise
2 - Rotate upside down
3 - Rotate counter-clockwise

These can be set from the command line by putting a value into the correct system file.  Rotate the current framebuffer:

echo 1 | sudo tee /sys/class/graphics/fbcon/rotate

Rotate all virtual framebuffers:

echo 1 | sudo tee /sys/class/graphics/fbcon/rotate_all

If you want this to happen automatically when you start your system, you need to modify your boot loader configuration to give it the correct options.  In /etc/default/grub add fbcon=rotate:1 to the GRUB_CMDLINE_LINUX line:

GRUB_CMDLINE_LINUX="fbcon=rotate:1"

(Don't forget to run sudo update-grub after changing this file.)

Sources: Rotate Screen, not running X windows, Rotate console on startup (Debian)


Will Ubuntu (GNOME) 16.10 use GNOME 3.22?

No, it will ship with GNOME 3.20 as GNOME 3.22 will be released after the necessary freeze for Ubuntu thus meaning that it will not be able to be shipped in as default.

Although you may upgrade to it on an existing installation with (this will add the necessary semi-unofficial (though maintained by the official Ubuntu GNOME team so it is safe security wise) PPAs and give you the latest version of GNOME available for your version (the next one up)):

sudo apt-add-repository ppa:gnome3-team/gnome3-staging
sudo apt-add-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get dist-upgrade

They haven't yet done an article for 16.10, but you can see that this is the case for 16.04: How To Install GNOME 3.20 on Ubuntu 16.04 LTS

Adding the PPAs will give you a lot of warnings about how it might break your system etc, but I and many others have installed from there and nothing bad has happened. If it was released before the freeze which prevents it being shipped by default you would get the same packages in this PPA so they just say this because it's the latest and could be unstable, but I've never had any problems with it.


What are the appropriate mount options for a shared NTFS partition on an SSD in a dual boot Ubuntu/Windows setup?

noatime:
set this option
To answer your second question first: noatime/relatime does work in NTFS according to this conversation.

discard: not avilable
According to this site there is no TRIM option on NTFS.

Moreover TRIM is in your scenario in my opinion not needed.

Let me explain:
According to Wikipedia;
A Trim command (commonly typeset as TRIM) allows an operating system to inform a solid-state drive (SSD) which blocks of data are no longer considered in use and can be wiped internally.

The only reason that trim is needed is to stop the SSD from moving already deleted (4k) blocks around. Something that is not bound to happen on a short term (unless disk is almost full with deleted and non-deleted files). Actually, performing a trim once a month on a regularly used SSD is probably often enough.

The need to use trim is much less often than you think.

No TRIM:
If you have a lot of big files (and very few small files) you might choose for a block size of 512kB (as big as one or several eraseblocks) therefore eliminating the need for trim altogether. As far as my knowledge about NTFS goes, NTFS can't be formatted with blocks larger than 64k but this should be practically sufficient in most cases.

mkntfs:
Command in Ubuntu that can format NTFS with a blocksize that you can specify. As far as I know Windows can't do this but reads and writes happily from/to it.

Formatting:
Important with SSD's is that the partition always begins on an erase block boundary.
While normal read/write blocks are 4k, eraseblocks are often more like 128k 256k 512k. Rule of thumb is to leave a hole of 1MB counted from sector 0.

Possibly you knew this already, but it might make you choises easier. I wrote this especially with your usage scenario in mind.


No Ubuntu One sync in my tomboy notes sync preferences

Editing the server field will enable the save button for you:

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

This is a known issue with the Tomboy in the released version of 11.10: https://bugs.launchpad.net/ubuntuone-servers/+bug/845321

The fix is already waiting to make its way into the proposed queue (version 1.8.0-1ubuntu1.1) and then land as an update.


The reason ffmpeg, mencoder, et al still exist (and are still so popular) is because if you do learn them, you get the best results. I'm not going to bash on about that but if you find you're not getting good results, you might want to learn a little bit and see if that improves things.

Anyway. Handbrake is my go-to transcoer. It's just a GUI for various encoders and it "just works" 99% of the time. The best thing I find over applications like Transmageddon (and a billion other one-click transcoders) is you can actually tweak things pretty well, queue them up and leave everything going over night.

How do I install Handbrake?


When is octal permission 1, 2, or 3 useful?

Useful and can be seen aren't the same thing, and many thinkable combinations aren't seen.

But these permissions are very useful for fast processing in a simple way, because they are algebraic, which means you can add them, subtract, test them. And since they are in groups below 8, the binary operations are nearly as simple in decimal, without thinking in hexadecimal.

741=(4+2+1, 4, 1)=111:100:001

An owner who wants to write to to the file needs the permission:

2-- which is 010:000:000 or
-2- which is 000:010:000 or
--2 which is 000:000:010

it's easy to be seen, that it matches in

111:1--:--1
-1-:---:---

Should octal permissions 1-3 be used frequently?

No.
If so, when?

not applicable
Can you cite specific examples?

No.


Ubuntu running far slower than Windows 10

I appear to have fixed it: I had nomodeset in the boot options, removing it has reduced the choppiness and animation lag.


How to uninstall a which did not get installed properly

Run those commands:

sudo rm /var/cache/apt/archives/lock

sudo apt-get update

sudo apt-get remove dropbox


Ubuntu Unity 15.04: Black Screen at Login

In the Grub menu press the button in the bottom, which brings kernel launch options and add "nomodeset" there (dont remember what button it was).

Then it will most probably boot you into a desktop.

Then if your laptop is an optimus one use the following instructions in this answer:
Nvidia Driver and Heating Problem


This is happening to my Lenovo T510 with Kubuntu 14.10 as well, several times every day. Ctrl+Alt+F1 followed by Ctrl+Alt+F7 "unfreezes" KDE, so no need to reboot for me. It's very annoying, though.


Wine provices a compatibility layer that translates windows system calls in to POSIX system calls that Ubuntu can understand.

Virtualbox provides emulations of a system environment that allows you to run another operating system. This is still the preferred way to run original software in an expected operating system. Obviously both solutions are slower than using software natively. In my experience, Windows 10 in a virtualbox on Ubuntu runs slower than Windows 7 does, but that might depend on my hardware.

Docker provides an abstraction layer using kernel virtualization, but it does not provide windows system calls, so it will not help you run windows software that does not run on Ubuntu without Docker.


Libreoffice crash after updating when file dialog needs to appear

After running libreoffice with --backtrace, I found that it's an error with the KDE file dialogs. A workaround is to turn on "Libreoffice Dialogs" in Tools>Options>General, as described in the bug thread.


How do I install unsettings in ubuntu 12.10?

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

This tells you that another dpkg or apt command is already running.
Please inspect your running processes with `ps auxw |egrep -e 'apt|dpkg'

If such a program is running, kill it.
If really no such program is running, delete the lock file: sudo rm -f /var/lib/dpkg/lock

For sanity invoke dpkg --configure -a


The -o option which you want was added in 2017.  Your version is from 2016.  You need to upgrade.

Details

Note the year in your version message:

Copyright (C) 2016 Free Software Foundation, Inc.

Now, look at this section from the findutils ChangeLog:

2017-06-08  Bernhard Voelker  <mail@bernhard-voelker.de>

        xargs: add -o, --open-tty option
        This option is available in the xargs implementation of FreeBSD, NetBSD,
        OpenBSD and in the Apple variant.  Add it for compatibility.

Workaround

man xargs from the 2016 version shows this example for a work-around:

xargs sh -c 'emacs "$@" < /dev/tty' emacs

This example is for emacs but the same idea applies to any other command that you may wish to run.  Like the -o option, this approach assures that the command that is  being run has access to a terminal.


How to edit Grub from live usb / switch to safe graphics

Boot repair did it for me. Thank you for your help.


What is the default values of KMP_AFFINITY variable?

According to the Intel docs:

  Affinity Types

  Type is the only required argument.

type = none (default)

  Does not bind OpenMP threads to particular thread contexts; however, if the operating system supports affinity, the compiler still uses the OpenMP thread affinity interface to determine machine topology. Specify KMP_AFFINITY=verbose,none to list a machine topology map.


Ubuntu installation crashes when using different username

Any chance non-ASCII characters are being entered?
It is usually recommended to only use usernames that
begin with a lower case letter or an underscore, followed
by lower case letters, digits, underscores, or dashes.
They can end with a dollar sign. In regular expression
terms: [a-z_][a-z0-9_-]*[$]?

On Debian, the only constraints are that usernames must
neither start with a dash ('-') nor plus ('+') nor tilde
('~') nor contain a colon (':'), a comma (','), or a
whitespace (space: ' ', end of line: '\n', tabulation:
'\t', etc.). Note that using a slash ('/') may break the
default algorithm for the definition of the user's home
directory.

Usernames may only be up to 32 characters long.

That's from the useradd manpage.
I don't see where the entry above would violate any of those rules.
I used the sudo useradd rajeevalochana command and it worked on 20.04.1 here:
/home/rajeevalochana$ ll
total 20
drwxr-xr-x 2 rajeevalochana rajeevalochana 4096 Dec 29 14:09 ./
drwxr-xr-x 5 root           root           4096 Dec 29 14:09 ../
-rw-r--r-- 1 rajeevalochana rajeevalochana  220 Dec 29 14:09 .bash_logout
-rw-r--r-- 1 rajeevalochana rajeevalochana 3771 Dec 29 14:09 .bashrc
-rw-r--r-- 1 rajeevalochana rajeevalochana  807 Dec 29 14:09 .profile


iBus works in Gedit but not in Libreoffice

Thanks for those who suggested possible solutions.

The following suggestion works for LibreOffice, gedit, and terminal. (It still doesn't work in Thunderbird, though.)

http://user.services.openoffice.org/en/forum/viewtopic.php?f=16&t=37863&sid=6cd6626c2ec5ddf283d4d6043b11acfb

Re: Language issues after switching to Standard OOo

Postby Robert Tucker » Fri Jan 28, 2011 3:08 pm
Have you tried:

$ export XMODIFIERS=@im=SCIM

$ export GTK_IM_MODULE=scim

$ export QT_IM_MODULE=scim

$ scim -d


The php command line is located in php5-cli package (apt-cache policy php5-cli), but since 5.3.28 has never been a part of Ubuntu, so I suspect that you have a local (compiled from sources) installation of php CLI probably in /usr/local.


Make sure that the Universe repo is enabled, and try the same command again:

sudo apt-get install ziproxy

Or download from Source.

To enable Universe Repo from command line, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo gedit /etc/apt/sources.list

Once the file opens, make sure the lines below are in there, otherwise; add them in

deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe

Then do

sudo apt-get update

Then install ziproxy.


How do I install the Travis Client on Ubuntu 16.04?

I also faced a similar problem when I was trying to install travis. ruby-dev was not installed in my system. I reran the command to install travis after installing ruby-dev.

I installed ruby-dev using the command below.

sudo apt-get install ruby-dev

I referred to this answer. Hope it helps. https://stackoverflow.com/questions/4304438/gem-install-failed-to-build-gem-native-extension-cant-find-header-files


Have you perhaps selected an English UK keyboard instead of an English US keyboard to match your PC keyboard.
I have made this self-same error before and had similar results.
I found another question further down which relates to your question
Probably by switching from the English US keyboard layout to a layout of your choice. help.ubuntu.com/stable/ubuntu-help/keyboard-layouts.html – Gunnar Hjalmarsson Aug 27 at 21:04
My laptop is HP Omen HP-Laptop-15-dc0xxx I'm facing an issue that the symbol @ is achieved by clicking SHIFT+(double inverted comma symbol) and vice versa. Similarly for # symbol to be typed I need to press backslash symbol. How can I fix this?
keyboard keyboard-layout
share edit
asked Aug 27 at 20:33
Aman
1
2
Probably by switching from the English US keyboard layout to a layout of your choice. help.ubuntu.com/stable/ubuntu-help/keyboard-layouts.html – Gunnar Hjalmarsson Aug 27 at 21:04


Logitech Momo Racing: wheel and pedals move mouse

Had the same issue on antix(debian 10 based) with a joystick from Greenasia, though my mouse was still usable. Removing xserver-xorg-input-joystick did the trick
sudo apt-get remove xserver-xorg-input-joystick


Ubuntu 14.10 Refuses to Login to New User with Existing /home Directory

After deleting almost all of the hidden files and folders from my existing home directory (except folders .ssh and .gnupg), I was able to successfully login.


How do I set the Banshee context menu to move to trash instead of delete from drive?

Unfortunately, there's currently no way to do this within Banshee. I don't know of any extensions that add this functionality -- it may be out of the scope of an extension.

It has been reported to the Banshee team, though, so if you're interested in staying up-to-date with the issue, it's tracked here: https://bugzilla.gnome.org/show_bug.cgi?id=545937


19.10 post-install boot failure, Dell Precision 5820

Okay, I have faced a similar issue in 18.04 LTS, and what worked for me was to change acpi value at the bootloader screen, and append a nomodeset after quiet splash at the end of the line that starts with linux /boot/vmlinuz. Press Ctrl + X to boot with the modification.

You can fix it permanently after you boot into your system by changing the /etc/default/grub file.

Run sudo gedit /etc/default/grub in your terminal and update the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
  Save the file and run sudo update-grub2

Reboot now to see the changes. Let me know if it helps.


What is the proper way to open a url from a scope in c++?

As I suspected, there is a good way to do this.

1: in the scope-class you have to override the activate-method

unity::scopes::ActivationQueryBase::UPtr NewsScope::activate(const sc::Result &result,
                                              const unity::scopes::ActionMetadata &metadata) {
    return unity::scopes::ActivationQueryBase::UPtr(new NewsAction(result, metadata));
}

2: In the unity::scopes::ActivationQueryBase class (here NewsAction) you  define the activate-method, for example like this:

sc::ActivationResponse NewsAction::activate()
{
    initScope();

    if (openWithoutPreview) {
        return sc::ActivationResponse(sc::ActivationResponse::Status::NotHandled);
    }

    return sc::ActivationResponse(sc::ActivationResponse::Status::ShowPreview);
}

(watch the activation responce: NotHandled tells the scope to send it to the external dispatcher.)

3: Finally, if create the cards (CategorisedResult) in the searchquery-class, you have to tell them to intercept the activation. (Result.set_intercept_activation()) For example, like this:

for (const Result &result : results) {
    sc::CategorisedResult card(category);

    fillCard(card, result);
    card.set_intercept_activation();

    // Push the result
    if (!reply->push(card)) {
        // If we fail to push, it means the query has been cancelled.
        // So don't continue;
        return;
    }
}

I found the solution (hidden) in this manual:
https://developer.ubuntu.com/api/scopes/cpp/development/index/


Please follow mentioned below steps:

Step-1:

sudo apt-get update

Step-2:

sudo apt-get install git

Step-3:

Sudo apt-get autoclean

Step-4:

Sudo apt-get autoremove


why am i unable to access internet even with being connected to network?

From the output of the network diagnostic script posted by OP in the chat it became apparent the /etc/resolv.conf as well as /run/resolvconf/resolv.conf are missing. For whatever reason they were not dynamically created.

The solution to the issue was to create the /etc/resolv.conf manually with the following two steps in command line:

sudo tee  /etc/resolv.conf <<< "nameserver 127.0.1.1"
sudo service network-manager restart

Sidenotes

127.0.1.1  address is to allow dnsmasq service to use the dns provided from the router. It  could be replaced with custom dns, such as 8.8.8.8 or 208.67.220.220 if one so wishes
Since having static /etc/resolv.conf file works, that's a sufficient solution for 90% of the needs, however if one desires one could reconfigure the resolvconf package to dynamically (automatically) create that file. The command for that would be sudo dpkg-reconfigure resolvconf


upgraded to 18.04, now thunderbird will not connect to server

Fixed it.  Found this solution.

Comcast servers will not except IPv6.... Disable it in Thunderbird: Here's how: in Thunderbird, goto Edit>Preferences>General Tab. On the General screen, select "advanced" tab > "General" subtab, and in the lower right corner find the button "Config Editor" Click on it, acknowledge the warning, and scroll a long ways down to: network.dns.disableIPv6 (default: false) Double-click on the line, and the value will change to "true" Back out and Okay, shut down and restart Thunderbird, and your client will connect to the imap server in a flash.


Launcher Icons stop working on Ubuntu 14.04

If you're using multiple monitors and have your launcher only displaying on one. Try showing your launcher on all displays.

This fixed the problem for me.


Hard drives and partitions not showing up under files > on this computer

If you'd like to know what partitions your system can see just use sudo fdisk -l.

With regard to sda/sdb etc., /dev/sd* is just Linux' way of naming partitions, but be aware that the assigned disk order can change!

I'm not sure if this answered your questions; feel free to ask something more specific.