How to sync contacts and calendars between FastMail and Ubuntu Touch?

First off, you may be interested in simply installing the FastMail webapp that gives you access to your mail, contacts, and calendars.  But if you'd like deeper integration with your device, read on.

Preliminaries

Alternative password

You probably want to create an alternative password for your FastMail account, because we will be storing the password on your device.  If you ever lose your device, you can simply disable this alternative password.

Go to your Password & Security settings panel and add a new "App Password."

If you choose to do this, use your new app password instead of your main password throughout these instructions.

Terminal access

Unfortunately, there's no simple graphical way to sync with FastMail, like there is for Google.  So you'll need to use the terminal.

Either enable remote access or install and use the Terminal app directly.

Connecting to FastMail

Run the following commands in the terminal, replacing EMAIL and PASSWORD with your FastMail email and password.

syncevolution --configure --keyring=no --template webdav username=EMAIL 'password=PASSWORD' target-config@fastmail
syncevolution --configure --template SyncEvolution_Client sync=none syncURL=local://@fastmail username= password= fastmail

Syncing your contacts

Note that if you have the "Auto-save contacts" FastMail feature enabled, you will end up with a lot of email-address-only contacts in your phone.  There isn't a workaround for this currently, except to deal with it or disable "Auto-save contacts."

Again, replace EMAIL with your FastMail email.

syncevolution --configure --template webdav database=https://carddav.fastmail.com/dav/addressbooks/user/EMAIL/Default backend=carddav target-config@fastmail fmcontacts
syncevolution --configure sync=two-way backend=contacts database=Personal fastmail fmcontacts
And perform an initial sync: syncevolution --sync slow fastmail fmcontacts

Syncing your calendars

The simple way

If you don't use external calendars in FastMail, this simple way is good enough.  And yup, replace EMAIL with your FastMail email.

syncevolution --configure --template webdav database=https://caldav.fastmail.com/dav/calendars/user/EMAIL backend=caldav target-config@fastmail fmcalendar
syncevolution --configure sync=two-way backend=calendar database=Personal fastmail fmcalendar
And perform an initial sync: syncevolution --sync slow fastmail fmcalendar

External calendars

If you do have external calendars, the above technique will flatten them all into one calendar in Ubuntu Touch, which isn't what you want.

So first we ask FastMail what calendars it has:

syncevolution --print-databases backend=caldav syncURL=https://caldav.fastmail.com/ target-config@fastmail calendar

Take the first URL (the one labeled "Calendar" and marked "<default>") and add it as your Personal calendar in Ubuntu Touch (replace URL with that URL):

syncevolution --configure --template webdav database=URL backend=caldav target-config@fastmail fmcalendar-Personal
syncevolution --configure sync=two-way backend=calendar database=Personal fastmail fmcalendar-Personal
And perform an initial sync: syncevolution --sync slow fastmail fmcalendar-Personal

Now for each of the other calendars you want to sync, you're going to create a new local calendar and connect it to the FastMail calendar.  You'll use a new NAME for each.

syncevolution --create-database backend=calendar database=NAME
syncevolution --configure --template webdav database=URL backend=caldav target-config@fastmail fmcalendar-NAME
syncevolution --configure sync=two-way backend=calendar database=NAME fastmail fmcalendar-NAME
And perform an initial sync: syncevolution --sync slow fastmail fmcalendar-NAME

Staying in sync

To automatically keep your contacts and calendars in sync, you can tell Ubuntu Touch to sync once a day (at midnight).  We're going to add a "cron job" which is a task that runs at a specified time.  In our case, daily.

crontab -e
If it asks you which editor to use, pick vim.tiny (number 2).

Now you'll be looking at a text file with a bunch of comments.  This is going to get specific.  Follow the next instructions exactly.

Press i to start editing the file.
Type (or copy & paste) @daily /usr/bin/env DISPLAY=:0.0 DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35) /usr/bin/syncevolution fastmail > /home/phablet/fastmail-sync.log
Press Enter, Escape, :, x, and then Enter again

Removing your changes later

If you no longer want to keep your device in sync with FastMail, you can remove all sync configuration:

syncevolution --remove target-config@fastmail

syncevolution --remove fastmail

And remove all cron jobs:

crontab -r


Error installing ubuntu-desktop on 14.04

Your problem is that you can not install the ubuntu-session packge.  That package conflicts with the gnome-session and ubuntu-settings packages.  To find out more, I would try apt-get install ubuntu-session and see what errors it gives.


error: mount --rbind /dev /tmp/snap.rootfs_X8A5XK//dev: No such file or directory

It might be because snap is not in the $PATH

I had this issue aswell. Restarted the computer solved the issue.

See if that helps


Webcam not working on Sony Vaio with 12.04

You should not try to build the firmware from source as there are debian packages available in http://download.tuxfamily.org/arakhne/pool/universe/r/ricoh-webcam-r5u870/ for both 32 and 64bits:

Depending on your architecture, try to download:

ricoh-webcam-r5u870-firmware_0.11.6-0arakhne0_i386.deb

or for 64bits:

ricoh-webcam-r5u870-firmware_0.11.6-0arakhne0_amd64.deb

Finally open a terminal, go to the folder where you downloaded the firmware package an type (assuming you're running the 64bits release):

sudo dpkg -i ricoh-webcam-r5u870-firmware_0.11.6-0arakhne0_amd64.deb


Bq Aquaris M10 Ubuntu Edition: desktop mode question

Yes, You will be able to switch to windowed mode, even when not connected to an external display (a switch will be available in the quick access top-menu). And yes, it has been confirmed that this will be available on the Aquaris M10 when it is released.


Error with sudo apt-get -f install (ldconfig not found)

Try this workaround if it works for you. Make sure you have not activated unstable repos for different releases or pre-released updates but for 14.04 LTS recommended only check in --> system settings/software & updates.

then run:

sudo apt-get -f install

sudo dpkg-reconfigure libc6

sudo dpkg-reconfigure libc-bin

sudo apt-get install --reinstall libc6

sudo apt-get install --reinstall libc-bin

sudo apt-get dist-upgrade

Other way:

Download libc-bin here e.g.

Then you'll have to extract it:

dpkg -x libc-bin*.deb unpacked/

copy the files to system:

sudo cp unpacked/sbin/ldconfig /sbin/

Or open Nautilus with:

gksudo nautilus

and do this GUI way, right click on a .deb package and choose extract here and copy to destination place.

And then:

sudo apt-get install --reinstall libc-bin

sudo apt-get install -f


I managed to install basic Ubuntu system using the Ubuntu Server edition (http://www.ubuntu.com/download/server).

When asked about packages that should be installed, I left all the check-boxes empty, which leaves mostly barebone Ubuntu, which boots to console.

Then following this guide: http://www.linux.com/community/blogs/133-general-linux/803937-installupgrade-linux-kernel-to-3183-stable-in-ubuntulinux-mintpeppermint , Updated the kernel version to 3.18-3.

After that to get xfce4, I used:

sudo apt-get install xfce4-desktop

The display driver still has issues though. Portions of the screen are not repainted and sometimes even the terminal stops responding but it's a start.


Kernel - mainline test vs. mainline build

I have been asking the very same question myself & I haven't been able to get any useful or helpful answers to this situation. What I can say is that if you look carefully at all the "mainline test" versions they appear incomplete & if you look carefully they are accompanied with many failed error messages. On that basis my advise would be to steer well away from trying to install ANY of the mainline test builds. ONLY install those kernel's which are called mainline builds. Only Mainline builds are usually complete & in a condition that is reasonably safe to install. i.e. if in doubt NEVER install a test build, if in doubt don't do it. Hope that helps? Regards Ivan


Can't change themes in Cinnamon session after an update - Ubuntu 13.04

I have the same problem and I can give you some information.

You can't go back to your old looks, for now. To get back your theme, you'll have to purge any package in relation to nemo or cinnamon. So you'll have to use nautilus, or any file manager, waiting for cinnamon to fix the issue.


this post is quite old but I stumbled over it when I was searching for a solution setting battery charge levels for my Lenovo Ideapad U430 under Ubuntu. I actually got this working thanks to this thread and want to share my solution.
I installed acpi-call. Following commands are setting the charge level:

# 100%
echo '\_SB.PCI0.LPCB.EC0.VPC0.SBMC 5' | sudo tee /proc/acpi/call
# 50%-60%
echo '\_SB.PCI0.LPCB.EC0.VPC0.SBMC 3' | sudo tee /proc/acpi/call


Reset network settings to what Ubuntu installs

You can try to flush the IP tables with
'sudo iptables -F'

If it doesn't work, you can als try to remove the relevant config files from '~/.config'


Can I Share a Home Partition on a Multi Boot USB Drive

Sharing home Partition on a Multiple Boot USB

/home and home-rw may share a partition on a bootable USB drive, offering a link between Full and Persistent installs to the same USB. This also allows multiple installs and bootable ISOs to each have a home folder greater than 4GB each.

Using mkusb, install Ubuntu to a 4GB pendrive as a Live install, (no persistence, important). Use default settings
Using mkusb, install Ubuntu to a 32GB pendrive as a Persistent install, Use default settings but allow 21GB for persistence.
Shrink partition 5 to 7GB and add 2 more ext4 partitions.
Remove casper-rw label from Partition 5.
Make a copy of 32GB Partition 3 /boot/grub/grub.cfg.
Plug in both pendrives and boot into the 4GB drive.
Select Install.
At "Something else" select the 32GB drive for boot loader.
Select partition 7, change to ext4, Format and /.
Select partition 6, change to ext4, Format and /home.
Select "Install now" and complete installation.
Open the 32GB pendrive in GParted.
Change the label of Partition 5 back to casper-rw.
Change the label of Partition 6 to home-rw.

Open the copied grub.cfg and copy any menuentries you want to use.
Paste the selected menuentries into Partition 7 /etc/grub.d/40_custom/
Run sudo update-grub from the Full install.
You may add as many Users as you have OS.
The same username can share a home folder between installs as long as the flavor of Ubuntu is the same, Ubuntu version may vary.


Pi-hole broken after upgrade to 20.04 from 18.04

Found the problem:
> pihole-FTL[1659]: dnsmasq: cannot access /etc/dnsmasq.d/lxd: No such
> file or directory

I removed the lxd symlink and restarted it and it worked fine.
Earlier solution


Ubunt 12.04 LTS Touch pad no longer working after connecting USB mouse

Try the following

sudo apt-get install xserver-xorg-input-synaptics
synclient TouchpadOff=0
sudo chmod +wrx '/var/lib/dpkg/lock'
sudo apt-get install synaptic

For more details refer to the following link
12.04 Touchpad not working Asus g51vx-A1


Best DE for system with no GPU acceleration

According to me, MATE would be the best option. It is lightweight and at the same time, quite powerful with respect to the set of applications installed by default. The default window manager, Marco, does not use composting by default and therefore will give good performance on systems without hardware acceleration. Also, the upcoming releases will include an option to switch to Compiz for fancy desktop effects, although it is not recommended for less powerful systems.


16.04.1 Install Welcome Screen Zoomed In / Incorrect Resolution

Assuming you've tried setting the resolution on your TV with no luck then your next choice is to change the resolution via software with the Ubuntu Live CD Advanced Options.

Ubuntu CD Advanced Welcome Page Options

As the CD boots, you can gain access to the advanced page and its options by pressing any key when the small logo appears at the bottom of your screen.

A menu appears with 5 options:

Try Ubuntu without installing.
Install Ubuntu.
Check for disk defects.
Test memory.
Boot from first hard disk.

At the bottom of the screen is a legend indicating to press F6 to override boot options. Here you are presented with the boot command line options where you can override the screen resolutions.

Screen Resolutions

There are a number of resolutions you can try:

Colour depth    640x480 800x600 1024x768    1280x1024   1400x1050   1600x1200
  8 (256)         769     771      773         775
 15 (32K)         784     787      790         793
 16 (65K)         785     788      791         794         834         884
 24 (16M)         786     789      792         795

If you wanted SVGA (800x600) 256 colors you would enter VGA=771 on the boot command line.

Besides SVGA you can try vanilla VGA with option VGA=769. Alternatively if your TV is set for max resolution of 1600x1200 with VGA=864. Watching the screen change you can decide which is best for you.

There might be other tricks but this is the easiest place to start.


Man page requires space to scroll, not arrow keys

You system uses more as page for man while a standard Ubuntu installation uses less.

Install the package less


Is it possible to get GNOME Shell 'Activities' Overview to show windows from all Workspaces?

Yes it is possible with this Overview all windows extension.

Although it won't work after install, download the schemas folder from its git repo and paste in extension folder.

Path of extension folder:
~/.local/share/gnome-shell/extensions/OverviewAllWindows@amiller27

Overview shortcut will be super+ctrl+tab.


Cloned mac not work with networkmanager in 64bit Ubuntu, And I use USB Wireless Card RT3070

In a terminal, macchanger --help, among other things, it shows me:

GNU MAC Changer
Usage: macchanger [options] device

  ...
  -m,  --mac=XX:XX:XX:XX:XX:XX
       --mac XX:XX:XX:XX:XX:XX  Set the MAC XX:XX:XX:XX:XX:XX

So, macchanger is a good Linux utility for changing the MAC address for network interfaces.

Here is how I changed my MAC:

To use macchanger and airmon-ng, I think you need to have installed aircrack-ng. To install it, run in a terminal:

sudo apt-get install aircrack-ng


Ubuntu 16.04: Error while performing installing (sudo apt install mysql-server)

Try running this and see how it goes.

sudo service mysql stop
sudo apt remove mysql*
sudo apt purge mysql*
sudo apt autoremove
sudo apt install mysql-server

To run the included security script:

sudo mysql_secure_installation

Please update your question with the output from this if you recieve any errors.


Complete instructions wanted how to install zeromq-4.1.2

It looks like the libsodium-0.6.0 make install does not run ldconfig to update the linker cache. Run sudo ldconfig (or sudo ldconfig -v) and then try again.


No Unallocated Space Visible After Shrinking Partition (GParted)

sda is not a partition but the whole device, your disk does not have a partition table as you can see in line 28 in the log you provided. You can't resize sda, since it's not a partition and no partition table entries exist.
Your disk is set up to hold only a single file-system which you successfully resized, but there is no way to make use of the space you made.
You'll need  to backup your data, create a partition table and the partitions you want to have. Then restore your data from backup to the new partition.


Skip if server needs a password in Local Area Network

Remove the hosts that require a password, from your script. If you're going to skip them anyway, then there's no need to have them there.

Alternatively, save the passwords permanently in your keyring, when the dialog pops up to ask for the passwords, and you won't be asked in the future, unless the password is changed on the server, when you run the script while logged in. Or you can encode the passwords in the URLs you're passing to gvfs-mount inside the script, but that is not as secure.


I messed up and removed important packages, is there a way to restore all packages that would come with the live distro ?

sudo apt-get install ubuntu-desktop should pull in everything that is normally installed by default.  There is also lubuntu-desktop and so on for the other desktop flavors.


Is the executable literaly named forever start?

If so, then replace forever start with forever\ start.


/dev/sdb1 : clean, 640729/122388848 and Keyboard is not working

I removed nvidia driver.
And installed again.
It is running now. Solved.

But I need to disables automatic NVIDIA driver updates/cuda updates/ubuntu updates updates,etc.

How can I do it ?

I use Ubuntu 16.04 and Windows as dual boot. Same NVIDIA GPU.
So I think I need to disable all to make stable system.


You might have success using Aria2. Aria2 is a commandline only tool BUT there is a Web GUI as well that integrates with it so that might accomplish what you want. Aria2 comes in the USC, via PPA or as a DEB file though Aria2 doesn't host official deb packages but their PPA is official.

App - http://aria2.sourceforge.net/

WebGUI - https://github.com/ziahamza/webui-aria2


I removed ruby & gems and also the vagrant directory ~/.vagrant.d and reinstalled vagrant, ruby and gems. Now everything is up & running. It seems that error was related to ruby and gems.


Can I automatically remove transparency from layers from jpegs without losing quality?

The JPEG format does not support transparency

I am not sure why you are worried about inadvertently saving transparency information, but you can be sure this is not possible. You have actually flattened all the pictures without even realizing it and you don't need to do any further processing.

Note: JPEG2000, which is a different file format supports transparency.

Removing the transparency from other pictures

If you also have PNG files or other formats with transparency, you can flatten them on a color of your choice with ImageMagick:

mogrify -flatten -background white *.png


Is there a way to find out what is the name of an icon that is on the bottom bar, on Gnome 3?

Got the LibreOffice 3.5 Quickstarter's name from System Monitor and Google's Chrome is google-chrome.

Add:

StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['soffice'] = 'soffice';
StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['google-chrome'] = 'google-chrome';

to:

.../gnome-shell/extensions/status@gnome-shell.2jk.org/extension.js

Still have found no way to grab the names from icons.


Symbolic link to resolv.conf strange behaviour in Ubuntu 14.04

This is normal if your DNS is being managed by the resolveconf package (the default for 14.04). If you need to add nameservers, add them to /etc/resolvconf/resolv.conf.d/base sudo nano /etc/resolvconf/resolv.conf.d/base and restart resolvconf service resolvconf restart and it will rebuild the /etc/resolv.conf "file".


migrate from Thunderbird to Evolution without re-downloading IMAP mails

Go to .thunderbird/Profiles/xxx.default/Mail/, and then to your mail folder.

There will be two types of files. Inbox.msf, and Inbox.  You need the file without the extension.

In Evolution,  go to mail window view and click File --> Import.

Select "import a single file" option when asked, and select the file (from above) you want to import and select a location to be imported.

Repeat for every archive that you have (if more than one).


I got message this message in rails "The dependency tzinfo-data"

This gem is unnecessary for apps that will be running on Ubuntu (or any Unix-based system) and can be safely removed from the gemfile unless your rails app is running on a Windows machine.

Per the gem's author:

  If you want to get rid of the message you can do one of the following:

  Remove the platforms option from the gem 'tzinfo-data' line in the Gemfile (and run bundle update). This will cause tzinfo to use tzinfo-data as its data source on all platforms instead of using the system time zone data.
  Remove the gem 'tzinfo-data' line from the Gemfile. This will cause tzinfo to always try and use the system time zone data. A TZInfo::DataSourceNotFound exception will be raised if you try and run your app on Windows.
  Run bundle lock --add-platform mingw, mswin, x64_mingw, jruby to add mingw, mswin, x64_mingw, and jruby to the list of platforms Bundler will include in the bundle.


You can indeed start byobu or tmux with multiple windows or splits, either running the default shell or any program you want. See the tmux man page for a full list and descriptions of all commands accepted by tmux.

In general, any tmux command can be passed as arguments to byobu. Multiple commands can be chained together using \;. Here are some example usages that may help you do what you want.

Start byobu with 3 shell windows

byobu new-session \; new-window -d \; new-window -d

Start byobu with a shell and vim in a side-by-side split

byobu new-session \; split-window -d -h vim

Start byobu with 2 vims in stacked split and a second window

byobu new-session vim \; split-window -d vim \; new-window -d

As to your question about copying text from a split (I assume you mean a side-by-side split), the best option is probably to use Shift+F11 to temporarily zoom the split to take up the whole window. After copying the text, the split can be restored with Shift+F11 again.


How to pin Eclipse to the Unity launcher?

For 11.10 and newer

First, create a .desktop file to eclipse:

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

Then, paste this inside (dont forget to edit Exec  and Icon values):

[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=** something like /opt/eclipse/icon.xpm **
Exec= ** something like /opt/eclipse/eclipse **
Terminal=false
Categories=Development;IDE;Java;
StartupWMClass=Eclipse

After that, open that folder with nautilus:

nautilus ~/.local/share/applications

If you want to use this launcher outside dash/launcher (ex: as a desktop launcher) you need to add execution permission by right clicking the file and choosing Properties -> Permissions -> Allow execution,
or, via the command-line:

chmod +x ~/.local/share/applications/opt_eclipse.desktop

Finally drop opt_eclipse.desktop to launcher.


Font Background Color on Desktop - GNOME 18.04

I see relatively decent text using the Ambiance theme with a light background, the light-colored beaver background available in a default Ubuntu 18.04 install:

The text visibility is somewhat improved by editing nautilus.css in /path/to/theme/gtk-3.20/apps/.

I changed

.nautilus-desktop.nautilus-canvas-item {
    color: @theme_selected_fg_color;
    text-shadow: 1px 1px black;
}

to

.nautilus-desktop.nautilus-canvas-item {
    color: @theme_selected_fg_color;
    text-shadow: 0 0 3px #000000, 0 0 3px #000000;
}

Another way to make icon text very visible even with an unmodified theme is just to right-click on the desktop and then to choose Select All from the context menu:


If you're going to use Shorewall just for being a firewall on machines with just one interface, it's a little bit of an overkill, in my opinion. Still, I do like to use Shorewall for this task anyway. Here's a short introduction that may help you to get started.

So, I'm assuming a single-interface IPv4-only configuration here. IPv4 and IPv6 versions of shorewall are independent but similar packages.

$ sudo apt-get install shorewall

After installing, everything is still disabled. First, let's copy over an example of a single interface configuration.

$ sudo cp /usr/share/doc/shorewall/examples/one-interface/* /etc/shorewall

Then let's configure the files one by one.

Tip: use the *.annotated.gz files for more annotations in your configuration files if you fancy that.

zones - Leave as default. Configuring zones is mandatory, but since it's a single interface, it only contains one zone apart from the firewall itself (fw): net.
interfaces - Configure your single interface there. Default configuration will probably be quite okay, and I only remove dhcp as I'm not running DHCP on my servers.
policy - Defines policies for traffic between zones. As your number of zones is just one, this is easy too. By default, all traffic inbound is disallowed and all traffic outbound is allowed. Leave that default if you like that.
rules - This is where you configure exceptions to the policies defined. A simple example for allowing inbound TCP port 1234 from the whole outside IPv4 world would be this:

ACCEPT       net           $FW        tcp       1234

Consider using some macros that help your config files more readable, like this one you probably want to set anyway:

SSH(ACCEPT)  net:1.2.3.4   $FW

To allow SSH access from the IP address 1.2.3.4.
shorewall.conf - get it by gunzipping the shipped shorewall.conf.gz file. Check that IP_FORWARDING=Off if you don't do any forwarding and consider setting DISABLE_IPV6=Yes if you are not planning on configuring IPv6 on the machine. Finally, set STARTUP_ENABLED=Yes.

Enable it for boot time too, in /etc/default/shorewall, set startup=1.

Now check your current configuration by running

$ shorewall check

Please do this every time you changed some file and before you actually restart Shorewall. It prevents downtime in case of a syntax error as it compiles complains about wrong syntax.

If all is well, you may give it a try to actually start:

$ sudo service shorewall start

And feel free to inspect the result in iptables:

$ sudo iptables -L -n -v


For anyone who has come looking for a solution to a similar problem, here's how I solved it.

Credit to pszafer here: https://bbs.archlinux.org/viewtopic.php?id=191797

So it turns out that indeed it is due to lightdm that ubuntu was disabling the automatic lock. To get around thata I wrote the following script that calls dm-tool to lock the screen, saved in the home directory:

#!/bin/sh
export XDG_SEAT_PATH="/org/freedesktop/DisplayManager/Seat0"
dm-tool lock

Note that you Seat0 might be different for you. You can check that by running

dm-tool list-seats

Then I put this script saved at /etc/systemd/system/dmlock.service:

[Unit]
Description=DM Lock before sleep
Before=sleep.target

[Service]
ExecStart=/home/path/to/previous/script

[Install]
WantedBy=sleep.target

Then you need to enable the service using

systemctl enable dmlock.service

You can also test if it is working with

systemctl start dmlock.service


My partition table is facing limitations; having problems creating more partitions

My FixParts program can convert from primary to logical and vice-versa, albeit with some caveats concerning what's legal in terms of MBR partition layouts. If I understand your layout and goals, FixParts should do what you need. This is likely to be safer than using fdisk or parted, since there's less room for user error. I'd recommend also converting the swap partition to a logical while you're at it, since that will reduce your primary partition count to 3, giving your more options should you ever need another primary partition. If you convert your swap space to a logical partition, you'll then need to use GParted to resize the extended partition that FixParts will create around the swap partition. It's best to do all of this from an emergency disc.


Sort files by extension in file explorer

I'm happily using Krusader for some time now. It should be able to do what you want, certainly allows sorting by extension.


Android Device Manager doesn't show emulated device on Ubuntu 12.04

okay after weeks, i finally find the answer to my problem:
Its from https://stackoverflow.com/a/22712342/3477946

On Ubuntu 14.04 64bit with a NVidia graphics card I had to do the following:

Install the SDK and ADT plugin for Eclipse
Install 32-bit libraries:

sudo apt-get install lib32stdc++6 lib32z1

Install OpenGL libraries:

sudo apt-get install libgl1-mesa-dev

Install proprietary drivers for the graphics card:

System Settings > Software & Updates > Additional Drivers NVIDIA binary driver version 331.38

From Eclipse (>in my case android studio/<) , run the Android Virtual Device Manager and edit a device. Enable "Use Host GPU" & save.
It then worked.


Looks like Ubuntu since 17.10 (possibly) now uses netplan by default to provide it's DNS source.

My Default Ubuntu (bionic) looks like this

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

This is why I later found NetworkManager through it's X/GTK frontend to be a suitable place to set the DNS (although I also did not know about nmcli). Apparently renderers supported so far are NetworkManager and networkd, although it's noted 1 that only NetworkManager supports WiFi.

I've yet to find a place to set this up so that it can work for all interfaces like the old method of editing /etc/resolv.conf, which doesn't work in vanilla 18.04 (maybe could, but it's a lot of work, I'm end-goal oriented).


Installing Ubuntu from Live Persistence USB

Create an installed system (the main alternative)

Yes, it is possible to install Ubuntu onto the hard drive from a persistent live system, but there are a few things to take care of (different depending on the installer that you use). The following link should help you avoid some pitfalls.

help.ubuntu.com/community/mkusb/persistent#Installing_-_using_the_Install_icon_on_the_desktop
The data saved on a persistent live drive the will not be transferred during a standard installation, but you can copy the home directory from the persistent live drive to a separate 'home' partition for the installed system, and select 'something else' alias manual partitioning during the installation and it will work.

You will probably have to change the name (ubuntu) and numerical user ID (999) to the name you select in the installed system and user ID (1000), so it might be easier to make a standard installation and simply copy back data files from your backup (or directly from the original location on USB drive).
You have to reinstall the program packages that were installed into the persistent live system, and you have to re-do the global tweaks.

Create a persistent live system

An alternative is to install a persistent live system into the internal drive or a USB-connected SSD. If you are using the same iso file (as you used for the USB pendrive), you can backup the content of the partition for persistence and restore it into the persistent live system into the internal drive or a USb-connected SSD, and it will contain 'everything' from the original system.
Another alternative is to install a persistent live system into the internal drive or a USB-connected SSD and use a new (up to date) iso file. Then you can backup the content of the home directory of the original system and restore it to the new system (but you have to reinstall the program packages that were installed into the persistent live system, and you have to re-do the global tweaks.
See the following link about backup and restore,

help.ubuntu.com/community/mkusb/persistent#Backup_and_restore_of_persistent_overlay_data


Checked $PROMPT_COMMAND as advised by @terdon:

user@ubuntu ~ $ echo $PROMPT_COMMAND
__git_ps1 "\u@\h \w" "$(__drush_ps1 "[%s]") \\\$ "

Then looked harder at .bashrc and found:

# Include Drush prompt customizations.
if [ -f "/home/user/.drush/drush.prompt.sh" ] ; then
    source /home/user/.drush/drush.prompt.sh
fi

Drush was setting its own $PROMPT_COMMAND, apparently instead of PS1. Not sure how PS1 gets overwritten by this, but it does. Commenting out Drush's superfluous customization makes the problem go away. Thanks to @terdon.


Extract word from string using grep/sed/awk

You can use grep with PCRE (-P):

grep -Po 'spring.profiles.active=\K[^ ]+' <<<'.....string.....'

spring.profiles.active= will match this substring literally, \K will discard the match
[^ ]+ will select the desired portion i.e. the portion after spring.profiles.active=, till the next space

For a file:

grep -Po 'spring.profiles.active=\K[^ ]+' file.txt

Example:

% grep -Po 'spring.profiles.active=\K[^ ]+' <<<'00:28:04 /usr/lib/jvm/jre/bin/java -DJDBC_CONNECTION_STRING= -Dspring.profiles.active=qa -XX:MaxPermSize=256'
qa

sed would take similar logic:

sed -r 's/.*spring.profiles.active=([^ ]+).*/\1/' <<<'.....string.....'

Example:

% sed -r 's/.*spring.profiles.active=([^ ]+).*/\1/' <<<'00:28:04 /usr/lib/jvm/jre/bin/java -DJDBC_CONNECTION_STRING= -Dspring.profiles.active=qa -XX:MaxPermSize=256'
qa

Handling errors:

In your script you may want to handle the case where there is no match, in other words where your original string does not contain spring.profiles.active=. In the above sed example, you obtain the whole original string, which could create problems:

% var="$(sed -r 's/.*spring.profiles.active=([^ ]+).*/\1/' <<<'00:28:04 /usr/lib/jvm/jre/bin/java -DJDBC_CONNECTION_STRING= -XX:MaxPermSize=256')"
% echo $var
00:28:04 /usr/lib/jvm/jre/bin/java -DJDBC_CONNECTION_STRING= -XX:MaxPermSize=256

If you prefer to obtain the empty string when there is no match, add the -n option to the sed command and the p option to the sed s command, like this:

% var="$(sed -rn 's/.*spring.profiles.active=([^ ]+).*/\1/p' <<<'00:28:04 /usr/lib/jvm/jre/bin/java -DJDBC_CONNECTION_STRING= -XX:MaxPermSize=256')"
% echo $var

% var="$(sed -rn 's/.*spring.profiles.active=([^ ]+).*/\1/p' <<<'00:28:04 /usr/lib/jvm/jre/bin/java -DJDBC_CONNECTION_STRING= -Dspring.profiles.active=qa -XX:MaxPermSize=256')"
% echo $var
qa

Then you can test if $var is empty or not.


ElanTech TouchPad NOT detected as PS/2 in EXO NIFTY 7385

Try the following

  cat /proc/bus/input/devices | grep Name

Output should include > Elantech Touchpad

If so download the following

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1166442/+attachment/3941591/+files/psmouse-elantech-x551c.tar.gz

Open a terminal, and follow these steps

  cd ~/Downloads
  sudo dkms ldtarball psmouse-elantech-x551c.tar.gz
  sudo dkms install -m psmouse -v elantech-x551c
  sudo rmmod psmouse
  sudo modprobe psmouse

HTH

Reference

- Ubuntu activate multi touch on elantech


Problem excluding subdirectories after including their parent in Duplicity

I think you need to put the exclude first.  The documentation, section
File Selection
says:

  Each file selection condition either matches or doesn’t match a given file. A given file is excluded by the file selection system exactly when the first matching file selection condition specifies that the file be excluded; otherwise the file is included.

In your example, /home/me/example will be matched by --include /home/me first, causing the exclude to be ignored.


TL-WN823N USB + Ubuntu Mate + Raspberry PI

For everyone else, after sitting with this problem several hours and FINALLY deciding to ask a question, I find the answer a few minutes later.. go figure.

Its here: https://www.raspberrypi.org/forums/viewtopic.php?t=148389&p=1028428

follow the debian process, it works just fine for ubuntu mate. after this, just go into networks, add a network - pick the new device that its found. This doesn't fix lsusb, but everything else shows the correct stuff :-)

Have fun.


Make sure Ubuntu One is connected, on the top right.


I don't know raid setups, but I think you are forgetting the problem that you need package changes to boot a xen system in an ordinary way.

There are xen-specific packages like libc-xen and xen-specific kernels.
You either want to chroot into it and revert those packages to normal. After that the partition could behave like a normal server setup.

But for your sanity, i would just backup your data and reinstall.

You may also want to investigate if it's possible to migrate Xen to KVM. That is: turning the partition into a qcow2 file.


Resize root partition from home partition space (swap in the middle)

I recently did this. Be careful to boot your computer from a live cd of the SAME version of ubuntu as you have installed, if you can. (I'm superstitious!)

Then start Gparted.  From here on it is a slow sliding block puzzle.

Click on your /home partition, then right click it and select 'Resize/Move. When the graphic pops up, use your mouse pointer to take hold of the left hand handle of the /home partition and slide it right to shrink the partition as much as you need. Click on the Resize/move button, then the green check mark on the toolbar and the shrinking will start -and it will take a fair time to complete.

Now click the swap partition, then right click it and select 'Resize/Move. When the graphic pops up, use your mouse pointer to grab the middle of its graphic and slide it right until it butts up against the /home partition. Then click the Resize/Move button, then the green check mark on the toolbar to move it. When this is done, there will be space on its left to fill up with the /root partition.

Click on your /root partition, then right click it and select 'Resize/Move. When the graphic pops up, use your mouse pointer to take hold of the right hand handle of the / partition and slide it right to bring it up against the swap partition. Click on the Resize/move button, then the green check mark on the toolbar and the expanding will start -and, again, it will take a time to complete.

I know, I know, I could have done the whole sliding block thing in one go and then clicked on the green check mark just once, but to me the process feels less risky doing each move independently. You WILL back off any irreplaceable files before you start, won't you?  A power cut could prove disastrous... Wordy though my solution is, this is the simplest, entirely graphical way, if you can believe that!

For added security, you could install Boot Repair on your hard disk (https://help.ubuntu.com/community/Boot-Repair) . Then if you find it has all gone wrong, you could use a SuperGrub2 CD to boot your system and then run boot repair to fix grub.

Good luck,

Vic


I can't boot ubuntu 13.04 from a usb stick

Try using updated version of universal Usb installer in which ubuntu 13.04 is listed.


How to share my mobile broadband connection via Wifi

Connection Sharing Guide

In particular:

  GUI Method via Network Manager (Ubuntu 12.04) Open
  Settings->Network->Wireless and create a new Ad Hoc network. To use a
  common denominator for all devices choose WEP for security and create
  a 5 letters password from 0..9A..F. Note that this a least secure
  encryption standard.


Wifi rtl8821ce driver stopped working on Ubuntu 19.10

I had the same problem. I solved it by uninstalling the driver and installing the official Ubuntu package.

First, I uninstalled the old driver:

cd rtl8821ce/
sudo ./dkms-remove.sh

Then downloaded the driver to my phone: https://packages.ubuntu.com/eoan/all/rtl8821ce-dkms/download

Moved it via USB to my laptop.

Installed it with dpkg:

dpkg -i rtl8821ce-dkms_5.2.5.2.1.30816.20190425-0ubuntu1_all.deb

And finally rebooted the laptop.


This is possible. Here is the procedure.

Open up settings and go to keyboard->shortcuts->system and unbind the Lock Screen shortcut. (Make sure it says disabled where the key combo normally is)

Go to Custom shortcuts on the same tab and create a new shortcut named login screen. In the command field enter the following:

gdbus call --system --dest org.freedesktop.DisplayManager --object-path /org/freedesktop/DisplayManager/Seat0 --method org.freedesktop.DisplayManager.Seat.SwitchToGreeter

Set the keybinding to Ctrl+Alt+L and then you are all done. From now on when you press that key combo you will be placed on the login screen.


Sleep script: Not executed via pm-hibernate

After some testing I found a solution:
Rather than calling sudo pm-hibernate, using sudo systemctl hibernate seems to trigger all side effects, including execution of scripts in /lib/systemd/system-sleep/
This works in terminal as well as in my python calls above.


Go here and write out the commands in a shell script if you know how, or just run the individually: https://kb.hivelocity.net/how-to-install-ffmpeg-ffmpeg-php-flvtool-lame-mplayer-libogg-libvorbis-and-mencoder/


Boots normally, but GRUB/BIOS screens do not appear

Disable GRUB hidden timeout.

Open a terminal and execute :

sudo apt-get install gksu

gksudo gedit /etc/default/grub

Place a # in front of GRUB_HIDDEN_TIMEOUT=0.

So that it reads #GRUB_HIDDEN_TIMEOUT=0.

Save the change and close the file.

Now execute this command :

sudo update-grub

You should see GRUB when booting the PC now.


Steam on wine says that I have incompatible OS version

Not all games will work running Wine. Unfortunately, yours seems to be one of the ones that doesn't seem to work very well:

https://appdb.winehq.org/objectManager.php?sClass=application&iId=14704


I can't extract tar.bz2 file: error message, .h file: permission denied

Try elevating your privileges by either entering root through the command line. You can press Ctrl + Alt + T to launch the terminal.

su -
<root password>

tar -zxvf {file.tar.gz}

Or use sudo

sudo tar -zxvf {file.tar.gz}

Where {file.tar.gz} is the path to your file


.sh is an extension for a shell script. A shell script is a file that is executed directly run by the "shell". For example, a .c file is compiled by the C compiler like gcc, Turbo C, etc. Similarly there are shells like bash, Bourne shell, etc which are also called as command-line interpreters which execute this .sh file.
So, in order to run a .sh file, you can try any of the following at the terminal (the command-line interface) by first going to the directory in which the file is located:

1) For executing using a particular shell:

bash filename.sh

which is in your case:

bash update_java_home.sh

If you have installed Ubuntu, you should have bash by default.

2) For executing using the default shell:

chmod +x filename.sh

which is in your case

chmod +x update_java_home.sh

Here, chmod is a command to change the file permissions. +x gives executable rights to the user logged in, if permissible, upon the file given as filename.sh
and then

./filename.sh

Here, a . indicates the path is the current directory and asks the shell to execute the file gives as filename.
These are perhaps the most common methods used to execute shell scripts. There may be other methods too.


I can't change my brightness setting on my computer

Install this software:

https://apps.ubuntu.com/cat/applications/precise/brightness-controller/

You find in the ubuntu software center.


Any easy way to use grsync with shared folder

There is a partial solution using PCManFM. My portable machine is a 10 year old netbook so it is running the lightweight Ubuntu derived Bodhi 5 os which has PCManFM as its default file manager.  I discovered that the following works:

1 Open PCManFM

2 Navigate to network share (which in my case is on Ubuntu Bionic Desktop PC)

3 Left click to open shared network folder for browsing

4 Right click in navigation panel offers: "Open in terminal window" - select this

5 Terminal window shows (what to me was unlikely) path on the status line:

"USERNAME@COMPUTERNAME:/run/user/USERIDNUMBER/gvfs/smb-share:server=PCNAME,share=SHAREDFOLDERNAME$"

6 Copy to clipboard path from the terminal window ie: /run/user/USERIDNUMBER/gvfs/smb-share:server=PCNAME,share=SHAREDFOLDERNAME

7 Launch Grsync and paste path into source, edit for subfolders if desired

8 Save the session for future use in Grsync

I just noticed that it may be possible to do something similar on Bionic.  While I have been unable to use Nautilus to browse folder = /run/user it is possible to use a terminal in Bionic and cd /run/user

From here one can "ls" to list and see the subfolders to drill down to the name of the SAMBA share as mounted.  This seems to provide a copy and paste approach to using Grsync with network folders.


How do I uninstall old version of LibreOffice?

You can uninstall the old version with sudo apt-get remove --purge libreoffice-common if it was installed via apt-get.

You can find a good tutorial on how to install Libre Office 4 here.


Dual boot GRUB menu no longer appears after moving computer

open /etc/default/grub with editor and check if your grub timeout is 0. if so change anything you like and run "(sudo) update-grub" in terminal.


You can achieve this by not letting tar process the . directory (and generate the files ./a.txt, ...)
Let bash do the expansion:
tar -czvf dist.tar.gz *

Won't work if filenames contain spaces, or if there are too many filenames that are too long (see xargs --show-limits </dev/null)


To complete this task, you should be able to use GNOME Disks. Install the gnome-disks package by running sudo apt-get install gnome-disks. After you do that, you should be able to find it somewhere in your menus. (It could be called Disk Management.) Choose the flash drive on the left side of the screen and click the gear icon at the top of the window. Choose "Create Disk Image..." and choose a place to save it. It will put it into a compressed .img file, but when restoring it back to the flash drive, you should use "Restore Disk Image..." instead of just extracting the .img file.


How can I get back Ubuntu 17.04 login screen style in Ubuntu 17.10?

The login screen you desire is the default theme for lightdm. If you install the lightdm package, you can select it as your login manager. To switch between the two after being installed, you can run sudo dpkg-reconfigure lightdm (or gdm) and select the one you wish to use.

The lock screen is more integral to the shell portion of the system, and to get lightdm as the lock screen, you will need to re-install the Unity session, and use it instead of GNOME. I do not know of a way to get GNOME shell to use lightdm as the lock screen.


File transfer to smartphones from Ubuntu does not work properly

You can use go-mtpfs, a FUSE filesystem that helps MTP users greatly.

You can do so, by adding a ppa and installing it.

sudo add-apt-repository ppa:webupd8team/unstable && sudo apt-get update
sudo apt-get install go-mtpfs

There  is a custom script to so that you can easily mount them

sudo apt-get install go-mtpfs-unity

More details see - http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html


Mounting a physically separate drive as my home folder?

(!) Be carefully following these tipps (!) because targeting the wrong device may destroy the data on your 120 GB disk (!)

Guessing you 1TB drive is /dev/sdb:

Setup a the new disk with the desired partition:

sudo fdisk /dev/sdb

create a new partition table - command: o
create a new partition - command: n   (accept all proposed values)
specify the type of the new partition - command: t / Type 83
write the data to the disk an leave fdisk - command: w

format the new disk / partition:

sudo mkfs.ext4 -L Home /dev/sdb1

mount the new partition temporally, change owner and copy your home-directory:

mount /dev/sdb1 /mnt
chown -R $USER.$USER /mnt
cp -a $HOME/* /mnt/

unmount the partition

umount /mnt

look for the uuid assigned to your new partition:

sudo tune2fs -l /dev/sdb1 | grep UUID

edit /etc/fstab and add a line:

sudo vi /etc/fstab

the new line (take the uuid from the tune2fs command) and replace USERNAME with your username / name of your home directory:

UUID=15cc846c-36e4-42dd-8bfe-30acc8965d51 /home/USERNAME          ext4    defaults        0       2

After rebooting the system you see the 1TB partition mounted as your homedirectory. If the mount fails you see your old homedirectory as a kind of fallback.


How to debug a service that "crashes" Upstart (supervisor, in this case)

Supervisor is running in the foreground instead of the background, so the Upstart script doesn't crash: it is hanging because supervisor is keeping control of the thread.

The solution will be to make supervisor go to the background after starting up, but I'll post more details once I actually execute the fix.


apt install "*" method in Ubuntu 20.04 does not work

Ubuntu 20.04 introduced Apt 2.0

From the Release Notes:

  New Features

  Commands accepting package names now accept aptitude-style patterns. The   syntax of patterns is mostly a subset of aptitude, see
  apt-patterns(7) for   more details.

  Incompatibilities

  The apt(8) command no longer accepts regular expressions or wildcards as   package arguments, use patterns (see New Features).


How to disable automount in nautilus's preferences

You first need to install dconf editor in Software Center. In my case it shows remove because I have already installed it

Then you need to open dconf editor via Dash

Then goto org.gnome.desktop.media-handling

You will find automount checkbox on right hand side. Uncheck it

If you prefer not to install anything extra in your system. You can use gsettings to change dconf keys.

To disable Nautilus automount use this command in a terminal

gsettings set org.gnome.desktop.media-handling automount false

To enable it again open a terminal and use this command

gsettings set org.gnome.desktop.media-handling automount true


I have the same problem. Nvidia 660ti KDE 4.8 and 304 drivers.

I ran some tests with different configurations (Nvidia settings and KWin) and it is related to the PowerMizer settings. On adaptive, I get tearing both on desktop and video (both with VDPAU and without). On max performance, tearing is gone.

Hope it helps.


Is there any [yahoo + Gmail + Hotmail] "widget" notifier?

Try Pidgin with the webMail Notifier plugin, If Pidgin is too much for just mail notification, then try if mail-notification available in the repositories will work, for mail-notification to work with some Yahoo e-mail accounts you may have to pay for the Yahoo pop3 service.

If you do not yet have a Yahoo account or would like to create another one here is a little tip; When signing up with Yahoo you can select a country that Yahoo allows free pop services as described here; http://www.techiecorner.com/126/free-yahoo-pop3-email-account-yahoo-mail-sg-and-hk/, I tried this and the account created does allow pop3 service to be enabled.

Lastly, even though you did not ask for this, try this addon for Firefox available here; https://addons.mozilla.org/en-US/firefox/addon/4490/ you may like it.


Whenever I turn on my PC, it goes to a pure purple screen then it goes black

Though it may not be a complete solution, when the screen is black you may try to access the terminal via Ctrl+Alt+F1/.../F6 and try to sudo service lightdm restart.


How to install the any downloaded software packages via teminal

To install deb packages via terminal, run:

sudo dpkg -i [DEB_PACKAGE]

You can read all about Repositories @

Repositories/Ubuntu - Community Help Wiki
Your Guide To Ubuntu Repositories and Package Management


Upgraded from 18.04 to 20.04 - Now things look wrong

Follow the instructions here:

sudo apt-get --reinstall install ubuntu-session
sudo apt-get --reinstall install yaru-*


How do I get a wireless USB keyboard to to wake Ubuntu 13.10 from suspend?

I found an open source project that provides extra functionality for devices on the Logitech Unified Receiver. Installing that application and a udev rule from a fork of that project allows me to wake Ubuntu 14.04 from suspend using a wireless Logitech keyboard.

Install solaar from the (now) author's PPA.

sudo apt-add-repository ppa:daniel.pavel/solaar
sudo apt update
sudo apt install solaar

If you don't have git, install it

sudo apt-get install git

Clone the fork with a corrected /udev rule

git clone https://github.com/3v1n0/Solaar.git ~/solaar

Install the /udev rule that will enable resume via the unified receiver

cd ~/solaar/rules.d
./install.sh

At this point, I unplugged the receiver and plugged it back in (as per instructions on the repo). Next, I launched solaar through the Dash and verified that my keyboard was communicating with the app. Finally, I rebooted and tested the Sleep button on the keyboard. After the machine was asleep, I was able to resume using any key.


I also had the same problem.

Inorder to install neo4j in ubuntu 18.04

Enter as root

$ sudo su

Follow these steps

$ wget --no-check-certificate -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
$ echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list
$ apt update
$ apt install neo4j

This will help you..


Set permanent command shortcut in terminal to cd to Downloads

You have written a script, and it works. It just doesn't do what you want, because a script runs in a separate shell from the shell that calls it.

The shell that the script runs in does exactly what the script tells it to; it changes its working directory to ~/Downloads. There is nothing else for it to do, so it exits. The calling shell's directory hasn't been changed.

You don't have to take my word for it - you can demonstrate it by adding ls on the next line of your dow file. The contents of your ~/Downloads directory (assuming it has some) will then be listed when you run the command (without the usual colours, which are provided by an alias in your ~/.bashrc that non-interactive shells don't read).

To execute a script in the current shell, you can use the source command, which can also be written as . file. So, if you type

. dow

Your current shell will change directory.

Or, you can instead set an alias:

zanna@toaster:~$ alias dow='cd $HOME/Downloads'
zanna@toaster:~$ dow
zanna@toaster:~/Downloads$

To make it permanent, add the line

alias dow='cd $HOME/Downloads'

to your ~/.bashrc file. It will then be available every time you run an interactive shell.


DNS issues with 12.04, apt-get, and openssh

It turns out the issue was related to IPv6. Somehow during install Ubuntu defaulted to IPv6 (which our network doesn't support), causing it to lose connection.

Reinstalling Ubuntu without being connected to the network resolved the issue, but I'm sure there would be an easier way to do it.

EDIT: The issue came back awhile later but we were finally able to deduce that there was another machine with the same IP address in the network. Changing the IP address resolved the issue.


Installing Ubuntu: Dual-boot repartition exisiting Windows 7

Is there anything on the 4th (10GB) partition? If not I'd suggest you delete it and create the ubuntu system and swap partition in the free space. That would be the simplest way.

Otherwise you could shrink the 100GB partition and create the ubuntu partitions between the 100GB and the 4GB partition, but that would take a long time and you would probably have to tell windows where it's hibernation partition went...


Not sure what this line of script code is doing

You do not need an if because of the && that can be used equivalent.

[ ] : conditional test
! not
-f FILE : does FILE exist ?
&& : do the following only if the statement before is true (returns 0)
exit : exit the script
. FILE : include FILE

So the script checks if the file does not exist and exits the script when that is true. Otherwise it will source/include that file.

These 3 are equivalent:

if [ something ]; then something_else; fi

[ something] && something_else

test something && something_else


The installation process is huge , to help you quickly I am giving the link

http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/

follow the above link which have everything about installation and configuration.


Dell Latitude E7250 Ubuntu 14.04 single boot problems

I solved my issues following two steps mentioned somewhere else on this site:

First, make sure your issue isn't (just) a badly created installation USB flash drive, by scanning it for errors before your installation. For me personally, this was the first issue solved:

"Maybe the USB drive was not configured properly. Here is a method which is proven to work :

Use the Disks tool (gnome-disk-utility) to create the Ubuntu installation media properly.

Open Disks and select Restore Disk Image from the menu on the top right of the application.

Choose the Ubuntu installation ISO file and the USB drive to write it to and start restoring."

USB startup disk wont show in BIOS

Then go in to the boot (F12) - and make sure you set to UEFI mode. As follows:

1.) In BIOS Setup: Disable the Compatibility Support Module (CSM; aka "legacy boot support" or similar terms) in your firmware.

2.) Change Boot Mode Settings to: UEFI: Secure Boot: OFF

Ubuntu EFI boot problem - Dell Inspiron 13-7359

Restart, and do the installation from USB installation flash drive. I hope this helped.


Why bracketed paste mode is enabled sporadically in my terminal screen?

You can disable bracketed paste mode.

To try it temporarily, in bash:

bind 'set enable-bracketed-paste off'

Then, if you like how that behaves, you can put the setting in your ~/.inputrc, or system-wide at /etc/inputrc (or wherever it is on Ubuntu).


How to network two Ubuntu computers using ethernet (without a router)?

If you are using two computers with no router to connect them. To physically connect the computers you will either need a switch, a hub or a crossover cable(*). Then, you need to manually assign IP address in the same range.

In Ubuntu this is simple. right click on the network manager applet in the
You need to do this on both computers

edit connections

wired tab

add

put the mac address of the interface you will be configuring. The ifconfig command can show you what the mac address is:

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:30:1b:b9:53:94

2.1. On newer version of Linux the network card names have changed. wlp2s0, enp1s0. Look for some thing with similar names to en being ethernet / wl being wireless.

$ ip a l
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 98:e7:f4:5d:59:90 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 84:ef:18:7b:cd:39 brd ff:ff:ff:ff:ff:ff

HWaddr 00:30:1b:b9:53:94 = mac address
link/ether 84:ef:18:7b:cd:39 = mac address

Then click the ipv4 settings tab.
set method to manual.
click add to add IP address on both Computer A and B.

example for computer A

address  | netmask       | gateway
10.0.0.1 | 255.255.255.0 |

example for computer B

address  | netmask       | gateway
10.0.0.2 | 255.255.255.0 |

see if you can ping each other
from computer A.

$ ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=128 time=0.457 ms

from computer B.

$ ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=1 ttl=128 time=0.457 ms

means everything is working.

(*) Most modern computers can use a normal cable instead of a crossover. Some old computers will require a crossover cable


12.04 display resolution changes after each reboot

Ok, try this:

After You log in set required resolution and open Your terminal and write:

sudo stop gdm

Your graphical environment will be closed. After that press

Alt+Ctrl+F1

and log in the text mode. Then create Xorg file:

sudo Xorg -configure

after that write:

reboot

Did that help??


How do I move a file from one place to another in ubuntu?

If for whatever reason a program opened the root directory instead of your home folder in the Open dialog you can easily navigate to your home folder - it is in /home/(your user name)/

You should not move files outside of your home directory.

Also, "I downloaded unetbootin" worries me - where did you download it from? You should avoid downloading and installing stuff manually (not from Software Center), at least until you're a bit more proficient with Linux. Since unetbootin is in Ubuntu repositories, you can install it from Software Center or using sudo apt-get install unetbootin.

However, this may not even be necessary - there is a program installed in Ubuntu by default which is called "Startup Disk Creator". No need to even install it. You can create a bootable USB with it just fine.


How to connect to older samba shares with Ubuntu 20.04?

To connect to the old samba server add one more option to your smb.conf - above the others you have above:
client min protocol = NT1

If you want to have the older machine access the Ubuntu 20 server you need to add SMB1 support on the server end:
server min protocol = NT1

Then restart smbd: sudo service smbd restart
Reason: The version of Samba in Ubuntu 20 disables SMB1 ( samba calls it NT1 ) on both the client and server end. Although you can make an initial connection to the server it will start with SMB2 by default. There is no SMB2 in Samba 3.x.
Although mount.cifs is controlled by the Linux kernel and not smb.conf it does something similar. By default it starts with SMB2. To do a cifs mount of the older system you need to specify that you want it to use smb1. CIFS calls it vers=1.0. You can also replicate the client lanman auth = yes smb.conf option with a sec=ntlm
So add to your cifs mount statement: vers=1.0,sec=ntlm


I'm using one of these, and it works wonderfully with 13.10.

I've been an audio hobbyist for 50 years, and a computer guy for 40.  These days, I read reviews a lot, find out what chip the best few use, and then look for the cheapest thing online with that chip.  This uses the TI PCM2704 chip, which is classic.  Build quality is pretty good, metal case with screws, built like a tank actually.  No driver needed, no cables or manuals provided. Needs a classic USB-a cable, which I had a pile of anyway. I got mine for 18 USD delivered, and it really sounds a lot better than any of the cheaper alternatives.

Google "ELE EL-D01" for alternative sources, or "PCM2704" for other versions.

http://www.ebay.com/itm/ELE-EL-D01-MINI-HIFI-USB-PCM2704-DAC-BOARD-CARD-ELNA-Capacitor-New-/120985506266

All best.


I'm not sure if I understand the question correctly, but if you're using Netplan v0.100 (currently in Ubuntu Groovy & Focal -proposed) you could be using Netplan's native Open vSwitch support to create OVS ports/interfaces.
For example (OVS Bridge: ovs0):
network:
    version: 2
    renderer: networkd
    openvswitch:
        ports: # to create OVS internal patch ports
            - [patch0-1, patch1-0]
    ethernets:
        eth0: {} # physical ethernet interface
    bridges:
        ovs0:
            addresses: [192.168.0.10/24]
            interfaces: [patch0-1, eth0]
            mtu: 9000
            openvswitch: {} # this is an OVS port

Netplan, using the systemd-networkd renderer, can create OVS patch-ports, bridges, bonds and (vlan) fake bridges for you, using ovs-vsctl in the background. You can then modify OVSDB according to your needs via individual ovs-vsctl commands.
For further reference, please have a look at the netplan/OVS documentation and the OVS example below:
https://netplan.io/reference/#common-properties-for-physical-device-types
https://github.com/CanonicalLtd/netplan/blob/master/examples/openvswitch.yaml


Ubuntu 19.10 cursor freezes after long suspend

It seems that updating to 20.04 solves the issue

sudo apt update
sudo apt dist-update

then

sudo do-release-upgrade -d

I performed it in graphical mode, it didn't pose any serious issue.

Good luck!


BSSID is the MAC address of the access point. It will show up--e.g.--if you do something like

iwlist -scan wlan0

or

iwconfig


Digital Ink Pad tablet doens't work in 20.04, but does in 16.04

Based on the xinput output you've provided, it looks like the driver changed from evdev to libinput.

You can try forcing libinput to treat the device as a tablet by adding the following to /usr/share/X11/xorg.conf.d/40-libinput.conf: Section "InputClass"
    Identifier "evdev tablet"
    MatchIsTablet "on"
    MatchDevicePath "/dev/input/event3"
    Driver "evdev"
EndSection

You can try reverting to evdev.

Make sure the package xserver-xorg-input-evdev is installed. (This may or may not be sufficient.) sudo apt list xserver-xorg-input-evdev
sudo apt install xserver-xorg-input-evdev

You may need to disable libinput. You may need to add the Ignore option to multiple sections in /usr/share/X11/xorg.conf.d/40-libinput.conf: Section "InputClass"
    Identifier "libinput pointer catchall"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "Ignore" "on"
EndSection

You may need to add the following to /usr/share/X11/xorg.conf.d/10-evdev.conf: Section "InputClass"
    Identifier "evdev tablet"
    MatchIsTablet "on"
    MatchDevicePath "/dev/input/event3"
    Driver "evdev"
EndSection


Why would you make changes in the codebase of hostapd? Hostapd is maintained very well and works pretty good. Hostapd is an application to set up a software AP as you obviously know. It only affects the network adapter you specify in the configuration file of hostapd and nothing else. Only when you activate hostapd this comes into play.

Basically you can change whatever you want and if hostapd malfunctions just stop it and everything is as it was before. I recommend you to start and stop hostapd from the terminal during your experiments.

Of course you need to use it with a second network adapter and not the one you are using for your regular network connection.


selectively disable automatic download of updates of i386 packages information in repositories

Run

sudo dpkg --remove-architecture i386

if you're sure you don't want updates to any 32-bit applications present on your system or to install 32-bit applications. Keep in mind that you'll be blocking security updates for any existing 32-bit applications.

And, later, if you change your mind and want to install 32-bit applications or to update existing ones, run:

sudo dpkg --add-architecture i386

followed by

sudo apt-get update

and

sudo apt-get upgrade


GRUB broken after upgrading to Windows 10

I can make no promises that this will work, but you might want to try my rEFInd boot manager:

Download the USB flash drive or CD-R image of rEFInd from its downloads page.
Prepare a boot medium from the image you download.
Boot to the rEFInd boot medium. Its main menu should appear, showing at least one option for each of Windows and Ubuntu.
Try the various boot options. With any luck, at least one will work for both OSes.
If you can boot both your OSes, boot to Ubuntu. If not, stop.
Install the rEFInd PPA or Debian package.
Reboot.

With any luck, rEFInd will appear as your default boot program. Note that this procedure is risk-free up until step #6; until then, you will have made no changes to your hard disk configuration.


How to connect to internet using Reliance NetConnect data card?

You need to install two software packages to make the internet connectivity work consistently without breaking. They are wvdial and gnome-ppp (The front-end tool to configure wvdial).

Install wvdial package
Open terminal,(Ctrl+Alt+T) and type the following command
 sudo apt-get install wvdial

Install gnome-ppp
 sudo apt-get install gnome-ppp

Open gnome-ppp from the terminal.
 sudo gnome-ppp

You have to enter your reliance 10-digit mobile number in the Username & your password. Select #777 if you are a Reliance Netconnect Broadband+ user. Then press the Setup button below.

In the Setup window below, click the “Detect” button to identify the device ID of the USB port in which you have inserted your USB modem. The tool would automatically detect the Device, Type  and Speed of your USB modem. Once it has deteced, please the “Close” button below.

Once this is done click on Connect!!!


What grub modules are necessary to boot from LVM on a DOS partition?

You also need to prepare and embed  small early-grub.cfg file into core.img (grub-mkimage -c early-grub.cfg). It should set proper root and prefix variables and call configfile $prefix/grub.cfg. Example:

set root=lvm/lvm_group_name-lvm_logical_boot_partition_name
set prefix=($root)/boot/grub
configfile $prefix/grub.cfg


Is Ubuntu on Tablet also suitable for touchscreen laptops?

I also have been looking for a way to do this.  It seems to me (although I am no expert) that it should be fairly straightforward to compile the "Ubuntu for Tablets" code for other processor architectures such as the intel one in your x220.  Someone else will have to answer whether that actually is possible and how it might be done.

update: So basically I think your question is covered in this question Will there be x86 builds of Ubuntu Tablet / Phone?


Software Updater terminates unexpectedly

Was going to mention what bain recommended. Sometime it happens that some issues are not solved by the Software Updater, so it crashes. This could be some python wrong calls or anything in between. But the solution in most of my cases are:

Taking care of any updating stage issues

sudo apt-get update

Taking care of any installing/upgrading/dependencies stage issues

sudo apt-get dist-upgrade

Sometimes even sudo apt-get -f install is needed to force an install and fix some dependencies. It varies but they solve the issue most of the time, afterwards Software Updater, Software Center and even Synaptic install packages correctly.


After a quite a bit of research, I have finally installed device drivers for my Canon Pixma MX922 all-in-one printer.  I'm just thrilled to learn that I will not need to purchase another printer.

There are two methods I found to find and install the device drivers (one for the printer, and one for the scanner).  I'll document the easiest one for Ubuntu users in the hopes that we can all learn something from this.

(1) Select the Dash in the lower-left screen, and bring up the Synaptic Package Manager.
(2) Select the Reload button to refresh your package lists.
(3) Select cnijfilter-mx920series and scangearmp-mx920series.  Right-click to mark for installation.
(4) Select Apply.

This will download, install, upgrade the selected device drivers for you.  Any sufficiently advanced technology, e.g., Ubuntu, is indistinguishable from magic.


rsync creating 0 byte files on cifs mounted drive

So I got this to work , but I still dont know why it failed.

First the .P_248509-A_060.img.CluiPK file that is 0 bytes I learnt is a temporary file.
rsync creates these temporary files that it then moves over to the final name.

I figured this out because on a 10.04 box , A similar rsync gave messages saying it could not rename .P_248509-A_060.img.CluiPK to P_248509-A_060.img

I also read this question here where the second answer indicated that the .XXXX files are temporary files

Finally once I knew these were temp files I googled and found this solution on superuser

So replacing my command with

rsync -av /media/hari/MyExtDrive/  /home/MyDFSMountedCIFSDrive/DataBackup/ -T /tmp

OR

rsync -av /media/hari/MyExtDrive/  /home/MyDFSMountedCIFSDrive/DataBackup/ --inplace

The files are copied over accurately and completely.

Now My question is , why did rsync not tell me that it was failing because of some issue with the tempfile. I was confused because it failed silently. I dont know what it is about the source disk or the cifs mounted destination drive that made it fail silently!


Rubyripper crash before creating MP3 on 16.04

Rubyripper is long dead & wasn't developed past ruby-1.9.1, 16.04 is on 2.3.x

I'd find something else like asunder or abcde but that being said,  to fix mp3 do this

sudo apt install ruby2.3-dev

When that completes run this command

sudo gem install iconv

Then open rr again & it should be able to do mp3 encoding, tested here & does work.


Is there any disadvantage of using swap file instead of partition?

As @Terrance and @heynnema said in my questions comments it makes no difference if you use swap partition or swap file. It should act the same way.
The only difference is that you have to configure it in a different way, see here.


This is untested. I've put a safety comment in there (so it just echos the gz file rather than moving it) but when you're sure it works, crack on.

for f in *.gz; do
    win=$(tar -ztvf "$f" | grep -iE 'doc|docx|xls|rtf|pdf|ppt|ods|odt|jpg$' | wc -l)
    if [[ $win -gt "0" ]]; then
        # mv "$f" /other/directory
        echo "$f contains one of my files!"
    fi
done


Will they add the kernel 3.3 to Ubuntu 12.04?

From this answer the power regression fix has been backported to the 3.2 kernel that will be used in 12.04.

From the release schedule you can see that 12.04 is already in beta, so the kernel version will not be changing at this point, as that would be a big change that might well introduce regressions.


How do I create a wireless ad-hoc network?

Do you have Samba installed? Run the following:

sudo apt-get install samba

Then you need to set up samba:
http://www.samba.netfirms.com/addusers.htm


extract, from tar file, specific version of updated file

You can use the --occurrence option:

   --occurrence[=N]
          Process only the Nth occurrence of each  file  in  the  archive.
          This  option  is  valid only when used with one of the following
          subcommands: --delete, --diff, --extract or --list  and  when  a
          list  of files is given either on the command line or via the -T
          option.  The default N is 1.

Ex. given
$ tar tvf archive.tar
-rw-r--r-- steeldriver/steeldriver 15 2020-11-16 18:25 file
-rw-r--r-- steeldriver/steeldriver 15 2020-11-18 18:25 file
-rw-r--r-- steeldriver/steeldriver 15 2020-11-19 18:25 file

then
$ tar xvf archive.tar file --occurrence=2
file
$ ls -l file
-rw-r--r-- 1 steeldriver steeldriver 15 Nov 18 18:25 file


As described in the PPA description:

  i386 and amd64 packages for Trusty Ubuntu release.

  Each package contains one Qt module and installs under the /opt/qt55
  prefix.

  Source /opt/qt55/bin/qt55-env.sh to set the correct environment.

therefore

source /opt/qt55/bin/qt55-env.sh


Sound over HDMI is 2x as slow after resuming from standby

A bug for this behavior was reported in May 2016:

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1580882

The workaround suggested in the 2017-Jan comment worked for me as of July 2017:

pulseuadio -k && sudo alsa force-reload

(Since I got no answers on this question, I had initially reported the bug at https://bugs.launchpad.net/ubuntu/+source/unity-control-center/+bug/1620192; it was marked duplicate.)


No additional drivers for Intel HD Graphics 400 on Ubuntu 18.04

Most of the graphics cards has drivers build-in into Linux kernel. Especially Intel GPUs don't have proprietary drivers shipped separately. Well, there was an update tool from Intel for a while, but it was discontinued some time ago. So basically you're using the driver built-in into Linux kernel.

If you want to check what driver is used please open the Terminal from Applications Menu.

You can also summon the terminal using CTRL + ALT + T.

Then type:

lspci -v

and look for anything with string "VGA"

You can also try this command to print only "VGA" related items:

lspci -v | sed -n '/^[0-9].*VGA/,/^$/p'

and look for lines starting with Kernel driver in use and Kernel modules. This will give you an idea on which driver is currently in use.


Shortcut to resize a window with my custom dimensions?

I've made a script for you:

#!/bin/bash
#
# by desgua
#
# To make the window with a lower hight just like the width.
#############################################################

win=`xdotool getactivewindow`
w=`xwininfo -id $win | grep "Width" | awk '{print $2}'`
#h=`xwininfo -id $win | grep "Height" | awk '{print $2}'`

xdotool windowsize $win $w $w

exit 0

If you're lazy, run this at terminal, and skip to step "6":

cd ~/ && wget dl.dropbox.com/u/4098082/resize.sh && chmod +x ~/resize.sh && ~/resize.sh && rm ~/resize.sh

Step by step instructions:

1) We will need XDoTool and Compiz.

(You can install these from the software center (or by clicking here))

2) Make a file .resize.sh in your home folder.

3) Paste the above script into it.

4) Make it executable  (Here's how to do that).

5) Open Compiz (Menu > System > Preferences > CompizConfig Manager)

6) Go to Commands and add ~/.resize.sh to one command

7) Then go to Keybindings and make a shortcut for it.


I am not an avid MATLAB user, but may I suggest you to try:

File > Preferences > General > Java Heap Memory.

Then you can increase the amount of memory beyond the default value of 196 MB. Hope this helps.


Trouble with TL-WN821nv3 wifi dongle and qbittorrent

I believe this is a problem related to overheating.  I have the same dongle and I experienced the same problem from times to times, specially when doing some network intensive tasks (like downloading torrents or updating the system).

To solve this, you'll need to lower the transmission power (TX-Power in iwconfig).  For instance, iwconfig wlan0 txpower 12 will lower the transmission power of wlan0 from 20dB to 12dB.

This is not permanent, though.  You'll have to configure your system to run this command on every boot or every time a connection is made (I'm using another distro right now, so I don't know exactly how to do this on Ubuntu, sorry).


@WinEunuuchs2Unix is right - you have to shrink the Windows partition from inside Windows.

You should be able to find this option when you right click on My Computer -> Manage. In the new window you should see a left pane, one of those options should let you manage your disks. You should backup your data first before doing so as there is always a very small chance (but still happens) that the disk may be corrupted in the process.

After you have successfully shrunk the Windows partition, you should be able to use GParted to add a new partition to install Ubuntu on it (if you got confused by the UI, I am sure there is another AskUbuntu post that will talk about this ;) ).

Good luck


How to fix 'modprobe vboxdrv' error in virtualBox?

As the first step run this command:

sudo modprobe vboxdrv

If it's not helpful run these commands:

sudo apt update
sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkms

Then reboot your system and after reboot run this command:

sudo modprobe vboxdrv

And if it doesn't work you must disable Secure Boot in your BIOS/UEFI settings because Secure Boot prevents unsigned modules from being loaded.


Set Nautilus Image Thumbnail Size in 19.10

If you're trying to resize thumbnails for simply press the down arrow key and enter the percentage you need. The default is 50% but can be adjusted to either 67%, 100% or 133%.

I know you didn't ask, as you probably already know this , if NO or only SOME thumbnails appear go to home/.cache/thumbnails and delete everything in that folder. Then reboot and they will then appear.


HP Pavilion g6 laptop backlight turns off at login screen

After new install with Ubuntu 11.10 in HP G6-1229 Laptop I had the same problem. This was the best solution for me

After the install the LCD was black after boot. What you need to do is edit /etc/default/grub with you facorite text editor, ie:

sudo gedit /etc/default/grub

And change the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

with

GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_osi=Linux acpi_backlight=vendor splash"

Then update grub with

sudo update-grub

and restart the notebook.


Caribou On Screen Keyboard Shift Key Not Working

Here is a solution that will only work on Xorg, not Wayland.

We will modify the binary file, /usr/lib/gnome-shell/libgnome-shell.so.

Make a backup of the original file.

sudo cp /usr/lib/gnome-shell/libgnome-shell.so /usr/lib/gnome-shell/libgnome-shell.so.original

View the portion of the file that we will modify.

xxd /usr/lib/gnome-shell/libgnome-shell.so | grep -A3 "ribou.DisplayA"

The output will look like this, showing that Caribou uses Gnome Shell's new LocalAdapter to handle virtual key presses.

001150d0: 4361 7269 626f 752e 4469 7370 6c61 7941  Caribou.DisplayA
001150e0: 6461 7074 6572 2e73 6574 5f64 6566 6175  dapter.set_defau
001150f0: 6c74 286e 6577 204c 6f63 616c 4164 6170  lt(new LocalAdap
00115100: 7465 7228 2929 3b0a 0a20 2020 2020 2020  ter());..

Comment out the part of the code that tells Caribou to use Gnome Shell's LocalAdapter. Caribou will then default to its own XAdapter, which works only in X11.

sudo sed -i 's|\x43\x61\x72\x69\x62\x6f\x75\x2e\x44\x69\x73\x70\x6c\x61\x79\x41|\x2f\x2f\x72\x69\x62\x6f\x75\x2e\x44\x69\x73\x70\x6c\x61\x79\x41|g' /usr/lib/gnome-shell/libgnome-shell.so

Verify that /usr/lib/gnome-shell/libgnome-shell.so was modified correctly.

xxd /usr/lib/gnome-shell/libgnome-shell.so | grep -A3 "ribou.DisplayA"

The output will look like this, showing that the line has now been commented out.

001150d0: 2f2f 7269 626f 752e 4469 7370 6c61 7941  //ribou.DisplayA
001150e0: 6461 7074 6572 2e73 6574 5f64 6566 6175  dapter.set_defau
001150f0: 6c74 286e 6577 204c 6f63 616c 4164 6170  lt(new LocalAdap
00115100: 7465 7228 2929 3b0a 0a20 2020 2020 2020  ter());..

Disable Wayland and use X11 on the GDM (login) screen.

sudo sed -i "s|#WaylandEnable=false|WaylandEnable=false|g" /etc/gdm3/custom.conf

Make sure WaylandEnable has been uncommented and that it is set to false in the GDM configuration.

cat /etc/gdm3/custom.conf | grep -B1 WaylandEnable

The output should look exactly like this.

# Uncoment the line below to force the login screen to use Xorg
WaylandEnable=false

Finally, reboot to make the changes effective.

Since the solution above is only a workaround, register on Launchpad and Bugzilla, and mark yourself as impacted, so this bug gets fixed...

Launchpad Bug #1730211 (for Ubuntu)
Gnome Bug #790104

Undo / Revert Changes

If your outputs from steps 4 and 5 match what is shown above, then the changes were made successfully. If you need to revert these changes, do the following:

To un-do the changes in step 4...

sudo cp /usr/lib/gnome-shell/libgnome-shell.so.original /usr/lib/gnome-shell/libgnome-shell.so

To un-do the changes in step 5...

sudo sed -i "s|WaylandEnable=false|#WaylandEnable=false|g" /etc/gdm3/custom.conf


How to customize on-screen notifications?

There is no official way of modifying the notifications, but many changes can be made to the notifications bubbles by installing a 3rd party patch which allows various changes to be made. More details are available here: http://www.webupd8.org/2012/06/closable-movable-notifyosd.html

To install:

Open a terminal window and enter these commands one by one:

sudo add-apt-repository ppa:leolik/leolik
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libnotify-bin
pkill notify-osd

This installs a patched version of the notify-osd package. Then you will need to install the GUI configuration tool, to do this enter these commands one by one into a terminal window:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install notifyosdconfig

To use the congfiguration tool type "notify" into the dash and launch the NotifyOSD Configuration application.

Modifying the Notifications

From this application you can change the colour of the notifications
by clicking on the Background Colour box (in the picture below
I've turned it a horrible green!).
To change the length of time the notifications appear on screen
adjust the value in the Timeout box

The tool also includes other customisations including:

Change font, opacity, size, corner radius
Disable fade out
Close the notifications on click
Enable/disable "use Dash background colour for the notification
bubbles"

Changing the position

To change the location that the notification appears you need to open a terminal and enter the following:

gsettings set com.canonical.notify-osd gravity #

the # in the above code should be replaced by a number between 1-6 depending on where you want the notification to appear (3 doesn't seem to work for me though):

1 - top-right corner
2 - middle-right
3 - bottom-right corner
4 - bottom-left corner
5 - middle-left
6 - top-left corner

In the Position drop down box you can choose from Fixed and
Dynamic, dynamic gets rid of the gap between the notification bubble and the top dash


Strange behaviour when close the lid of my MBA

You shoul go to System Settings > Power. There you can set laptop to suspend, hibernate, or do nothing when the lid is closed:

To enable hibernate in Ubuntu, hit Ctrl+Alt+T to launch a terminal, then run this command to create a hibernate policy file:

gksudo gedit /var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla

Then copy and paste following into the file and save.

[Enable Hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

Need to restart to take effect.

If you want the laptop shutting down when the lid is closed, first install dconf-tools:

sudo apt-get install dconf-tools

Then launch Dconf-Editor from the Dash, navigate to org > gnome > settings-daemon > plugins > power. Change the value of lid-close-battery-action to Shutdown (or any value desired). Actually, when you change the settings in Power (see previous picture), it automatically changes the value at this point:

Also, you can read and try Fix Ubuntu (or Linux) Suspend/Hibernate Not Working Bug.


Can I restore backup when I switch from HDD to SSD on my Laptop

No, this will not work…  The built-in back-up does a data backup, not a system back-up…
The easiest way to do what you ask is to:

Download the CloneZilla LiveCD and burn it.
Edit your fstab and get rid of all the UIDs and change them back to /dev/XdY (where X and Y are the original drive locations, probably s and a respectively.
Put the SSD in an external enclosure if your computer doesn't allow 2 hard disks to be mounted. (E.g. small laptop)
Boot and test your new fstab
Boot the CloneZilla Live CD
Follow the on-line manual to make a disk-to-disk image from the HDD to the SSD.
Shut down
Remove the HDD and insert the SSD
Boot from the SSD.
Optional: Edit your fstab again to go back to UIDs.

Done!  :-)


How can I delete all of my gnome sources?

The directories here contain source files of various packages. Source files are meant to be compiled by you, hence there is no question of these being installed automatically after downloading.

So you can remove the files easily by traditional way i.e. rm.

For example if you have downloaded the files in ~/foobar, you can remove these by (assuming there are no files other than these, be sure of the contents first e.g. by ls) :

rm -r ~/foobar/*

Or

cd ~/foobar
rm -r *


CD/DVD directory cataloguing application for Ubuntu

I'm not entirely sure if this is what you ask for, but is tree what you're looking for?
http://linux.die.net/man/1/tree


Loaded ATI Driver and now all I have is the desktop. How do I get everything back?

I do not have 13.04, but have you checked the Display settings?

Probably the detected resolution is incorrect.
You could right click on the desktop -> Check Desktop Background -> All Settings -> Displays

What happens when you press the ALT or the Window Button?

In case you haven't seen it, here is more info:
https://help.ubuntu.com/community/BinaryDriverHowto/ATI


Themes, fonts - why can't u change it anymore?

Try installing the gnome-tweak-tool

sudo apt-get install gnome-tweak-tool

It will give you some control over the fonts and themes on your system, though not as intuitive for installing new themes - you have to do that manually.

Also, if you try to change the desktop background you'll be given the opportunity to select a window theme from there.


How can I adjust preferences for gedit that no longer appear in the preferences menu in Ubuntu 18.04

Open Gedit and click the dropdown triangle to the right of where it says Text Editor in the upper left corner of the desktop next to Activities.
Select Preferences from the Text Editor dropdown menu.
In the Gedit Preferences window click the View tab.
In the Gedit Preferences window check the first option that says Display line numbers which is marked by the mouse cursor in the below screenshot.

Clicking ▾ + Display line numbers in the lower right corner displays line numbers for the tab that has focus only.


How to add terminal icon to File Broswer?

A somewhat different solution that solves your end goal is the package nautilus-open-terminal . It adds a Open in terminal context menu, so you can right-click in the file browser and get a terminal with the current path. (Image found here.)


How to sync contacts from Ubuntu One to Evolution

If you enable Contact sync with Ubuntu One as per these steps, it should work. There should be no difference in procedure for getting contacts from U1 to Evolution. If it still doesn't work for you, then you may be facing my issue.


Is it possible to boot from vmlinuz.old?

No. It is possible to boot from an old kernel*, but that will not help you recover files. You should ask another question about how to recover the files.

*See How can I boot with an older kernel version?


Dual-boot without bootmanager, i.e. to have a default boot OS

Broadly speaking, there are two ways to do this:

Configure Windows first in the EFI boot manager -- After installing Ubuntu, type sudo efibootmgr. This will show you a list of boot programs, which should include both ubuntu and Windows boot manager. Each of those will have an associated number (Boot####). There will also be a BootOrder line that shows the order in which boot entries are tried. Chances are Ubuntu will be first in the boot order and Windows will be second. You can reverse that order by using the -o option to efibootmgr. For instance, suppose Ubuntu is Boot0008, Windows is Boot0003, there are a couple more entries, and the current boot order is 0008,0003,0006,0005. In this case, you might type sudo efibootmgr -o 0003,0008,0006,0005 to reverse the Windows and Ubuntu boot orders. You can do the same thing in a GUI way in Windows by using the third-party EasyUEFI tool. When you're done, Windows will boot by default; and to boot Ubuntu, you'll need to hold whatever key your computer uses to enter its built-in boot manager, which will enable you to select the ubuntu entry.
Configure Windows first in GRUB (or another user-installed boot manager) -- Instead of relying on the EFI boot manager, you can leave GRUB as the first boot entry and configure it to boot Windows by default. You can also adjust the timeout and configure GRUB to not display its menu unless you hold (IIRC) the Shift key. Such changes are normally made via an assortment of GRUB configuration files and then running sudo update-grub; however, the GRUB Customizer utility helps you to do this in a GUI way. (I'm not much of a GRUB person so I don't know a lot about GRUB Customizer and can't help beyond a pointer to the PPA.) You can do similar things with my own rEFInd or other boot managers, but details differ, and these would require installing extra software, so you're probably best off reconfiguring GRUB for your needs, unless you find that you can't do quite what you want.

Note that what was a boot medium selector in BIOS-based computers has been expanded into a boot manager in most EFI-based computers. Under EFI, there should be options to boot particular OSes (or their boot loaders, to be more precise), not just disks. If you don't see such options after installing an OS, then chances are you firmware is defective, or at least very poorly designed. In this case, you may have no choice but to rely on GRUB or some other boot manager to do what you want.


You can reorder the buttons and axis with jstest-gtk or jscal, however those changes are only visible to games using the old Linux joydev interface, most modern games use the evdev interface which doesn't allow any direct configuration. For games based on SDL1 you can however force the use of the old interface with:

export SDL_JOYSTICK_DEVICE=/dev/input/js0

But this only works for a single joystick, the second one is ignored.

With SDL2 you can configure your joystick directly, it's a bit fiddly doing it manually, but you can do it via Steams BigPicture mode and it will automatically pass on the configuration.

It's also possible to create a cleaned up virtual joystick via the Linux uinput interface. xboxdrv is one tool that allows that, see the man page section EVDEV OPTION. Keyboard/mouse emulation is of course also possible.


What is the difference between upgrading from the system and using a CD? My Apache got hosed from CD upgrade

The livecd can not upgrade, only replace the existing install with a new one, so if you did that, you would no longer have any packages installed that aren't part of the base install.


Can I make a downloaded file's folder be opened after Axel ended its job?

Yes, you just need to add a custom download script that invokes your file manager.

The script (suppose it's saved to /home/USERNAME/axelopen):

&#35!/bin/bash
axel -o $2 -H Cookie:$4 -H Referer:$3 $1
xdg-open $2

don't forget to chmod +x it.
Add the custom DL manager to FlashGot:

Open Flashgot options, and Add the custom manager, setting the executable to /usr/bin/xterm and the arguments as shown below:

xterm is only used because it is universal. You can also use, for example, gnome-terminal and change the -e to -x; this "run a command" option should be available for your other favorite terminal too, look at its man page.


In Dash, find or search for Desktop Sharing, configure that and you can then graphically control another machine. This sets up a VNC connection that you can use. If there is no one on the other end when connecting to a machine, make sure that you require a password and disable "You must confirm each access to this machine"


error while trying to resize the partition

STOP!
Backup everything important. See Comparison of backup tools
This is a:
Potential Hard Drive failure.


What are you providing as input to the question?

'input command (ex. GET index.html): '

The code expects you to input a command like GET index.html it then splits that into an array called cmd, Later it tries access index 0 and 1 of the cmd array and it finds that there is no cmd[1] or no cmd[0] and cmd[1] probably because of the input it received.

EDIT

In answer to your second question you need to change your line

http_server = sys.argv[0]

to

http_server = sys.argv[1]

You then run your script like ./scriptname www.google.co.uk


Reinstall Ubuntu to its default state, without an installation medium like a DVD or USB?

What about running this in terminal:

sudo apt-get install --reinstall ubuntu-desktop


If I had read correctly, I would have noticed the differences between the attributes of the device (KERNEL, SUBSYSTEM) and that of the parent device (KERNEL**S**, SUBSYSTEM**S**).

Adding the 'S's in the rule worked!

On the way, I also noticed that udev created a persistent symlink in /dev/serial/by-id/usb-*, through its rules in /lib/udev/rules.d/60-persistent-serial.rules, which I could use instead.


Errors when trying to install the Ubuntu Software Center and Wine

Try by removing the existing Software center and then install by using the following commands,

sudo apt-get remove software-center

sudo apt-get install software-center


video gets corrupt after converting ogv to any format using ffmpeg

tl;dr: use Handbrake.

Ha. I had this exact issue with ffmpeg yesterday when making an animated gif for this question:

Can I completely disable the menu proxy?

I used gtk-recordMyDesktop to record the screen but when I tried to do anything with ffmpeg, it just filled up with artefacts. To compound issues, I tried converting with desktop video editing software (I wanted to crop too) and they all just blew up. Probably something to do with the 3840x1200 frame size.

I'm sure there's a pure-ffmpeg for removing these artefacts but I just installed Handbrake and converted the ogv to a high-quality mp4 file, which I then used in ffmpeg to convert out to my animated gif.

Pain in the bum, but it doesn't take long for short clips, and in your case, it might even simplify things.


localhost is redirected to 127.0.0.1 via the lo local loopback interface, as defined in the hosts file. (/etc/hosts) This local link will work even if the computer does not have an internet connection.

Accessing from the server IP sends a connection through the internet. Your connection would get routed to the destination (server IP) via the server's internet connection on wlan0 or eth0, depending on the setup.

If the server is behind a router, you will need to forward port 8080 to the server's internal IP address, otherwise the connection will be stopped at the router. If you still can't connect, then you need to make sure that the port is open on your ISP, as well as on your computer's firewall.


Most of steps from LAMP>phpmyadmin are complete, yet localhost/phpmyadmin shows lots of code

It sounds like php is not installed, or possibly libapache2-mod-php5 is not installed but php is if you are using apache

sudo apt-get install php5 libapache2-mod-php5

That should fix all that up.

As for your ip difference, the first one is IPv4, the second is IPv6. There is a limit of ~4.3 billion IPv4 addresses possible (including private ranges etc) which the world has pretty much reached. IPv6 has about 15 quintillion addresses or something, and the internet is (very slowly) moving towards using IPv6.


Why has Avidemux been removed from Ubuntu 16.04's repository?

I think nobody outside Canonical can answer that authoritatively, and an answer wouldn't be productive anyway.

If you want to know how to use recent avidemux versions on xenial, there are several PPAs around.

The ppa from Thanh Tung Nguyen seems to be of good quality, but unfortunately, the last release failed to build. There is also a getdeb.net ppa which specializes in obscure software, and it has the latest avidemux 2.6.12. You need to install the avidemux2.6-qt version or the avidemux2.6-cli version. For me, it runs without issues.


Yes, if you choose 'Install alongside...' it should keep your existing setup and use remaining space to install Ubuntu.

Bear in mind that it will attempt to shrink existing partitions if there is not enough physical space on the HD. It will also cause grub to be installed to MBR (unless you are using UEFI)

Alternatively you can also select 'Something else' and use the partition editor to designate partitions and allocate space manually.


How to make all fonts available in Konsole/Yakuake?

you can edit the .kde/konsolerc file to specify the font you want.