error while loading shared libraries: libssl.so.1.1 (and libcrypto.so.1.1)

Solved.

Problem is that if you install non-Ubuntu version of openssl (unpatched) you get the "error while loading shared libraries" error, because this is something that was added by Ubuntu devs to their distribution (and I still don't know why and makes no sense and makes lots of trouble). Source: https://askubuntu.com/a/830532/676863

So, mostly you will run into this if you compiled an official version from https://www.openssl.org/source/ e.g. the openssl-1.0.2m.tar.gz version. While official Ubuntu patched (million times according to the guys at #ubuntu on Freenode) version is still openssl-1.0.2g and is the one you want to patch, compile and install to make it working.

Solution (edited from https://stackoverflow.com/a/22634441/3108268):

I used this build https://launchpad.net/ubuntu/+source/openssl/1.0.2g-1ubuntu13 because it was most up-to-date.
wget https://launchpad.net/ubuntu/+archive/primary/+files/openssl_1.0.2g.orig.tar.gz (might need to add --no-check-certificate)
tar -xvf openssl_1.0.2g.orig.tar.gz
wget https://launchpad.net/ubuntu/+archive/primary/+files/openssl_1.0.2g-1ubuntu13.debian.tar.xz
tar -xvf openssl_1.0.2g-1ubuntu13.debian.tar.xz and mv debian openssl_1.0.2g-1ubuntu13
whereis openssl locate current openssl and delete/remove/backup it.
cd openssl_1.0.2g/ and patch -p1 < ../openssl_1.0.2g-1ubuntu13/patches/version-script.patch
make clean and ./config shared --prefix=/usr/local --openssldir=/usr/local/ssl -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)' (or maybe you just need plain .config, doesn't work for me)
make and make test and make install
openssl version

I also needed to reboot to be able to connect back in via SSH. All these commands were executed via web console on a cloud server. Downloaded file directory names might be different, I didn't check, so do ls -l.


Google Chrome on Ubuntu 16.04: Not Showing on Dash and Application Lists

Open ~/.local/share/applications/google-chrome.desktop in your text editor of choice, and look for this line:

Hidden=true

If it exists, change the line to read:

Hidden=false

Save the file, and Chrome should appear.


1st of all you have to create a network to connect to internet.

insert the modem
click on the network icon.
there you will be asked to enable mobile broadband.
click on the new broad band connection.
follow the steps and finish.
now edit connection and enter this value in the mobile broadband tab.

username: MTS

password :internet
save it.

now connect and it will connect normally.


There is a troubleshooting section here: https://www.intel.com/content/www/us/en/support/articles/000005499/mini-pcs.html

It suggests to do the following:

usermod -a -G audio,pulse,pulse-access,video,voice YOURUSERNAME
sudo add-apt-repository ppa:ubuntu-audio-dev/alsa-daily
sudo apt update
sudo apt install oem-audio-hda-daily-dkms
reboot


Ubuntu 14.0.4 freezes when I set up dual monitors

I upgraded to 14.10 and all my problems went away.


19.04 - Cannot access Windows file shares

when I click Registered User and input my credentials

  Username : My Microsoft account email address as linked to the single
  Windows 10 user account on the Win 10 machine Domain : 'WORKGROUP'
  (left at default) Password : the password linked to the MS account for
  Username

  When I click Connect, nothing happens, the windows goes back to the
  default 'Anonymous' option but with everything greyed out.

Let's say my email address / Windows account is: mork@ork.com. When you use Connect to Server:

USERNAME: mork
DOMAIN:   ork.com
PASSWORD: nanunanu


broadcomm wireless driver install problem

The reason you could no download is that you had two different download processes making requests at the same time. Make sure that Ubuntu is not trying to update when you use either the software center or synaptic. Reboot and then check first to see if Ubuntu has updates for you. Update then close the updater down. Now you can use either synaptic or the software center. Just do not try to use them both at the same time.


screen going to sleep while program still running in 11.10 32bit

I recommend you install caffeine - it is available via ppa from Launchpad.
Run the following in a terminal to install it.

sudo add-apt-repository ppa:caffeine-developers/ppa
sudo apt-get update
sudo apt-get install caffeine

It is a status bar application able to temporarily prevent the activation of both the screensaver and the "sleep" powersaving mode.


You're trying to install the wrong package - r-base-dev doesn't contain R tools for themselves, it contains the sources so you can compile them yourself. You don't need it to use R.

To install R interpreter you should install the package r-base, using a command like this:

sudo apt install r-base

If you don't need the latest R tools (i.e. released less than 6 months ago), you can safely install R from the default Ubuntu repositories, so APT can take care of all the required packages.

You just need to make sure to enable the universe repository from "Software & Updates" app.

I suggest you to disable previously enabled CRAN R repositories. You can do it from "Software & Updates" app.


What about the other partition after installing?

open terminal

Ctrl+Alt+T

Use the command below to launch fdisk (as root user), a partition mount managing utility installed in Ubuntu by default.  This application can also be found in the Ubuntu Dash, I believe it's just called "Disks" or something like that.

sudo fdisk

Select the associated HDD, then the associated partition (which is not labelled "D" in Linux, because Linux doesn't use that naming convention).  Right click it for a list of options, including the ability to set automount parameters either automatically, or manually.  You can control the name of the partition in Linux, reformat/delete partitions, the mount location, mount options, etc.

Google search "How the Linux filesystem works" to find more information about the Linux file system.  I highly suggest it.

How the Linux File System Works; breif summary

There are layers of software that mount filesystems.  Partitions are just digitally divided filesystems, allowing a computer to detect it as more than one device, but Linux can do all that and it can do it with any file system that can ever be created.  You can mount any partition in any format, and it will always successfully read the data.  Then it mounts it inside another filesystem.  One giant filesystem starting with / is the mapping strategy that Linux uses for all digital data, and it flawlessly mounts any hard drive format to it.

Exceptions, more like technicalities, would only include certain communication formats such as MTP, which I don't know much about, but it makes some very weird changes to filesystem management, and a second communication program has to be designed for it.

TLDR;

Your D:\ partition should be detectable by Linux automatically.  If it is not you should find out why, and use partition managing software and find the partition.  Use an application called disks if you search the unity dash for it, or fdisk if you run it from the terminal.  If this application shows an NTFS filesystem of the same size as your D:\ used to be, then just right click it, change the properties so that it automounts on boot.  It's really easy software, I can't write a guide for using it for you thats too much haha.  Go google it, if you still need help, there are many articles and videos out there about running powerful partition managers like fdisk on Ubuntu.  There is also existing support articles written about what to do if Linux isn't detecting a partition, and you should read some.


How can I see systemd-resolve dns cache?

As mentioned by bac0n, you can use the following command to send signal USR1 to systemd-resolved:
sudo killall -USR1 systemd-resolved
This will NOT stop the service. It just tells systemd-resolved to write all the current cache entries (and some other information) to the system log.
You can then export the log messages written by systemd-resolved to a text file with the following command:
sudo journalctl -u systemd-resolved > ~/resolved.txt
Open the text file generated this way in the text editor of your choice and search for CACHE:. After this the list of cache entries will follow.
Please note that the text file might contain several CACHE:.


How can I enable the drivers for beats audio speakers for hp envy dv6?

This was done in my own HP envy and this process works on all HP laptops containing beats audio.

STEP 1

Install hda-jack-retask from https://launchpad.net/~diwic/+archive/hda . Download this small application according to your version of Ubuntu. After the completion of download, install the app.

STEP 2

After the app is installed, go to the terminal and type hda-jack-retask which opens the file. Open app using terminal

STEP 3

At the top, in codec section, select IDT 92HD91BXX codec.

This code varies with various models. Check it STEP 4

Check the “ Show unconnected pins” at the right side. STEP 5

After this, you will see different types of unconnected pins of your sound driver. You have to map these pins to the right part of the beats audio drive. Care must be taken at this point.

You can see there are various types of pins. We are not aware about these things. Even I don’t know

what I am doing and is confusing. BUT do not worry at all.

You just have to play on three pins. They are 0x0d , 0x0f and 0×10.

STEP 6

Go to the section having pin id : 0x0d .

Change (Internal Speaker, Front side) to “Internal speaker”.

STEP 7

Go to the section having pin id: 0x0f.

Change (Not connected) to “Internal speaker”. This part is about the under-display speakers.

STEP 8

Go to the section having pin id: 0×10.

Change (Not connected) to “Internal speaker (LFE)”. This part is about the sub-woofer.

STEP 9

You are finally done with those pin settings. Apply it now. You can test with some sound. Check whether all the speakers are producing desired sound. The settings must be done as in following picture.

Do as it is

STEP 10

If everything is all right, install boot override from the bottom right side and restart your device.

Finally you must have sound with beats audio. Enjoy the sound and music. Also plug in the headphones, it must disable the external sound when the headphone is plugged in.

you can visit here for more information. http://www.chromeearth.com/enable-beats-audio-in-ubuntu/


System requirements for installing kubuntu 14.04

The best option is to google it to know more.

Desktop & laptop

Required

Processor   1 GHz (x86)

Memory  512MB

Hard drive capacity 4GB

Video card  VGA @ 640×480

Recommended

Processor Better than 1 GHz (x86)

Memory   1 GB

Hard drive capacity   10 GB

Video Card VGA @ 1024×768

follow this link http://en.wikipedia.org/wiki/Kubuntu#System_requirements


Ubuntu 14.04 Installation Type screen shows no partition for Dual Boot Windows 10 and Ubuntu 14.04LTS

The first thing you should do is install windows 10. From there Using disk management you spit a portion of your harddrive and leave it as free space. Then with you efi bootable usb you run the linux install process. Make sure that the installer has launched in efi mode and not bios mode. To do this on the installation you can type [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
If it launched in UEFI after you hit installation you should get the option to install Ubuntu alongside window.

So important things:

Install Windows 10 first.
Have a usb UEFI bootable with linux(I use rufus to make mine.)
Using a partition tool, shrink your volume(I have 25gb for my linux.)
Launch Linux and make you it booted in UEFI mode using [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
An option to install Ubuntu alongside windows should be present, just install.


mountmanager only opens from command line not launcher

I changed the desktop file listed below after a little research.
I still wonder where the fault lies as this just became a recent problem.

/usr/share/applications/mountmanager-gtk.desktop

changed Exec=mm to

Exec=/usr/bin/mountmanager


I worked out the solution. Somehow QuickEdit Mode became disabled. I right clicked on the top bar, selected Properties and re-enabled it. Works fine now.


There's no simple answer to this. It's most likely you've installed a virus / malicious software that's used to hack your computer .
Your best best it to wipe the system, scan for viruses & check what programs you've installed before to avoid repeating the same mistake .
I'd also check all attached devices & router settings to make sure the hacker didn't leave a backdoor into your network .


I believe you used the Disks manager to encrypt the partition. I've done the same on my USB drive.

How you did it doesn't matter since you're going to format back you USB drive to FAT system

Just copy the files on your computer, format it FAT32 with the Disks tool, and copy back your files on your USB drive


Touchpad nearly inactive in Ubuntu 14.04

Reinstall the touchpad driver :

sudo apt-get --purge autoremove xserver-xorg-input-synaptics && sudo apt-get install xserver-xorg-input-synaptics


Nvidia driver not workin on Ubuntu 14.04 LST

I have running to this situation multiple times . Here is how I fixed it :

go to Nvidia website and download the lastest version of GT 755M SLI driver(make sure that you have selected right with x64 or x32).
then press ctrl+alt+F1 open console .
purge your installed Nvidia driver before installation.

sudo apt-get purge nvidia
Remove Xorg.conf for the resolution fix

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
stop lighdm before driver installation (this is required)

sudo service lighdm stop
now go to your Nvidia driver file path and install it.

cd path/to/file
 sudo chmod a+rwx Nvidia-xxxxxxxxxxx.run
 sudo ./Nvidia-xxxxxxxxxxxxx.run
after installation ,reboot

sudo reboot

Finally , Relax and You're Welcome


How can I access Windows shares after changing DNS servers (e.g. switching to OpenDNS)?

I discovered the problem was I had recently started using OpenDNS and Samba resolves local hostnames using DNS. Of course, OpenDNS can't resolve my local network hostnames.

The solution is to edit your Samba configuration so that the hostnames are resolved locally and then restart Samba:

Edit /etc/samba/smb.conf (To edit it within the terminal, run sudo nano /etc/samba/smb.conf. To edit it within gedit, aka Text Editor, run gksu gedit /etc/samba/smb.conf from the terminal.)
Change the line ; name resolve order = lmhosts host wins bcast to name resolve order = lmhosts wins bcast host (note remove semicolon and change order)
Restart Samba from the terminal:

Maverick and later: "sudo restart smbd"
Lucid and before: "/etc/init.d/samba restart"


Command Line:

To change the labels of drives use one of these commands:

sudo e2label /dev/sdc6 Data

OR

sudo sudo tune2fs -L Data /dev/sdc6

Replace /dev/sdc6 with the specific drive you want to label and Data with the desired label.

Use sudo fdisk -l to find drive names.

Source

GUI:

If you prefer GUI option than you can use Gparted.

To install Gparted hit Alt+Ctrl+T to open terminal and run following command:

sudo apt-get install gparted

Once installed hit Alt+F2, type gparted and hit Enter or search for gparted in Unity Dash and run it from there.

Make sure the drive you want to label is unmounted, if it's mounted you can unmount it in Gparted, right click on the drive and select unmount.

To label a drive right click on the drive you want to label and select Label, enter the desired label.

Click on the apply button in toolbar. That's it!

How to hide "SYSTEM" partition in Nautilus:

Create a file: 99-hide-some-disks.rules
Insert the following line to the file: KERNEL=="device name", ENV{UDISKS_PRESENTATION_HIDE}="1",

Where device name is sdaX or hdX
Copy the file to /etc/udev/rules.d
Reboot computer, now the drive from a file is invisible (you can still mount it by hand only).

Source: Thanks to Benjamin


Accidentally Wiped out Hard Disk With Windows 8 while installing ubuntu 13.04, Is there any way to recover?

If you have a Ubuntu bootable disc or USB device, use it to boot up your machine. Then select Try Ubuntu and check if your HDD has the Windows files or not and let me know.


Configuration server problem after changing /tmp mountpoint: how to solve?

This appears to be a sticky bit problem. /tmp needs to have permissions of 1777 (drwxrwxrwt ), please note the last 't' flag.

Compare permissions of /tmp using ls -ld /tmp with new and old partition and if it is different,

Try changing permissions on new partition.

sudo chmod 1777 /tmp


(s)mplayer with smb sometimes hangs, can't be killed, only reboot works

In this particular instance, ps -ef|grep mplayer shows something like

user 123 1   smplayer /run/user/gvfs/somethingsomething-smb
user 124 123 mplayer <defunct>

and the two cannot be killed, however, by killing gvfsd, the mplayer process seemed to return from its uninterruptible sleep, and I could play movies again.


How can I get my broadcom wifi card to work?

I believe that one or more drivers that require blacklisting are still loading. Please open a terminal and do:

sudo -i
echo "blacklist b43"  >>  /etc/modprobe.d/blacklist.conf
echo "blacklist bcma"  >>  /etc/modprobe.d/blacklist.conf
echo "blacklist brcmsmac"  >>  /etc/modprobe.d/blacklist.conf
echo "blacklist ssb"  >>  /etc/modprobe.d/blacklist.conf
exit

Reboot and run again:

lspci -v

We hope we see the driver in use is only wl and not bcma, bcma-pci-bridge, etc. and that your wireless works as expected.


How to enter a tab character in gedit if replacement with spaces is set up?

You can insert a literal Tab character in gedit by using the GNOME Unicode input mode:

Ctrl + Shift + U

and then enter 9 followed by Enter. The horizontal tab character is Unicode code point U+0009. This will insert a tab regardless of your preferences to expand tabs or not.


I think it just that typo, It should be indicator.Label = "new label"; with capital L.
Here is my complete working showcase (Tested on Ubuntu 14.04):

indicator_demo.cs

using Gtk;
using AppIndicator;

public class IndicatorExample
{
        static Window win;
        static  ApplicationIndicator indicator;
        static int c;

        public static void Main ()
        {
                Application.Init ();

                win = new Window ("Test");
                win.Resize (200, 200);

                Label label = new Label ();
                label.Text = "Hello, world!";

                win.Add (label);

                indicator = new ApplicationIndicator ("my-id",
                                                                           "my-name",
                                                                           Category.ApplicationStatus);

                indicator.Status = Status.Attention;

                Menu menu = new Menu ();
                //menu.Append (new MenuItem ("Foo"));
                //menu.Append (new MenuItem ("Bar"));

                indicator.Menu = menu;
                indicator.Menu.Show();
                indicator.Label = "init label";

                win.ShowAll ();

                indicator.Label = "label2";
                c = 0;
                GLib.Timeout.Add (1000, new GLib.TimeoutHandler (update));

                Application.Run ();
        }

        public static bool update()
        {
                c+=1;
                indicator.Label = c.ToString();

                return true;
        }
}

This was a mod of Ubuntu Wiki: Application Indicators C# example.
Compile & Run to test:

dmcs -pkg:gtk-sharp-2.0 -pkg:appindicator-sharp-0.1 indicator_demo.cs
mono indicator_demo.exe


Problem mounting ntfs partition to /media

The fstab entry looks fine. But since you have entry in the fstab, root will try to mount the partition while booting. So root user should have permission in the folder /media/storage

So change the ownership of the folder by giving the following command

sudo chown root:root /media/storage

and then give the permission to every user who want to access it

sudo chmod -R 777 /media/storage

reboot and it should mount properly. After it's mounted , create a symlink using the following command and you should see a media folder(shortcut?) in your home

ln -s /media/storage /home/<username>


How can I install another Operating System through MAAS?

In version 1.7 MAAS supports Windows, Centos and SuSE.

Changelog


After 9 months, Canonical expects you will have upgraded to 15.04 and they will not be making new patches or security updates.  For the long term support (for those who don't want to upgrade every 6 months) try Ubuntu 14.04.


Help! I disabled both of my monitors. What can I do?

You might be able to use xrandr to turn your monitor back on.
Switch to another terminal with ctl-alt-f1, login and typing xrandr will list your monitors. (assuming xrandr is installed- you might have to sudo apt-get install xrandr)
From there it'll be something like xrandr --output FILL-IN-NAME-HERE   --auto

Hope it works for you


Ubuntu 14.04 LTS Wi-Fi problems (network unclaimed)

You have the classic dilemma, very new hardware and a very old kernel version. Your 8086:24fb device isn't supported by the driver iwlwifi until kernel version 4.6. You installed Ubuntu 14.04, a 3+ year old version that uses a much older kernel version.

I can write an answer that shows you how to experimentally, and with some peril, install the 4.6 kernel. However, I recommend that you instead install the Ubuntu 16.04.3 LTS release that includes kernel version 4.10 and fully supports your device. You can certainly try the live session to be certain that everything works as expected. When you are satisfied, install it.

http://releases.ubuntu.com/16.04/


Ubuntu filesystem breaks after rebooting from Windows

It is likely that your hard disk is broken. Best thing you can do is check the health status in Ubuntu or in Windows.

For Ubuntu for example you can do this with smartmontools in the terminal

First install smartmontools:

sudo apt-get install smartmontools

For short test to see if the harddisk passed the test:

sudo smartctl -H /dev/sda

Or to show all the output from the test

sudo smartctl --all /dev/sda

Alternatively you can install GSmartControl from the Ubuntu Software Store.

If you're stuck in Windows and can not boot in to Ubuntu, there are plenty of applications for checking hard disk health on the web.


How can I get my Canon Pixma MX 310 Printer working?

Go to the Canon website:

http://software.canon-europe.com/products/0010697.asp

Download the MX320 driver (the driver contains all drivers) download the deb and install for both printing and scangear. This should get printing and scanning working.


If you have set up your own VPN, you can modify the following line in the openvpn configuration file.

push "redirect-gateway def1 bypass-dhcp bypass-dns"

Change that to

push "redirect-gateway def1 bypass-dhcp"

and change the default configuration:

push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"

to

push "dhcp-option DNS 10.8.0.1"

Assuming 10.8.0.1 is the gateway you setup for your vpn clients. Note: Normally you don't want DHCP to go over VPN, if you do, remove the bypass-dhcp also.

Also make sure your server can handle the traffic by adding the following to the firewall rules.

iptables -v -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

If those doesn't fix not your problem, then you need to look at your routing table on your client side to ensure that the gateway route over 10.8.0.1 has lower metric over the gateway configured on client machine (typically 19.168.0.1 or something). You can modify increase the non-vpn gateway to a higher number, lower metric have higher routing priority.

On your client machine after connected to the VPN, check the routing metric.

ip route
default via 10.8.0.1 dev tun0 proto static metric 50
default via 192.168.0.1 dev enx00 proto dhcp metric 100
default via 192.168.0.1 dev wlps proto dhcp metric 600
10.8.0.0/24 dev tun0 proto kernel scope link src 10.8.0.4 metric 50
100.77.34.23 via 192.168.0.1 dev enx00 proto static metric 100
....

As you can see, 10.8.0.1 tunnel have the lowest metric and hence will be tried first. The 192.168.0.1 of the local ISP on ethernet interface will be tried next, and so on.


The error message at postmaster failed start and the netstat output show that there's already a process that uses the 5432 TCP port. Probably it's PostgreSQL already installed as part of your system. See if you have the postgresql-9.1 package installed, and the output of pg_lsclusters.

If you'd like to run your own self-compiled PostgreSQL side-by-side with the one pre-packaged for Ubuntu, it would be necessary to change the port configuration entry in your /usr/local/pgsql/data/postgresql.conf.

If on the other hand you want only your self-compiled PostgreSQL running and using the default port 5432, you may either remove the Ubuntu package or disable the cluster at boot by editing /etc/postgresql/9.1/main/start.conf


Retaining Permissions for External ext4 Drive While Reinstalling OS

Usernames play no role in unix file system permissions. Owner and group are stored as numerical ids. root always has the id 0, so on every linux (unix), if you mount your external drive, root owned files will still be root owned. This obviously will also hold true for your newly installed system.

For your user account it's a different matter. The default user in an ubuntu system usually gets the user id (uid) 1000. You can check which id you have by running id -u in a terminal. If you don't want to make any modifications to your external drive after reinstall, you need to make sure that your user has the same uid (and preferably gid (group id)) on the new system as on the old system. If your user has id 1000 then after reinstall it will probably be the case, too.

If your user ids differ on the new system from the old system, you can run a command like find -user oldid -exec chown newid:groupid {} + (or simply run chown -R newid:groupid dir on some direcotry) to fix permissions to your new user.


ADT plugin Error says Location of the android sdk has not been set up in the preferences

After searching a lot, I created a folder named 'android-sdk'(in my Eclipse directory) and inside that folder i created another as tools

android-sdk
|-tools

and in Eclipse -> Window -> Preferences

I entered this folders path in 'SDK Location' text box.


Touchpad , wifi and ethernet doesnt work

I'm not sure with most of that, but sometime my touchpad stops working and I just open a terminal window (CTRL + ALT + T) and enter synclient TouchpadOff=0 to turn the touchpad back on.

Sorry I can't help with the other stuff - but hopefully that at least helps with the touchpad!


I think you are under the wrong assumption. CTRL+L isn't bound to any system function by default. You can test this with Chrome, Nautilus and other applications that use the same keybinding.

My guess is that there is a key conflict in Sublime itself. I would recommend installing the FindKeyConflicts plugin to find it.


Is there a way how to customize my keyboard layout in Xubuntu in a graphical way (by clicking)?

Try installing xfce4-xkb-plugin, just press CTRL + ALT + T and type in the terminal:

sudo apt-get install xfce4-xkb-plugin

You can find it after the instalation in the desktop bar.


How to install Canon LBP 3300 printer in Ubuntu 18.04?

First, navigate to Settings -> Devices -> Printers and see that your printer is added. If not click the add button and select appropriate driver (select it manually, don't use the default driver).

Once printer is showing up in above dialog, click the printer to select and then click the "Aditional Printer Settings Button".

You will be presented with a small dialog box titled "Printers - localhost" you then select your printer and under the "Printer" menu click "Properties". You will get yet another dialog that will give you your configuration options for your printer.

The option to set up double sided is under "Printer Options":


Try deleting, from a tty, the .Xauthority file.

To log into a tty, press Ctrl+Alt+F6 and insert your username and password, and then:

sudo rm -v .Xauthority

Try then to log-in again, you can go back to the login with:

sudo service lightdm restart


You'll find the application called workspaces either from the menu button or typing Alt+F3 and typing workspaces. Then you'll find the name of the workspaces you have, you can also add and remove the workspaces. If for some reason you want to access it via the command line, you can also do it by typing xfwm4-workspace-settings.

I particularly don't name the workspaces, but I create a grid in which I navigate.


Canon Powershot doesn't show up as a device in Picasa

If you can access your Canon Powershot device in Ubuntu (access like an external mass storage), you could acces to it in Picasa.

In the Import From field, try to select the "Folder" item and then choose the mounting point where you access your cam with Ubuntu, then you will be able to import your photos.


Replace inbuilt Calender with GNOME Calender on Top Bar

You don't need to replace anything with another thing. The top-bar calender in GNOME Shell is in sync with the pre-installed GNOME Calendar. If you and an event to GNOME Calender, it would also appear in the top-bar calender.
Right now there seems to be no other way to add events to the top-bar calender, so you have to add events to the GNOME Calendar application.


How could I use my second laptop to extend my laptop's screen?

Check the laptop manufacturer information online. Most laptops only have their video card sources (HDMI, DVI, VGA, etc.) set to output only, but that is not always the case.

For the case of Ubuntu, if you can't use your laptop using those cables, a networked connection is possible. It seems that XDMX is the best possible route but it seems difficult to set up.
There is also Synergy, but that's not exactly the same thing. Synergy works by allowing use of one keyboard and mouse across multiple computers.


for loop over character array gives unexpected "("

the ( unexpected error indicates you're calling your script like sh scriptname instead of bash scriptname or, preferably, chmod 755 scriptname; ./scriptname
Dynamic array names are hard to work with in bash. You require a temporary variable to use with indirect expansion.

for SCANPOSITION in "${POS[@]}"
do
    tmp="ZSPOS_${SCANPOSITION}[@]"

    for ZEITSCHNITT in "${!tmp}"    # note the "!"
    do
        echo "Timeslice $ZEITSCHNITT in Position $SCANPOSITION !"
    done
done

You should always quote your "$variables" unless you know exactly why you want to leave the quotes off.
Also, get out of the habit of using ALL_CAPS_VARS -- some day you will accidentally use PATH and then wonder why your script is broken


try using,

sudo add-apt-repository --remove ppa:deadsnakes/ppa

It's works to me.


Cannot connect to Internet, probably an ip conflict

Unless one of your devices has a static IP, this is not an IP conflict. If it is an IP conflict, try restarting your computer. Otherwise, plug into your router and see if it helps. Then, try updating your router's firmware.


12.10: a setting good for both stereo upmix to Surround *and* 5.1 (hdmi)

The file ~/.mplayer/config can be used to set extension or program based settings:
add

[extension.mp3]
profile-desc="for .mp3 files"
af=surround=15,center=4,channels=6,sub=100:5

this way only *mp3 files will be mixed up to 6 channels


lightdm launches upstart with a proxy configuration. Why?

This was most likely caused by the contents of my ~/.profile file, which defined the relevant environment variables.

If this shouldn't help you, then this increasingly nuclear command should?

sudo bash -c " grep -ial $HTTP_PROXY ~/.* ||
               grep -rial $HTTP_PROXY ~/.* ||
               grep -rial $HTTP_PROXY ~ ||
               grep -rial $HTTP_PROXY /etc ||
               grep -rial $HTTP_PROXY $(find / -maxdepth 1 | grep -vP '(/$)|(/home)|(/tmp)|(/etc)') "


deleting a file from an user account when only the guest account is accessible

I found out how! :D

when you enter guest mode, you can create another account (this is needed since guestmode cant access root priviliges (at least it prohibites me) )
i created a new administrator account ( i think it will work as well with a normal one, but just to be sure )

you can create this account just by accessing the system settings.

you login into you new administrator account, open the terminal and type "gksu nautilus"
(maybe it works with just nautilus, but im not sure if you can access other users files without gksu)

in nautilus, navigate to /home/username/

then delete the .profile file.
rename ".profile (old)" to ".profile"

and my problem was fixed :D

(this was just my thingiee.. but you can also open, edit etc the file or restore it from a backup.)

thanks for the views
hope my little mistake can help others with similar problems :)

at least i learned some :D

k thx bye ! :P


Open the Backups application, from the pane on the left side click Folders to save, and click the + button to add another folder to the list of backed up folders. There are other options on the pane on the left side for Folders to ignore, Storage location and Scheduling. If you make a mistake, select a folder to un-save and click the - button to remove that folder from the list of backed up folders.


Full Install USB vs Persistent install
A Full install USB and a Persistent install USB both save data and installed programs after reboot.
Comparison between Persistent and Full install USB
Advantages of a persistent install:

You can use the persistent pendrive to install Ubuntu to another computer.

A persistent install takes up less space on the pendrive.

You can reset the pendrive by overwriting the old casper-rw file with a new one.

The install to pendrive takes less time.

Advantages of a Full install:

You can update and upgrade.

If you have problems or wish to modify, the solution is the same as with an internal install, (You can ask for help in these forums).

No ugly startup / install screen.

Better security, you can use full encryption

You can use proprietary drivers.

Hibernation works.

A persistent install is limited to a 4GB casper-rw and a 4GB home-rw persistence file, to get more persistence requires persistence partitions. Once casper-rw is full, the drive will not boot. YUMI and Universal can use persistent files greater than 4GB when installed on a NTFS partition and in BIOS mode. Ventoy can also use persistent files larger than 4GB.

Faster boot.

You can run VBox and use virtual machines.

Note that once booted, both methods run at about the same speed.
Full Install Method
One method for creating Full install USB: How to Create a Full Install of Ubuntu 20.04 to USB Device Step by Step


Trying to get Root Privileges for Ubuntu 15.10


Since you have installed Windows 8.1, Windows do not search for other OS. It Only search for Windows.

So it has suppressed the GRUB. You need to reinstall GRUB using Boot-Repair tool or you can reinstall your GRUB using Ubuntu cd running in live mode. See here


Setup an extra, non-root syslog server as a systemd service

So, it seems that something like below works for me as rsyslogd-port-9999.conf:

$ModLoad imudp
$UDPServerRun 9999

$ModLoad imtcp
$InputTCPServerRun 9999

$ModLoad immark   # not sure what's this, but seems popular

$template Template_WithSrcHost,"%timegenerated:::date-rfc3339% %HOSTNAME% %FROMHOST% %syslogtag%%msg:::drop-last-lf%\n"

*.* /home/logdumper/rsyslogd-port-9999.log;Template_WithSrcHost

I built this based on man rsyslog.conf. The $template directive is to add %FROMHOST%, which in my case is a better IP than %HOSTNAME%.


Copied answer from comments:

Somehow I have found a fix (upon boot there is nothing listed in devices):

If I have something playing in chrome and then I sudo alsa force-reload then it works (there is no hdmi output device, it only shows when I plug it in)


-y is a dangerous tool. I'd recommend extreme caution when using it for exactly this reason.

A lot of the packages listed here are covered under ubuntu-desktop meta-package. Re-install that first and foremost:

sudo apt install --install-recommends --reinstall ubuntu-desktop
sudo apt -f install

Following this, you should re-install your HWE system:

sudo apt-get install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04

Next, you will have to re-install all of the remaining packages (like dosemu) manually, I'm afraid. You can just chain them all onto a single apt install command for the most part.


Spotify plugin has disappeared in the Clementine Music Player on Ubuntu 13.04

I Finally got the plugin to be recognized by Clementine.

Adding to coteyrs answer, here is what I did:

Create the folder where the plugin will be placed

mkdir -p ~/.config/Clementine/spotifyblob/version14-64bit

Download the plugin

cd ~/.config/Clementine/spotifyblob/version14-64bit
wget http://spotify.clementine-player.org/version14-64bit/blob
wget http://spotify.clementine-player.org/version14-64bit/libspotify.so.12.1.45

Make sure the executable bit is set on the blob

chmod +x blob

The blob was looking for libspotify.12, so we create a symlink

ln -s libspotify.so.12.1.45 libspotify.so.12


Dual boot Windows 8.1 and newest Ubuntu, separate HDDs, Removable HDD caddy for laptop

Assuming this is a non-UEFI machine, with MSDOS partitioning, you need to install grub with all its files onto the first HDD, and that should be able to boot either HDD, and still run if the caddy is absent.
  If you have a (small) FAT partition on the first disk, you can install grub to that partition (the grub files), and have grub in the MBR for booting.  This FAT/grub has worked for me after I had wiped out the Windows MBR.


How to assign variable to PROMPT_COMMAND

It works with

a=0
PROMPT_COMMAND='echo -n $((a++))'

after you open a new shell (or source .bashrc by calling . ~/.bashrc.


How do I fix Desktop after accidentally disabling everything on compizconfig?

You can get access to a terminal by pressing Ctrl+Alt+F1 (you can also use F2 to F6 instead of F1).
Type in your username and password to get a bash shell (or which ever other shell you have).

To reset your settings you can run:

rm ~/.gconf ~/.gconfd ~/.metacity ~/.compiz-1 ~/.config/compiz-1 ~/.config/dconf -rf

A alternate way to get the your shell from the guest account is to use the su command.

su [username]


LibreOffice, GTK3, and Lubuntu 14.04 LTS

According to a couple of sources, LibreOffice's theme support is controlled by the SAL_USE_VCLPLUGIN variable (which can be gtk, gtk3, qt and gen). You can force usage of GTK3 by:

SAL_USE_VCLPLUGIN=gtk3 soffice

You might need GTK > 3.10, and apparently there are some show-stopping bugs that are only fixed in GTK 3.18.

References:

Reddit discussion on LO enabling GTK3
Arch Wiki article on LO


How to Install Linux via USB Flash Disk on Macbook

your system configuration is good enough to install ubuntu, use this link  for reference.

this may help you.


Nvidia GTX - 3 Monitors - Can only enable 2

I am guessing that Nvidia driver 430+ are still not stable releases. I think the most stable one is 418.

Try auto-installing with:

sudo ubuntu-drivers autoinstall


USB can not be mounted after formatting using `dd`

You need to provide a mount point:

mkdir /mnt/usb   ## Can be any directory
mount /dev/sdb1 /mnt/usb

You can setup a /etc/fstab entry to map your device to a mount point:

 /dev/sdb1   /mnt/usb                           ext4    defaults        1 2

With that entry you can use any of the following:

mount /dev/sdb1
mount /mnt/usb
mount -a   ## Mount everything in /etc/fsab


Why do i have 2 specular folder for java installed in my Ubuntu?

The java-6-sun folder is actually just a symbolic link to the java-6-sun-1.6.0.24. It always points to the latest Java installation avaliable.

As for the $JAVA_HOME path, you should probably point this at the java-6-sun folder, as this always links to the latest Java folder.


To print the portion before last r, and print those lines only:

grep with PCRE:

grep -Po '.*(?=r)'

.* matches greedily and the zero width positive lookahead pattern (?=r) makes sure the match is followed by r
With sed:

sed -n 's/r[^r]*$//p'

r[^r]*$ matches the portion from last r till end, and replaced with null.
With awk:

awk '/r/ {sub("r[^r]*$", ""); print}'

Same as sed's one, /r/ makes sure we are operating on only lines containing r

Example:

% cat file.txt
Los Santos
San Fierro
Las Venturas

% grep -Po '.*(?=r)' city.txt
San Fier
Las Ventu

% sed -n 's/r[^r]*$//p' city.txt
San Fier
Las Ventu

% awk '/r/ {sub("r[^r]*$", ""); print}' city.txt
San Fier
Las Ventu


How can we get the command line of a running application?

I just made the following script which use the application window title to find out the right command which opens the respective application from terminal (I named it appcmd):

#!/bin/bash

#appcmd - script which use the application window title to find out the right command which opens the respective application from terminal

#Licensed under the standard MIT license:
#Copyright 2013 Radu Rădeanu (http://askubuntu.com/users/147044/).
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

#check if wmctrl is installed
if [ ! -n "$(dpkg -s wmctrl 2>/dev/null | grep 'Status: install ok installed')" ]; then
    echo -e "The package 'wmctrl' must to be installed before to run $(basename $0).\nUse 'sudo apt-get install wmctrl' command to install it."
    exit
fi

window_title=$(echo $@ | awk '{print tolower($0)}')
windows=$(mktemp)
pids=$(mktemp)
pid_found=""

wmctrl -l | awk '{$2=$3=""; print $0}' > $windows

cat $windows | while read identity window; do
    if [[ $(echo $window | awk '{print tolower($0)}') == *$window_title* ]]; then
        wmctrl -lp | grep -e "$identity.*$window" | awk '{$1=$2=$4=""; print $0}'
    fi
done > $pids

while read pid window; do
    if [ "$pid" != "0" -a "$window" != "Desktop" ]; then
        echo -e "Application window title:\t$window"
        echo -e "Command to open from terminal:\t\$ $(ps -o command $pid | tail -n 1)\n"
        pid_found="$pid"
    fi
done < $pids

if [ "$pid_found" = "" ]; then
    echo "There is no any opened application containing '$@' in the window title."
fi

Save this script in your ~/bin directory and don't forget to make it executable:

chmod +x ~/bin/appcmd

Usage:

When the script is runed without any argument, the script will return all commands for all windows opened corresponding.
If any argument is given, the script will try to find an open application window containing in its title that argument and will return the command corresponding. For example if Chromium browser is open, you can find out the command which opens it from terminal using only:

appcmd chromium


The SATA connection in the optical drive bay is no different from the other SATA ports. A hard disk drive connected where your DVD drive was will show as a regular SATA drive (ie: as /dev/sdb)  and can be put to sleep, using hdparm

To put this drive to sleep after 10 seconds of inactivity and save battery, you could do:

sudo hdparm -S 10 /dev/sdb

This is not permanent and can be configured to be so in /etc/hdparm.conf. See the man hdparm manual pages for more details.


I can't imagine why sudo shutdown -h now wouldn't work? Probably not the answer you are looking for, but might give it a try.


dual boot ubuntu 14.04 and windows 8 not working

Had same problem after installing Ubuntu 14.04 to dual boot with Windows XP.  Solved by going into Bios and making boot drive the Ubuntu drive.  A restart brought up the grub 2 screen with options for Ubuntu  and  XP.  I've been using this method and so far no problems with either choice.


qbittorrent error libtorrent-rasterbar.so.6 on Ubuntu 12.10

uninstall then reinstall libtorrent-rasterbar

https://github.com/qbittorrent/qBittorrent/issues/341#issuecomment-16332932


Solved I reinstalled in UEFI mode and now it boots into my OS as it should. The issue was cause by initially installing in legacy BIOS by mistake.


How would I run my system solely in a ramdisk after logging in (or optionally on boot)?

You can have your environment completely in RAM, but:

Nothing would be persistent!
You would need an SSD-size amount of RAM: 64G would be small, 128G would be comfortable

Possibility 1: Entire system in RAM:

Install Ubuntu to a USB drive¹
Convert the USB drive¹ to an ISO file using Gnome Disks
Add the ISO file to grub
Boot that ISO file

There! An environment completely in RAM!
Possibility 2: /home in RAM:

Create a RAM Disk
Boot normally
Rsync all of /home into the RAM disk
mount bind the RAM disk to /home
When shutting down, you either lose everything that is in the RAM disk or you have to do the reverse of #3

So all that is technologically possible but impractical as:

you need to do all your upgrades / system settings on the persistent USB drive¹ and convert to ISO every time you want to change a single persistent byte. (You want one option to be on in your IDE? Well... Turn it on and re-create the ISO...)
It takes an enormous amount of RAM as you need your entire disk or entire home environment in RAM and enough RAM to run the applications you need.
You need to rsync the data you want to be persistent.
The time you lose doing the above would outweigh the benefits you gain.

Note 1: I'm using a USB stick as an example, it could also be  a partition / disk on your PC but a USB stick would make things easier as you can also duplicate a USB stick to another USB stick to have a backup of that environment.


The man page for setrlimit (which Upstart uses for the limit stanza internally) states that processes are limited for the user id. My best guess is that the user id is root by default, and the resource limit does not work for root because that does not make any sense.


Cannot Boot To Ubuntu After Installing Windows

Make a live Ubuntu USB or CD and boot to it.
Select "try Ubuntu without installing"
Once there, open terminal and execute the following:

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

After installing, open it by executing boot-repair and select recommended repair then follow on screen instructions.

After booting for first time You may not see Windows option, For that in Ubuntu terminal execute sudo update-grub to add all entries and you are good to go.


How to upgrade Compiz to 0.9.8 or downgrade to 0.8.6 in 12.04?

Unless your Compiz package is really buggy and you are desperate to upgrade it, I would suggest you hold your horses and wait until the fixes made in Compiz during Quantal development is backported to Precise. As you probably might have noted, the fix for your bug has been milestoned to Compiz Core 0.9.7.10 "SRU-1" and would probably land before Precise 12.04.2 point release.

But if you really have to upgrade, I wouldn't stop you.. Read on.

There was a half-baked Compiz package that reportedly included most of the SRU fixes that were meant to land in 12.04.

January has nicely laid down the necessary instructions to install the PPA in this question:

Compiz / Unity very unstable, crashing very often on 12.04

I'll quickly go through the basic instructions for reference:

Install the PPA and the Compiz package:

sudo apt-add-repository ppa:vanvugt/compiz-preproposed
sudo apt-get update
sudo apt-get install compiz=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-core=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-gnome=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-plugins=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-plugins=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-plugins-default=1:0.9.7.8-0ubuntu1vvpreproposed2 libdecoration0=1:0.9.7.8-0ubuntu1vvpreproposed2

Log out and back in. If that fixes your problems, you can lock Compiz to this particular version. General instructions on how to lock a package here:

How to prevent updating of a specific package?

If it is buggy, you can just update your system and you will be reverted back to the current Compiz package in the repo.

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


Can't see partitions and there is no windows 8 in grub

You could have overridden it, but try sudo update-grub if you didn't override it, you should see it in ubuntu as a drive in the launcher.


You can set this with CompizConfig Settings Manager

install cssm like this:

Install CompizConfig Settings Manager

Then open it up and go to setting "Window Management" ->Grid" under

Image for selection

You can set your shortcuts.

Hope it helps!


Are Snap and Flatpak apps safe to install? Are they "official", approved or tested for a particular distro version?

Snaps have the https://snapcraft.io/ repo. This is run by Canonical, the same people that build Ubuntu.
Flatpaks have an official repo at https://flathub.org/ . Flatpaks were developed by Redhat but I don't know if they manage the flathub repo or not.
Stability
The stability of the individual packages, of course, rely on the quality of the build and are at the mercy of the maintainer.
Both flatpaks and snaps are built completely using the dependencies they need inside a sandbox but both handle this a little differently
Snaps build a mount point and the system mounts the program archive and runs it from there.
Flatpaks are built in /var/flatpak/ for system-wide (global) installs and in ~/.var/app on the local side. It mounts those and runs them.
The good news about stability is that if you get a wonky application in either it is contained and will not make the rest of your system unstable by installing libraries that cause conflicts with other installed apps.
Both are self-contained  applications with all the needed information to run. This is what makes this distro-agnostic and allows them to be installed on any Linux system that supports them (flatpak or snap)
Security
This is a little more ambiguous.
Snaps only have the official repo.  There was one reported case of malware getting into the repo but it was caught quickly and removed.  It was cryptocurrency mining software that would send some mined currency back to the app maintainers without the users knowledge.  Even with that there was no other ill effect from the app and AFAIK, it was unable to access the home folder of the user.
Flatpaks:  If you use the official repo it should have about the same security as Snaps, nothing is perfect but anything that makes it in will be very quickly noticed and removed if it is malware and made it past the initial submission review.
I would  personally doubt that anything overtly malware like a virus would make it into either Snap's or Flatpak's repos and anything with sneaky unwanted behavior like the aforementioned cryptocurrency mining app would stay in very long.
Overall I would say that both are safe but neither is as inherently safe as the official Ubuntu sources, but this goes for PPAs as well. Adding any sources outside of Ubuntu's official sources is not quite as safe.
I do have to add a caveat here, there are other Flatpak repos out there. Most of these are for legitimate programs that just want to host their own repo rather than use flathub.  Those are completely outside any quality control of flathub and should only be added if you trust the developers of the program.  This would also go for adding snap repos but I don't think that at this time there are any but the official Snap repos.
As to the whether or not flatpaks and snaps are safe to install
Overall that are safe as long as you stick to the official repos, look over the description of the packages you want to install and don't install anything that looks even a bit shady.
Both are a great way for users to have a safe (as safe as can be expected outside a distro's official package sources) way to install software that are not available any other way and have them "just work".
For example, I have Spotify installed as a Snap and Teamspeak 3 installed as a flatpak.  While Spotify is available via a ppa, using a snap allows me to avoid cluttering apt with PPA that I can avoid using.
Teamspeak would only be available for me with a .run that unpacks the folder and then you put the extracted folder in your home directory and click on the sh file or use the command line to start.  While I did this before and then made a desktop launcher to launch it for me then added that launcher to my ~/local/share/applications folder to launch it.  It was so much easier to just install the Flatpak in one step and have it work.

Once I installed, from outside repos, a fancy terminal emulator that mimicked retro green/amber phosphor monitors. This app wreaked havoc in my system and I had to reinstall Ubuntu.

To address that part of your lead up to your question:
I would suspect that reason the PPA completely hosed your Ubuntu install is because it brought in newer libraries  as dependencies that your native programs were unable to use or overwrote your installed libraries with older ones that were too outdated to be used by your native Ubuntu.
The good thing about both snaps and Flatpaks is that they will bring in any libraries they need to run inside their own folders.  Snaps and Flatpaks are self-contained and will not touch any of your system files or libraries.
The disadvantage to this is that the programs might be bigger than a non snap or Flatpak version but the trade off is that you don't have to worry about it affecting anything else, not even other snaps or Flatpak. If the app is broken because it brought in bad libraries or for any other reason you just uninstall it and it is completely gone.


If you can't see by using Nautilus, you can try using the Terminal.

Open the Terminal and type cd /
Now you are in the / folder. If you want, type ls to list all the folders and files in that folder.
Now, you can type cd opt to enter the opt folder. Again, type ls to see the folders and files in there.

Maybe it won't help you at all, but is all I can think about...
Unless, of course, if you tried to install a different file manager.

You can try this ones: Nemo, Thunar and Dolphin, which are the ones I know, but only by name, I've never used.
Just search for them in the Ubuntu Software Center!


Ubuntu broken - How to access /home/username/.profile

Have you tried editing the permissions for .profile before trying to edit the file itself?

sudo chmod 740 /home/username/.profile, then edit it.

Alternatively, if using vim to edit, you could try using the command :w! instead of :w to try and override the read-only flag.


How can I fix display "out of range" message after install?

Yes, it was obviously a message from the monitor itself, as I was seeing the BIOS messages. I figured out from a combination of other questions on various forums  how to make it work. I edited the /etc/default/grub file, changed

grub_cmdline_linux_default=""

to

grub_cmdline_linux_default="radeon.modeset=1"

uncommented the resolution line and set it to something I knew my video card should support, 1024x768.

Not sure if it was one or both of these things that actually fixed my issue. Turns out I had actually NOT saved the changes the first time by sudo update-grub.


Permission denied: '/var/lib/partman/stopfifo' when trying to install 14.04 as dual boot with Windows 8

Ok i want to post the solution here so some body else finds it useful..

The issues were

I cloned my orginal HDD to my new SSD for windows 8 and then tried to install UBUNTU on it. Not sure what happened but that triggered some permission issues that causes the Installer to crash. So dont create a clone of your windows 8 rather use a recovery or an orginal CD to create the partiotions and install windows.

2.once you are sure that windows boots up. Dont tamper with partitions you dont have to and also if using 14.0.4 LTS.. just disable fast boot. rest every other configurations on bios is fine.

follow this link

http://www.everydaylinuxuser.com/201...e-windows.html

And you are set . Am able to dual boot Ubuntu and windows and both works like charm.


Windows 7 and 11.10 side by side from scratch what am I doing wrong?

To describe the situation with Ubuntu and Windows, allow me to give some background information.

When you install Ubuntu, it installs something called GRUB. This loads first and can load either Windows or Ubuntu. Windows has something known as NTLDR or MSLDR which can only load Windows.

Thus, install Windows first(booting from the setup disk), saving room for Ubuntu (at least 20GB, but you can go into the terabytes), or if the Windows setup system does not allow you to make a partition smaller than the free space, then use the whole drive.

Once Windows is installed, begin to install Ubuntu (booting into the live CD). Be sure to specify the side-by-side option, or use the advanced partition tool and fill the rest of the drive with one Ext4 partition (resizing Windows partition if necessary). Click on the free space and then add to do this. Also, be sure to set this partition to mount as /. If it does not let you select the mount point, click on the new(EXT4) partition and click edit at the bottom while the partition is highlighted to specify this. Allow Ubuntu install to finish fully.

When you reboot, you will be prompted to select between Windows and Ubuntu at startup (by GRUB), in which case you may select either.


How to run Visual Studio Code as root without --user-data-dir argument?

You can try with adding the -H parameter for sudo:

 -H, --set-home
             Request that the security policy set the HOME environment
             variable to the home directory specified by the target user's
             password database entry.  Depending on the policy, this may be
             the default behavior.

That would be:

sudo -H code ~/.zshrc

This way, ~/.zshrc would still refer to your calling users .zshrc, but the home directory for code would appear as the one for root (~root).

Although what you are doing (running vs code as root) sounds wrong. Maybe you have your reasons, but in general it is not recommended to run programs as root.


I can't install programs in ubuntu 10.10

Ubuntu 10.10(Maverick Meerkat) had reached end of life on April 10 2012. Its repositories is no longer maintained, as you can see at this link. You have to install a currently supported Ubuntu version, preferably 12.04 LTS or 12.10.


Auto mount a disk drive in ubuntu 14.04 LTS (Bookmark directory not found)

From the output of lsblk, before and after the link starts working, it appears that your partition is not mounted automatically.

Since it is an NTFS partition (looking at the output of sudo blkid), you can make your partition automount by adding the following line to your fstab file:

/dev/sdb6 /media/angel/DOC ntfs auto

If it does not exist already, create the directory to mount into:

sudo mkdir /media/angel/DOC

Open the fstab file:

gksu gedit /etc/fstab

(you might have to install gksu first)

and add the line:

/dev/sdb6 /media/angel/DOC ntfs auto

at the end of the file, save the changes.
Test your new entry by the command:

sudo mount -a


What video capture boards are "plug-and-play" compatible?

Hauppauge HD-PVR solves your problem if you're dealing with analog video. It works as V4L2 device with USB interface.

Inputs:

Video

composite
s-video
component video (480i/p, 720p, 1080i)

Audio

Analog stereo
s/pdif

Output:

H.264
MPEG-2

More info:

http://www.hauppauge.com/site/products/data_hdpvr.html

http://www.mythtv.org/wiki/Index.php/Hauppauge_HD-PVR


forgot home partition when installing ubuntu

No it will not cause any problems when running Ubuntu or when performing regular release upgrades. The only thing you need to take care of is that you don't format this partition in case you will re-install Ubuntu in the future.

You can always move home to another partition or drive later in case you really need this. This could in theory also be done from shrinking an existing partition but in case this was a fresh installation a reinstall is probably the least time consuming procedure.


How to update Dell repositories after upgrading XPS 13 to Ubuntu 18.04

I've spoken to Dell about this and am posting this answer here in case it helps anyone else.

Updated 11 Oct 2018

Dell have said that they do now support Ubuntu 18.04 on the XPS 13 9360 (previously they had said that they didn't). The disabled repositories are not necessary and are not supported in Ubuntu 18.04 ('bionic').

In answer to my question, no, you shouldn't replace 'xenial' with 'bionic' and re-enable the repositories.

The "dino2-mlk" is apparently the codename for the 9360 model of the XPS 13.  As mentioned in the comments there isn't a bionic-dell-dino2-mlk repository.

The repositories contain drivers and other updates.


Changing ubuntu to windows without deleting ubuntu first

You can't change one OS into a different OS, per se.  If you want to retain the current OS (Ubuntu) you would have to add the second OS on a different partition.

You have a couple of options.  You can either add a different OS by placing it on a different partition, then configuring your boot manager of which OS to boot.  Or you can replace the currently installed OS by installing the second OS in the same partition of the first OS.  If you overwrite Your Ubuntu partition with Windows, you will result in having just the one OS installed.  Ubuntu wold be replaced.

Ubuntu's installation has a feature to automatically resize a currently installed OS and seamlessly create a partition for it's installation without deleting the previously installed OS (The Alongside Operation system option.  In other words, you can do that when installing Ubuntu.  The difference is that it is automatically performing the creation of a separate partition during the installation process.

Most Operating systems, including Windows and Ubuntu, can be installed over the current OS if it's the same, without totally nuking all the data of the previous install.  They can overwrite or in case of Windows rename the previous installation file and install the new installation files into a new directory.  Windows will rename the current installation of Windows to Windows.old.  Then install the new instant in a new Windows directory.  Ubuntu, when installing Ubuntu over Ubuntu will replace the system folders with files from the new install, and leave your personal folders and manually created folders intact.

But in the case of totally different operating systems such as Windows and Ubuntu, the format of the partition is different and would have to be nuked if trying to use the same partition.

So to change between Windows and Ubuntu will involve nuking the previous OS or installing the second OS on a separate partition.


Mini DP compatibility with Ubuntu 18.04.3 and Nvidia GTX1050

I opened software updater
Went to Additional Drivers
Under Nvidia I had 'Using X.Org X Server' selected
I changed this to 'Using Nvidia driver.. (proprietary)' and it everything works


What does "(obsolete)" mean in Ubuntu Software Center

This will usually mean that the package has been renamed, and the one you are looking at is the old name, but kept available for a while to ensure that upgrades work as expected.

In the case of git the package was renamed from git-core to git, so you are right about wanting to install git.

However, git-core depends on git, so installing either will get you the software you want.


How to change Ubuntu DHCP server address on the client?

The default VirtualBox network mode, NAT, will not allow this. It creates a virtual network between the host and the guest, it doesn't connect the guest directly to the real network.

You are probably looking for Bridged networking. It will connect the virtual machine to the same network as the host, allowing it to use the same DHCP server and have an IP addresses in the same range.

You should set this in Virtual Box preferences, network tab:

You can also use NAT Network, a new experimental mode where all the Virutal Machines share a (virtual too) network. By default NAT Network offers it's own DHCP server, you can disable it from the command line:

VBoxManage natnetwork modify -t nat-int-network -h off

Where nat-int-network is your internal network name (this is just the default value)


Error: ENOSPC: System limit for number of file watchers reached, watch : Ubuntu 18.04

from : https://github.com/guard/listen/blob/master/README.md
do this:
sudo sh -c "echo fs.inotify.max_user_watches=524288 >> /etc/sysctl.conf"
sudo sysctl -p


I had this same error on a new 14.04 installation.  I fixed it by making sure all scipy dependencies were installed via:

sudo apt-get install python-pip python-dev build-essential libatlas-base-dev gfortran

I believe it was just sudo apt-get install gfortran that was necessary.  If you try that first and let us know how it goes, would be helpful.

This was from this thread: https://www.kaggle.com/c/avazu-ctr-prediction/forums/t/12478/kaggler-python-package-for-kaggler


Terminal window does not contain username with only prompt

If you are using bash, try the following command

PS1="\u$ "

put this in .bashrc file will make it works in all sessions.
If you are using zsh, try this:

PS1="%n$ "

put it into .zshrc file will make it works in al sessions.


Backlight strobe on resume - Ubuntu 12.10

Check your /etc/default/grub file. If you have  "GRUB_GFXPAYLOAD_LINUX=" option, comment it out. This option seems to get the boot splash working, but (in 12.10, not 12.04) breaks suspend/resume.

sigh

Without graphics card OEMs releasing open source drivers, or (less likely) Linux adopting a stable kernel ABI, a solution for https://bugs.launchpad.net/ubuntu/+bug/1 is a long way off.


Updating the apt-get command in the terminal

Could not resolve 'security.ubuntu.com means the system cannot find to which IP address security.ubuntu.com is pointing to. This means your DNS is broken.

To fix it, make sure of a few things:

Your linux has an ip address.
If you have an ip address, you are connected to the internet (ping to 8.8.8.8).
If you can ping to 8.8.8.8, try ping to google.com
If step 2 worked but step 3 didn`t, you need to fix your dns. Make sure that in the file /etc/resolv.conf there's a valid dns server.

I'm using umbrella DNS servers:

cat /etc/resolv.conf
nameserver 208.67.220.220
nameserver 208.67.222.222


Did you install it from the Software Center or by using the code on Calibre's website? Calibre recommends that you install using the code on their website rather than the software center.

"Please do not use your distribution provided calibre package, as those are often buggy/outdated."

If you used the Software Center, just uninstall and use the directions found here: http://calibre-ebook.com/download_linux


howto fool the partition manager: problem : My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to make room

Maybe not the easiest solution but here is how I would try to resolve the issue.

Get a USB stick bigger than your /boot partition
Copy the content of /boot on it
Then adjust /etc/fstab to mount the usb-stick to /boot on next reboot
Reboot
Clean your things, upgrade
Then copy the content /boot (usb-stick) to older /boot (that you can mount on say /boot1)
When done, edit /etc/fstab again to mount the /boot partition instead of the usb-stick and reboot


Ubuntu 20.04.1 - Laptop - suspension stops music

Install gnome-tweak-tool using sudo apt-get install gnome-tweak-tool

Open tweak tool by typing tweak in activities menu

In the first option General, there is option to switch off the behavior.
Check the image ..> Gnome-tweak-tool

Further, you can install "caffeine" gnome extension to keep off the suspension at your will.


How do I install Ubunte next to Windows?

After inserting ubuntu live DVD you can see windows drive in NTFS format. All the drives listed in NTFS format are windows rest will either unassigned or EXT format(which is ubuntu).

steps to do dual boot windows & ubuntu. Assuming you windows is working fine and a separate 10GB drive works fine for ubuntu.

after selecting something else checkbox you get a list of drives don't touch the files with NTFS format as they are windows.

Select the 10 GB drive which you created, in that make 8GB for /(root) and the rest for swap.

And this worked for me.
But sometime after restart the windows may not be visible for GRUB that can be solved don't panic.


Ubuntu 11.10 SSD install -> error: unknown filesystem

There are compatibility issues with the 945G chipset and you are probably unlucky to have this one in your notebook.

http://www.ocztechnologyforum.com/forum/showthread.php?93863-Vertex-Plus-60GB-OCZSSD2-1VTXPL60G-won-t-work-on-Gateway-LT2016U-netbook

In the third post a user describes the same issues you are experiencing. Chipset name, BIOS and SSD firmware version numbers would be nice to have in those cases.

I hate to tell you this, but you are probably really out of luck. I searched for a BIOS update of this computer and saw that the latest one is from mid 2007. SSDs hit the market a few years later, which sounds like no one ever fixed this. Also note, you may have bought your notebook 3 years ago (2008/2009?) but the particular product is from 2006. Installing a SSD brings a performance boost in most cases, but this sounds not quite like the right upgrade path, best choice would be to save that money spent on the SSD. It sounds sad and pessimistic, I know, but it's the honest advice I could give you

http://support.lenovo.com/en_US/downloads/detail.page?&LegacyDocID=MIGR-67008


How to list available space excluding mount points in home directories?

How about this?

df -lP | grep -v "%\s\/home\/"

It filters all lines matching %, followed by single-whitespace-character and followed by /home/ by using grep.

Note to other readers: as already in the question it's important to use -P in df to keep predictable single-lined output.


add context menues to nautilus for comparing directories with meld

You simply need to install the nautilus-compare package to have a similar context menu.


Send all notifyOSD messages to another ubuntu on the network

There is no way to do this with notify-osd as it does not have any support for talking over the network.


Bash script to execute multiple Unix commands

Create a script using nano my-script.sh. Add shebang and the commands or path to commands.

#!/bin/bash
/path/to/command/1
/path/to/command/2
/path/to/command/3

Make it executable using chmod

chmod +x my-script.sh

And run it using

./my-script.sh

Or as a one line command in bash:

command1 && command2 && command3 && commandN

This would execute the commands only if the previous command was executed successfully.


What does the # character mean in: /bin/sed -e 's#abc#zzz#g'?

It's a delimiter or separator. The most commonly used one is / as in

sed 's/old/new/' file

But sed will take the first character after the command (s) as delimiter. You can use any convenient character, for example...

sed 's%old%new%' file

This is very useful if the file contains / (or other conventional delimiting characters). You can choose as separator some character that you know you won't need to put into your sed expression, saving you a lot of annoying escaping.

Let's say you want to replace

https://askubuntu.com/questions

with

https://askubuntu.com/posts

You could use

sed 's/https:\/\/askubuntu.com\/questions/https:\/\/askubuntu.com\/posts/' file

But better to use

sed 's|https://askubuntu.com/questions|https://askubuntu.com/posts|' file


Changing the Sampling Rate in UBUNTU 12.04

pocketsphinx_continuous -adcdev hw:1  (this wont work in your case, obviously swap the "1" for the card index you want - derived from aplay -l or alsamixer, then press F6 or w/e )

Giving an error like:

Available samping rate 44100 is too far from requested 16000
FATAL_ERROR: "continuous.c", line 246: Failed to open audio device

However:

pocketsphinx_continuous -adcdev plughw:1  (This will silently handle your conversion)

Hope it helps (if a little late)


Dual Boot unencrypted Windows 10 + encrypted Ubuntu 14.04

If you want to perform a "full disk encryption" of your Ubuntu installation do the following:

Boot live cd
Open gparted
Create 3 partitions:

boot (ext2) - If you have Windows installed with UEFI, this can be skipped,
root (ext4),
swap (linux-swap)

Apply changes
Open terminal and sudo -i
Encrypt volumes root and swap

cryptsetup luksFormat --cipher aes-xts-plain --key-size 512 --hash
sha512 --iter-time 2000 /dev/sdax

Name the encrypted volumes

cryptsetup luksOpen /dev/sda2 root
cryptsetup luksOpen /dev/sda3 swap

Make an ext4 filesystem inside and a swap space

mkfs.ext4 /dev/mapper/root
mkswap /dev/mapper/swap

Proceed with OS installation
Select Something else
Set boot, root and swap partitions (Select each partition, press
Change and set the appropriate values)
Continue with installation. Press Install now.
After installation is finished choose Continue testing
Open terminal and sudo -i
Chroot Magic

cd /mnt
mkdir root
mount /dev/mapper/root root
mount /dev/sda1 root/boot
chroot root
mount -t proc proc /proc
mount -t sysfs sys /sys
mount -o bind /dev root/dev

Block Device & Filesystem Tables

nano /etc/crypttab

Open a second terminal

sudo blkid

Enter the following content to the crypttab file

root UUID= (find it from blkid) none luks
swap UUID= (find it from blkid) none luks,swap

Save and exit
Open the file /etc/fstab and check that it has the root and swap
entries
Fix Hibernate and Update Init.
Open with nano /etc/initramfs-tools/conf.d/resume and make the
following change

RESUME=/dev/mapper/swap

Run in terminal the following command

update-initramfs -u
exit

LUKS Header Backup. Open terminal and run the following commands

cryptsetup luksHeaderBackup /dev/sda2 --header-backup-file /root/root.img
cryptsetup luksHeaderBackup /dev/sda3 --header-backup-file /root/swap.img
exit

The above guide was based on this


Can't change permission of folders: read-only file system error

You might be using an overlay file system or external mount.
To see your mount points and their rw/ro state just run command mount and look for the path where the folder is located
To have the write access enabled you can remount it with the command
mount -o remount rw


To Enlarge Swap Space:
sudo swapoff -a

Delete your existing swap file located at root

Create the new swap file:
sudo fallocate -l XG /swapfile

Where X is the swapfile size in GB (4GB in your case)
sudo mkswap /swapfile

sudo chmod 0600 /swapfile

sudo swapon /swapfile

Reboot:
sudo reboot

To enable Hibernation (optional):

Edit /etc/default/grub to add resume location and offset to grub.cfg:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX resume_offset=XXXXX"

Use UUID from root.

Use offset from sudo filefrag -v /swapfile

cscameron@cscameron-T:~$ filefrag -v /swapfile Filesystem type is: ef53 File size of /swapfile is 4819255296 (1176576 blocks of 4096 bytes) ext:     logical_offset:        physical_offset: length:   expected: flags: 0:        0..       0:     303104..    303104:      1: 1:        1..    2047:     303105..    305151:   2047:             unwritten 2:     2048..    4095:     311296..    313343:   2048:     305152: unwritten

resume_offset=303104

Update GRUB
sudo update-grub

Test hibernation
sudo systemctl hibernate

There is a slight possibility of getting holes in a swapfile when creating it with fallocate. /var/log/syslog can be searched for swapon: swapfile has holes to ensure there will be no data loss.

A hibernate button can be added using gnome extensions.
Proof of concept that hibernation works with a swapfile

Showing swapfile, resume and UUID's

Showing hibernation popup

Showing resume from UUID is root partition and not from swap partition


How to not change owner and group when editing file in Sublime Text?

Add yourself permanently to the www-data group:

adduser <username> www-data

<username> = your username

Or, alternatively, use sudo to temporarily launch subl as a member of the www-data group:

sudo -g www-data subl <file_path>

<file_path> = your file's path


Unable to boot to live DVD on Mac PowerBook G4

You'd be better using the Alternate Installer, but since Your Mac has low RAM, Lubuntu PPC may suit your system much better.
To save You time, get the Lubuntu 12.04 Alternate Installer here:
http://cdimages.ubuntu.com/lubuntu/releases/precise/release/lubuntu-12.04-alternate-powerpc.iso


Newest Mplab software that works with Ubuntu and ICD2

I had this problem some years ago. It is not possible to use an old ICD2 in GNU/Linux with the old MPLAB IDE or MPLAB X, but you may use Piklab to use the ICD2. The issue here is that Piklab is not as a good IDE as the old MPLAB. I have used the old MPLAB under Wine in Ubuntu 12.04 very succesfully, programming the ICD2 from Piklab. It is not as smooth as you may wish, but it works. The other option is to use the ICD3 with MPLAB X; this is fully supported to work under GNU/Linux.


At this stage I would simply recommend "turning it off and on again" by doing:

sudo apt-get purge php-common php5-common

followed by

sudo rm -r /etc/php

And then reinstalling PHP 7.0 and mysql modules:

sudo apt-get install libapache2-mod-php php-mysql

You may also try just purging and reinstalling mysql modules, first removing the package:

sudo apt-get purge php7.0-mysql

And the installing them again:

sudo apt-get install php-mysql

In both cases it's important to use apt-get purge instead of apt-get remove to delete any existing configuration files and package states.

The least destructive way would be trying to re-enable mysql modules using phpenmod command:

sudo phpenmod mysqlnd pdo_mysql

It's hard to give you correct advice if we don't know what mayhem you created on your system.


User Switching in XFCE 12.04 with LightDM and dumping unneeccesary Gnome libs

Regarding your gdm question, you can try the following. Make sure that you do have the lightdm installed (!), then:

sudo apt-get remove gdm
sudo apt-get autoremove

The second command will check which packages where previously installed automatically as dependencies, and are no longer needed given all the uninstalled packages.

For a more radical approach, you can remove all libgnome-related libraries. But be extra-careful, as this has the potential to remove a lot of apps that you may need. So check each proposed removal carefully:

sudo apt-get remove libgnome*

Lastly, I would suspect that your space issues are caused by updated kernels (aqt least this is what happens on my machine!).  Check in Synaptic if you have several linux-image-* and linux-headers-* packages installed, and remove some of the older packages. (Always keep one or two extra kernels as fallback for when things don't work with the most recent kernel.)


Installing ImageMagick for C(++) on Ubuntu 12.10

I had the same error as you. You'll have to compile with this command:

cc -o wand wand.c `pkg-config --cflags --libs MagickWand`

instead of:

cc -o wand `pkg-config --cflags --libs MagickWand` wand.c


Access encrypted disk from another device

I couldnt view the files due to a bad application of chmod. I fixed it by giving 777 rights to all files on the external disk. After that I could access my files using the application Files.


Is there a way to pass the host: value header in a URL for Apache virtual hosts?

I didn't find a way yet to pass a header (host:value) in a url, but here are some alternative solutions for accessing apache virtual hosts on an apache server over an intranet from a phone browser that can only reach the server using an IP address:

Use port based virtual hosts. A phone browser can specify ports in the url:
http://192.168.0.10:80, http://192.168.0.10:81, http://192.168.0.10:82 to access 3 different virtual hosts.

<VirtualHost *:80>...
<VirtualHost *:81>...
<VirtualHost *:82>...

In the ports.conf file:
Listen 80
Listen 81
Listen 82

Use IP based virtual hosts. If the intranet DHCP server will not allocate multiple IP addresses for the apache server, create alias IP addresses on the apache server:

Using Terminal, where ifconfig shows the apache computer to be enp8s0 192.168.0.110 execute these commands (I just picked the next 2 IP addresses, but first made sure they were not in use on the intranet):
sudo ifconfig enp8s0:0 192.168.0.111
sudo ifconfig enp8s0:1 192.168.0.112

Then define each virtual host by IP address in your virtual host configuation file(s). The first is the original default virtual host.
<VirtualHost *:80>...
<VirtualHost 192.168.0.111:80>...
<VirtualHost 192.168.0.112:80>...

These IP addresses are not persistent. They can be made persistent. A good article for creating additional IP addresses for a server temporarily and persistently is below. The article also discusses newer approaches than using ifconfig for network management:
https://www.2daygeek.com/add-additional-ip-secondary-ip-ubuntu-debian/
Be sure to set your /etc/hosts file with the new virtual host IP addresses so you can request them by name in your browser on your apache server:
192.168.0.111   websiteA
192.168.0.112   websiteB

Apparently there is a way to set up an index file to redirect a bare ip address request to the correct virtual host. I didn't explore this because both 1 and 2 solutions above already work for me, but it's an indirect way to get the host:value into a header. You can read about it in the apache documentation under "Using the ServerPath directive":

https://httpd.apache.org/docs/2.4/vhosts/examples.html


Deleted Windows boot partition by mistake

For repair the Windows boot, you must start from the Windows 7 DVD, choose language, select "repair your computer", then you must select the Windows installation, click "next" and select "Command Prompt". Here, you must writte the followings commands:

bootrec /fixmbr
bootrec /fixboot
exit

And restart.

With this, the system will start on Windows. I don't know about EasyBCD and if you can set up a dual boot. But in any case, after this you can repair the grub of your linux installation and it will show you both system with no problem.


"Size mismatch" apt error when installing openJDK

Use software-properties-gtk to set your download location to either the Main server, or something close to your location. Afterwards, run sudo apt-get update to refresh packages cache, and try installing the failing package again.


How to set the CC environmental variable during debian cross packing

I'm not sure about what is missing on the long run, as OP didn't mention any info about it target package and anyway to check solution my side. Happy to hear your feedback about similar case.
The message is about C Compiler (CC) environment variable is not convenient for the requested target architecture. Try dpkg-cross which may help you set all ENV variables for you.
debuild is a helper that uses dpkg-buildpackage

Install dpkg-cross package
sudo apt install dpkg-cross build-essential

Set the cross-compile config variables and helping flags before building
set CONFIG_SITE=/etc/dpkg-cross/cross-config.arm64
set DEB_BUILD_OPTIONS=nocheck

Try build it again

If it doesn't work, try passing through debuild the cross-compile options of dpkg-buildpackage. All steps documented in Debian Wiki: Building with dpkg-buildpackage.
Note:
If you are build you own package, good to read how to make your package Debian cross-compile friendly: Guidelines for cross-build friendly packages


how to run .jar software on ubuntu (17.04)?

The error message you got ask you to install java. Run :

sudo apt-get install default-jre

and it should work.


I recently had this problem as well.

For me, all I had to do was run the following commands. I'll break them down:

sudo apt-get install ppa-purge
sudo apt-get purge bbswitch-dkms bumblebee-nvidia

That installs the PPA-Purge utility and removes BBSwitch and Bumblebee

sudo apt-get install linux-headers-generic

That installs the proper Linux headers. For some reason, BBSwitch wouldn't (for lack of a better word, insert) itself into the kernel.

Then a simple

sudo apt-get install bbswitch-dkms bumblebee-nvidia

fixed everything. Oh, and a reboot, of course :)

Hopefully this will help you at least a little bit! Please let me know how you go


Make does not run with "sudo pecl install pdo", why?

php5-mysql, php5-pgsql, and php5-sqlite packages will provide the PDO extensions with them. Pear is not needed to achieve this.

sudo apt-get install php5-mysql php5-postgres php5-sqlite


Download Ubuntu 16.04 with a specific version of kernel

Kernel 4.10 is not supported on Ubuntu 16.04 any more.

Supported kernels are 4.4 and 4.15.

You can install a mainline kernel at your own risk.

Ubuntu 16.04.3 iso had the 4.10 kernel. Nut after a first package upgrade it will switch to the 4.15.


Unable to login as user using GNOME session

Problem solved afted upgrading to 13.10 alpha and transistioning to systemd.


What does "fully supported" mean in context of Radeon Opensource Video Driver?

Fully supported means exactly what you think it does.

But in your case there is clearly a regression. You should be filing this as a bug on Launchpad.net so that developers are made aware of the issue.


How to start a VirtualBox machine via command line (without GUI)?

Only needed:

VBoxManage startvm "VM name" --type headless

For example:

VBoxManage startvm ubuservloc --type headless


How can I search for a file by date in Kubuntu?

Use kfind. The KDE team removed the integration with kfind sometime last year I beleave.

I found a solution in kubuntuforums on how to create a service menu. If you do it this way you will find the "Search with kFind" in the action menu, when you right click on a folder.

[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin,inode/directory
Actions=searchWithKfind;

[Desktop Action searchWithKfind]
Name=Search with Kfind
Icon=system-search
Exec=kfind %u

Save the above text as ~/.kde/share/kde4/services/ServiceMenus/kfindhere.desktop (for specific users) or
/usr/share/kde4/services/ServiceMenus/kfindhere.desktop (for all users, I have not tried this)

My source is here and the whole thread is here


How to start with ARM development in Ubuntu?

GNU Toolchain for ARM Processors ( Download Link )

CodeSourcery, in partnership with ARM, Ltd., develops improvements to the GNU Toolchain for ARM processors and provides regular, validated releases of the GNU Toolchain. Sourcery CodeBench Lite Edition supports ARM, Thumb, and Thumb-2 compilation for all architectures in active use, including Version 7 of the ARM Architecture.


Antimicro (mentioned in other answer) looks promising, but personally I have achieved decent results with xboxdrv (haven't found a way to get analog sticks to work, but everything else works great). The following example configuration will map various keyboard buttons to Xbox controller button set (assuming /dev/input/event0 corresponds to keyboard on your machine):

# xboxdrv --evdev-no-grab --dpad-only --device-name="Virtual XPAD" --no-extra-devices --no-extra-events --trigger-as-button --dpad-as-button --evdev-keymap "KEY_RIGHT=b,KEY_LEFT=x,KEY_DOWN=a,KEY_UP=y,KEY_LEFTBRACE=lb,KEY_RIGHTBRACE=rb,KEY_SEMICOLON=start,KEY_APOSTROPHE=back" --evdev="/dev/input/event0"

Both xboxdrv and antimicro use low-level uinput framework (later needs a configuration switch to enable it), so they are compatible Wine and most other Linux applications, even Wayland ones.


How to install xfce4-windowck-plugin in xubuntu16.04? (xfce 4.12)

Please look at this PPA Published in section.

As you see this PPA is only available on Vivid (Ubuntu 15.04).

So can't add this PPA , and then install xfce4-windowck-plugin package normally.

But you can add a Vivid release of this PPA , with your own risk with this commands:

sudo add-apt-repository ppa:oiteam/xfce4
sudo sed -i 's/xenial/vivid/g' /etc/apt/sources.list.d/oiteam-ubuntu-xfce4-xenial.list
sudo apt update
sudo apt install xfce4-windowck-plugin


"Turn screen off when inactive"-setting from terminal

gsettings set org.gnome.desktop.session idle-delay 0

will prevent your screen from locking and change that setting to never.

Notice: close / re-open the settings window to see the effects the command takes.

The value that you write there is the time (in seconds) that it will take for Unity to decide that you have not been doing anything and the screen should be locked.


Can I save chapter titles when ripping a DVD?

Chapters are a native functionality of mp4 or mkv containers, whatever the encoding you use in them. So there is no need for a separate cue file sheet.

You can use handbrake to rip your DVD. It supports chapters by default, and will generate them in your output file (mp4 or mkv) automatically. When you rip the DVD, you can edit the chapter names in the 'Chapters' tag.

Any decent player should support chapters. In vlc to jump between chapters, use the Playback menu -> Chapters sub-menu. I think Totem/Videos should also be able to use them.


Automatically disable mouse acceleration whenever mouse is plugged

Yes it can be done and it's relatively easy to do. You need to create 3 files - a udev rule, and two scripts.

UDEV Rule

A UDEV rule would detect a mouse plug event and trigger a script whenever the event happens. Create a file under /etc/udev/rules.d:

sudo gedit /etc/udev/rules.d/42-kill-mouse-accel.rules

Paste the following line in it:

ACTION=="add", ATTRS{bInterfaceClass}=="03", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/[YOUR_USER_NAME]/.Xauthority", ENV{ID_CLASS}="mouse", RUN+="/usr/local/bin/kill-mouse-accel.sh"

Note the part that says [YOUR_USER_NAME], you have to replace it with your user name.
Save and exit Gedit.

Acceleration Script

The acceleration script would be the code triggered by the UDEV rule, which in turn would fork a worker script in the background. The background script would do the actual work. We do that since we want to wait a bit before changing acceleration but we don't want to block UDEV. Create a file under /usr/local/bin:

sudo gedit /usr/local/bin/kill-mouse-accel.sh

Paste the following code in it:

#!/bin/bash

export DISPLAY=${DISPLAY}
/usr/local/bin/kill-mouse-accel-worker.sh &

Save and exit Gedit.

Background Acceleration Script

This script is where the command disabling mouse acceleration is called. Create a file under /usr/local/bin:

sudo gedit /usr/local/bin/kill-mouse-accel-worker.sh

Paste the following code in it:

#!/bin/bash

sleep 2

for i in $(xinput list | grep [Mm]ouse | sed -e 's/^.*id=\([0-9]*.\).*$/\1/')
do
    echo "Found device: $i"

    # The command disabling mouse acceleration
    xinput set-ptr-feedback $i 10 1 1
done

Save and exit Gedit.

Finalization and Testing

Make both scripts executable:

sudo chmod +x /usr/local/bin/kill-mouse-accel.sh /usr/local/bin/kill-mouse-accel-worker.sh

Restart UDEV:

sudo service udev restart

Finally, re-plug your USB mouse and wait for a few seconds. Mouse acceleration should be disabled.

Credits

Credit goes to the author of the following blog post: http://granjow.net/udev-rules.html


Ubuntu screen goes black after loading youtube

As @AE indicates you can turn off hardware acceleration in chrome in the settings by chrome://settings/ -> 'advanced settings' -> untick 'use hardware acceleration' and restart chrome.

In Firefox It's here:

A restart may be required here as well.


Wireless/wifi network is not working on ubuntu 12.04 - lenovo z50-70

Yikes, first get rid of the incorrect driver
sudo apt-get purge bcmwl-kernel-source broadcom-sta-common
Then install backports

wget -N -t 5 -T 10 https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.18.1/backports-3.18.1-1.tar.xz
tar -xf backports-3.18.1-1.tar.xz
cd ~/backports-3.18.1-1
make defconfig-rtlwifi
make
sudo make install

And you will need firmware so sudo apt-get install linux-firmware
Reboot


VirtualBox issuing error message "Kernel driver is not installed"

If you are receiving error messages when you run sudo /sbin/vboxconfig, then you will need to compile some kernel drivers. Fortunately, it’s not too difficult.

Open a terminal
Install some basics:sudo apt install build-essential module-assistant
Then: sudo m-a prepare
Finally:sudo /sbin/vboxconfig

This should do what you’re looking for.


Why is Ubuntu reporting a slightly different size for my Virtualbox disk?

Yes, this is normal.

This is happening because, unfortunately, in practice, the word "gigabyte" can refer to two different units of digital information storage.

Strictly speaking, these days, a gigabyte (GB) is formally defined as exactly one billion bytes, and similarly, a megabyte (MB) is exactly one million bytes and a kilobyte (kB) is exactly one thousand bytes.

However, using powers of two is more convenient for many purposes, and 210 is 1024, which is pretty close to 103. So historically, and in many instances today, people say "kilobyte" to mean 1024 bytes, "megabyte" to mean 1024 "kilobytes", and gigabyte to mean 1024 "megabytes."

This is the distinction between "decimal" and "binary" kilobytes/megabytes/gigabytes/terabytes/etc.

These days, we have separate unit names and symbols formally defined for the units that scale by factors of 1024 rather than 1000: A kibibyte (KiB, and informally a "binary kilobyte") is 1024 bytes, a mebibyte (MiB, "binary megabyte") is 1024 kibibytes, a gibibyte (GiB, "binary gigabyte") is 1024 kibibytes, a tebibyte (TiB, "binary terabyte") is 1024 gibibytes, and so forth.

What's happening is that, apparently, VirtualBox is showing you storage capacity in units of gibibytes, while Ubuntu's installer shows it in units of (decimal) gigabytes.

See this article for more details and historical information.


Bluetooth headphones and speakers stop after some minutes

Run in a terminal

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi bt_coex_active=N"

and reboot.

That should fix the issue when Wi-Fi and BT are used simultaneously on 2.4GHz.


Lost terminal color hi light, getting only one color

I know this post is old, but I just figured out a solution to this! The reason for this is that your home directory doesn't contain a specific file to allow these kinds of color operations within Terminal.

To fix this: (Make sure all terminal windows are closed before proceeding)

Open Nautilus/File Manager and turn on the 'Show Hidden Files' option. From there, check to see if you have a .bashrc file in your Home directory.

If you do, delete it as there's a fresh, unconfigured back-up copy we'll add back into there later.

If you don't, no problem! To get a new, fresh copy of this file, navigate to /etc/skel/.bashrc. Copy this file and paste it in your Home directory.

From there, open a new Terminal window, you should be all set as all other color options are visible (bold, cursor, highlight). You can now change and modify the color within the Preferences within Terminal. You can also manually change the colors by editing the .bashrc file.


Fastest command to create a bit identical copy of a 4GB USB 2.0 drive

You can increase the block size:

bs=BYTES
       read and write up to BYTES bytes at a time

For example:

dd if=path_to_usb_drive of=path_to_copy_to bs=8192


Working gnu-screen alternative for WSL-minecraftserver

linuxgsm.com is a Server manager that is also available for minecraft, it uses tmux and is a perfect alternative with many other features.


TestDisk won't detect partition, but PhotoRec does

Actually tools like these you mentioned are using base commands and files . First command I suggest to use is fdisk . It's powerful oldschool command .

$ fdisk /dev/sda

This will give shell . Try p to show your partition  . Also you can use files in proc directory

$ cat /proc/partitions

This will show all partition that Kernel will care of and command partprobe can regenerate this file .
some cases you can not find your partition anymore. try using following procedure :

make partition with fdisk .
make file system with mkfs .
mount your partition with mount .


Just show all the hidden files using CTRL+H and then copy EVERYTHING. The configuration will be in /home somewhere. In a hidden file there could be alot of configurations. Especially in .config .


Redmine - backlogs - No such file to load -- nokogiri

You need to edit the Gemfile and add the below line

gem "nokogiri"

to solve the dependencies

Source

http://gembundler.com/man/gemfile.5.html
http://gembundler.com/gemfile.html


You can pass the password to sudo from the standard input, like this:

echo 'yourpassword' | sudo -S yourcommand

Using -S tells sudo to read the password from stdin, which comes from the echo 'yourpassword' bit.

You could also edit visudo, so that sudo will never prompt for the password, either only for your specific comand, or always.

Warning: storing your password in plain text is an extremely bad idea


Try the luvcview package/program, it can pick up some cameras cheese doesn't.


Error in installing Cuda Toolkit Ubuntu 16.04

There aren't any libglvnd packages in the default Ubuntu 16.04 repositories, so you must have gotten the incomplete installation of libglvnd from some other software source, possibly from the Nvidia files that you had earlier purged, if not from some other package that uses GL graphics library. So allow installing a full copy of libglvnd in order to make sure that NVIDIA CUDA Toolkit 9.1 works properly.


How do I set an environment variable in a Unity session?

The easy way to set personal environment variables for Unity (or any other X session) is to add them to the file $HOME/.xsessionrc.  These variables are seen by everything launched in the session, via menus, GUIs, terminal windows, etc.  For example, put this text in $HOME/.xsessionrc:

# File sourced by /etc/X11/Xsession, for setting environment variables, etc.
export FOOVAR=testing

Log out and back in, then from a shell window:

my-pc> echo $FOOVAR
testing

Tested under 12.04, using Unity.  But this feature is implemented by the /etc/X11/Xsession script used by many types of desktop session, so it should work with any session type.  See the Xsession man page.