How can I assign space from a logical partition to a primary one (to resize the primary)

Make sure your backups of documents and other important files are current. You might make a mistake, or data loss could occur during dynamic partition resizing. Once that's done,  boot from an Ubuntu live CD/DVD/USB, select Try Ubuntu, and run the GParted Partition Editor.
Taking space from /dev/sda7 is the easiest, as it requires a lower number of resize/move operations than taking it from /dev/sda5. This, in turn, is because your /dev/sda7 partition is closer to the beginning (left) boundary of /dev/sda2 (the extended partition container), and that boundary has to be moved.

Right-click on /dev/sda7 (your Ubuntu partition, /) and click Resize/Move. Shrink it from the left--that is, increase the Free space preceding.
Decrease it by however much you want your Windows partition to increase. Please note that you won't necessarily be able to increase your Windows partition by exactly that amount (depending on alignment issues), but it will be pretty close.
Now there is space between /dev/sda6 and /dev/sda7.

Right-click on /dev/sda6 (your linux-swap partition) and click Resize/Move. Slide it as far to the right as possible, so it is once again flush against /dev/sda7 (or as close as it can be).
Now there is unallocated space at the very beginning of the extended partition.

Right-click on /dev/sda2 (the extended partition). It's much easier to select this form the list than from the horizontal bar representing your disk. Click Resize/Move. Shrink it from the left--that is, increase the Free space preceding.
Now there is unallocated space outside the extended partition, immediately to the right of the Windows partition.

This is the moment you've been waiting for. Expand the Windows partition (/dev/sda1) to fill that space: Right-click on it, click Reize/Move, and expand it on the right--that is, decrease the Free space following.

Click the check mark to apply your changes, and hope everything works out OK. When that's done, quit GParted.

You won't necessarily have to reinstall Ubuntu's GRUB2 boot loader to the Master Boot Record, but you might as well, as long as you're already booted into the live environment. (Otherwise, you might have to boot back to the live CD/DVD/USB to do it, after discovering that GRUB is not working well enough to boot Ubuntu...or to boot anything.)
Open a Terminal window (Ctrl+Alt+T) and run these commands to reinstall GRUB2 to the MBR (it's this technique, but with the correct values for your system filled in):
sudo mount /dev/sda7 /mnt    # For other folks: Replace sda7 with your / device.
sudo grub-install --root-directory=/mnt /dev/sda
sudo umount /mnt

It's theoretically possible that your Windows system will also need to be repaired, but very unlikely, because:

GRUB2 takes care of bootstrapping to the Windows boot loader (which is in the boot sector of its partition, not in the MBR). That's still present and fully intact.
That's the real reason the Windows system will almost certainly be fine. Read on, if secondary factors interest you...

The Windows partition still begins in the same place on the disk.

The Windows partition was just expanded to the right, so all its files are in the same place on the disk.

Some Windows 7 systems have separate partitions for the boot loader (similar to, but not quite the same as, a /boot partition on some Ubuntu and other Unix-like systems). Yours does not. So there's nothing external to sda1 that matters, when it comes to whether or not the Windows system works. GRUB2 passes control to the boot loader in sda1, and from there on everything is in the same place it was before.

In the event that your Windows system did stop booting and you had to repair it, you could do it from the recovery console on a Windows install DVD/USB, including a trial DVD/USB.
But you probably don't need to resize your partitions at all.
Now that I've presented detailed instructions for resizing your partitions, I'd like to suggest an alternative.
I'm guessing you want to expand your Windows primary partition because you need to fit more into folders that are supposed to be located on that partition and not some other partition.
However, you have another NTFS partition (a logical partition, in the extended partition, to the right of Ubuntu's partitions) with plenty of free space.
So you can make NTFS junctions in your small-ish Windows partition, with their target folders in the big-ish logical NTFS partiton.
For example, a folder from inside Program Files (or even Program Files itself!) could be moved off to the bigger NTFS partition, and a junction created in its place, pointing to it on the big partition.
Or take a look at "How to create and manipulate NTFS junction points," which explains how to use the linkd and delrp commands to create and destroy junctions. Or you may prefer the junction command, which you can get here. (Windows 7 also supports another kind of symbolic link, see this article and mklink.)
NTFS directory junctions are a lot like symbolic links in ext4 and other Unix-style filesystems. But be careful! Directory junctions are parsed like directories, even in situations where *nix symlinks would be parsed like files. For example:

Deleting a junction, the way you'd delete a file or folder, deletes what it points to. (Or at least deletes the contents of what it points to.)
If a directory C:\foo contains a directory qux, which contains a junction bar pointing to D:\baz, and you recursively delete foo or qux (for example, by Shift+Deleteing the folder in Windows Explorer), D:\baz and everything contained within it gets deleted.
Moving C:\foo\qux to C:\ (so it will be C:\qux) moves D:\baz and everything in it from D: to C:!

NTFS junctions don't cause problems in Ubuntu. NTFS-3G, Ubuntu's NTFS filesystem driver, is compatible with them (though they're treated like Unix-style symbolic links, which means they behave a bit differently than on Windows).
For details or advice on creating and managing junctions (or other forms of symbolic links, as were added in Windows 7) within Windows, you should ask somewhere Windows is supported, such as Super User. (And, at least in my opinion, you should use Windows to make them if you decide to use them, even if it's theoretically possible to do so in Ubuntu.) But I wanted to present what may be a good alternative to resizing your partitions.


Package Manager cannot access repositories but internet is working

Clearly apt-get (and Synaptic) think there's a non-existent proxy set somewhere.

Try forcing a one-time no proxy with the -o option, for example:

 sudo apt-get -o Acquire::http::proxy=null update

and see if that works.

If it does, you can use it for any "emergency" updates/installs.

Note that the apt.conf file is obsolete and settings are currently stored in multiple files under /etc/apt/apt.conf.d/. To solve this problem, run grep -r Acquire /etc/apt/apt.conf.d/* and paste the output here so we can help you further.


How to launch the GUI only sometimes on Ubuntu 12.04 server?

I think that what you are looking for is for a light desktop that you can start whenever you want (based in your comments) and that you can stop when you are done. For that before it was recommended gnome, but now the way to go is lxde or xfce. Is up to you what to install:

sudo apt-get --no-install-recommends install lxde-core xorg-core // If you want lxde
sudo apt-get --no-install-recommends install xfce4 xorg-core // If you want xfce

From there on, you should be able to use the startx command to fire up a Xserver session.

For a headless server

For a headless server the procedure is almost the same, just that you might have to use SSH+VNC tunneling if the server is a remote location. There was already a question that was answered (several times) about how to do so, so I won't repeat the same again: https://askubuntu.com/a/7167/169736


in your /etc/hosts file

add 192.168.1.104 ubuntumedia.ubuntumediagz.local ubuntumedia


Package ignore when running apt-get update

This is because of a problem in the centrifydc package as indicated here on their forums:
http://community.centrify.com/t5/DirectControl-Express-for-UNIX/Broken-new-centrifydc-package-for-ubuntu-12-04-LTS/td-p/12010/page/2

Thanks for your patience on this. We are working with canonical to have these packages available soon, I don't have a confirmed date but we are making progress.
We hope to have it ready within a week and we will update the thread as soon as we have something more definitive.

So this should be resolved in the future.


Why would I install a DNS server on my Ubuntu server?

This is a very open question, there are lots of reasons to run a local DNS server. I'll give you why we use it at work:

As a cache to improve performance. Most of DNS queries are shared among lots of computers, if they are cached on our DNS server, clients don't need to connect to internet to resolve it, a much faster LAN connection will do it.
We want to name some computers that are only available in the LAN (i.e. on our network, you can't access then from the internet). Some of our servers can only be accessed from the internal network, we want our users to be able do it with a normal name using the same tools that they are used.
We give different IPs to some names: in a public (ISP) DNS our web server will resolve to our public (internet-facing) IP. When someone from the LAN ask our DNS to resolve its name we return our private IP.
To temporary ban some domain names, sometimes we need to ban for a couple of minutes some website, an easy way to do it is to change the IP it's pointing. As an example, a couple of months ago a virus was making lots of connections to a strange website. We changed it's name at the DNS forwarding it to a fake web server. Not only did we block it, we also get to quickly discover the infected machine by looking at the web server logs.


Fallback to default IP on DHCP failure via netplan

netplan does not support a fallback in the way you describe.  It does support using both link-local and DHCP addresses on the same interface.  (It also supports both static and DHCP addresses on the same interface, but this is a much less common configuration and you also explicitly say this is not what you want.)

To assign a static IP as a fallback, I would suggest writing your own systemd unit that runs After=network-online.target and checks whether an IP address has been assigned, assigning one yourself if not.


I was trying to install ROS full desktop on ubuntu 16.10 but got stuck at one of the steps

Have you read this tutorial?

After setting up your sources.list, adding the key, and updating the index, ros-desktop-full-lisp-dev is an invalid package name. Are you perhaps looking for ros-kinetic-desktop-full?

You've already initialized rosdep, great. All that's left is the environment setup:

echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc

And you should immediately be able to run roscore and start playing!


Disable Popup Notification on Ubuntu 18.04 Language Switch

Assuming you only have two languages set..
create a script with below content..
#!/bin/bash

CURRENT=`gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().currentSource.index"`

if [ "$CURRENT" == "(true, '1')" ]; then
  gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().inputSources[0].activate()"
else
  gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().inputSources[1].activate()"
fi

Create a keyboard shortcut with F12 like below..

You can see the language changing with F12 button pressed in the above gif.
 Further Reading


Failed to execute child process "palimpset" (No such file or directory)

Palimpsest Disk Utility, also known as gnome-disk-utility, gnome-disks or Disks)  is a udisks graphical front-end included in the gnome-disk-utility package.
Disks was previously known as GNOME Disk Utility or palimpsest.

Palimpsest Disk Utility is based on Udisks for operations on the disks while GTK + for graphics, so require D-Bus and ServerX to run.

To change the parameters of the hard disk you can use hdparm. hdparm is a command line utility for the Linux to set and view ATA hard disk drive hardware parameters.

Ie, if you want change spindown:

sudo hdparm -S 25 /dev/sdX

or

sudo hdparm -S 25 /dev/disk/by_uuid/your_uuid_disk

You can modify the /etc/hdparm.conf to make permanent settings even after reboot.

Refer to man hdparm for a complete list of parameters and more help.


mousekeys pointer not visible with mouse removed

Whenever my cursour dissappears after a restart I do the following:

I run the command

xinput

and it gives me a list of input devices:

⎡ Virtual core pointer                           id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Microsoft Trackball Explorer®             id=11   [slave  pointer  (2)]
⎜   ↳ Mitsumi Electric Apple Optical USB Mouse  id=10   [slave  pointer  (2)]
⎣ Virtual core keyboard                          id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ USB 2.0 Camera                            id=8    [slave  keyboard (3)]
    ↳ UVC Camera (046d:08c9)                    id=9    [slave  keyboard (3)]
    ↳ BTC USB Multimedia Keyboard               id=12   [slave  keyboard (3)]
    ↳ BTC USB Multimedia Keyboard               id=13   [slave  keyboard (3)]
    ↳ Eee PC WMI hotkeys                        id=14   [slave  keyboard (3)]

My mouse is the Microsoft Trackball Explorer® (I do have a second but that isn't relevant here, the Mitsumi Electric Apple Optical USB Mouse).

The id is 11, so I run

xinput disable 11

then

xinput enable 11

and it normally gets it back.


1 in your /home/usr directory create .fonts directory and place your font into this directory.

2 run fc-cache -f -v to rebuild your font cache.

This should now allow you to see your font when it is called through an application.


I am not sure if you can resize the kernel to 1 mb - however, the Kernel Size Tuning Guide shows you which config options have which effect in respect to modifying the size of the Kernel.

General information about how to build the kernel on your own (which is what you need to do) can be found at the according howto at Ubuntu Wiki. Further help on the details about Kernel compilation can be found at the Kernel compile page at Ubuntu help.


How to resolve the "/lib/modules/3.13.0-27-generic/build: No such file or directory" error message?

you need to install linux-headers-3.13.0-27-generic package

sudo apt-get install linux-headers-3.13.0-27-generic

or better

sudo apt-get install linux-headers-`uname -r`

this will provide the link /lib/modules/3.13.0-27-generic/build


How to create a .deb file from installed package?

Install dpkg-repack package:

sudo apt-get install dpkg-repack

Example usage:- dpkg-repack gparted

replace gparted with your package_name

http://manpages.ubuntu.com/dpkg-repack.1


xls/xlsx extentions not associated properly (considered as archives)

OK, according to this link it might have been just a pcmanfm bug. How disappointing.


If I choose "Install Ubuntu alongside Windows 10", will it install itself into the unallocated space I made?

As far as I know it will shrink the C drive again. That's what the Ubuntu wiki page on dual booting suggests will happen, and it says that this option is not recommended. Choose the custom partitioning and install it onto the empty space.


How to add "Refresh" option to right click menu in Lubuntu?

To add refresh command to right click context menu in Ubuntu 11.10 , install nautilus – refresh by running following commands in the terminal.

sudo add-apt-repository ppa:nae-team/ppa
sudo apt-get update
sudo apt-get install nautilus-refresh

Once the package is installed, run following commands to restart nautilus or log out and log back in to see the changes.

nautilus -q


Is it just Firefox and Kate editor or have you tried seeing if you can't save files at all?

Open Firefox, go to Preferences > General > Downloads, click "Browse" and see where the files are being saved.


Wifi connection problem acer aspire E5-573-587Q

echo "options ath10k_core skip_otp=y" | sudo tee /etc/modprobe.d/ath10k_core.conf

# Download the backport
wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/11/20/backports-20151120.tar.gz

# Extract it
tar zxvf backports-20151120.tar.gz

# cd to the directory, compile and install it. The commands 'make' and 'make install' will take some time to finish
cd backports-20151120
make defconfig-wifi
make
sudo make install

# Download the firmware for the WiFi card
git clone https://github.com/kvalo/ath10k-firmware.git

# Copy the firmware to appropriate locations.
sudo cp -r ath10k-firmware/QCA9377 /lib/firmware/ath10k/
sudo cp /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin_WLAN.TF.1.0-00267-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin


How to install Google Chrome for Ubuntu 17.04 Zesty

By far the simplest way to get up and running is to open a shell and make sure that libappindicator1 is installed. I reinstalled 5 minutes ago, and this was all I needed on a fresh 16.04.3, which I believe is going to behave exactly like 17.04.

    sudo apt-get install libappindicator1

After that is set you can either download and use

    sudo dpkg -i google-blahblah.deb

Or simply choose install from the website, and let the package manager do the work. I prefer the second option even though I like to use the CLI whenever possible, its just faster.

Note that if things act weird, say during installing libappindicator something gives an error or complains and does not finish cleanly, use the command already listed to fix the install problems, like so

    sudo apt-get install -f

Make sure you don't issue it with any other parameters. I admittedly had to issue this command myself even though my files are virgin right now. Chow.


How to check if the laptop has infrared receiver in linux

lshw will show you the system's view of your hardware. man lshw.

You might have to apt-cache search lshw and sudo apt-get install lshw.


How do I remove this annoyingly pixelated popup?

I've solved my own problem, I don't know how it worked, but I reinstalled ubuntu-desktop (This really isn't recommended because some extra packages were left missing for me to redownload myself) with

sudo apt-get --purge remove ubuntu-desktop*
sudo apt-get update && sudo apt-get install ubuntu-desktop unity-webapps-common

and rebooted.

(As noted in the comments this is NOT recommended)


sudo apt-get update vs upgrade vs install

Read man apt-get, man apt, and man apt-cache.

The command to find a software package (I know you didn't ask this, but it's important) is:

apt-cache search <keyword>

whil will return a list of packages and their descriptions.

Then, you can use:

sudo apt-get install <packages>

to install desired packages.

To find and apply needed updates (you called it "update all the software packages"), First update the package version database with:

sudo apt-get update

Only after this finishes will the packaging system know which installed packages have more recent versions available.

Then, to apply the package upgrades:

sudo apt-get upgrade

Once the upgrade finishes look for files called /var/run/reboot*. If these file exist, they'll contain hints about why your system needs to be rebooted. For example, I remember seeing the package name linux-base in /var/run/reboot*, when I'd upgraded linux-base and needed to reboot. If there is NO /var/run/reboot* file, no reboot is needed.


Why does Ubuntu One for Android use nonfree libraries?

Well, to cover your licensing query, anyone who contributes code to Ubuntu One, and several other Canonical projects, must sign a contribution agreement which contains the following clause:

  Based on the grant of rights in Sections 2.1 and 2.2, if We include
  Your Contribution in a Material, We may license the Contribution under
  any license, including copyleft, permissive, commercial, or
  proprietary licenses. As a condition on the exercise of this right, We
  agree to also license the Contribution under the terms of the license
  or licenses which We are using for the Material on the Submission
  Date.

This means Canonical can release it simultaneously under as many different licences as they like, as long as one of them is the license the code was initially contributed under. So the source code on Launchpad might be AGPL, but the binary on Android Market isn't necessarily. So this situation is exactly why the contribution agreement exists.

Note that the libGoogleAnalytics.jar has just been removed from the launchpad source, see this bug report.


Create a deb containing object files and link in the target machine

You want to just build the .deb packages as normal. There's no need to try and ship unlinked object files. Using the ${shlibs:Depends} and such variables appropriately in the control file will result in specification of the deps that the package was built against, in the resulting binary package.

If necessary, you can also specify the binary package containing the library you're depending on, and specify a minimum, maximum, or exact version which could be required. However, specifying maximum or exact versions could create problems if there are any updates to that library.


Reducing audio delay from redirecting input to output

I would suggest looking up JACK for low-latency audio in Ubuntu (or any other Linux for that matter) It allows for the low level redirecting you're after, but you may have to force it to work...


How to switch back from Chrome OS to Ubuntu 12.04 on Acer C7 chromebook?

The solution was ever easier than I could imagine. The first thing one should do is to enter developer mode, then log in as "Chronos" and enter:

sudo cgpt add -i 6 -P 5 -S 1 dev/sda
exit

... and reboot. This should make Ubuntu your default system. Special thanks to you mr Marc for your help!


How to make a Queue of download list and how schedule it

Queue

You can make a list of URLs to download in a plain text file, then use wget -i list-of-urls-file.txt to fetch them.

Scheduling

As for scheduling, wget does not have a scheduler.  Use cron instead.  You can learn more about cron with the commands man 1 crontab and man 5 crontab.  Here's an example session where I setup a cron job that runs wget nightly:

  $ crontab -e

  [editor appears]

  @midnight wget -i /home/user/list-of-urls-file.txt

  [save and quit editor]


dist-upgrade, showing diffrent kernel updated

You are not running utopic, but LTS Ubuntu versions have an option to install kernels from the newer releases.

linux-image-generic-lts-utopic is a meta package that pulls 3.16 major kernel versions.

In Ubuntu 14.04.2 the utopic kernel comes by default.

You can read about HWE Stack

So everything is OK with your system. If you remove linux-image-generic-lts-utopic package, your kernel 3.16 will not get upgrades.

You can also install 3.19 kernel by running:

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

And soon the 4.2 wily kernel will appear as an option for Ubuntu 14.04.


Unity 3D Launcher Color/Transparency with MyUnity 3.0

here is a bug report on this issue https://bugs.launchpad.net/unity/+bug/975350


One nice tool (in addition to dmidecode) is lshw.

E.g.,

$ sudo lshw -short -C memory
H/W path               Device       Class      Description
==========================================================
/0/0                                memory     64KiB BIOS
/0/400/700                          memory     16KiB L1 cache
/0/400/701                          memory     1MiB L2 cache
/0/1000                             memory     2GiB System Memory
/0/1000/0                           memory     512MiB DIMM SDRAM Synchronous 400 MHz (2.5
/0/1000/1                           memory     512MiB DIMM SDRAM Synchronous 400 MHz (2.5
/0/1000/2                           memory     512MiB DIMM SDRAM Synchronous 400 MHz (2.5
/0/1000/3                           memory     512MiB DIMM SDRAM Synchronous 400 MHz (2.5

Or

$ sudo lshw -C memory
[...]

      *-cache:0
           description: L1 cache
           physical id: 700
           size: 16KiB
           capacity: 16KiB
           capabilities: internal write-back data
[...]
      *-memory
           description: System Memory
           physical id: 1000
           slot: System board or motherboard
           size: 2GiB
         *-bank:0
              description: DIMM SDRAM Synchronous 400 MHz (2.5 ns)
              physical id: 0
              slot: DIMM_1
              size: 512MiB
              width: 64 bits
              clock: 400MHz (2.5ns)
         *-bank:1
              description: DIMM SDRAM Synchronous 400 MHz (2.5 ns)
              physical id: 1
              slot: DIMM_3
              size: 512MiB
              width: 64 bits
              clock: 400MHz (2.5ns)
         *-bank:2
[...]


(Headless) Ubuntu Server 14.04 LTS - rollback kernel?

You can uninstall the package with sudo apt-get remove linux-headers-3.13.0-68. This won't affect your ability to use the next kernel verrson.

You can also configure the default Grub entry by changing the line GRUB_DEFAULT=0 to equal the line number of the desired entry, where 0 is the first line. You then run sudo update-grub to apply the changes. You may be confused by the fact that /etc/default/grub/ is just a configuration file that helps generate the actual grub menu. You can see the actual Grub menu configuration under /boot/grub/grub.cfg


Install latest version of R with all the packages on Ubuntu 16.04

To install R 3.6 (3.6.1 specifically) on Ubuntu 16.04, you need to add the r-cloud project repo to /etc/apt/sources.list file.
To do that, run the following commands:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/'

sudo apt update

sudo apt install r-base r-base-core r-recommended

If you want to install another version, you need to build it from source then add the executables and libraries to your PATH and LD_LIBRARY_PATH. You can get the source code from here.

Credit: How to install R 3.5.1 on Ubuntu 16 with apt-get?

Edit:
I am not sure how packages are managed in R. But I think that essential packages will be installed with R and if you want a specific package you need to install it using R package manager.
To install a package named 'foo' for example, run sudo -i R to open the R console then run install.packages("foo").
For more details about which packages are installed and how to install additional packages check the R README page


How to run armhf executables on an arm64 system?

Arm32 support is optional on arm64. In practice, there is only one arm64 CPU that omits legacy arm32 instruction set support - Cavium ThunderX.  From the kernel version string, it seems you are using Scaleway armv8 servers. If this is the case, you are out of luck - Scaleway armv8 servers are based on ThunderX. Use the Scaleway C1 instead, which is native arm32.


How can I view power statistics on a desktop computer?

The program is called gnome-power-statistics. You can launch it from terminal or by hitting Alt+F2 and then type gnome-power-statistics.


why chrome web app shortcuts has no Icon

That is happening because your desktop icon is not able to find appropriate icon location.

Just replace your line in the file

  Icon=chrome-adnlfjpnmidfimlkaohpidplnoimahfh-Default

with the location of icon, like:

  Icon=/home/idea/.local/share/icons/hicolor/32x32/apps/chrome-adnlfjpnmidfimlkaohpidplnoimahfh-Default.png

Save the file, and Youtube icon as well as the name should come up once you double click on it and try launching it.

Signing out and signing in can help, in case the icon fails to load after launching it as well.

PS: In case the icon isn't displayed properly, please try other folders with dimension 48x48 or 128x128 instead of 32x32 in the above path as you can see in the result of your locate command.


It turns out the problem is actually that a "recordfail" field is set in the file /boot/grub/grubenv

The way to reset that is with the command:

sudo /usr/bin/grub-editenv /boot/grub/grubenv unset recordfail

But what you really need is for this to be done as part of boot sequence, whether normal or from hibernate.

This can be done with a service.

Use this service descriptor:

[Unit]
Description=Unset recordfail in grubenv after hibernation.
After=hibernate.target

[Service]
Type=oneshot
ExecStart=/usr/bin/grub-editenv /boot/grub/grubenv unset recordfail

[Install]
WantedBy=hibernate.target hybrid-sleep.target

Then install it using the instructions from this answer:

Create the above descriptor as

/etc/systemd/system/grub-unset-recordfail.service

Then:

sudo systemctl start grub-unset-recordfail
sudo systemctl enable grub-unset-recordfail
sudo systemctl stop grub-unset-recordfail

Some references suggested you need to run sudo systemctl daemon-reload first, but I have not found this necessary.


Chrome updates fail with error when updating repository information

This is because Google has stopped support for 32-bit version of chrome or chromium.

Please edit /etc/apt/sources.list.d/google-chrome.list, replace the line

deb http://dl.google.com/linux/chrome/deb/ stable main

By

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

You should also check other sources list under /etc/apt, especially /etc/apt/sources.list,
remove any line including http://dl.google.com/linux/chrome/deb/.
The following command would help you find out such files.

grep "http://dl.google.com/linux/chrome/deb/" -r /etc/apt


If you look at the CPU op-mode(s) line, you'll see a clue:

CPU op-mode(s):       32-bit, 64bit

So yes, your CPU supports 64bit instructions. You can use the 64bit version of Ubuntu if you want to. This will require reinstalling, there is no upgrade path.

Most CPUs you'll encounter —certainly from the last decade or so— will probably support 64bit. This isn't a guarantee because Intel still makes 132 32bit CPUs, however these are super-budget Atoms, Celerons and Pentiums, special-purpose Xeons and a few SoCs. AMD's offerings are similar.

If you can find out what the CPU is (i.e. read the Model name output), you end up with something very Google-able. Here is one of my servers:

Model name:            Intel(R) Pentium(R) CPU G3220 @ 3.00GHz

That gives this Intel ARK page which tells you all the CPU features and supported architectures. Of course yours will be different from that link but it's pretty reliable and easier to read then deciphering the flags in lscpu and cat /proc/cpuinfo.


try:

sudo apt-get install python-sip-dev


Lenovo G510 can't use Radeon graphics, fglrx or switcheroo

Your xorg.conf file may not be configured to use the graphics card. This will configure it after installation.

fglrxinfo
sudo aticonfig --adapter=all --initial --force


There seem to be prebuilt binaries for most Ubuntu releases here:
https://packages.ubuntu.com/search?keywords=ike
So all I needed to do was
sudo apt-get install ike-qtgui

If you don't find this helpful, try building from source as described in this answer on Stack Overflow (Unfortunately didn't work on my Ubuntu 18.04)


How can I use workspaces and have xbmc in only one of them?

If you are running XBMC in fullscreen mode, it is rather possessive. It takes control over the screen, the pointer and some other resources. This is rather useful when it is running stand-alone as a media center but annoying then ran as an desktop app.

But there is the option to put it into windowed mode. You can change the modes by pressing \ (Backspace) or, if you have an other keyboard layout, the key combination that produceds a \. There are also option to set that in the Settings Menu (Video Output) and the settings files.

In windowed mode it might not use the full screen but also it should not interfere with the desktop.


Ubuntu MAAS - Custom Ubuntu 16.04 Images

My solution to the above turns out to be related to the file format.

This:

  Customize the image as you desire, umount and gzip it

umount /tmp/image
gzip root-image

Should be:

Customize the image as you desire then:

cd /tmp/image
tar -cf /root/root-tgz ./*
gzip /root/root-tgz
mv /root/root-tgz.gz /root/root-tgz

(The last step there is optional)

I also changed the boot-resources create to:

maas admin boot-resources create name="custom/my-custom-image" architecture="amd64/generic" filetype=tgz title="My Custom Image" content@=/root/root-tgz


Bluetooth Connection Drops After Few Seconds

I have also problems with bluetooth connections on Ubuntu 17.10. I connected bluetooth speaker and it disconnects right away. I am also unable to turn bluetooth on and off.


Install graphic driver for AMD Ryzen 7 5800U APU

WOW, after install the kernel 5.11.7 and latest linux-firmware 1.187.10 but the it doesn't solve the problem. I google something and found this post: https://forums.linuxmint.com/viewtopic.php?f=49&t=336958
Then I tried to comment out the blacklist amdgpu in /etc/modprobe.d/blacklist-amdgpu.conf then run the command sudo modprobe amdgpu.
BOOM, it works. Now I can change the screen brightness, HDMI port works. AWESOME.


debconf-i18n depends on debconf (= 1.5.58ubuntu2); however: Version of debconf on system is 1.5.58ubuntu1

Manually editing the offending files/var/lib/dpkg/info/debconf.prerm worked for me

From this answer https://askubuntu.com/a/979022/1025261


Well, after additional hours of searching and pulling together bits from all over, here's how I solved it. Clues in a number of places pointed to the nvidia drivers as a likely culprit. So I did this:

# dpkg -l | grep nvidia
ii  libnvidia-cfg1-390:amd64                   390.129-0ubuntu2                     amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-390                       390.129-0ubuntu2                     all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-390:amd64                390.129-0ubuntu2                     amd64        NVIDIA libcompute package
ii  libnvidia-compute-390:i386                 390.129-0ubuntu2                     i386         NVIDIA libcompute package
ii  libnvidia-decode-390:amd64                 390.129-0ubuntu2                     amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-390:i386                  390.129-0ubuntu2                     i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-390:amd64                 390.129-0ubuntu2                     amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-390:i386                  390.129-0ubuntu2                     i386         NVENC Video Encoding runtime library
ii  libnvidia-fbc1-390:amd64                   390.129-0ubuntu2                     amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-390:i386                    390.129-0ubuntu2                     i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-390:amd64                     390.129-0ubuntu2                     amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-390:i386                      390.129-0ubuntu2                     i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-390:amd64                   390.129-0ubuntu2                     amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-390:i386                    390.129-0ubuntu2                     i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-390                   390.129-0ubuntu2                     amd64        NVIDIA compute utilities
ii  nvidia-dkms-390                            390.129-0ubuntu2                     amd64        NVIDIA DKMS package
ii  nvidia-driver-390                          390.129-0ubuntu2                     amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-390                   390.129-0ubuntu2                     amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-390                   390.129-0ubuntu2                     amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.13                               all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                            435.21-0ubuntu2                      amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-390                           390.129-0ubuntu2                     amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                    0.18                                 all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-390              390.129-0ubuntu2                     amd64        NVIDIA binary Xorg driver

Ok, I got plenty of nvidia. The "metapackage" is usually a good place to start...

# apt purge nvidia-driver-390
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dkms libnvidia-cfg1-390 libnvidia-common-390 libnvidia-compute-390 libnvidia-compute-390:i386 libnvidia-decode-390 libnvidia-decode-390:i386 libnvidia-encode-390 libnvidia-encode-390:i386
  libnvidia-fbc1-390 libnvidia-fbc1-390:i386 libnvidia-gl-390 libnvidia-gl-390:i386 libnvidia-ifr1-390 libnvidia-ifr1-390:i386 libxnvctrl0 nvidia-compute-utils-390 nvidia-dkms-390
  nvidia-kernel-common-390 nvidia-kernel-source-390 nvidia-prime nvidia-settings nvidia-utils-390 screen-resolution-extra xserver-xorg-video-nvidia-390
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  nvidia-driver-390*

Sure enough, looks like getting rid of that one will get rid of all the squatters too, so, ran that command. Followed by...

# apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  dkms libnvidia-cfg1-390 libnvidia-common-390 libnvidia-compute-390 libnvidia-compute-390:i386 libnvidia-decode-390 libnvidia-decode-390:i386 libnvidia-encode-390 libnvidia-encode-390:i386
  libnvidia-fbc1-390 libnvidia-fbc1-390:i386 libnvidia-gl-390 libnvidia-gl-390:i386 libnvidia-ifr1-390 libnvidia-ifr1-390:i386 libxnvctrl0 nvidia-compute-utils-390 nvidia-dkms-390
  nvidia-kernel-common-390 nvidia-kernel-source-390 nvidia-prime nvidia-settings nvidia-utils-390 screen-resolution-extra xserver-xorg-video-nvidia-390
0 upgraded, 0 newly installed, 25 to remove and 3 not upgraded.
After this operation, 366 MB disk space will be freed.

Now to see how things look:

# dpkg -l | grep nvidia
rc  libnvidia-compute-390:amd64                390.129-0ubuntu2                     amd64        NVIDIA libcompute package
rc  libnvidia-compute-390:i386                 390.129-0ubuntu2                     i386         NVIDIA libcompute package
rc  nvidia-compute-utils-390                   390.129-0ubuntu2                     amd64        NVIDIA compute utilities
rc  nvidia-dkms-390                            390.129-0ubuntu2                     amd64        NVIDIA DKMS package
rc  nvidia-kernel-common-390                   390.129-0ubuntu2                     amd64        Shared files used with the kernel module
rc  nvidia-prime                               0.8.13                               all          Tools to enable NVIDIA's Prime
rc  nvidia-settings                            435.21-0ubuntu2                      amd64        Tool for configuring the NVIDIA graphics driver
rc  screen-resolution-extra                    0.18                                 all          Extension for the nvidia-settings control panel

Everything pretty much gone.

Rebooted. And Yippie! AnyDesk, Google Earth Pro, and the Android Studio Emulator all now run. And glxinfo spews its pages of stuff.

P.S. Note that as I was doing this I saved all the above from my terminal session and stored it in a file as ~/nvidia.txt so that if my system wouldn't boot, I could hopefully get into a console and re-install everything manually. Thankfully I didn't need to.


Try this first :

sudo apt-get install --reinstall apt

I tried it myself, no risk to your system.

If it doesn't work, you'll have to get the package from http://packages.ubuntu.com/.

Choose the good one for your distribution. And install it with dpkg :

sudo dpkg -i apt_#version#.deb

Everything should work fine but I didn't have tested this.


I figured it out!

At

"Settings -> Details -> Users"

on the top right corner there was a button to "Unlock".

Clicking that, entering my password gave me the permission to use that slider to turn Autlogin off.


How to install Ubuntu on second partition without USB or CD-ROM

When you install Ubuntu, you can do the partition job inside the installation part.

You only need to do:

A bootable usb with Ubuntu
Go to the BIOS setup(google the button to press in your computer)
Switch the tab to the one that shows "BOOT"
Move the USB device to the first position(make sure you have plugged it)
Don't let Ubuntu do anything automatically, always manual and pay attention to do properly the partition part


Rosewill RNX-N600UBE Connectivity issue on Ubuntu 17.04

This is likely due to a bug. A fix is to edit /etc/NetworkManager/NetworkManager.conf (e. g. with gksudo gedit /etc/NetworkManager/NetworkManager.conf) and add the following to the file:

[device]
wifi.scan-rand-mac-address=no

Save and exit the text editor, then run:

systemctl restart network-manager.service

Some USB devices perform poorly when power management is enabled for wifi, it can be disabled by

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
systemctl restart network-manager.service


Apache2 read home folder directory when main domain is in /var/www

Run

sudo a2enmod userdir

on the command line to enable the Apache module mod_userdir and make sure /home/<username>/public_html is accessible for the webserver.


I recommend the following way:

Make a working backup from which you can easily read if you have enough storage space (e.g. a disk image which you can mount instead of a compressed archive which you have to read completely in order to extract one file)
Figure out where applications on CentOS store data which you can reuse on Ubuntu (if you use the same desktop environment a lot of settings will be preserved in your $HOME folder, but in order to make sure you have to research this information for each application that you want the settings to be preserved). Move data to a shared partition and create links and mount points (some applications might not like links because they fail to resolve the link and complain about permission issues, therefore test whether the applications work on CentOS right after moving the data)
Install Ubuntu and include the data from the shared partition like you did on CentOS. You might figure out that you missed some files, so move them to the data partition from the backup

This setup allows you to share data between multiple OS as long as applications don't get confused with different versions (e.g. using firefox 36.x on CentOS and 38.x on Ubuntu will cause the settings to be updated at every start and might mess up files at some point - this is a per application research task as well). In case of incomptibility of versions you need to figure out a custom synchronization routine which is out of scope of the OS, i.e. Ubuntu.

Remember to use a command which preserves permissions, e.g. cp -a or rsync -a when you move files.


Do a df -l and look closely at your total space used per each line.

/dev/sda1         <some number>        <Used Space>    <Available>   <Use %>  <mountpoint>

/dev/sda1 in this particular instance is the disk where my system would be installed and thus where apt-get stores packages. If you have used All available space (Available reads 0) then you will not be able to update. Maybe backup some stuff and delete the contents of your /home/{username}/Downloads for some extra space depending (thats my mostly used directory for excess space/stuff i dont need anymore).


I have a WiFi problem, what commands do I need to run so I can be best helped?

There are a few commands that should help us

ifconfig

  This displays the  status  of  the  currently  active interfaces.  If a single interface argument is given, it displays the status of the given interface only; if a single  -a  argument  is  given,  it  displays the status of all interfaces, even those that are down.

iwconfig

  Iwconfig  is  similar  to ifconfig(8), but is dedicated to the wireless interfaces. It is used to set the parameters of the  network  interface which  are  specific  to the wireless operation (for example : the frequency).  Iwconfig may also be used to display  those  parameters,  and the wireless statistics (extracted from /proc/net/wireless).

These commands give out a lot of info, sometimes 50+ lines together. To make it easier, you can use the following commands instead:

ifconfig | pastebinit
iwconfig | pastebinit

Will give out 2 links after you have run them both. Add them to the question instead of the output.


Since it has nvidia ion graphics, have you tried enabling the proprietary drivers? In case you decide to do so, make sure you install linux-headers-generic before anything and in hardware drivers, select nvidia proposed updates rather than the other one.


How to write /etc/apt/sources.list.d/mongodb-org-4.2.list to install mongodb on ubuntu focal fossa?

Try this:
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/development multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list

If there's still an error, maybe you should post the log from apt


Increase /tmp folder space using external drive

This is possible, though I don't recommend it (see #2). You'll need to mount your external drive permanently on /tmp by editing the /etc/fstab file as seen here. In between the change and the first new boot, you should reboot into a live environment and delete the contents of the old /tmp folder.
You allotted 1GB over the minimum requirements for 12.04. You should not expect to be able to do any development, save many files, or install any real number of extra applications. To have the best experience with Ubuntu, you should install on a larger disk.


Add on animations for compiz config ? How can I get them?

You can install the extra Compiz plugins by opening a terminal and typing:

  sudo apt-get install compiz-fusion-plugins-extra


unlock taskbar and re-arrange what do you want


Why does ~/.local/share/Trash still use lots of space even after emptying the Trash?

"Trash" is sort of superimposed into Linux because our file systems don't work like NTFS which people expect coming from Windows. Personally, I think best practice is to avoid using a garbage cache and things are either all the way there or all the way gone.

In your situation, if I wanted to keep using it, I would make a bash script on my desktop to the effect of:

rm -rf "path to trash folder"

and run it after I "emptied" the trash.


The tool that interprets the /proc/[pid]/stat information is ps, this tools allows you to get the cpu load of any single process on the system:

ps S -p [pid] -o pcpu=

To monitor using this command, you can use watch:

watch ps S -p [pid] -o pcpu=

This command outputs a percentage of total cpu use of the agregate of all child processes. If you want to see the tree of processes, use pstree:

pstree -p [pid]


ecrypftfs - strange non-deterministic behavior

It sounds like you're using it wrong.

I don't think eCryptFS folders are designed to be manipulated by the encrypted files like that, the main interface should be through the mounted plaintext folder. It's probably never been tested, and buggy results will probably never be fixed.

So, don't do that?

But anyway, did you try

unmounting & re-mounting after manipulating the encrypted files? May at least result in more consistent behavior.
If you're calling mount or mount.ecryptfs directly you can try the verbose command:

  verbose
              Log  ecryptfs  information  to /var/log/messages.  Do not run eCryptfs in verbose-mode unless you are doing so for the sole purpose of  development,  since
            secret values will be written out to the system log in that case.


I had the same issue, I found out that expo-cli is installed already under this path /home/$USER/.npm-global/bin so all need to be done is to add it to the default path:
export PATH="$PATH:/home/$USER/.npm-global/bin"
permanently add it to path:
gedit gedit ~/.profile
Then add this line at the end:
export PATH="$PATH:/home/$USER/.npm-global/bin"
to get the path effected just run this command in every terminal that you wanna use: source ~/.profile or just log out and login again.
This worked for me.


Looking for APTonCD equivalent for Ubuntu Server 12.04

I will expand this if you explain exactly what you need to do but to answer the question you asked, yes it is possible to use an image created by aptoncd with Ubuntu Server.

If you have access to a GUI Ubuntu Create the image file using the instructions here on your Desktop install.

A. If your server has a CD drive

Burn the image to a CD (you can do this using aptoncd) and put the CD in your server's drive.
Open a terminal and run

sudo apt-cdrom add

Update your sources list

sudo apt-get update

B. If your server has no CD drive

If you don't have a CD drive on your server, you will need to mount the image file and then add that.

Copy the image file (something like aptoncd-20140505-CD1.iso) to your server.
Mount the image somewhere

sudo mkdir /media/foo
sudo mount -o loop /path/to/aptoncd-20140505-CD1.iso /media/foo

Run apt-cdrom again but telling it not to attempt to detect the CD automatically, nor to mount it (-m) and specifying the mount point (-d) as /media/foo:

sudo apt-cdrom --no-auto-detect -md /media/foo add

Update your sources list

sudo apt-get update


It's really weird, but I solved the issue by closing Banshee Media Player that ran in the background. Turning it back on has resumed the problem.


Can't upgrade past 11.10 - libc6 dependency errors

11.10 is no longer supported since 9 May 2013. Upgrading all the way to 14.04 is a long call.

I suggest you backup your data and install 14.04 from scratch.


It looks like the swap is being used since 3.2G is written it to it.
Swap info
Swap is useful but the information that is written to swap still needs to be brought back into RAM when an operation needs to be done on that information. What swap does for you is it allows for an overflow of information.
This is most useful when you are running a few programs but you are only accessing one at a time and not switching between them very often.  If you do need to switch between them the data written to RAM is loaded back in.
If the main program you are running is very memory heavy than this reading and writing to swap will happen a lot because there is not enough RAM to run one program, the pages (sections of memory) are written in and out of memory just to run that program. This leads to something called memory throttling which will slow down your computer a bunch. If that is happening, no amount of swap is going to save you as you actively need more RAM than you have.
Suggestion
I use Chrome but it is very very memory heavy so I would suggest a different browser. Consider using Firefox Quantum as it has lower memory use.
Also view the output of top to see what is eating all the RAM, press Shift+m to sort by memory use. If you having memory throttling problems and/or if the processes that are using the RAM can't be killed or they are programs you want to have running then yeah I think you may want to look at buying more RAM.


Google asks me to login every time I reboot

This is a very annoying bug and seems to be an issue with the Calendar option. A fix should be in your updates soon according to the progress of this bug. Or better yet help them verify this issue by testing the fix. Follow this comment to instructions.


Why are downloads from Canonical Partners repository so slow?

Ubuntu attempts to select a local mirror of the repositories that are geographically close to you. The partner repo doesn't have any mirrors because of copyright issues (AFAIK -- it's non-free software) so you end up using the London-hosted copy. PPAs are probably the same.

As you're in the Caribbean, I imagine traffic UK-bound would have to hop through the US before going trans-Atlantic to London. That's a long way for something to travel and if any of the links are bad or lossy, traffic can grind to a slow speed. At the least, response time is very slow.

If you want to test this further you can run ping archive.canonical.com and see what you get for a response time (I'm in England and get ~26ms). And as a general speedtest to London, you can run wget http://london1.linode.com/100MB-london.bin (1.3MB/s here).

As for fixing the problem... Canonical either need more, geographically-distrubuted servers for the partner repo, or you need to move closer to London.


Scaling/Downsampling with Newrez results in trapped mouse

So, after a while investigating on my own... I figured this out. If anyone has the same problem, where you get a "Current display must be LVDS1" error then you probably have a notebook with eDP1 display. If that's the case then just create an empty file and paste this inside. This is the code for "newrez" but I changed some stuff so that it works with eDP1 displays. If you have LVDS1 then you should use the original newrez.

Save the file however you want to call it, I saved it as newrez-edp1 and then mark it as executable. Run it and select the resolution you want to use.

Hopefully this will save you some investigation time.

#!/bin/bash

# newrez

# Marc Brumlik, Tailored Software Inc, tsi-inc@comcast.net

# up to v 0.8
# use 'xrandr' to scale video output to the display

# v 0.9
# Wed Jan  2 05:23:54 CST 2013
# rewrite to handle mouse boundaries when scaled (mouse confined)
# by setting requested resolution to the unused VGA1 device
# then scaling that for display on the LVDS1 device

# v 1.1
# Fri Dec 20 08:28:08 CST 2013
# fixed issue where setting to "default" after some other resulution
# left mouse-area at prior resolution

# v 1.1 for eDP1 Thu Jan 13
# Changed some code for this to be compatible with eDP1
# All credit goes to original creator

umask 000

# resolution can optionally be specified on command line
newrez=$1

# we MUST be running xrandr 1.3 or higher
if xrandr -v | grep "RandR version 1.[012]"
    then    zenity --info --title="XRandR version is too old" --text="You must be running Xrandr
version 1.3 or newer!
Time to upgrade your system  :-)"
        exit 0
fi

# find the currently connected devices, make a list
devices=`xrandr -q | grep connected | grep -v disconnected | cut -d"(" -f1`

# there MUST be a "connected" LVDS1 and a "disconnected" VGA1
current=`xrandr -q`

if echo "$current" | grep "eDP1 connected" >/dev/null
    then    : OK
    else    zenity --info --title="PROBLEM" --text="Current display must be eDP1"; exit 0
fi

default=`echo "$current" | grep -A 1 "^eDP1" | tail -1 | awk '{print $1}'`
H=`echo $default | cut -d'x' -f1`
V=`echo $default | cut -d'x' -f2`
HZ=`echo $default | awk '{print $2}' | tr -d '[*+]'`

# echo DEFAULT: $default $H $V

if [ -z "$newrez" ]
    then    while true
        do
            newrez=`zenity --entry --title="Set New Resolution" \
                --text="Default Resolution: $default\n\nNew size (eg 1280x750 or 1450x1000)\n   -or- \"default\""` || exit 0
            case $newrez in
                default|[0-9]*x[0-9]*)  break ;;
            esac
        done
fi

case $newrez in
    default)    xrandr --output eDP1 --mode $default --scale 1x1 --panning $H"x"$V
            xrandr --addmode VGA1 $default
            xrandr --newmode $default $newmode
            xrandr --output VGA1 --mode $default --scale 1x1 --panning $H"x"$V
            exit 0 ;;
esac

newH=`echo $newrez | cut -d'x' -f1`
newV=`echo $newrez | cut -d'x' -f2`
modeline=`cvt $newH $newV $HZ | grep Modeline`
newmode=`echo "$modeline" | sed 's/^.*"//'`
cvtrez=`echo "$modeline" | sed -e 's/_.*//' -e 's/^.*"//'`

if [ "$newrez" != "$cvtrez" ]
    then    newrez=$cvtrez
        newH=`echo $newrez | cut -d'x' -f1`
        newV=`echo $newrez | cut -d'x' -f2`
fi

scaleH=`echo -e "scale=10\n$newH / $H\nquit" | bc`
scaleV=`echo -e "scale=10\n$newV / $V\nquit" | bc`

if echo "$current" | grep -A 100 "^VGA1" | grep $newrez >/dev/null
    then    : already there
    else    xrandr --newmode "$newrez" $newmode
        xrandr --addmode VGA1 $newrez
fi

if xrandr --output VGA1 --mode $newrez --output eDP1 --fb $newrez --scale $scaleH"x"$scaleV --panning $newH"x"$newV 2>&1 | tee -a /tmp/xrandr.err
    then    : success
    else    zenity --info --title="Xrandr produced this error" --text="`cat /tmp/xrandr.err`"

The problem could be that Your video driver
does not support xrandr version 1.3
        rm -f /tmp/xrandr.err
fi


So far, Uri Herrera's answer (left in a comment on my question) is working for me.

Note to mods: I previously posted this answer, but it was deleted as not an answer, and there's no way to discuss that deletion. I'm re-posting it because this is the best answer given. The mod said that it's really a comment, not an answer, but he's mistaken. Uri posted his answer in a comment; thus, I can't accept it. So, I posted a reference as an answer and was waiting for the timeout to expire so that I could accept it. (Why do I have to wait 24 hours before accepting my own answer?) Since I can't move Uri's answer from a comment to an answer, there's no other way than what I've done.


Wine--Installing Game From Multiple Discs

Install Wine and Winetricks. Go to the games CD/Dvd dir right click on the installers exe choose open with find and choose Wine. When installing give it time to load each disc it will ask for each disc give it a little time to load for each disc. Just got Madden 2005 work flawless. Its a 3 disc game. One of a few a few reasons I still needed Windows 10 was that game, so I guess I need not boot into windows as much.


Make sure you selected the right keyboard layout. Go to System Settings, click on Keyboard Layout. On the Layout tab you should see a + button. Select the most appropriate keyboard layout as shown bellow.

I am not using a Macbook, but the first layout worked as you described to type @. I suppose you are using Ubuntu 11.10.


did you try:

----- NFS mounten
 mount -t nfs 192.168.0.100:/mnt/IDE1/nas /mnt/nfs -o rw,nolock,intr,soft,udp,rsize=4096,wsize=4096

----- Cifs mounten
 mount -t cifs //192.168.0.20/video /mnt/nfs/ -o user=harry,passwort=hase


Particular User Unable To Connect To FTP

Issue with the user itself... I added a new user useradd -d 'location' 'newuser' Then chowned the user to the new directory.


Did you check system logs in /var/log/syslog ?
it is possible that the file system has been corrupted for some reason...
In this case I would backup any data and try to force a disk check at next reboot:

$ sudo touch /forcefsck


Will JPEG files be reuploaded to Ubuntu One if I change their EXIF data (e.g. add a tag)?

I do this all the time with photos from my mobile phone, and the entire photos get re-uploaded each time you change anything. I usually crop and tag the photos when I'm back in front of the computer, and each time I save a change the entire file uploads again.

Side note: The original photos shot on the mobile don't get updated, so I periodically wipe them from the phone's memory and copy the edited ones back to it from the computer. If you use the Ubuntu One Files app for Android be aware of this.


You can transfer files across SSH - this should work out of the box with the default install of openssh-server on Ubuntu Server. You don't say what client you are using for SSH access, so here are a selection of clients that can do SCP / SFTP.

pscp, the SCP utility that is part of the Putty suite
Filezilla, using sftp:// urls
Nautilus (the default file manager in GNOME / Ubuntu)
The scp utility from the openssh suite (as part of Cygwin or a Linux installation)

You may have to transfer the files to your home folder on the server if your user does not own the target folder (e.g. /var/www), then move/copy them from there using sudo.


Cannot resolve the "This web page has a redirect loop" problem

Read this article and possibly try to install chrome https://www.reddit.com/r/linux4noobs/comments/3ae97q/getting_netflix_to_work_in_ubuntulubuntu/


At first, open the terminal or press "ctrl+alt+t"
Then type and run following commands in terminal

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

after finishing  the command type following command

sudo apt-get update

then try to open software center
if you face problem further....
then run following command

sudo apt-get remove software-center
sudo apt-get autoremove sotware-center
sudo apt-get install software-center

if you face further problem with installing of opening software center then ren following command

sudo dpkg --configure -a

then go to search button on the panel and type "software center"
hope your problem will be solved

best of luck


Some packages listed as updates by Ubuntu Software centre, but not by `sudo apt update`. Why?

Turns out it was flatpak. A simple flatpak update did the trick.
This is because flatpak apps aren't updated automatically unlike snaps. And this command
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
when setting up flatpak added the repo to Ubuntu software centre, so that is why the updates were showing there. And since these are flatpaks(meaning they aren't from the Ubuntu official or community-maintained repositories), these packages did not show up in sudo apt update.


how to ssh to hostname without giving fqdn

Add entries to ~/.ssh/config (for a specific user) or /etc/ssh/ssh_config (for all users) as

Host prodService
    Hostname prodService.xyz.pdr.abc.com
    ... other options for this host...


Opera will not play Twitter videos (and others)

Run this command in a terminal (Ctrl+Alt+T):

sudo apt-get install chromium-codecs-ffmpeg-extra

Then restart Opera.


Well you definitely can! Read:Licensing

But try to keep up the FOSS Spirit, BTW!


Allowing apache to access /home/user directory


First of all you need the source code of the Linux kernel. You can download it at kernel.org or you install the package linux-source from Ubuntu. In the latter case you'll find some patches from Ubuntu applied.

Usually the sources live under /usr/src. If you have unpacked the files there or installed the package, you'll find the tree you mentioned above. So the most recent kernel version has a file called entry_32.S and entry_64.S in the subdirectory arch/x86/kernel. The part after arch has the name x86 and not i386 as you mentioned. If you want to use i386 you should choose a kernel version below 3.7, because i386 was removed from 3.7 on.


Build-in tiling shortcuts include:

Super+Up to maximize
Super+Down to restore
Super+Left to tile left half
Super+Left to tile right half

You can see more options and assign shortcuts to them by looking into settings that by default are not exposed. Install dconf-editor.  Navigate to /org/gnome/desktop/wm/keybindings/ to find several window-manager related shortcuts. You will find options such as "maximize-horizontally" and "maximize-vertically" among other options, where you can set a key binding. Look at examples where a keybinding is defined to learn about the syntax to define a keybinding.


Can I install Ubuntu 14.04 Server on my Android Phone?

The arm build with GUI is no longer supported as a deployment platform as far as I am aware.  Something like Debian kit that uses overlay-file systems is probably your best option for using Ubuntu or Debian on a rooted device as a secondary operating system -- almost.


Wifi connection with router breaks too often at certain hours in 18.04

It might be because of wifi power management setups.

We fixed that issue by changing power management options in Ubuntu.

$ nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Change wifi.powersave from 3 to 2.


I can't get grub menu to show up during boot

I was having the same problem on my laptop, getting the magenta blank screen.  Here's what worked for me. I changed:

GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true

to:

GRUB_HIDDEN_TIMEOUT=10
GRUB_HIDDEN_TIMEOUT_QUIET=false

And since I didn't have a CRT, instead I changed:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to:

GRUB_CMDLINE_LINUX_DEFAULT=""

Then ran update-grub.  On restart I was then able to get the menu by holding down the Shift key.


"Open in remote terminal" for Xubuntu file manager

The following suggestion should work.

(Tested on Xubuntu 14.04 client connected over ssh to Xubuntu 14.04 ssh server)

Create a new custom action on the Xubuntu ssh server:

Command:

xfce4-terminal -x bash -c "bash"


How to use 'cut' command for finding temperature using tlp?

With awk:

... | awk '/CPU temp/ {print $4}'

with grep:

... | grep -oP '^CPU temp.*=.* \K[0-9]+'

with sed:

... | sed -nE 's/^CPU temp.*=.* ([0-9]+).*/\1/p'


wine staging 1.9.7 not run application after compilation

This is not unusual. I say this to so many people. Read the message!

So just do what it says!

It is telling you it is an experimental version. The other one says to say it is a experimental version when filing a bug!


https://wiki.ubuntu.com/Debug%20Symbol%20Packages#Getting_-dbgsym.ddeb_packages has the information you need.


How to Remove Bluetooth Manager in Xubuntu

The following shell command will remove bluetooth and all its dependencies:

sudo apt-get purge "bluez*"

If this prompts you to remove the xubuntu-desktop meta-package, do not be alarmed. This is acceptable.

If installed, also remove the obex-data-server and the libopenobex package. The libbluetooth* package(s) must remain since too many stuff depends on it.

Afterwards, you should also run:

sudo apt-get autoremove


That looks like GNOME Classic. You should choose GNOME when selecting the session at login: (screenshot from the tutorial)

If you still get GNOME Classic, you can force GNOME Shell by running these commands in a terminal:

gnome-shell --replace &
disown

This will replace the current WM, send GNOME Shell to the background and detach it from the terminal so that you can close it without killing gnome-shell.


Problem upragding to focal fossa 20.04 authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' Authentication failed

I tried to upgrade from 18.04 to 20.04 and got the same error.
The problem was that the 'bionic-updates' channel wasn't active in my /etc/sources.list I had only 'bionic' and 'bionic-security'.
After adding a line to the sources.list:
deb http://hu.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

sudo apt update && sudo apt dist-upgrade it installed about 300+ packages and after that do-release-upgrade worked.


Tried to install a .deb and now I can't update or install anything

Weechat is available through apt-get. Run the following commands:

sudo apt-get purge weechat* weechat-devel-core

If that doesn't work, run this instead:

sudo dpkg -P weechat-devel-core
sudo apt-get purge weechat*

Then,

sudo apt-get clean
sudo apt-get update
sudo apt-get install weechat*

In the future, you can search for pachages using apt-get by using the following example:

apt-cache search weechat | grep weechat


I just removed the ~/.xmodmap file that xkeycaps generate, and the keyboard works as the beginning.


How do I get a Rosewill RNX-N2LX wireless adapter working?

It's a sad fact that many vendors which claim to support Linux don't really support it.
It is a Wrong Answer for the vendor to expect clients to download an unsigned driver file from the Web to make their device work for Linux. Presumably, the provided file is source code which will then have to be compiled in order to be used. If your experience is anything like mine with ASUS, the provided code will be stale and will fail to compile.

The good news is that you might not have to deal with all that. The first step is to determine the device ID of the adapter. It appears to be a USB wireless adapter, so you will use the lsusb command to get this information. For non-USB devices you will generally use lspci

If you post the output of the command here, I will assist you in interpreting it. The information you want to extract from the output of the command is a hexadecimal number of the format "nnnn:nnnn" immediately following the string "ID" on the line that contains the vendor's name. Here's what my lsusb looks like:

Bus 002 Device 002: ID 045e:00dd Microsoft Corp.

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 003: ID 046d:0807 Logitech, Inc.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Once you have determined the device ID for the adapter, you can search for the appropriate kernel module for it. Googling the ID number along with "linux" or "kernel" sometimes works. There are also compatibility lists like this:
http://linux-wless.passys.nl/

You'll notice that there is no vendor listing for Rosewill on this list. Most likely that means the vendor uses another company's chipset- the other company's name will then be the one that shows up in lsusb's output.

Once you have determined the correct driver for the device, simply do
sudo modprobe [module-name] to load the module and see if it works. If you get a Module Not Found error, that probably means the module isn't installed. If this is the case, you will likely need to install the linux-backports-modules-compat-wireless package.


Yes, if required later you can  reset the gnome panel, intructions available at Resetting gnome panel .


Installing Opera on Ubuntu Gnome 17.04 removes Apt

I have noticed same issue with my opera package. It demanded apt-transport-https even thought i have it installed in my system.
The problem is that the system was 64bit but package I downloaded was 32bit. I just needed to download and install right version.
Go to your download history in the browser and copy Opera url. It should be something like this:

https://download3.operacdn.com/pub/opera/desktop/45.0.2552.812/linux/opera-stable_45.0.2552.812_i386.deb

Change i386 part to amd64 and download it with wget. It should be like this.

wget https://download3.operacdn.com/pub/opera/desktop/45.0.2552.812/linux/opera-stable_45.0.2552.812_amd64.deb

When install it as usual with dpkg.

sudo dpkg -i opera-stable_45.0.2552.812_amd64.deb

I hope it helps.


How can I configure Gnome Shell Notification settings?

There is no way to easily configure gnome-shell notifications as of yet. You can disable them or configure them to time out.

dconf-editor allows you to configure some settings

sudo apt-get install dconf-editor
dconf-editor

You can also modify notify-send so the messages are transient.

# Move the current script to a backup location
sudo mv /usr/bin/notify-send /usr/bin/notify-send.bak

Now, use gedit for a new wrapper script

gksu gedit /usr/bin/notify-send

copy-paste this into that file

#!/bin/bash
/usr/bin/notify-send --hint int:transient:1 "$@"

Save the script , exit gedit, and make it executable

sudo chmod a+x /usr/bin/notify-send

See also this forums post for addition suggestions.


What scenarios causes a hard drive UUID to change?

The Universally Unique Identifier (UUID) is integrated in the filesystem. By this we can recognize a filesystem by it's unique number to avoid confusion (e.g. when mounting drives).

Anything that affects the file-system will also change its UUID. Under normal circumstances this will be

formatting a drive
(re-)partitioning of a drive

Under rare circumstances we may be faced with an external drive that mounts a temporary filesystem (e.g. live systems booting from an USB drive). In this case the UUID may also change.

We can manually assign a fixed UUID to a drive if we wish:

How do I change UUID of a disk to whatever I want?

This would be another scenario where the UUID of a drive changes.

In case we need manual control over the disk identifiers we may also use a disk LABEL:

Constant UUID on USB install


Ubuntu 16.04 LTS - Some bluetooth headpones connect, some not

That depends on the headset. I had this one time and sometimes it is a Bluetooth interference issue. My advice is to limit connections and if possible, use a wired connection.
But what works also is to disconnect the computer and the phone, turning off Bluetooth and finally pair the devices after turning on Bluetooth. If this doesn't works, I have no idea how to fix it. Sorry, I hope I helped you!

Have a nice day!


Lubuntu 20.04: context menu "Compress" not working after replacing ark with file-roller

Lubuntu 20.04 allows users to specify certain archiver tools to be used from the right-click menu in pcmanfm-qt.

The user can make this choice from pcmanfm-qt's Preferences > Advanced > Archiver Integration.


Where does Chromium keep the YouTube video files?

I made a little research and now I can come with the answer that is not so simple as it seems at first sight.

I searched a lot on Google, and almost everything is pointing to the ~/.cache/chromium/Default folder. It’s the folder where you should find google chrome’s cache files. But there are no big flash video files (like YouTube has), just small ones.

In the end, to answer the question, I came to these conclusions:

First, you have to open an YouTube video and let it stream from internet.
In a Terminal (Ctrl+Alt+T), you should get PID of Chromium that use Flash Player plugin. You can use various commands, but ps will do just fine: ps ax | grep flash.
Once you have this PID you can find out the name of  video file that just was streamed on Youtube: ls -l /proc/[*PID*]/fd | grep Flash. You will see as result something like this:

lrwx------ 1 [*user*] [*user*] 64 mai 2 09:48 [*video file name - is a number*] -> /tmp/FlashXX4PeKRY (deleted)`

And here is the answer of the question: the last video file streamed on YouTube and cached on the system is:

/proc/[*PID*]/fd/[*video file name - is a number*]

Now, if you want, you should copy them anywhere on the system:

cp /proc/[*PID*]/fd/[*video file name - is a number*] ~/Videos/[*new video file name*].flv

And now you have the last video watched on Youtube in your personal Videos collection.


You can unmount your hard drive using an external USB drive which would allow you to alter your partition.  The USB drive would have a burned iso of Gparted allowing you to resize the partition yourself.


There is no Linux sound support built into the vanilla or Ubuntu kernel for this device yet.

Thanks to a lot of hard work by many people, a kernel patch has been written for the sound card.

I recommend installing a pre-built kernel compiled by harryharryharry (updated since Meltdown & Spectre) as described here on Ubuntu Forums.

Download the kernel:

wget http://x205ta.myftp.org:1337/kernel/kernel-sound-64bit.tar

or if you have installed a 32-bit system

wget http://x205ta.myftp.org:1337/kernel/kernel-sound-32bit.tar

Run these commands to install

tar xf kernel-sound-64bit.tar
sudo ./install-sound-kernel.sh -v

The script asks whether you want to reboot now or later. After rebooting, as the script tells you, you need to run pavucontrol or otherwise change the audio settings to set Speaker and not Headphones as the default soundcard output.

Otherwise, you need to compile the kernel yourself, using harryharryharry's instructions or Lopaka's instructions (see the sound section).


How-to specify power button to do a 'shutdown -h now' instead of graphical shutdown menu?

That's simple enough. When you press the power button a ACPI event triggers the script at /etc/acpi/powerbtn.sh.

You can edit that to just run shutdown -h now as the first thing so it looks like:

#!/bin/sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.

/sbin/shutdown -h now "Power button pressed"
exit 0

# leave the old code below (in case you want to revert!)


Is it recommended to remove obsolete packages after a dist upgrade?

Removing obsolete (not used) packages will free a good amount of disk space. it's not necessary, but it's healthy to do these removals to free up disk space.


openssl/curl error: SSL23_GET_SERVER_HELLO:tlsv1 alert internal error

This looks like a problem with ECDH support between client and server. If you exclude all ECDH ciphers it works:

openssl s_client -connect ms.icometrix.com:443 -cipher 'DEFAULT:!ECDH'

My guess is that the server croaks on some of the 25 ECC curves offered by the client. Browsers only offer few curves. OpenSSL 0.9.8 does not support any ECC yet and RedHat/CentOS has a history of disabling ECC by default for patent reasons. I don't know why OpenSSL 1.0.2 works since I don't have access to this version.

Please note that giving the OpenSSL version is usually not enough because all the distributions keep older versions but add security patches. Instead check with dpkg -l openssl which gives 1.0.1f-1ubuntu2.15 on my system.


LILO is not from any business.  It is open source and the original non dos based Linux boot loader ( yes, originally you could load linux from DOS ).  It is still in the repositories if you want to install it, but at this point, using it is like using windows 3.1.  It is ancient and woefully inferior to grub2.


Opening up a CMYK PSD file in GImp (2.8)

GIMP won't open CMYK PSD files, it simply doesn't have CMYK mode for images. It will convert and open CMYK TIFF files, however, via separate+ plug-in.


The Arabic language worked with me after doing these:

Adding all the available options for Arabic (qwerty, azerty, etc).
Switching between all of them to see which one will work.
Once one of them worked fine and Arabic letters has been wrote, all the other Arabic options worked with me.

I think it may needs some time to take effect for the first time.


How to do window roll-up/shade in 16.04?

Try CCSM compizconfig-settings-manager with it's plugins (via synaptic), there you should find a lot of configuration options including window and mouse behaviour.


Xrdp: notify local user when a remote client is connected

I am not completely sure how this would appear in Xubuntu 11.10 however I will answer from experience using the Xubuntu 12.04 release. If you are using the vino application to serve desktop sharing, there is an option in the Preferences menu that will allow you to choose whether or not you would like to see notifications on the remote machine whenever users are connected. The Preferences menu is accessible through terminal by using the command vino-preferences as a superuser.

Source: Ubuntu Linux Guide


Files downloading again after they've been deleted

If I understand you correctly, you want them out of your Ubuntu One account all together? I'd say connect your computer, then delete the files and wait for things to sync the normal way. Doing it the other way around probably doesn't let Ubuntu One "know" you wanted them gone.


How to run an executable bash script on Kubuntu?

Originally posted by babelproofreader:

  Duh! Stupid me. The window decoration style I have opted for made the radio style button to toggle between executable/non-executable difficult to see what option is selected. Problem now solved.


are apps also synced when I used grsync?

Your user home folder contains your personal data, and user-specific application settings. The latter are stored in hidden files/folders, i.e., files/folders of which the name starts with a dot.

When reinstalling the base system and restoring your previous home folder, you still will need to reinstall any applications that do not come with a default install yourself. However, the applications will continue to use the user-specific application stored in your restored home folder.

There is a caveat when reinstalling this way. Not only your login, but also the number assigned to your account, i.e., the user id, UID, must be the same on the new install. This will be the case if you create the accounts in the same order as you did when previously installing the system.


To answer the question directly, sed is buffering and that's the sole problem.
You can fix this by telling it not to buffer with its -u/--unbuffered flag:

sed -u '/^$/d' /dev/ttyUSB0 | ts

With a test harness (but you'll need to run it for proof):

$ (echo -e 'banana\n\n'; sleep 2; echo 'cheese') | sed -u '/^$/d' | ts
May 14 11:26:05 banana
May 14 11:26:07 cheese

You can run into similar predicaments with other stream editors. They seemingly all want to buffer a little bit. They all have workarounds though. Here are a bunch of commands I've tested:

... | mawk -W interactive '/./' | ts
... | gawk '/./ { print $0; fflush(); }' | ts
... | grep --line-buffered '.' | ts
... | perl -n -e 'print if /./' | ts

Another idea is to just let gawk handle it. It can filter for non-empty lines and do the date-printing for you (thanks to SO's Kieron):

awk '/./ { print strftime("%Y-%m-%d %H:%M:%S"), $0; fflush(); }' /dev/ttyUSB0

That flushes straight after lines come in. gawk is especially helpful here if you want to do other things... If you want to check that the fourth column of output (pre-ts) matches a regex, you can (eg $4~/\d{4}/). Awk (and its variants) are very flexible for stream processing.

Another test harness:

$ gawk '/./ { print strftime("%Y-%m-%d %H:%M:%S"), $0; fflush(); }' <(
      echo -e 'banana\n\n';
      sleep 2;
      echo 'cheese'
  )
2014-05-14 11:13:59 banana
2014-05-14 11:14:01 cheese


KEY -> Could NOT find Vala (you need to install vala)

Building & Running

To fetch a copy of the source from Yorba's git repository:

$ git clone git://yorba.org/geary

Geary requires Vala 0.17.4 (or higher) and cmake. It also requires the developer packages (headers) for the following packages:

canberra
gee-1.0
gio-2.0
glib-2.0
gmime-2.6
gnome-keyring-1
gtk+-3.0
notify
sqlite3
unique-3.0
webkitgtk-3.0
indicate (optional; enables support for Ubuntu Unity messaging menu)
unity (optional; enables support for Ubuntu Unity launcher)

Most of these are standard libraries available from major distros' repositories.

On Ubuntu 12.04, you can install Vala 0.17 from the Vala PPA, which you can add to your system as follows:

ppa:vala-team/ppa  (Click here for instructions on using PPAs.)

$ sudo add-apt-repository ppa:vala-team/ppa
$ sudo apt-get update
$ sudo apt-get upgrade

On Ubuntu 12.10, you don't need to add any PPAs (Vala 0.17 is available in the valac-0.18 package in the official repositories).

On Ubuntu 12.04 or 12.10, you can obtain the dependencies for Geary with these commands:

$ sudo apt-get install valac-0.18 cmake libcanberra-dev libgee-dev libglib2.0-dev libgmime-2.6-dev \
       libgnome-keyring-dev libgtk-3-dev libnotify-dev libsqlite3-dev libunique-3.0-dev \
       libwebkitgtk-3.0-dev libindicate-dev libunity-dev

You should check that you are using the right version of valac with the command

valac --version:

Vala 0.17.4

The version number must be at least 0.17.4. If it reports an earlier version, run

$ sudo update-alternatives --config valac

and select 0.18 there.

To build:

$ cd geary
$ ./configure
$ make

After building, Geary can be installed with:

$ sudo make install

and removed with:

$ sudo make uninstall

Running

Once compiled, Geary can be run straight from the build directory:

$ ./geary

It will prompt for a username and a password. Geary will then fetch all the account folders and load the most recent messages from the Inbox.

SOURCE -> improve format, step order and so on http://redmine.yorba.org/projects/geary/wiki

if you don't want to compile you can use  :

for ubuntu <= 12.04 , “Yorba” team

ppa:yorba/ppa  (Click here for instructions on using PPAs.)

for ubuntu = 11.10, 12.04, 12.10 , “Yorba” team Daily Builds

ppa:yorba/daily-builds  (Click here for instructions on using PPAs.)

$ sudo apt-get install geary


The workaround is to use a powered USB-Port, as well as simply another USB-Cable.

Sadly, no one seems to have a look at why with some cables the device is added and immediatly removed, while with other cables the device stays. I don't get behind this conduct.


"Failed to create swap space" error during installation

I would change the disk label, or create one if you don't have one. I think that is your root problem. You are either using a label that is reserved, or have some crazy random characters in it, or have none at all. Put something like 'Your-name-home' or 'your-name-laptop'. Be mindful of max character limit.


Authentication required by Wifi network Ubuntu 14.04

Try checking the box next to MTU in the Wifi Configuration menu so Automatic is selected:

Click on Wifi panel indicator > edit > select the network you want > edit > wifi; MTU is at the bottom of the window.


I'm seeing a similar issue running 16.04 LTS. After every un-suspend, my secondary monitor will draw blinking trails of a window dragging on top of it, looking like I'm painting with the window, but continuously flashing at odd intervals.

While this is not a permanent fix, after every un-suspend and login, I have to do two things. I must first, turn on the secondary monitor (I'm not sure why it turns off on suspend) and second, move each windows that was previously on the second monitor and place them on the primary.

The steps are (I don't think the order matters):

1) Turn on the second display.

  pull up Ubuntu settings
  choose Display settings module
  choose second monitor
  if it is off, turn it on

2) Get the applications back into view

  select hidden application
  press Alt+Spacebar
  on the keyboard choose Move
  in context menu drag mouse cursor to primary window on the far other end until the application shows

Honestly, it might be faster for you to unplug and replug the display cable, but it's a second option.

There's probably a better fix out there. I'm still looking.


Caps Lock is turned off when i change the language

Having my self this problem, I decided to make a script that I can run in the background, and keep the Caps Lock status the same, between language changes.
It JUST WORKS!ΑΠΛΑ ΔΟΥΛΕΥΕΙ! (The previous example was typed by keeping the caps lock on while changing between English and Greek).
You can find it on github, https://github.com/mechpanos/capskeeper .

It uses Python, wit the pyxhook module to listen to the key presses even in the background (included), and it also takes advantage of the pyautogui library to automatically press CAPS LOCK button, if needed (needs to be installed separately, with the command pip install -U pyautogui).

Thanks to all the folks for the examples of using Python, pyxhook and pyautogui, that helped make this script! Feel free to test it and make it better, if you want to...

You can run it on the background, using no hangup to run a program in background even if you close your terminal:

nohup python /path/to/capskeeper_1.py &

Do not forget to use & to put it in background.


x11 directory specified in makefile doesn't exist, but project compiles and runs perfectly

Yes, gcc checks /usr/include to satisfy #include directives by default.
Try locate -b '\X.h'. My system finds it in /usr/include/X11.


How can I disable Kubuntu 12.04 home folder encryption?

If you are sure that you need full disk encryption, you might better consider backup the current data and do a reinstall.

A new installation will give options on

LUKS encrypted swap partition
LUKS encrypted / filesystem
LUKS encrypted /home partition (if its not under /)

excpt encrypted /boot filesystem.

Btw, installer uses eCryptfs for user home encryption, which is slower than LUKS encryption.


Relation between desktop environment, windowing system and GUI libraries

User experience
You can have both Qt & GTK libs in memory (inc. GTK2, GTK3 & Qt5...) at the same time, this won't be a problem if you have loads of memory in your box, but it'll mean lots of paging & a very slow experience if you've limited RAM.
I as a general rule tend to ignore toolkits & libraries used where boxes have >4GB of RAM, take minor interest at 4GB, but take careful notice if box has 2GB, esp. with 1GB. The more libs/toolkits in use just means more overhead (esp. RAM used)...
Desktops  (using LXQt as example)
DEs don't define everything (Lubuntu uses LXQt with Openbox, which handles maximize, minimize etc, as LXQt can't)
Software is built as a stack, and you can drop in and replace various components (use LXQt on Debian and it'll by default use xfwm4 from the XFCE project instead of Openbox preferred by Lubuntu team).
The programmer has control over what they use, and they tend to choose efficient tools that meet their needs or project aims (LXQt; the L means light which is taken seriously).
Choice
End users though are free to waste ram by choosing GTK programs still, packagers are free to use different WMs (my openbox/xfwm4 example) and build the system as they choose.
Once installed you can replace components too.
GNU/Linux users have choice, we can pick & choose which parts of the various system exists in our stack, even double up and use multiple libs/toolkits that do the same thing differently & waste resources, just because we can, or it pleases us.


Default sound output device forgotten after restart

Install Pulse Audio Volume Control.  Click on Configuration and make your selection there.  Then go to your Sound icon and match the settings.

You can find it in the repository:

$ sudo apt install pavucontrol


Where can I see the text that is displayed during boot?

I doubt you can find stage 1 through Linux. If it appears before grub it has nothing to do with your installed OS. You might be able to find it in your BIOS's logs.

As for stage 3, you can find that text in /var/log/boot.log. For example, here are the 1st 20 lines of mine (yours will be different of course):

$ head -20 /var/log/boot.log
Scanning for Btrfs filesystems
resume: libgcrypt version: 1.5.3
[e4rat-preload] Open /var/lib/e4rat/startup.log ...
[e4rat-preload] 6693 files scanned
[e4rat-preload] Pre-loading I-Nodes ...
[e4rat-preload] Execute `/sbin/init' ...
[e4rat-preload] Pre-loading file content ...
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[e4rat-preload] Successfully transferred files into page cache
[ ok ] Reading early boot files....
[ ok ] Starting the hotplug events dispatcher: udevd.
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[....] Checking root file system...fsck from util-linux 2.20.1
/dev/sda7: clean, 581416/4505600 files, 6554372/18013696 blocks
done.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1


how do I get backup for my laptop and do I need to pay for that?

Download the free Clonezilla iso and install it on a CD/DVD or download the zip file and install it on a USB stick. Then boot from the CD/DVD or stick and follow the instructions. https://clonezilla.org/downloads.php


Ubuntu with window manager for longest battery life

Dont bother, use whatever you like.
I tried ubuntu unity, i3, awesome, xfce, kde(on open suse) and they are all basicly the same.

Most of the time you spnd in ONE window, the WM doesnt do anything there and as long as your cpu is fast enough to handle unity nicely (it is improved vastly with 13.04/13.10) or kde they wont make any difference in idle battery usage.

Of course you get a little better battery life with lets say i3, if its what you want go for it or use xfce, i dont like openbox that much anymore since al the hardware is easily fast enough to use xfce on the lowest power consuming state nowadays, my i 3 wont clock up while using unity.

If u want a big impact get tlp and DISABLE THE FRIGGING BLUETOOTH (better:remove the card:D its unsafe, it sucks your power, its slow).


Cannot type the @ symbol on Spanish keyboard?

The spanish keyboard layout has the @ sign on the number 2 key. Press AltGr, keep it pressed, press 2.


cgroups not working properly with multi-core DPDK application

TL;DR:

use for i in $(pgrep -w l3fwd); do echo $i > tasks; done

Details:

I think in your case the pgrep to task assignment needs some improvement to work with multiple IDs being reported.

If it returns one PID things work just fine, but if it returns more the cgroup interface actually reports

pgrep: write error: Invalid argument

Maybe you only simplified your report, but please double check that all tasks are in the cgroups task file and use a loop (or any other workaround).

$ stress-ng -c 4
$ for i in $(pgrep stress); do echo $i > /sys/fs/cgroup/cpu/dpdk/tasks; done
$ cat tasks
28543
28544
[...]

Now for your case in particular, l3fwd has one process but three threads.
So pgrep will only report the main pid, the others (main loops) are unrestricted.
You can see when you build and test it via ps axlf vs ps -eLf and the pgrep output.

. /usr/share/dpdk/dpdk-sdk-env.sh
mkdir -p l3fwd
make -C /usr/share/dpdk/examples/l3fwd "O=$(pwd)/l3fwd/"
#  config /etc/dpdk/dpdk.conf and /etc/dpdk/interfaces
service dpdk restart
$(pwd)/l3fwd/l3fwd -l 1,2 --socket-mem 512 -- -p 0x3 -P --config="(0,0,1),(1,0,2)" --parse-ptype

So you have to take pgrep -w and combine it with the above.

for i in $(pgrep -w l3fwd); do echo $i > tasks; done

And e voila, from:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
29849 root      20   0  703052   4184   3336 R 200,7  0,0   0:17.36 l3fwd

to

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
29849 root      20   0  703052   4184   3336 R  29,8  0,0   0:34.11 l3fwd

Still please see my initial comment, other than for experiments please to not limit DPDK cpu consumption - then instead just do not use DPDK.


it's been a while since your post, but did you look at the host of options available here: http://manpages.ubuntu.com/manpages/precise/man5/lts.conf.5.html

You can set your screen, card and other options in detail.

Also, you can see in your server's /var/log/syslog what happens as soon as your client has booted and connects to the server in a session.  Even the DCHP event and pxe (if you boot using that) will show it, if you set logging to debug or something similar.

The logging you're looking for actually happens on the thin client, not on the LTSP server. When you create the image that boots the thin client (in chroot), you can add a user and allow it to log into the thin client.  Also install sshd and make sure it's listening. There are more examples of this out there, but here's one to start with: Add user to LTSP chroot for troubleshooting

If you did manage to solve the issue in the meantime, do give us an update here please.


Skype doesn't show video fine on Acer Aspire S5 (ubuntu 16.04)

It helped me to use 20-intel.conf from this repository & updating firmware:

https://github.com/linuxenko/ubuntu-skylake-i915-video-fix

Installing kernel 4.6 alone didn't help, I rolled back to 4.4.


To install Cnet : http://www.csse.uwa.edu.au/cnet/install.html

In above link it says to install libelf :
sudo apt-get install libelf-dev

I tried installing libelf-dev and it worked for me


copy paste shortcuts not working for ubuntu 18.04.1

So apparently this worked,

When I enter settings->device->keyboard ,then reset all shortcut-key. All default shortcut key works normally including Ctrl + C & Ctrl + V.


Read Internal HDD Data with USB Enclosure

In short: as root: Yes.

You may need to sort out other user's IDs if the two computers don't have the same users defined, but otherwise there shouldn't be any problems.


Why evolution 3.18 creates multiple copies in the send folder?

I had the same problem and it could be solved by using the correct port of the SMTP server. Go to the settings of your selected account, go to the page, where the SMTP server is specified, change the port to the number your provider uses (e.g. 465 instead of 587 which in my case was automatically assigned by Evolution) and select the correct method of authentification (e.g. STARTTLS). Furthermore you can try to change the folder where Evolution saves your messages on the next page of the account settings. Often it is called "Sent Item", but Evolution tries to use a folder "Sent".

If none of the above works you could try to tell Evolution to save sent messages in a local folder on your computer by enabling the local account and setting it as the saving destination.

I hope that this helps.


I bet you have a massive hard drive (something about 1.5-2TB), and Ubuntu is simply calculating the percentage that is left in the filesystem (5-10%) and issue an alert because the space is exhausting. For now you can ignore the message (or ask to do not show it again). There isn't a way to "solve" it (I look up the dconf keys and the preference was nowhere to be found, maybe hard coded).


Macbook Pro 8,2 Graphics switching - Ubuntu 12.04

I can't help on the graphics card switching, but I've got a Web page that details one way of installing Ubuntu in EFI mode on Macs:

http://www.rodsbooks.com/ubuntu-efi/index.html

The procedure is much too long to describe fully here, but in brief, it involves doing a BIOS-mode install and then booting and ripping out the BIOS-mode stuff and replacing it with EFI-mode stuff. There may well be other ways to do this, and the optimal methods may well vary from one model to another, so this is very much a "use at your own risk" sort of proposition, no matter how you do it.


Better yet, click here:

OpenJDK and install the Web Browser plugin farther down the page.

I was able to install the java plugin (icedtea) at this link from oracle.

Verify Java

It'll have a popup at the top of the window saying it needs additional plugins for this content.  It'll install and then your good.


How do I make a key on the keyboard do *nothing*?

Use xev to find out what the keycode is. My Control_R is 105. Then run this:

xmodmap -e 'keycode 105 = NoSymbol'

If that works, head into the start-up applications dialogue and add a new entry to run that command on boot.