How do you change the preferred resolution with xrandr?

To change the preferred mode you would need to add
Option "PreferredMode" "1920x1080_60.00"

under section "Monitor" in an entry in /etc/X11/xorg.conf.d (e.g., /etc/X11/xorg.conf.d/10-monitor.conf is suggested).
See also here.
I am not sure adding this to (and creating if needed) /etc/X11/xorg.conf instead also works for a "static" setup.
Related:

https://unix.stackexchange.com/questions/94734/how-to-modify-the-default-setting-adopted-by-xrandr-when-connecting-an-external
How to change the preferred mode on xrandr?
https://linux.die.net/man/1/cvt
https://linux.die.net/man/1/gtf
https://linux.die.net/man/1/xrandr


How can I prevent dpkg-buildpackage from modifying the modification date of the /debian directory when building a Debian package?

I'm not in exactly the same situation as you, but hopefully my answer can point to what you need.

Rather than using pbuilder I'm currently using multiple chroots for building packages on amd64 and i386. I generate the .dsc outside of the chroots using debuild -S, then copy the appropriate files to the chroots. Not the best way of doing it I realise.

Inside the first chroot I run dpkg-buildpackage -b to build the binary packages. In the second chroot I run dpkg-buildpackage -B, to only build the architecture dependent packages - i.e. those that aren't duplicated.

When I use reprepro to push the packages to my repo, the .debs from the first chroot (i386) with target "all" are copied to all architectures as well as the i386 debs being copied to i386. When I push the packages from the second chroot (amd64), the remaining architecture dependent debs or amd64 are copied across.


You can try to reinstall the Ubuntu Software Center.

To do that, open the Terminal, and run the following commands:

sudo apt-get purge software-center

Then

sudo apt-get update

sudo apt-get install software-center

Hope this works for you!


JuJu does need 2 nodes to do anything useful.  You should be able to bootstrap your juju maas environment with 1 node, but that would be it.

It seems to me that the juju bootstrap node has had some issue in your case.  I do not think installing an additional node would fix your problem.

Could you collect (and post somewhere) the contents of:
 /var/log/cloud-init-output.log
 /var/log/cloud-init.log
 /var/log/juju

I suspect if you look in /var/log/cloud-init-output.log on the bootstrap node you might see something that points to your problem.


netflix-desktop not loading when I click play

Go up to the top left of the screen and a arrow pointing left (back arrow) and go back to the movie selection screen and select your movie again and it should start playing. I am not sure why this needs to be don but it works for me.


Adding Custom Wallpapers to 'Wallpaper' section?

You can try adding your wallpapers to the default location of the default wallpapers

Open terminal
type gksudo nautilus and provide password
Goto file system
browse to /usr/share/doc/ubuntu-wallpapers
log out, then in again and your wallpapers should be listed

If that dose not work try putting them in /usr/share/doc/ubuntu-wallpapers-precise (12.04 only)


No Printer Driver for HP 3510 in Lubuntu

I just downloaded and installed Lubuntu 14.04.  I also have an HP printer so I went to the HPLIP web site

http://hplipopensource.com/hplip-web/install/install/index.html

It walks you through the installation.  HP is one of the few printer companies that is really Linux friendly.


no graphical login screen after boot into Ubuntu

You need to purge NVIDIA drivers and let the ubuntu-drivers tool install the suitable drivers. To do so, please follow these instructions:

Purge the NVIDIA drivers:

sudo apt purge nvidia-*

Run apt autoremove to complete the purge process:

sudo apt autoremove

Run the ubuntu-drivers tool:

sudo ubuntu-drivers autoinstall

Reboot.

To selectively install the nouveau driver, please refer to this post.


Stop emailing me bad sudo password attempts

From man sudoers:

 mail_badpass      Send mail to the mailto user if the user running sudo
                   does not enter the correct password.  If the command
                   the user is attempting to run is not permitted by
                   sudoers and one of the mail_all_cmnds, mail_always,
                   mail_no_host, mail_no_perms or mail_no_user flags are
                   set, this flag will have no effect.  This flag is off
                   by default.

The flag is off by default - but enabled by Ubuntu's default /etc/sudoers file, as you have noted.

Presumably, you have started receiving these messages because sudoers default mailto is root - and you configured an MTA to deliver root's mail for cron. The messages should stop if you comment out the Defaults    mail_badpass line (using sudo visudo).


When running from a terminal, it says that it's looking for crond, not cron - I guess this is why we get this error. You can still manually setup the cron for your specific backup (using crontab -e) and making it run one of your backup scripts located in /etc/gadmin-rsync/scripts/ (which gadmin-rsync would likely have created).

Hope it helps!

(note:  I would have liked to directly fix the problem in the application itself but the source code from the gadmin web site is not available atm)


No such command 'sip show peers' when using asterisk

module show like sip

is returning something?

if not do this

module load chan_sip.so

and try again


16.04 Command to list all services started on boot

As far as I now, services are automatically enabled in Ubuntu, so when you install something like Apache it will be started at boot.

Find some information

To find out all services that have been run at startup:

systemctl list-units --type service

this will show all services that has been loaded at boot and are active now.
If you want to get a list of all services no matter they are active or not:

systemctl list-units --type service --all

Another thing you can do is to run:

systemctl list-dependencies --type service

then hit / and search for mongodb see what service/target depends on it and runs it.

Also you can run :

locate mongodb.service

Which produces something like:

/lib/systemd/system/multi-user.target.wants/mongodb.service

then you will know that it's being started as a part of multi-user target, alternative to this is:

$ systemctl cat mongodb.service | grep -i wantedby
WantedBy=multi-user.target

Disable it

To find out that if it's active (Will be run at startup/boot-time):

systemctl is-active mongodb

It's either active or inactive; In your case it should be active.

To stop it from being started at boot time we should disable it:

sudo systemctl disable mongodb

And to make sure nothing else (No other service) can start it, we mask it:

systemctl mask mongodb

so it will be linked to /dev/null and can't be started automatically or manually anymore.

I'm not aware of mongodb service name, try hitting the tab it will be completed. I guess it's mongodb ;)


Adding softhyphens to HTML from command line

If what you are looking for is to simply replace - with &shy;, you could just use sed:

sed -i 's/-/\&shy;/g' file.html

The command above will edit file.html and make the replacement you want.

Your other question is not on topic here so I won't go into any depth but yes, different languages often have different hyphenation rules.


How to remove Ubuntu and Install Windows 10 without losing my data?

Because Windows uses the NTFS file system and Linux uses the ext4 file system you'll have to copy/backup the data somewhere before re-installing.

Your options are:

Upload to the cloud such as Google Drive; or
Copy data to a USB disk or another external drive; or
Use the Live USB installer to resize your disk and create an extra NTFS or FAT32 partition and move your data to that partition and be careful not to allow Windows to format it when installing


MongoDB - Unit mongod.service can't found - Ubuntu 16.04

The next step for this is to make sure you have a unit file for the service.

Run this command:
ls /lib/systemd/system

If you see mongod.service, you should be good to go. If you need to know what that file should look like, take a look at this guide.

In theory, that should be the last thing you need to do to get it working.
Basically, this is just a file to tell the system how to put the service into various states, and the little house-cleaning tasks that need to be carried out.


Micro SD Card reader on Lenovo N22 not working Ubuntu 17.04

You can check the /dev folder to see if the SD card is showing up there. They should show up as "mmcblkX" in this folder, with X being the number of the card (probably 0). In the terminal, you can use the command ls /dev | grep "mmc". If that command spits out stuff, then the system sees the SD card, but your graphical tools like gparted don't (which is a different problem).

There may have also been some problem with the device, in which case the driver might have spit out some useful error when you plugged it in. Plug the SD card in the slot, and then run sudo dmesg | tail (soon after plugging it in) to see these messages. That might help you get started.


Slow internet speed after installing ubuntu 20.04 in chrome

Is your internet speed only slow when using Chrome or also when using Firefox?
If it's also slow when using Firefox, you can maybe check out this post: Ubuntu 20.04 Network Performance Extremely Slow
If it's only in Chrome, maybe you can try to reinstall it.
Hope this helps.


To install the nvidia drivers manually you need to run the nvidia installer with the X server closed. So first drop to console

sudo stop lightdm

And then go to the directory where you have the installer and run it. When you are done try

sudo start lightdm


Use SSH you can do just about anything with the Linux shell.

If you really want to 'take over' your desktop, use something like VNC


The format of .desktop files is described in the Freedesktop Desktop Entry Specification.

Have a look at Arronax if you want a simple GUI to create and modify .desktop files.


Check the CD and verify the iso image you downloaded. This will probably help.


Install R Ubuntu 17.10 [Broken Packages]

I added the wrong rep:

sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'

should be

sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu artful/'


upgraded to Ubuntu 14.04 LTS, keyboard and mouse not working

Keyboard and mouse problem got solved following instruction at:

https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes#LTS_Hardware_Enablement_Stack
......
   sudo apt-get install --install-recommends linux-generic-lts-vivid xserver-xorg-core-lts-vivid xserver-xorg-lts-vivid xserver-xorg-video-all-lts-vivid xserver-xorg-input-all-lts-vivid libwayland-egl1-mesa-lts-vivid

Then i got into Ethernet card not detecting problem. THis was solved by finding the latest driver for my ethernet card
" Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"

Thanks to this: http://ubuntuforums.org/showthread.php?t=1505697
for helping to solve the Ethernet problem.

Thanks to all postings & answers.


SFTP security: Can't verify the identity of an IP

This model is called trust on first use. You are required to manually verify the identity of the server you are connecting to for the first time. Once you verify, SFTP client will store the value locally and on subsequent connections, verify the sever's identity automatically be comparing it to the stored value. If it changed, it will display a warning of a possible man-in-the-middle attack.

You should check the server's signature via a separate channel (if it's a public one, for example by checking the HTTPS website that lists its value, or as suggested by contacting the system administrator) and compare it with the one displayed by the SFTP client.

If you don't verify you are running into a risk of connecting to a hostile server which might serve different/modified versions of the files if you download, or might reveal the contents of the files you upload to the (malicious) server owner.


What does this error mean: “maverick is not supported.” when installing AppScale?

Are you looking at this: https://launchpad.net/appscale?  A quick google of "installing app scale on ubuntu" provides me w/ this page:http://code.google.com/p/appscale/wiki/Getting_Started_Current_Release but doesn't show a current release outside of Karmic and the last build of anything from 2011.  I would assume this means there are no current packages for Ubuntu 10.10 (Maverick) which is why it isn't installing and not supported.

I hope this helps out with your question.

JOnathan


What is better driver for GeForce Gt 220 M?

You need bumblebee and bbswitch. You will break your installation if you switch to these nvidia drivers directly. These don't play well with the Optimus card you have.

It is possible to install head from the software updater, but like I said, head over to bumblebee and it will manage a lot for you


How to recover from failed installment of codelite

Your error mentions broken packages. I suggest you start with resolving that issue first. Try running apt with the -f flag:

sudo apt-get install -f

It may not solve the whole problem, but it would be a good start.


VMware 9 install not opening after extraction on 13.04

This solution works for me:
http://ubuntuforums.org/showthread.php?t=2107900

launch this script:

#!/bin/bash
if [[ $UID != 0 ]]; then
    echo "Please run this script with sudo:"
    echo "sudo $0 $*"
    exit 1
fi

sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h

cd /usr/lib/vmware/modules/source
sudo tar -xf vmci.tar
cd vmci-only/linux
sudo sed '127s/.*/   .remove = vmci_remove_device,/' driver.c > driver.c.tmp
mv driver.c.tmp driver.c
sudo sed '1753s/.*/static int/' driver.c > driver.c.tmp
mv driver.c.tmp driver.c
sudo sed '1981s/.*/static void/' driver.c > driver.c.tmp
mv driver.c.tmp driver.c
cd ../..
sudo tar -cf vmci.tar vmci-only/
sudo rm vmci-only/ -Rf
sudo vmware-modconfig --console --install-all
sudo rm /usr/src/linux-headers-$(uname -r)/include/linux/version.h
echo "Done"


First thing to try: Boot a live USB or CD and run boot-repair


When you use the Settings>Display GUI to enable fractional scaling, as you have done, the setting for org.gnome.mutter experimental-features is being changed from the default value to "x11-randr-fractional-scaling" (for X11 sessions) immediately.  It appears, in your case,  the setting is not being changed through the GUI.  You may want to try changing the setting via the dconf editor sudo apt install dconf-editor or by running the equivalent gsettings command.  The gsettings command is gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']"

Since your computer is behaving abnorally via the GUI I would proceed with caution.

Once Fractional Scaling is enabled you may want to try a setting of 1.25 to start with and adjust from there.

You may need to restart your computer for the changes to take effect.

If you want to back out of these changes issue gsettings set org.gnome.mutter experimental-features "[]" in a terminal session.


Broken RMVB file not allows to use progress bar in "Movie Player"

I have installed "OggConvert" (via Ubuntu Software Center) and started converting rmvb to ogg format. Process has not finished yet, but I'm able to use progress bar in ogg format.

btw OggConvert will not list rmvb files by the default, choose "All Files".


xrandr needs to know which display you're talking about, typically via the DISPLAY environment variable
root (which udev runs as) has no default DISPLAY set; even if he/she did, su -c does not preserve the environment by default
So pass it along explicitly to bash, and that should solve your problem, e.g.:

su -c "DISPLAY=:0.0 bash -x /usr/bin/think-dock $setto" "$user"


Ubuntu 16.04 distro/backup has only live boot options and no install

Here's what helped me overcome the issue:

Run the live boot
Run the installation shortcut

or open the terminal and run:

sudo sh -c 'ubiquity gtk_ui'

It's good to have internet access while installing so it downloads all the dependencies of the distro/backup.

Good luck


Getting libboost-all-dev for ARM machine Linux--UHD Ubuntu 12.04 ZyBo ARMv7 32bit

UHD works for ARM machines. However you have to change the settings on Update Manager in Linux to search for updates from (universe) which has the libboost-all-dev library


Why do some applications in Unity start "maximized" but not integrated into the panel?

gDevilspie can do that for you!

What is gDevilspie?

A user friendly interface to the Devil's Pie window matching daemon, To create rules easily.

Devil's Pie is a window-matching utility, It can be configured to detect windows as they are created, And match the window to a set of rules. If the window matches the rules, it can perform a series of actions on that window.

How to install gDevilspie?

Hit Alt+Ctrl+T to open terminal and run following command:

sudo apt-get install gdevilspie

Or search for gDevilspie in Software Center and install from there.

How to use?

Once installed, Hit Super key (Windows key) to open Unity dash and search for "gDevilspie" and open it.
Open "Gimp".
In gDevilspie click on "add" to add a new rule.
In "Rule Editor" Click on "Get", Select Gimp window and "Apply".

Name this new rule as "Gimp" in top field.
Under "Matching" tab enable "window_xid" and "application_name"

Under "Actions" tab enable "maximize" and click save.

On the main window enable the option "Start devilspie daemon automatically at login" and click on "Start". That's it!

Now whenever you will start "Gimp" it will automatically be maximized. You can add rules for "Update Manager" or any other program in the same way.


How can I get librefblas.a on Ubuntu 14.04.1 LTS Trusty?

Using Lapack version 3.5.0 with gfortran installed

sudo wget http://www.netlib.org/lapack/lapack-3.5.0.tgz
sudo tar -xzf lapack-3.5.0.tgz
sudo cd lapack-3.5.0
sudo cp INSTALL/make.inc.gfortran make.inc
sudo make blaslib

librefblas.a is in directory lapack-3.5.0


Dell XPS 15 9560 Dual Boot - Ubuntu partition only boots following Windows restart

Good news! I found a solution.

Per the suggestion of @WinEunuuchs2Unix that

  "Windows is initializing hardware or firmware that Ubuntu isn't"

a likely culprit was Windows 10 Hibernation.

Thus, turning off Windows 10 Hibernation was all I needed to solve the problem. Additionally, by accident, it solved a previously unresolved issue that Windows 10's clock was inaccurate following Ubuntu restart (this last step fixed the issue in addition to the steps described here).


Why is my screen going black after a minute or less of no input activity?

I found an answer that worked in the second answer to this question.

This other question's asker found a way to fix a very similar condition in 12.04, but I'm running 16.04 and the System Settings UI has been changed to something different (looks much more limited now - hmm....), and I had already tried flipping the setting that looks like the new equivalent, as mentioned above. My output from xset q looks like:

DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Enabled
  Monitor is On

and switching the "Dim Screen To Save Power" checkbox in the 16.04 UI had no effect on that.

However, using the solution in the second answer on that question did work:

xset s off && xset -dpms

Which apparently needs to be put in a user's profile to get it to happen each session at the right time.

This results in:

DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Disabled

(This seems to be a bug, to me. I'm not sure where to file it.)


I had same issue on my dell xps with Intel centrino 1030N wifi adapter.

I've posted the solution today, try if this works for you.
Wifi is slow and unstable on ubuntu 20.04 dual boot (DELL XPS-L502X) Please help!


I'm not sure how much data you're actually talking about. Or if that's a problem. You might be being risk-averse when no real risk exists.

If you're adding  hundreds of gigabytes of new data to your drive  that's going to use a lot of download and writing. If you're adding the odd 5MB photo and 200KB spreadsheet that's only going to be responsible for that much write. You can use tools like iotop to monitor write totals, intensity, etc.

And how much is your SSD good for? Many reputable manufacturers publish stats on write intensity and durability. Looking at yours:

DWPD (Drive Writes Per Day) : 0.23
  TBW (Total Bytes Written) : 60TB

These don't strike me as particularly great spec but you have to weigh the balance between:

The likelihood your write intensity will lower the lifespan of your drive while you use it.
How much will replacing it cost when it needs replacing?
How much value you derive from getting a synced drive.

Personally speaking, all drives fail eventually and that's often not from wear. Wear issues tend to be non-catastrophic (the writeable area just gets lower). I'd enable SMART monitoring, and use the hardware I have and not worry too much about normal use.


bash: ./start.sh: Permission denied && ./start.sh: line 64: .//WrightEagle: Permission denied

You need to chmod the WrightEagle file like this:

chmod u+x .//WrightEagle


I found out what it was, it was fstrim included in etc/rc.local. I commented it out and the boot under gdm3 is now just a few seconds. I haven't figured out why this worked in 17.04 and in 17.10 under lightdm though.


Permission to referance file in git changed on push

As this isa Q&A site, and I found the answer my self after a lot of crawling through google searches and solved this.

The basic problem goes back to a umask that was set, that masked all the files when I did the push - and I had to change this. To do this I did the following:

open the .gitolite.rc file in the root of my repository and set the the variable:

$REPO_UMASK = 0022

(Set the Umask to the mask you want to have). After this my files were not stripped for the read-permission for the group.


What music app do I install on my new BQ Ubuntu phone? And where to get it from?

I just figured out that there's a built-in music player. Slowly but surely.


Cannot find gsl header files when compiling

If you installed libgsl-dev, then the headers should be in /usr/include/gsl/, hence the compiler should be able to locate them if you specify -I/usr/include/gsl

Or you can omit the -I directive altogether if you change your #includes to #include <gsl/gsl_randist.h> etc.

Alternatively, you might want to consider using pkg-config to locate the headers automatically e.g.

gcc -Wall `pkg-config --cflags gsl` -c gsltest.c


Can't format/erase a partition on usb stick

I too face similar problem with Gparted. I have no Idea why this happens when I make bootable or persistent usb.

But I have easy trick. I use mkusb to format and freshly allocate pen-drive.I never gone through any terminal drill.

I hope it will work for you too.

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


Open source vs Proprietary drivers for Video and Image Editing

The propriatary drivers are normally a lot faster than the Open Source ones in 3D acceleration so I would figure that the impact will depend on the software. If the video or photo editor uses 3D acceleration then you will notice a difference. For everything else not so much, the 2D performance of the open source drivers is pretty good.


Ubuntu studio 20.04 fresh installation, can't complete language support installation

This is not a complete answer. But the file which contains that message is /usr/share/language-support/incomplete-language-support-gnome.note. I don't know what it is that triggers it, though.
Ubuntu Studio uses the Xubuntu desktop, doesn't it? Maybe it's Xubuntu that triggers it somehow.
OTOH, if the check-language-support command only results in a blank line, based on what is the "Incomplete Language Support" note triggered?
(Sorry for rather asking questions instead of a proper answer.)
I suppose that you can get rid of the prompt by simply deleting or renaming the incomplete-language-support-gnome.note file. Not so elegant, apparently, but atm I don't have any other idea.


Side borders may be too thin and can't be visible, have you tried looking at the pixels and seeing, if you have no pixels showing up, then just put it into a little bit bigger value where it is visible, like 0.35


Can ubuntu be installed in intel kabylake 7th gen processor?

Based on this, I'd say that that processor is fine for use with Ubuntu.  Is yours one of the systems listed?

Apparently there is a bug in the 16.04 kernel that can cause a problem with the Skylake range of processors, but it seems there is a fairly straightforward fix for it:

Update the kernel to version 4.4.0–18
Add intel_pstate=disable to your kernel command line

A discussion of this fix can be found here.

Hope that helps.


Removing Taint from kubernete nodes doesnot work

I found the solution here with little bit of change:

https://github.com/charmed-kubernetes/bundle/wiki/Deploying-on-LXD#the-profile

On the machine which I have the LXDs I changed the profile to use 'dir' :

name: juju-##MODEL##
config:
  boot.autostart: "true"
  linux.kernel_modules: ip_tables,ip6_tables,netlink_diag,nf_nat,overlay
  raw.lxc: |
    lxc.apparmor.profile=unconfined
    lxc.mount.auto=proc:rw sys:rw
    lxc.cap.drop=
  security.nesting: "true"
  security.privileged: "true"
description: ""
devices:
  aadisable:
    path: /sys/module/nf_conntrack/parameters/hashsize
    source: /dev/null
    type: disk
  aadisable1:
    path: /sys/module/apparmor/parameters/enabled
    source: /dev/null
    type: disk

Then I applied this profile to my LXC:

sudo lxc profile assign <container-name> default
Profiles default applied to <container-name>

You can get 'container-name' by running : $lxc list

Then I restarted all containers:

$sudo lxc restart --all

Now all nodes are ready :

$kubectl get nodes
NAME                   STATUS   ROLES    AGE   VERSION
container#1   Ready    <none>   6d    v1.14.2
container#2   Ready    <none>   6d    v1.14.2
container#3   Ready    <none>   3d    v1.14.2


@sudodus got the answer right.
For anyone facing the same problem as mine, using nomodeset as the booting option allowed me to start the installation process.
That's done pressing e on the GRUB menu and editing the command replacing quiet splash with nomodeset and leaving everything else as it is. Once that's done just press Ctrl + x to boot into the installer.
Hope that this works for you!
--------------------------------------
EDIT:
After booting for first time into ubuntu after installing it the same graphical bug appeared, not allowing me to do anything with my new OS, not even upgrading my Nvidia drivers.
So after a bit more research this allowed me to boot into Ubuntu with my Motherboard's GPU.
As for upgrading my drivers this guide helped a lot.


How to install nVidia GeForce GTX 1050 Ti drivers for Ubuntu 18.04.03 LTS on Acer Predator Helios 300 laptop

How to install Ubuntu on Acer Predator Helios 300 laptop including installation of nVidia drivers (Only Ubuntu, no dual-boot instructions sorry.)

Boot into windows, download all bios updates from Acer's website, install all of them and reboot into Windows again to ensure that updates have successfully installed. Note down the Windows serial key somewhere safe in case if you wish to reinstall Windows or virtualize it inside Ubuntu!

First of all, access UEFI settings by pressing F2 key at bootup (This machine has the ugliest UEFI user interface I have ever seen. It looks almost like 10 year old BIOS) and open 'Security' tab. Here set an 'Supervisor' password.
Then open 'Boot' tab and disable 'Secure boot'. (If 'Secure boot option is still disabled, save settings and reboot to UEFI settings again)
Then open 'Main' tab and change the' Touchpad' preference from 'Advanced' to 'Basic' (as shown in the image). Also set 'SATA Mode' to 'AHCI' from 'RST with Optane'. (You can change this later.)
Insert Ubuntu installation USB -> save UEFI settings and reboot -> Press F12 as Predator logo appears to go to boot disk selection (or F2 and then change boot order from UEFI settings) -> choose Ubuntu installation USB -> boot to Ubuntu GRUB screen -> select 'Try Ubuntu without installing' -> press 'e' key and set 'nomodeset' option in kernel option -> press F10 to boot into live Ubuntu.
Open 'Disks' utility and format the SSD completely. Choose 'Overwrite everything with zeros (slow)) option and GPT partitioning option.
Now install Ubuntu as usual (But remember to select 'Download updates' and 'third party packages' options)
Reboot freshly installed Ubuntu by again setting 'nomodset' in kernel options as before.
After logging in, update and upgrade the system immediately
Edit /etc/default/grub and set the nomodeset kernel option by adding it to the line beginning GRUB_CMDLINE_LINUX_DEFAULT, for example:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Run sudo update-grub and reboot (DON'T GO FOR INSTALLING nVidia DRIVERS YET! THIS IS VERY IMPORTANT!)
After logging into updated system, open a terminal and add the following PPA (Yeah, this is mandatory if you want your nVidia card to work properly.)

sudo add-apt-repository ppa:aplattner/ppa
sudo add-apt-repository ppa:graphics-drivers/ppa

Then update and upgrade using sudo apt update && sudo apt upgrade.
Find your kernel version using uname -r command.
Now install xorg xorg-hwe-$(uname-r) linux-source-$(uname -r) linux-headers-$(uname -r) libvdpau binutils make gcc dkms and REBOOT.
After logging in, open up Software Centre and open Software Sources from its preferences.
Go to Additional hardware tab and let the drivers list load. Select the most recent driver and click Apply. Wait till the nVidia driver installs (DON'T OPEN ANY APPLICATION DURING INSTALLATION!). Reboot after installation of nVidia driver is complete.

Now do the following if you want to be able to select your preferred GPU (intel or nVidia) through prime-select command.

I've taken these instructions from this devtalk.nvidia.com article

(Look for comment by user 'generix' on this page. A big THANK YOU to him/her!) --

Please delete /etc/X11/xorg.conf and modify /usr/share/X11/xorg.conf.d/10-amdgpu.conf

replacing only

Driver "amdgpu"

with

Driver "modesetting"

Please add

Option "PrimaryGPU" "Yes"

inside the 'OutputClass' of /usr/share/X11/xorg.conf.d/10-nvidia.conf

Then create two files optimus.desktop in /etc/xdg/autostart/ and /usr/share/gdm/greeter/autostart/ containing

[Desktop Entry]
Type=Application
Name=Optimus
Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto"
NoDisplay=true
X-GNOME-Autostart-Phase=DisplayServer

This should enable the nvidia profile on Ubuntu.

Creating an /etc/X11/xorg.conf just containing -

Section "ServerLayout"
  Identifier "layout"
  Option "AllowNVIDIAGPUScreens"
EndSection

Then applications can be started using nVidia as GPU by running --

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia  *name_of_the_application*

I HOPE THIS HELPS PEOPLE WISHING TO INSTALL AND USE LINUX ON THIS LAPTOP.


Will an update to Chrubuntu damage Chrome OS?

Updating Chrubuntu will not harm the ChromeOS
(Updating the kernel from a Crouton based install will mess everything up)
Chrubuntu installs Ubuntu in a separate partition, much like a dual-boot setup that has Windows and Ubuntu in different partitions. So, updating Ubuntu won't do anything to the ChromeOS and vice versa.
However, the Chrubuntu script tweaks the standard Ubuntu install to work with the Chromebook/Chromebox hardware. For example, touchpad of the Acer C720 Chromebook is not recognized in the default Ubuntu installation. The Chrubuntu script fixes that. A kernel update or an upgrade to 14.04 will change the Ubuntu kernel (but not the ChromeOS kernel in a different partition). This will undo the tweaks made by the Chrubuntu installation script. I don't know how this will affect Toshiba Chromebook 2.
Note: This answer does not apply to Crouton based installation. Crouton uses the ChromeOS kernel, and is not a real Ubuntu installation. Any attempt to update the ChromeOS kernel with an Ubuntu kernel will probably break both the Crouton as well as the ChromeOS installations.
Hope this helps


E:unable to locate package libgnome-desktop-2-17:i386

You can find Ubuntu packages from previous releases here:

http://www.ubuntuupdates.org/package_metas/list?name=libgnome-desktop

You may also need to install gdebi, so that you can install any .deb files you download from the site, easily.


After the upgrade to 13.10 I only see social media results in the finder

In the dash, there's a button on the top-right corner that says "Filter results." Click on it to check if perhaps your results had been filtered somehow.


HP Pavilion M7 laptop - keyboard not working

Never mind. I gave up trying and went back to the last working installation, open SUSE 13.1, where the laptop's keyboard works (and worked before). Seems that this laptop is condemned to use it until it dies. Will never ever buy anything made by HP.


What happens if no destination is defined after > (redirection)?

Answer is simple: You got syntax error, output is not redirected without destination


I to am having what seems to be the same issue, and have been having it since the first time grub 2 was implemented. no mater if I run sudo update-grub2/sudo update-grub or use grub customizer to make the changes, no matter what i do they always only update the grub.cfg.new file and not the grub.cfg file, as the last edited date shows.

I read somewhere that GRUB 2 does not deal well with empty entries

https://answers.launchpad.net/grub-customizer/+question/175491

I try to stick it out ever new release and just find myself going back to Grub 1 as it's tried true and just works for my needs
.
I understand that GRUB 2 is the future and more powerful and then its legacy version, and it really is at least on paper but as far as I am concerned at the present is not ready for prime time. Sorry to not have a fix for you. Just wanted to say you are not alone.

I'll just wait till all the kinks are worked out.


How To: Install Proteus from Humble Indie Bundle Depends: proteus (= 1.1-0ubuntu3)

If you're on 64-bit, the libgdiplus:i386 conflicts with libgdiplus, and removing that tries to uninstall a whole pile of stuff you may want, like banshee.

If you're not, then you can open up a terminal (Ctrl+Alt+T) and run sudo apt-get -f install and it'll fix up the dependencies.


Rest (Other Than Root) of partition is not showing

If you don't want a separate /home partition Easiest

First: Reboot your computer using the Live USB/DVD/CD

This is the way you have installed Ubuntu. Use the same Live USB/DVD you had used before to boot your computer. Choose the "Try Ubuntu" option. Do not choose Install Ubuntu!

Second" Start Gparted

Click on the Dash, the gray Ubuntu icon on the top of the Launcher
on the left margin of the desktop.
Type gparted
Click on the Gparted icon that shows up

Third: Make sure the main window is showing your hard drive you want to adjust.

Gparted should show the two partitions you created and the free space.

Fourth: Move and resize

Move the Swap partition to the very end at right side by dragging
it, if needed.
Drag the right edge of the / partition as close to the Swap
partition as it would go. There may be a small gap of 1MB or so in
between. This is normal.

Fifth: Apply

Verify again that you are editing the correct partition and not the
Live USB or some other hard drive.
Click the Apply button in Gparted to actually do the work.

Wait till everything completes this is very important. If you stop the process in between your computer will not boot and you will have to install Ubuntu again.

Finally: Reboot

When prompted remove the LiveUSB/DVD and boot Ubuntu normally from the hard drive.

If you want a separate /home partition

Follow the first three steps as before. That is:

First: Reboot your computer using the Live USB/DVD/CD

Second" Start Gparted

Third: Make sure the main window is showing your hard drive you want to adjust.

Fourth: Move swap to the end

**Create a new partition in the unallocated space of the format ext4. Verify and write down the device name of this partition. It should be something like sda3. The actual name may be different.

Fifth: Apply

Verify again that you are editing the correct partition and not the
Live USB or some other hard drive.
Click the Apply button in Gparted to actually do the work.

Wait till everything completes this is very important. If you stop the process in between your computer will not boot and you will have to install Ubuntu again.

Sixth: Reboot

When prompted remove the LiveUSB/DVD and boot Ubuntu normally from the hard drive.

Seventh: Open a terminal by pressing Ctrl+Alt+T

Get the UUID of the new partition by entering

sudo blkid

in the terminal.

Now you just need to take note (copy & paste into a text-file) the uuid of the partition that you have set-up ready to be the new /home partition.

Eighth: Setup fstab

Your fstab is a file used to tell Ubuntu what partitions to mount at boot. The following commands will duplicate your current fstab, append the year-month-day to the end of the file name, compare the two files and open the original for editing.

Duplicate your fstab file:

sudo cp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)
Compare the two files to confirm the backup matches the original:

cmp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)
Open the original fstab in a text editor:

gksu gedit /etc/fstab

and add these lines into it

# (identifier)  (location, eg sda5)   (format, eg ext3 or ext4)      (some settings)
UUID=????????   /media/home    ext4          defaults       0       2

and replace the "????????" with the UUID number of the intended /home partition.

Save and Close the fstab file

then type the following command:

sudo mkdir /media/home

This command will create a new directory, later used for temporarily mounting the new partition. At the end of the procedure this directory can be removed.

Now you can restart your machine or instead of rebooting you might prefer to just re-load the updated fstab

sudo mount -a

Either should have mounted the new partition as /media/home. We will edit the fstab again later so this arrangement of the partition is only temporary.

Nineth: Copy your original home to the new home

Next we will copy all files, directories and sub-directories from your current /home directory into the new partition:

sudo rsync -aXS --exclude='/*/.gvfs' /home/. /media/home/.

The --exclude='/*/.gvfs' prevents rsync from complaining about not being able to copy .gvfs, but I believe it is optional. Even if rsync complains, it will copy everything else anyway. (See here for discussion on this)

Tenth: Preparing fstab for the switch

Modify the fstab again to point to the new partition and mount it as /home. So again on a command-line

gksu gedit /etc/fstab

and now edit the lines you added earlier, changing the "/media/home" part to simply say "/home" so that it looks like this:

# (identifier)  (location, eg sda5)   (format, eg ext3 or ext4)      (some settings)
UUID=????????   /home    ext4          defaults       0       2

Then, press Save, close the file but don't reboot just yet.

Eleventh: Moving /home into /old_home (to be safe)

In the terminal enter the command:

cd / && sudo mv /home /old_home && sudo mkdir /home

This will move the current home to old_home and create a new folder called /home to be used as the mount point of the home partition.

Finally: Mount the new home partition by entering

sudo mount -a

there is no need to reboot!

When you are sure everything is fine, you can delete the /old_home folder:

Deleting the old Home
You can delete your old home directory with:

cd /
sudo rm -r /old_home

Be careful with the above command as mistyping it could result in the deletion of other files and directories.

See https://help.ubuntu.com/community/Partitioning/Home/Moving for more details.

Hope this helps


Dual displays not working properly, getting only low resolution

Try (re)installing your Nvidia drivers:

sudo apt-get purge nvidia*
sudo apt-get install nvidia-current
sudo reboot

I hope this helps.


I've got it solved. I found the file which turns on hibernate is gone, but in most places the hibernate option is still there. So I added it back. Now the battery is back to normal and showing 1%. I guess even though I've had the AC on most of the time for the past few hours, since it recognized the battery 100%, it's not charging it. So the voltage is low and makes everything acts like there's no battery.


Unable to locate package python-software-properties-common

The package that you are trying to install is named software-properties-common, not python-software-properties-common. To install software-properties-common in all currently supported versions of Ubuntu open the terminal and type:

sudo apt install software-properties-common

software-properties-common provides an abstraction of the used apt repositories. It allows you to easily manage your distribution and independent software vendor software sources.


connection refused on port 4000 in ubuntu14.04?

As long as nothing is listening to the port in question, the OS will send a reply that it doesn't accept traffic to that port.

You can use netcat to listen also. netcat -l -p 4000 will make netcat listen to port 4000 on all interfaces.

edit: forgot -p...


multiple file rename based on modification date

Having done something like this before, I can assure you it's easy to make a typo that will give you an even larger problem that you already have.   Use this information at your own risk.

At bash prompt;

i=0 ; for f in `ls -rt` ; do i=$(expr $i + 1); mv $f $i.txt; done

i acts as a counter
ls -rt lists files in reverse order by modification time - if you've copied, moved or otherwise modified the files, this may not give you the file ordering you expect. Check it carefully by running ls -rt as a separate command and check it - twice.
for f inls -rt; do iterates of the list of files with 'f' taking on each file name
i=$(expr $i + 1) increments the counter
mv $f $i.txt renames the file using the counter, and adding the .txt extension
done closes the loop
note that commands in the loop are separated by semicolons, so if you add another command, follow it with a semicolon


Installing rbenv apt-get vs git checkout

It depends on whether you value being on the bleeding edge or stability. If you're using rbenv to manage an existing codebase running on a lot of production servers, apt-get is a good choice. If you want to be sure you can run the latest version of Ruby, git clone is probably the best choice.


Error: no such partition after installing Ubuntu 12.04

Your Ubuntu partition is far (>100GB) from the start of the disk. You may need a separate /boot partition at the start of your disk. See https://help.ubuntu.com/community/InstallingUbuntuOnBigDisk


Adding one variable into multiple parts of an alias? alias nd='mkdir $1' works but cannot add anything after, why?

To make this work, you have to use a temporary function:

alias moveit='f() { mkdir "$1" && find -name "*$1*" -type f -exec mv -t "$1" {} +; unset -f f; }; f'

It works as expected. For example moveit pdf moves all files that contain the string pdf to a newly created directory pdf.

The definition part f() { mkdir "$1" && find -name "*$1*" -type f -exec mv -t "$1" {} +; unset -f f; }; defines the function and the last part f calls this function.
The last part of the function definition unset -f f;

  removes the function definition as the alias is executed so it doesn't hang around afterwards.

For further information, have a look at this "How to pass parameters to an alias?" question.


Something keeps enabling Gnome Night Light

If you are using the "Night Light Slider" extension it could be similar to this problem:

Night Light settings not persistent

The answer posted there states:

  In your browser open 'Gnome Shell Extensions'. Select 'Installed
  extensions' and open 'Night Light Slider' configuration. Turn off
  'Enable always'.


It ended up being so simple :
I was editing the registry through regedit, and there you only need
to put it within quotes without the back-slash.

Just put quotes with out the \ character and then it worked.

Example :

eog "%1"


The program you are looking for is called gparted.  You will need to boot the live cd and launch it from there.


How to get WIFI at my home for an Ipod use?

The easiest solution would be to get a wireless router, share your internet with other computers on whichever connection you have from the pc to the router, and then connect your ipod to your router via wifi.


apt-get update command not working in Ubuntu 20.04.2 LTS

You have to comment out the problematic line in /etc/apt/sources.list with cosmic release and then retry with
sudo apt-get update


Hmm... the answer might depend a lot on the modem type, all are "real" ;-)

Here is a google search for "Fastrack" modem manuals,
https://www.google.se/?gfe_rd=cr&safe=off#q=fastrack+modem+manual&safe=off

If you look through them you eventually find "AT+CSQ" in there, The prepended "+" followed by "CSQ" is short for "Cellular, Signal Quality" (edit: see comment below).
A modem of this type may me accessed through a serial port where you 'type' AT-commands and get them executed. Typing just "AT" followed by ENTER would create a response either "OK" or a number corresponding to it. (This could just as well be software 'typing' it).

The manuals that come up for the huawei doesn't suggest there is an "AT-command" interface available:
https://www.google.se/?gfe_rd=cr&safe=off#q=huawei%20b932%20manual&safe=off


Ubuntu PPA mainline kernel update - is it safe?

"Is safe to update kernel from PPA mainline?"
The Mainline builds wiki clearly states that "These kernels are not supported and are not appropriate for production use."
It also states than "The mainline kernels builds are produced for debugging purposes and therefore come with no support. Use them at your own risk."
Mainline builds also don't include the Ubuntu patches normally applied to the kernel in the Ubuntu repository and alsi if there is a minimal or important security update you won't get it as you manually installed the .deb files.
Uninstalling upstream kernels
The upstream kernels have their own ABI namespace, so they install side by side with the stock Ubuntu kernels (each kernel has a separate directory under /lib/modules/VERSION for example). This means that you can keep several mainline and Ubuntu stock kernels installed at the same time and select the one you need from the GRUB boot menu.
If you would like to uninstall an upstream kernel anyway, execute the following to find the exact name of the kernel packages you want to uninstall:
dpkg -l | grep "linux-[a-z]*-"
and then execute the following to uninstall them:
sudo apt-get remove KERNEL_PACKAGES_TO_REMOVE
Remember that several packages can belong to one kernel version: common headers, architecture specific headers and the architecture specific image.
Also, once the mainline packages are removed, one may still see entries for these via the above dpkg command. To purge these entries execute at a terminal:
sudo dpkg --purge ENTRY


How do I install ubuntu on an Acer Aspire 10?

You'll need a USB drive (4GB will do nicely) and a program to create a bootable USB stick from an iso (I recommend Rufus).

Download the Ubuntu .iso here

Once downloaded, run Rufus with your USB drive plugged in. Select the USB drive in the Device menu, click on the little disk image button next to the Create a bootable disk using and select the iso you just downloaded. Then click start. It will ask you if you really want to format the drive, which you need to do, so make sure there's no important info on it. Rufus will take about 7 minutes to complete (on my system anyway).

Shut down your Aspire, plug in the USB drive, turn the Aspire back on, and boot off of the USB. Generally you can enter the boot menu by hitting F12 while the computer is starting. Edit: Here's a link to how to enter the boot menu on an Acer

Once the USB loads, click any button, then select the language. You now have several options

You can either Install right away or Try Ubuntu and then install.
Once you decide to install, Ubuntu will give you the instructions you need.

You'll have to partition your Hard drive in order to install Ubuntu, but Ubuntu should tell you how.


For those who will come here in the future, The last BIOS version from ASUS (1004) fixed the problem.
I was needed to execute modprobe iwlwifi after updating the BIOS.


How can I install GRUB2 without installing ubuntu?

I finally got this figured out, thank you all for the links and help in this stupid problem lol. I would love if there was a "grub only" iso that you could install, but sadly there is not.
SOLUTION:

Install Windows onto HDD1, unplug HDD1, install windows HDD2.
Plug in HDD1
Make a 10GB partition on any of the drives
Install Ubuntu to that partition
Make sure Grub is installed and working (you can boot back and forth between windows installs)
Boot from live linux USB (choose "try ubuntu")
Mount the partition that has the full ubuntu installation on it.
Using thunar, delete everything, EXCEPT - /boot and /etc/grub*
Use gparted to shrink the ubuntu partition to 100MB
Use gparted to extend the windows installed partition
Sadly, windows won't automatically see this partition change, so I ran chkdsk on it and that fixed the incorrect partition sizes being reported. I think there is another way to refresh that tho.

We now have GRUB as my bootloader showing both versions of windows allowing me to pick between each either at a full power off (shut down) or after a hibernate. I am finally happy lol.
NOTE: Grub makes it's own partition to hold the UEFI boot stuff in it. This partition is what shows up in the BIOS boot menu of your device.
PS: You can take a backup of the drive and if ever need to redo the process, you can simply make a 100MB partition and copy the backup back, then use the live usb to reinstall GRUB.
EDIT: have not tested, but diskpart > rescan drives should update the partitions without doing a full ckdsk


Open LDAP (slapd) unable to add olcTLSCertificateFile and olcTLSCertificateKeyFile to cn=config

I solved it with the following ldif

dn: cn=config
add: olcTLSCACertificateFile
olcTLSCACertificateFile: /etc/ldap/ssl/cacert.pem
-
add: olcTLSCertificateFile
olcTLSCertificateFile: /etc/ldap/ssl/slapd_cert.pem
-
add: olcTLSCertificateKeyFile
olcTLSCertificateKeyFile: /etc/ldap/ssl/slapd_key.pem

Notice that I only have a dn: on the first entry I removed it form the subsequent attributes. In fact i had to use replace: on the olcTLSCACertificateFile because it was already present.


Note that you don’t need to put root and home on separate partitions, and the size depends on how much data you will store on your home as well as total space available on your hard disk. For example I myself prefer storing data on Ubuntu because on journaling file types (ex2, ex3, ex4) my data won’t get fragmented or even virus-infected and it’ll be faster to access them.

So let us know, if possible, how much space you have and where you will store your data more: Windows or Ubuntu.

For swap, you can visit this SwapFAQ; if you have much space, 3 GiB is highly recommended.


Apparently I am not the only one with this problem, this answer helped me solve the problem.

To be precise, I had to comment out the following two lines from /etc/pam.d/lightdm

auth optional pam_kwallet.so
auth optional pam_kwallet5.so


Why is there no Apparmor profile for the terminal?

Terminal doesn't need a profile. By default, terminal doesn't do anything. Bash (by default) is the command that lets you access a shell (horridly worded, but accurate enough for this answer). From there, you can run other programs. So any profile against terminal would be totally useless (as it doesn't access anything other then it's preference files).

Keep in mind that AppArmor is basically a supplement to already existing security. If you never want terminal to access a file you can create your own profile and set it up.

As you can see in cat /etc/apparmor.d/usr.sbin.tcpdump tcpdump (a command that you would run from bash, inside a terminal) has a profile. This is how you would "secure" commands.

Also, in cat /etc/apparmor.d/abstractions/bash you will see that bash has a profile. Thus "terminal" is protected.


What is the cost for becoming a reseller partner of Ubuntu?

You are best contacting Canonical and asking these questions direct, using the following form:

http://www.ubuntu.com/partners/contact-us


Installer crashes when installing Ubuntu 18.04.5 on vmware workstation 16

This just in.  Seems that the 18.04.5 install iso attempts to load the 20.07.1 installer automagically.  This, of course is a recipe for a crash.  In order to install, I had to turn the network adapter off so that it could not update the installer.  Smells like a bug to me.


How to delete multiple folders from multiple Directories from command line

I’d use find with bash Brace Expansion as follows:

find /home/{user1,user2}/{Desktop,Downloads,Documents}/ -mindepth 1 ! -name ".*"

This finds every non-hidden (! -name ".*") file and directory under the specified directories (-mindepth 1). If you want to delete the matching files, simply add the -delete option to the end of the command line.

If you need to use a shell without the brace expansion feature, just list the directories to be emptied:

find /home/user1/Desktop/ /home/user1/Downloads/ /home/user2/Desktop/ /home/user2/Documents/ -mindepth 1 ! -name ".*"


You can give try with script:

#!/bin/bash
[ ! -f /usr/share/fonts/truetype/msttcorefonts/tahoma.ttf -o ! -f /usr/share/fonts/truetype/msttcorefonts/tahomabd.ttf ] &&
wget https://sourceforge.net/projects/corefonts/files/OldFiles/IELPKTH.CAB &&
cabextract -F 'tahoma*ttf' IELPKTH.CAB &&
mkdir -p /usr/share/fonts/truetype/msttcorefonts/ &&
mv -f tahoma*ttf /usr/share/fonts/truetype/msttcorefonts/ &&
chmod 644 /usr/share/fonts/truetype/msttcorefonts/tahoma* &&
fc-cache -v &&
rm -f IELPKTH.CAB &&
echo "Installed Tahoma"


How can I stop wicd from starting at boot time?

Boot into Ubuntu 12.04 LTS, After closing WICD, go to Unity Menu, and search `Startup Applications, then click on Startup applications.

Then when you find wicd remove it from the list.

Then restart your computer to see if this thing still happens or not.


Simply:
No, unless you change the alignment of your screens (System settings > "screens", drag the left screen up), but then you would have the same problem at the bottom.
In Unity (/Compiz), both screens together are seen as one big desktop/viewport. From that point of view, it would be undesirable behavior as well; the mouse would either make a weird jump down, or disappear to nowhere, and be invisible unless you move it down.
The first option would be inconsistent behavior in combination with possible windows, spread over two screens, the disadvantage of second option needs no further explanation I guess.
However
Like everything in computer life, it can be scripted, but again, I would not want that, for the reasons above.
Edit
From your comments, I understand that you feel the mouse should (on transition) move to a vertical position, relatively equal to the position on the screen it came from. That is exactly the misunderstanding, since windows (and anything else on the desktop) have an absolute size and position (in px). Windows can even be spread over two screens. You can not combine those two and have a consistent desktop.


Firewall blocking screen sharing with 20.04 desktop ubuntu installation

To test if its a firewall problem try:
sudo ufw disable

This will disable the whole firewall. Now you should be able to connect. If this worked then just reenable the firewall with
sudo ufw enable

Then just add a firewall rule with:
sudo ufw allow from any to any port 5900 proto tcp

Worked for me. Source: https://linuxconfig.org/remote-desktop-sharing-on-ubuntu-20-04-focal-fossa


The last beagle version was in 10.4 and is no longer in active development. You could try the Lucid Lynx (10.04) package. I have seen tracker and cardapio suggested as an alternative.

From the descriptions I think Dash in 11.04 is aiming to be sort of the same thing and more. It is not yet as good as Beagle I admit.


The command you are looking for is:

sudo apt-get upgrade

this will upgrade all the packages installed in your system to the newest version.

Don't try sudo apt-get dist-upgrade unless you know what you are doing as it can install or remove packages while upgrading.

-- Edit bz --

To upgrade you first run

sudo apt-get update

This updates the list of available packages.

You then run

sudo apt-get upgrade

or

sudo apt-get dist-upgrade

For additional information see the man page

https://help.ubuntu.com/community/AptGet/Howto


Error running make - array type has incomplete element type

The error points line 2128 of bow/libbow.h

extern struct argp_child bow_argp_children[];

It means that struct argp_child is not defined.

I noticed that in line 1346 there is a forward declaration of the structure.

struct argp_child;      /* forward declare this type */

The full declaration of the structure is in line 245 of argp/argp.h

To resolve this issue you can either

Use include of argp.h in libbow.h

i.e #include "../argp/argp.h"
Copy struct argp_child definition in libbow.h (not recommended)

An other thought is that you might compiling array.c from wrong directory and -Ibow -I. -I./argp does not point to the correct directories.


"No init found" error after upgrading to 14.04

Try the following:

Boot from the Ubuntu Live CD and open a Terminal

Run sudo fdisk -l to get the device name. You'll get something like:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: **********

Device Boot Start End Blocks Id System
/dev/sda1 * 1 30238 242886703+ 83 Linux
/dev/sda2 30239 30401 1309297+ 5 Extended
/dev/sda5 30239 30401 1309266 82 Linux swap / Solaris

In this case, Ubuntu is installed in /dev/sda1. So type:

sudo fsck /dev/sda1

Restart the system and boot normally.


Why are packages listed as "installed", "installed,automatic", or "installed,local"?

Checking my system using:

apt list --installed | awk -F/ '/local]/{print $1}' | xargs apt-cache policy

Every package marked local has an installed version which is not available in the repositories. For example, I installed folly using checkinstall. In apt list --installed:

folly/now 57.0-1 amd64 [installed,local]

And for apt-cache policy:

folly:
  Installed: 57.0-1
  Candidate: 57.0-1
  Version table:
 *** 57.0-1 100
        100 /var/lib/dpkg/status

You can verify this from the source. apt list calls apt-private/private-list.cc's DoList() function, which in turn ends up calling apt-private/private-output.cc's ListSingleVersion(), where you can see:

 if (state.Upgradable() && state.CandidateVer != NULL)
    strprintf(StatusStr, _("[installed,upgradable to: %s]"),
      CandidateVerStr.c_str());
 else if (V.Downloadable() == false)
    StatusStr = _("[installed,local]");
 else if(V.Automatic() == true && state.Garbage == true)
    StatusStr = _("[installed,auto-removable]");
 else if ((state.Flags & pkgCache::Flag::Auto) == pkgCache::Flag::Auto)
    StatusStr = _("[installed,automatic]");
 else
    StatusStr = _("[installed]");


Trying to run executable (application/x-executable) but to no avail

I ran into this same problem.  I'm new to Ubuntu and Linux, but I found that when I right clicked and selected the properties for the file, and clicked on the "Permissions" tab, the "execute" option at the bottom was NOT selected for me.  Checking this box resolved my issue.


Changing the filesystem of the root partition after install

I think you will find a fresh install is the most hassle free way to do this. Bear in mind GRUB cannot currently boot from btrfs so you will need an additional ext3/4 partition for /boot.


& is displayed in some titles in 'settings' windows

So the reason for that "broken" names was the fact the names were messed up in following way:
e.g.: Mouse &amp; Touchpad was stored as this: Mouse &amp;amp; Touchpad which visually represents Mouse &amp; Touchpad.

Solution: manually edit names and remove amp; part with help of menu editor.


No welcome sound on booting ubuntu 12.04

The welcome sound was stopped in 12.04, the last distro to include it was 11.10. to get it back visit here How to add the old startup sound (not login sound)?


Files in "/usr/lib/debug/usr/lib/" taking a lot of space, how to free it?

You should be able to use dpkg -S (or equivalently dpkg-query -S) to identify the package to which a file belongs

dpkg -S /usr/lib/debug/usr/lib/x86_64-linux-gnu/libwebkit2gtk-3.0.so.25.10.11

In this case, it seems to belong to libwebkit2gtk-3.0-25-dbg

AFAIK -dbg packages are only required if you need to debug into the corresponding library functions: if you are not developing / debugging webkit2gtk-3.0 applications I don't see why you shouldn't remove them. If in doubt, you can always run the package manager in 'dry run' mode to see if any important dependent packages are going to be removed as a result

sudo apt-get remove --dry-run libwebkit2gtk-3.0-25-dbg


Is it possible to add custom items to System Settings window?

Add custom App entries to System Settings

To add a custom app to System Settings (Gnome Control Center), find its desktop entry file - /usr/share/applications/{appname}.desktop and edit it to ensure that the following entries are present:

Categories=Settings;X-GNOME-Settings-Panel;xxxxx;
X-GNOME-Settings-Panel={appname}

Replace {appname} with the name of the App you're adding to System Settings.
xxxxx decides the Section where your app is displayed. Replace xxxxx with one of these possible options:
X-GNOME-PersonalSettings    -   Personal Section
HardwareSettings            -   Hardware Section (Note that prefix X-GNOME is not used)
X-GNOME-SystemSettings      -   System Section

After the modifications run this command:

sudo update-desktop-database

This was tried and tested on Ubuntu 12.04 LTS12.04 with gnome-control-center version 3.4.2-0ubuntu0.12

Things to Note:

System Settings don't recognise desktop files in
~/.local/share/applications and as a result,it's not possible to
add Apps to System Settings for one user alone.
As noted by Manish Sinha in this Answer, Ubuntu uses a
gnome-control-center with Ubuntu specific patches which enables the
addition of custom entries. As a result,this method is Ubuntu specific and won't     work on vanilla gnome-control-center used by other distros.


Can't assign function result to a variable

The underlying issue is that OS=${getos} expects getos to be a variable, not a function (it is a parameter expansion rather than a command substitution) - they're effectively different namespaces:

$ function foo() { echo foo; }
$ foo
foo
$ echo ${foo}

$

(i.e. variable foo is empty); whereas

$ foo=bar
$
$ foo
foo
$ echo ${foo}
bar

If you want OS to be a synonym for getos, you can use an alias:

alias OS='getos'

(although if you're using this in a script, be aware that alias expansion is only enabled in by default in interactive shells).

TL;DR: parentheses and braces are NOT interchangeable


Displaying unicode strikethrough in gnome-terminal

You need a sequences of Escape characters:

echo -e "\e[9mI\e[0m"

or using printf

printf "\e[9m%s\e[0m\n" "I"

Try this:

echo -e "\e[9m"

Then type some text and reset with:

echo -e "\e[0m"

Source


Need help to interpret output of free command

It says, your swap area is 16891 MBs. You allocated 5289 MBs, and there are 11602 MBs free swap area. Total = Used + Free

Shared: Memory used (mostly) by tmpfs (Shmem in /proc/meminfo)

Buffers: Memory used by kernel buffers (Buffers in /proc/meminfo)

Cache: Memory used by the page cache and slabs (Cached and SReclaimable
              in /proc/meminfo)

Available: Estimation  of  how  much  memory  is available for starting new
              applications, without swapping. Unlike the data provided by  the
              cache  or  free fields, this field takes into account page cache
              and also that not all reclaimable memory slabs will be reclaimed
              due to items being in use.

You can read more with command man free

You have 11GB free swap area, not memory, so you should see 5289 MB swap usage.
Memory available for new application is 611 MBs, as you can see under available column.
No, only available column shows available memory for applications.
See previous answer

Edit: Found a topic about recent change in free command. Can be useful.


Back up a 12.04 system, then upgrade to 13.04 using a liveusb, then restore backup to regain files. Does that work?

Short answer is no! Don't rely on Deja Dup. You are better off saving all files manually and then putting them back after your install. Here's what happened to me at the weekend:

I did a full deja dup back up on 12.04, selecting a tried and trusted external HD as backup location. No encryption on the back up. Then I did a clean install of 13.04.
My first action after successful install was to restore from deja dup. No can do! It says "no backups to restore".

A look at the relevant folder in the drive shows it contains 1007 volumes of difftar.gz archived files but deja dup, which created these, does not recognise them.

I have been trying to get to the data through the command terminal but all commands are met with responses like "Command line error: Expected 2 args, got 0"

I may be able to get at this data by manual unarchiving each of the 1007 volumes but imagine the time and hassle....

Perhaps I have done something fundamentally wrong (i.e. just followed the deja dup directions). If anyone has advice it would be much appreciated.


ssh login asking for password and returning Permission denied Please try again

I am executing ssh username@ip

Are you sure you have an user account username on the server ip? Even if user does not exist system will ask for password and response as you quoted.

If you have the user, after another ssh username@ip login attempt, please on the sshd server ip execute command tail /var/log/auth.log
and publish the output.


Login pages stuck loading on Lubuntu (wifi-only behavior)

I found the solution which is detailed in this very old
ubuntu bug report.

That is, the ath5k module needs to be loaded with the nohwcrypt option. The following lines achieve the desired result:

sudo modprobe ath5k nohwcrypt
sudo sh -c "echo 'options ath5k nohwcrypt' >/etc/modprobe.d/custom-wireless.conf"

A few additional explanations can be found in this wiki.


Simply specify the hard disk as the "file" qemu should use, for example /dev/sdb or /dev/disk/by-uuid/some-uuid-here.  Of course, you must make sure nothing else is using that disk other than this vm or bad things (TM) will happen.


Is it possible to key-bind the pasting of the x-clipboard? How?

Run this command to install the necessary X utilities: sudo apt-get
install xsel xvkbd
Navigate to the Shortcuts section of the Keyboard Settings in System
Settings.
Create a new custom shortcut. Put whatever you want in the Name
field.
In the Command field, put this: sh -c 'xsel | xvkbd -xsendevent
-file -'.
Click Apply.
Click on the far right of the new row you created (where it says Disabled) and set the new keyboard shortcut.
Try it out!


A generic method to type a character, which is not present with the keyboard layout you are using, is to type it using its code points.

So for the example you mentioned:

Ctrl+Shift+U followed by 0142 followed by Enter => ł


How to enable 256+ cores in Yakkety Server

The number of cpus has recently been increases to 512 in the Yakkety kernel, and will land in kernel release Ubuntu-4.8.0-34.35:

commit 4cc43dc6b3bf9ea5b9ed6d91af47dbe137a71cd9
Author: Luis Henriques <luis.henriques@canonical.com>
Date:   Thu Dec 8 10:36:14 2016 +0000

    UBUNTU: [Config] Increase the NR_CPUS to 512 for amd64 to support systems with a large number of cores.

    BugLink: http://bugs.launchpad.net/bugs/1579205

    Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
    Acked-by: Colin Ian King <colin.king@canonical.com>
    Acked-by: Tim Gardner <tim.gardner@canonical.com>

So if you are not running that kernel, update and you should get this fix.


Can't Install Xubuntu to Asus eee PC 901

Well the problem is that your CPU doesn’t support 64bit OS. So you need to download the 32bit version instead.


Installing Spotify via 32 bit lubuntu, processor supports 64 bit. Is it possible to get it to work?

As mentioned in the comments, it's not possible to run a 64 bit binary on a 32 bit system. However, a 32 bit build is coming soon, most likely with the next public beta. So just hang on! ;-)


replace string in a file with another where both are saved in variables

Use perl instead. It has an interesting quotemeta feature in regular expressions where it will handle special characters like ., *, etc as plain characters

$ i=1.0  j=4.0
$ perl -pe "s/\Q$i/$j/g" text1.txt
0 0 -1 0
1 0 0 0
0 -1 0 0
1.5 0.0 4.0 1

It's documented here: http://perldoc.perl.org/functions/quotemeta.html


Is there a plain KDE version without all the KDE applications available for Ubuntu?

try sudo apt-get install --no-install-recommends kubuntu-desktop


This seems like a question you should ask someone officially at Canonical.
It would definitely look better if you need to list your sources for the bachelor thesis to have official corporate data rather than some answers you got on a forum, right?

Here's a link to the Canonical contact page. You'd propably want to write to their PR department first. http://www.canonical.com/about-canonical/contact


There is no such executable as update-manager-kde (though there is a package with such name).

The correct executable name for Kubuntu's update manager is now muon-updater.


Hard disk capacity discrepancy between enclosures

I would look for data from the manufacturer. Pending on what hardware / firmware is build into your enclosure it might just be old or that might just be the part that they saved money on.

It is not uncommon to get stuck at the 2 TB barrier.

So if you are lucky you can get a firmware update for the enclosure or it might just be that a different driver (I doubt it) exists.

In terms of "quick driver check" you might get yourself a knoppix and boot from that CD (www.knoppix.org) that is the best I have seen in terms of hardware recognition.

If knoppix sees the drive in the enclosure correctly that ther is a way your ubuntu can do that as well.


Try using system-config-samba. It is graphical and is in the software center. You could also get it by running this terminal command:

sudo apt-get install system-config-samba

UPDATE

for providing extra permission you can follow these steps:


Music folders don't have album covers as thumbnails

Very unfortunately, such functionality is not there in the standard Gnome Desktop anno 2020. You may try a tool Cover Thumbnailer, which is aimed to change icons for music folders to reflect the album art.


It appears to be the Neon icon pack by FRUiT:

This is the page I found for it:

https://www.gnome-look.org/content/show.php/Neon+Icon+theme+by+FRUiT?content=111035&PHPSESSID=6

It's quite an old icon pack, and I don't know how well it's going to work on a modern Ubuntu installation.

The linked site there seems to have been taken over by a scam site, but the creator of the theme has posted a link to a download in the comments:

http://ulozto.net/xSNavA51/neon-icons-by-fruit-0-2-tar-gz

Unfortunately, that link seems to be dead. However, after searching aroud a bit, I think I found the new location of that download service:

https://uloz.to/!Hm2rnzTA/neon-icons-by-fruit-0-2-tar-gz

I am currently downloading the pack and will host it on MEGA so as to provide a better, more permanent, link.

UPDATE: looks like there's actually a valid link under the "Files" tab:

http://www.mediafire.com/file/9psa8lz4f4wq949/neon-icons-by-FRUiT.tar.gz

(icon pack found using Google image search)


How do i install Epson 3050 Printer on Ubuntu 20.04

Download a amd64 deb printer driver from https://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
Copy it to your user home directory.
Run in a terminal

sudo apt install ./epson*.deb

Go to Settings -> Printers and add a new printer.


Using quad core, but only 1 CPU entry in `/proc/cpuinfo`? Is SMP running on my computer?

Enable ACPI features in your BIOS. If you turn this off your system will use 1 cpu.


Is it possible to merge casper-rw data with Ubuntu iso?

Possible - yes, easy no.

The best way would be to do a standard installation on your usb.

IMHO data on a casper-rw is not as reliable as a standard install.

Other options would be to add a data partition to you usb.

If you wanted to convert , you would have to remaster the iso, which requries a moderate amount of knowledge and time consuming. IMHO the graphical tools are not as reliable as the command line and/or the debian live scripts (debian live scripts are in the ubuntu repoitories).

A detailed description of how to remaster your iso is a bit long and detailed for this site, see

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

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

https://debian-live.alioth.debian.org/live-manual/stable/manual/html/live-manual.en.html

and ask a more specific question of you get stuck remastering the iso.


Trying to activate Netgear WNDA3100 N600 WiFi Dual Band Adapter

I know this an older post but here goes.

You have to use the windows driver provider with the device. It's a .inf and a .sys file. Use ndisgtk [ndiswrapper gui] on the .inf file and in some cases need a reboot. Should be working then. In my case to get it to connect o my WAP2 security router I had to run "ps auxwww" which for whatever reason decided to make it play nice. If you have an open wifi router you're connecting to or something that uses WEP security you should be fine.


In a “Save as … ” dialog, what's the quickest way to keyboard-navigate to “tmp” and to indiv. bookmarks in the “Places” side-pane of Nautilus?

this may still be optimized further, but just serendipitously discovered this which goes most (or even all) of the way:

if you start in the Name field, just use the Down arrow cursor key once, twice or thrice (even that will sometimes get you to the bookmarks in the places pane)
alternatively and additionally (which is my new discovery), you may (also) find using the Left arrow and Right arrow (note that F6 does sth similar) useful in switching from the directory-content-pane directly to  Bookmarks in the Places pane.

Edit

to skip mounting the drives "in between", using home and end in Places does seem to work... it still feels a bit clumsy (requiring Left arrow and Right arrow occasionally) though...


Choices of tools for graphical performance indications?

Ubuntu has a System Monitor that does this.

Press the Dash Home button (purple and white at the top left).
Type System Monitor
Click on the System Monitor Icon that appears.

There are various tabs for different kinds of statistics.


Ok... I got this now. What I did with chmod was good, what I did before in fstab was the issue. Now defaults in fstab solves the problem.

So, as a reminder for anybody struggeling:

chmod a+rwx /media/files

will do the trick!

If anybody as something to add about the rigorous permissions, I am happy to hear.


I found that GRUB became confused due to another connected HDD, with a partition marked as bootable without any bootloader on it. I have now disconnected this drive and everything works.


how to make the process of putting the output of a command in a variable a background process

What you did here was starting deluge-console status in a sub-shell and then putting the assignment to the output variable in the background with the & at the end of that line.
That is certainly not what you wanted: It waits until the deluge-console status command is finished (because that's what $(...) does) which might take a few seconds, then it does the one thing that is quick anyway (assigning the output of that command to the variable) in the background.


I solved it by starting Ubuntu in safe mode and then changed my Additional Driver to a Nvidia Driver.


Create a mountpoint directory for your hdd:

sudo mkdir /media/hdd2
Run sudo blkid, get the UUID of the /dev/sdZX partition and add it to /etc/fstab (make backup of fstab befor modifying it):
Add a line to /etc/fstab

UUID="XXXXXXXXXXXX"  /media/hdd2  ntfs-3g  permissions,defaults  0  2
Mount it to test:

mount -av

If you get an error like Failed to mount '/dev/sdZX': Operation not permitted The NTFS partition is in an unsafe state. it means a "non-complete" shutdown on this drive and you must run Windows on it...

Take ownership of the drive

sudo chown -R $USER:$USER /media/hdd2


Acer swift 3: microphone not working with Ubuntu 18.04

Press F4 key to see the Capture/Input controls. But you probably won't see them. Not yet.

Remember those "HDA Intel" and "ALC256". They will be important in your quest for answers.
You are not alone, check this: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1793410
This last post resumes it all:
https://forums.linuxmint.com/viewtopic.php?f=49&t=279424&start=47
Check preceding posts above for more details...

This kind of problem is usually solved by adding an option line at the end of /etc/modprobe.d/alsa-base.conf file. You will need to restart your computer to see the result. You could try adding options snd-hda-intel model=headset-mic at the end of /etc/modprobe.d/alsa-base.conf file. Or something else. There are lots of things to be tried with this file. Restart your computer for each test. You need to open the file as administrator to be able to make changes. Check my tutorial for more details:
Asus Eee Pc X101ch and Intel Atom: Fix The Speaker And Microphone!
You probably won't find the exact answer there but you can follow the method...

Did you find the right answer? Please share with us! But seemingly... there is no solution yet. Bonne chance!


I am not sure the cause of the issue, but I was able to work around it by using an older installation (14.04.1) and then upgrade that way...not sure why that worked. Had to enter the setup menu (push the down arrow as soon as you select the boot to USB option and a small white icon appears at the bottom) and then disable 2 options (hit english and then F6 to enter the options menu, turn off the nomodset and no lapic)


Why is natty-proposed suggesting an upgrade to a beta version of Firefox?

Firefox 5.0 is just the next regular security update for 4.0.1 users, scheduled for release on June 21st. However, because of the new release model for Firefox, we also need to update the Firefox translations at the same time (and we will do for all future Firefox security updates). This means that we also need to provide updated language-pack-xx-* packages with the Firefox 5.0 update.

In order to prepare for this, we are splitting Firefox translations out of the main language packs at the same time as the 5.0 release. This means that in the future, we will not need to respin all of the language packs for a Firefox security update (this incurs quite a significant QA penalty). Because of this packaging split and because the new language packs contain updated translations for all of your other applications (exported from Launchpad), they need to undergo extended testing in natty-proposed before we release them to everybody on June 21st. However, testing them also depends on the newly split-out Firefox translation packages existing in natty-proposed (else the package relationships will not be satisfiable for language pack testers).

We took the decision to upload the current beta to natty-proposed because if we wait for the release build before we start testing the language packs in natty-proposed, we will have to delay the next security update. Note that the current beta is actually more of a RC than a beta (this is the last planned beta build before the final release build, and is not likely to change between now and June 21st)

We aren't planning to publish the beta release to all users - it will be removed on June 21st when we publish the final 5.0 release to natty-security and natty-updates. Please remember that natty-proposed is an opt-in repository where we upload packages for testing stable release updates, before we publish them to all users.


/lib/libc.so.6: version `GLIBC_2.14' not found on a ubtuntu machine

Not sure how to solve this issue. I browsed the net and took a screenshot from my debian system. Maybe the following link could help you start solving your problem somehow.
Sorry,
https://askubuntu.com/a/64963/196781


How to update applications downloaded from internet and installed?

In those cases where you installed .deb Packages outside of any repositories located in /etc/apt/sources.list** you are in fact the one responsible for updating them.

Just keep an eye on new releases (I do so by subscribing to the project's blog's rss feed for example) and when a new version was released, you just repeat the steps you took on initial installation of the .deb package:

download the .deb from the project's website
install it by either

clicking on it in your webbrowser to install it using the software center
or by running sudo dpkg -i ~/Downloads/<filename>.deb

In some cases there is a PPA on launchpad which does provide community-provided packages and more or less regular updates. Though you really should double-check if the author of those packages has enough credibility to install their packages on your system.


Finding all directories with a certain string then changing permissions

I would use the find command:

find . -type d -name 'domain-*' -exec chmod 755 {} +

. specifies the path to search.
-type d makes this only apply to directories.
-name ... specifies the name of the directories this should apply to.
-exec ... {} + is the command that will be run for each collection of matchs.


I bet you forgot a the libsodium library:

checking for library containing sodium_init... no
configure: error: libsodium not found

Quoting installation guide:

  Install libsodium. There might be a pre-built binary package for your operating system already.

Unfortunally, there are not libsodium packages for Ubuntu. So, you should download, build and install libsodium as follows:

Download the newer tar archive from https://download.libsodium.org/libsodium/releases/ (you can also get the git repository from https://github.com/jedisct1/libsodium).  If you downloaded the tar.gz file, you should verify the hashsum:

$ dig +dnssec +short txt libsodium-0.4.2.tar.gz.download.libsodium.org
"1a7901cdd127471724e854a8eb478247dc0ca67be549345c75fc6f2d4e05ed39"
$ shasum -a 256 libsodium-0.4.2.tar.gz
1a7901cdd127471724e854a8eb478247dc0ca67be549345c75fc6f2d4e05ed39  libsodium-0.4.2.tar.gz

As we can see, both are identical. You can also use the .sig file.
Follow the ritual:

tar xzf libsodium-0.4.2.tar.gz
cd libsodium-0.4.2/
./configure
make && make check && sudo make install

You should consider debianize the package so it's more easy for you to uninstall/update later. There are plenty guides about this.
Once you have installed you have to reload/rebuild the GNU linkers. A simple sudo ldconfig is enough.
Now run ./configure and it should generate the makefile. (I'm assuming you have at least build-essentials package installed).

checking for library containing sodium_init... -lsodium
.....
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

Those are the ending lines of the ./configure.

Remember to keep a keen eye on the updates and bugs for both packages, since there might be vulnerabilities that shall be fixed with hassle.


MacBook Pro/oneric Multitouch support - how to I configure multitouch actions?

Touchégg should allow you to do what you want.

The main application can be installed from repositories (click here to install it).

In order to configure it you have to install a separated package, it is not distributed with Ubuntu: 32 bits, 64 bits.

Source: OMG Ubuntu.


How to find the name of an app from Ubuntu Software

I usually google for the apt installation instructions for what I am looking for.

But I will usually start looking for the app in the Ubuntu Software app on my machine, and only go to apt if I can't find it there first. (this is of course from a desktop install)

So, for instance, if I google "apt install samba" I get several pages, I then read them to find the one I like, and then try the commands given.


Resizing LUKS partition when not using LVM

Use gparted to move the partition all the way to the left, then you can use command line parted to resize the partition, then it sounds like you can use the cryptsetup resize option to enlarge the encrypted container, then finally resize2fs to enlarge the filesystem in it.


"System program problem detected" retrieve report

The report is in your /var/crash directory.

It's an ordinary text file with the complete stack trace or core dump (as appropriate). You can open it with any text editor (vim, nano, gedit, etc.)


Just create a file (you need to be root to do it): /etc/init/squid3.override .

And put this inside it:

start on (net-device-up IFACE!=lo
          and local-filesystems
          and runlevel [2345])
stop on runlevel [016]

For more info referring overriding upstart conf files read here: http://manpages.ubuntu.com/manpages/precise/man5/init.5.html


Use gcc from Windows Sublinuxsystem in Vscode on Windows

Visual Studio Code is a cross-platform IDE that uses a tasks.json file to describe how to compile (and perform other tasks) your project. You can run the VSCode in the Windows or in the WSL Ubuntu subsystem. If you wanna run it into the WSL, you must use the Ubuntu/Linux binaries.

Notes on WSL

In the Windows command line, you can run linux commands using bash

C:\> bash.exe -c <linux command>

For instance, you can run the Linux gcc using

C:\> bash -c "gcc -v"

If you have installed multiple linux systems on WSL, e.g. an opensuse and a ubuntu, you must use opensuse-42 run or ubuntu run instead of bash to determine which linux subsystem use at the windows command line.

C:\> ipconfig | opensuse-42 run grep IP | ubuntu run lolcat

In addition, note that the Windows file system can be accessed using /mnt/<drive letter>/. For instance, if you have a C:\Projects folder, you can access it from Linux at /mnt/C/Projects

Configuring a VSCode in Windows to use the GCC in the WSL Linux

Check the instructions in the website. To use GCC or CLang compilers in Mac or Linux, you may use the bash with different arguments depending on the task.

You can configure (or create) your own task.json. You must define the bash as the command to use. I think almost the same configuration you use for Mac/Linux must work. I changed the "cwd" option.

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "0.1.0",
    "wsl": {
        "command": "bash",
        "args": ["-c"],
        "isShellCommand": true,
        "showOutput": "always",
        "suppressTaskName": true,
        "options": {
            "cwd": "/mnt/C/${workspaceRoot}"
         },
        "tasks": [
             {
                "taskName": "hello",
                "args": [
                    "make hello"
                ],
                "isBuildCommand": true
             },
             {
                "taskName": "clean",
                "args": [
                    "make clean"
                ]
             },
             {
                "taskName": "compile w/o makefile",
                "args": [
                    "g++ helloworld.C -o hello"
                ],
                "echoCommand": true
            }
        ]
    }
}

There are some other Gists you can use as other examples.

NOTE: I have found some MS tutorials on compiling and debugging Linux GCC programs using WSL and Visual Studio but not Visual Studio Code.


First you'll have to disable loading drivers during your normal boot.  Then after you get in, change your video drivers to a supported driver for your video card from the repository.

Run these steps:

At the Grub menu hit e to edit the grub commandline.
Add nomodeset to the grub (linux) command that has quiet splash.
Hit F10 to save the changes and reboot.

Now Login

Bring up a command prompt with Ctrl+Alt+T

At the prompt run these commands:

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install nvidia-304

Now reboot.


How to detect image dimensions and run commands on them?

A combination of identify and bc seems to do the trick:

if [ $(identify -ping -format '%W/%H>1' filename.jpg | bc -l) -eq 1 ]; then
    echo "Landscape"
else
    echo "Portrait"
fi


Re-attempt the installation. This time, ensure that you do not check 'Download updates while installing'. I installed Ubuntu both yesterday and the day prior, and having this checked added an extra ~1h to the install process. If applicable, you may wish to use the regular Ubuntu ISO Installation and not the Network Installer.

After successful installation, you may use the Software Updater or sudo apt-get update && sudo apt-get upgrade in the terminal to update.


Open Gparted. Unmount your usb disk from gparted. Now repair your usb disk's partition.

[example: /dev/sdb1 not /dev/sdb. Repair partition not the disk].

From partition menu(P) and select unmount.
Again From partition menu select check.
Now apply.

Reinsert your usb disk.

Follow the Instruction: [edited]

Step1: unmount your disk [sudo umount /media/usbdisk]
       mount it with write permission [ sudo mount -o remount,rw '/meida/usbdisk']
       Now try to format the disk.[use disk utility]

Step2: [If first step does not work then follow the following steps]
Open disk utility. also insert your usb disk.
Unmount the volume(m)

Now Delete the partition(D)

Create a partition. Then mount it.


You can install Linux first and after that Windows.

I am not sure if windows is now capable of detecting already installed boot loaders. When windows is overwriting the linux bootloader you have to start your linux system from a live cd and reinstall the bootloader. Linux bootloaders can detect other operating systems and can start them.


Ubuntu only shows mouse cursor and wallpaper after opening laptop?

FIXED!!!
Turns out the problem was that Ubuntu thought I had 2 displays connected, when in reality I had one.
When I would open the laptop, it would display the interface and sidebar and all that on the "main monitor", which wasn't my laptop screen.
To fix this I simply restarted my computer and then removed the second display


Why doesn't apt doesn't know that I have some applications already installed from sources?

apt-get only knows about software that you installed using the package manager, that is by using apt-get, aptitude, Software Center or similar programs.

You can use  equivs-control  and equivs-build (package equivs, not installed by default) to create "fake packages" to fulfil dependencies.

In general it's better to use the package manager if possible.


How to remap Caps Lock key to Shift Left key?

You can use the following command in terminal:

xmodmap -e "keycode 66 = Shift_L NoSymbol Shift_L" #this will make Caps Lock to act as Shift_L

To get this change for every session, after you have run the previous commands create a file called .xmodmap with the new keymaps, using the following command:

xmodmap -pke > .xmodmap

Then, create a file called .xinitrc in your home directory, containing the following line/command:

xmodmap .xmodmap


How to disable bluetooth on startup Ubuntu 18.10?

This AskUbuntu answer was the one that do it for me.
It uses systemctl to turn off the bluetooth.service:

to deactivate bluetooth on startup issue this
sudo systemctl disable bluetooth.service


Failed to connect to 127.0.0.1 port 80: Connection refused

Have you tried running sudo ufw stop? ufw is a builtin firewall program that may be blocking your access. Also make sure that 127.0.0.1 isn't be assigned to some other address in /etc/hosts


I kind of agree with Woeitg's comment, but if you really need to do this then it should work if you "dd" the iso to a blank hard drive.
The command would be something like this:

root@localhost$ dd if=/home/ubuntu.iso of=/dev/sdb bs=2M

Be careful! If you get the target wrong you could wipe your hard drive.
To check which drive is which try:

root@localhost$ ls -l /dev/disk/by-id/

That will show the brand/make of your hard drive and which sdX udev has assigned it.


While upgrading to ubuntu 13.10 my battery went off, now the screen is off

First of all, you will definitely need a live cd/usb or some other external boot media. Maybe you could try to boot a live cd and browse your files, then copy to an external backup disk before reinstalling the system... if they were in a different partition than your system, this should probably work.

If, on the other hand, you had all in the same partition, AND there was damage to the partition (unlikely, I believe, as it was just an upgrade, which doesn't repartition your disk), maybe you should use something more specialized... I used Hiren's boot CD a long time ago, and it worked for me... it's a boot cd with a lot of useful tools for recovering. Anyway, you could still use a live ubuntu, but you would need to download specialized tools, and I don't know any.

You could also try recovering the system using the live cd, but I don't know how this works... I wouldn't do this without backing up files first.


USB 1.0 is upward compatible so this should not be a problem.

It's possible that the partition table on the USB stick is corrupted and that Windows is being less picky about it than Linux.

See if the "Disk Utility" application (palimpsest) shows your hardware when you connect it. See if it recognises the partitions. See if the "Mount Volume" button works.

If it's seeing the hardware OK, one thing you could try is

Backup the files on the stick from Windows
Boot into Linux
Reformat and repartition the drive from palimpsest
Copy the files back onto it from Windows

Some USB sticks are supplied with custom partition schemes (like U3 sticks) and this might also be confusing things - again, you could try repartitioning the drive.


On 11.10:

$ vim.tiny --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct  6 2011 10:32:12)
Included patches: 1-154
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Small version without GUI.  Features included (+) or not (-):
-arabic -autocmd -balloon_eval -browse +builtin_terms -byte_offset -cindent
-clientserver -clipboard -cmdline_compl +cmdline_hist -cmdline_info -comments
-conceal -cryptv -cscope -cursorbind -cursorshape -dialog -diff -digraphs -dnd
-ebcdic -emacs_tags -eval -ex_extra -extra_search -farsi -file_in_path
-find_in_path -float -folding -footer +fork() -gettext -hangul_input +iconv
-insert_expand +jumplist -keymap -langmap -libcall -linebreak -lispindent
-listcmds -localmap -lua -menu -mksession -modify_fname -mouse -mouse_dec
-mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse -mouse_xterm
+multi_byte -multi_lang -mzscheme -netbeans_intg -osfiletype -path_extra -perl
-persistent_undo -printer -profile -python -python3 -quickfix -reltime
-rightleft -ruby -scrollbind -signs -smartindent -sniff -startuptime
-statusline -sun_workshop -syntax -tag_binary -tag_old_static -tag_any_white
-tcl +terminfo -termresponse -textobjects -title -toolbar -user_commands
-vertsplit -virtualedit +visual -visualextra -viminfo -vreplace +wildignore
-wildmenu +windows +writebackup -X11 +xfontset -xim -xsmp -xterm_clipboard
-xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -Wall -g -O2 -DTINY_VIMRC -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,--as-needed -o vim    -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo  -lselinux -ldl

There are only twelve features enabled (out of one hundred and twenty):

+builtin_terms      Some terminals supported
+cmdline_hist       Command line history
+fork()             Shell commands are forked
+iconv              Extra encoding conversions besides utf8<->latin1
+jumplist           jumplist history,
                    So you can go back/forward with Ctrl-O/Ctrl-I
+multi_byte         Multibyte characters
+terminfo           Use terminfo instead of termcap
+visual             Visual mode supported (but no blockwise visual mode)
+wildignore         Allow wildcard patterns, to specify files to
                    ignore during filename completion
+windows            Support more than one buffer window
+writebackup        Backup files before overwriting (this either
                    provides this option, or defaults it to on)
+xfontset           X fontset support

The descriptions are based on the feature list link posted by @Caesium.

The missing keybindings etc may be because you are running vim in vi compatible mode - you can turn that off by doing :set nocompatible in vim or adding set nocompatible to you .vimrc file.

I did try Ctrl-W s and that did a split for me while running /usr/bin/vim.tiny while in compatible mode, so that might not be your problem. But I'm not sure what would be in that case. Maybe try making sure there is nothing in your .vimrc file that would stop that working.


N: Ignoring file 'webmin.list.' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

The file name extension is supposed to be .list and not .list. for Apt to pick it up as a package source file.

Rename the file:

sudo mv /etc/apt/sources.list.d/webmin.list. /etc/apt/sources.list.d/webmin.list

Update the package list based on the modified package sources:

sudo apt update

Install the webmin package:

sudo apt install webmin