Try the command sa - which summarize accounting information.  You may have to first install the acct-package though...  You'll also get the ac command, which lets you see how much time individual users - or yourself - have spent logged-in, optionally split into dates.  You'll probably need to be root to use the command and access this information though...

From my system:

susan ~ # sa
    6603    6525.48re      20.57cp         0avio     16466k
      68      95.53re      12.12cp         0avio     61113k   ***other*
      26      36.41re       3.76cp         0avio    385039k   chromium-browse*
       8      58.44re       0.91cp         0avio     20392k   youtube-dl
       6      52.82re       0.59cp         0avio    426752k   Compositor*
      30       1.11re       0.53cp         0avio    287232k   sbcl
       8       9.57re       0.37cp         0avio    420640k   Chrome_ChildIOT*
      50       0.69re       0.30cp         0avio    117868k   avconv
      42       4.20re       0.27cp         0avio     41360k   chef-client*
       3       0.55re       0.23cp         0avio      6162k   otags
       5      14.36re       0.18cp         0avio    411878k   WorkerPool/11*
      18       0.61re       0.16cp         0avio    178645k   chromium-browse
(...)

"re" is the elapsed time in minutes.

(Seems like I browse the web and download videos from YouTube way too much...)

And the ac command (which also can show total per user):

susan ~ # ac -d
Dec  2  total       22.52
Dec  3  total       77.76
Dec  4  total       48.39
(...)
Dec 25  total       30.66
Dec 27  total        5.77
Today   total       53.96

(Must have accidentally used Windows on December 1st...)


QtCreator wont start anymore. Symbol lookup error

The problem happens rarely but is related to upgrading from for example the archive version of ubuntu-sdk, or maybe some more complex upgrade path. The root problem is currently unknown, but removing and reinstalling Qt 5 seems to work.

Remove libqt5core5 package, to remove most of the Qt 5
Install ubuntu-sdk package to get the Qt 5 and the rest of the Ubuntu SDK back.


How can I remove "Set Up Mail" and other entries from the message indicator?

To remove the Set Up Mail... ( or Chat, Broadcast etc.) item for just your user account, simply run the following commands (replacing evolution with gwibber,empathy etc.):

This creates a folder that the Messaging Menu looks into for applications to not show:

mkdir ~/.config/indicators/messages/applications-blacklist/ -p

Now, to "blacklist" an item from the Messaging Menu:

cp /usr/share/indicators/messages/applications/evolution ~/.config/indicators/messages/applications-blacklist/

This has the same effect as removing evolution from /usr/share/indicators/messages/applications but it will only affect your user. Also, it takes effect immediately, you don't need to log out or restart the panel.

If for any reason you want to re-enable Set Up Mail, simply remove the file  ~/.config/indicators/messages/applications-blacklist/evolution


'error unrecognized service' when trying to test cluster

I had the same problem. You can simply run the different commands separately.

$ cd /etc/init.d
$ ls hadoop-hdfs-*

You will see there are three files. You can start the daemons using the following commands:

$ sudo service hadoop-hdfs-namenode start
$ sudo service hadoop-hdfs-datanode start
$ sudo service hadoop-hdfs-secondarynamenode start

Done!!!!


How does the new "Bash on windows 10" really work?

It's not an emulator in the same way that WINE Is Not an Emulator. That is to say, they've added a Linux kernel interface to their Windows kernel. When an app tries to use the Linux kernel, it gets translated into a Windows native system call and any responses from the kernel is translated into a native Linux response. So the app thinks it's running on a Linux kernel and hence doesn't need to be modified.

However, this is purely a Windows technology so if you want more details, you should get them from a Windows support group or something. Windows continues to be a proprietary OS, so I would expect a limited amount of details.

  And is it really going to be as stable and user friendly as bash in ubuntu?

From an Ubuntu perspective, we're simply running on a primitive Linux kernel, comparable to running a modern desktop on a primitive X server. If you're only using the features supported by the fake kernel, then it'll be stable and user friendly. If you use unsupported features, it'll be unstable.

It will not be anywhere near a complete Ubuntu experience any time soon.


I have an encrypted HOME, and I have upgraded through to Oneiric without much trouble related to that.  ecryptfs does have bugs like everything else, and they can be a bit alarming, but there's nothing special about upgrading.  Upgrade away.

The main thing is that you should make at least one reliable backup of the unencrypted contents of your home directory.  You can encrypt the backup, for example by using Deja Dup, but that's separate and ought to be OK even if ecryptfs is broken.


Can you make a Live USB with the persistent partition in my main, internal Hard Drive instead of in Live usb itself?

Make a Live USB with the persistent partition in main, internal Hard Drive.

A Persistent USB will use the first Persistent partition it sees. Usually a persistent partition on the internal HDD is first.

The Persistent partition needs to be an ext partition, say ext4.

The partition should be labelled casper-rw, (Labelling it writable is optional for 20.04).

A second Persistent partition labelled home-rw can be used for home data and settings.

The casper-rw partition will not work with another version of 'Buntu, a home-rw partition will.

The word persistent should also be added to the linux line in grub.cfg:
linux ($root)/casper/vmlinuz boot=casper quiet splash fsck.mode=skip persistent --

You can also choose to boot multiple ISO files, each with it's own persistence files. For reference see:

20.04 booting .iso from GRUB menu
In your case the grub boot loader can be on external USB drive. A mkusb persistent drive uses GRUB 2, the menu can be modified to work.
Warning:
Booting a different Persistent USB in the computer will try to use the Persistent partition. If it contains a different version of Ubuntu It may corrupt the casper-rw partition, (but not a home-rw partition).


running dd multiple times on same file with a counting variable for outputting multiple files

I'm not sure what you mean, but perhaps you need this:

$ echo {1234..12345}
1234 1235 1236 1237 1238 1239 1240 [snip] 12337 12338 12339 12340 12341 12342 12343 12344 12345

You could then do:

for i in {1234..12345}
do
    echo dd bs=12345 if=filename.static of=filename_$i count=$i
done

Remove the echo if the commands look OK.


make command won't work although makefile exists

config.status: creating src/Makefile

I suggest that you try:

cd src

Confirm the existence of the Makefile:

ls

If it is there as we suspect:

make

And proceed.


How do I removed the keyring popup when I am accessing vino?

This is a known bug in the Debian/Ubuntu package of vino server. There is a workaround in the bug comments, which I'm reproducing here. Rumour says it's only good for 10.04.

Open up Applications->Accessories->Passwords and Encryption Keys
Right click Passwords:login and unlock it.
You should be able to expand the tree and find a listing for vino. Right click and delete it.
Close Passwords and Encryption Keys.
Open gconf-editor as and navigate to /desktop/gnome/remote_access
Enter in your BASE64 encoded password into the vnc_password key.

Run echo -n "your password" | base64. Enter the output, even the equal sign.

Save the config and close the editor.
Log out, log back in, and you can now use your VNC client to connect to your machine without being first prompted with the keyring.


Running .sh file right after login and root login

ou can do that with a .desktop file placed in ~/.config/autostart. To create such a file simply do:

cat > ~/.config/autostart/myscript.desktop << "EOF"
[Desktop Entry]
Name=myscript.sh
GenericName=my script for foo-fu
Comment=does bar the foo or fu foos the bar
Exec=sh ~/scripts/myscript.sh
Terminal=true
Type=Script
Icon=
Categories=Tools;
StartupNotify=true
EOF

Up to that make sure you have done a chmod 755 on that script by:

chmod 755 myscript.sh

and set it aswell to execute in nautilus like on the following example picture:


Is it possible to get a list of all open files (and the programs being used to view them)?

Generally, it is not possible to do in the way you're approaching this, because the files opened in a text editor are not "open" in the sense programmers use the term (i.e. "having an active file handle somewhere within the program which can be used for I/O operations"). What most programs do is open the file, read the data in a memory buffer, then close the file. Saving a file is the same - open, write, close. Between open and save operations the file is not "open", it's just the copy of the data in the program's buffer in memory.

So it is generally not possible to figure out which files are currently loaded into the program's memory - however, the program itself does know that, so from inside the program it is trivial to implement an option to remember the list of open files on shutdown and re-open those files on startup. Many text editors, for example Kate and Sublime Text 2 do provide such option.

Some desktop environments, such as KDE (and also the old Gnome, I'm not sure about Gnome 3/Unity) also provide an option to save the list of running programs on shutdown and re-launch those programs on startup. Which combined with using a good editor kinda achieves what you're trying to do.


I was able to use the IRC room to help fix this. The issue is that I am in a Hyper-V environment. This box was using a legacy network adapter when it was on 10.04. Now that it is on 12.04 I removed the legacy adapter and added a new adapter, and it works now. thanks to the user hydruid


Unable to Resize Root Partition with unallocated space(Weird Partition Arrangement)

Being an HP computer has nothing to do with grub not showing. The reason that you are having trouble with grub, is because you installed ubuntu in Legacy mode instead of EFI mode. If you reinstall in EFI mode then you won't have to press F9, grub will boot and allow you to choose which OS to load.
What I would do:
It is best to use Windows to manipulate Windows' partitions. Start Window and using the disk manager, move /sda6 to the right. Then delete the linux partitions.
Next, reboot while pressing the F10 to get to the system settings menu. Turn off legacy boot to insure that ubuntu boots in EFI mode.
After installing Ubuntu, Press F10 while booting and change the OS boot selection to Ubuntu. Now grub will boot and allow you to select Windows or Ubuntu.
If you don't want to reinstall:
I assume /sda9 is the root partition and sda12 is a /home partition. If this is the case, then root is large enough. You probably want to add space to the home partition (sda12).
Use windows to move /sda6 to the right. then use gparted to add the free space to /sda12.


How to create disk partitions without unmounting the disk?

Mounted partitions are actively in use by the system.  It is extremely likely that if you go messing around with your partitions while the system is running that you will lose your data/working system unless you were using something like LVM on an already installed system.  For example, Gparted will show that a mounted partition is locked by displaying a small key icon next to it and not allowing you to make changes to it.
What is currently on the 1TB HDD?  Is it blank?


Download selected packages to a local repository

The command

sudo apt-get --download-only install package-names

will download, without installing them, all named packages and their dependencies, to /var/cache/apt/archive directory.

You could also use upgrade or dist-upgrade, instead of install package-names.


Is there any way that I can make shortcuts from my Windows Programs in Ubuntu?

Go to Computer. Click on the drive that has Windows on it.

Click on Program Files.

Search for the specified app. The app should come up and you can put it onto the desktop by click and drag, and copy and paste.

After dragging it to the desktop, drag it to the Unity Launcher.

Hope this helps!


Sebelumnya, kenapa gak pake bahasa inggris. Ini kan forum internasional.

Apakah modem tersebut sudah dikenali ubuntu, dan bisa digunakan koneksi? Jika ya, maka cukup membuat profil koneksi dari Network Manager Applet.

Gambar: Network Manager Applet

Jika belum ada drivernya, silakan baca tulisan ini dulu. Terpaksa harus pakai konsol


Wireless not recognized on my Lenovo G510 laptop on Ubuntu 15.04

If you have a 64 bit installation, download from a mirror site here and install

If you have 32 bit, here and install

There should be a copy on the installation media in /pool/restricted/b/bcmwl/


Eclipse subclipse connector error just after 12.04 upgrade

In ubuntu 12.04 precise pangoline the directory for java.library.path has changed.
I'set "-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni" (on 64 bit installation) in eclipse.ini and i had no more problem


Sound no longer recognized after latest kernel upgrade (14.04)

Ok, so I found the issue.  There were some driver artifacts left behind during the upgrade in the .default stopping pulse audio from working correctly.  When I removed them, everything started to work normally.


Since you are on Ubuntu 16.04 which uses systemd you might want to use the systemd native service and timer combination.

Put the actual work into a script. E.g. /usr/local/sbin/gdrive-upload.sh

#!/bin/bash

name=$(date -d "today" +"dev_%Y-%m-%d_%H:%M").dump
PGPASSWORD='passToDB' pg_dump -h localhost -p 5432 -U lm -F c -b -v -f /postgresql/dump/${name} DBname
gdrive upload /postgresql/dump/${name}
sudo rm  /postgresql/dump/${name}

A corresponding service /etc/systemd/system/gdrive-upload.service file would look like as follows, but might need some tweaks.

[Unit]
Description=Upload stuff to gdrive
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/local/sbin/gdrive-upload.sh

[Install]
WantedBy=multi-user.target

Then you need a systemd timer /etc/systemd/system/gdrive-upload.timer to run the service file on a regular basis.

[Unit]
Description=Regularly upload stuff to gdrive

[Timer]
OnCalendar=*-*-* *:00:00
Persistent=true

[Install]
WantedBy=timers.target

After you have created the files you have to tell systemd that there are new services available to pickup and enable the timer.

$ systemctl daemon-reload
$ systemctl enable gdrive-upload.timer
$ systemctl start gdrive-upload.timer

Do not enable the gdrive-upload.service as this will be triggered by the timer.

Now you can watch your timer when it was triggered last and when it will be triggered next time with systemclt list-timers.
As already mentioned, you may need to tweak the timer and the service a bit, depending on your needs.


Check /var/log/auth.log or /var/log/authlog

In my case, I had

Authentication refused: bad ownership or modes for directory /home/[USER]

Then I ran

chmod go-w ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

And now it works


How to automatically hide hidden files at boot?

Install the "dconf editor" using the command:

 sudo apt-get install dconf-tools

open dconf editor using the command:

 dconf-editor

Browse to org > gtk > settings > file-chooser

Uncheck the "hidden file" key appearing in right side.
Done !!


Unconfigured package error: Package apache2.2-common is not configured yet

Starting with the first error:

dpkg: error processing procps (--configure): subprocess installed post-installation script returned error exit status 1

refers to an error occuring while running /var/lib/dpkg/info/procps.postinst. While perhaps not the best solution, you can often determine what is happening by attempting to run the script (or portions of it) by hand.  The failure above appears to have caused all of the following:

dpkg: dependency problems prevent configuration of udev: udev depends on procps; however: Package procps is not configured yet.
dpkg: error processing udev (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of plymouth: plymouth depends on udev (>= 149-2); however: Package udev is not configured yet.
dpkg: error processing plymouth (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of apache2.2-common: apache2.2-common depends on procps; however: Package procps is not configured yet.

So, I'd say work on reinstalling procps or finding the source of the error in the post-install script.


Permissions error trying to create local web dev environment in home folder

technically the best place to put your web files is in /var/www//... But, if you create a virtual host in your machine and put some IP in /etc/hosts/ to point some "name". You can do that.

Virtual hosts:

cp -p /etc/apache/sites-avaliable/000-default.conf /etc/apache/sites-avaliable/myname.conf

sudo nano /etc/apache/sites-avaliable/myname.conf

edit the line:

serverName myname

<Directory /var/www/myname/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

Save it, and run:

sudo a2ensite myname.conf
sudo service apache2 reload

Give some ip:

sudo nano /etc/hosts
127.0.0.1     myname

Save it and now go to browser:

http://myname/

Now it's ok! :)


How do i set password expiry for all users?

Edit /etc/login.defs using a text editor:

vi /etc/login.defs

Edit these 3 parameters to what you want (example from the file and the defaults given):

#
# Password aging controls:
#
#   PASS_MAX_DAYS   Maximum number of days a password may be used.
#   PASS_MIN_DAYS   Minimum number of days allowed between password changes.
#   PASS_WARN_AGE   Number of days warning given before a password expires.
#
PASS_MAX_DAYS   99999
PASS_MIN_DAYS   0
PASS_WARN_AGE   7


You cannot downgrade the ubuntu version. You'll have to reinstall 16.04.
The only solution is to re-install Ubuntu 16.04 and erase 17.04, so that you have a clean installation.

Just backup your relevant files, and run the installation CD/DVD/USB.

Erase Ubuntu 17.04 and install 16.04.

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


Problem when launching pulseaudio-equalizer

Note: I use debian/openbox to prefer open source
cp /etc/pulse/default.pa ~/.config/pulse/
insert following lines into ~/.config/pulse/
#
# solve "error connecting to pulseaudio..." after invoking qpaeq from package pulseaudio-equalizer
#
load-module module-equalizer-sink
load-module module-dbus-protocol

restart pulse audio via
$ pulseaudio --kill
$ pulseaudio --start

Then I used pavucontrol and chose "FFT based equalizer on ..." in the Playback tab as the desired output for the desired program playing music. I would prefer to use pactl to perform the task so that I can create an equalizer on/off keystroke.
Pulseaudio should save the chosen state for each program in ~/.config/pulse/.
Cooloutac on wiki gitlab says that if you have static and crackling when using the qpaeq, then you must append for modify existing udev module line to read
load-module module-udev-detect tsched=0

Don't forget to restart pulseaudio with every change to default.pa.


I figured it out.
To see the processes, I used:

ps -ef | grep a.out

This gave me the list of all processes a.out. After this I used kill -9 pid to kill those processes.


Which Ubuntu distro is fully compatible with Hp pavilion 15n-205tx Laptop?

Did you check the Fn keys on your laptop? Many laptops can toggle the wifi on/off from the keyboard to save power.

Enable the Fn keys
Here is the guide for your Laptop


Cannot boot into ubuntu after installing it on to hard drive

You have to try boot-repair after getting into your flavor of Linux
From terminal(Ctrl+T)

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


Mouse cursor disappear on video playback on ubuntu 16.10 on vlc

I had a very similar issue to yours, even the menus were being blocked by the video.  Also, when I stretched my screen, the playing video stayed the same size and didn't stretch along.

If this sounds like the same situation you have, I was able to fix via this other SO answer (VLC not displaying video properly in FullScreen?)

@Huang Dongsung's answer:

In Tools > Preferences > Video > Output change to "OpenGL GLX video output(XCB), save and restart vlc.

If you use Intel GPU, following setting speeds up decoding. In Tools > Preferences > Input/Codecs > Hardware-accelerated decoding chant to "VA-API video decoder via X11"


Install 19.04 on ThinkPad X1 Extreme Gen 2

I received my Extreme Gen 2 on the October 31st 2019, I did not install Ubuntu 18.04 because I would not be able to upgrade the kernel version without WiFi since I don't have Ethernet port.

Consequently I installed Ubuntu 19.10 (kernel 5.3), disabled Secure Boot, Windows fast startup and blacklisted the NVIDIA Nouveau driver to replace it by the proprietary NVIDIA Driver. Now everything works even Docker.

Here are the steps to install it along Windows:

Disable Windows 10 fast startup because when it is enabled, your computer doesn’t perform a regular shut down: instead it builds hibernation files that you want avoid when dual-booting.
Update UEFI/BIOS to 1.26 (initially my UEFI/BIOS was up to v1.17) since old UEFI/BIOS contain multiple bugs that can result in bricking the laptop. You can perform it using the Lenovo Vantage app under Windows 10.
Disable Secure Boot: it is a verification mechanism for ensuring that code launched by a computer’s UEFI firmware is trusted. The issue is that NVIDIA Drivers are not signed hence Secure Boot would interrupt the boot process.
Install Ubuntu by hitting Enter on startup and selecting your bootable USB stick. Now you have Ubuntu installed on your laptop but it crashes when loading the default Ubuntu’s Nouveau NVIDIA Driver. Consequently we will blacklist it and installing the NVIDIA proprietary driver which works fine.
Reboot the computer. In the GRUB menu press E to edit the command before booting then append ‘nomodeset’ at the end of the ‘linux…’ line : it will prevent the system from loading graphics drivers hence we will be able to install NVIDIA drivers and blacklisting the Nouveau driver. Don’t worry, ‘nomodeset’ will only be effective for that session.
Install last NVIDIA proprietary driver.
Blacklist Nouveau driver to avoid conflicts.

Now the NVIDIA proprietary drivers are installed on your system and the open-source Nouveau driver is blacklisted so no conflicts between graphics drivers should happen.

These instructions come from the Medium article I wrote (https://medium.com/@remy.hosseinkhan/installing-ubuntu-19-10-on-lenovo-thinkpad-x1-extreme-gen-2-and-p1-gen-2-ba4c9c7c7ed2) check it if you have trouble to solve one step. I've looked at several threads in order to understand what goes wrong with installing Linux on this laptop : the main issue comes from the NVIDIA Optimus technology that is still causing trouble nowadays (see Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?).


How can I change a set of files Permsissions from Root to user

Do
sudo chmod -R o+rwx ~/BlueJ

or
sudo chmod -R 755 ~/Bluej

where -R is for recursive and o+rwx is for others to have read/write and execute permissions.
If you want to take ownership of the folder and files:
sudo chown -R USERNAME.USERNAME ~/Bluej

where USERNAME is your Ubuntu username.


How to display path bar in Files on Ubuntu 20.04?

to enable it permanently use the below command.

gsettings set org.gnome.nautilus.preferences always-use-location-entry true

to disable it,

gsettings set org.gnome.nautilus.preferences always-use-location-entry false


Dual boot Windows 10 and Ubuntu 16.04 no grub loader selection

Windows 10 boots with UEFI bootloaders, and you installed Ubuntu in legacy mode, then switched to UEFI mode, so there is no grub bootloader for UEFI mode.  You added the necessary partition for a legacy boot on a gpt partitioned disk, but that was only to allow the legacy grub to install and boot.

Just reinstall in UEFI mode.  There must be a way to boot the install media in UEFI mode -- if not an obvious choice, then maybe setting a supervisor password on the UEFI settings (BIOS) may allow other choices.


It dissapered on my Lenovo G780 after installing bumblebee.

If you have a optimus Asus this would probably be a way to go:

Installation is a bit longer down for Bumblebee


I also have this problem with Lenovo, although it only happens after a wake from sleep. Currently the solution I use is to restart the network manager

sudo service network-manager restart

I have script to run this short line in my home dir


Can the size of the workspace switcher applet be changed?

To change the size of the Workspace Switcher in Xfce4, we need to change it in the Panel settings.

Click on:

Whisker Menu -> Settings -> Panel -> Items -> Workspace Switcher -> (Gear to edit selected item)

In the Workspace Switcher configuration, uncheck Show miniature view

Then your Workspace Switcher should look like this:

Hope this helps!


Usually, when a laptop is connected to an external screen and you close the lid, the display shifts completely to the external screen (similar to "single screen mode") when the primary screen is set to the external monitor. If primary screen is set to your laptop screen, shutting the lid should make your screen go dark as well. This is not a hotkey like you asked but I would argue that it is a simple workaround.
I can not guarantee that it works for all laptops/screens, it has worked on those that I have used (HP laptops, MacBook with Acer monitors). I do not know the extent of damage to your laptop screen and don't know if this is a viable solution.


After a reboot I found out that if guake is not running ctr+alt+t combination launches it.

So the problem was that x-terminal-emulator was switched to guake instead of the gnome terminal. To switch it back type:

sudo update-alternatives --config x-terminal-emulator

And select /usr/bin/gnome-terminal.wrapper


update-manager fails with "ImportError: No module named 'ros_buildfarm'"

I found that there is a /usr/bin/apt.py file related to ros (robotics package) that causes this problem. maybe the apt.py is selected to be executed instead of apt file. I just renamed apt.py file and the problem is solved now!

cd /usr/bin
sudo mv apt.py apt-archive.py


If git clone ... takes too long and you just want to checkout one revision (i.e. you don't want all the history) of the repository, do this:

git clone --depth 1 protocol://path/to/repo

As from this answer on StackOverflow. This gets you the latest commit, without history. It's still gonna take you a long time, as it appears to be the whole Linux kernel...

A regular clone is a repository with all its history and commit messages. The ZIP-file just contains the state of the repository at a single commit (snapshot) without any history. This --depth option provides you a way to do this with Git without the need for a ZIP file for every commit.

About the ZIP-files on Github in particular. If the developer of the repository determines to tag a specific commit (i.e. puts a label with a nice name on the commit hash like "version 1.0"), the contents of the repository is made available as a ZIP/TAR file on Github for your convenience. There should be no difference between the two, besides the version of it as the clone command is likely to give you a newer (probably experimental) version.

To make things more complicated, but necessary to be correct in this answer, the clone only checks out the default branch, whereas the ZIP-file on Github may be created from a tag in another branch (release for example).

As stated in the comment, further instructions on how to install this particular piece of software is documented very well in the README.


Shell reverse search fails each time whenever I restart the shell

This file should be owned by you. Since it is owned by root instead for some reason, you cannot write to it so your shell history cannot be saved. Just fix the ownership and permissions:
sudo chown paul:paul /home/paul/.bash_history
chmod a+r /home/paul/.bash_history

After this, the file should look like this:
$ ls -l /home/paul/.bash_history
-rw-r--r-- 1 paul paukl 70515 sep 11 12:50 /home/paul/.bash_history


Ok, in a chat we haven't found a reason why PCManFM doesn't automount. So here we create an fstab entry for the stick:

We need to create the folder for the stick and get the device id. Open a terminal.
The folder can be created via sudo mkdir /media/mystick In addition I would make the user the owner and give him the right to read/write: sudo chown [user]:[group] /media/mysticksudo chmod +rw /media/mystick
Now the fstab entry:

Install libblkid1 to see device specific information: sudo apt-get install libblkid1
Enter sudo blkid and look for the stick. The output could be:/dev/sda2: UUID="32a4b76f-246e-486e-8495-31b8a781fb4c" TYPE="swap"
/dev/sde1: LABEL="MAXELL" UUID="8D67-D560" TYPE="vfat"

Then we create the fstab entry: sudo gedit /etc/fstab and append the line UUID=8D67-D560     /media/mystick   auto    rw,user,auto    0    0(and afterwards give a empty new line to avoid warnings):

To mount the stick, open a terminal and type mount /media/mystickBecause of the entry auto it should be mounted automatically if you remove and plug in the stick again.


Windows' Time gets reset when using wubi installer?

That's been happening a long time - not sure the exact reason but I suspect that ubiquity always assumes the computer clock is UTC and then it corrects it to local time. But if you connect your Wubi install to the internet it will pick up the correct time. Also, make sure your Windows is also connected to a time server... or, for example, you'll find like I did that whoever sets daylight savings first affects the other and get dropped back 2 hours.


If it's dropping you to busybox, using a Live CD/USB is the faster and more practical option.

You generally get dropped to busybox when grub cannot find the files on /boot -- or the /boot partition itself. The power failure may have affected your filesystem or the partition table, so you're best off with the Live CD rather than risk messing anything up from within busybox.


How can I make a "global link to a folder" in terminal

basically I just want to type "name" into the terminal at any point, and be redirected to a folder

Open the document ~/.bashrc and add at the bottom:

alias name='cd ~/ownCloud/folder/subfolder'

Then open a terminal and run:

source ~/.bashrc

Type name inyour terminal and it will go to the dir you wanted.


Try seeing if your file is corrupted in your local apt repository. Reset it using

sudo rm -fr /var/lib/apt/lists/*


Onboard command causing bash script to stop

So managed now to get it work

#!/bin/bash
#filename=testrun
script_name=$0
script_full_path=$(dirname "$0")

$script_full_path/onboard_run &
xfce4-terminal -e "sudo dpkg-reconfigure keyboard-configuration" &

while pgrep -x "xfce4-terminal" > /dev/null
do
    sleep 0.5
done

killall onboard
killall testrun
exit 0

#!/bin/bash
#filename=onboard_run
onboard
exit 0

But this is just very inefficient to use two scripts to run two commands...


If I encrypt my home folder during installation, can I do another clean installation over the entire hard drive?

Encryption won't interfere with your next installation at all.
I've used full disk and home folder encryption for several years now, but I've never noticed any difference in performance. The most significant bottleneck in retrieving encrypted data involves getting the bits off of your disk. By comparison, decryption is so fast it's almost always unnoticeable.
After logging in (or entering your password) you can backup or copy files from your encrypted drive/folder exactly as you normally would, without any extra considerations.

Full-disk and home folder encryption are transparent in most cases.


Hyperdesktop alternative for Ubuntu 13.04

The default screenshot application in Ubuntu enables you to do just that. Just open the dash and search for "screenshot" and you'll find it. Now, if you get yourself an Ubuntu One account, then you can just save to that, and it'll be uploaded automatically.


Tomcat and Wildfly (erstwhile JBoss) Support?

Yes they will. WildFly can definitively run on Ubuntu


For each file a_file in current directory rename a_file to lower case.

for a_file in *;do mv -v "$a_file" `echo "$a_file" | tr [:upper:] [:lower:]` ;done;

For upper case reverse the arguments to [:lower:] [:upper:]

tr command reference link

Update

For even more control * can be replaced with ls.

For example in a directory containing 1.txt, 2.txt, 3.txt, 1.jpg, 2.jpg and 3.jpg in order to filter only *.jpg files, ls can be used:

for a_file in $(ls *.jpg);do mv -v $a_file `echo $a_file | tr [:upper:] [:lower:]` ;done;

The above code will assign to a_file variable all files with .jpg extension.

Update added -v option to mv command as per sds suggested.


Thinkpad E560 cannot sleep on Ubuntu GNOME 16.04

It looks like said problem was yet again a general bug.

Thanks to this thread, I installed an upstream kernel which solved the problem.


Plasma intermittently crashes Kubuntu 16.04 under Virtualbox, Windows 7 host

I have exactly the same thing. I can also 100% reproduce the error. The cause is the interaction between the plasma task bar and the VirtualBox menu.

To reproduce:

System details:
Win10 Pro (Host)
Kubuntu 16.04 (Guest)
VirtualBox 5.2.6
VB view mode full screen

Pin the VBox menu to the top (in settings before you start Kubuntu)

Open several windows so there are a few tabs on the task bar (at the bottom)
hover over icons on the task bar, allow the preview to pop up - All is good
Open any menu on the VirtualBox menu at the top (or pop it up if you had not got it pinned)
hover over any tab till the preview pops up
plasma crashes

NOTE: timing is important. If you close the menu and count to 10s while the mouse is not over the task bar then the preview will work correctly.


How do I access Wine applications from Unity?

Usually you can launch the program by typing the first few letters of the application's name into the Unity dash. In your case, you would begin typing "IrfanView" and if the application created any desktop shortcuts / start menu icons, then they should show up when you type the first few letters.

If that fails, you can try opening up Wine's "C drive" and find the application's executable. You can find most Wine applications in ~/.wine/drive_c/Program Files. Almost all Windows applications install to C:\Program Files, so you should see a folder for your application in there. Once you find the application, you can launch it by simply double-clicking it.


Does the latest version of Ubuntu (12.04) support Unity 3D?

this command will tell you if your display card supports 3d Unity

/usr/lib/nux/unity_support_test -p


Is there some tax reporting application?

You seem to be having a major issue with that Federal 1040 Form, my friend.

This time I can't give you a suggestion for this software-recommendation issue.

Turbotax (free edition), somehow, seems to be running perfectly in google-chrome (as it seems to be a browser based application). I just found a couple of warnings when I tried to register using google-chrome and they were about the suggestion of using a stable (non-beta) version of some browsers which includes Google-Chrome, Firefox and others.

Take a look at this screenshots and give it a try. Or please inform, if you are trying to run a windows application maybe you can find useful giving a try to install it through "wine".

Good luck!

Turbotax in chromium-browser:

Additional Screenshots here:


need help with pattern to extract a string?

Something like this. Your string is in the 2nd capturing

(^|\s)+(.{3})($|\s)+

Explanation

/(^| )(.{3})($| )/g

1st Capturing group Capturing group (^|\s)+

Quantifier: + Between one and unlimited times, as many times as possible, giving back as needed [greedy]

1st Alternative: ^

^ assert position at start of the string

2nd Alternative: \s

\s match any white space character [\r\n\t\f ]

2nd Capturing group (.{3})

.{3} matches any character (except newline)

Quantifier: {3} Exactly 3 times

3rd Capturing group ($| )+

Quantifier: + Between one and unlimited times, as many times as possible, giving back as needed [greedy]

1st Alternative: $

$ assert position at end of the string
2nd Alternative: \s

\s match any white space character [\r\n\t\f ]

g modifier: global. All matches (don't return on first match)


Can I delete the folder /debian/dbgtmp (in root)?

This is the default hierarchy in a default Linux system:

As you can see there are no folders named /debian . So, as you have stated those are left-overs of your custom kernel compilation. You may delete it to free up some space. But if possible you might want to back-up your system to be on the safe side.

Also, from free-electrons, on line 82 you will see that this type of directory is created in order to generate a deb package for a Linux kernel:

dbg_dir="$objtree/debian/dbgtmp"


my windows 7 and other patition disks not appear after installing ubuntu 14.10

I've dealt with the same issue few days ago. You need windows installation usb/dvd. Boot and repair boot manager. Then update grub update from ubuntu live usb.


Your hard drive might be failing. Back in october, I dropped my laptop. I thought it was fine, so I did nothing, but it turned out that my hdd was failing. This is exactly what happened. You can test it using this tool: http://www.seagate.com/support/downloads/seatools/
Make sure you don't move your mouse after you start the testing.


Change keyboard layout permanently in Xubuntu 14.04

Try unchecking "Use system defaults" and make sure that in the keyboard layout list the Spanish keyboard is the first. If you have no Spanish keyboard there add it an move it to the top of the list. It worked for me, hope it helps


The brightness control bar is not in the system settings of Ubuntu 14.04. How to get it there?

First, open terminal by pressing Ctrl+Alt+T and execute following command:

gksudo gedit /etc/default/grub

Navigate to 11th line, there will be GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" line. Add acpi_backlight=vendor next to quite splash so the line would be:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Save the file, then run update-grub command to apply change you have made:

sudo update-grub

Finally, restart your system


If you do, it will almost certainly be around the graphics chipset. Since you didn't provide the model name or number for the Toshiba, it's not possible for me to determine which video chipset you have. I would recommend booting the LiveCD, and if that works, and you get to the installer, you have reasonable assurance that you can perform an installation without issue.


The guide you use, is outdated. I'd suggest to follow the official installation manual instead.

Another Remark: Check first if your mainboard uses UEFI or BIOS. If it uses UEFI, then you have to make sure that you install both, Windows and Ubuntu using the same firmware interface (meaning: both in UEFI mode, or both in BIOS emulation mode). Also, in this case, use the 64bit Version of Ubuntu, since the 32bit one will not dual boot, except if you use BIOS emulation for both, Windows and Ubutnu. If you run into troubles, read the Ubuntu UEFI Guide.


How do I fix "bzr: ERROR: Unable to determine your name. "?

You need to tell bzr what your name is using the bzr whoami command, like so:

bzr whoami "Jorge Castro <jorge@ubuntu.com>"

Substitute your name and address of course. You can see all the whoami options by checking out bzr help whoami.

After you've set your name rerun the quickly package command.

And the GTK "errors" are warnings, not errors at all. Lots of applications throw them out for various reasons, but they're not to be interpreted as something serious going wrong.


touchpad not getting disabled while typing on thinkpad E450 with Ubuntu 18.04

You should be able to enable/disable this feature by using gnome-tweak-tool. If you need to install the gnome-tweak-tool, you could do that through the terminal:

$ sudo apt install gnome-tweak-tool

Then run tweaks, navigate to the Keyboard & Mouse-section. Under the touchpad headline flip the Disable While Typing switch to on.

If this still doesn't work for you, you could add a new file in /usr/share/X11/xorg.conf.d and name it something like 90-libinput-quirks.conf with the following content

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "DisableWhileTyping" "True"
EndSection

The file name itself is somewhat important, it needs to start with a higher number than the libinput.conf file bundled with Ubuntu 18.04. Mine was named 40-libinput.conf so I named mine 90-libinput-quirks.conf to make sure it was loaded after, and thus overriding/appending, the original config.

Alternatively you could just add the Option "DisableWhileTyping" "True" to the section Identifier "libinput touchpad catchall" just as above in the default 40-libinput.conf file. I'm not sure if the default config file could be overwritten by something like an update, so I prefer the first approach.


Stuck at 800x600 display resolution Ubuntu 14

I had exactly the same problem and here is what worked (well partially) for me:

Edited /etc/default/grub as root
Changed the line where GRUB_GFXMODE was set. It was earlier having the value 800x600. Changed it to 1366x768 (And don't forget to uncomment the line).
Ran update-grub
Rebooted.

Still no other resolutions are showing when I go to display properties but at least the default (rather the only resolution) is what I am comfortable with.
HTH
Venugopalan Govindan


Launch terminal from keyboard shortcut, run interactive command and exit in Ubuntu 17.10

But then, if I hit Ctrl+D, the terminal closes and so does evince
  (maybe because evince is a subprocess?)

Yes, sure, it's subprocess and you should run this process as "detached". After that you can end main process (in your case - terminal).

Here is detailed answer how to run detached processes.

https://superuser.com/questions/178587/how-do-i-detach-a-process-from-terminal-entirely

As another way you can use the next shortcut:

bash -c "some_command" > /dev/null &2>&1

In this case terminal window will not be raised at all and you don't need to add anything to your .bashrc file.


Permission denied to a repository when starting Ubuntu 20.04

Following the advice from the Vivaldi forum, I just deleted the file & then sudo apt update; the error message after restart has not re-appeared, so for now I leave it as solved.


Turns out it was the default scan sizes at fault. If I use --max-filesize and --max-scansize the scan completes.
Command:
clamscan -d test.hdb --max-filesize=100M --max-scansize=100M test.exe

Output:
/tmp/scan/test.exe: Test.Win32.VirusA.UNOFFICIAL FOUND

----------- SCAN SUMMARY -----------
Known viruses: 1
Engine version: 0.102.4
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 58.61 MB
Data read: 58.59 MB (ratio 1.00:1)
Time: 0.747 sec (0 m 0 s)


converting 32GB to 8GB means comprising on the quality(a lot) and as you are saying that those are your family videos so get a few blank dvd's and burn them as having an extra backup is always a safeside

you can also  consider backing them up online if you have a good broadband
but if you insist on reducing the size (don't blame me for quality) get a converter and convert the videos to "rmvb" or 3gp format or some other small size format


when closing an application it gets erased from the dash and the panel

if someone has the same problem

go to ~/.config/menus and the delete this forlder (menus)

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

alacarte created it and it causes gnome shell to crash. weird bug. hopefully being solved already ....

this is one of the bugs 12.10.1 has besides deleting the software center when you first install ubuntu.

hope it can be helpful to anyone.


Does 14.10 know to disable integrated graphics if I have discrete graphics?

Yes and no...Ubuntu will use the discrete GPU if its module (a.k.a. "driver") is loaded, but it will not disable the integrated card.
Why?Some people use both cards at the same time: Integrated for simple windowing, GPU for gaming, video, ...

If you want to turn off the integrated graphics driver:

Go into your BIOS and look for graphics related options (every BIOS is different) and turn off the integrated graphics there.  Sometimes it's easy, but sometimes it's not obvious and you have to change the memory settings of the integrated graphics to '0'.  Refer to your BIOS documentation.
If BIOS settings don’t work, you can still blacklist the module itself, but the memory allocated to the card by the BIOS will still be unavailable to Ubuntu.  (you didn't provide any module information so if you don't know how to do this, ask a new question.)


How to make Totem automatically fit window size to video size?

I filed an issue to Totem: https://gitlab.gnome.org/GNOME/totem/-/issues/431 but the developers answer that they don't plan to restore this functionality. So I wrote a simple wrapper script around Totem that needs to be set as a default application to open video files instead of just Totem. Unless the video is very small (which means less than approx. 360 pixels in height, Totem window doesn't want to go so small), it resizes the window to correct video size. The script needs "mediainfo" program to be installed.
#!/bin/sh

CFG_DIR=~/.config/totem
CFG_FILE=${CFG_DIR}/state.ini
TMP_FILE=/tmp/_mediainfo.$$

if [ -n "$1" ]; then
  if [ ! -d $CFG_DIR ]; then
    mkdir -p $CFG_DIR
  fi
  if [ -f $CFG_FILE ]; then
    MAX=`grep maximised $CFG_FILE`
  else
    MAX="maximised=false"
  fi
  if [ -f "$1" ]; then
    mediainfo "$1" > $TMP_FILE
    V_WIDTH=`grep '^Width' $TMP_FILE | sed 's/Width.*: //;s/ pix.*$//;s/ //g'`
    V_HEIGHT=`grep '^Height' $TMP_FILE | sed 's/Height.*: //;s/ pix.*$//;s/ //g'`
    # 720x576 videos with 16:9 AR are special
    if [ "$V_WIDTH" = "720" -a "$V_HEIGHT" = "576" ] && { grep '^Display aspect ratio.*: 16:9' $TMP_FILE >/dev/null ; } then
      V_WIDTH=1024
    fi
    echo "[State]" > $CFG_FILE
    echo "window_w=$V_WIDTH" >>$CFG_FILE
    echo "window_h=$V_HEIGHT" >>$CFG_FILE
    echo "${MAX}" >> $CFG_FILE
  fi
fi

totem "$1"

Edit: the above script has an issue when the file contains more than one video stream. To fix this, add head -1 at the end of lines starting with V_WIDTH= and V_HEIGHT=:
    V_WIDTH=`grep '^Width' $TMP_FILE | sed 's/Width.*: //;s/ pix.*$//;s/ //g' | head -1`
    V_HEIGHT=`grep '^Height' $TMP_FILE | sed 's/Height.*: //;s/ pix.*$//;s/ //g' | head -1`


Menu bar disappeard in LibreOffice, Waterfox after upgrading from 18.04 to 20.04

In the firefox meu, look for "Customize". In the "Customize Firefox" tab that appears, locate the "Toolbars" buttom at the bottom. Click it, and set the checkmark before "Menu bar" to have a permanent display of the menu.


Can't run chromium-browser after last update

It's a bug with the latest version of the kernel.

To fix this issue (and until the update is pushed to the repos), download and install the patched version that can be found in this deb file.


Updater offers 'Linux kernel headers 3.2.0 for version 64 bit x86 SMP' for my 32 bit system

Check whether your OS is with PAE extension.

  A 32-bit computer has a word size of 32 bits, this limits the memory
  theoretically to 4GB. This barrier has been extended through the use
  of 'Physical Address Extension' (or PAE) which increases the limit to
  64GB although the memory access above 4GB will be slightly slower.

Most dekstop/laptop processor made in past 10 year support PAE.

Since Ubuntu 10.04 and newer support PAE out of the box so it can access 64 address line.In 12.04 its default.

Probably that's why you got that kernel image.  64bit means its capable of 64bit address handling, the kernel image architecture is x86 which points that it is for 32bit system.

Unless you have modified your kernel or using the kernel for system software development,its safe to install kernels provide via update-manager.


I can't add work areas in GNOME flashback Ubuntu 14.04 or make Alt+Tab work

These are two questions. You should ask separately.
Regarding workspaces, try:

dconf write /org/gnome/desktop/wm/preferences/num-workspaces 8

in a terminal. It will create 8 workspaces


Unity alt-tab application switcher in Ubuntu 16.04

It's due to Unity and Compiz's application switchers both being enabled with the same keybinding (alt+tab).

You can disable the Compiz Application Switcher by:

sudo apt install compizconfig-settings-manager
Open the CompizConfig Settings Manager by launching "ccsm"
Select "Window Management"
Uncheck "Application Switcher"

Now, only Unity's application switcher (Desktop > Ubuntu Unity Plugin) should appear when you press alt+tab.


Kazam doesn't work on ubuntu 17.10 what's the next best thing?

As far as i know OBS studio is the best screen recorder for Ubuntu.

But for Ubuntu 17.10 there are some issues with OBS studio in Wayland display server. So if you are ready to switch to Xorg, OBS would be a nice choice for screen recording.

You can install OBS studio from the below commands.

Install ffmpeg

sudo apt update
sudo apt install ffmpeg

After installing FFmpeg, install OBS Studio using:

sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update && sudo apt-get install obs-studio


cant able to install openjdk-7-jdk and openjdk-7-jre

I had the same problem but I could install it after running these commands:

sudo apt-get install -f
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jre


Does upstart pass an entire script body to shell for execution or process line-by-line?

I was under the impression that Upstart ran the script as a whole using /bin/sh, with exit on error (set -e, or the command line option -e). That is, if any command whose exit code is not checked returns a non-zero exit code, terminate the script immediately.

Indeed, given a configuration:

description "Testing upstart"
task
script
set -o > /tmp/blah
end script

One finds the following options set:

Current option settings
errexit         on
noglob          off
ignoreeof       off
interactive     off
monitor         off
noexec          off
stdin           off
xtrace          off
verbose         off
vi              off
emacs           off
noclobber       off
allexport       off
notify          off
nounset         off
nolog           off
debug           off

Though I am mystified as to how it ran the second time, since, for any configuration of the form:

pre-start script
false
# any number of commands
end script

None of the commands after false were executed, as expected, so the touch command should never have executed and the mv should have failed on subsequent runs as well.

set -e is not unusual - you'll find that, for example, package maintenance scripts are also run with it enabled. That is why you would see boilerplate of the form:

command that could fail but is not essential || true

Indeed, the Cookbook says this too:

  If a script section appears to be behaving in an odd fashion, the chances are that one of the commands is failing. Remember that Upstart runs every script section using /bin/sh -e. This means that if any simple command fails, the shell will exit.

See also: Sections 11.58.1 and 18.7.


How to Install Trendnet TPL-406E2K Powerline Adapter in Ubuntu 14.04

The Trendnet TPL-406E2K is not a device that you would need to install drivers for. It transmits a standard ethernet signal through your home's power grid. First you have to connect one end to your router. Then just plug the other end directly into the wall (not a power adapter), connect your ethernet cable, and you're done:

See additional information and download the official documentation and resources here.


I had this issue in Ubuntu 12.10 too, copying photographs from USB camera to local disk. The copy progress hangs and does nothing. Though I haven't had a fix for this but importing the photos using Shotwell Photo Manager did help. I could copy all the photos to local disk.

Try Shotwell, it might help you.


How to get the € euro sign on my keyboard?

In my keyboard layout "English (International with Dead keys)" I can get the € sign using AltGr + 5. For a sure kill use Ctrl + Shift + U, you will get a underscored u, then type 20ac Space and you will get €.


Can't remove old kernels due to unmet dependencies

You need to free up space in your /boot directory first. You have four 4.4.13.0 chain kernels: -36, -37, -38 and -39. You only need -38 and -39. So you need to remove -36 and -37. I don't have them installed but to give you an idea of what they would look like I used this command:

$ ll /boot/*4.4.0-124*
-rw-r--r-- 1 root root  1251054 May  2 08:58 /boot/abi-4.4.0-124-generic
-rw-r--r-- 1 root root   190654 May  2 08:58 /boot/config-4.4.0-124-generic
-rw-r--r-- 1 root root 43369621 May 17 06:00 /boot/initrd.img-4.4.0-124-generic
-rw-r--r-- 1 root root      255 May  2 08:58 /boot/retpoline-4.4.0-124-generic
-rw------- 1 root root  3898100 May  2 08:58 /boot/System.map-4.4.0-124-generic
-rw------- 1 root root  7143952 May  2 08:58 /boot/vmlinuz-4.4.0-124-generic

Repeat this command on  your system by substituting 4.4.0-124 with 4.13.0-36 and 4.13.0-37. As you will see each kernel takes about 450 MB in /boot.

Then very carefully type these commands (but not the comments #):

sudo rm -f /boot/*4.13.0-36*
sudo rm -f /boot/*4.13.0-37*
sudo apt install -f  # Ensure all dependency errors are now fixed.
sudo apt update      # There should be no errors reported.
sudo apt autoremove  # This will finish removing kernels -36 & -37.
sudo apt upgrade     # This should install new kernel 4.13.0-41
sudo reboot          # You will now boot into kernel 4.13.0-41

After rebooting, and any other time after booting a new kernel update run:

sudo apt autoremove  # This will keep you at current kernel plus previous version (4.13.0-39) and remove all others

If you have the slightest doubt or uncertainty post a comment below.


Can Shotwell create a folder structure based on the event a photo is assigned to?

Not yet. Shotwell can organize your photos into folders by time only, like the first link you have. To achieve what you want you need to use the Hierarchical Tags feature in Shotwell. This isn't exactly what you want though, so the short answer is no.

Have a look in Preferences/Library/Importing/Pattern: and click (Help) for a list of exactly the time-based metadata Shotwell can organize by.

If you are just wanting to separate out groups of photos to export, you can select a group of tagged photos and export them to a new folder. From there, you could manually reorganize your Pictures directory structure in the file browser.


Sorry, try again error means the password is wrong, this can be because changes have not been effected(logging in and out can solve this), or you are somehow entering the wrong details .


Yeah you've chosen the wrong partition. This looks like a generic recovery partition that OEMs stick on new PCs to save them bundling installation CDs.

Use something like Disk Utility, GParted or sudo fdisk -l | grep '^/dev/sd' to figure out what the real partition number is, then unmount whatever you have on /media/c now and then try mounting the new choice. You're probably looking for the biggest ntfs partition.


In Ubuntu 20.04 They added metered connection option.
GUI:
In Wifi setting click on the gear icon next to your wifi ssid. At the bottom you will see the checkbox for metered connection.
Terminal:
Turn on:
nmcli connection modify YOUR_WIFI_SSID connection.metered yes

Show current status:
nmcli -f connection.metered connection show YOUR_WIFI_SSID


Pomsky called it -How to get 3x3 grid in Ubuntu 18.04

Did you also set 3x3 in the extension's preferences?

I totally missed that there was an extension preferences button. Hit that on the chrome extension and update the rows. Simple simple.

Thanks everyone!


kde profiles for home, work movie watching etc

Activities

The KDE is having the Activities: http://userbase.kde.org/Plasma -> http://userbase.kde.org/Plasma#Activities

You could use the Activities as the profiles.

Example

Make the Activities for the home, work, movie watching...

Set the activity power management settings...


Yes, you can perfectly install and run Android Studio with that specs.

I have it running in a 2,0Ghz Centrino from the Core2Duo era with 2gb of ram and 4 gb swap, and runs pretty well.

However you should have some considerations in mind:

You should avoid using android emulator due to memory limitations, use then a real android device.
Oracle JVM is recommended over OpenJDK for GUI apps like Android Studio. You can install it following this instructions:

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

At this point you'll be prompted to accept the license agreement, use cursor keys to select Yes and press Enter.

Then run: sudo apt-get install oracle-java8-set-default to update system defaults.

Anyway don't expect same performance as a desktop i7 + 8gb of ram (I have it too), is very usable, but there are tasks such compiling, indexing, etc, which may take a bit longer.


My pc slows down - freezes occasionaly when I switch accounts

maybe when you switch accounts you take the other account open than it Consume more of device resources .
if you want to speed your PC do: LogOut and Login to the other account.


How does one go about getting permissions for installing zipped files from a cd.

Its look like your zip has no read permission.
can you give read permission and try to unzip

chmod a+r myfiles.zip


If automysqlbackup can work with mysql-client-5.6 (In other words, if it's binary compatible with mysql-client-5.6).

Is possible to use equivs to create dummy packages for mysql-client, mysql-server. Nothing to loose if it didn't work just uninstall them:

Install equivs:

sudo apt-get install equivs

Generate control file from template:

equivs-control mysql-client

Open mysql-client file for edit. Change name and version if needed:

...
Package: mysql-client
Version: 5.6
...

Build then install it:

equivs-build mysql-client
sudo dpkg -i mysql-client*.deb

Follow same steps for mysql-server.


Strange titles (and bookmarks) in chromium in xubuntu

Run this command:

dpkg -l | grep chromium-browser-l10n

If you have no output from this command, you need to install the language package for chromium:

sudo apt-get update
sudo apt-get install chromium-browser-l10n

Restart chromium to apply the changes.


Sound not working on dell insipron 14 3442 having Ubuntu 12.04.5 . Using HDA Intel PCH card

I am facing the same issue.. tried everything on google ..working on dell vostro 3446 ubuntu 12.04 lts

You can try changing the model to generic


Fl Studio graphic Interface isnt responding Ubuntu 16.04

Like a comment has mentioned, it may be better to run this in a virtual machine (VirtualBox would do the trick), but there are always things you can do.

So for all programs, you typically want to check WineHQ before even installing it to check and see if Wine even plays nice with the program.

If you check the WineHQ page for FL Studio, you can see that most versions work pretty well. Since you didn't include the version you are using, I would suggest visiting that page and looking up the configuration for your version. The site usually contains a "How-To" for most apps that show how to get them working in the best possible state.

For obvious reasons, you are going to need to restart the application though.


In the file explorer go to the edit tab in the top bar and click preferances (its the one at the bottom) and you will be presented with a window like this

go to the behaviors tab then under executeable files ensure that the option is set to always ask

then try again


Wireless disabled on 12.10 Macbook pro 7.1

execute this in terminal

/etc/init.d/networking restart

it should fix your problem


MySQL Client won't disturb your MySQL Server installation, if that is what you are referring to.
Client can be installed and used without server component, and versions of the two don't need to match necessarily.
You may lack a feature or bugfix, but in general if all you need is dump, it should work between versions.


Error using "cp" to copy files to an external disk

The filename contains a colon character : which is illegal in Windows and therefore likely not supported by the ExFAT filesystem.


Having trouble installing and removing MySQL in Ubuntu

Try doing a purge, then re-install.

sudo apt-get remove --purge mysql-\*
sudo apt-get install mysql-server mysql-client

Update 04.09.2018:
If you have issues uninstalling/installing because MySQL process is live, you can try this first, then above:
sudo kill $(pgrep mysql)


When you interrupt the package manager a couple of things can happen..

it could have been stopped while either installing/configuring a package
left the lock on the upgrade process so you can't run two upgrades at once.

In a general sense, exit any package managers (synaptic, software center) and issur the following from a terminal prompt.

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade


Try to shutdown from terminal.To do that run the below command in terminalctrl+alt+t,

sudo shutdown -h now


External audio works only after plugging and unplugging a headset

Sorry Sasha Shpota, I don't have a definitive answer. But I've been digging around on forums to find an answer to an audio problem that I have and this problem does seem related to PulseAudio and how it recognises devices. There's lots of commentary on how capricious PulseAudio can be, especially when there are multiple audio devices.

What I can recommend is that you install and take a look at the app pavucontrol. Whilst using this audio configuration app didn't help me, it did list all of the audio input and output apps and allowed me to switch things on and off. It might be that you find that the builtin speaker is switched off at the software level and that you can switch it back on using pavucontrol.

To find out if you have pavucontrol:

dpkg -l pavucontrol

If it's not installed:

sudo apt install pavucontrol

Hope this helps. :)


The latest is unity 5.18.0-0ubuntu2, so that's what you'd get after updating the system. The question is if you still get the undesired behaviour.

If what you have is the PPA-provided unity 5.18, maybe you could try changing your last command to:

sudo apt-get install --reinstall unity

so you get the Ubuntu version of the package to substitute the one from the PPA.

I do not know how safe it would be to purge the ppa-provided package first, but sure it sounds too dangerous to try unless you know exactly what you are doing.


The "Permission denied" error for the logs directory most likely means that the OS user running the Tomcat process does not have write permission on that directory.

Assuming you are running Tomcat with user "tomcat7", try setting the ownership and filesystem permissions of the logs directory, e.g.:

sudo chown -R tomcat7:tomcat7 /usr/share/tomcat7/logs
sudo chmod -R u+rw /usr/share/tomcat7/logs

If you are running Tomcat with a different OS user, replace tomcat7:tomcat7 by the username and primary group of that user, respectively.


See also this thread in Linuxquestions:
http://www.linuxquestions.org/questions/debian-26/render-error-detected-eir-0x00000000-877013/


Script that displays files larger than 1M one by one and asks for further action from a user?

Use a function and call it like this find [...] -exec bash -c 'myFunction "$1"' _ {} \;.

e.g. something like this:

#!/bin/bash

rmziporskip(){
    printf 'What should I do with %s ?\n' "$1"
    select action in remove zip skip; do
        case $action in
            remove)
                    rm "$1";
                    echo "The file has been deleted!"
                    ;;
            zip)
                    zip "$1.zip" "$1"
                    rm "$1";
                    echo "The file has been zipped and the original deleted!"
                    ;;
            *)
                    echo "The file has been skipped!"
                    ;;
        esac
        break;
    done
}

export -f rmziporskip
find . -maxdepth 1 -type f -size +1M -exec bash -c 'rmziporskip "$1"' _ {} \;


Plugging/configuring second monitor causes logout

I have the same problem and the way I've partially solved (as in it works most of the time, but not always) is by doing this after the forced logout:

unplug the second screen
login
open a terminal and type rm .config/monitors.xml which remvoed the previously saved monitor configuration
open Screen Display
without changing any setting, just press "Apply"
move the monitors to the setting you want, press Apply
you'll get an error dialog box, press ok. Most of the time this works for me, until I reboot or power off. Then it's all over again.


Want to create new Dolphin window from Unity launcher

You can create a custom dolphin launcher with a quicklist entry to open a new window.

Create the launcher in ~/.local/share/applications:

gedit  ~/.local/share/applications/dolphin.desktop

Copy and paste the following text into the file:

[Desktop Entry]
Name=Dolphin (custom)
Exec=dolphin %i -caption "%c" %u
Icon=system-file-manager
Type=Application
X-DocPath=dolphin/index.html
Categories=Qt;KDE;System;FileTools;FileManager;
GenericName=File Manager
Terminal=false
MimeType=inode/directory;
InitialPreference=10

X-Ayatana-Desktop-Shortcuts=OpenNewWindow

[OpenNewWindow Shortcut Group]
Name=Open New Window
Exec=dolphin %u
TargetEnvironment=Unity

Save the file, exit gedit and search for your new launcher from the dash. Then simply pin it to your dock.

If you aren't too keen on creating a new launcher you can edit the existing one as well and simply add X-Ayatana.. and all following lines to the file:

gksudo gedit /usr/share/applications/kde4/dolphin.desktop

(Note: On 13.04 you might have to install gksudo first (sudo apt-get install gksu))

I would advise against modifying the original launcher though, as it will get set back to the original on each Dolphin update.

Sources:

How can I edit/create new launcher items in Unity by hand?

What Custom Launchers and Unity Quicklists are available?


How can I backup files on /etc using Deja Dup?

To Enable root login, open Terminal and enter following commands:

sudo passwd root
sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'

Now Restart your lightdm and login as root.

sudo service lightdm restart


How do I get VLC Player or GNOME MPlayer to run DVDs I put into my computer?

I think you need to download Ubuntu-restricted-extras from apt-get or from the software centre.


bash ("Bourne Again Shell") displays the command line and runs whatever you type there.

By default Terminal starts bash so it's what you see there if you just open a Terminal.

If you tell bash to start another bash the new one will by default just look like the old one so it looks like the command has been executed successfully with no output, but it's still running.

You can use the command

echo $$

to display the process ID (PID) of the currently running bash and exit it with

exit

or Ctrl+d


How to change the screen resolution of the virtual console on an external VGA?

In Grub2, as a Linux kernel boot parameter, this is what I add to the boot line on my servers...

# It follows the format of video=conn:res[M][R][-bpp][@refresh][i][m][eDd]
# Example:
nomodeset video=VGA:1024x768@60m

What this says is to turn kms modesetting off... Manually set the framebuffer for port VGA to 1024x768 @60Hz with a margin. Search on the "format" above and it will explain all the options for that, as well as all the valid conn names.


How to find the real size of a file partially downloaded from a Torrent client, using the terminal?

Assuming you mean how much disk space is used holding the parts already downloaded, that would be the Blocks x Block Size that stat reports.


Thunderbird stuck at "Checking password..."

I solved the problem by removing my proxy settings for FTP and SOCKS. I did this by updating my /etc/apt/apt.config file as follows:

Acquire::http::proxy "http://<username>:<password>@<proxy>:<port>/";
Acquire::https::proxy "https://<username>:<password>@<proxy>:<port>/";

I'm not sure why Thunderbird had trouble when I had the FTP and SOCKS proxy entered, so that would be an interesting question for someone to answer. For now though, I'm satisfied that the problem is fixed.


Installing NVIDIA GEFORCE 1050 TI - Cannot Get To GUI

Since you can see GRUB, you can try following methods:

In GRUB, choose recovery mode and enter root shell like this: https://www.youtube.com/watch?v=HYiTJtYmmzg .
In root shell, you may need to use mount -o rw,remount / to make the file system writable.
Open /etc/default/grub, find the line GRUB_CMDLINE_LINUX_DEFAULT=.... Change the line to: GRUB_CMDLINE_LINUX_DEFAULT='pcie_port_pm=off acpi_backlight=none acpi_osi=Linux acpi_osi=! acpi_osi="Windows 2009"'

Then reboot again.


Unable to restart SSH daemon: Missing init script

The script is named /etc/init.d/sshd  not ssh.


How do I customize the shell in Multipass (on Ubuntu)?

I'm having a similar issue when using the multipass terminal. But you can simply avoid using the multipass shell by using your default terminal and type multipass shell <your VM name>.
There are quite a lot of useful commands of multipass, you can try multipass help.


There is no special trick here; you are just responsible for keeping your desktop session locked when you are not sitting in front of your computer. Otherwise people walking by could do anything to your computer, even if you are not using a keyring of any kind, including installing a secret password-sniffing program!

Get in the habit of locking your screen whenever you get up for any reason. Do it even when you are sure you are alone so it becomes rote. This is quicker if you configure a keyboard shortcut like Ctrl+Alt+L for it (launch Keyboard --> Shortcuts --> System --> Lock screen). It would be nice if the Power control panel allowed you to lock the screen when a laptop lid is closed, but this does not seem to be an option.

And in case you forget, configure the screen to lock after a few minutes of inactivity (rather than going into a screensaver): Screen > Lock.


apt-get upgrade: why is lxc-docker being kept back?

You can upgrade lxc-docker specifically:

sudo apt-get install lxc-docker

That should override whatever holds back the upgrade (barring manually held packages, which we excluded in this case).


I was able to get this working by appending cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 to the file /boot/firmware/cmdline.txt.  Changes made to /boot/firmware/nobtcmd.txt in Ubuntu 20.04 appear to be ignored (there's a note in config.txt about cmdline=nobtcmd.txt being deprecated in favour of include commands).


How to decorate a GTK window like eg. the gnome-panel?

The answer was provided on StackOverflow.


How to open window centered in unity desktop?

Install CompizConfig Settings Manager

sudo apt-get install compizconfig-settings-manager

Window Management -> Place Windows


I created the file /usr/share/gnome-session/sessions/gdm-shell.session containing:
[GNOME Session]
Name=Computer

and then I could use GDM3 as the session login manager again for the first time in years.


samba printing not working from Ubuntu 18.04

Hi I know there is a configuration file that details in the smb.conf a configured directory which specifies where Windows machines with go to get print drivers for samba/cups you probably don't have that setup or populated.


10.04 server to 12.04 server or 11.10 server to 12.04 server?

I imagine it will be much the same as it was last time there was a new LTS.  It's documented here.

Essentially, you should be able to do either.  I would think with a 'production server' the changes in UI packages aren't going to matter that much as long as you don't highly customize something.


Unable to locate package ubuntu-extras-keyring

It appears you're attempting to install a package that isn't available anymore.
As you look for software you have to pay close attention to which version of the OS it is aimed for.
If there is no direct mention of the OS version, then look for the AGE of the information (e.g. "posted ").
Old versions of software has a tendency to not work with a recent OS distribution.
Old software may get replaced entire by something "new", or the setup might require a different style than what you're reading about.
How quickly that happens - and the "severity" of it - depends on changes taking place;
e.g. Ubuntu 16.04 LTS and 20.04 LTS are quite different in setup, due to decisions taken by those involved in the process of creating the later distribution.
Between those there are several actual differences; one such (not related to the Q) is the fact that python2 was dropped entirely. Packages relying solely on python 2 will not work in 20.04.


How do I upgrade Nautilus in Ubuntu 14.04 Unity and Ubuntu based distros?

You can't. Nautilus 3.18 isn't available for Ubuntu 14.04. Ubuntu 14.04 is too old, or the required libraries are too old. You could try it for yourself to compile. But you will not succeed. To use Nautilus 3.18 you need at least Ubuntu 15.10 with some additionally PPAs or wait for Ubuntu 16.04.


How do I create a functional app icon in Ubuntu 18.04 LTS Launcher (Universal Gcode Sender)

In the terminal app, type the following, to create a new .desktop file:

gedit ~/.local/share/applications/ugsplatform.desktop

Copy/paste the following text:

[Desktop Entry]
Name=UGS Platform
Comment=UGS Platform is the next generation of Universal Gcode Sender.
GenericName=UGS Platform
Exec=/home/bogen/ProgramFiles/UGSP2/bin/ugsplatform
Type=Application
Icon=/home/bogen/ProgramFiles/UGSP2/ugs_icon.png
Categories=GNOME;GTK;Utility;

Save the file and quit gedit.

Make sure the file is named ugsplatform.desktop. Then, Get Properties on the newly created file, and go to the Permissions tab, and enable the "Allow executing file as program" checkbox.

Hit the Super key and type ugs.


Journalctl says: "Failed to search journal ACL: Operation not supported"

This can be caused by mounting ZFS with the wrong options. Journald requires access control lists, which are off by default in ZFS on Linux.

To enable access control lists, you must set the acltype=posixacl property on your filesystems. According to the zfs(8) man page, it is also recommended to set the xattr=sa property, which is more efficient, but only supported by "relatively new" ZFS implementations.

Set the properties as follows, for each filesystem:

zfs set acltype=posixacl poolname/path/to/fs && zfs set xattr=sa poolname/path/to/fs

After setting these properties, restart journald:

sudo systemctl restart systemd-journald

See also: https://github.com/NixOS/nixpkgs/issues/16954


Ubuntu 18.04 + Nvidia = VGA resolution for second logged in user

Ok, after much fiddling and talking on Nvidia official forums its turned out that by some, absolutely unknown reason XFCE on XUbuntu 18.04 (and 18.10) is not compatible with Nvidia 39X series driver. Even on freshly installed Xubuntu witn Nvidia drives its not possible to run normally with XFCE environment. On contrary, other DE like LXDE or MATE is in perfectly working condition. Solution is obvious - switch to other DE.

If XFCE is absolutely must have oe can use Open Source Nouveau drivers for Nvidia card, its working fine with XFCE.

Weird, weird bug...


The 'width' mentioned in the output addresses the width of the device,
this has nothing to do with having 32bit or 64bit driver so using 64 bit ubuntu will make no difference to your video drivers.

Which Geforce graphics card do you have? If it is a hybrid card you may have some success using Bumblebee. Installation instructions here.


xsession error - libvdpau_nvidia.so. But no nvidia card

You should track down which application is reporting that error and turn of hardware acceleration in that app.

My guess is that it is your flash player, because I had this error too. So test it out:
First run in a terminal:

tail -f ~/.xsession-errors

This will open .xsession-erros in a "live" mode, showing everything what is newly written to it. Then launch a browser and open a flash video (e.g. youtube, but not in HTM5 mode). If then the error message pops up in your terminal then flash is causing your problem. So just right click on the video -> select Settings... and uncheck Enable hardware acceleration. If it wasn't flash, then try opening other graphical apps which you use regularly and watch if the error pops up in your terminal, then turn off hardware acceleration in that app.


The following packages have unmet dependencies and could not initialize package information

So, as we have found out in our chat room that the error was being caused by a ppa - ppa:xorg-edgers/ppa and all its packages. Removing it and adding a new ppa for nvidia drivers ppa:graphics-drivers/ppa solved the issue. Glad! we worked it out.


Unable to upgrade due to unmet dependencies indicator-bluetooth

Did you try:

sudo apt-get install --fix-missing

?

Edit

So I just found your previous question here: https://askubuntu.com/questions/667146/unable-to-do-any-sort-of-apt-get-unmet-dependencies  , it would have been helpful to include that this problem results from upgrading from 13.10 to 14.04 and give a link to your previous question. The cleanest solution may simply be reinstalling the system, many people prefer clean installs to avoid things like this.

But to return to your question, the error shown in your comment to @DevRobot 's answer, means there are some issues going on with apt-get not knowing what version of a package you want. Looking more closely at the error in your original question, the error says it needs libegl1-mesa OR libegl1-x11, and your error in the comment indicates that the package libegl1-x11 wasn't found in the repository, so instead of installing every package they list in the error, we'll try to install packages selectively, since some packages automatically include the other packages you need:

sudo apt-get install unity-control-center libegl1-mesa libgbm1;

And try upgrading again.

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

(I'm frankly not sure if running "upgrade" before "dist-upgrade" will make a difference, but it shouldn't hurt)


command line for hiding and unhiding unity panel

For 12.10
As Rinzwind mentioned in the comments, Ubuntu has migrated its settings from gconf to gsettings. The commands in the question you linked is valid for 12.04 and earlier, but not for 12.10 onwards.
The updated commands for hiding the Unity launcher would be:
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 1

And for unhiding the Unity launcher:
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 0


Ubuntu 18.04 Won't Boot on Dell Inspiron 7375

I have the Ryzen 2700U Inspiron 7375 as well. I managed to get this working pretty well, however I had to get it installed using Antergos. I wasn't able to get it reliably booting under Ubuntu 18.04 unless I left acpi=off set in the kernel parameters and it wouldn't boot at all to the 4.17 kernel. I started trying different distributions and Antergos worked perfectly the first time (though I may have been lucky since afterwards it seemed 50/50).

After logs of digging and experimenting, I finally found these kernel parameters to be the key (using with linux kernel 4.17.2-1-zen from the Antergos linux-zen package):

  amd_iommu=on ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2

Under Antergos I added these to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub then ran

sudo grub-mkconfig -o /boot/grub/grub.cfg

Now things are working pretty well! Maybe these options will help get things working under Ubuntu as well.

update: I just downloaded the 18.04 installer and tried to boot from it again (which comes with the 4.15 kernel). When I added the parameters above (by hitting 'e' on the bootloader) it was able to boot and work correctly. I didn't want to try an install over again so I didn't proceed further, but it appears to work correctly off of the live USB at least.


Wifi signal strength weak on Ubuntu 18.04 with rtl8723be

Please refer to the bug report I linked above at posts #25 and following:

  I've tested with the kernel as recommended and suggest in #25. Wifi
  with rtl8723b3 works again (like a charm). However, ant_sel must be
  set to 1 (ant_sel=1) as opposed to kernel 4.15.0-32, which required
  ant_sel to be set to 2 (ant_sel=2). (e.g sudo modprobe rtl8723be
  ant_sel=1 vs. sudo modprobe rtl8723be ant_sel=2).

At post #32, we see that kernel version 4.17-rc4 works well.

Therefore, I suggest that, if and only if the ant_sel steps don't work, then install the kernel and associated packages. The links are all the usual 64-bit packages. Be certain that yours is a 64-bit install with the terminal command:

arch

If it returns x86_64, then please proceed.

Download these packages:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17-rc4/linux-headers-4.17.0-041700rc4_4.17.0-041700rc4.201806041713_all.deb

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17-rc4/linux-headers-4.17.0-041700rc4-generic_4.17.0-041700rc4.201806041713_amd64.deb

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17-rc4/linux-image-unsigned-4.17.0-041700rc4-generic_4.17.0-041700rc4.201806041713_amd64.deb

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17-rc4/linux-modules-4.17.0-041700rc4-generic_4.17.0-041700rc4.201806041713_amd64.deb

By default, downloads go to the folder Downloads. Open a terminal and do:

cd ~/Downloads
sudo dpkg -i linux*.deb

Reboot.

EDIT: Ubuntu 18.10 that was recently released uses kernel version 4.18.0-xx. I assume that rtl8723be will work as expected. You can verify this by running a live session of 18.10. If everything works as expected, I suggest that you install it.


Change the data hard drive - Ubuntu Server

change the UUID of the new drive in the fstab

That will need a reboot to take effect, or you'll have to manually unmount and remount.

  Do I have to stop the owncloud service before doing that?

If the ownclowd service might change anything in /media/data while you're copying to the new disk, then you should stop the service before the copying. The same goes for any other service which might use that directory.

Also, if you chose to manually unmount and remount, then you should stop the services that might read from the disk beforehand.

  Is it not better to use the DD command instead?

rsync is sufficient to get the data across. dd will just waste time - it will copy 2.7TB of data, when you only need to copy 1.8TB.


How to make alt-w close current tab, not current window, in Gnome Shell

Open a terminal with Ctrl-Alt-T keyboard shortcut and  try executing this command to fix the problem:

 gsettings set org.gnome.desktop.wm.keybindings close "['<Alt>F4']"

This command will set Alt-F4 as the default binding for closing the window. Then you should use the regular Ctrl-W to close tabs.

After the command, try testing it. Hope this will help


How can I print the line numbers of gedit?

Open the Print... menu from the File tab

Select the 3º tab called "Text Editor"

Click the second option "Print line numbers" so this checkbox remains enabled

Now you can choice Print Preview and you will see the line numbers before print it:


You seem to have saved an HTML page as a source list. The instructions for PlayOnLinux on trusty, from the website, are:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_trusty.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

To check that there's no problems with the internet connection, before executing the above commands, you can do:

wget http://deb.playonlinux.com/playonlinux_trusty.list -O -

This should give:

deb http://deb.playonlinux.com/ trusty main

as the output.


Will I upgrade to Ubuntu if I use dist-upgrade in Xubuntu?

No, the upgrade will just install Xubuntu 11.10.


How to check if there is internet access ? and how to connect to eth0 and wlan0 in Ubuntu Server

Run the following command if you do not have an IP. If you do have an IP, skip the first part here and go down to the instructions for DNS:

sudo nano /etc/network/interfaces

Then, make sure the file looks like this, if not, make changes:

# The loopback network interface
auto lo eth0
iface lo inet loopback

# The primary network interface
iface eth0 inet dhcp

Press CTRL + o and then press ENTER to save the file. Press CTRL + x to exit nano.

Then, bring up the interface and restart networking:

sudo ifup -a

sudo service networking restart

Again, run ifconfig to see if you have an inet address. If so, run the following command to check the network. If the network is good, you will not get any errors:

sudo apt-get update

DNS

If you get errors, you may need to set the dns resolver. To do this, edit resolvconf:

sudo nano /etc/resolv.conf

Now, set your nameserver to something like 8.8.4.4 for now, so the file should look like this:

nameserver 8.8.4.4

Press CTRL + o and then press ENTER to save the file. Press CTRL + x to exit nano.

Then, run the following command to update your dns settings:

sudo resolvconf -u

Run the following command to test the network:

sudo apt-get update

or

To check to see if you have internet, run the following command; the less percent packet loss, the better:

ping 8.8.8.8


xscreensaver build - failing on make install

The problem in this case is that the appropriate files don't have the executable bit. If the file needs to be executed, that is run as a program, then it needs to have that bit set.
In this case, to make the application you need 'makefile' to be executable. This is done with:
chmod +x ./<file_name>

Adjust your /path/to/file as needed and then, run your make command again.
sudo make install

'chmod' means to change file mode bits and the +x means executable.


Mysterious .directories in my home directory

Files with a dot at the beginning of the name are hidden by default. In Nautilus (Ubuntu's default file manager) you can make them visible with Ctrl+H. For the ls command, add the switch -a to it, which lists all files.

These files are either there from the beginning (like .local or .config) or are created by a program to store configuration etc.

As an example, PlayOnLinux stores its virtual drives in ~/.PlayOnLinux. Java will create the .java directory, and Firefox and Thunderbird use the .mozilla directory. There are also files, not only directories. E.g. .bash_history contains the command history of your terminal shell.

So don't worry about these files. As a "normal" user, who doesn't mess with his systems config, you'll most likelynever even need to take a look into these files and directories.


How can I configure clipboard as Windows?

According to this wiki, whether the clipboard contents are remembered after the source application is closed depends on the application but several programs in X11-based operating systems do not ensure that the clipboard is remembered.

The user may want to install a clipboard manager to deal with this issue. Some common ones available from the software center are Parcellite, Clipit, xfce4-clipman, and Klipper. A longer list is available here.


I faced a similar problem compiling ROOT when I used ./configure linux --enable-python on 64bit Ubuntu 15.10. Solved it by typing ./configure linuxx8664gcc --enable-python.


What is the normal format for files on ubuntu ?

You need to set the NTFS partition to be mounted automatically on boot. That can be done by adding info about your partition to /etc/fstab file, which is basically a list of disks/filesystems (and also respective options for those disks and filesystems, like read-write, read only, etc) that get mounted automatically during boot sequence.

To do that , open Terminal ( in Windows' terms that's CMD or PowerShell ), run sudo blkid command. There will be output for each partition; find the UUID for your NTFS partition.

Sample output,

 /dev/sdb2: LABEL="TI105866W0A" UUID="4EBAAE53BAAE36FD" TYPE="ntfs"

For instance, if I wanted to have /dev/sdb2 mounted automatically (which is my windows partition on another disk ), I need that  UUID="4EBAAE53BAAE36FD" part.

Next , open for writing /etc/fstab file in text editor, with admin priviledges ( in other words add sudo or gksu before calling the editor, e.g., sudo nano /etc/fstab ). and add a line in the format as shown bellow

UUID=1234-abcd-5678-efgh   /media/myMountPoint  ntfs defaults 0 1

/media/myMountPoint has to exist as a directory, so I suggest you make a new directory with sudo mkdir /media/myMountPoint

Note that opening the /etc/fstab file with root permissions, can also be done graphically with gksu gedit or pkexec gedit. Personally, i prefer command line editors vim or nano

For more info refer to MountingWindowsPartitions Wiki


Put the Windows 10 installation disc in the disc drive, and power cycle your PC after setting it to boot from CD Drive in BIOS.(Or LiveUSB)
Press any key when you are prompted & select [language, time, currency, keyboard etc.] & click Next. Select Repair Your Computer option in the dialog window.
In the System Recovery Options window Click the 1st Option Startup Repair and let it do what it wants to do, but in my case it didn’t solve the problem so I went to the next step.
In the System Recovery Options dialog box, go to the last option i.e. Command Prompt.
Once in the command prompt (X:\Sources>), type exactly the following commands in the same sequence

bcdedit /export C:\BCD_Backup
C:
CD Boot
Attrib bcd –s –h –r
ren c:\boot\bcd bcd.old
bootrec /RebuildBcd

then it said

Scanning all disks for windows installations.
Please wait, since this may take a while…
Successfully scanned windows installations: 1
[1] C:\windows
Add installations to boot list? Yes(y)/No(N)/All(A) :

I pressed Y as there was only one instance of windows installation. Then it said The operation completed successfully.
Next enter the following command bootrec /fixmbr. It said The operation completed successfully.
Next enter the following command bootrec /FixBoot. Again It said The operation completed successfully.
Set the BIOS again to boot from the HDD and reboot.

GRUB was gone & finally the windows 10 was booting again

reference here


Is it possible to install Windows on a separate hard drive without leaving Ubuntu?

Just make sure it installs in your already formatted NTFS partition. Typically Windows changes the boot order to itself but it's OK and convenient (the installation takes a few reboots until finished, unlike Linux distros).

Once done go to UEFI settings and set it back to Ubuntu. Boot Ubuntu and run sudo update-grub. Reboot and the Grub menu should appear with one option to boot Windows.


L1, L2 and L3 cache are terms used to describe caches used internally by the CPU and chipset.  They are transparent to the system, that is, the existence or not of data in the caches shall never have any observable side effects on program execution or the data returned by any operation.  There is therefore also no way to clear them and if there were, doing so would have no observable effect.

These caches are integral to the functioning of the CPU. Their contents are refreshed possibly millions of times per second, depending on the operations in progress.


nautilus-clutterflow only works in "sudo-mode"

in gconf-editor

check "show_clutter"
and set "clutter_test" to 0

ok, then
nautilus -q and try F4

in my case, it worked.


Setting up mail server on Ubuntu Desktop 14.04

First, Sending/Receiving rely on the SMTP protocol. Dovecot, is NOT a SMTP server, it's an IMAP/POP3 server, which is used to serve Mailboxes to the end user.

To receive mail you need a SMTP server, like Postfix or Exim4.
To send Mail, you need a SMTP client, like sendmail.

If you want to add a Web Interface, you'll also need a WebServer (Like Apache2 or Nginx) and a web application like Roundcube.

Do not forget that if you want to test mail sending/receiving in almost real-world condition, it could be a good idea to add a DNS Server, like Bind9.


Text editor that can wrap text in predefined HTML tags like Notepad++

Found it! Bluefish does it (http://bluefish.openoffice.nl/index.html). It's powerful, simple and available in Software Center (old version though). It seems that it isn't very popular or at least talked about on forums (never heard of it before), but it seems as capable as Notepad++. The only problem is that it's quite complicated to change the shortcuts, but the existing ones aren't that bad either.


Adding archlinux to dualboot without messing up grub

You should be fine with installing GRUB to the MBR. Once you boot into ArchLinux, you can add entries to chainload the other OSs on your system (i.e., Ubuntu and Windows). Please note that if you do install the Arch GRUB to the MBR, then Arch will become your primary OS, which will in-turn be used to boot other OSs. Also, note that ArchLinux is a DIY-system. So, you will have to manually set-up chainloading using this guide.

You can easily change this by booting into Ubuntu (either the Ubuntu on your HDD or the same LiveCD with which you had installed Ubuntu in the first place) and installing the Ubuntu Grub to the MBR. In this second case, Ubuntu will be used to boot the other OSs. This setup (with the Ubuntu GRUB on the MBR) is the one which you already have. As a side note, if you are planning on using the Ubuntu GRUB finally, then, during your original Arch install, you should tell Arch to install its GRUB to the "/" or the "/boot" partition of Arch instead of the MBR.

If you every encounter any problems, the ArchWiki should be the first place to check for solutions to your problems.

Here are links to your question:

Beginner's Guide

GRUB

Windows and Arch: Dual-boot


Ubuntu 20.04/Windows 10 Dual Boot "error: file '/efi/Microsoft/Boot/bootmgfw.efi' not found" when boot into Windows 10

i follow this link:
Grub only works after viewing bios first
i had exactly the same problem, i disabled "fast boot" in my Bios, and it fixed it ;). For the explication, i'm waiting for much better than me.


Install Ubuntu VirtualBox Bridged Network not recognized

Netplan
01-netcfg.yaml change for your interface name,  address of your router and desired static IP.  In my case my ISP router is messing up DNS as well so I configure netplan to do DNS directly (do not use router)
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      addresses:
        - 192.168.1.200/24
      gateway4: 192.168.1.1
      dhcp4: true
      dhcp6: true
      dhcp4-overrides:
        use-dns: false # https://netplan.io/reference don't use dhcp server (router) DNS
      dhcp6-overrides:
        use-dns: false
      nameservers:
        addresses: [8.8.8.8]

Install:
sudo ./01-netcfg.yaml /etc/netplan/.
sudo netplan apply


Did the gtk-integration of LibreOffice improve with 3.4?

Yes.

Before and after image .

Also Look at this bug:
https://bugs.freedesktop.org/show_bug.cgi?id=32186


Where to buy ubuntu for android phone dock?

This product hasn't been finished yet to my knowledge. It's deceptive that they don't tell you this on the web-page.

Most of the focus right now is on finishing and shipping Ubuntu Touch. Ubuntu for Android is quite different from it, and is on hold right now I think.

"Ubuntu for Android, currently under development..." http://en.wikipedia.org/wiki/Ubuntu_for_Android


How can I get a DisplayLink USB monitor work under Ubuntu?

On Aug 3, 2015, Displaylink finally released the USB Monitor driver for Ubuntu.

Link: http://www.displaylink.com/downloads/ubuntu.php

I have an AOC usb monitor and Ubuntu 14.04.  After installing the driver, my usb Monitor start working.

If the driver works for your monitor, please let other people know by posting it.  Many people waiting for this driver.  I've been waiting for 2 years.  :-)


Grub on start up changed color from purple to black?

In terminal type

sudo gedit /lib/plymouth/themes/default.grub

for Saucy:

sudo gedit /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.grub

for Bionic (18.04)

sudo gedit /usr/share/plymouth/themes/ubuntu-gnome-logo/ubuntu-gnome-logo.grub

And you can change the grub background colour by changing the values of the 3 in numbers in the text document.

Black is this

if background_color 0,0,0 ; then
   clear
fi

and purple is this

if background_color 44,0,30 ; then
    clear
fi

Once you have finished editing that file save it and run

sudo update-grub

Refrences here and here.


Open a terminal

Type

gksu gedit /etc/resolv.conf

And add these lines after

  nameserver 127.0.0.1

nameserver 4.2.2.1
nameserver 151.197.0.38
nameserver 67.138.54.100

Save the file and close the editor. Then type

sudo /etc/init.d/networking restart

Now ping to test your connection

ping -c 10 askubuntu.com

Now it should work. Flush DNS cache by typing

sudo aptitude install nscd
sudo /etc/init.d/nscd restart
sudo reboot